Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorcvs2svn2006-10-17 16:49:43 +0000
committercvs2svn2006-10-17 16:49:43 +0000
commit94eadb86bb4c8f327babc498437027836fdfda9d (patch)
tree02676c1af1866c7acc8dabd4afd91b5ca105e1a0 /bundles
parent38edafccd38ae56035f923ab83b2156a40d9fe3a (diff)
downloadeclipse.platform.swt-94eadb86bb4c8f327babc498437027836fdfda9d.tar.gz
eclipse.platform.swt-94eadb86bb4c8f327babc498437027836fdfda9d.tar.xz
eclipse.platform.swt-94eadb86bb4c8f327babc498437027836fdfda9d.zip
This commit was manufactured by cvs2svn to create branch 'win64'.
Sprout from master 2006-08-03 21:43:31 UTC Grant Gayed <ggayed> '142880' Cherrypick from master 2006-10-17 16:49:42 UTC Silenio Quarti <silenio> 'fix cast': bundles/org.eclipse.swt/Eclipse SWT PI/win32/org/eclipse/swt/internal/win32/HDHITTESTINFO.java bundles/org.eclipse.swt/Eclipse SWT PI/win32/org/eclipse/swt/internal/win32/NMTVITEMCHANGE.java bundles/org.eclipse.swt/Eclipse SWT PI/win32/org/eclipse/swt/internal/win32/OFNOTIFY.java bundles/org.eclipse.swt/Eclipse SWT PI/win32/org/eclipse/swt/internal/win32/PROCESS_INFORMATION.java bundles/org.eclipse.swt/Eclipse SWT PI/win32/org/eclipse/swt/internal/win32/SHFILEINFO.java bundles/org.eclipse.swt/Eclipse SWT PI/win32/org/eclipse/swt/internal/win32/SHFILEINFOA.java bundles/org.eclipse.swt/Eclipse SWT PI/win32/org/eclipse/swt/internal/win32/SHFILEINFOW.java bundles/org.eclipse.swt/Eclipse SWT PI/win32/org/eclipse/swt/internal/win32/STARTUPINFO.java bundles/org.eclipse.swt/Eclipse SWT PI/win32/org/eclipse/swt/internal/win32/SYSTEMTIME.java Cherrypick from master 2006-07-20 16:31:55 UTC Silenio Quarti <silenio> '150764 - PATCH] fix compiler warnings for GCC 4.x (sentinel)': bundles/org.eclipse.swt.tools/JNI Generation/org/eclipse/swt/tools/internal/org.eclipse.swt.internal.gtk.OS.properties Delete: bundles/org.eclipse.swt.opengl/.classpath_carbon bundles/org.eclipse.swt.opengl/.classpath_gtk bundles/org.eclipse.swt.opengl/.classpath_motif bundles/org.eclipse.swt.opengl/.classpath_win32 bundles/org.eclipse.swt.opengl/.cvsignore bundles/org.eclipse.swt.opengl/.project bundles/org.eclipse.swt.opengl/META-INF/MANIFEST.MF bundles/org.eclipse.swt.opengl/about.html bundles/org.eclipse.swt.opengl/carbon/library/agl.c bundles/org.eclipse.swt.opengl/carbon/library/agl.h bundles/org.eclipse.swt.opengl/carbon/library/agl_stats.c bundles/org.eclipse.swt.opengl/carbon/library/agl_stats.h bundles/org.eclipse.swt.opengl/carbon/library/agl_structs.h bundles/org.eclipse.swt.opengl/carbon/org/eclipse/swt/internal/opengl/carbon/AGL.java bundles/org.eclipse.swt.opengl/carbon/org/eclipse/swt/opengl/GLCanvas.java bundles/org.eclipse.swt.opengl/common/library/gl.c bundles/org.eclipse.swt.opengl/common/library/gl.h bundles/org.eclipse.swt.opengl/common/library/gl_stats.c bundles/org.eclipse.swt.opengl/common/library/gl_stats.h bundles/org.eclipse.swt.opengl/common/library/gl_structs.c bundles/org.eclipse.swt.opengl/common/library/gl_structs.h bundles/org.eclipse.swt.opengl/common/library/glu.c bundles/org.eclipse.swt.opengl/common/library/glu.h bundles/org.eclipse.swt.opengl/common/library/glu_stats.c bundles/org.eclipse.swt.opengl/common/library/glu_stats.h bundles/org.eclipse.swt.opengl/common/library/glu_structs.c bundles/org.eclipse.swt.opengl/common/library/glu_structs.h bundles/org.eclipse.swt.opengl/common/library/swt.c bundles/org.eclipse.swt.opengl/common/library/swt.h bundles/org.eclipse.swt.opengl/common/org/eclipse/opengl/GL.java bundles/org.eclipse.swt.opengl/common/org/eclipse/opengl/GLU.java bundles/org.eclipse.swt.opengl/common/org/eclipse/swt/opengl/GLData.java bundles/org.eclipse.swt.opengl/common/org/eclipse/swt/opengl/ImageDataUtil.java bundles/org.eclipse.swt.opengl/common/org/eclipse/swt/opengl/Library.java bundles/org.eclipse.swt.opengl/gtk/library/build.sh bundles/org.eclipse.swt.opengl/gtk/library/glx.c bundles/org.eclipse.swt.opengl/gtk/library/glx.h bundles/org.eclipse.swt.opengl/gtk/library/glx_stats.c bundles/org.eclipse.swt.opengl/gtk/library/glx_stats.h bundles/org.eclipse.swt.opengl/gtk/library/glx_structs.c bundles/org.eclipse.swt.opengl/gtk/library/glx_structs.h bundles/org.eclipse.swt.opengl/gtk/library/make_linux.mak bundles/org.eclipse.swt.opengl/gtk/library/structs.c bundles/org.eclipse.swt.opengl/gtk/library/structs.h bundles/org.eclipse.swt.opengl/gtk/org/eclipse/swt/internal/opengl/gtk/GLX.java bundles/org.eclipse.swt.opengl/gtk/org/eclipse/swt/internal/opengl/gtk/XVisualInfo.java bundles/org.eclipse.swt.opengl/gtk/org/eclipse/swt/opengl/GLCanvas.java bundles/org.eclipse.swt.opengl/motif/library/build.sh bundles/org.eclipse.swt.opengl/motif/library/glx.c bundles/org.eclipse.swt.opengl/motif/library/make_aix.mak bundles/org.eclipse.swt.opengl/motif/library/make_hpux.mak bundles/org.eclipse.swt.opengl/motif/library/make_linux.mak bundles/org.eclipse.swt.opengl/motif/library/make_solaris.mak bundles/org.eclipse.swt.opengl/motif/library/structs.c bundles/org.eclipse.swt.opengl/motif/library/structs.h bundles/org.eclipse.swt.opengl/motif/org/eclipse/swt/opengl/GLContext.java bundles/org.eclipse.swt.opengl/motif/org/eclipse/swt/opengl/internal/motif/XGL.java bundles/org.eclipse.swt.opengl/motif/org/eclipse/swt/opengl/internal/motif/XVisualInfo.java bundles/org.eclipse.swt.opengl/plugin.properties bundles/org.eclipse.swt.opengl/plugin.xml bundles/org.eclipse.swt.opengl/win32/library/build.bat bundles/org.eclipse.swt.opengl/win32/library/glw.c bundles/org.eclipse.swt.opengl/win32/library/make_win32.mak bundles/org.eclipse.swt.opengl/win32/library/structs.c bundles/org.eclipse.swt.opengl/win32/library/structs.h bundles/org.eclipse.swt.opengl/win32/library/swt.rc bundles/org.eclipse.swt.opengl/win32/org/eclipse/swt/opengl/GLCanvas.java bundles/org.eclipse.swt.opengl/win32/org/eclipse/swt/opengl/internal/win32/LAYERPLANEDESCRIPTOR.java bundles/org.eclipse.swt.opengl/win32/org/eclipse/swt/opengl/internal/win32/PIXELFORMATDESCRIPTOR.java bundles/org.eclipse.swt.opengl/win32/org/eclipse/swt/opengl/internal/win32/WGL.java examples/org.eclipse.swt.examples.browser.demos/.classpath examples/org.eclipse.swt.examples.browser.demos/.project examples/org.eclipse.swt.examples.browser.demos/about.html examples/org.eclipse.swt.examples.browser.demos/build.properties examples/org.eclipse.swt.examples.browser.demos/css1/back1.jpg examples/org.eclipse.swt.examples.browser.demos/css1/back2.jpg examples/org.eclipse.swt.examples.browser.demos/css1/black.gif examples/org.eclipse.swt.examples.browser.demos/css1/board1.jpg examples/org.eclipse.swt.examples.browser.demos/css1/empty.gif examples/org.eclipse.swt.examples.browser.demos/css1/line1.gif examples/org.eclipse.swt.examples.browser.demos/css1/style.css examples/org.eclipse.swt.examples.browser.demos/css1/wall.gif examples/org.eclipse.swt.examples.browser.demos/css1/welcome.html examples/org.eclipse.swt.examples.browser.demos/css1/white.gif examples/org.eclipse.swt.examples.browser.demos/css2/Back640x440.gif examples/org.eclipse.swt.examples.browser.demos/css2/black_chip.gif examples/org.eclipse.swt.examples.browser.demos/css2/line1.gif examples/org.eclipse.swt.examples.browser.demos/css2/style.css examples/org.eclipse.swt.examples.browser.demos/css2/texture_cells.gif examples/org.eclipse.swt.examples.browser.demos/css2/wall_chip.gif examples/org.eclipse.swt.examples.browser.demos/css2/welcome.html examples/org.eclipse.swt.examples.browser.demos/css2/white_chip.gif examples/org.eclipse.swt.examples.browser.demos/css3/Back640x440.gif examples/org.eclipse.swt.examples.browser.demos/css3/black_pawn.gif examples/org.eclipse.swt.examples.browser.demos/css3/line1.gif examples/org.eclipse.swt.examples.browser.demos/css3/style.css examples/org.eclipse.swt.examples.browser.demos/css3/texture_cells.gif examples/org.eclipse.swt.examples.browser.demos/css3/wall_pawn.gif examples/org.eclipse.swt.examples.browser.demos/css3/welcome.html examples/org.eclipse.swt.examples.browser.demos/css3/white_pawn.gif examples/org.eclipse.swt.examples.browser.demos/css4/Back640x440.gif examples/org.eclipse.swt.examples.browser.demos/css4/blue_people.gif examples/org.eclipse.swt.examples.browser.demos/css4/gold_people.gif examples/org.eclipse.swt.examples.browser.demos/css4/line1.gif examples/org.eclipse.swt.examples.browser.demos/css4/style.css examples/org.eclipse.swt.examples.browser.demos/css4/texture_cells.gif examples/org.eclipse.swt.examples.browser.demos/css4/wall_people.gif examples/org.eclipse.swt.examples.browser.demos/css4/welcome.html examples/org.eclipse.swt.examples.browser.demos/doc-html/swt_browser_demos_ex.html examples/org.eclipse.swt.examples.browser.demos/icons/pawn.gif examples/org.eclipse.swt.examples.browser.demos/plugin.properties examples/org.eclipse.swt.examples.browser.demos/plugin.xml examples/org.eclipse.swt.examples.browser.demos/src/org/eclipse/swt/examples/browser/demos/BrowserDemoPlugin.java examples/org.eclipse.swt.examples.browser.demos/src/org/eclipse/swt/examples/browser/demos/Pawns.java examples/org.eclipse.swt.examples.browser.demos/src/org/eclipse/swt/examples/browser/demos/views/BrowserDemoView.java examples/org.eclipse.swt.examples.browser.demos/src/org/eclipse/swt/examples/browser/demos/views/EditorTab.java examples/org.eclipse.swt.examples.browser.demos/src/org/eclipse/swt/examples/browser/demos/views/PawnTab.java examples/org.eclipse.swt.examples.browser/.classpath examples/org.eclipse.swt.examples.browser/.cvsignore examples/org.eclipse.swt.examples.browser/.project examples/org.eclipse.swt.examples.browser/about.html examples/org.eclipse.swt.examples.browser/build.properties examples/org.eclipse.swt.examples.browser/doc-html/swt_browser_ex.html examples/org.eclipse.swt.examples.browser/icons/browser_example.gif examples/org.eclipse.swt.examples.browser/plugin.properties examples/org.eclipse.swt.examples.browser/plugin.xml examples/org.eclipse.swt.examples.browser/src/import.properties examples/org.eclipse.swt.examples.browser/src/org/eclipse/swt/examples/browserexample/BrowserPlugin.java examples/org.eclipse.swt.examples.browser/src/org/eclipse/swt/examples/browserexample/BrowserView.java examples/org.eclipse.swt.examples.controls/.classpath examples/org.eclipse.swt.examples.controls/.cvsignore examples/org.eclipse.swt.examples.controls/.project examples/org.eclipse.swt.examples.controls/about.html examples/org.eclipse.swt.examples.controls/build.properties examples/org.eclipse.swt.examples.controls/doc-html/swt_controls_ex.html examples/org.eclipse.swt.examples.controls/doc-html/swt_customcontrols_ex.html examples/org.eclipse.swt.examples.controls/icons/controls_example.gif examples/org.eclipse.swt.examples.controls/plugin.properties examples/org.eclipse.swt.examples.controls/plugin.xml examples/org.eclipse.swt.examples.controls/src/import.properties examples/org.eclipse.swt.examples.controls/src/org/eclipse/swt/examples/controls/ControlPlugin.java examples/org.eclipse.swt.examples.controls/src/org/eclipse/swt/examples/controls/ControlView.java examples/org.eclipse.swt.examples.controls/src/org/eclipse/swt/examples/controls/CustomControlView.java examples/org.eclipse.swt.examples.launcher/.classpath examples/org.eclipse.swt.examples.launcher/.cvsignore examples/org.eclipse.swt.examples.launcher/.project examples/org.eclipse.swt.examples.launcher/about.html examples/org.eclipse.swt.examples.launcher/build.properties examples/org.eclipse.swt.examples.launcher/doc-html/swt_launcher_ex.html examples/org.eclipse.swt.examples.launcher/doc/org.eclipse.swt.examples.launcher.launchItems.html examples/org.eclipse.swt.examples.launcher/icons/closedFolder.gif examples/org.eclipse.swt.examples.launcher/icons/generic_example.gif examples/org.eclipse.swt.examples.launcher/icons/launcher_example.gif examples/org.eclipse.swt.examples.launcher/icons/openFolder.gif examples/org.eclipse.swt.examples.launcher/plugin.properties examples/org.eclipse.swt.examples.launcher/plugin.xml examples/org.eclipse.swt.examples.launcher/schema/org.eclipse.swt.examples.launcher.launchItems.exsd examples/org.eclipse.swt.examples.launcher/src/import.properties examples/org.eclipse.swt.examples.launcher/src/org/eclipse/swt/examples/launcher/ItemDescriptor.java examples/org.eclipse.swt.examples.launcher/src/org/eclipse/swt/examples/launcher/ItemTreeNode.java examples/org.eclipse.swt.examples.launcher/src/org/eclipse/swt/examples/launcher/LauncherPlugin.java examples/org.eclipse.swt.examples.launcher/src/org/eclipse/swt/examples/launcher/LauncherView.java examples/org.eclipse.swt.examples.launcher/src/org/eclipse/swt/examples/launcher/SplitLayout.java examples/org.eclipse.swt.examples.layouts/.classpath examples/org.eclipse.swt.examples.layouts/.cvsignore examples/org.eclipse.swt.examples.layouts/.project examples/org.eclipse.swt.examples.layouts/about.html examples/org.eclipse.swt.examples.layouts/build.properties examples/org.eclipse.swt.examples.layouts/doc-html/swt_layout_ex.html examples/org.eclipse.swt.examples.layouts/icons/layouts_example.gif examples/org.eclipse.swt.examples.layouts/plugin.properties examples/org.eclipse.swt.examples.layouts/plugin.xml examples/org.eclipse.swt.examples.layouts/src/import.properties examples/org.eclipse.swt.examples.layouts/src/org/eclipse/swt/examples/layouts/LayoutPlugin.java examples/org.eclipse.swt.examples.layouts/src/org/eclipse/swt/examples/layouts/LayoutView.java examples/org.eclipse.swt.examples.ole.win32/.classpath examples/org.eclipse.swt.examples.ole.win32/.cvsignore examples/org.eclipse.swt.examples.ole.win32/.project examples/org.eclipse.swt.examples.ole.win32/about.html examples/org.eclipse.swt.examples.ole.win32/build.properties examples/org.eclipse.swt.examples.ole.win32/doc-html/swt_ole_ex.html examples/org.eclipse.swt.examples.ole.win32/icons/backward_nav.gif examples/org.eclipse.swt.examples.ole.win32/icons/forward_nav.gif examples/org.eclipse.swt.examples.ole.win32/icons/home_nav.gif examples/org.eclipse.swt.examples.ole.win32/icons/refresh_nav.gif examples/org.eclipse.swt.examples.ole.win32/icons/search_nav.gif examples/org.eclipse.swt.examples.ole.win32/icons/stop_nav.gif examples/org.eclipse.swt.examples.ole.win32/icons/webbrowser_example.gif examples/org.eclipse.swt.examples.ole.win32/plugin.properties examples/org.eclipse.swt.examples.ole.win32/plugin.xml examples/org.eclipse.swt.examples.ole.win32/src/import.properties examples/org.eclipse.swt.examples.ole.win32/src/org/eclipse/swt/examples/ole/win32/OleBrowserView.java examples/org.eclipse.swt.examples.ole.win32/src/org/eclipse/swt/examples/ole/win32/OlePlugin.java examples/org.eclipse.swt.examples.ole.win32/src/org/eclipse/swt/examples/ole/win32/OleWebBrowser.java examples/org.eclipse.swt.examples.paint/.classpath examples/org.eclipse.swt.examples.paint/.cvsignore examples/org.eclipse.swt.examples.paint/.project examples/org.eclipse.swt.examples.paint/about.html examples/org.eclipse.swt.examples.paint/build.properties examples/org.eclipse.swt.examples.paint/doc-html/swt_paint_ex.html examples/org.eclipse.swt.examples.paint/icons/paint_example.gif examples/org.eclipse.swt.examples.paint/plugin.properties examples/org.eclipse.swt.examples.paint/plugin.xml examples/org.eclipse.swt.examples.paint/src/import.properties examples/org.eclipse.swt.examples.paint/src/org/eclipse/swt/examples/paint/PaintPlugin.java examples/org.eclipse.swt.examples.paint/src/org/eclipse/swt/examples/paint/PaintView.java examples/org.eclipse.swt.examples/.classpath examples/org.eclipse.swt.examples/.cvsignore examples/org.eclipse.swt.examples/.project examples/org.eclipse.swt.examples/about.html examples/org.eclipse.swt.examples/build.properties examples/org.eclipse.swt.examples/doc-html/swt_addressbook_ex.html examples/org.eclipse.swt.examples/doc-html/swt_browser_ex.html examples/org.eclipse.swt.examples/doc-html/swt_clipboard_ex.html examples/org.eclipse.swt.examples/doc-html/swt_controls_ex.html examples/org.eclipse.swt.examples/doc-html/swt_customcontrols_ex.html examples/org.eclipse.swt.examples/doc-html/swt_dnd_ex.html examples/org.eclipse.swt.examples/doc-html/swt_fileviewer_ex.html examples/org.eclipse.swt.examples/doc-html/swt_helloworld_ex.html examples/org.eclipse.swt.examples/doc-html/swt_hoverhelp_ex.html examples/org.eclipse.swt.examples/doc-html/swt_imageanalyzer_ex.html examples/org.eclipse.swt.examples/doc-html/swt_javaviewer_ex.html examples/org.eclipse.swt.examples/doc-html/swt_launcher_ex.html examples/org.eclipse.swt.examples/doc-html/swt_layout_ex.html examples/org.eclipse.swt.examples/doc-html/swt_manual_setup.html examples/org.eclipse.swt.examples/doc-html/swt_paint_ex.html examples/org.eclipse.swt.examples/doc-html/swt_texteditor_ex.html examples/org.eclipse.swt.examples/plugin.properties examples/org.eclipse.swt.examples/plugin.xml examples/org.eclipse.swt.examples/src/examples_addressbook.properties examples/org.eclipse.swt.examples/src/examples_browser.properties examples/org.eclipse.swt.examples/src/examples_control.properties examples/org.eclipse.swt.examples/src/examples_fileviewer.properties examples/org.eclipse.swt.examples/src/examples_graphics.properties examples/org.eclipse.swt.examples/src/examples_helloworld.properties examples/org.eclipse.swt.examples/src/examples_hoverhelp.properties examples/org.eclipse.swt.examples/src/examples_images.properties examples/org.eclipse.swt.examples/src/examples_javaviewer.properties examples/org.eclipse.swt.examples/src/examples_layout.properties examples/org.eclipse.swt.examples/src/examples_paint.properties examples/org.eclipse.swt.examples/src/examples_texteditor.properties examples/org.eclipse.swt.examples/src/import.properties examples/org.eclipse.swt.examples/src/org/eclipse/swt/examples/addressbook/AddressBook.java examples/org.eclipse.swt.examples/src/org/eclipse/swt/examples/addressbook/DataEntryDialog.java examples/org.eclipse.swt.examples/src/org/eclipse/swt/examples/addressbook/FindListener.java examples/org.eclipse.swt.examples/src/org/eclipse/swt/examples/addressbook/SearchDialog.java examples/org.eclipse.swt.examples/src/org/eclipse/swt/examples/browserexample/BrowserExample.java examples/org.eclipse.swt.examples/src/org/eclipse/swt/examples/browserexample/document.gif examples/org.eclipse.swt.examples/src/org/eclipse/swt/examples/browserexample/eclipse01.bmp examples/org.eclipse.swt.examples/src/org/eclipse/swt/examples/browserexample/eclipse02.bmp examples/org.eclipse.swt.examples/src/org/eclipse/swt/examples/browserexample/eclipse03.bmp examples/org.eclipse.swt.examples/src/org/eclipse/swt/examples/browserexample/eclipse04.bmp examples/org.eclipse.swt.examples/src/org/eclipse/swt/examples/browserexample/eclipse05.bmp examples/org.eclipse.swt.examples/src/org/eclipse/swt/examples/browserexample/eclipse06.bmp examples/org.eclipse.swt.examples/src/org/eclipse/swt/examples/browserexample/eclipse07.bmp examples/org.eclipse.swt.examples/src/org/eclipse/swt/examples/browserexample/eclipse08.bmp examples/org.eclipse.swt.examples/src/org/eclipse/swt/examples/browserexample/eclipse09.bmp examples/org.eclipse.swt.examples/src/org/eclipse/swt/examples/browserexample/eclipse10.bmp examples/org.eclipse.swt.examples/src/org/eclipse/swt/examples/browserexample/eclipse11.bmp examples/org.eclipse.swt.examples/src/org/eclipse/swt/examples/browserexample/eclipse12.bmp examples/org.eclipse.swt.examples/src/org/eclipse/swt/examples/clipboard/ClipboardExample.java examples/org.eclipse.swt.examples/src/org/eclipse/swt/examples/clipboard/MyType.java examples/org.eclipse.swt.examples/src/org/eclipse/swt/examples/clipboard/MyTypeTransfer.java examples/org.eclipse.swt.examples/src/org/eclipse/swt/examples/controlexample/AlignableTab.java examples/org.eclipse.swt.examples/src/org/eclipse/swt/examples/controlexample/ButtonTab.java examples/org.eclipse.swt.examples/src/org/eclipse/swt/examples/controlexample/CComboTab.java examples/org.eclipse.swt.examples/src/org/eclipse/swt/examples/controlexample/CLabelTab.java examples/org.eclipse.swt.examples/src/org/eclipse/swt/examples/controlexample/CTabFolderTab.java examples/org.eclipse.swt.examples/src/org/eclipse/swt/examples/controlexample/CanvasTab.java examples/org.eclipse.swt.examples/src/org/eclipse/swt/examples/controlexample/ComboTab.java examples/org.eclipse.swt.examples/src/org/eclipse/swt/examples/controlexample/ControlExample.java examples/org.eclipse.swt.examples/src/org/eclipse/swt/examples/controlexample/CoolBarTab.java examples/org.eclipse.swt.examples/src/org/eclipse/swt/examples/controlexample/CustomControlExample.java examples/org.eclipse.swt.examples/src/org/eclipse/swt/examples/controlexample/DialogTab.java examples/org.eclipse.swt.examples/src/org/eclipse/swt/examples/controlexample/ExpandBarTab.java examples/org.eclipse.swt.examples/src/org/eclipse/swt/examples/controlexample/GroupTab.java examples/org.eclipse.swt.examples/src/org/eclipse/swt/examples/controlexample/LabelTab.java examples/org.eclipse.swt.examples/src/org/eclipse/swt/examples/controlexample/LinkTab.java examples/org.eclipse.swt.examples/src/org/eclipse/swt/examples/controlexample/ListTab.java examples/org.eclipse.swt.examples/src/org/eclipse/swt/examples/controlexample/MenuTab.java examples/org.eclipse.swt.examples/src/org/eclipse/swt/examples/controlexample/ProgressBarTab.java examples/org.eclipse.swt.examples/src/org/eclipse/swt/examples/controlexample/RangeTab.java examples/org.eclipse.swt.examples/src/org/eclipse/swt/examples/controlexample/SashFormTab.java examples/org.eclipse.swt.examples/src/org/eclipse/swt/examples/controlexample/SashTab.java examples/org.eclipse.swt.examples/src/org/eclipse/swt/examples/controlexample/ScaleTab.java examples/org.eclipse.swt.examples/src/org/eclipse/swt/examples/controlexample/ScrollableTab.java examples/org.eclipse.swt.examples/src/org/eclipse/swt/examples/controlexample/ShellTab.java examples/org.eclipse.swt.examples/src/org/eclipse/swt/examples/controlexample/SliderTab.java examples/org.eclipse.swt.examples/src/org/eclipse/swt/examples/controlexample/SpinnerTab.java examples/org.eclipse.swt.examples/src/org/eclipse/swt/examples/controlexample/StyledTextTab.java examples/org.eclipse.swt.examples/src/org/eclipse/swt/examples/controlexample/Tab.java examples/org.eclipse.swt.examples/src/org/eclipse/swt/examples/controlexample/TabFolderTab.java examples/org.eclipse.swt.examples/src/org/eclipse/swt/examples/controlexample/TableTab.java examples/org.eclipse.swt.examples/src/org/eclipse/swt/examples/controlexample/TextTab.java examples/org.eclipse.swt.examples/src/org/eclipse/swt/examples/controlexample/ToolBarTab.java examples/org.eclipse.swt.examples/src/org/eclipse/swt/examples/controlexample/TreeTab.java examples/org.eclipse.swt.examples/src/org/eclipse/swt/examples/controlexample/backgroundImage.png examples/org.eclipse.swt.examples/src/org/eclipse/swt/examples/controlexample/bold.bmp examples/org.eclipse.swt.examples/src/org/eclipse/swt/examples/controlexample/bold_mask.bmp examples/org.eclipse.swt.examples/src/org/eclipse/swt/examples/controlexample/closedFolder.gif examples/org.eclipse.swt.examples/src/org/eclipse/swt/examples/controlexample/italic.bmp examples/org.eclipse.swt.examples/src/org/eclipse/swt/examples/controlexample/italic_mask.bmp examples/org.eclipse.swt.examples/src/org/eclipse/swt/examples/controlexample/openFolder.gif examples/org.eclipse.swt.examples/src/org/eclipse/swt/examples/controlexample/parentBackgroundImage.png examples/org.eclipse.swt.examples/src/org/eclipse/swt/examples/controlexample/red.bmp examples/org.eclipse.swt.examples/src/org/eclipse/swt/examples/controlexample/red_mask.bmp examples/org.eclipse.swt.examples/src/org/eclipse/swt/examples/controlexample/strikeout.bmp examples/org.eclipse.swt.examples/src/org/eclipse/swt/examples/controlexample/strikeout_mask.bmp examples/org.eclipse.swt.examples/src/org/eclipse/swt/examples/controlexample/target.gif examples/org.eclipse.swt.examples/src/org/eclipse/swt/examples/controlexample/underline.bmp examples/org.eclipse.swt.examples/src/org/eclipse/swt/examples/controlexample/underline_mask.bmp examples/org.eclipse.swt.examples/src/org/eclipse/swt/examples/controlexample/yellow.bmp examples/org.eclipse.swt.examples/src/org/eclipse/swt/examples/controlexample/yellow_mask.bmp examples/org.eclipse.swt.examples/src/org/eclipse/swt/examples/dnd/DNDExample.java examples/org.eclipse.swt.examples/src/org/eclipse/swt/examples/dnd/ImageTransfer.java examples/org.eclipse.swt.examples/src/org/eclipse/swt/examples/fileviewer/FileViewer.java examples/org.eclipse.swt.examples/src/org/eclipse/swt/examples/fileviewer/IconCache.java examples/org.eclipse.swt.examples/src/org/eclipse/swt/examples/fileviewer/cmd_Copy.gif examples/org.eclipse.swt.examples/src/org/eclipse/swt/examples/fileviewer/cmd_Cut.gif examples/org.eclipse.swt.examples/src/org/eclipse/swt/examples/fileviewer/cmd_Delete.gif examples/org.eclipse.swt.examples/src/org/eclipse/swt/examples/fileviewer/cmd_Parent.gif examples/org.eclipse.swt.examples/src/org/eclipse/swt/examples/fileviewer/cmd_Paste.gif examples/org.eclipse.swt.examples/src/org/eclipse/swt/examples/fileviewer/cmd_Print.gif examples/org.eclipse.swt.examples/src/org/eclipse/swt/examples/fileviewer/cmd_Refresh.gif examples/org.eclipse.swt.examples/src/org/eclipse/swt/examples/fileviewer/cmd_Rename.gif examples/org.eclipse.swt.examples/src/org/eclipse/swt/examples/fileviewer/cmd_Search.gif examples/org.eclipse.swt.examples/src/org/eclipse/swt/examples/fileviewer/generic_example.gif examples/org.eclipse.swt.examples/src/org/eclipse/swt/examples/fileviewer/icon_ClosedDrive.gif examples/org.eclipse.swt.examples/src/org/eclipse/swt/examples/fileviewer/icon_ClosedFolder.gif examples/org.eclipse.swt.examples/src/org/eclipse/swt/examples/fileviewer/icon_File.gif examples/org.eclipse.swt.examples/src/org/eclipse/swt/examples/fileviewer/icon_OpenDrive.gif examples/org.eclipse.swt.examples/src/org/eclipse/swt/examples/fileviewer/icon_OpenFolder.gif examples/org.eclipse.swt.examples/src/org/eclipse/swt/examples/graphics/AdvancedGraphics.java examples/org.eclipse.swt.examples/src/org/eclipse/swt/examples/graphics/AnimatedGraphicsTab.java examples/org.eclipse.swt.examples/src/org/eclipse/swt/examples/graphics/BlackHoleTab.java examples/org.eclipse.swt.examples/src/org/eclipse/swt/examples/graphics/ColorListener.java examples/org.eclipse.swt.examples/src/org/eclipse/swt/examples/graphics/ColorMenu.java examples/org.eclipse.swt.examples/src/org/eclipse/swt/examples/graphics/GradientDialog.java examples/org.eclipse.swt.examples/src/org/eclipse/swt/examples/graphics/GraphicsBackground.java examples/org.eclipse.swt.examples/src/org/eclipse/swt/examples/graphics/GraphicsExample.java examples/org.eclipse.swt.examples/src/org/eclipse/swt/examples/graphics/GraphicsTab.java examples/org.eclipse.swt.examples/src/org/eclipse/swt/examples/graphics/IntroTab.java examples/org.eclipse.swt.examples/src/org/eclipse/swt/examples/graphics/LineTab.java examples/org.eclipse.swt.examples/src/org/eclipse/swt/examples/graphics/StarPolyTab.java examples/org.eclipse.swt.examples/src/org/eclipse/swt/examples/graphics/db.gif examples/org.eclipse.swt.examples/src/org/eclipse/swt/examples/graphics/irmaos.jpg examples/org.eclipse.swt.examples/src/org/eclipse/swt/examples/graphics/pattern1.jpg examples/org.eclipse.swt.examples/src/org/eclipse/swt/examples/graphics/pattern2.jpg examples/org.eclipse.swt.examples/src/org/eclipse/swt/examples/graphics/pattern3.jpg examples/org.eclipse.swt.examples/src/org/eclipse/swt/examples/graphics/pause.gif examples/org.eclipse.swt.examples/src/org/eclipse/swt/examples/graphics/play.gif examples/org.eclipse.swt.examples/src/org/eclipse/swt/examples/helloworld/HelloWorld1.java examples/org.eclipse.swt.examples/src/org/eclipse/swt/examples/helloworld/HelloWorld2.java examples/org.eclipse.swt.examples/src/org/eclipse/swt/examples/helloworld/HelloWorld3.java examples/org.eclipse.swt.examples/src/org/eclipse/swt/examples/helloworld/HelloWorld4.java examples/org.eclipse.swt.examples/src/org/eclipse/swt/examples/helloworld/HelloWorld5.java examples/org.eclipse.swt.examples/src/org/eclipse/swt/examples/hoverhelp/HoverHelp.java examples/org.eclipse.swt.examples/src/org/eclipse/swt/examples/hoverhelp/information.gif examples/org.eclipse.swt.examples/src/org/eclipse/swt/examples/hoverhelp/warning.gif examples/org.eclipse.swt.examples/src/org/eclipse/swt/examples/imageanalyzer/ImageAnalyzer.java examples/org.eclipse.swt.examples/src/org/eclipse/swt/examples/javaviewer/JavaLineStyler.java examples/org.eclipse.swt.examples/src/org/eclipse/swt/examples/javaviewer/JavaViewer.java examples/org.eclipse.swt.examples/src/org/eclipse/swt/examples/layoutexample/FillLayoutTab.java examples/org.eclipse.swt.examples/src/org/eclipse/swt/examples/layoutexample/FormLayoutTab.java examples/org.eclipse.swt.examples/src/org/eclipse/swt/examples/layoutexample/GridLayoutTab.java examples/org.eclipse.swt.examples/src/org/eclipse/swt/examples/layoutexample/LayoutExample.java examples/org.eclipse.swt.examples/src/org/eclipse/swt/examples/layoutexample/RowLayoutTab.java examples/org.eclipse.swt.examples/src/org/eclipse/swt/examples/layoutexample/Tab.java examples/org.eclipse.swt.examples/src/org/eclipse/swt/examples/paint/AirbrushTool.java examples/org.eclipse.swt.examples/src/org/eclipse/swt/examples/paint/BasicPaintSession.java examples/org.eclipse.swt.examples/src/org/eclipse/swt/examples/paint/ContainerFigure.java examples/org.eclipse.swt.examples/src/org/eclipse/swt/examples/paint/ContinuousPaintSession.java examples/org.eclipse.swt.examples/src/org/eclipse/swt/examples/paint/DragPaintSession.java examples/org.eclipse.swt.examples/src/org/eclipse/swt/examples/paint/EllipseFigure.java examples/org.eclipse.swt.examples/src/org/eclipse/swt/examples/paint/EllipseTool.java examples/org.eclipse.swt.examples/src/org/eclipse/swt/examples/paint/Figure.java examples/org.eclipse.swt.examples/src/org/eclipse/swt/examples/paint/FigureDrawContext.java examples/org.eclipse.swt.examples/src/org/eclipse/swt/examples/paint/LineFigure.java examples/org.eclipse.swt.examples/src/org/eclipse/swt/examples/paint/LineTool.java examples/org.eclipse.swt.examples/src/org/eclipse/swt/examples/paint/PaintExample.java examples/org.eclipse.swt.examples/src/org/eclipse/swt/examples/paint/PaintSession.java examples/org.eclipse.swt.examples/src/org/eclipse/swt/examples/paint/PaintSurface.java examples/org.eclipse.swt.examples/src/org/eclipse/swt/examples/paint/PaintTool.java examples/org.eclipse.swt.examples/src/org/eclipse/swt/examples/paint/PencilTool.java examples/org.eclipse.swt.examples/src/org/eclipse/swt/examples/paint/PointFigure.java examples/org.eclipse.swt.examples/src/org/eclipse/swt/examples/paint/PolyLineTool.java examples/org.eclipse.swt.examples/src/org/eclipse/swt/examples/paint/RectangleFigure.java examples/org.eclipse.swt.examples/src/org/eclipse/swt/examples/paint/RectangleTool.java examples/org.eclipse.swt.examples/src/org/eclipse/swt/examples/paint/RoundedRectangleFigure.java examples/org.eclipse.swt.examples/src/org/eclipse/swt/examples/paint/RoundedRectangleTool.java examples/org.eclipse.swt.examples/src/org/eclipse/swt/examples/paint/SegmentedPaintSession.java examples/org.eclipse.swt.examples/src/org/eclipse/swt/examples/paint/SolidEllipseFigure.java examples/org.eclipse.swt.examples/src/org/eclipse/swt/examples/paint/SolidPolygonFigure.java examples/org.eclipse.swt.examples/src/org/eclipse/swt/examples/paint/SolidRectangleFigure.java examples/org.eclipse.swt.examples/src/org/eclipse/swt/examples/paint/SolidRoundedRectangleFigure.java examples/org.eclipse.swt.examples/src/org/eclipse/swt/examples/paint/TextFigure.java examples/org.eclipse.swt.examples/src/org/eclipse/swt/examples/paint/TextTool.java examples/org.eclipse.swt.examples/src/org/eclipse/swt/examples/paint/Tool.java examples/org.eclipse.swt.examples/src/org/eclipse/swt/examples/paint/ToolSettings.java examples/org.eclipse.swt.examples/src/org/eclipse/swt/examples/paint/fill_none.gif examples/org.eclipse.swt.examples/src/org/eclipse/swt/examples/paint/fill_outline.gif examples/org.eclipse.swt.examples/src/org/eclipse/swt/examples/paint/fill_solid.gif examples/org.eclipse.swt.examples/src/org/eclipse/swt/examples/paint/linestyle_dash.gif examples/org.eclipse.swt.examples/src/org/eclipse/swt/examples/paint/linestyle_dashdot.gif examples/org.eclipse.swt.examples/src/org/eclipse/swt/examples/paint/linestyle_dot.gif examples/org.eclipse.swt.examples/src/org/eclipse/swt/examples/paint/linestyle_solid.gif examples/org.eclipse.swt.examples/src/org/eclipse/swt/examples/paint/options_font.gif examples/org.eclipse.swt.examples/src/org/eclipse/swt/examples/paint/tool_airbrush.gif examples/org.eclipse.swt.examples/src/org/eclipse/swt/examples/paint/tool_ellipse.gif examples/org.eclipse.swt.examples/src/org/eclipse/swt/examples/paint/tool_line.gif examples/org.eclipse.swt.examples/src/org/eclipse/swt/examples/paint/tool_pencil.gif examples/org.eclipse.swt.examples/src/org/eclipse/swt/examples/paint/tool_polyline.gif examples/org.eclipse.swt.examples/src/org/eclipse/swt/examples/paint/tool_rectangle.gif examples/org.eclipse.swt.examples/src/org/eclipse/swt/examples/paint/tool_roundedrectangle.gif examples/org.eclipse.swt.examples/src/org/eclipse/swt/examples/paint/tool_text.gif examples/org.eclipse.swt.examples/src/org/eclipse/swt/examples/texteditor/Images.java examples/org.eclipse.swt.examples/src/org/eclipse/swt/examples/texteditor/TextEditor.java examples/org.eclipse.swt.examples/src/org/eclipse/swt/examples/texteditor/blue.bmp examples/org.eclipse.swt.examples/src/org/eclipse/swt/examples/texteditor/blue_mask.bmp examples/org.eclipse.swt.examples/src/org/eclipse/swt/examples/texteditor/bold.bmp examples/org.eclipse.swt.examples/src/org/eclipse/swt/examples/texteditor/bold_mask.bmp examples/org.eclipse.swt.examples/src/org/eclipse/swt/examples/texteditor/erase.bmp examples/org.eclipse.swt.examples/src/org/eclipse/swt/examples/texteditor/erase_mask.bmp examples/org.eclipse.swt.examples/src/org/eclipse/swt/examples/texteditor/green.bmp examples/org.eclipse.swt.examples/src/org/eclipse/swt/examples/texteditor/green_mask.bmp examples/org.eclipse.swt.examples/src/org/eclipse/swt/examples/texteditor/italic.bmp examples/org.eclipse.swt.examples/src/org/eclipse/swt/examples/texteditor/italic_mask.bmp examples/org.eclipse.swt.examples/src/org/eclipse/swt/examples/texteditor/red.bmp examples/org.eclipse.swt.examples/src/org/eclipse/swt/examples/texteditor/red_mask.bmp examples/org.eclipse.swt.examples/src/org/eclipse/swt/examples/texteditor/strikeout.bmp examples/org.eclipse.swt.examples/src/org/eclipse/swt/examples/texteditor/strikeout_mask.bmp examples/org.eclipse.swt.examples/src/org/eclipse/swt/examples/texteditor/underline.bmp examples/org.eclipse.swt.examples/src/org/eclipse/swt/examples/texteditor/underline_mask.bmp examples/org.eclipse.swt.opengl.examples/.classpath examples/org.eclipse.swt.opengl.examples/.cvsignore examples/org.eclipse.swt.opengl.examples/.project examples/org.eclipse.swt.opengl.examples/about.html examples/org.eclipse.swt.opengl.examples/build.properties examples/org.eclipse.swt.opengl.examples/plugin.properties examples/org.eclipse.swt.opengl.examples/plugin.xml examples/org.eclipse.swt.opengl.examples/src/examples_opengl.properties examples/org.eclipse.swt.opengl.examples/src/org/eclipse/swt/opengl/examples/AntialiasingTab.java examples/org.eclipse.swt.opengl.examples/src/org/eclipse/swt/opengl/examples/AreaTab.java examples/org.eclipse.swt.opengl.examples/src/org/eclipse/swt/opengl/examples/ColorSelectionGroup.java examples/org.eclipse.swt.opengl.examples/src/org/eclipse/swt/opengl/examples/FogTab.java examples/org.eclipse.swt.opengl.examples/src/org/eclipse/swt/opengl/examples/GradientTab.java examples/org.eclipse.swt.opengl.examples/src/org/eclipse/swt/opengl/examples/IColorSelectionListener.java examples/org.eclipse.swt.opengl.examples/src/org/eclipse/swt/opengl/examples/ImageDataUtil.java examples/org.eclipse.swt.opengl.examples/src/org/eclipse/swt/opengl/examples/LWJGLExample.java examples/org.eclipse.swt.opengl.examples/src/org/eclipse/swt/opengl/examples/LightTab.java examples/org.eclipse.swt.opengl.examples/src/org/eclipse/swt/opengl/examples/NurbTab.java examples/org.eclipse.swt.opengl.examples/src/org/eclipse/swt/opengl/examples/ObjectsTab.java examples/org.eclipse.swt.opengl.examples/src/org/eclipse/swt/opengl/examples/OpenGLExample.java examples/org.eclipse.swt.opengl.examples/src/org/eclipse/swt/opengl/examples/OpenGLTab.java examples/org.eclipse.swt.opengl.examples/src/org/eclipse/swt/opengl/examples/ReflectionTab.java examples/org.eclipse.swt.opengl.examples/src/org/eclipse/swt/opengl/examples/StencilTab.java examples/org.eclipse.swt.opengl.examples/src/org/eclipse/swt/opengl/examples/TextureTab.java examples/org.eclipse.swt.opengl.examples/src/org/eclipse/swt/opengl/examples/TransparencyTab.java examples/org.eclipse.swt.opengl.examples/src/org/eclipse/swt/opengl/examples/images/Ball.jpg examples/org.eclipse.swt.opengl.examples/src/org/eclipse/swt/opengl/examples/images/Box.bmp examples/org.eclipse.swt.opengl.examples/src/org/eclipse/swt/opengl/examples/images/Floor.jpg examples/org.eclipse.swt.opengl.examples/src/org/eclipse/swt/opengl/examples/images/splash.bmp examples/org.eclipse.swt.opengl.examples/src/org/eclipse/swt/opengl/examples/images/untitled.jpg examples/org.eclipse.swt.snippets/.classpath examples/org.eclipse.swt.snippets/.cvsignore examples/org.eclipse.swt.snippets/.project examples/org.eclipse.swt.snippets/about.html examples/org.eclipse.swt.snippets/build.properties examples/org.eclipse.swt.snippets/plugin.properties examples/org.eclipse.swt.snippets/plugin.xml examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet1.java examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet10.java examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet100.java examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet101.java examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet102.java examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet103.java examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet104.java examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet105.java examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet106.java examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet107.java examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet108.java examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet109.java examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet11.java examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet110.java examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet111.java examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet112.java examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet113.java examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet114.java examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet115.java examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet116.java examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet117.java examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet118.java examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet119.java examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet12.java examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet120.java examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet121.java examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet122.java examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet123.java examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet124.java examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet125.java examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet126.java examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet127.java examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet128.java examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet129.java examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet13.java examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet130.java examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet131.java examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet132.java examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet133.java examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet134.java examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet135.java examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet136.java examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet137.java examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet138.java examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet139.java examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet14.java examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet140.java examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet141.java examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet142.java examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet143.java examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet144.java examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet145.java examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet146.java examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet147.java examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet148.java examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet149.java examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet15.java examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet150.java examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet151.java examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet152.java examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet153.java examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet154.java examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet155.java examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet156.java examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet157.java examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet158.java examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet159.java examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet16.java examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet160.java examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet161.java examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet162.java examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet163.java examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet164.java examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet165.java examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet166.java examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet167.java examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet168.java examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet169.java examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet17.java examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet170.java examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet171.java examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet172.java examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet173.java examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet174.java examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet175.java examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet176.java examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet177.java examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet178.java examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet179.java examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet18.java examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet180.java examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet181.java examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet182.java examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet183.java examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet184.java examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet185.java examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet186.html examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet186.java examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet187.html examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet187.java examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet188.java examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet189.java examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet19.java examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet190.java examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet191.java examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet192.java examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet193.java examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet194.java examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet195.java examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet196.java examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet197.java examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet198.java examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet199.java examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet2.java examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet20.java examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet200.java examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet201.java examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet202.java examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet203.java examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet204.java examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet205.java examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet206.java examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet207.java examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet208.java examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet209.java examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet21.java examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet210.java examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet211.java examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet212.java examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet213.java examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet214.java examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet215.java examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet216.java examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet217.java examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet218.java examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet219.java examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet22.java examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet220.java examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet221.java examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet222.java examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet223.java examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet224.java examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet225.java examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet226.java examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet227.java examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet228.java examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet229.java examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet23.java examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet230.java examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet231.java examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet232.java examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet233.java examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet234.java examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet235.java examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet236.java examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet237.java examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet238.java examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet239.java examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet24.java examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet240.java examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet241.java examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet242.java examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet243.java examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet244.java examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet245.java examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet246.java examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet247.java examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet25.java examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet26.java examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet27.java examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet28.java examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet29.java examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet3.java examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet30.java examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet31.java examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet32.java examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet33.java examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet34.java examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet35.java examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet36.java examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet37.java examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet38.java examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet39.java examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet4.java examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet40.java examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet41.java examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet42.java examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet43.java examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet44.java examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet45.java examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet46.java examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet47.java examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet48.java examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet49.java examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet5.java examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet50.java examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet51.java examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet52.java examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet53.java examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet54.java examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet55.java examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet56.java examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet57.java examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet58.java examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet59.java examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet6.java examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet60.java examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet61.java examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet62.java examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet63.java examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet64.java examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet65.java examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet66.java examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet67.java examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet68.java examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet69.java examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet7.java examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet70.java examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet71.java examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet72.java examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet73.java examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet74.java examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet75.java examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet76.java examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet77.java examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet78.java examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet79.java examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet8.java examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet80.java examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet81.java examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet82.java examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet83.java examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet84.java examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet85.java examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet86.java examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet87.java examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet88.java examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet89.java examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet9.java examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet90.java examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet91.java examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet92.java examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet93.java examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet94.java examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet95.java examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet96.java examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet97.java examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet98.java examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet99.java examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/SnippetLauncher.java examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/eclipse.png tests/org.eclipse.swt.tests/.classpath tests/org.eclipse.swt.tests/.cvsignore tests/org.eclipse.swt.tests/.project tests/org.eclipse.swt.tests/JUnit Tests/org/eclipse/swt/tests/junit/AllBrowserTests.java tests/org.eclipse.swt.tests/JUnit Tests/org/eclipse/swt/tests/junit/AllCarbonTests.java tests/org.eclipse.swt.tests/JUnit Tests/org/eclipse/swt/tests/junit/AllGraphicsTests.java tests/org.eclipse.swt.tests/JUnit Tests/org/eclipse/swt/tests/junit/AllGtkTests.java tests/org.eclipse.swt.tests/JUnit Tests/org/eclipse/swt/tests/junit/AllMotifTests.java tests/org.eclipse.swt.tests/JUnit Tests/org/eclipse/swt/tests/junit/AllTests.java tests/org.eclipse.swt.tests/JUnit Tests/org/eclipse/swt/tests/junit/AllWidgetTests.java tests/org.eclipse.swt.tests/JUnit Tests/org/eclipse/swt/tests/junit/ConsistencyUtility.java tests/org.eclipse.swt.tests/JUnit Tests/org/eclipse/swt/tests/junit/EmulatedWidgetsTests.java tests/org.eclipse.swt.tests/JUnit Tests/org/eclipse/swt/tests/junit/StyledTextContentSpec.java tests/org.eclipse.swt.tests/JUnit Tests/org/eclipse/swt/tests/junit/SwtJunit.java tests/org.eclipse.swt.tests/JUnit Tests/org/eclipse/swt/tests/junit/SwtTestCase.java tests/org.eclipse.swt.tests/JUnit Tests/org/eclipse/swt/tests/junit/Test_org_eclipse_swt_SWT.java tests/org.eclipse.swt.tests/JUnit Tests/org/eclipse/swt/tests/junit/Test_org_eclipse_swt_SWTError.java tests/org.eclipse.swt.tests/JUnit Tests/org/eclipse/swt/tests/junit/Test_org_eclipse_swt_SWTException.java tests/org.eclipse.swt.tests/JUnit Tests/org/eclipse/swt/tests/junit/Test_org_eclipse_swt_accessibility_ACC.java tests/org.eclipse.swt.tests/JUnit Tests/org/eclipse/swt/tests/junit/Test_org_eclipse_swt_accessibility_Accessible.java tests/org.eclipse.swt.tests/JUnit Tests/org/eclipse/swt/tests/junit/Test_org_eclipse_swt_accessibility_AccessibleAdapter.java tests/org.eclipse.swt.tests/JUnit Tests/org/eclipse/swt/tests/junit/Test_org_eclipse_swt_accessibility_AccessibleControlAdapter.java tests/org.eclipse.swt.tests/JUnit Tests/org/eclipse/swt/tests/junit/Test_org_eclipse_swt_accessibility_AccessibleControlEvent.java tests/org.eclipse.swt.tests/JUnit Tests/org/eclipse/swt/tests/junit/Test_org_eclipse_swt_accessibility_AccessibleControlListener.java tests/org.eclipse.swt.tests/JUnit Tests/org/eclipse/swt/tests/junit/Test_org_eclipse_swt_accessibility_AccessibleEvent.java tests/org.eclipse.swt.tests/JUnit Tests/org/eclipse/swt/tests/junit/Test_org_eclipse_swt_accessibility_AccessibleListener.java tests/org.eclipse.swt.tests/JUnit Tests/org/eclipse/swt/tests/junit/Test_org_eclipse_swt_accessibility_AccessibleTextAdapter.java tests/org.eclipse.swt.tests/JUnit Tests/org/eclipse/swt/tests/junit/Test_org_eclipse_swt_accessibility_AccessibleTextEvent.java tests/org.eclipse.swt.tests/JUnit Tests/org/eclipse/swt/tests/junit/Test_org_eclipse_swt_accessibility_AccessibleTextListener.java tests/org.eclipse.swt.tests/JUnit Tests/org/eclipse/swt/tests/junit/Test_org_eclipse_swt_awt_SWT_AWT.java tests/org.eclipse.swt.tests/JUnit Tests/org/eclipse/swt/tests/junit/Test_org_eclipse_swt_browser_Browser.java tests/org.eclipse.swt.tests/JUnit Tests/org/eclipse/swt/tests/junit/Test_org_eclipse_swt_browser_CloseWindowListener.java tests/org.eclipse.swt.tests/JUnit Tests/org/eclipse/swt/tests/junit/Test_org_eclipse_swt_browser_LocationAdapter.java tests/org.eclipse.swt.tests/JUnit Tests/org/eclipse/swt/tests/junit/Test_org_eclipse_swt_browser_LocationListener.java tests/org.eclipse.swt.tests/JUnit Tests/org/eclipse/swt/tests/junit/Test_org_eclipse_swt_browser_OpenWindowListener.java tests/org.eclipse.swt.tests/JUnit Tests/org/eclipse/swt/tests/junit/Test_org_eclipse_swt_browser_ProgressAdapter.java tests/org.eclipse.swt.tests/JUnit Tests/org/eclipse/swt/tests/junit/Test_org_eclipse_swt_browser_ProgressListener.java tests/org.eclipse.swt.tests/JUnit Tests/org/eclipse/swt/tests/junit/Test_org_eclipse_swt_browser_StatusTextListener.java tests/org.eclipse.swt.tests/JUnit Tests/org/eclipse/swt/tests/junit/Test_org_eclipse_swt_browser_TitleListener.java tests/org.eclipse.swt.tests/JUnit Tests/org/eclipse/swt/tests/junit/Test_org_eclipse_swt_browser_VisibilityWindowAdapter.java tests/org.eclipse.swt.tests/JUnit Tests/org/eclipse/swt/tests/junit/Test_org_eclipse_swt_browser_VisibilityWindowListener.java tests/org.eclipse.swt.tests/JUnit Tests/org/eclipse/swt/tests/junit/Test_org_eclipse_swt_custom_AnimatedProgress.java tests/org.eclipse.swt.tests/JUnit Tests/org/eclipse/swt/tests/junit/Test_org_eclipse_swt_custom_BidiSegmentEvent.java tests/org.eclipse.swt.tests/JUnit Tests/org/eclipse/swt/tests/junit/Test_org_eclipse_swt_custom_BidiSegmentListener.java tests/org.eclipse.swt.tests/JUnit Tests/org/eclipse/swt/tests/junit/Test_org_eclipse_swt_custom_BusyIndicator.java tests/org.eclipse.swt.tests/JUnit Tests/org/eclipse/swt/tests/junit/Test_org_eclipse_swt_custom_CCombo.java tests/org.eclipse.swt.tests/JUnit Tests/org/eclipse/swt/tests/junit/Test_org_eclipse_swt_custom_CLabel.java tests/org.eclipse.swt.tests/JUnit Tests/org/eclipse/swt/tests/junit/Test_org_eclipse_swt_custom_CTabFolder.java tests/org.eclipse.swt.tests/JUnit Tests/org/eclipse/swt/tests/junit/Test_org_eclipse_swt_custom_CTabFolderAdapter.java tests/org.eclipse.swt.tests/JUnit Tests/org/eclipse/swt/tests/junit/Test_org_eclipse_swt_custom_CTabFolderEvent.java tests/org.eclipse.swt.tests/JUnit Tests/org/eclipse/swt/tests/junit/Test_org_eclipse_swt_custom_CTabFolderListener.java tests/org.eclipse.swt.tests/JUnit Tests/org/eclipse/swt/tests/junit/Test_org_eclipse_swt_custom_CTabItem.java tests/org.eclipse.swt.tests/JUnit Tests/org/eclipse/swt/tests/junit/Test_org_eclipse_swt_custom_ControlEditor.java tests/org.eclipse.swt.tests/JUnit Tests/org/eclipse/swt/tests/junit/Test_org_eclipse_swt_custom_ExtendedModifyEvent.java tests/org.eclipse.swt.tests/JUnit Tests/org/eclipse/swt/tests/junit/Test_org_eclipse_swt_custom_ExtendedModifyListener.java tests/org.eclipse.swt.tests/JUnit Tests/org/eclipse/swt/tests/junit/Test_org_eclipse_swt_custom_LineBackgroundEvent.java tests/org.eclipse.swt.tests/JUnit Tests/org/eclipse/swt/tests/junit/Test_org_eclipse_swt_custom_LineBackgroundListener.java tests/org.eclipse.swt.tests/JUnit Tests/org/eclipse/swt/tests/junit/Test_org_eclipse_swt_custom_LineStyleEvent.java tests/org.eclipse.swt.tests/JUnit Tests/org/eclipse/swt/tests/junit/Test_org_eclipse_swt_custom_LineStyleListener.java tests/org.eclipse.swt.tests/JUnit Tests/org/eclipse/swt/tests/junit/Test_org_eclipse_swt_custom_PopupList.java tests/org.eclipse.swt.tests/JUnit Tests/org/eclipse/swt/tests/junit/Test_org_eclipse_swt_custom_ST.java tests/org.eclipse.swt.tests/JUnit Tests/org/eclipse/swt/tests/junit/Test_org_eclipse_swt_custom_SashForm.java tests/org.eclipse.swt.tests/JUnit Tests/org/eclipse/swt/tests/junit/Test_org_eclipse_swt_custom_ScrolledComposite.java tests/org.eclipse.swt.tests/JUnit Tests/org/eclipse/swt/tests/junit/Test_org_eclipse_swt_custom_StackLayout.java tests/org.eclipse.swt.tests/JUnit Tests/org/eclipse/swt/tests/junit/Test_org_eclipse_swt_custom_StyleRange.java tests/org.eclipse.swt.tests/JUnit Tests/org/eclipse/swt/tests/junit/Test_org_eclipse_swt_custom_StyledText.java tests/org.eclipse.swt.tests/JUnit Tests/org/eclipse/swt/tests/junit/Test_org_eclipse_swt_custom_StyledTextContent.java tests/org.eclipse.swt.tests/JUnit Tests/org/eclipse/swt/tests/junit/Test_org_eclipse_swt_custom_TableCursor.java tests/org.eclipse.swt.tests/JUnit Tests/org/eclipse/swt/tests/junit/Test_org_eclipse_swt_custom_TableEditor.java tests/org.eclipse.swt.tests/JUnit Tests/org/eclipse/swt/tests/junit/Test_org_eclipse_swt_custom_TableTree.java tests/org.eclipse.swt.tests/JUnit Tests/org/eclipse/swt/tests/junit/Test_org_eclipse_swt_custom_TableTreeEditor.java tests/org.eclipse.swt.tests/JUnit Tests/org/eclipse/swt/tests/junit/Test_org_eclipse_swt_custom_TableTreeItem.java tests/org.eclipse.swt.tests/JUnit Tests/org/eclipse/swt/tests/junit/Test_org_eclipse_swt_custom_TextChangeListener.java tests/org.eclipse.swt.tests/JUnit Tests/org/eclipse/swt/tests/junit/Test_org_eclipse_swt_custom_TextChangedEvent.java tests/org.eclipse.swt.tests/JUnit Tests/org/eclipse/swt/tests/junit/Test_org_eclipse_swt_custom_TextChangingEvent.java tests/org.eclipse.swt.tests/JUnit Tests/org/eclipse/swt/tests/junit/Test_org_eclipse_swt_custom_TreeEditor.java tests/org.eclipse.swt.tests/JUnit Tests/org/eclipse/swt/tests/junit/Test_org_eclipse_swt_custom_VerifyKeyListener.java tests/org.eclipse.swt.tests/JUnit Tests/org/eclipse/swt/tests/junit/Test_org_eclipse_swt_custom_ViewForm.java tests/org.eclipse.swt.tests/JUnit Tests/org/eclipse/swt/tests/junit/Test_org_eclipse_swt_dnd_ByteArrayTransfer.java tests/org.eclipse.swt.tests/JUnit Tests/org/eclipse/swt/tests/junit/Test_org_eclipse_swt_dnd_Clipboard.java tests/org.eclipse.swt.tests/JUnit Tests/org/eclipse/swt/tests/junit/Test_org_eclipse_swt_dnd_DND.java tests/org.eclipse.swt.tests/JUnit Tests/org/eclipse/swt/tests/junit/Test_org_eclipse_swt_dnd_DragSource.java tests/org.eclipse.swt.tests/JUnit Tests/org/eclipse/swt/tests/junit/Test_org_eclipse_swt_dnd_DragSourceAdapter.java tests/org.eclipse.swt.tests/JUnit Tests/org/eclipse/swt/tests/junit/Test_org_eclipse_swt_dnd_DragSourceEvent.java tests/org.eclipse.swt.tests/JUnit Tests/org/eclipse/swt/tests/junit/Test_org_eclipse_swt_dnd_DragSourceListener.java tests/org.eclipse.swt.tests/JUnit Tests/org/eclipse/swt/tests/junit/Test_org_eclipse_swt_dnd_DropTarget.java tests/org.eclipse.swt.tests/JUnit Tests/org/eclipse/swt/tests/junit/Test_org_eclipse_swt_dnd_DropTargetAdapter.java tests/org.eclipse.swt.tests/JUnit Tests/org/eclipse/swt/tests/junit/Test_org_eclipse_swt_dnd_DropTargetEvent.java tests/org.eclipse.swt.tests/JUnit Tests/org/eclipse/swt/tests/junit/Test_org_eclipse_swt_dnd_DropTargetListener.java tests/org.eclipse.swt.tests/JUnit Tests/org/eclipse/swt/tests/junit/Test_org_eclipse_swt_dnd_FileTransfer.java tests/org.eclipse.swt.tests/JUnit Tests/org/eclipse/swt/tests/junit/Test_org_eclipse_swt_dnd_RTFTransfer.java tests/org.eclipse.swt.tests/JUnit Tests/org/eclipse/swt/tests/junit/Test_org_eclipse_swt_dnd_TextTransfer.java tests/org.eclipse.swt.tests/JUnit Tests/org/eclipse/swt/tests/junit/Test_org_eclipse_swt_dnd_Transfer.java tests/org.eclipse.swt.tests/JUnit Tests/org/eclipse/swt/tests/junit/Test_org_eclipse_swt_dnd_TransferData.java tests/org.eclipse.swt.tests/JUnit Tests/org/eclipse/swt/tests/junit/Test_org_eclipse_swt_events_ArmEvent.java tests/org.eclipse.swt.tests/JUnit Tests/org/eclipse/swt/tests/junit/Test_org_eclipse_swt_events_ArmListener.java tests/org.eclipse.swt.tests/JUnit Tests/org/eclipse/swt/tests/junit/Test_org_eclipse_swt_events_ControlAdapter.java tests/org.eclipse.swt.tests/JUnit Tests/org/eclipse/swt/tests/junit/Test_org_eclipse_swt_events_ControlEvent.java tests/org.eclipse.swt.tests/JUnit Tests/org/eclipse/swt/tests/junit/Test_org_eclipse_swt_events_ControlListener.java tests/org.eclipse.swt.tests/JUnit Tests/org/eclipse/swt/tests/junit/Test_org_eclipse_swt_events_DisposeEvent.java tests/org.eclipse.swt.tests/JUnit Tests/org/eclipse/swt/tests/junit/Test_org_eclipse_swt_events_DisposeListener.java tests/org.eclipse.swt.tests/JUnit Tests/org/eclipse/swt/tests/junit/Test_org_eclipse_swt_events_FocusAdapter.java tests/org.eclipse.swt.tests/JUnit Tests/org/eclipse/swt/tests/junit/Test_org_eclipse_swt_events_FocusEvent.java tests/org.eclipse.swt.tests/JUnit Tests/org/eclipse/swt/tests/junit/Test_org_eclipse_swt_events_FocusListener.java tests/org.eclipse.swt.tests/JUnit Tests/org/eclipse/swt/tests/junit/Test_org_eclipse_swt_events_HelpEvent.java tests/org.eclipse.swt.tests/JUnit Tests/org/eclipse/swt/tests/junit/Test_org_eclipse_swt_events_HelpListener.java tests/org.eclipse.swt.tests/JUnit Tests/org/eclipse/swt/tests/junit/Test_org_eclipse_swt_events_KeyAdapter.java tests/org.eclipse.swt.tests/JUnit Tests/org/eclipse/swt/tests/junit/Test_org_eclipse_swt_events_KeyEvent.java tests/org.eclipse.swt.tests/JUnit Tests/org/eclipse/swt/tests/junit/Test_org_eclipse_swt_events_KeyListener.java tests/org.eclipse.swt.tests/JUnit Tests/org/eclipse/swt/tests/junit/Test_org_eclipse_swt_events_MenuAdapter.java tests/org.eclipse.swt.tests/JUnit Tests/org/eclipse/swt/tests/junit/Test_org_eclipse_swt_events_MenuEvent.java tests/org.eclipse.swt.tests/JUnit Tests/org/eclipse/swt/tests/junit/Test_org_eclipse_swt_events_MenuListener.java tests/org.eclipse.swt.tests/JUnit Tests/org/eclipse/swt/tests/junit/Test_org_eclipse_swt_events_ModifyEvent.java tests/org.eclipse.swt.tests/JUnit Tests/org/eclipse/swt/tests/junit/Test_org_eclipse_swt_events_ModifyListener.java tests/org.eclipse.swt.tests/JUnit Tests/org/eclipse/swt/tests/junit/Test_org_eclipse_swt_events_MouseAdapter.java tests/org.eclipse.swt.tests/JUnit Tests/org/eclipse/swt/tests/junit/Test_org_eclipse_swt_events_MouseEvent.java tests/org.eclipse.swt.tests/JUnit Tests/org/eclipse/swt/tests/junit/Test_org_eclipse_swt_events_MouseListener.java tests/org.eclipse.swt.tests/JUnit Tests/org/eclipse/swt/tests/junit/Test_org_eclipse_swt_events_MouseMoveListener.java tests/org.eclipse.swt.tests/JUnit Tests/org/eclipse/swt/tests/junit/Test_org_eclipse_swt_events_MouseTrackAdapter.java tests/org.eclipse.swt.tests/JUnit Tests/org/eclipse/swt/tests/junit/Test_org_eclipse_swt_events_MouseTrackListener.java tests/org.eclipse.swt.tests/JUnit Tests/org/eclipse/swt/tests/junit/Test_org_eclipse_swt_events_PaintEvent.java tests/org.eclipse.swt.tests/JUnit Tests/org/eclipse/swt/tests/junit/Test_org_eclipse_swt_events_PaintListener.java tests/org.eclipse.swt.tests/JUnit Tests/org/eclipse/swt/tests/junit/Test_org_eclipse_swt_events_SelectionAdapter.java tests/org.eclipse.swt.tests/JUnit Tests/org/eclipse/swt/tests/junit/Test_org_eclipse_swt_events_SelectionEvent.java tests/org.eclipse.swt.tests/JUnit Tests/org/eclipse/swt/tests/junit/Test_org_eclipse_swt_events_SelectionListener.java tests/org.eclipse.swt.tests/JUnit Tests/org/eclipse/swt/tests/junit/Test_org_eclipse_swt_events_ShellAdapter.java tests/org.eclipse.swt.tests/JUnit Tests/org/eclipse/swt/tests/junit/Test_org_eclipse_swt_events_ShellEvent.java tests/org.eclipse.swt.tests/JUnit Tests/org/eclipse/swt/tests/junit/Test_org_eclipse_swt_events_ShellListener.java tests/org.eclipse.swt.tests/JUnit Tests/org/eclipse/swt/tests/junit/Test_org_eclipse_swt_events_TraverseEvent.java tests/org.eclipse.swt.tests/JUnit Tests/org/eclipse/swt/tests/junit/Test_org_eclipse_swt_events_TraverseListener.java tests/org.eclipse.swt.tests/JUnit Tests/org/eclipse/swt/tests/junit/Test_org_eclipse_swt_events_TreeAdapter.java tests/org.eclipse.swt.tests/JUnit Tests/org/eclipse/swt/tests/junit/Test_org_eclipse_swt_events_TreeEvent.java tests/org.eclipse.swt.tests/JUnit Tests/org/eclipse/swt/tests/junit/Test_org_eclipse_swt_events_TreeListener.java tests/org.eclipse.swt.tests/JUnit Tests/org/eclipse/swt/tests/junit/Test_org_eclipse_swt_events_TypedEvent.java tests/org.eclipse.swt.tests/JUnit Tests/org/eclipse/swt/tests/junit/Test_org_eclipse_swt_events_VerifyEvent.java tests/org.eclipse.swt.tests/JUnit Tests/org/eclipse/swt/tests/junit/Test_org_eclipse_swt_events_VerifyListener.java tests/org.eclipse.swt.tests/JUnit Tests/org/eclipse/swt/tests/junit/Test_org_eclipse_swt_graphics_Color.java tests/org.eclipse.swt.tests/JUnit Tests/org/eclipse/swt/tests/junit/Test_org_eclipse_swt_graphics_Cursor.java tests/org.eclipse.swt.tests/JUnit Tests/org/eclipse/swt/tests/junit/Test_org_eclipse_swt_graphics_Device.java tests/org.eclipse.swt.tests/JUnit Tests/org/eclipse/swt/tests/junit/Test_org_eclipse_swt_graphics_DeviceData.java tests/org.eclipse.swt.tests/JUnit Tests/org/eclipse/swt/tests/junit/Test_org_eclipse_swt_graphics_Drawable.java tests/org.eclipse.swt.tests/JUnit Tests/org/eclipse/swt/tests/junit/Test_org_eclipse_swt_graphics_Font.java tests/org.eclipse.swt.tests/JUnit Tests/org/eclipse/swt/tests/junit/Test_org_eclipse_swt_graphics_FontData.java tests/org.eclipse.swt.tests/JUnit Tests/org/eclipse/swt/tests/junit/Test_org_eclipse_swt_graphics_FontMetrics.java tests/org.eclipse.swt.tests/JUnit Tests/org/eclipse/swt/tests/junit/Test_org_eclipse_swt_graphics_GC.java tests/org.eclipse.swt.tests/JUnit Tests/org/eclipse/swt/tests/junit/Test_org_eclipse_swt_graphics_GCData.java tests/org.eclipse.swt.tests/JUnit Tests/org/eclipse/swt/tests/junit/Test_org_eclipse_swt_graphics_Image.java tests/org.eclipse.swt.tests/JUnit Tests/org/eclipse/swt/tests/junit/Test_org_eclipse_swt_graphics_ImageData.java tests/org.eclipse.swt.tests/JUnit Tests/org/eclipse/swt/tests/junit/Test_org_eclipse_swt_graphics_ImageLoader.java tests/org.eclipse.swt.tests/JUnit Tests/org/eclipse/swt/tests/junit/Test_org_eclipse_swt_graphics_ImageLoaderEvent.java tests/org.eclipse.swt.tests/JUnit Tests/org/eclipse/swt/tests/junit/Test_org_eclipse_swt_graphics_ImageLoaderListener.java tests/org.eclipse.swt.tests/JUnit Tests/org/eclipse/swt/tests/junit/Test_org_eclipse_swt_graphics_PaletteData.java tests/org.eclipse.swt.tests/JUnit Tests/org/eclipse/swt/tests/junit/Test_org_eclipse_swt_graphics_Point.java tests/org.eclipse.swt.tests/JUnit Tests/org/eclipse/swt/tests/junit/Test_org_eclipse_swt_graphics_RGB.java tests/org.eclipse.swt.tests/JUnit Tests/org/eclipse/swt/tests/junit/Test_org_eclipse_swt_graphics_Rectangle.java tests/org.eclipse.swt.tests/JUnit Tests/org/eclipse/swt/tests/junit/Test_org_eclipse_swt_graphics_Region.java tests/org.eclipse.swt.tests/JUnit Tests/org/eclipse/swt/tests/junit/Test_org_eclipse_swt_layout_FillLayout.java tests/org.eclipse.swt.tests/JUnit Tests/org/eclipse/swt/tests/junit/Test_org_eclipse_swt_layout_FormAttachment.java tests/org.eclipse.swt.tests/JUnit Tests/org/eclipse/swt/tests/junit/Test_org_eclipse_swt_layout_FormData.java tests/org.eclipse.swt.tests/JUnit Tests/org/eclipse/swt/tests/junit/Test_org_eclipse_swt_layout_FormLayout.java tests/org.eclipse.swt.tests/JUnit Tests/org/eclipse/swt/tests/junit/Test_org_eclipse_swt_layout_GridData.java tests/org.eclipse.swt.tests/JUnit Tests/org/eclipse/swt/tests/junit/Test_org_eclipse_swt_layout_GridLayout.java tests/org.eclipse.swt.tests/JUnit Tests/org/eclipse/swt/tests/junit/Test_org_eclipse_swt_layout_RowData.java tests/org.eclipse.swt.tests/JUnit Tests/org/eclipse/swt/tests/junit/Test_org_eclipse_swt_layout_RowLayout.java tests/org.eclipse.swt.tests/JUnit Tests/org/eclipse/swt/tests/junit/Test_org_eclipse_swt_ole_win32_OLE.java tests/org.eclipse.swt.tests/JUnit Tests/org/eclipse/swt/tests/junit/Test_org_eclipse_swt_ole_win32_OleAutomation.java tests/org.eclipse.swt.tests/JUnit Tests/org/eclipse/swt/tests/junit/Test_org_eclipse_swt_ole_win32_OleClientSite.java tests/org.eclipse.swt.tests/JUnit Tests/org/eclipse/swt/tests/junit/Test_org_eclipse_swt_ole_win32_OleControlSite.java tests/org.eclipse.swt.tests/JUnit Tests/org/eclipse/swt/tests/junit/Test_org_eclipse_swt_ole_win32_OleEvent.java tests/org.eclipse.swt.tests/JUnit Tests/org/eclipse/swt/tests/junit/Test_org_eclipse_swt_ole_win32_OleFrame.java tests/org.eclipse.swt.tests/JUnit Tests/org/eclipse/swt/tests/junit/Test_org_eclipse_swt_ole_win32_OleFunctionDescription.java tests/org.eclipse.swt.tests/JUnit Tests/org/eclipse/swt/tests/junit/Test_org_eclipse_swt_ole_win32_OleListener.java tests/org.eclipse.swt.tests/JUnit Tests/org/eclipse/swt/tests/junit/Test_org_eclipse_swt_ole_win32_OleParameterDescription.java tests/org.eclipse.swt.tests/JUnit Tests/org/eclipse/swt/tests/junit/Test_org_eclipse_swt_ole_win32_OlePropertyDescription.java tests/org.eclipse.swt.tests/JUnit Tests/org/eclipse/swt/tests/junit/Test_org_eclipse_swt_ole_win32_Variant.java tests/org.eclipse.swt.tests/JUnit Tests/org/eclipse/swt/tests/junit/Test_org_eclipse_swt_printing_PrintDialog.java tests/org.eclipse.swt.tests/JUnit Tests/org/eclipse/swt/tests/junit/Test_org_eclipse_swt_printing_Printer.java tests/org.eclipse.swt.tests/JUnit Tests/org/eclipse/swt/tests/junit/Test_org_eclipse_swt_printing_PrinterData.java tests/org.eclipse.swt.tests/JUnit Tests/org/eclipse/swt/tests/junit/Test_org_eclipse_swt_program_Program.java tests/org.eclipse.swt.tests/JUnit Tests/org/eclipse/swt/tests/junit/Test_org_eclipse_swt_widgets_Button.java tests/org.eclipse.swt.tests/JUnit Tests/org/eclipse/swt/tests/junit/Test_org_eclipse_swt_widgets_Canvas.java tests/org.eclipse.swt.tests/JUnit Tests/org/eclipse/swt/tests/junit/Test_org_eclipse_swt_widgets_Caret.java tests/org.eclipse.swt.tests/JUnit Tests/org/eclipse/swt/tests/junit/Test_org_eclipse_swt_widgets_ColorDialog.java tests/org.eclipse.swt.tests/JUnit Tests/org/eclipse/swt/tests/junit/Test_org_eclipse_swt_widgets_Combo.java tests/org.eclipse.swt.tests/JUnit Tests/org/eclipse/swt/tests/junit/Test_org_eclipse_swt_widgets_Composite.java tests/org.eclipse.swt.tests/JUnit Tests/org/eclipse/swt/tests/junit/Test_org_eclipse_swt_widgets_Control.java tests/org.eclipse.swt.tests/JUnit Tests/org/eclipse/swt/tests/junit/Test_org_eclipse_swt_widgets_CoolBar.java tests/org.eclipse.swt.tests/JUnit Tests/org/eclipse/swt/tests/junit/Test_org_eclipse_swt_widgets_CoolItem.java tests/org.eclipse.swt.tests/JUnit Tests/org/eclipse/swt/tests/junit/Test_org_eclipse_swt_widgets_Decorations.java tests/org.eclipse.swt.tests/JUnit Tests/org/eclipse/swt/tests/junit/Test_org_eclipse_swt_widgets_Dialog.java tests/org.eclipse.swt.tests/JUnit Tests/org/eclipse/swt/tests/junit/Test_org_eclipse_swt_widgets_DirectoryDialog.java tests/org.eclipse.swt.tests/JUnit Tests/org/eclipse/swt/tests/junit/Test_org_eclipse_swt_widgets_Display.java tests/org.eclipse.swt.tests/JUnit Tests/org/eclipse/swt/tests/junit/Test_org_eclipse_swt_widgets_Event.java tests/org.eclipse.swt.tests/JUnit Tests/org/eclipse/swt/tests/junit/Test_org_eclipse_swt_widgets_ExpandBar.java tests/org.eclipse.swt.tests/JUnit Tests/org/eclipse/swt/tests/junit/Test_org_eclipse_swt_widgets_ExpandItem.java tests/org.eclipse.swt.tests/JUnit Tests/org/eclipse/swt/tests/junit/Test_org_eclipse_swt_widgets_FileDialog.java tests/org.eclipse.swt.tests/JUnit Tests/org/eclipse/swt/tests/junit/Test_org_eclipse_swt_widgets_FontDialog.java tests/org.eclipse.swt.tests/JUnit Tests/org/eclipse/swt/tests/junit/Test_org_eclipse_swt_widgets_Group.java tests/org.eclipse.swt.tests/JUnit Tests/org/eclipse/swt/tests/junit/Test_org_eclipse_swt_widgets_Item.java tests/org.eclipse.swt.tests/JUnit Tests/org/eclipse/swt/tests/junit/Test_org_eclipse_swt_widgets_Label.java tests/org.eclipse.swt.tests/JUnit Tests/org/eclipse/swt/tests/junit/Test_org_eclipse_swt_widgets_Layout.java tests/org.eclipse.swt.tests/JUnit Tests/org/eclipse/swt/tests/junit/Test_org_eclipse_swt_widgets_Link.java tests/org.eclipse.swt.tests/JUnit Tests/org/eclipse/swt/tests/junit/Test_org_eclipse_swt_widgets_List.java tests/org.eclipse.swt.tests/JUnit Tests/org/eclipse/swt/tests/junit/Test_org_eclipse_swt_widgets_Listener.java tests/org.eclipse.swt.tests/JUnit Tests/org/eclipse/swt/tests/junit/Test_org_eclipse_swt_widgets_Menu.java tests/org.eclipse.swt.tests/JUnit Tests/org/eclipse/swt/tests/junit/Test_org_eclipse_swt_widgets_MenuItem.java tests/org.eclipse.swt.tests/JUnit Tests/org/eclipse/swt/tests/junit/Test_org_eclipse_swt_widgets_MessageBox.java tests/org.eclipse.swt.tests/JUnit Tests/org/eclipse/swt/tests/junit/Test_org_eclipse_swt_widgets_Monitor.java tests/org.eclipse.swt.tests/JUnit Tests/org/eclipse/swt/tests/junit/Test_org_eclipse_swt_widgets_ProgressBar.java tests/org.eclipse.swt.tests/JUnit Tests/org/eclipse/swt/tests/junit/Test_org_eclipse_swt_widgets_Sash.java tests/org.eclipse.swt.tests/JUnit Tests/org/eclipse/swt/tests/junit/Test_org_eclipse_swt_widgets_Scale.java tests/org.eclipse.swt.tests/JUnit Tests/org/eclipse/swt/tests/junit/Test_org_eclipse_swt_widgets_ScrollBar.java tests/org.eclipse.swt.tests/JUnit Tests/org/eclipse/swt/tests/junit/Test_org_eclipse_swt_widgets_Scrollable.java tests/org.eclipse.swt.tests/JUnit Tests/org/eclipse/swt/tests/junit/Test_org_eclipse_swt_widgets_Shell.java tests/org.eclipse.swt.tests/JUnit Tests/org/eclipse/swt/tests/junit/Test_org_eclipse_swt_widgets_Slider.java tests/org.eclipse.swt.tests/JUnit Tests/org/eclipse/swt/tests/junit/Test_org_eclipse_swt_widgets_Synchronizer.java tests/org.eclipse.swt.tests/JUnit Tests/org/eclipse/swt/tests/junit/Test_org_eclipse_swt_widgets_TabFolder.java tests/org.eclipse.swt.tests/JUnit Tests/org/eclipse/swt/tests/junit/Test_org_eclipse_swt_widgets_TabItem.java tests/org.eclipse.swt.tests/JUnit Tests/org/eclipse/swt/tests/junit/Test_org_eclipse_swt_widgets_Table.java tests/org.eclipse.swt.tests/JUnit Tests/org/eclipse/swt/tests/junit/Test_org_eclipse_swt_widgets_TableColumn.java tests/org.eclipse.swt.tests/JUnit Tests/org/eclipse/swt/tests/junit/Test_org_eclipse_swt_widgets_TableItem.java tests/org.eclipse.swt.tests/JUnit Tests/org/eclipse/swt/tests/junit/Test_org_eclipse_swt_widgets_Text.java tests/org.eclipse.swt.tests/JUnit Tests/org/eclipse/swt/tests/junit/Test_org_eclipse_swt_widgets_ToolBar.java tests/org.eclipse.swt.tests/JUnit Tests/org/eclipse/swt/tests/junit/Test_org_eclipse_swt_widgets_ToolItem.java tests/org.eclipse.swt.tests/JUnit Tests/org/eclipse/swt/tests/junit/Test_org_eclipse_swt_widgets_Tracker.java tests/org.eclipse.swt.tests/JUnit Tests/org/eclipse/swt/tests/junit/Test_org_eclipse_swt_widgets_Tree.java tests/org.eclipse.swt.tests/JUnit Tests/org/eclipse/swt/tests/junit/Test_org_eclipse_swt_widgets_TreeColumn.java tests/org.eclipse.swt.tests/JUnit Tests/org/eclipse/swt/tests/junit/Test_org_eclipse_swt_widgets_TreeItem.java tests/org.eclipse.swt.tests/JUnit Tests/org/eclipse/swt/tests/junit/Test_org_eclipse_swt_widgets_TypedListener.java tests/org.eclipse.swt.tests/JUnit Tests/org/eclipse/swt/tests/junit/Test_org_eclipse_swt_widgets_Widget.java tests/org.eclipse.swt.tests/JUnit Tests/org/eclipse/swt/tests/junit/browser/Browser1.java tests/org.eclipse.swt.tests/JUnit Tests/org/eclipse/swt/tests/junit/browser/Browser2.java tests/org.eclipse.swt.tests/JUnit Tests/org/eclipse/swt/tests/junit/browser/Browser3.java tests/org.eclipse.swt.tests/JUnit Tests/org/eclipse/swt/tests/junit/browser/Browser4.java tests/org.eclipse.swt.tests/JUnit Tests/org/eclipse/swt/tests/junit/browser/Browser5.java tests/org.eclipse.swt.tests/JUnit Tests/org/eclipse/swt/tests/junit/browser/Browser6.java tests/org.eclipse.swt.tests/JUnit Tests/org/eclipse/swt/tests/junit/browser/Browser7.java tests/org.eclipse.swt.tests/JUnit Tests/org/eclipse/swt/tests/junit/browser/Browser8.java tests/org.eclipse.swt.tests/JUnit Tests/org/eclipse/swt/tests/junit/browser/Browser9.java tests/org.eclipse.swt.tests/JUnit Tests/org/eclipse/swt/tests/junit/browser/Test_BrowserSuite.java tests/org.eclipse.swt.tests/JUnit Tests/org/eclipse/swt/tests/junit/corrupt.bmp tests/org.eclipse.swt.tests/JUnit Tests/org/eclipse/swt/tests/junit/corrupt.gif tests/org.eclipse.swt.tests/JUnit Tests/org/eclipse/swt/tests/junit/corrupt.jpg tests/org.eclipse.swt.tests/JUnit Tests/org/eclipse/swt/tests/junit/corrupt.png tests/org.eclipse.swt.tests/JUnit Tests/org/eclipse/swt/tests/junit/corruptBadBitDepth.png tests/org.eclipse.swt.tests/JUnit Tests/org/eclipse/swt/tests/junit/empty.txt tests/org.eclipse.swt.tests/JUnit Tests/org/eclipse/swt/tests/junit/folder.bmp tests/org.eclipse.swt.tests/JUnit Tests/org/eclipse/swt/tests/junit/folder.gif tests/org.eclipse.swt.tests/JUnit Tests/org/eclipse/swt/tests/junit/folder.jpg tests/org.eclipse.swt.tests/JUnit Tests/org/eclipse/swt/tests/junit/folder.png tests/org.eclipse.swt.tests/JUnit Tests/org/eclipse/swt/tests/junit/folderOpen.bmp tests/org.eclipse.swt.tests/JUnit Tests/org/eclipse/swt/tests/junit/folderOpen.gif tests/org.eclipse.swt.tests/JUnit Tests/org/eclipse/swt/tests/junit/folderOpen.jpg tests/org.eclipse.swt.tests/JUnit Tests/org/eclipse/swt/tests/junit/folderOpen.png tests/org.eclipse.swt.tests/JUnit Tests/org/eclipse/swt/tests/junit/interlaced_target.png tests/org.eclipse.swt.tests/JUnit Tests/org/eclipse/swt/tests/junit/junitGen.java tests/org.eclipse.swt.tests/JUnit Tests/org/eclipse/swt/tests/junit/performance/PerformanceTests.java tests/org.eclipse.swt.tests/JUnit Tests/org/eclipse/swt/tests/junit/performance/SwtPerformanceTestCase.java tests/org.eclipse.swt.tests/JUnit Tests/org/eclipse/swt/tests/junit/performance/Test_situational.java tests/org.eclipse.swt.tests/JUnit Tests/org/eclipse/swt/tests/junit/target.bmp tests/org.eclipse.swt.tests/JUnit Tests/org/eclipse/swt/tests/junit/target.gif tests/org.eclipse.swt.tests/JUnit Tests/org/eclipse/swt/tests/junit/target.jpg tests/org.eclipse.swt.tests/JUnit Tests/org/eclipse/swt/tests/junit/target.png tests/org.eclipse.swt.tests/JUnit Tests/org/eclipse/swt/tests/junit/transparent.png tests/org.eclipse.swt.tests/about.html tests/org.eclipse.swt.tests/build.properties tests/org.eclipse.swt.tests/data/browser3.html tests/org.eclipse.swt.tests/data/browser4.html tests/org.eclipse.swt.tests/data/browser4a.html tests/org.eclipse.swt.tests/data/browser5.html tests/org.eclipse.swt.tests/data/browser6.html tests/org.eclipse.swt.tests/data/browser7.html tests/org.eclipse.swt.tests/data/browser9.html tests/org.eclipse.swt.tests/data/corrupt.bmp tests/org.eclipse.swt.tests/data/corrupt.gif tests/org.eclipse.swt.tests/data/corrupt.jpg tests/org.eclipse.swt.tests/data/corrupt.png tests/org.eclipse.swt.tests/data/corruptBadBitDepth.png tests/org.eclipse.swt.tests/data/empty.txt tests/org.eclipse.swt.tests/data/folder.bmp tests/org.eclipse.swt.tests/data/folder.gif tests/org.eclipse.swt.tests/data/folder.jpg tests/org.eclipse.swt.tests/data/folder.png tests/org.eclipse.swt.tests/data/folderOpen.bmp tests/org.eclipse.swt.tests/data/folderOpen.gif tests/org.eclipse.swt.tests/data/folderOpen.jpg tests/org.eclipse.swt.tests/data/folderOpen.png tests/org.eclipse.swt.tests/data/target.bmp tests/org.eclipse.swt.tests/data/target.gif tests/org.eclipse.swt.tests/data/target.jpg tests/org.eclipse.swt.tests/data/target.png tests/org.eclipse.swt.tests/data/transparent.png tests/org.eclipse.swt.tests/plugin.properties tests/org.eclipse.swt.tests/plugin.xml tests/org.eclipse.swt.tests/test.xml
Diffstat (limited to 'bundles')
-rwxr-xr-xbundles/org.eclipse.swt.opengl/.classpath_carbon13
-rw-r--r--bundles/org.eclipse.swt.opengl/.classpath_gtk13
-rw-r--r--bundles/org.eclipse.swt.opengl/.classpath_motif9
-rw-r--r--bundles/org.eclipse.swt.opengl/.classpath_win3213
-rw-r--r--bundles/org.eclipse.swt.opengl/.cvsignore3
-rw-r--r--bundles/org.eclipse.swt.opengl/.project30
-rw-r--r--bundles/org.eclipse.swt.opengl/META-INF/MANIFEST.MF9
-rw-r--r--bundles/org.eclipse.swt.opengl/about.html22
-rw-r--r--bundles/org.eclipse.swt.opengl/carbon/library/agl.c193
-rw-r--r--bundles/org.eclipse.swt.opengl/carbon/library/agl.h3
-rw-r--r--bundles/org.eclipse.swt.opengl/carbon/library/agl_stats.c56
-rw-r--r--bundles/org.eclipse.swt.opengl/carbon/library/agl_stats.h38
-rw-r--r--bundles/org.eclipse.swt.opengl/carbon/library/agl_structs.h13
-rw-r--r--bundles/org.eclipse.swt.opengl/carbon/org/eclipse/swt/internal/opengl/carbon/AGL.java63
-rwxr-xr-xbundles/org.eclipse.swt.opengl/carbon/org/eclipse/swt/opengl/GLCanvas.java255
-rw-r--r--bundles/org.eclipse.swt.opengl/common/library/gl.c5927
-rw-r--r--bundles/org.eclipse.swt.opengl/common/library/gl.h10
-rw-r--r--bundles/org.eclipse.swt.opengl/common/library/gl_stats.c366
-rw-r--r--bundles/org.eclipse.swt.opengl/common/library/gl_stats.h348
-rw-r--r--bundles/org.eclipse.swt.opengl/common/library/gl_structs.c3
-rw-r--r--bundles/org.eclipse.swt.opengl/common/library/gl_structs.h2
-rw-r--r--bundles/org.eclipse.swt.opengl/common/library/glu.c798
-rw-r--r--bundles/org.eclipse.swt.opengl/common/library/glu.h10
-rw-r--r--bundles/org.eclipse.swt.opengl/common/library/glu_stats.c82
-rw-r--r--bundles/org.eclipse.swt.opengl/common/library/glu_stats.h64
-rw-r--r--bundles/org.eclipse.swt.opengl/common/library/glu_structs.c3
-rw-r--r--bundles/org.eclipse.swt.opengl/common/library/glu_structs.h2
-rw-r--r--bundles/org.eclipse.swt.opengl/common/library/swt.h50
-rwxr-xr-xbundles/org.eclipse.swt.opengl/common/org/eclipse/opengl/GL.java1447
-rwxr-xr-xbundles/org.eclipse.swt.opengl/common/org/eclipse/opengl/GLU.java245
-rw-r--r--bundles/org.eclipse.swt.opengl/common/org/eclipse/swt/opengl/GLData.java135
-rw-r--r--bundles/org.eclipse.swt.opengl/common/org/eclipse/swt/opengl/ImageDataUtil.java566
-rw-r--r--bundles/org.eclipse.swt.opengl/gtk/library/build.sh29
-rw-r--r--bundles/org.eclipse.swt.opengl/gtk/library/glx.c290
-rw-r--r--bundles/org.eclipse.swt.opengl/gtk/library/glx.h2
-rw-r--r--bundles/org.eclipse.swt.opengl/gtk/library/glx_stats.c63
-rw-r--r--bundles/org.eclipse.swt.opengl/gtk/library/glx_stats.h45
-rw-r--r--bundles/org.eclipse.swt.opengl/gtk/library/glx_structs.c72
-rw-r--r--bundles/org.eclipse.swt.opengl/gtk/library/glx_structs.h25
-rw-r--r--bundles/org.eclipse.swt.opengl/gtk/library/make_linux.mak34
-rw-r--r--bundles/org.eclipse.swt.opengl/gtk/library/structs.c73
-rw-r--r--bundles/org.eclipse.swt.opengl/gtk/library/structs.h16
-rwxr-xr-xbundles/org.eclipse.swt.opengl/gtk/org/eclipse/swt/internal/opengl/gtk/GLX.java221
-rw-r--r--bundles/org.eclipse.swt.opengl/gtk/org/eclipse/swt/opengl/GLCanvas.java257
-rw-r--r--bundles/org.eclipse.swt.opengl/motif/library/build.sh70
-rw-r--r--bundles/org.eclipse.swt.opengl/motif/library/glx.c232
-rw-r--r--bundles/org.eclipse.swt.opengl/motif/library/make_aix.mak40
-rw-r--r--bundles/org.eclipse.swt.opengl/motif/library/make_hpux.mak44
-rw-r--r--bundles/org.eclipse.swt.opengl/motif/library/make_linux.mak38
-rw-r--r--bundles/org.eclipse.swt.opengl/motif/library/make_solaris.mak45
-rw-r--r--bundles/org.eclipse.swt.opengl/motif/library/structs.c73
-rw-r--r--bundles/org.eclipse.swt.opengl/motif/library/structs.h16
-rw-r--r--bundles/org.eclipse.swt.opengl/motif/org/eclipse/swt/opengl/GLContext.java303
-rw-r--r--bundles/org.eclipse.swt.opengl/motif/org/eclipse/swt/opengl/internal/motif/XGL.java227
-rw-r--r--bundles/org.eclipse.swt.opengl/plugin.properties12
-rw-r--r--bundles/org.eclipse.swt.opengl/plugin.xml19
-rw-r--r--bundles/org.eclipse.swt.opengl/win32/library/build.bat34
-rw-r--r--bundles/org.eclipse.swt.opengl/win32/library/glw.c283
-rw-r--r--bundles/org.eclipse.swt.opengl/win32/library/make_win32.mak56
-rw-r--r--bundles/org.eclipse.swt.opengl/win32/library/structs.c304
-rw-r--r--bundles/org.eclipse.swt.opengl/win32/library/structs.h24
-rw-r--r--bundles/org.eclipse.swt.opengl/win32/library/swt.rc67
-rw-r--r--bundles/org.eclipse.swt.opengl/win32/org/eclipse/swt/opengl/GLCanvas.java189
-rw-r--r--bundles/org.eclipse.swt.opengl/win32/org/eclipse/swt/opengl/internal/win32/LAYERPLANEDESCRIPTOR.java40
-rw-r--r--bundles/org.eclipse.swt.opengl/win32/org/eclipse/swt/opengl/internal/win32/PIXELFORMATDESCRIPTOR.java42
-rw-r--r--bundles/org.eclipse.swt.opengl/win32/org/eclipse/swt/opengl/internal/win32/WGL.java136
-rw-r--r--bundles/org.eclipse.swt.tools/JNI Generation/org/eclipse/swt/tools/internal/org.eclipse.swt.internal.gtk.OS.properties8
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT PI/win32/org/eclipse/swt/internal/win32/HDHITTESTINFO.java20
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT PI/win32/org/eclipse/swt/internal/win32/NMTVITEMCHANGE.java20
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT PI/win32/org/eclipse/swt/internal/win32/OFNOTIFY.java (renamed from bundles/org.eclipse.swt.opengl/common/library/swt.c)20
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT PI/win32/org/eclipse/swt/internal/win32/PROCESS_INFORMATION.java19
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT PI/win32/org/eclipse/swt/internal/win32/SHFILEINFO.java (renamed from bundles/org.eclipse.swt.opengl/common/org/eclipse/swt/opengl/Library.java)21
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT PI/win32/org/eclipse/swt/internal/win32/SHFILEINFOA.java (renamed from bundles/org.eclipse.swt.opengl/motif/org/eclipse/swt/opengl/internal/motif/XVisualInfo.java)17
-rw-r--r--[-rwxr-xr-x]bundles/org.eclipse.swt/Eclipse SWT PI/win32/org/eclipse/swt/internal/win32/SHFILEINFOW.java (renamed from bundles/org.eclipse.swt.opengl/gtk/org/eclipse/swt/internal/opengl/gtk/XVisualInfo.java)17
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT PI/win32/org/eclipse/swt/internal/win32/STARTUPINFO.java33
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT PI/win32/org/eclipse/swt/internal/win32/SYSTEMTIME.java23
76 files changed, 140 insertions, 14270 deletions
diff --git a/bundles/org.eclipse.swt.opengl/.classpath_carbon b/bundles/org.eclipse.swt.opengl/.classpath_carbon
deleted file mode 100755
index 027aa0d963..0000000000
--- a/bundles/org.eclipse.swt.opengl/.classpath_carbon
+++ /dev/null
@@ -1,13 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<classpath>
- <classpathentry sourcepath="JRE_SRC" kind="var" path="JRE_LIB"/>
- <classpathentry kind="src" path="common"/>
- <classpathentry kind="src" path="carbon">
- <attributes>
- <attribute value="org.eclipse.swt.opengl.carbon" name="org.eclipse.jdt.launching.CLASSPATH_ATTR_LIBRARY_PATH_ENTRY"/>
- </attributes>
- </classpathentry>
- <classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/>
- <classpathentry kind="src" path="/org.eclipse.swt"/>
- <classpathentry kind="output" path="bin"/>
-</classpath> \ No newline at end of file
diff --git a/bundles/org.eclipse.swt.opengl/.classpath_gtk b/bundles/org.eclipse.swt.opengl/.classpath_gtk
deleted file mode 100644
index f310079407..0000000000
--- a/bundles/org.eclipse.swt.opengl/.classpath_gtk
+++ /dev/null
@@ -1,13 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<classpath>
- <classpathentry sourcepath="JRE_SRC" kind="var" path="JRE_LIB"/>
- <classpathentry kind="src" path="common"/>
- <classpathentry kind="src" path="gtk">
- <attributes>
- <attribute value="org.eclipse.swt.opengl.gtk/os/linux/x86" name="org.eclipse.jdt.launching.CLASSPATH_ATTR_LIBRARY_PATH_ENTRY"/>
- </attributes>
- </classpathentry>
- <classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/>
- <classpathentry kind="src" path="/org.eclipse.swt"/>
- <classpathentry kind="output" path="bin"/>
-</classpath> \ No newline at end of file
diff --git a/bundles/org.eclipse.swt.opengl/.classpath_motif b/bundles/org.eclipse.swt.opengl/.classpath_motif
deleted file mode 100644
index 75b5fe1e19..0000000000
--- a/bundles/org.eclipse.swt.opengl/.classpath_motif
+++ /dev/null
@@ -1,9 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<classpath>
- <classpathentry sourcepath="JRE_SRC" kind="var" path="JRE_LIB"/>
- <classpathentry kind="src" path="common"/>
- <classpathentry kind="src" path="motif"/>
- <classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/>
- <classpathentry kind="src" path="/org.eclipse.swt"/>
- <classpathentry kind="output" path="bin"/>
-</classpath> \ No newline at end of file
diff --git a/bundles/org.eclipse.swt.opengl/.classpath_win32 b/bundles/org.eclipse.swt.opengl/.classpath_win32
deleted file mode 100644
index 478159eed2..0000000000
--- a/bundles/org.eclipse.swt.opengl/.classpath_win32
+++ /dev/null
@@ -1,13 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<classpath>
- <classpathentry sourcepath="JRE_SRC" kind="var" path="JRE_LIB"/>
- <classpathentry kind="src" path="common"/>
- <classpathentry kind="src" path="win32">
- <attributes>
- <attribute value="org.eclipse.swt.opengl.win32/os/win32/x86" name="org.eclipse.jdt.launching.CLASSPATH_ATTR_LIBRARY_PATH_ENTRY"/>
- </attributes>
- </classpathentry>
- <classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/>
- <classpathentry kind="src" path="/org.eclipse.swt"/>
- <classpathentry kind="output" path="bin"/>
-</classpath>
diff --git a/bundles/org.eclipse.swt.opengl/.cvsignore b/bundles/org.eclipse.swt.opengl/.cvsignore
deleted file mode 100644
index 661113b158..0000000000
--- a/bundles/org.eclipse.swt.opengl/.cvsignore
+++ /dev/null
@@ -1,3 +0,0 @@
-bin
-.classpath
-ws
diff --git a/bundles/org.eclipse.swt.opengl/.project b/bundles/org.eclipse.swt.opengl/.project
deleted file mode 100644
index 577537ae64..0000000000
--- a/bundles/org.eclipse.swt.opengl/.project
+++ /dev/null
@@ -1,30 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<projectDescription>
- <name>org.eclipse.swt.opengl</name>
- <comment></comment>
- <projects>
- <project>org.eclipse.swt</project>
- </projects>
- <buildSpec>
- <buildCommand>
- <name>org.eclipse.jdt.core.javabuilder</name>
- <arguments>
- </arguments>
- </buildCommand>
- <buildCommand>
- <name>org.eclipse.pde.ManifestBuilder</name>
- <arguments>
- </arguments>
- </buildCommand>
- <buildCommand>
- <name>org.eclipse.pde.SchemaBuilder</name>
- <arguments>
- </arguments>
- </buildCommand>
- </buildSpec>
- <natures>
- <nature>org.eclipse.jdt.core.javanature</nature>
- <nature>org.eclipse.pde.PluginNature</nature>
- <nature>org.eclipse.team.cvs.core.cvsnature</nature>
- </natures>
-</projectDescription>
diff --git a/bundles/org.eclipse.swt.opengl/META-INF/MANIFEST.MF b/bundles/org.eclipse.swt.opengl/META-INF/MANIFEST.MF
deleted file mode 100644
index 8da336df2e..0000000000
--- a/bundles/org.eclipse.swt.opengl/META-INF/MANIFEST.MF
+++ /dev/null
@@ -1,9 +0,0 @@
-Manifest-Version: 1.0
-Bundle-Name: %pluginName
-Bundle-Vendor: %providerName
-Bundle-SymbolicName: org.eclipse.swt.opengl; singleton=true
-Bundle-Version: 3.1.0
-Bundle-ClassPath: $ws$/opengl.jar
-Bundle-Localization: plugin
-Provide-Package:
- org.eclipse.swt.opengl
diff --git a/bundles/org.eclipse.swt.opengl/about.html b/bundles/org.eclipse.swt.opengl/about.html
deleted file mode 100644
index 6f6b96c4c8..0000000000
--- a/bundles/org.eclipse.swt.opengl/about.html
+++ /dev/null
@@ -1,22 +0,0 @@
-<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN">
-<html>
-<head>
-<title>About</title>
-<meta http-equiv=Content-Type content="text/html; charset=ISO-8859-1">
-</head>
-<body lang="EN-US">
-<h2>About This Content</h2>
-
-<p>February 24, 2005</p>
-<h3>License</h3>
-
-<p>The Eclipse Foundation makes available all content in this plug-in (&quot;Content&quot;). Unless otherwise indicated below, the Content is provided to you under the terms and conditions of the
-Eclipse Public License Version 1.0 (&quot;EPL&quot;). A copy of the EPL is available at <a href="http://www.eclipse.org/legal/epl-v10.html">http://www.eclipse.org/legal/epl-v10.html</a>.
-For purposes of the EPL, &quot;Program&quot; will mean the Content.</p>
-
-<p>If you did not receive this Content directly from the Eclipse Foundation, the Content is being redistributed by another party (&quot;Redistributor&quot;) and different terms and conditions may
-apply to your use of any object code in the Content. Check the Redistributor's license that was provided with the Content. If no such license exists, contact the Redistributor. Unless otherwise
-indicated below, the terms and conditions of the EPL still apply to any source code in the Content.</p>
-
-</body>
-</html> \ No newline at end of file
diff --git a/bundles/org.eclipse.swt.opengl/carbon/library/agl.c b/bundles/org.eclipse.swt.opengl/carbon/library/agl.c
deleted file mode 100644
index 6b612c0697..0000000000
--- a/bundles/org.eclipse.swt.opengl/carbon/library/agl.c
+++ /dev/null
@@ -1,193 +0,0 @@
-/*******************************************************************************
-* Copyright (c) 2000, 2005 IBM Corporation and others.
-* All rights reserved. This program and the accompanying materials
-* are made available under the terms of the Eclipse Public License v1.0
-* which accompanies this distribution, and is available at
-* http://www.eclipse.org/legal/epl-v10.html
-*
-* Contributors:
-* IBM Corporation - initial API and implementation
-*******************************************************************************/
-
-#include "swt.h"
-#include "agl_structs.h"
-#include "agl_stats.h"
-
-#define AGL_NATIVE(func) Java_org_eclipse_swt_internal_opengl_carbon_AGL_##func
-
-#ifndef NO_aglChoosePixelFormat
-JNIEXPORT jint JNICALL AGL_NATIVE(aglChoosePixelFormat)
- (JNIEnv *env, jclass that, jint arg0, jint arg1, jintArray arg2)
-{
- jint *lparg2=NULL;
- jint rc = 0;
- AGL_NATIVE_ENTER(env, that, aglChoosePixelFormat_FUNC);
- if (arg2) if ((lparg2 = (*env)->GetIntArrayElements(env, arg2, NULL)) == NULL) goto fail;
- rc = (jint)aglChoosePixelFormat(arg0, arg1, lparg2);
-fail:
- if (arg2 && lparg2) (*env)->ReleaseIntArrayElements(env, arg2, lparg2, 0);
- AGL_NATIVE_EXIT(env, that, aglChoosePixelFormat_FUNC);
- return rc;
-}
-#endif
-
-#ifndef NO_aglCreateContext
-JNIEXPORT jint JNICALL AGL_NATIVE(aglCreateContext)
- (JNIEnv *env, jclass that, jint arg0, jint arg1)
-{
- jint rc = 0;
- AGL_NATIVE_ENTER(env, that, aglCreateContext_FUNC);
- rc = (jint)aglCreateContext(arg0, arg1);
- AGL_NATIVE_EXIT(env, that, aglCreateContext_FUNC);
- return rc;
-}
-#endif
-
-#ifndef NO_aglDescribePixelFormat
-JNIEXPORT jboolean JNICALL AGL_NATIVE(aglDescribePixelFormat)
- (JNIEnv *env, jclass that, jint arg0, jint arg1, jintArray arg2)
-{
- jint *lparg2=NULL;
- jboolean rc = 0;
- AGL_NATIVE_ENTER(env, that, aglDescribePixelFormat_FUNC);
- if (arg2) if ((lparg2 = (*env)->GetIntArrayElements(env, arg2, NULL)) == NULL) goto fail;
- rc = (jboolean)aglDescribePixelFormat(arg0, arg1, lparg2);
-fail:
- if (arg2 && lparg2) (*env)->ReleaseIntArrayElements(env, arg2, lparg2, 0);
- AGL_NATIVE_EXIT(env, that, aglDescribePixelFormat_FUNC);
- return rc;
-}
-#endif
-
-#ifndef NO_aglDestroyContext
-JNIEXPORT jboolean JNICALL AGL_NATIVE(aglDestroyContext)
- (JNIEnv *env, jclass that, jint arg0)
-{
- jboolean rc = 0;
- AGL_NATIVE_ENTER(env, that, aglDestroyContext_FUNC);
- rc = (jboolean)aglDestroyContext(arg0);
- AGL_NATIVE_EXIT(env, that, aglDestroyContext_FUNC);
- return rc;
-}
-#endif
-
-#ifndef NO_aglDestroyPixelFormat
-JNIEXPORT void JNICALL AGL_NATIVE(aglDestroyPixelFormat)
- (JNIEnv *env, jclass that, jint arg0)
-{
- AGL_NATIVE_ENTER(env, that, aglDestroyPixelFormat_FUNC);
- aglDestroyPixelFormat(arg0);
- AGL_NATIVE_EXIT(env, that, aglDestroyPixelFormat_FUNC);
-}
-#endif
-
-#ifndef NO_aglEnable
-JNIEXPORT jboolean JNICALL AGL_NATIVE(aglEnable)
- (JNIEnv *env, jclass that, jint arg0, jint arg1)
-{
- jboolean rc = 0;
- AGL_NATIVE_ENTER(env, that, aglEnable_FUNC);
- rc = (jboolean)aglEnable(arg0, arg1);
- AGL_NATIVE_EXIT(env, that, aglEnable_FUNC);
- return rc;
-}
-#endif
-
-#ifndef NO_aglGetCurrentContext
-JNIEXPORT jint JNICALL AGL_NATIVE(aglGetCurrentContext)
- (JNIEnv *env, jclass that)
-{
- jint rc = 0;
- AGL_NATIVE_ENTER(env, that, aglGetCurrentContext_FUNC);
- rc = (jint)aglGetCurrentContext();
- AGL_NATIVE_EXIT(env, that, aglGetCurrentContext_FUNC);
- return rc;
-}
-#endif
-
-#ifndef NO_aglGetDrawable
-JNIEXPORT jint JNICALL AGL_NATIVE(aglGetDrawable)
- (JNIEnv *env, jclass that, jint arg0)
-{
- jint rc = 0;
- AGL_NATIVE_ENTER(env, that, aglGetDrawable_FUNC);
- rc = (jint)aglGetDrawable(arg0);
- AGL_NATIVE_EXIT(env, that, aglGetDrawable_FUNC);
- return rc;
-}
-#endif
-
-#ifndef NO_aglSetCurrentContext
-JNIEXPORT jboolean JNICALL AGL_NATIVE(aglSetCurrentContext)
- (JNIEnv *env, jclass that, jint arg0)
-{
- jboolean rc = 0;
- AGL_NATIVE_ENTER(env, that, aglSetCurrentContext_FUNC);
- rc = (jboolean)aglSetCurrentContext(arg0);
- AGL_NATIVE_EXIT(env, that, aglSetCurrentContext_FUNC);
- return rc;
-}
-#endif
-
-#ifndef NO_aglSetDrawable
-JNIEXPORT jboolean JNICALL AGL_NATIVE(aglSetDrawable)
- (JNIEnv *env, jclass that, jint arg0, jint arg1)
-{
- jboolean rc = 0;
- AGL_NATIVE_ENTER(env, that, aglSetDrawable_FUNC);
- rc = (jboolean)aglSetDrawable(arg0, arg1);
- AGL_NATIVE_EXIT(env, that, aglSetDrawable_FUNC);
- return rc;
-}
-#endif
-
-#ifndef NO_aglSetInteger__III
-JNIEXPORT jboolean JNICALL AGL_NATIVE(aglSetInteger__III)
- (JNIEnv *env, jclass that, jint arg0, jint arg1, jint arg2)
-{
- jboolean rc = 0;
- AGL_NATIVE_ENTER(env, that, aglSetInteger__III_FUNC);
- rc = (jboolean)aglSetInteger(arg0, arg1, arg2);
- AGL_NATIVE_EXIT(env, that, aglSetInteger__III_FUNC);
- return rc;
-}
-#endif
-
-#ifndef NO_aglSetInteger__II_3I
-JNIEXPORT jboolean JNICALL AGL_NATIVE(aglSetInteger__II_3I)
- (JNIEnv *env, jclass that, jint arg0, jint arg1, jintArray arg2)
-{
- jint *lparg2=NULL;
- jboolean rc = 0;
- AGL_NATIVE_ENTER(env, that, aglSetInteger__II_3I_FUNC);
- if (arg2) if ((lparg2 = (*env)->GetIntArrayElements(env, arg2, NULL)) == NULL) goto fail;
- rc = (jboolean)aglSetInteger(arg0, arg1, lparg2);
-fail:
- if (arg2 && lparg2) (*env)->ReleaseIntArrayElements(env, arg2, lparg2, 0);
- AGL_NATIVE_EXIT(env, that, aglSetInteger__II_3I_FUNC);
- return rc;
-}
-#endif
-
-#ifndef NO_aglSwapBuffers
-JNIEXPORT void JNICALL AGL_NATIVE(aglSwapBuffers)
- (JNIEnv *env, jclass that, jint arg0)
-{
- AGL_NATIVE_ENTER(env, that, aglSwapBuffers_FUNC);
- aglSwapBuffers(arg0);
- AGL_NATIVE_EXIT(env, that, aglSwapBuffers_FUNC);
-}
-#endif
-
-#ifndef NO_aglUpdateContext
-JNIEXPORT jboolean JNICALL AGL_NATIVE(aglUpdateContext)
- (JNIEnv *env, jclass that, jint arg0)
-{
- jboolean rc = 0;
- AGL_NATIVE_ENTER(env, that, aglUpdateContext_FUNC);
- rc = (jboolean)aglUpdateContext(arg0);
- AGL_NATIVE_EXIT(env, that, aglUpdateContext_FUNC);
- return rc;
-}
-#endif
-
diff --git a/bundles/org.eclipse.swt.opengl/carbon/library/agl.h b/bundles/org.eclipse.swt.opengl/carbon/library/agl.h
deleted file mode 100644
index 9a87d429a7..0000000000
--- a/bundles/org.eclipse.swt.opengl/carbon/library/agl.h
+++ /dev/null
@@ -1,3 +0,0 @@
-
-#include <OpenGL/gl.h>
-
diff --git a/bundles/org.eclipse.swt.opengl/carbon/library/agl_stats.c b/bundles/org.eclipse.swt.opengl/carbon/library/agl_stats.c
deleted file mode 100644
index c1f016799f..0000000000
--- a/bundles/org.eclipse.swt.opengl/carbon/library/agl_stats.c
+++ /dev/null
@@ -1,56 +0,0 @@
-/*******************************************************************************
-* Copyright (c) 2000, 2005 IBM Corporation and others.
-* All rights reserved. This program and the accompanying materials
-* are made available under the terms of the Eclipse Public License v1.0
-* which accompanies this distribution, and is available at
-* http://www.eclipse.org/legal/epl-v10.html
-*
-* Contributors:
-* IBM Corporation - initial API and implementation
-*******************************************************************************/
-
-#include "swt.h"
-#include "agl_stats.h"
-
-#ifdef NATIVE_STATS
-
-int AGL_nativeFunctionCount = 14;
-int AGL_nativeFunctionCallCount[14];
-char * AGL_nativeFunctionNames[] = {
- "aglChoosePixelFormat",
- "aglCreateContext",
- "aglDescribePixelFormat",
- "aglDestroyContext",
- "aglDestroyPixelFormat",
- "aglEnable",
- "aglGetCurrentContext",
- "aglGetDrawable",
- "aglSetCurrentContext",
- "aglSetDrawable",
- "aglSetInteger__III",
- "aglSetInteger__II_3I",
- "aglSwapBuffers",
- "aglUpdateContext",
-};
-
-#define STATS_NATIVE(func) Java_org_eclipse_swt_tools_internal_NativeStats_##func
-
-JNIEXPORT jint JNICALL STATS_NATIVE(AGL_1GetFunctionCount)
- (JNIEnv *env, jclass that)
-{
- return AGL_nativeFunctionCount;
-}
-
-JNIEXPORT jstring JNICALL STATS_NATIVE(AGL_1GetFunctionName)
- (JNIEnv *env, jclass that, jint index)
-{
- return (*env)->NewStringUTF(env, AGL_nativeFunctionNames[index]);
-}
-
-JNIEXPORT jint JNICALL STATS_NATIVE(AGL_1GetFunctionCallCount)
- (JNIEnv *env, jclass that, jint index)
-{
- return AGL_nativeFunctionCallCount[index];
-}
-
-#endif
diff --git a/bundles/org.eclipse.swt.opengl/carbon/library/agl_stats.h b/bundles/org.eclipse.swt.opengl/carbon/library/agl_stats.h
deleted file mode 100644
index fc359aff5c..0000000000
--- a/bundles/org.eclipse.swt.opengl/carbon/library/agl_stats.h
+++ /dev/null
@@ -1,38 +0,0 @@
-/*******************************************************************************
-* Copyright (c) 2000, 2005 IBM Corporation and others.
-* All rights reserved. This program and the accompanying materials
-* are made available under the terms of the Eclipse Public License v1.0
-* which accompanies this distribution, and is available at
-* http://www.eclipse.org/legal/epl-v10.html
-*
-* Contributors:
-* IBM Corporation - initial API and implementation
-*******************************************************************************/
-
-#ifdef NATIVE_STATS
-extern int AGL_nativeFunctionCount;
-extern int AGL_nativeFunctionCallCount[];
-extern char* AGL_nativeFunctionNames[];
-#define AGL_NATIVE_ENTER(env, that, func) AGL_nativeFunctionCallCount[func]++;
-#define AGL_NATIVE_EXIT(env, that, func)
-#else
-#define AGL_NATIVE_ENTER(env, that, func)
-#define AGL_NATIVE_EXIT(env, that, func)
-#endif
-
-typedef enum {
- aglChoosePixelFormat_FUNC,
- aglCreateContext_FUNC,
- aglDescribePixelFormat_FUNC,
- aglDestroyContext_FUNC,
- aglDestroyPixelFormat_FUNC,
- aglEnable_FUNC,
- aglGetCurrentContext_FUNC,
- aglGetDrawable_FUNC,
- aglSetCurrentContext_FUNC,
- aglSetDrawable_FUNC,
- aglSetInteger__III_FUNC,
- aglSetInteger__II_3I_FUNC,
- aglSwapBuffers_FUNC,
- aglUpdateContext_FUNC,
-} AGL_FUNCS;
diff --git a/bundles/org.eclipse.swt.opengl/carbon/library/agl_structs.h b/bundles/org.eclipse.swt.opengl/carbon/library/agl_structs.h
deleted file mode 100644
index 36531f5373..0000000000
--- a/bundles/org.eclipse.swt.opengl/carbon/library/agl_structs.h
+++ /dev/null
@@ -1,13 +0,0 @@
-/*******************************************************************************
-* Copyright (c) 2000, 2005 IBM Corporation and others.
-* All rights reserved. This program and the accompanying materials
-* are made available under the terms of the Eclipse Public License v1.0
-* which accompanies this distribution, and is available at
-* http://www.eclipse.org/legal/epl-v10.html
-*
-* Contributors:
-* IBM Corporation - initial API and implementation
-*******************************************************************************/
-
-#include "agl.h"
-
diff --git a/bundles/org.eclipse.swt.opengl/carbon/org/eclipse/swt/internal/opengl/carbon/AGL.java b/bundles/org.eclipse.swt.opengl/carbon/org/eclipse/swt/internal/opengl/carbon/AGL.java
deleted file mode 100644
index 3c1339e33e..0000000000
--- a/bundles/org.eclipse.swt.opengl/carbon/org/eclipse/swt/internal/opengl/carbon/AGL.java
+++ /dev/null
@@ -1,63 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2000, 2005 IBM Corporation and others.
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * IBM Corporation - initial API and implementation
- *******************************************************************************/
-package org.eclipse.swt.internal.opengl.carbon;
-
-import org.eclipse.swt.opengl.Library;
-
-public class AGL {
-
-static {
- Library.loadLibrary("gl");
-}
-
-/* Attributes */
-public static final int AGL_NONE = 0;
-public static final int AGL_BUFFER_SIZE = 2;
-public static final int AGL_LEVEL = 3;
-public static final int AGL_RGBA = 4;
-public static final int AGL_DOUBLEBUFFER = 5;
-public static final int AGL_STEREO = 6;
-public static final int AGL_AUX_BUFFERS = 7;
-public static final int AGL_RED_SIZE = 8;
-public static final int AGL_GREEN_SIZE = 9;
-public static final int AGL_BLUE_SIZE = 10;
-public static final int AGL_ALPHA_SIZE = 11;
-public static final int AGL_DEPTH_SIZE = 12;
-public static final int AGL_STENCIL_SIZE = 13;
-public static final int AGL_ACCUM_RED_SIZE = 14;
-public static final int AGL_ACCUM_GREEN_SIZE = 15;
-public static final int AGL_ACCUM_BLUE_SIZE = 16;
-public static final int AGL_ACCUM_ALPHA_SIZE = 17;
-
-public static final int AGL_SAMPLE_BUFFERS_ARB = 55;
-public static final int AGL_SAMPLES_ARB = 56;
-
-/* Integer parameters */
-public static final int AGL_BUFFER_RECT = 202;
-public static final int AGL_SWAP_INTERVAL = 222;
-public static final int AGL_BUFFER_NAME = 231;
-public static final int AGL_CLIP_REGION = 254;
-
-public static final native int aglChoosePixelFormat(int gdevs, int ndev, int[] attribs);
-public static final native int aglCreateContext(int pix, int share);
-public static final native boolean aglDescribePixelFormat(int pix, int attrib, int[] value);
-public static final native boolean aglDestroyContext(int ctx);
-public static final native void aglDestroyPixelFormat(int pix);
-public static final native boolean aglEnable(int ctx, int pname);
-public static final native int aglGetCurrentContext();
-public static final native int aglGetDrawable(int ctx);
-public static final native boolean aglSetCurrentContext(int ctx);
-public static final native boolean aglSetDrawable(int ctx, int draw);
-public static final native boolean aglSetInteger(int ctx, int pname, int[] params);
-public static final native boolean aglSetInteger(int ctx, int pname, int param);
-public static final native void aglSwapBuffers(int ctx);
-public static final native boolean aglUpdateContext(int ctx);
-} \ No newline at end of file
diff --git a/bundles/org.eclipse.swt.opengl/carbon/org/eclipse/swt/opengl/GLCanvas.java b/bundles/org.eclipse.swt.opengl/carbon/org/eclipse/swt/opengl/GLCanvas.java
deleted file mode 100755
index ebfc775bf3..0000000000
--- a/bundles/org.eclipse.swt.opengl/carbon/org/eclipse/swt/opengl/GLCanvas.java
+++ /dev/null
@@ -1,255 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2000, 2005 IBM Corporation and others.
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * IBM Corporation - initial API and implementation
- *******************************************************************************/
-package org.eclipse.swt.opengl;
-
-import org.eclipse.swt.*;
-import org.eclipse.swt.graphics.*;
-import org.eclipse.swt.widgets.*;
-import org.eclipse.swt.internal.carbon.*;
-import org.eclipse.swt.internal.opengl.carbon.*;
-
-/**
- * GLCanvas is a widget capable of displaying OpenGL content.
- */
-
-public class GLCanvas extends Canvas {
- int context;
- int pixelFormat;
- static final int MAX_ATTRIBUTES = 32;
-
-/**
- * Create a GLCanvas widget using the attributes described in the GLData
- * object provided.
- *
- * @param parent a composite widget
- * @param style the bitwise OR'ing of widget styles
- * @param data the requested attributes of the GLCanvas
- *
- * @exception IllegalArgumentException
- * <ul><li>ERROR_NULL_ARGUMENT when the data is null
- * <li>ERROR_UNSUPPORTED_DEPTH when the requested attributes cannot be provided</ul>
- * @exception SWTException
- * <ul><li>ERROR_THREAD_INVALID_ACCESS when called from the wrong thread
- * <li>ERROR_CANNOT_CREATE_OBJECT when failed to create OLE Object
- * <li>ERROR_CANNOT_OPEN_FILE when failed to open file
- * <li>ERROR_INTERFACE_NOT_FOUND when unable to create callbacks for OLE Interfaces
- * <li>ERROR_INVALID_CLASSID
- * </ul>
- */
-public GLCanvas (Composite parent, int style, GLData data) {
- super (parent, style);
- if (data == null) SWT.error (SWT.ERROR_NULL_ARGUMENT);
- int aglAttrib [] = new int [MAX_ATTRIBUTES];
- int pos = 0;
- aglAttrib [pos++] = AGL.AGL_RGBA;
- if (data.doubleBuffer) aglAttrib [pos++] = AGL.AGL_DOUBLEBUFFER;
- if (data.stereo) aglAttrib [pos++] = AGL.AGL_STEREO;
- if (data.redSize > 0) {
- aglAttrib [pos++] = AGL.AGL_RED_SIZE;
- aglAttrib [pos++] = data.redSize;
- }
- if (data.greenSize > 0) {
- aglAttrib [pos++] = AGL.AGL_GREEN_SIZE;
- aglAttrib [pos++] = data.greenSize;
- }
- if (data.blueSize > 0) {
- aglAttrib [pos++] = AGL.AGL_BLUE_SIZE;
- aglAttrib [pos++] = data.blueSize;
- }
- if (data.alphaSize > 0) {
- aglAttrib [pos++] = AGL.AGL_ALPHA_SIZE;
- aglAttrib [pos++] = data.alphaSize;
- }
- if (data.depthSize > 0) {
- aglAttrib [pos++] = AGL.AGL_DEPTH_SIZE;
- aglAttrib [pos++] = data.depthSize;
- }
- if (data.stencilSize > 0) {
- aglAttrib [pos++] = AGL.AGL_STENCIL_SIZE;
- aglAttrib [pos++] = data.stencilSize;
- }
- if (data.accumRedSize > 0) {
- aglAttrib [pos++] = AGL.AGL_ACCUM_RED_SIZE;
- aglAttrib [pos++] = data.accumRedSize;
- }
- if (data.accumGreenSize > 0) {
- aglAttrib [pos++] = AGL.AGL_ACCUM_GREEN_SIZE;
- aglAttrib [pos++] = data.accumGreenSize;
- }
- if (data.accumBlueSize > 0) {
- aglAttrib [pos++] = AGL.AGL_ACCUM_BLUE_SIZE;
- aglAttrib [pos++] = data.accumBlueSize;
- }
- if (data.accumAlphaSize > 0) {
- aglAttrib [pos++] = AGL.AGL_ACCUM_ALPHA_SIZE;
- aglAttrib [pos++] = data.accumAlphaSize;
- }
- if (data.sampleBuffers > 0) {
- aglAttrib [pos++] = AGL.AGL_SAMPLE_BUFFERS_ARB;
- aglAttrib [pos++] = data.sampleBuffers;
- }
- if (data.samples > 0) {
- aglAttrib [pos++] = AGL.AGL_SAMPLES_ARB;
- aglAttrib [pos++] = data.samples;
- }
- aglAttrib [pos++] = AGL.AGL_NONE;
- pixelFormat = AGL.aglChoosePixelFormat (0, 0, aglAttrib);
-// context = AGL.aglCreateContext (pixelFormat, share == null ? 0 : share.context);
- context = AGL.aglCreateContext (pixelFormat, 0);
- int window = OS.GetControlOwner (handle);
- int port = OS.GetWindowPort (window);
- AGL.aglSetDrawable (context, port);
-
- Listener listener = new Listener () {
- public void handleEvent (Event event) {
- switch (event.type) {
- case SWT.Dispose:
- AGL.aglDestroyContext (context);
- AGL.aglDestroyPixelFormat (pixelFormat);
- break;
- case SWT.Resize:
- case SWT.Hide:
- case SWT.Show:
- getDisplay().asyncExec(new Runnable() {
- public void run() {
- fixBounds();
- }
- });
- break;
- }
- }
- };
- addListener (SWT.Resize, listener);
- Shell shell = getShell();
- shell.addListener(SWT.Resize, listener);
- shell.addListener(SWT.Show, listener);
- shell.addListener(SWT.Hide, listener);
- Control c = this;
- do {
- c.addListener(SWT.Show, listener);
- c.addListener(SWT.Hide, listener);
- c = c.getParent();
- } while (c != shell);
- addListener (SWT.Dispose, listener);
-}
-
-void fixBounds () {
- GCData data = new GCData ();
- int gc = internal_new_GC (data);
- Rect bounds = new Rect ();
- OS.GetRegionBounds (data.visibleRgn, bounds);
- int width = bounds.right - bounds.left;
- int height = bounds.bottom - bounds.top;
- Rect rect = new Rect ();
- int window = OS.GetControlOwner (handle);
- int port = OS.GetWindowPort (window);
- OS.GetPortBounds (port, rect);
- int [] glbounds = new int [4];
- glbounds[0] = bounds.left;
- glbounds[1] = rect.bottom - rect.top - bounds.top - height;
- glbounds[2] = width;
- glbounds[3] = height;
- AGL.aglSetInteger (context, AGL.AGL_BUFFER_RECT, glbounds);
- AGL.aglEnable (context, AGL.AGL_BUFFER_RECT);
- AGL.aglSetInteger (context, AGL.AGL_CLIP_REGION, data.visibleRgn);
- AGL.aglUpdateContext (context);
- internal_dispose_GC (gc, data);
-}
-
-/**
- * Returns a GLData object describing the created context.
- *
- * @return GLData description of the OpenGL context attributes
- * @exception SWTException <ul>
- * <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li>
- * <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li>
- * </ul>
- */
-public GLData getGLData () {
- checkWidget ();
- GLData data = new GLData ();
- int [] value = new int [1];
- AGL.aglDescribePixelFormat (pixelFormat, AGL.AGL_DOUBLEBUFFER, value);
- data.doubleBuffer = value [0] != 0;
- AGL.aglDescribePixelFormat (pixelFormat, AGL.AGL_STEREO, value);
- data.stereo = value [0] != 0;
- AGL.aglDescribePixelFormat (pixelFormat, AGL.AGL_RED_SIZE, value);
- data.redSize = value [0];
- AGL.aglDescribePixelFormat (pixelFormat, AGL.AGL_GREEN_SIZE, value);
- data.greenSize = value [0];
- AGL.aglDescribePixelFormat (pixelFormat, AGL.AGL_BLUE_SIZE, value);
- data.blueSize = value [0];
- AGL.aglDescribePixelFormat (pixelFormat, AGL.AGL_ALPHA_SIZE, value);
- data.alphaSize = value [0];
- AGL.aglDescribePixelFormat (pixelFormat, AGL.AGL_DEPTH_SIZE, value);
- data.depthSize = value [0];
- AGL.aglDescribePixelFormat (pixelFormat, AGL.AGL_STENCIL_SIZE, value);
- data.stencilSize = value [0];
- AGL.aglDescribePixelFormat (pixelFormat, AGL.AGL_ACCUM_RED_SIZE, value);
- data.accumRedSize = value [0];
- AGL.aglDescribePixelFormat (pixelFormat, AGL.AGL_ACCUM_GREEN_SIZE, value);
- data.accumGreenSize = value [0];
- AGL.aglDescribePixelFormat (pixelFormat, AGL.AGL_ACCUM_BLUE_SIZE, value);
- data.accumBlueSize = value [0];
- AGL.aglDescribePixelFormat (pixelFormat, AGL.AGL_ACCUM_ALPHA_SIZE, value);
- data.accumAlphaSize = value [0];
- AGL.aglDescribePixelFormat (pixelFormat, AGL.AGL_SAMPLE_BUFFERS_ARB, value);
- data.sampleBuffers = value [0];
- AGL.aglDescribePixelFormat (pixelFormat, AGL.AGL_SAMPLES_ARB, value);
- data.samples = value [0];
- return data;
-}
-
-/**
- * Returns a boolean indicating whether the receiver's OpenGL context
- * is the current context.
- *
- * @return true if the receiver holds the current OpenGL context,
- * false otherwise
- * @exception SWTException <ul>
- * <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li>
- * <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li>
- * </ul>
- */
-public boolean isCurrent () {
- checkWidget ();
- return AGL.aglGetCurrentContext () == context;
-}
-
-/**
- * Sets the OpenGL context associated with this GLCanvas to be the
- * current GL context.
- *
- * @exception SWTException <ul>
- * <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li>
- * <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li>
- * </ul>
- */
-public void setCurrent () {
- checkWidget ();
- if (AGL.aglGetCurrentContext () != context) {
- AGL.aglSetCurrentContext (context);
- }
-}
-
-/**
- * Swaps the front and back color buffers.
- *
- * @exception SWTException <ul>
- * <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li>
- * <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li>
- * </ul>
- */
-public void swapBuffers () {
- checkWidget ();
- AGL.aglSwapBuffers (context);
-}
-}
diff --git a/bundles/org.eclipse.swt.opengl/common/library/gl.c b/bundles/org.eclipse.swt.opengl/common/library/gl.c
deleted file mode 100644
index 18b5e9fd2a..0000000000
--- a/bundles/org.eclipse.swt.opengl/common/library/gl.c
+++ /dev/null
@@ -1,5927 +0,0 @@
-#include "swt.h"
-#include "gl_structs.h"
-#include "gl_stats.h"
-
-#define GL_NATIVE(func) Java_org_eclipse_opengl_GL_##func
-
-#ifndef NO_glAccum
-JNIEXPORT void JNICALL GL_NATIVE(glAccum)
- (JNIEnv *env, jclass that, jint arg0, jfloat arg1)
-{
- GL_NATIVE_ENTER(env, that, glAccum_FUNC);
- glAccum(arg0, arg1);
- GL_NATIVE_EXIT(env, that, glAccum_FUNC);
-}
-#endif
-
-#ifndef NO_glAlphaFunc
-JNIEXPORT void JNICALL GL_NATIVE(glAlphaFunc)
- (JNIEnv *env, jclass that, jint arg0, jfloat arg1)
-{
- GL_NATIVE_ENTER(env, that, glAlphaFunc_FUNC);
- glAlphaFunc(arg0, arg1);
- GL_NATIVE_EXIT(env, that, glAlphaFunc_FUNC);
-}
-#endif
-
-#ifndef NO_glAreTexturesResident
-JNIEXPORT jboolean JNICALL GL_NATIVE(glAreTexturesResident)
- (JNIEnv *env, jclass that, jint arg0, jintArray arg1, jbooleanArray arg2)
-{
- jint *lparg1=NULL;
- jboolean *lparg2=NULL;
- jboolean rc;
- GL_NATIVE_ENTER(env, that, glAreTexturesResident_FUNC);
-#ifdef JNI_VERSION_1_2
- if (IS_JNI_1_2) {
- if (arg1) lparg1 = (*env)->GetPrimitiveArrayCritical(env, arg1, NULL);
- if (arg2) lparg2 = (*env)->GetPrimitiveArrayCritical(env, arg2, NULL);
- } else
-#endif
- {
- if (arg1) lparg1 = (*env)->GetIntArrayElements(env, arg1, NULL);
- if (arg2) lparg2 = (*env)->GetBooleanArrayElements(env, arg2, NULL);
- }
- rc = (jboolean)glAreTexturesResident(arg0, (const GLuint *)lparg1, lparg2);
-#ifdef JNI_VERSION_1_2
- if (IS_JNI_1_2) {
- if (arg2) (*env)->ReleasePrimitiveArrayCritical(env, arg2, lparg2, 0);
- if (arg1) (*env)->ReleasePrimitiveArrayCritical(env, arg1, lparg1, 0);
- } else
-#endif
- {
- if (arg2) (*env)->ReleaseBooleanArrayElements(env, arg2, lparg2, 0);
- if (arg1) (*env)->ReleaseIntArrayElements(env, arg1, lparg1, 0);
- }
- GL_NATIVE_EXIT(env, that, glAreTexturesResident_FUNC);
- return rc;
-}
-#endif
-
-#ifndef NO_glArrayElement
-JNIEXPORT void JNICALL GL_NATIVE(glArrayElement)
- (JNIEnv *env, jclass that, jint arg0)
-{
- GL_NATIVE_ENTER(env, that, glArrayElement_FUNC);
- glArrayElement(arg0);
- GL_NATIVE_EXIT(env, that, glArrayElement_FUNC);
-}
-#endif
-
-#ifndef NO_glBegin
-JNIEXPORT void JNICALL GL_NATIVE(glBegin)
- (JNIEnv *env, jclass that, jint arg0)
-{
- GL_NATIVE_ENTER(env, that, glBegin_FUNC);
- glBegin(arg0);
- GL_NATIVE_EXIT(env, that, glBegin_FUNC);
-}
-#endif
-
-#ifndef NO_glBindTexture
-JNIEXPORT void JNICALL GL_NATIVE(glBindTexture)
- (JNIEnv *env, jclass that, jint arg0, jint arg1)
-{
- GL_NATIVE_ENTER(env, that, glBindTexture_FUNC);
- glBindTexture(arg0, arg1);
- GL_NATIVE_EXIT(env, that, glBindTexture_FUNC);
-}
-#endif
-
-#ifndef NO_glBitmap
-JNIEXPORT void JNICALL GL_NATIVE(glBitmap)
- (JNIEnv *env, jclass that, jint arg0, jint arg1, jfloat arg2, jfloat arg3, jfloat arg4, jfloat arg5, jbyteArray arg6)
-{
- jbyte *lparg6=NULL;
- GL_NATIVE_ENTER(env, that, glBitmap_FUNC);
-#ifdef JNI_VERSION_1_2
- if (IS_JNI_1_2) {
- if (arg6) lparg6 = (*env)->GetPrimitiveArrayCritical(env, arg6, NULL);
- } else
-#endif
- {
- if (arg6) lparg6 = (*env)->GetByteArrayElements(env, arg6, NULL);
- }
- glBitmap(arg0, arg1, arg2, arg3, arg4, arg5, (const GLubyte *)lparg6);
-#ifdef JNI_VERSION_1_2
- if (IS_JNI_1_2) {
- if (arg6) (*env)->ReleasePrimitiveArrayCritical(env, arg6, lparg6, 0);
- } else
-#endif
- {
- if (arg6) (*env)->ReleaseByteArrayElements(env, arg6, lparg6, 0);
- }
- GL_NATIVE_EXIT(env, that, glBitmap_FUNC);
-}
-#endif
-
-#ifndef NO_glBlendFunc
-JNIEXPORT void JNICALL GL_NATIVE(glBlendFunc)
- (JNIEnv *env, jclass that, jint arg0, jint arg1)
-{
- GL_NATIVE_ENTER(env, that, glBlendFunc_FUNC);
- glBlendFunc(arg0, arg1);
- GL_NATIVE_EXIT(env, that, glBlendFunc_FUNC);
-}
-#endif
-
-#ifndef NO_glCallList
-JNIEXPORT void JNICALL GL_NATIVE(glCallList)
- (JNIEnv *env, jclass that, jint arg0)
-{
- GL_NATIVE_ENTER(env, that, glCallList_FUNC);
- glCallList(arg0);
- GL_NATIVE_EXIT(env, that, glCallList_FUNC);
-}
-#endif
-
-#ifndef NO_glCallLists__II_3B
-JNIEXPORT void JNICALL GL_NATIVE(glCallLists__II_3B)
- (JNIEnv *env, jclass that, jint arg0, jint arg1, jbyteArray arg2)
-{
- jbyte *lparg2=NULL;
- GL_NATIVE_ENTER(env, that, glCallLists__II_3B_FUNC);
-#ifdef JNI_VERSION_1_2
- if (IS_JNI_1_2) {
- if (arg2) lparg2 = (*env)->GetPrimitiveArrayCritical(env, arg2, NULL);
- } else
-#endif
- {
- if (arg2) lparg2 = (*env)->GetByteArrayElements(env, arg2, NULL);
- }
- glCallLists(arg0, arg1, lparg2);
-#ifdef JNI_VERSION_1_2
- if (IS_JNI_1_2) {
- if (arg2) (*env)->ReleasePrimitiveArrayCritical(env, arg2, lparg2, 0);
- } else
-#endif
- {
- if (arg2) (*env)->ReleaseByteArrayElements(env, arg2, lparg2, 0);
- }
- GL_NATIVE_EXIT(env, that, glCallLists__II_3B_FUNC);
-}
-#endif
-
-#ifndef NO_glCallLists__II_3C
-JNIEXPORT void JNICALL GL_NATIVE(glCallLists__II_3C)
- (JNIEnv *env, jclass that, jint arg0, jint arg1, jcharArray arg2)
-{
- jchar *lparg2=NULL;
- GL_NATIVE_ENTER(env, that, glCallLists__II_3C_FUNC);
-#ifdef JNI_VERSION_1_2
- if (IS_JNI_1_2) {
- if (arg2) lparg2 = (*env)->GetPrimitiveArrayCritical(env, arg2, NULL);
- } else
-#endif
- {
- if (arg2) lparg2 = (*env)->GetCharArrayElements(env, arg2, NULL);
- }
- glCallLists(arg0, arg1, lparg2);
-#ifdef JNI_VERSION_1_2
- if (IS_JNI_1_2) {
- if (arg2) (*env)->ReleasePrimitiveArrayCritical(env, arg2, lparg2, 0);
- } else
-#endif
- {
- if (arg2) (*env)->ReleaseCharArrayElements(env, arg2, lparg2, 0);
- }
- GL_NATIVE_EXIT(env, that, glCallLists__II_3C_FUNC);
-}
-#endif
-
-#ifndef NO_glCallLists__II_3I
-JNIEXPORT void JNICALL GL_NATIVE(glCallLists__II_3I)
- (JNIEnv *env, jclass that, jint arg0, jint arg1, jintArray arg2)
-{
- jint *lparg2=NULL;
- GL_NATIVE_ENTER(env, that, glCallLists__II_3I_FUNC);
-#ifdef JNI_VERSION_1_2
- if (IS_JNI_1_2) {
- if (arg2) lparg2 = (*env)->GetPrimitiveArrayCritical(env, arg2, NULL);
- } else
-#endif
- {
- if (arg2) lparg2 = (*env)->GetIntArrayElements(env, arg2, NULL);
- }
- glCallLists(arg0, arg1, lparg2);
-#ifdef JNI_VERSION_1_2
- if (IS_JNI_1_2) {
- if (arg2) (*env)->ReleasePrimitiveArrayCritical(env, arg2, lparg2, 0);
- } else
-#endif
- {
- if (arg2) (*env)->ReleaseIntArrayElements(env, arg2, lparg2, 0);
- }
- GL_NATIVE_EXIT(env, that, glCallLists__II_3I_FUNC);
-}
-#endif
-
-#ifndef NO_glClear
-JNIEXPORT void JNICALL GL_NATIVE(glClear)
- (JNIEnv *env, jclass that, jint arg0)
-{
- GL_NATIVE_ENTER(env, that, glClear_FUNC);
- glClear(arg0);
- GL_NATIVE_EXIT(env, that, glClear_FUNC);
-}
-#endif
-
-#ifndef NO_glClearAccum
-JNIEXPORT void JNICALL GL_NATIVE(glClearAccum)
- (JNIEnv *env, jclass that, jfloat arg0, jfloat arg1, jfloat arg2, jfloat arg3)
-{
- GL_NATIVE_ENTER(env, that, glClearAccum_FUNC);
- glClearAccum(arg0, arg1, arg2, arg3);
- GL_NATIVE_EXIT(env, that, glClearAccum_FUNC);
-}
-#endif
-
-#ifndef NO_glClearColor
-JNIEXPORT void JNICALL GL_NATIVE(glClearColor)
- (JNIEnv *env, jclass that, jfloat arg0, jfloat arg1, jfloat arg2, jfloat arg3)
-{
- GL_NATIVE_ENTER(env, that, glClearColor_FUNC);
- glClearColor(arg0, arg1, arg2, arg3);
- GL_NATIVE_EXIT(env, that, glClearColor_FUNC);
-}
-#endif
-
-#ifndef NO_glClearDepth
-JNIEXPORT void JNICALL GL_NATIVE(glClearDepth)
- (JNIEnv *env, jclass that, jdouble arg0)
-{
- GL_NATIVE_ENTER(env, that, glClearDepth_FUNC);
- glClearDepth(arg0);
- GL_NATIVE_EXIT(env, that, glClearDepth_FUNC);
-}
-#endif
-
-#ifndef NO_glClearIndex
-JNIEXPORT void JNICALL GL_NATIVE(glClearIndex)
- (JNIEnv *env, jclass that, jfloat arg0)
-{
- GL_NATIVE_ENTER(env, that, glClearIndex_FUNC);
- glClearIndex(arg0);
- GL_NATIVE_EXIT(env, that, glClearIndex_FUNC);
-}
-#endif
-
-#ifndef NO_glClearStencil
-JNIEXPORT void JNICALL GL_NATIVE(glClearStencil)
- (JNIEnv *env, jclass that, jint arg0)
-{
- GL_NATIVE_ENTER(env, that, glClearStencil_FUNC);
- glClearStencil(arg0);
- GL_NATIVE_EXIT(env, that, glClearStencil_FUNC);
-}
-#endif
-
-#ifndef NO_glClipPlane
-JNIEXPORT void JNICALL GL_NATIVE(glClipPlane)
- (JNIEnv *env, jclass that, jint arg0, jdoubleArray arg1)
-{
- jdouble *lparg1=NULL;
- GL_NATIVE_ENTER(env, that, glClipPlane_FUNC);
-#ifdef JNI_VERSION_1_2
- if (IS_JNI_1_2) {
- if (arg1) lparg1 = (*env)->GetPrimitiveArrayCritical(env, arg1, NULL);
- } else
-#endif
- {
- if (arg1) lparg1 = (*env)->GetDoubleArrayElements(env, arg1, NULL);
- }
- glClipPlane(arg0, lparg1);
-#ifdef JNI_VERSION_1_2
- if (IS_JNI_1_2) {
- if (arg1) (*env)->ReleasePrimitiveArrayCritical(env, arg1, lparg1, 0);
- } else
-#endif
- {
- if (arg1) (*env)->ReleaseDoubleArrayElements(env, arg1, lparg1, 0);
- }
- GL_NATIVE_EXIT(env, that, glClipPlane_FUNC);
-}
-#endif
-
-#ifndef NO_glColor3b
-JNIEXPORT void JNICALL GL_NATIVE(glColor3b)
- (JNIEnv *env, jclass that, jbyte arg0, jbyte arg1, jbyte arg2)
-{
- GL_NATIVE_ENTER(env, that, glColor3b_FUNC);
- glColor3b(arg0, arg1, arg2);
- GL_NATIVE_EXIT(env, that, glColor3b_FUNC);
-}
-#endif
-
-#ifndef NO_glColor3bv
-JNIEXPORT void JNICALL GL_NATIVE(glColor3bv)
- (JNIEnv *env, jclass that, jbyteArray arg0)
-{
- jbyte *lparg0=NULL;
- GL_NATIVE_ENTER(env, that, glColor3bv_FUNC);
-#ifdef JNI_VERSION_1_2
- if (IS_JNI_1_2) {
- if (arg0) lparg0 = (*env)->GetPrimitiveArrayCritical(env, arg0, NULL);
- } else
-#endif
- {
- if (arg0) lparg0 = (*env)->GetByteArrayElements(env, arg0, NULL);
- }
- glColor3bv(lparg0);
-#ifdef JNI_VERSION_1_2
- if (IS_JNI_1_2) {
- if (arg0) (*env)->ReleasePrimitiveArrayCritical(env, arg0, lparg0, 0);
- } else
-#endif
- {
- if (arg0) (*env)->ReleaseByteArrayElements(env, arg0, lparg0, 0);
- }
- GL_NATIVE_EXIT(env, that, glColor3bv_FUNC);
-}
-#endif
-
-#ifndef NO_glColor3d
-JNIEXPORT void JNICALL GL_NATIVE(glColor3d)
- (JNIEnv *env, jclass that, jdouble arg0, jdouble arg1, jdouble arg2)
-{
- GL_NATIVE_ENTER(env, that, glColor3d_FUNC);
- glColor3d(arg0, arg1, arg2);
- GL_NATIVE_EXIT(env, that, glColor3d_FUNC);
-}
-#endif
-
-#ifndef NO_glColor3dv
-JNIEXPORT void JNICALL GL_NATIVE(glColor3dv)
- (JNIEnv *env, jclass that, jdoubleArray arg0)
-{
- jdouble *lparg0=NULL;
- GL_NATIVE_ENTER(env, that, glColor3dv_FUNC);
-#ifdef JNI_VERSION_1_2
- if (IS_JNI_1_2) {
- if (arg0) lparg0 = (*env)->GetPrimitiveArrayCritical(env, arg0, NULL);
- } else
-#endif
- {
- if (arg0) lparg0 = (*env)->GetDoubleArrayElements(env, arg0, NULL);
- }
- glColor3dv(lparg0);
-#ifdef JNI_VERSION_1_2
- if (IS_JNI_1_2) {
- if (arg0) (*env)->ReleasePrimitiveArrayCritical(env, arg0, lparg0, 0);
- } else
-#endif
- {
- if (arg0) (*env)->ReleaseDoubleArrayElements(env, arg0, lparg0, 0);
- }
- GL_NATIVE_EXIT(env, that, glColor3dv_FUNC);
-}
-#endif
-
-#ifndef NO_glColor3f
-JNIEXPORT void JNICALL GL_NATIVE(glColor3f)
- (JNIEnv *env, jclass that, jfloat arg0, jfloat arg1, jfloat arg2)
-{
- GL_NATIVE_ENTER(env, that, glColor3f_FUNC);
- glColor3f(arg0, arg1, arg2);
- GL_NATIVE_EXIT(env, that, glColor3f_FUNC);
-}
-#endif
-
-#ifndef NO_glColor3fv
-JNIEXPORT void JNICALL GL_NATIVE(glColor3fv)
- (JNIEnv *env, jclass that, jfloatArray arg0)
-{
- jfloat *lparg0=NULL;
- GL_NATIVE_ENTER(env, that, glColor3fv_FUNC);
-#ifdef JNI_VERSION_1_2
- if (IS_JNI_1_2) {
- if (arg0) lparg0 = (*env)->GetPrimitiveArrayCritical(env, arg0, NULL);
- } else
-#endif
- {
- if (arg0) lparg0 = (*env)->GetFloatArrayElements(env, arg0, NULL);
- }
- glColor3fv(lparg0);
-#ifdef JNI_VERSION_1_2
- if (IS_JNI_1_2) {
- if (arg0) (*env)->ReleasePrimitiveArrayCritical(env, arg0, lparg0, 0);
- } else
-#endif
- {
- if (arg0) (*env)->ReleaseFloatArrayElements(env, arg0, lparg0, 0);
- }
- GL_NATIVE_EXIT(env, that, glColor3fv_FUNC);
-}
-#endif
-
-#ifndef NO_glColor3i
-JNIEXPORT void JNICALL GL_NATIVE(glColor3i)
- (JNIEnv *env, jclass that, jint arg0, jint arg1, jint arg2)
-{
- GL_NATIVE_ENTER(env, that, glColor3i_FUNC);
- glColor3i(arg0, arg1, arg2);
- GL_NATIVE_EXIT(env, that, glColor3i_FUNC);
-}
-#endif
-
-#ifndef NO_glColor3iv
-JNIEXPORT void JNICALL GL_NATIVE(glColor3iv)
- (JNIEnv *env, jclass that, jintArray arg0)
-{
- jint *lparg0=NULL;
- GL_NATIVE_ENTER(env, that, glColor3iv_FUNC);
-#ifdef JNI_VERSION_1_2
- if (IS_JNI_1_2) {
- if (arg0) lparg0 = (*env)->GetPrimitiveArrayCritical(env, arg0, NULL);
- } else
-#endif
- {
- if (arg0) lparg0 = (*env)->GetIntArrayElements(env, arg0, NULL);
- }
- glColor3iv(lparg0);
-#ifdef JNI_VERSION_1_2
- if (IS_JNI_1_2) {
- if (arg0) (*env)->ReleasePrimitiveArrayCritical(env, arg0, lparg0, 0);
- } else
-#endif
- {
- if (arg0) (*env)->ReleaseIntArrayElements(env, arg0, lparg0, 0);
- }
- GL_NATIVE_EXIT(env, that, glColor3iv_FUNC);
-}
-#endif
-
-#ifndef NO_glColor3s
-JNIEXPORT void JNICALL GL_NATIVE(glColor3s)
- (JNIEnv *env, jclass that, jshort arg0, jshort arg1, jshort arg2)
-{
- GL_NATIVE_ENTER(env, that, glColor3s_FUNC);
- glColor3s(arg0, arg1, arg2);
- GL_NATIVE_EXIT(env, that, glColor3s_FUNC);
-}
-#endif
-
-#ifndef NO_glColor3sv
-JNIEXPORT void JNICALL GL_NATIVE(glColor3sv)
- (JNIEnv *env, jclass that, jshortArray arg0)
-{
- jshort *lparg0=NULL;
- GL_NATIVE_ENTER(env, that, glColor3sv_FUNC);
-#ifdef JNI_VERSION_1_2
- if (IS_JNI_1_2) {
- if (arg0) lparg0 = (*env)->GetPrimitiveArrayCritical(env, arg0, NULL);
- } else
-#endif
- {
- if (arg0) lparg0 = (*env)->GetShortArrayElements(env, arg0, NULL);
- }
- glColor3sv(lparg0);
-#ifdef JNI_VERSION_1_2
- if (IS_JNI_1_2) {
- if (arg0) (*env)->ReleasePrimitiveArrayCritical(env, arg0, lparg0, 0);
- } else
-#endif
- {
- if (arg0) (*env)->ReleaseShortArrayElements(env, arg0, lparg0, 0);
- }
- GL_NATIVE_EXIT(env, that, glColor3sv_FUNC);
-}
-#endif
-
-#ifndef NO_glColor3ub
-JNIEXPORT void JNICALL GL_NATIVE(glColor3ub)
- (JNIEnv *env, jclass that, jbyte arg0, jbyte arg1, jbyte arg2)
-{
- GL_NATIVE_ENTER(env, that, glColor3ub_FUNC);
- glColor3ub(arg0, arg1, arg2);
- GL_NATIVE_EXIT(env, that, glColor3ub_FUNC);
-}
-#endif
-
-#ifndef NO_glColor3ubv
-JNIEXPORT void JNICALL GL_NATIVE(glColor3ubv)
- (JNIEnv *env, jclass that, jbyteArray arg0)
-{
- jbyte *lparg0=NULL;
- GL_NATIVE_ENTER(env, that, glColor3ubv_FUNC);
-#ifdef JNI_VERSION_1_2
- if (IS_JNI_1_2) {
- if (arg0) lparg0 = (*env)->GetPrimitiveArrayCritical(env, arg0, NULL);
- } else
-#endif
- {
- if (arg0) lparg0 = (*env)->GetByteArrayElements(env, arg0, NULL);
- }
- glColor3ubv((const GLubyte *)lparg0);
-#ifdef JNI_VERSION_1_2
- if (IS_JNI_1_2) {
- if (arg0) (*env)->ReleasePrimitiveArrayCritical(env, arg0, lparg0, 0);
- } else
-#endif
- {
- if (arg0) (*env)->ReleaseByteArrayElements(env, arg0, lparg0, 0);
- }
- GL_NATIVE_EXIT(env, that, glColor3ubv_FUNC);
-}
-#endif
-
-#ifndef NO_glColor3ui
-JNIEXPORT void JNICALL GL_NATIVE(glColor3ui)
- (JNIEnv *env, jclass that, jint arg0, jint arg1, jint arg2)
-{
- GL_NATIVE_ENTER(env, that, glColor3ui_FUNC);
- glColor3ui(arg0, arg1, arg2);
- GL_NATIVE_EXIT(env, that, glColor3ui_FUNC);
-}
-#endif
-
-#ifndef NO_glColor3uiv
-JNIEXPORT void JNICALL GL_NATIVE(glColor3uiv)
- (JNIEnv *env, jclass that, jintArray arg0)
-{
- jint *lparg0=NULL;
- GL_NATIVE_ENTER(env, that, glColor3uiv_FUNC);
-#ifdef JNI_VERSION_1_2
- if (IS_JNI_1_2) {
- if (arg0) lparg0 = (*env)->GetPrimitiveArrayCritical(env, arg0, NULL);
- } else
-#endif
- {
- if (arg0) lparg0 = (*env)->GetIntArrayElements(env, arg0, NULL);
- }
- glColor3uiv((const GLuint *)lparg0);
-#ifdef JNI_VERSION_1_2
- if (IS_JNI_1_2) {
- if (arg0) (*env)->ReleasePrimitiveArrayCritical(env, arg0, lparg0, 0);
- } else
-#endif
- {
- if (arg0) (*env)->ReleaseIntArrayElements(env, arg0, lparg0, 0);
- }
- GL_NATIVE_EXIT(env, that, glColor3uiv_FUNC);
-}
-#endif
-
-#ifndef NO_glColor3us
-JNIEXPORT void JNICALL GL_NATIVE(glColor3us)
- (JNIEnv *env, jclass that, jshort arg0, jshort arg1, jshort arg2)
-{
- GL_NATIVE_ENTER(env, that, glColor3us_FUNC);
- glColor3us(arg0, arg1, arg2);
- GL_NATIVE_EXIT(env, that, glColor3us_FUNC);
-}
-#endif
-
-#ifndef NO_glColor3usv
-JNIEXPORT void JNICALL GL_NATIVE(glColor3usv)
- (JNIEnv *env, jclass that, jshortArray arg0)
-{
- jshort *lparg0=NULL;
- GL_NATIVE_ENTER(env, that, glColor3usv_FUNC);
-#ifdef JNI_VERSION_1_2
- if (IS_JNI_1_2) {
- if (arg0) lparg0 = (*env)->GetPrimitiveArrayCritical(env, arg0, NULL);
- } else
-#endif
- {
- if (arg0) lparg0 = (*env)->GetShortArrayElements(env, arg0, NULL);
- }
- glColor3usv((const GLushort *)lparg0);
-#ifdef JNI_VERSION_1_2
- if (IS_JNI_1_2) {
- if (arg0) (*env)->ReleasePrimitiveArrayCritical(env, arg0, lparg0, 0);
- } else
-#endif
- {
- if (arg0) (*env)->ReleaseShortArrayElements(env, arg0, lparg0, 0);
- }
- GL_NATIVE_EXIT(env, that, glColor3usv_FUNC);
-}
-#endif
-
-#ifndef NO_glColor4b
-JNIEXPORT void JNICALL GL_NATIVE(glColor4b)
- (JNIEnv *env, jclass that, jbyte arg0, jbyte arg1, jbyte arg2, jbyte arg3)
-{
- GL_NATIVE_ENTER(env, that, glColor4b_FUNC);
- glColor4b(arg0, arg1, arg2, arg3);
- GL_NATIVE_EXIT(env, that, glColor4b_FUNC);
-}
-#endif
-
-#ifndef NO_glColor4bv
-JNIEXPORT void JNICALL GL_NATIVE(glColor4bv)
- (JNIEnv *env, jclass that, jbyteArray arg0)
-{
- jbyte *lparg0=NULL;
- GL_NATIVE_ENTER(env, that, glColor4bv_FUNC);
-#ifdef JNI_VERSION_1_2
- if (IS_JNI_1_2) {
- if (arg0) lparg0 = (*env)->GetPrimitiveArrayCritical(env, arg0, NULL);
- } else
-#endif
- {
- if (arg0) lparg0 = (*env)->GetByteArrayElements(env, arg0, NULL);
- }
- glColor4bv(lparg0);
-#ifdef JNI_VERSION_1_2
- if (IS_JNI_1_2) {
- if (arg0) (*env)->ReleasePrimitiveArrayCritical(env, arg0, lparg0, 0);
- } else
-#endif
- {
- if (arg0) (*env)->ReleaseByteArrayElements(env, arg0, lparg0, 0);
- }
- GL_NATIVE_EXIT(env, that, glColor4bv_FUNC);
-}
-#endif
-
-#ifndef NO_glColor4d
-JNIEXPORT void JNICALL GL_NATIVE(glColor4d)
- (JNIEnv *env, jclass that, jdouble arg0, jdouble arg1, jdouble arg2, jdouble arg3)
-{
- GL_NATIVE_ENTER(env, that, glColor4d_FUNC);
- glColor4d(arg0, arg1, arg2, arg3);
- GL_NATIVE_EXIT(env, that, glColor4d_FUNC);
-}
-#endif
-
-#ifndef NO_glColor4dv
-JNIEXPORT void JNICALL GL_NATIVE(glColor4dv)
- (JNIEnv *env, jclass that, jdoubleArray arg0)
-{
- jdouble *lparg0=NULL;
- GL_NATIVE_ENTER(env, that, glColor4dv_FUNC);
-#ifdef JNI_VERSION_1_2
- if (IS_JNI_1_2) {
- if (arg0) lparg0 = (*env)->GetPrimitiveArrayCritical(env, arg0, NULL);
- } else
-#endif
- {
- if (arg0) lparg0 = (*env)->GetDoubleArrayElements(env, arg0, NULL);
- }
- glColor4dv(lparg0);
-#ifdef JNI_VERSION_1_2
- if (IS_JNI_1_2) {
- if (arg0) (*env)->ReleasePrimitiveArrayCritical(env, arg0, lparg0, 0);
- } else
-#endif
- {
- if (arg0) (*env)->ReleaseDoubleArrayElements(env, arg0, lparg0, 0);
- }
- GL_NATIVE_EXIT(env, that, glColor4dv_FUNC);
-}
-#endif
-
-#ifndef NO_glColor4f
-JNIEXPORT void JNICALL GL_NATIVE(glColor4f)
- (JNIEnv *env, jclass that, jfloat arg0, jfloat arg1, jfloat arg2, jfloat arg3)
-{
- GL_NATIVE_ENTER(env, that, glColor4f_FUNC);
- glColor4f(arg0, arg1, arg2, arg3);
- GL_NATIVE_EXIT(env, that, glColor4f_FUNC);
-}
-#endif
-
-#ifndef NO_glColor4fv
-JNIEXPORT void JNICALL GL_NATIVE(glColor4fv)
- (JNIEnv *env, jclass that, jfloatArray arg0)
-{
- jfloat *lparg0=NULL;
- GL_NATIVE_ENTER(env, that, glColor4fv_FUNC);
-#ifdef JNI_VERSION_1_2
- if (IS_JNI_1_2) {
- if (arg0) lparg0 = (*env)->GetPrimitiveArrayCritical(env, arg0, NULL);
- } else
-#endif
- {
- if (arg0) lparg0 = (*env)->GetFloatArrayElements(env, arg0, NULL);
- }
- glColor4fv(lparg0);
-#ifdef JNI_VERSION_1_2
- if (IS_JNI_1_2) {
- if (arg0) (*env)->ReleasePrimitiveArrayCritical(env, arg0, lparg0, 0);
- } else
-#endif
- {
- if (arg0) (*env)->ReleaseFloatArrayElements(env, arg0, lparg0, 0);
- }
- GL_NATIVE_EXIT(env, that, glColor4fv_FUNC);
-}
-#endif
-
-#ifndef NO_glColor4i
-JNIEXPORT void JNICALL GL_NATIVE(glColor4i)
- (JNIEnv *env, jclass that, jint arg0, jint arg1, jint arg2, jint arg3)
-{
- GL_NATIVE_ENTER(env, that, glColor4i_FUNC);
- glColor4i(arg0, arg1, arg2, arg3);
- GL_NATIVE_EXIT(env, that, glColor4i_FUNC);
-}
-#endif
-
-#ifndef NO_glColor4iv
-JNIEXPORT void JNICALL GL_NATIVE(glColor4iv)
- (JNIEnv *env, jclass that, jintArray arg0)
-{
- jint *lparg0=NULL;
- GL_NATIVE_ENTER(env, that, glColor4iv_FUNC);
-#ifdef JNI_VERSION_1_2
- if (IS_JNI_1_2) {
- if (arg0) lparg0 = (*env)->GetPrimitiveArrayCritical(env, arg0, NULL);
- } else
-#endif
- {
- if (arg0) lparg0 = (*env)->GetIntArrayElements(env, arg0, NULL);
- }
- glColor4iv(lparg0);
-#ifdef JNI_VERSION_1_2
- if (IS_JNI_1_2) {
- if (arg0) (*env)->ReleasePrimitiveArrayCritical(env, arg0, lparg0, 0);
- } else
-#endif
- {
- if (arg0) (*env)->ReleaseIntArrayElements(env, arg0, lparg0, 0);
- }
- GL_NATIVE_EXIT(env, that, glColor4iv_FUNC);
-}
-#endif
-
-#ifndef NO_glColor4s
-JNIEXPORT void JNICALL GL_NATIVE(glColor4s)
- (JNIEnv *env, jclass that, jshort arg0, jshort arg1, jshort arg2, jshort arg3)
-{
- GL_NATIVE_ENTER(env, that, glColor4s_FUNC);
- glColor4s(arg0, arg1, arg2, arg3);
- GL_NATIVE_EXIT(env, that, glColor4s_FUNC);
-}
-#endif
-
-#ifndef NO_glColor4ub
-JNIEXPORT void JNICALL GL_NATIVE(glColor4ub)
- (JNIEnv *env, jclass that, jbyte arg0, jbyte arg1, jbyte arg2, jbyte arg3)
-{
- GL_NATIVE_ENTER(env, that, glColor4ub_FUNC);
- glColor4ub(arg0, arg1, arg2, arg3);
- GL_NATIVE_EXIT(env, that, glColor4ub_FUNC);
-}
-#endif
-
-#ifndef NO_glColor4ubv
-JNIEXPORT void JNICALL GL_NATIVE(glColor4ubv)
- (JNIEnv *env, jclass that, jbyteArray arg0)
-{
- jbyte *lparg0=NULL;
- GL_NATIVE_ENTER(env, that, glColor4ubv_FUNC);
- if (arg0) lparg0 = (*env)->GetByteArrayElements(env, arg0, NULL);
- glColor4ubv((const GLubyte *)lparg0);
- if (arg0) (*env)->ReleaseByteArrayElements(env, arg0, lparg0, 0);
- GL_NATIVE_EXIT(env, that, glColor4ubv_FUNC);
-}
-#endif
-
-#ifndef NO_glColor4ui
-JNIEXPORT void JNICALL GL_NATIVE(glColor4ui)
- (JNIEnv *env, jclass that, jint arg0, jint arg1, jint arg2, jint arg3)
-{
- GL_NATIVE_ENTER(env, that, glColor4ui_FUNC);
- glColor4ui(arg0, arg1, arg2, arg3);
- GL_NATIVE_EXIT(env, that, glColor4ui_FUNC);
-}
-#endif
-
-#ifndef NO_glColor4uiv
-JNIEXPORT void JNICALL GL_NATIVE(glColor4uiv)
- (JNIEnv *env, jclass that, jintArray arg0)
-{
- jint *lparg0=NULL;
- GL_NATIVE_ENTER(env, that, glColor4uiv_FUNC);
-#ifdef JNI_VERSION_1_2
- if (IS_JNI_1_2) {
- if (arg0) lparg0 = (*env)->GetPrimitiveArrayCritical(env, arg0, NULL);
- } else
-#endif
- {
- if (arg0) lparg0 = (*env)->GetIntArrayElements(env, arg0, NULL);
- }
- glColor4uiv((const GLuint *)lparg0);
-#ifdef JNI_VERSION_1_2
- if (IS_JNI_1_2) {
- if (arg0) (*env)->ReleasePrimitiveArrayCritical(env, arg0, lparg0, 0);
- } else
-#endif
- {
- if (arg0) (*env)->ReleaseIntArrayElements(env, arg0, lparg0, 0);
- }
- GL_NATIVE_EXIT(env, that, glColor4uiv_FUNC);
-}
-#endif
-
-#ifndef NO_glColor4us
-JNIEXPORT void JNICALL GL_NATIVE(glColor4us)
- (JNIEnv *env, jclass that, jshort arg0, jshort arg1, jshort arg2, jshort arg3)
-{
- GL_NATIVE_ENTER(env, that, glColor4us_FUNC);
- glColor4us(arg0, arg1, arg2, arg3);
- GL_NATIVE_EXIT(env, that, glColor4us_FUNC);
-}
-#endif
-
-#ifndef NO_glColor4usv
-JNIEXPORT void JNICALL GL_NATIVE(glColor4usv)
- (JNIEnv *env, jclass that, jshortArray arg0)
-{
- jshort *lparg0=NULL;
- GL_NATIVE_ENTER(env, that, glColor4usv_FUNC);
-#ifdef JNI_VERSION_1_2
- if (IS_JNI_1_2) {
- if (arg0) lparg0 = (*env)->GetPrimitiveArrayCritical(env, arg0, NULL);
- } else
-#endif
- {
- if (arg0) lparg0 = (*env)->GetShortArrayElements(env, arg0, NULL);
- }
- glColor4usv((const GLushort *)lparg0);
-#ifdef JNI_VERSION_1_2
- if (IS_JNI_1_2) {
- if (arg0) (*env)->ReleasePrimitiveArrayCritical(env, arg0, lparg0, 0);
- } else
-#endif
- {
- if (arg0) (*env)->ReleaseShortArrayElements(env, arg0, lparg0, 0);
- }
- GL_NATIVE_EXIT(env, that, glColor4usv_FUNC);
-}
-#endif
-
-#ifndef NO_glColorMask
-JNIEXPORT void JNICALL GL_NATIVE(glColorMask)
- (JNIEnv *env, jclass that, jboolean arg0, jboolean arg1, jboolean arg2, jboolean arg3)
-{
- GL_NATIVE_ENTER(env, that, glColorMask_FUNC);
- glColorMask(arg0, arg1, arg2, arg3);
- GL_NATIVE_EXIT(env, that, glColorMask_FUNC);
-}
-#endif
-
-#ifndef NO_glColorMaterial
-JNIEXPORT void JNICALL GL_NATIVE(glColorMaterial)
- (JNIEnv *env, jclass that, jint arg0, jint arg1)
-{
- GL_NATIVE_ENTER(env, that, glColorMaterial_FUNC);
- glColorMaterial(arg0, arg1);
- GL_NATIVE_EXIT(env, that, glColorMaterial_FUNC);
-}
-#endif
-
-#ifndef NO_glColorPointer
-JNIEXPORT void JNICALL GL_NATIVE(glColorPointer)
- (JNIEnv *env, jclass that, jint arg0, jint arg1, jint arg2, jintArray arg3)
-{
- jint *lparg3=NULL;
- GL_NATIVE_ENTER(env, that, glColorPointer_FUNC);
-#ifdef JNI_VERSION_1_2
- if (IS_JNI_1_2) {
- if (arg3) lparg3 = (*env)->GetPrimitiveArrayCritical(env, arg3, NULL);
- } else
-#endif
- {
- if (arg3) lparg3 = (*env)->GetIntArrayElements(env, arg3, NULL);
- }
- glColorPointer(arg0, arg1, arg2, lparg3);
-#ifdef JNI_VERSION_1_2
- if (IS_JNI_1_2) {
- if (arg3) (*env)->ReleasePrimitiveArrayCritical(env, arg3, lparg3, 0);
- } else
-#endif
- {
- if (arg3) (*env)->ReleaseIntArrayElements(env, arg3, lparg3, 0);
- }
- GL_NATIVE_EXIT(env, that, glColorPointer_FUNC);
-}
-#endif
-
-#ifndef NO_glCopyPixels
-JNIEXPORT void JNICALL GL_NATIVE(glCopyPixels)
- (JNIEnv *env, jclass that, jint arg0, jint arg1, jint arg2, jint arg3, jint arg4)
-{
- GL_NATIVE_ENTER(env, that, glCopyPixels_FUNC);
- glCopyPixels(arg0, arg1, arg2, arg3, arg4);
- GL_NATIVE_EXIT(env, that, glCopyPixels_FUNC);
-}
-#endif
-
-#ifndef NO_glCopyTexImage1D
-JNIEXPORT void JNICALL GL_NATIVE(glCopyTexImage1D)
- (JNIEnv *env, jclass that, jint arg0, jint arg1, jint arg2, jint arg3, jint arg4, jint arg5, jint arg6)
-{
- GL_NATIVE_ENTER(env, that, glCopyTexImage1D_FUNC);
- glCopyTexImage1D(arg0, arg1, arg2, arg3, arg4, arg5, arg6);
- GL_NATIVE_EXIT(env, that, glCopyTexImage1D_FUNC);
-}
-#endif
-
-#ifndef NO_glCopyTexImage2D
-JNIEXPORT void JNICALL GL_NATIVE(glCopyTexImage2D)
- (JNIEnv *env, jclass that, jint arg0, jint arg1, jint arg2, jint arg3, jint arg4, jint arg5, jint arg6, jint arg7)
-{
- GL_NATIVE_ENTER(env, that, glCopyTexImage2D_FUNC);
- glCopyTexImage2D(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7);
- GL_NATIVE_EXIT(env, that, glCopyTexImage2D_FUNC);
-}
-#endif
-
-#ifndef NO_glCopyTexSubImage1D
-JNIEXPORT void JNICALL GL_NATIVE(glCopyTexSubImage1D)
- (JNIEnv *env, jclass that, jint arg0, jint arg1, jint arg2, jint arg3, jint arg4, jint arg5)
-{
- GL_NATIVE_ENTER(env, that, glCopyTexSubImage1D_FUNC);
- glCopyTexSubImage1D(arg0, arg1, arg2, arg3, arg4, arg5);
- GL_NATIVE_EXIT(env, that, glCopyTexSubImage1D_FUNC);
-}
-#endif
-
-#ifndef NO_glCopyTexSubImage2D
-JNIEXPORT void JNICALL GL_NATIVE(glCopyTexSubImage2D)
- (JNIEnv *env, jclass that, jint arg0, jint arg1, jint arg2, jint arg3, jint arg4, jint arg5, jint arg6, jint arg7)
-{
- GL_NATIVE_ENTER(env, that, glCopyTexSubImage2D_FUNC);
- glCopyTexSubImage2D(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7);
- GL_NATIVE_EXIT(env, that, glCopyTexSubImage2D_FUNC);
-}
-#endif
-
-#ifndef NO_glCullFace
-JNIEXPORT void JNICALL GL_NATIVE(glCullFace)
- (JNIEnv *env, jclass that, jint arg0)
-{
- GL_NATIVE_ENTER(env, that, glCullFace_FUNC);
- glCullFace(arg0);
- GL_NATIVE_EXIT(env, that, glCullFace_FUNC);
-}
-#endif
-
-#ifndef NO_glDeleteLists
-JNIEXPORT void JNICALL GL_NATIVE(glDeleteLists)
- (JNIEnv *env, jclass that, jint arg0, jint arg1)
-{
- GL_NATIVE_ENTER(env, that, glDeleteLists_FUNC);
- glDeleteLists(arg0, arg1);
- GL_NATIVE_EXIT(env, that, glDeleteLists_FUNC);
-}
-#endif
-
-#ifndef NO_glDeleteTextures
-JNIEXPORT void JNICALL GL_NATIVE(glDeleteTextures)
- (JNIEnv *env, jclass that, jint arg0, jintArray arg1)
-{
- jint *lparg1=NULL;
- GL_NATIVE_ENTER(env, that, glDeleteTextures_FUNC);
-#ifdef JNI_VERSION_1_2
- if (IS_JNI_1_2) {
- if (arg1) lparg1 = (*env)->GetPrimitiveArrayCritical(env, arg1, NULL);
- } else
-#endif
- {
- if (arg1) lparg1 = (*env)->GetIntArrayElements(env, arg1, NULL);
- }
- glDeleteTextures(arg0, (const GLuint *)lparg1);
-#ifdef JNI_VERSION_1_2
- if (IS_JNI_1_2) {
- if (arg1) (*env)->ReleasePrimitiveArrayCritical(env, arg1, lparg1, 0);
- } else
-#endif
- {
- if (arg1) (*env)->ReleaseIntArrayElements(env, arg1, lparg1, 0);
- }
- GL_NATIVE_EXIT(env, that, glDeleteTextures_FUNC);
-}
-#endif
-
-#ifndef NO_glDepthFunc
-JNIEXPORT void JNICALL GL_NATIVE(glDepthFunc)
- (JNIEnv *env, jclass that, jint arg0)
-{
- GL_NATIVE_ENTER(env, that, glDepthFunc_FUNC);
- glDepthFunc(arg0);
- GL_NATIVE_EXIT(env, that, glDepthFunc_FUNC);
-}
-#endif
-
-#ifndef NO_glDepthMask
-JNIEXPORT void JNICALL GL_NATIVE(glDepthMask)
- (JNIEnv *env, jclass that, jboolean arg0)
-{
- GL_NATIVE_ENTER(env, that, glDepthMask_FUNC);
- glDepthMask(arg0);
- GL_NATIVE_EXIT(env, that, glDepthMask_FUNC);
-}
-#endif
-
-#ifndef NO_glDepthRange
-JNIEXPORT void JNICALL GL_NATIVE(glDepthRange)
- (JNIEnv *env, jclass that, jdouble arg0, jdouble arg1)
-{
- GL_NATIVE_ENTER(env, that, glDepthRange_FUNC);
- glDepthRange(arg0, arg1);
- GL_NATIVE_EXIT(env, that, glDepthRange_FUNC);
-}
-#endif
-
-#ifndef NO_glDisable
-JNIEXPORT void JNICALL GL_NATIVE(glDisable)
- (JNIEnv *env, jclass that, jint arg0)
-{
- GL_NATIVE_ENTER(env, that, glDisable_FUNC);
- glDisable(arg0);
- GL_NATIVE_EXIT(env, that, glDisable_FUNC);
-}
-#endif
-
-#ifndef NO_glDisableClientState
-JNIEXPORT void JNICALL GL_NATIVE(glDisableClientState)
- (JNIEnv *env, jclass that, jint arg0)
-{
- GL_NATIVE_ENTER(env, that, glDisableClientState_FUNC);
- glDisableClientState(arg0);
- GL_NATIVE_EXIT(env, that, glDisableClientState_FUNC);
-}
-#endif
-
-#ifndef NO_glDrawArrays
-JNIEXPORT void JNICALL GL_NATIVE(glDrawArrays)
- (JNIEnv *env, jclass that, jint arg0, jint arg1, jint arg2)
-{
- GL_NATIVE_ENTER(env, that, glDrawArrays_FUNC);
- glDrawArrays(arg0, arg1, arg2);
- GL_NATIVE_EXIT(env, that, glDrawArrays_FUNC);
-}
-#endif
-
-#ifndef NO_glDrawBuffer
-JNIEXPORT void JNICALL GL_NATIVE(glDrawBuffer)
- (JNIEnv *env, jclass that, jint arg0)
-{
- GL_NATIVE_ENTER(env, that, glDrawBuffer_FUNC);
- glDrawBuffer(arg0);
- GL_NATIVE_EXIT(env, that, glDrawBuffer_FUNC);
-}
-#endif
-
-#ifndef NO_glDrawElements
-JNIEXPORT void JNICALL GL_NATIVE(glDrawElements)
- (JNIEnv *env, jclass that, jint arg0, jint arg1, jint arg2, jintArray arg3)
-{
- jint *lparg3=NULL;
- GL_NATIVE_ENTER(env, that, glDrawElements_FUNC);
-#ifdef JNI_VERSION_1_2
- if (IS_JNI_1_2) {
- if (arg3) lparg3 = (*env)->GetPrimitiveArrayCritical(env, arg3, NULL);
- } else
-#endif
- {
- if (arg3) lparg3 = (*env)->GetIntArrayElements(env, arg3, NULL);
- }
- glDrawElements(arg0, arg1, arg2, lparg3);
-#ifdef JNI_VERSION_1_2
- if (IS_JNI_1_2) {
- if (arg3) (*env)->ReleasePrimitiveArrayCritical(env, arg3, lparg3, 0);
- } else
-#endif
- {
- if (arg3) (*env)->ReleaseIntArrayElements(env, arg3, lparg3, 0);
- }
- GL_NATIVE_EXIT(env, that, glDrawElements_FUNC);
-}
-#endif
-
-#ifndef NO_glDrawPixels
-JNIEXPORT void JNICALL GL_NATIVE(glDrawPixels)
- (JNIEnv *env, jclass that, jint arg0, jint arg1, jint arg2, jint arg3, jintArray arg4)
-{
- jint *lparg4=NULL;
- GL_NATIVE_ENTER(env, that, glDrawPixels_FUNC);
-#ifdef JNI_VERSION_1_2
- if (IS_JNI_1_2) {
- if (arg4) lparg4 = (*env)->GetPrimitiveArrayCritical(env, arg4, NULL);
- } else
-#endif
- {
- if (arg4) lparg4 = (*env)->GetIntArrayElements(env, arg4, NULL);
- }
- glDrawPixels(arg0, arg1, arg2, arg3, lparg4);
-#ifdef JNI_VERSION_1_2
- if (IS_JNI_1_2) {
- if (arg4) (*env)->ReleasePrimitiveArrayCritical(env, arg4, lparg4, 0);
- } else
-#endif
- {
- if (arg4) (*env)->ReleaseIntArrayElements(env, arg4, lparg4, 0);
- }
- GL_NATIVE_EXIT(env, that, glDrawPixels_FUNC);
-}
-#endif
-
-#ifndef NO_glEdgeFlag
-JNIEXPORT void JNICALL GL_NATIVE(glEdgeFlag)
- (JNIEnv *env, jclass that, jboolean arg0)
-{
- GL_NATIVE_ENTER(env, that, glEdgeFlag_FUNC);
- glEdgeFlag(arg0);
- GL_NATIVE_EXIT(env, that, glEdgeFlag_FUNC);
-}
-#endif
-
-#ifndef NO_glEdgeFlagPointer
-JNIEXPORT void JNICALL GL_NATIVE(glEdgeFlagPointer)
- (JNIEnv *env, jclass that, jint arg0, jbooleanArray arg1)
-{
- jboolean *lparg1=NULL;
- GL_NATIVE_ENTER(env, that, glEdgeFlagPointer_FUNC);
-#ifdef JNI_VERSION_1_2
- if (IS_JNI_1_2) {
- if (arg1) lparg1 = (*env)->GetPrimitiveArrayCritical(env, arg1, NULL);
- } else
-#endif
- {
- if (arg1) lparg1 = (*env)->GetBooleanArrayElements(env, arg1, NULL);
- }
- glEdgeFlagPointer(arg0, lparg1);
-#ifdef JNI_VERSION_1_2
- if (IS_JNI_1_2) {
- if (arg1) (*env)->ReleasePrimitiveArrayCritical(env, arg1, lparg1, 0);
- } else
-#endif
- {
- if (arg1) (*env)->ReleaseBooleanArrayElements(env, arg1, lparg1, 0);
- }
- GL_NATIVE_EXIT(env, that, glEdgeFlagPointer_FUNC);
-}
-#endif
-
-#ifndef NO_glEdgeFlagv
-JNIEXPORT void JNICALL GL_NATIVE(glEdgeFlagv)
- (JNIEnv *env, jclass that, jbooleanArray arg0)
-{
- jboolean *lparg0=NULL;
- GL_NATIVE_ENTER(env, that, glEdgeFlagv_FUNC);
-#ifdef JNI_VERSION_1_2
- if (IS_JNI_1_2) {
- if (arg0) lparg0 = (*env)->GetPrimitiveArrayCritical(env, arg0, NULL);
- } else
-#endif
- {
- if (arg0) lparg0 = (*env)->GetBooleanArrayElements(env, arg0, NULL);
- }
- glEdgeFlagv(lparg0);
-#ifdef JNI_VERSION_1_2
- if (IS_JNI_1_2) {
- if (arg0) (*env)->ReleasePrimitiveArrayCritical(env, arg0, lparg0, 0);
- } else
-#endif
- {
- if (arg0) (*env)->ReleaseBooleanArrayElements(env, arg0, lparg0, 0);
- }
- GL_NATIVE_EXIT(env, that, glEdgeFlagv_FUNC);
-}
-#endif
-
-#ifndef NO_glEnable
-JNIEXPORT void JNICALL GL_NATIVE(glEnable)
- (JNIEnv *env, jclass that, jint arg0)
-{
- GL_NATIVE_ENTER(env, that, glEnable_FUNC);
- glEnable(arg0);
- GL_NATIVE_EXIT(env, that, glEnable_FUNC);
-}
-#endif
-
-#ifndef NO_glEnableClientState
-JNIEXPORT void JNICALL GL_NATIVE(glEnableClientState)
- (JNIEnv *env, jclass that, jint arg0)
-{
- GL_NATIVE_ENTER(env, that, glEnableClientState_FUNC);
- glEnableClientState(arg0);
- GL_NATIVE_EXIT(env, that, glEnableClientState_FUNC);
-}
-#endif
-
-#ifndef NO_glEnd
-JNIEXPORT void JNICALL GL_NATIVE(glEnd)
- (JNIEnv *env, jclass that)
-{
- GL_NATIVE_ENTER(env, that, glEnd_FUNC);
- glEnd();
- GL_NATIVE_EXIT(env, that, glEnd_FUNC);
-}
-#endif
-
-#ifndef NO_glEndList
-JNIEXPORT void JNICALL GL_NATIVE(glEndList)
- (JNIEnv *env, jclass that)
-{
- GL_NATIVE_ENTER(env, that, glEndList_FUNC);
- glEndList();
- GL_NATIVE_EXIT(env, that, glEndList_FUNC);
-}
-#endif
-
-#ifndef NO_glEvalCoord1d
-JNIEXPORT void JNICALL GL_NATIVE(glEvalCoord1d)
- (JNIEnv *env, jclass that, jdouble arg0)
-{
- GL_NATIVE_ENTER(env, that, glEvalCoord1d_FUNC);
- glEvalCoord1d(arg0);
- GL_NATIVE_EXIT(env, that, glEvalCoord1d_FUNC);
-}
-#endif
-
-#ifndef NO_glEvalCoord1dv
-JNIEXPORT void JNICALL GL_NATIVE(glEvalCoord1dv)
- (JNIEnv *env, jclass that, jdoubleArray arg0)
-{
- jdouble *lparg0=NULL;
- GL_NATIVE_ENTER(env, that, glEvalCoord1dv_FUNC);
-#ifdef JNI_VERSION_1_2
- if (IS_JNI_1_2) {
- if (arg0) lparg0 = (*env)->GetPrimitiveArrayCritical(env, arg0, NULL);
- } else
-#endif
- {
- if (arg0) lparg0 = (*env)->GetDoubleArrayElements(env, arg0, NULL);
- }
- glEvalCoord1dv(lparg0);
-#ifdef JNI_VERSION_1_2
- if (IS_JNI_1_2) {
- if (arg0) (*env)->ReleasePrimitiveArrayCritical(env, arg0, lparg0, 0);
- } else
-#endif
- {
- if (arg0) (*env)->ReleaseDoubleArrayElements(env, arg0, lparg0, 0);
- }
- GL_NATIVE_EXIT(env, that, glEvalCoord1dv_FUNC);
-}
-#endif
-
-#ifndef NO_glEvalCoord1f
-JNIEXPORT void JNICALL GL_NATIVE(glEvalCoord1f)
- (JNIEnv *env, jclass that, jfloat arg0)
-{
- GL_NATIVE_ENTER(env, that, glEvalCoord1f_FUNC);
- glEvalCoord1f(arg0);
- GL_NATIVE_EXIT(env, that, glEvalCoord1f_FUNC);
-}
-#endif
-
-#ifndef NO_glEvalCoord1fv
-JNIEXPORT void JNICALL GL_NATIVE(glEvalCoord1fv)
- (JNIEnv *env, jclass that, jfloatArray arg0)
-{
- jfloat *lparg0=NULL;
- GL_NATIVE_ENTER(env, that, glEvalCoord1fv_FUNC);
-#ifdef JNI_VERSION_1_2
- if (IS_JNI_1_2) {
- if (arg0) lparg0 = (*env)->GetPrimitiveArrayCritical(env, arg0, NULL);
- } else
-#endif
- {
- if (arg0) lparg0 = (*env)->GetFloatArrayElements(env, arg0, NULL);
- }
- glEvalCoord1fv(lparg0);
-#ifdef JNI_VERSION_1_2
- if (IS_JNI_1_2) {
- if (arg0) (*env)->ReleasePrimitiveArrayCritical(env, arg0, lparg0, 0);
- } else
-#endif
- {
- if (arg0) (*env)->ReleaseFloatArrayElements(env, arg0, lparg0, 0);
- }
- GL_NATIVE_EXIT(env, that, glEvalCoord1fv_FUNC);
-}
-#endif
-
-#ifndef NO_glEvalCoord2d
-JNIEXPORT void JNICALL GL_NATIVE(glEvalCoord2d)
- (JNIEnv *env, jclass that, jdouble arg0, jdouble arg1)
-{
- GL_NATIVE_ENTER(env, that, glEvalCoord2d_FUNC);
- glEvalCoord2d(arg0, arg1);
- GL_NATIVE_EXIT(env, that, glEvalCoord2d_FUNC);
-}
-#endif
-
-#ifndef NO_glEvalCoord2dv
-JNIEXPORT void JNICALL GL_NATIVE(glEvalCoord2dv)
- (JNIEnv *env, jclass that, jdoubleArray arg0)
-{
- jdouble *lparg0=NULL;
- GL_NATIVE_ENTER(env, that, glEvalCoord2dv_FUNC);
-#ifdef JNI_VERSION_1_2
- if (IS_JNI_1_2) {
- if (arg0) lparg0 = (*env)->GetPrimitiveArrayCritical(env, arg0, NULL);
- } else
-#endif
- {
- if (arg0) lparg0 = (*env)->GetDoubleArrayElements(env, arg0, NULL);
- }
- glEvalCoord2dv(lparg0);
-#ifdef JNI_VERSION_1_2
- if (IS_JNI_1_2) {
- if (arg0) (*env)->ReleasePrimitiveArrayCritical(env, arg0, lparg0, 0);
- } else
-#endif
- {
- if (arg0) (*env)->ReleaseDoubleArrayElements(env, arg0, lparg0, 0);
- }
- GL_NATIVE_EXIT(env, that, glEvalCoord2dv_FUNC);
-}
-#endif
-
-#ifndef NO_glEvalCoord2f
-JNIEXPORT void JNICALL GL_NATIVE(glEvalCoord2f)
- (JNIEnv *env, jclass that, jfloat arg0, jfloat arg1)
-{
- GL_NATIVE_ENTER(env, that, glEvalCoord2f_FUNC);
- glEvalCoord2f(arg0, arg1);
- GL_NATIVE_EXIT(env, that, glEvalCoord2f_FUNC);
-}
-#endif
-
-#ifndef NO_glEvalCoord2fv
-JNIEXPORT void JNICALL GL_NATIVE(glEvalCoord2fv)
- (JNIEnv *env, jclass that, jfloatArray arg0)
-{
- jfloat *lparg0=NULL;
- GL_NATIVE_ENTER(env, that, glEvalCoord2fv_FUNC);
-#ifdef JNI_VERSION_1_2
- if (IS_JNI_1_2) {
- if (arg0) lparg0 = (*env)->GetPrimitiveArrayCritical(env, arg0, NULL);
- } else
-#endif
- {
- if (arg0) lparg0 = (*env)->GetFloatArrayElements(env, arg0, NULL);
- }
- glEvalCoord2fv(lparg0);
-#ifdef JNI_VERSION_1_2
- if (IS_JNI_1_2) {
- if (arg0) (*env)->ReleasePrimitiveArrayCritical(env, arg0, lparg0, 0);
- } else
-#endif
- {
- if (arg0) (*env)->ReleaseFloatArrayElements(env, arg0, lparg0, 0);
- }
- GL_NATIVE_EXIT(env, that, glEvalCoord2fv_FUNC);
-}
-#endif
-
-#ifndef NO_glEvalMesh1
-JNIEXPORT void JNICALL GL_NATIVE(glEvalMesh1)
- (JNIEnv *env, jclass that, jint arg0, jint arg1, jint arg2)
-{
- GL_NATIVE_ENTER(env, that, glEvalMesh1_FUNC);
- glEvalMesh1(arg0, arg1, arg2);
- GL_NATIVE_EXIT(env, that, glEvalMesh1_FUNC);
-}
-#endif
-
-#ifndef NO_glEvalMesh2
-JNIEXPORT void JNICALL GL_NATIVE(glEvalMesh2)
- (JNIEnv *env, jclass that, jint arg0, jint arg1, jint arg2, jint arg3, jint arg4)
-{
- GL_NATIVE_ENTER(env, that, glEvalMesh2_FUNC);
- glEvalMesh2(arg0, arg1, arg2, arg3, arg4);
- GL_NATIVE_EXIT(env, that, glEvalMesh2_FUNC);
-}
-#endif
-
-#ifndef NO_glEvalPoint1
-JNIEXPORT void JNICALL GL_NATIVE(glEvalPoint1)
- (JNIEnv *env, jclass that, jint arg0)
-{
- GL_NATIVE_ENTER(env, that, glEvalPoint1_FUNC);
- glEvalPoint1(arg0);
- GL_NATIVE_EXIT(env, that, glEvalPoint1_FUNC);
-}
-#endif
-
-#ifndef NO_glEvalPoint2
-JNIEXPORT void JNICALL GL_NATIVE(glEvalPoint2)
- (JNIEnv *env, jclass that, jint arg0, jint arg1)
-{
- GL_NATIVE_ENTER(env, that, glEvalPoint2_FUNC);
- glEvalPoint2(arg0, arg1);
- GL_NATIVE_EXIT(env, that, glEvalPoint2_FUNC);
-}
-#endif
-
-#ifndef NO_glFeedbackBuffer
-JNIEXPORT void JNICALL GL_NATIVE(glFeedbackBuffer)
- (JNIEnv *env, jclass that, jint arg0, jint arg1, jfloatArray arg2)
-{
- jfloat *lparg2=NULL;
- GL_NATIVE_ENTER(env, that, glFeedbackBuffer_FUNC);
-#ifdef JNI_VERSION_1_2
- if (IS_JNI_1_2) {
- if (arg2) lparg2 = (*env)->GetPrimitiveArrayCritical(env, arg2, NULL);
- } else
-#endif
- {
- if (arg2) lparg2 = (*env)->GetFloatArrayElements(env, arg2, NULL);
- }
- glFeedbackBuffer(arg0, arg1, lparg2);
-#ifdef JNI_VERSION_1_2
- if (IS_JNI_1_2) {
- if (arg2) (*env)->ReleasePrimitiveArrayCritical(env, arg2, lparg2, 0);
- } else
-#endif
- {
- if (arg2) (*env)->ReleaseFloatArrayElements(env, arg2, lparg2, 0);
- }
- GL_NATIVE_EXIT(env, that, glFeedbackBuffer_FUNC);
-}
-#endif
-
-#ifndef NO_glFinish
-JNIEXPORT void JNICALL GL_NATIVE(glFinish)
- (JNIEnv *env, jclass that)
-{
- GL_NATIVE_ENTER(env, that, glFinish_FUNC);
- glFinish();
- GL_NATIVE_EXIT(env, that, glFinish_FUNC);
-}
-#endif
-
-#ifndef NO_glFlush
-JNIEXPORT void JNICALL GL_NATIVE(glFlush)
- (JNIEnv *env, jclass that)
-{
- GL_NATIVE_ENTER(env, that, glFlush_FUNC);
- glFlush();
- GL_NATIVE_EXIT(env, that, glFlush_FUNC);
-}
-#endif
-
-#ifndef NO_glFogf
-JNIEXPORT void JNICALL GL_NATIVE(glFogf)
- (JNIEnv *env, jclass that, jint arg0, jfloat arg1)
-{
- GL_NATIVE_ENTER(env, that, glFogf_FUNC);
- glFogf(arg0, arg1);
- GL_NATIVE_EXIT(env, that, glFogf_FUNC);
-}
-#endif
-
-#ifndef NO_glFogfv
-JNIEXPORT void JNICALL GL_NATIVE(glFogfv)
- (JNIEnv *env, jclass that, jint arg0, jfloatArray arg1)
-{
- jfloat *lparg1=NULL;
- GL_NATIVE_ENTER(env, that, glFogfv_FUNC);
-#ifdef JNI_VERSION_1_2
- if (IS_JNI_1_2) {
- if (arg1) lparg1 = (*env)->GetPrimitiveArrayCritical(env, arg1, NULL);
- } else
-#endif
- {
- if (arg1) lparg1 = (*env)->GetFloatArrayElements(env, arg1, NULL);
- }
- glFogfv(arg0, lparg1);
-#ifdef JNI_VERSION_1_2
- if (IS_JNI_1_2) {
- if (arg1) (*env)->ReleasePrimitiveArrayCritical(env, arg1, lparg1, 0);
- } else
-#endif
- {
- if (arg1) (*env)->ReleaseFloatArrayElements(env, arg1, lparg1, 0);
- }
- GL_NATIVE_EXIT(env, that, glFogfv_FUNC);
-}
-#endif
-
-#ifndef NO_glFogi
-JNIEXPORT void JNICALL GL_NATIVE(glFogi)
- (JNIEnv *env, jclass that, jint arg0, jint arg1)
-{
- GL_NATIVE_ENTER(env, that, glFogi_FUNC);
- glFogi(arg0, arg1);
- GL_NATIVE_EXIT(env, that, glFogi_FUNC);
-}
-#endif
-
-#ifndef NO_glFogiv
-JNIEXPORT void JNICALL GL_NATIVE(glFogiv)
- (JNIEnv *env, jclass that, jint arg0, jintArray arg1)
-{
- jint *lparg1=NULL;
- GL_NATIVE_ENTER(env, that, glFogiv_FUNC);
-#ifdef JNI_VERSION_1_2
- if (IS_JNI_1_2) {
- if (arg1) lparg1 = (*env)->GetPrimitiveArrayCritical(env, arg1, NULL);
- } else
-#endif
- {
- if (arg1) lparg1 = (*env)->GetIntArrayElements(env, arg1, NULL);
- }
- glFogiv(arg0, lparg1);
-#ifdef JNI_VERSION_1_2
- if (IS_JNI_1_2) {
- if (arg1) (*env)->ReleasePrimitiveArrayCritical(env, arg1, lparg1, 0);
- } else
-#endif
- {
- if (arg1) (*env)->ReleaseIntArrayElements(env, arg1, lparg1, 0);
- }
- GL_NATIVE_EXIT(env, that, glFogiv_FUNC);
-}
-#endif
-
-#ifndef NO_glFrontFace
-JNIEXPORT void JNICALL GL_NATIVE(glFrontFace)
- (JNIEnv *env, jclass that, jint arg0)
-{
- GL_NATIVE_ENTER(env, that, glFrontFace_FUNC);
- glFrontFace(arg0);
- GL_NATIVE_EXIT(env, that, glFrontFace_FUNC);
-}
-#endif
-
-#ifndef NO_glFrustum
-JNIEXPORT void JNICALL GL_NATIVE(glFrustum)
- (JNIEnv *env, jclass that, jdouble arg0, jdouble arg1, jdouble arg2, jdouble arg3, jdouble arg4, jdouble arg5)
-{
- GL_NATIVE_ENTER(env, that, glFrustum_FUNC);
- glFrustum(arg0, arg1, arg2, arg3, arg4, arg5);
- GL_NATIVE_EXIT(env, that, glFrustum_FUNC);
-}
-#endif
-
-#ifndef NO_glGenLists
-JNIEXPORT jint JNICALL GL_NATIVE(glGenLists)
- (JNIEnv *env, jclass that, jint arg0)
-{
- jint rc;
- GL_NATIVE_ENTER(env, that, glGenLists_FUNC);
- rc = (jint)glGenLists(arg0);
- GL_NATIVE_EXIT(env, that, glGenLists_FUNC);
- return rc;
-}
-#endif
-
-#ifndef NO_glGenTextures
-JNIEXPORT void JNICALL GL_NATIVE(glGenTextures)
- (JNIEnv *env, jclass that, jint arg0, jintArray arg1)
-{
- jint *lparg1=NULL;
- GL_NATIVE_ENTER(env, that, glGenTextures_FUNC);
-#ifdef JNI_VERSION_1_2
- if (IS_JNI_1_2) {
- if (arg1) lparg1 = (*env)->GetPrimitiveArrayCritical(env, arg1, NULL);
- } else
-#endif
- {
- if (arg1) lparg1 = (*env)->GetIntArrayElements(env, arg1, NULL);
- }
- glGenTextures(arg0, (GLuint *)lparg1);
-#ifdef JNI_VERSION_1_2
- if (IS_JNI_1_2) {
- if (arg1) (*env)->ReleasePrimitiveArrayCritical(env, arg1, lparg1, 0);
- } else
-#endif
- {
- if (arg1) (*env)->ReleaseIntArrayElements(env, arg1, lparg1, 0);
- }
- GL_NATIVE_EXIT(env, that, glGenTextures_FUNC);
-}
-#endif
-
-#ifndef NO_glGetBooleanv
-JNIEXPORT void JNICALL GL_NATIVE(glGetBooleanv)
- (JNIEnv *env, jclass that, jint arg0, jbooleanArray arg1)
-{
- jboolean *lparg1=NULL;
- GL_NATIVE_ENTER(env, that, glGetBooleanv_FUNC);
-#ifdef JNI_VERSION_1_2
- if (IS_JNI_1_2) {
- if (arg1) lparg1 = (*env)->GetPrimitiveArrayCritical(env, arg1, NULL);
- } else
-#endif
- {
- if (arg1) lparg1 = (*env)->GetBooleanArrayElements(env, arg1, NULL);
- }
- glGetBooleanv(arg0, lparg1);
-#ifdef JNI_VERSION_1_2
- if (IS_JNI_1_2) {
- if (arg1) (*env)->ReleasePrimitiveArrayCritical(env, arg1, lparg1, 0);
- } else
-#endif
- {
- if (arg1) (*env)->ReleaseBooleanArrayElements(env, arg1, lparg1, 0);
- }
- GL_NATIVE_EXIT(env, that, glGetBooleanv_FUNC);
-}
-#endif
-
-#ifndef NO_glGetClipPlane
-JNIEXPORT void JNICALL GL_NATIVE(glGetClipPlane)
- (JNIEnv *env, jclass that, jint arg0, jdoubleArray arg1)
-{
- jdouble *lparg1=NULL;
- GL_NATIVE_ENTER(env, that, glGetClipPlane_FUNC);
-#ifdef JNI_VERSION_1_2
- if (IS_JNI_1_2) {
- if (arg1) lparg1 = (*env)->GetPrimitiveArrayCritical(env, arg1, NULL);
- } else
-#endif
- {
- if (arg1) lparg1 = (*env)->GetDoubleArrayElements(env, arg1, NULL);
- }
- glGetClipPlane(arg0, lparg1);
-#ifdef JNI_VERSION_1_2
- if (IS_JNI_1_2) {
- if (arg1) (*env)->ReleasePrimitiveArrayCritical(env, arg1, lparg1, 0);
- } else
-#endif
- {
- if (arg1) (*env)->ReleaseDoubleArrayElements(env, arg1, lparg1, 0);
- }
- GL_NATIVE_EXIT(env, that, glGetClipPlane_FUNC);
-}
-#endif
-
-#ifndef NO_glGetDoublev
-JNIEXPORT void JNICALL GL_NATIVE(glGetDoublev)
- (JNIEnv *env, jclass that, jint arg0, jdoubleArray arg1)
-{
- jdouble *lparg1=NULL;
- GL_NATIVE_ENTER(env, that, glGetDoublev_FUNC);
-#ifdef JNI_VERSION_1_2
- if (IS_JNI_1_2) {
- if (arg1) lparg1 = (*env)->GetPrimitiveArrayCritical(env, arg1, NULL);
- } else
-#endif
- {
- if (arg1) lparg1 = (*env)->GetDoubleArrayElements(env, arg1, NULL);
- }
- glGetDoublev(arg0, lparg1);
-#ifdef JNI_VERSION_1_2
- if (IS_JNI_1_2) {
- if (arg1) (*env)->ReleasePrimitiveArrayCritical(env, arg1, lparg1, 0);
- } else
-#endif
- {
- if (arg1) (*env)->ReleaseDoubleArrayElements(env, arg1, lparg1, 0);
- }
- GL_NATIVE_EXIT(env, that, glGetDoublev_FUNC);
-}
-#endif
-
-#ifndef NO_glGetError
-JNIEXPORT jint JNICALL GL_NATIVE(glGetError)
- (JNIEnv *env, jclass that)
-{
- jint rc;
- GL_NATIVE_ENTER(env, that, glGetError_FUNC);
- rc = (jint)glGetError();
- GL_NATIVE_EXIT(env, that, glGetError_FUNC);
- return rc;
-}
-#endif
-
-#ifndef NO_glGetFloatv
-JNIEXPORT void JNICALL GL_NATIVE(glGetFloatv)
- (JNIEnv *env, jclass that, jint arg0, jfloatArray arg1)
-{
- jfloat *lparg1=NULL;
- GL_NATIVE_ENTER(env, that, glGetFloatv_FUNC);
-#ifdef JNI_VERSION_1_2
- if (IS_JNI_1_2) {
- if (arg1) lparg1 = (*env)->GetPrimitiveArrayCritical(env, arg1, NULL);
- } else
-#endif
- {
- if (arg1) lparg1 = (*env)->GetFloatArrayElements(env, arg1, NULL);
- }
- glGetFloatv(arg0, lparg1);
-#ifdef JNI_VERSION_1_2
- if (IS_JNI_1_2) {
- if (arg1) (*env)->ReleasePrimitiveArrayCritical(env, arg1, lparg1, 0);
- } else
-#endif
- {
- if (arg1) (*env)->ReleaseFloatArrayElements(env, arg1, lparg1, 0);
- }
- GL_NATIVE_EXIT(env, that, glGetFloatv_FUNC);
-}
-#endif
-
-#ifndef NO_glGetIntegerv
-JNIEXPORT void JNICALL GL_NATIVE(glGetIntegerv)
- (JNIEnv *env, jclass that, jint arg0, jintArray arg1)
-{
- jint *lparg1=NULL;
- GL_NATIVE_ENTER(env, that, glGetIntegerv_FUNC);
-#ifdef JNI_VERSION_1_2
- if (IS_JNI_1_2) {
- if (arg1) lparg1 = (*env)->GetPrimitiveArrayCritical(env, arg1, NULL);
- } else
-#endif
- {
- if (arg1) lparg1 = (*env)->GetIntArrayElements(env, arg1, NULL);
- }
- glGetIntegerv(arg0, lparg1);
-#ifdef JNI_VERSION_1_2
- if (IS_JNI_1_2) {
- if (arg1) (*env)->ReleasePrimitiveArrayCritical(env, arg1, lparg1, 0);
- } else
-#endif
- {
- if (arg1) (*env)->ReleaseIntArrayElements(env, arg1, lparg1, 0);
- }
- GL_NATIVE_EXIT(env, that, glGetIntegerv_FUNC);
-}
-#endif
-
-#ifndef NO_glGetLightfv
-JNIEXPORT void JNICALL GL_NATIVE(glGetLightfv)
- (JNIEnv *env, jclass that, jint arg0, jint arg1, jfloatArray arg2)
-{
- jfloat *lparg2=NULL;
- GL_NATIVE_ENTER(env, that, glGetLightfv_FUNC);
-#ifdef JNI_VERSION_1_2
- if (IS_JNI_1_2) {
- if (arg2) lparg2 = (*env)->GetPrimitiveArrayCritical(env, arg2, NULL);
- } else
-#endif
- {
- if (arg2) lparg2 = (*env)->GetFloatArrayElements(env, arg2, NULL);
- }
- glGetLightfv(arg0, arg1, lparg2);
-#ifdef JNI_VERSION_1_2
- if (IS_JNI_1_2) {
- if (arg2) (*env)->ReleasePrimitiveArrayCritical(env, arg2, lparg2, 0);
- } else
-#endif
- {
- if (arg2) (*env)->ReleaseFloatArrayElements(env, arg2, lparg2, 0);
- }
- GL_NATIVE_EXIT(env, that, glGetLightfv_FUNC);
-}
-#endif
-
-#ifndef NO_glGetLightiv
-JNIEXPORT void JNICALL GL_NATIVE(glGetLightiv)
- (JNIEnv *env, jclass that, jint arg0, jint arg1, jintArray arg2)
-{
- jint *lparg2=NULL;
- GL_NATIVE_ENTER(env, that, glGetLightiv_FUNC);
-#ifdef JNI_VERSION_1_2
- if (IS_JNI_1_2) {
- if (arg2) lparg2 = (*env)->GetPrimitiveArrayCritical(env, arg2, NULL);
- } else
-#endif
- {
- if (arg2) lparg2 = (*env)->GetIntArrayElements(env, arg2, NULL);
- }
- glGetLightiv(arg0, arg1, lparg2);
-#ifdef JNI_VERSION_1_2
- if (IS_JNI_1_2) {
- if (arg2) (*env)->ReleasePrimitiveArrayCritical(env, arg2, lparg2, 0);
- } else
-#endif
- {
- if (arg2) (*env)->ReleaseIntArrayElements(env, arg2, lparg2, 0);
- }
- GL_NATIVE_EXIT(env, that, glGetLightiv_FUNC);
-}
-#endif
-
-#ifndef NO_glGetMapdv
-JNIEXPORT void JNICALL GL_NATIVE(glGetMapdv)
- (JNIEnv *env, jclass that, jint arg0, jint arg1, jdoubleArray arg2)
-{
- jdouble *lparg2=NULL;
- GL_NATIVE_ENTER(env, that, glGetMapdv_FUNC);
-#ifdef JNI_VERSION_1_2
- if (IS_JNI_1_2) {
- if (arg2) lparg2 = (*env)->GetPrimitiveArrayCritical(env, arg2, NULL);
- } else
-#endif
- {
- if (arg2) lparg2 = (*env)->GetDoubleArrayElements(env, arg2, NULL);
- }
- glGetMapdv(arg0, arg1, lparg2);
-#ifdef JNI_VERSION_1_2
- if (IS_JNI_1_2) {
- if (arg2) (*env)->ReleasePrimitiveArrayCritical(env, arg2, lparg2, 0);
- } else
-#endif
- {
- if (arg2) (*env)->ReleaseDoubleArrayElements(env, arg2, lparg2, 0);
- }
- GL_NATIVE_EXIT(env, that, glGetMapdv_FUNC);
-}
-#endif
-
-#ifndef NO_glGetMapfv
-JNIEXPORT void JNICALL GL_NATIVE(glGetMapfv)
- (JNIEnv *env, jclass that, jint arg0, jint arg1, jfloatArray arg2)
-{
- jfloat *lparg2=NULL;
- GL_NATIVE_ENTER(env, that, glGetMapfv_FUNC);
-#ifdef JNI_VERSION_1_2
- if (IS_JNI_1_2) {
- if (arg2) lparg2 = (*env)->GetPrimitiveArrayCritical(env, arg2, NULL);
- } else
-#endif
- {
- if (arg2) lparg2 = (*env)->GetFloatArrayElements(env, arg2, NULL);
- }
- glGetMapfv(arg0, arg1, lparg2);
-#ifdef JNI_VERSION_1_2
- if (IS_JNI_1_2) {
- if (arg2) (*env)->ReleasePrimitiveArrayCritical(env, arg2, lparg2, 0);
- } else
-#endif
- {
- if (arg2) (*env)->ReleaseFloatArrayElements(env, arg2, lparg2, 0);
- }
- GL_NATIVE_EXIT(env, that, glGetMapfv_FUNC);
-}
-#endif
-
-#ifndef NO_glGetMapiv
-JNIEXPORT void JNICALL GL_NATIVE(glGetMapiv)
- (JNIEnv *env, jclass that, jint arg0, jint arg1, jintArray arg2)
-{
- jint *lparg2=NULL;
- GL_NATIVE_ENTER(env, that, glGetMapiv_FUNC);
-#ifdef JNI_VERSION_1_2
- if (IS_JNI_1_2) {
- if (arg2) lparg2 = (*env)->GetPrimitiveArrayCritical(env, arg2, NULL);
- } else
-#endif
- {
- if (arg2) lparg2 = (*env)->GetIntArrayElements(env, arg2, NULL);
- }
- glGetMapiv(arg0, arg1, lparg2);
-#ifdef JNI_VERSION_1_2
- if (IS_JNI_1_2) {
- if (arg2) (*env)->ReleasePrimitiveArrayCritical(env, arg2, lparg2, 0);
- } else
-#endif
- {
- if (arg2) (*env)->ReleaseIntArrayElements(env, arg2, lparg2, 0);
- }
- GL_NATIVE_EXIT(env, that, glGetMapiv_FUNC);
-}
-#endif
-
-#ifndef NO_glGetMaterialfv
-JNIEXPORT void JNICALL GL_NATIVE(glGetMaterialfv)
- (JNIEnv *env, jclass that, jint arg0, jint arg1, jfloatArray arg2)
-{
- jfloat *lparg2=NULL;
- GL_NATIVE_ENTER(env, that, glGetMaterialfv_FUNC);
-#ifdef JNI_VERSION_1_2
- if (IS_JNI_1_2) {
- if (arg2) lparg2 = (*env)->GetPrimitiveArrayCritical(env, arg2, NULL);
- } else
-#endif
- {
- if (arg2) lparg2 = (*env)->GetFloatArrayElements(env, arg2, NULL);
- }
- glGetMaterialfv(arg0, arg1, lparg2);
-#ifdef JNI_VERSION_1_2
- if (IS_JNI_1_2) {
- if (arg2) (*env)->ReleasePrimitiveArrayCritical(env, arg2, lparg2, 0);
- } else
-#endif
- {
- if (arg2) (*env)->ReleaseFloatArrayElements(env, arg2, lparg2, 0);
- }
- GL_NATIVE_EXIT(env, that, glGetMaterialfv_FUNC);
-}
-#endif
-
-#ifndef NO_glGetMaterialiv
-JNIEXPORT void JNICALL GL_NATIVE(glGetMaterialiv)
- (JNIEnv *env, jclass that, jint arg0, jint arg1, jintArray arg2)
-{
- jint *lparg2=NULL;
- GL_NATIVE_ENTER(env, that, glGetMaterialiv_FUNC);
-#ifdef JNI_VERSION_1_2
- if (IS_JNI_1_2) {
- if (arg2) lparg2 = (*env)->GetPrimitiveArrayCritical(env, arg2, NULL);
- } else
-#endif
- {
- if (arg2) lparg2 = (*env)->GetIntArrayElements(env, arg2, NULL);
- }
- glGetMaterialiv(arg0, arg1, lparg2);
-#ifdef JNI_VERSION_1_2
- if (IS_JNI_1_2) {
- if (arg2) (*env)->ReleasePrimitiveArrayCritical(env, arg2, lparg2, 0);
- } else
-#endif
- {
- if (arg2) (*env)->ReleaseIntArrayElements(env, arg2, lparg2, 0);
- }
- GL_NATIVE_EXIT(env, that, glGetMaterialiv_FUNC);
-}
-#endif
-
-#ifndef NO_glGetPixelMapfv
-JNIEXPORT void JNICALL GL_NATIVE(glGetPixelMapfv)
- (JNIEnv *env, jclass that, jint arg0, jfloatArray arg1)
-{
- jfloat *lparg1=NULL;
- GL_NATIVE_ENTER(env, that, glGetPixelMapfv_FUNC);
-#ifdef JNI_VERSION_1_2
- if (IS_JNI_1_2) {
- if (arg1) lparg1 = (*env)->GetPrimitiveArrayCritical(env, arg1, NULL);
- } else
-#endif
- {
- if (arg1) lparg1 = (*env)->GetFloatArrayElements(env, arg1, NULL);
- }
- glGetPixelMapfv(arg0, lparg1);
-#ifdef JNI_VERSION_1_2
- if (IS_JNI_1_2) {
- if (arg1) (*env)->ReleasePrimitiveArrayCritical(env, arg1, lparg1, 0);
- } else
-#endif
- {
- if (arg1) (*env)->ReleaseFloatArrayElements(env, arg1, lparg1, 0);
- }
- GL_NATIVE_EXIT(env, that, glGetPixelMapfv_FUNC);
-}
-#endif
-
-#ifndef NO_glGetPixelMapuiv
-JNIEXPORT void JNICALL GL_NATIVE(glGetPixelMapuiv)
- (JNIEnv *env, jclass that, jint arg0, jintArray arg1)
-{
- jint *lparg1=NULL;
- GL_NATIVE_ENTER(env, that, glGetPixelMapuiv_FUNC);
-#ifdef JNI_VERSION_1_2
- if (IS_JNI_1_2) {
- if (arg1) lparg1 = (*env)->GetPrimitiveArrayCritical(env, arg1, NULL);
- } else
-#endif
- {
- if (arg1) lparg1 = (*env)->GetIntArrayElements(env, arg1, NULL);
- }
- glGetPixelMapuiv(arg0, (GLuint *)lparg1);
-#ifdef JNI_VERSION_1_2
- if (IS_JNI_1_2) {
- if (arg1) (*env)->ReleasePrimitiveArrayCritical(env, arg1, lparg1, 0);
- } else
-#endif
- {
- if (arg1) (*env)->ReleaseIntArrayElements(env, arg1, lparg1, 0);
- }
- GL_NATIVE_EXIT(env, that, glGetPixelMapuiv_FUNC);
-}
-#endif
-
-#ifndef NO_glGetPixelMapusv
-JNIEXPORT void JNICALL GL_NATIVE(glGetPixelMapusv)
- (JNIEnv *env, jclass that, jint arg0, jshortArray arg1)
-{
- jshort *lparg1=NULL;
- GL_NATIVE_ENTER(env, that, glGetPixelMapusv_FUNC);
-#ifdef JNI_VERSION_1_2
- if (IS_JNI_1_2) {
- if (arg1) lparg1 = (*env)->GetPrimitiveArrayCritical(env, arg1, NULL);
- } else
-#endif
- {
- if (arg1) lparg1 = (*env)->GetShortArrayElements(env, arg1, NULL);
- }
- glGetPixelMapusv(arg0, (GLushort *)lparg1);
-#ifdef JNI_VERSION_1_2
- if (IS_JNI_1_2) {
- if (arg1) (*env)->ReleasePrimitiveArrayCritical(env, arg1, lparg1, 0);
- } else
-#endif
- {
- if (arg1) (*env)->ReleaseShortArrayElements(env, arg1, lparg1, 0);
- }
- GL_NATIVE_EXIT(env, that, glGetPixelMapusv_FUNC);
-}
-#endif
-
-#ifndef NO_glGetPointerv
-JNIEXPORT void JNICALL GL_NATIVE(glGetPointerv)
- (JNIEnv *env, jclass that, jint arg0, jintArray arg1)
-{
- jint *lparg1=NULL;
- GL_NATIVE_ENTER(env, that, glGetPointerv_FUNC);
- if (arg1) lparg1 = (*env)->GetIntArrayElements(env, arg1, NULL);
- glGetPointerv(arg0, (GLvoid **)lparg1);
- if (arg1) (*env)->ReleaseIntArrayElements(env, arg1, lparg1, 0);
- GL_NATIVE_EXIT(env, that, glGetPointerv_FUNC);
-}
-#endif
-
-#ifndef NO_glGetPolygonStipple
-JNIEXPORT void JNICALL GL_NATIVE(glGetPolygonStipple)
- (JNIEnv *env, jclass that, jbyteArray arg0)
-{
- jbyte *lparg0=NULL;
- GL_NATIVE_ENTER(env, that, glGetPolygonStipple_FUNC);
-#ifdef JNI_VERSION_1_2
- if (IS_JNI_1_2) {
- if (arg0) lparg0 = (*env)->GetPrimitiveArrayCritical(env, arg0, NULL);
- } else
-#endif
- {
- if (arg0) lparg0 = (*env)->GetByteArrayElements(env, arg0, NULL);
- }
- glGetPolygonStipple((GLubyte *)lparg0);
-#ifdef JNI_VERSION_1_2
- if (IS_JNI_1_2) {
- if (arg0) (*env)->ReleasePrimitiveArrayCritical(env, arg0, lparg0, 0);
- } else
-#endif
- {
- if (arg0) (*env)->ReleaseByteArrayElements(env, arg0, lparg0, 0);
- }
- GL_NATIVE_EXIT(env, that, glGetPolygonStipple_FUNC);
-}
-#endif
-
-#ifndef NO_glGetString
-JNIEXPORT jint JNICALL GL_NATIVE(glGetString)
- (JNIEnv *env, jclass that, jint arg0)
-{
- jint rc;
- GL_NATIVE_ENTER(env, that, glGetString_FUNC);
- rc = (jint)glGetString(arg0);
- GL_NATIVE_EXIT(env, that, glGetString_FUNC);
- return rc;
-}
-#endif
-
-#ifndef NO_glGetTexEnvfv
-JNIEXPORT void JNICALL GL_NATIVE(glGetTexEnvfv)
- (JNIEnv *env, jclass that, jint arg0, jint arg1, jfloatArray arg2)
-{
- jfloat *lparg2=NULL;
- GL_NATIVE_ENTER(env, that, glGetTexEnvfv_FUNC);
-#ifdef JNI_VERSION_1_2
- if (IS_JNI_1_2) {
- if (arg2) lparg2 = (*env)->GetPrimitiveArrayCritical(env, arg2, NULL);
- } else
-#endif
- {
- if (arg2) lparg2 = (*env)->GetFloatArrayElements(env, arg2, NULL);
- }
- glGetTexEnvfv(arg0, arg1, lparg2);
-#ifdef JNI_VERSION_1_2
- if (IS_JNI_1_2) {
- if (arg2) (*env)->ReleasePrimitiveArrayCritical(env, arg2, lparg2, 0);
- } else
-#endif
- {
- if (arg2) (*env)->ReleaseFloatArrayElements(env, arg2, lparg2, 0);
- }
- GL_NATIVE_EXIT(env, that, glGetTexEnvfv_FUNC);
-}
-#endif
-
-#ifndef NO_glGetTexEnviv
-JNIEXPORT void JNICALL GL_NATIVE(glGetTexEnviv)
- (JNIEnv *env, jclass that, jint arg0, jint arg1, jintArray arg2)
-{
- jint *lparg2=NULL;
- GL_NATIVE_ENTER(env, that, glGetTexEnviv_FUNC);
-#ifdef JNI_VERSION_1_2
- if (IS_JNI_1_2) {
- if (arg2) lparg2 = (*env)->GetPrimitiveArrayCritical(env, arg2, NULL);
- } else
-#endif
- {
- if (arg2) lparg2 = (*env)->GetIntArrayElements(env, arg2, NULL);
- }
- glGetTexEnviv(arg0, arg1, lparg2);
-#ifdef JNI_VERSION_1_2
- if (IS_JNI_1_2) {
- if (arg2) (*env)->ReleasePrimitiveArrayCritical(env, arg2, lparg2, 0);
- } else
-#endif
- {
- if (arg2) (*env)->ReleaseIntArrayElements(env, arg2, lparg2, 0);
- }
- GL_NATIVE_EXIT(env, that, glGetTexEnviv_FUNC);
-}
-#endif
-
-#ifndef NO_glGetTexGendv
-JNIEXPORT void JNICALL GL_NATIVE(glGetTexGendv)
- (JNIEnv *env, jclass that, jint arg0, jint arg1, jdoubleArray arg2)
-{
- jdouble *lparg2=NULL;
- GL_NATIVE_ENTER(env, that, glGetTexGendv_FUNC);
-#ifdef JNI_VERSION_1_2
- if (IS_JNI_1_2) {
- if (arg2) lparg2 = (*env)->GetPrimitiveArrayCritical(env, arg2, NULL);
- } else
-#endif
- {
- if (arg2) lparg2 = (*env)->GetDoubleArrayElements(env, arg2, NULL);
- }
- glGetTexGendv(arg0, arg1, lparg2);
-#ifdef JNI_VERSION_1_2
- if (IS_JNI_1_2) {
- if (arg2) (*env)->ReleasePrimitiveArrayCritical(env, arg2, lparg2, 0);
- } else
-#endif
- {
- if (arg2) (*env)->ReleaseDoubleArrayElements(env, arg2, lparg2, 0);
- }
- GL_NATIVE_EXIT(env, that, glGetTexGendv_FUNC);
-}
-#endif
-
-#ifndef NO_glGetTexGenfv
-JNIEXPORT void JNICALL GL_NATIVE(glGetTexGenfv)
- (JNIEnv *env, jclass that, jint arg0, jint arg1, jfloatArray arg2)
-{
- jfloat *lparg2=NULL;
- GL_NATIVE_ENTER(env, that, glGetTexGenfv_FUNC);
-#ifdef JNI_VERSION_1_2
- if (IS_JNI_1_2) {
- if (arg2) lparg2 = (*env)->GetPrimitiveArrayCritical(env, arg2, NULL);
- } else
-#endif
- {
- if (arg2) lparg2 = (*env)->GetFloatArrayElements(env, arg2, NULL);
- }
- glGetTexGenfv(arg0, arg1, lparg2);
-#ifdef JNI_VERSION_1_2
- if (IS_JNI_1_2) {
- if (arg2) (*env)->ReleasePrimitiveArrayCritical(env, arg2, lparg2, 0);
- } else
-#endif
- {
- if (arg2) (*env)->ReleaseFloatArrayElements(env, arg2, lparg2, 0);
- }
- GL_NATIVE_EXIT(env, that, glGetTexGenfv_FUNC);
-}
-#endif
-
-#ifndef NO_glGetTexGeniv
-JNIEXPORT void JNICALL GL_NATIVE(glGetTexGeniv)
- (JNIEnv *env, jclass that, jint arg0, jint arg1, jintArray arg2)
-{
- jint *lparg2=NULL;
- GL_NATIVE_ENTER(env, that, glGetTexGeniv_FUNC);
-#ifdef JNI_VERSION_1_2
- if (IS_JNI_1_2) {
- if (arg2) lparg2 = (*env)->GetPrimitiveArrayCritical(env, arg2, NULL);
- } else
-#endif
- {
- if (arg2) lparg2 = (*env)->GetIntArrayElements(env, arg2, NULL);
- }
- glGetTexGeniv(arg0, arg1, lparg2);
-#ifdef JNI_VERSION_1_2
- if (IS_JNI_1_2) {
- if (arg2) (*env)->ReleasePrimitiveArrayCritical(env, arg2, lparg2, 0);
- } else
-#endif
- {
- if (arg2) (*env)->ReleaseIntArrayElements(env, arg2, lparg2, 0);
- }
- GL_NATIVE_EXIT(env, that, glGetTexGeniv_FUNC);
-}
-#endif
-
-#ifndef NO_glGetTexImage
-JNIEXPORT void JNICALL GL_NATIVE(glGetTexImage)
- (JNIEnv *env, jclass that, jint arg0, jint arg1, jint arg2, jint arg3, jintArray arg4)
-{
- jint *lparg4=NULL;
- GL_NATIVE_ENTER(env, that, glGetTexImage_FUNC);
-#ifdef JNI_VERSION_1_2
- if (IS_JNI_1_2) {
- if (arg4) lparg4 = (*env)->GetPrimitiveArrayCritical(env, arg4, NULL);
- } else
-#endif
- {
- if (arg4) lparg4 = (*env)->GetIntArrayElements(env, arg4, NULL);
- }
- glGetTexImage(arg0, arg1, arg2, arg3, lparg4);
-#ifdef JNI_VERSION_1_2
- if (IS_JNI_1_2) {
- if (arg4) (*env)->ReleasePrimitiveArrayCritical(env, arg4, lparg4, 0);
- } else
-#endif
- {
- if (arg4) (*env)->ReleaseIntArrayElements(env, arg4, lparg4, 0);
- }
- GL_NATIVE_EXIT(env, that, glGetTexImage_FUNC);
-}
-#endif
-
-#ifndef NO_glGetTexLevelParameterfv
-JNIEXPORT void JNICALL GL_NATIVE(glGetTexLevelParameterfv)
- (JNIEnv *env, jclass that, jint arg0, jint arg1, jint arg2, jfloatArray arg3)
-{
- jfloat *lparg3=NULL;
- GL_NATIVE_ENTER(env, that, glGetTexLevelParameterfv_FUNC);
-#ifdef JNI_VERSION_1_2
- if (IS_JNI_1_2) {
- if (arg3) lparg3 = (*env)->GetPrimitiveArrayCritical(env, arg3, NULL);
- } else
-#endif
- {
- if (arg3) lparg3 = (*env)->GetFloatArrayElements(env, arg3, NULL);
- }
- glGetTexLevelParameterfv(arg0, arg1, arg2, lparg3);
-#ifdef JNI_VERSION_1_2
- if (IS_JNI_1_2) {
- if (arg3) (*env)->ReleasePrimitiveArrayCritical(env, arg3, lparg3, 0);
- } else
-#endif
- {
- if (arg3) (*env)->ReleaseFloatArrayElements(env, arg3, lparg3, 0);
- }
- GL_NATIVE_EXIT(env, that, glGetTexLevelParameterfv_FUNC);
-}
-#endif
-
-#ifndef NO_glGetTexLevelParameteriv
-JNIEXPORT void JNICALL GL_NATIVE(glGetTexLevelParameteriv)
- (JNIEnv *env, jclass that, jint arg0, jint arg1, jint arg2, jintArray arg3)
-{
- jint *lparg3=NULL;
- GL_NATIVE_ENTER(env, that, glGetTexLevelParameteriv_FUNC);
-#ifdef JNI_VERSION_1_2
- if (IS_JNI_1_2) {
- if (arg3) lparg3 = (*env)->GetPrimitiveArrayCritical(env, arg3, NULL);
- } else
-#endif
- {
- if (arg3) lparg3 = (*env)->GetIntArrayElements(env, arg3, NULL);
- }
- glGetTexLevelParameteriv(arg0, arg1, arg2, lparg3);
-#ifdef JNI_VERSION_1_2
- if (IS_JNI_1_2) {
- if (arg3) (*env)->ReleasePrimitiveArrayCritical(env, arg3, lparg3, 0);
- } else
-#endif
- {
- if (arg3) (*env)->ReleaseIntArrayElements(env, arg3, lparg3, 0);
- }
- GL_NATIVE_EXIT(env, that, glGetTexLevelParameteriv_FUNC);
-}
-#endif
-
-#ifndef NO_glGetTexParameterfv
-JNIEXPORT void JNICALL GL_NATIVE(glGetTexParameterfv)
- (JNIEnv *env, jclass that, jint arg0, jint arg1, jfloatArray arg2)
-{
- jfloat *lparg2=NULL;
- GL_NATIVE_ENTER(env, that, glGetTexParameterfv_FUNC);
-#ifdef JNI_VERSION_1_2
- if (IS_JNI_1_2) {
- if (arg2) lparg2 = (*env)->GetPrimitiveArrayCritical(env, arg2, NULL);
- } else
-#endif
- {
- if (arg2) lparg2 = (*env)->GetFloatArrayElements(env, arg2, NULL);
- }
- glGetTexParameterfv(arg0, arg1, lparg2);
-#ifdef JNI_VERSION_1_2
- if (IS_JNI_1_2) {
- if (arg2) (*env)->ReleasePrimitiveArrayCritical(env, arg2, lparg2, 0);
- } else
-#endif
- {
- if (arg2) (*env)->ReleaseFloatArrayElements(env, arg2, lparg2, 0);
- }
- GL_NATIVE_EXIT(env, that, glGetTexParameterfv_FUNC);
-}
-#endif
-
-#ifndef NO_glGetTexParameteriv
-JNIEXPORT void JNICALL GL_NATIVE(glGetTexParameteriv)
- (JNIEnv *env, jclass that, jint arg0, jint arg1, jintArray arg2)
-{
- jint *lparg2=NULL;
- GL_NATIVE_ENTER(env, that, glGetTexParameteriv_FUNC);
-#ifdef JNI_VERSION_1_2
- if (IS_JNI_1_2) {
- if (arg2) lparg2 = (*env)->GetPrimitiveArrayCritical(env, arg2, NULL);
- } else
-#endif
- {
- if (arg2) lparg2 = (*env)->GetIntArrayElements(env, arg2, NULL);
- }
- glGetTexParameteriv(arg0, arg1, lparg2);
-#ifdef JNI_VERSION_1_2
- if (IS_JNI_1_2) {
- if (arg2) (*env)->ReleasePrimitiveArrayCritical(env, arg2, lparg2, 0);
- } else
-#endif
- {
- if (arg2) (*env)->ReleaseIntArrayElements(env, arg2, lparg2, 0);
- }
- GL_NATIVE_EXIT(env, that, glGetTexParameteriv_FUNC);
-}
-#endif
-
-#ifndef NO_glHint
-JNIEXPORT void JNICALL GL_NATIVE(glHint)
- (JNIEnv *env, jclass that, jint arg0, jint arg1)
-{
- GL_NATIVE_ENTER(env, that, glHint_FUNC);
- glHint(arg0, arg1);
- GL_NATIVE_EXIT(env, that, glHint_FUNC);
-}
-#endif
-
-#ifndef NO_glIndexMask
-JNIEXPORT void JNICALL GL_NATIVE(glIndexMask)
- (JNIEnv *env, jclass that, jint arg0)
-{
- GL_NATIVE_ENTER(env, that, glIndexMask_FUNC);
- glIndexMask(arg0);
- GL_NATIVE_EXIT(env, that, glIndexMask_FUNC);
-}
-#endif
-
-#ifndef NO_glIndexPointer
-JNIEXPORT void JNICALL GL_NATIVE(glIndexPointer)
- (JNIEnv *env, jclass that, jint arg0, jint arg1, jintArray arg2)
-{
- jint *lparg2=NULL;
- GL_NATIVE_ENTER(env, that, glIndexPointer_FUNC);
-#ifdef JNI_VERSION_1_2
- if (IS_JNI_1_2) {
- if (arg2) lparg2 = (*env)->GetPrimitiveArrayCritical(env, arg2, NULL);
- } else
-#endif
- {
- if (arg2) lparg2 = (*env)->GetIntArrayElements(env, arg2, NULL);
- }
- glIndexPointer(arg0, arg1, lparg2);
-#ifdef JNI_VERSION_1_2
- if (IS_JNI_1_2) {
- if (arg2) (*env)->ReleasePrimitiveArrayCritical(env, arg2, lparg2, 0);
- } else
-#endif
- {
- if (arg2) (*env)->ReleaseIntArrayElements(env, arg2, lparg2, 0);
- }
- GL_NATIVE_EXIT(env, that, glIndexPointer_FUNC);
-}
-#endif
-
-#ifndef NO_glIndexd
-JNIEXPORT void JNICALL GL_NATIVE(glIndexd)
- (JNIEnv *env, jclass that, jdouble arg0)
-{
- GL_NATIVE_ENTER(env, that, glIndexd_FUNC);
- glIndexd(arg0);
- GL_NATIVE_EXIT(env, that, glIndexd_FUNC);
-}
-#endif
-
-#ifndef NO_glIndexdv
-JNIEXPORT void JNICALL GL_NATIVE(glIndexdv)
- (JNIEnv *env, jclass that, jdoubleArray arg0)
-{
- jdouble *lparg0=NULL;
- GL_NATIVE_ENTER(env, that, glIndexdv_FUNC);
-#ifdef JNI_VERSION_1_2
- if (IS_JNI_1_2) {
- if (arg0) lparg0 = (*env)->GetPrimitiveArrayCritical(env, arg0, NULL);
- } else
-#endif
- {
- if (arg0) lparg0 = (*env)->GetDoubleArrayElements(env, arg0, NULL);
- }
- glIndexdv(lparg0);
-#ifdef JNI_VERSION_1_2
- if (IS_JNI_1_2) {
- if (arg0) (*env)->ReleasePrimitiveArrayCritical(env, arg0, lparg0, 0);
- } else
-#endif
- {
- if (arg0) (*env)->ReleaseDoubleArrayElements(env, arg0, lparg0, 0);
- }
- GL_NATIVE_EXIT(env, that, glIndexdv_FUNC);
-}
-#endif
-
-#ifndef NO_glIndexf
-JNIEXPORT void JNICALL GL_NATIVE(glIndexf)
- (JNIEnv *env, jclass that, jfloat arg0)
-{
- GL_NATIVE_ENTER(env, that, glIndexf_FUNC);
- glIndexf(arg0);
- GL_NATIVE_EXIT(env, that, glIndexf_FUNC);
-}
-#endif
-
-#ifndef NO_glIndexfv
-JNIEXPORT void JNICALL GL_NATIVE(glIndexfv)
- (JNIEnv *env, jclass that, jfloatArray arg0)
-{
- jfloat *lparg0=NULL;
- GL_NATIVE_ENTER(env, that, glIndexfv_FUNC);
-#ifdef JNI_VERSION_1_2
- if (IS_JNI_1_2) {
- if (arg0) lparg0 = (*env)->GetPrimitiveArrayCritical(env, arg0, NULL);
- } else
-#endif
- {
- if (arg0) lparg0 = (*env)->GetFloatArrayElements(env, arg0, NULL);
- }
- glIndexfv(lparg0);
-#ifdef JNI_VERSION_1_2
- if (IS_JNI_1_2) {
- if (arg0) (*env)->ReleasePrimitiveArrayCritical(env, arg0, lparg0, 0);
- } else
-#endif
- {
- if (arg0) (*env)->ReleaseFloatArrayElements(env, arg0, lparg0, 0);
- }
- GL_NATIVE_EXIT(env, that, glIndexfv_FUNC);
-}
-#endif
-
-#ifndef NO_glIndexi
-JNIEXPORT void JNICALL GL_NATIVE(glIndexi)
- (JNIEnv *env, jclass that, jint arg0)
-{
- GL_NATIVE_ENTER(env, that, glIndexi_FUNC);
- glIndexi(arg0);
- GL_NATIVE_EXIT(env, that, glIndexi_FUNC);
-}
-#endif
-
-#ifndef NO_glIndexiv
-JNIEXPORT void JNICALL GL_NATIVE(glIndexiv)
- (JNIEnv *env, jclass that, jintArray arg0)
-{
- jint *lparg0=NULL;
- GL_NATIVE_ENTER(env, that, glIndexiv_FUNC);
-#ifdef JNI_VERSION_1_2
- if (IS_JNI_1_2) {
- if (arg0) lparg0 = (*env)->GetPrimitiveArrayCritical(env, arg0, NULL);
- } else
-#endif
- {
- if (arg0) lparg0 = (*env)->GetIntArrayElements(env, arg0, NULL);
- }
- glIndexiv(lparg0);
-#ifdef JNI_VERSION_1_2
- if (IS_JNI_1_2) {
- if (arg0) (*env)->ReleasePrimitiveArrayCritical(env, arg0, lparg0, 0);
- } else
-#endif
- {
- if (arg0) (*env)->ReleaseIntArrayElements(env, arg0, lparg0, 0);
- }
- GL_NATIVE_EXIT(env, that, glIndexiv_FUNC);
-}
-#endif
-
-#ifndef NO_glIndexs
-JNIEXPORT void JNICALL GL_NATIVE(glIndexs)
- (JNIEnv *env, jclass that, jshort arg0)
-{
- GL_NATIVE_ENTER(env, that, glIndexs_FUNC);
- glIndexs(arg0);
- GL_NATIVE_EXIT(env, that, glIndexs_FUNC);
-}
-#endif
-
-#ifndef NO_glIndexsv
-JNIEXPORT void JNICALL GL_NATIVE(glIndexsv)
- (JNIEnv *env, jclass that, jshortArray arg0)
-{
- jshort *lparg0=NULL;
- GL_NATIVE_ENTER(env, that, glIndexsv_FUNC);
-#ifdef JNI_VERSION_1_2
- if (IS_JNI_1_2) {
- if (arg0) lparg0 = (*env)->GetPrimitiveArrayCritical(env, arg0, NULL);
- } else
-#endif
- {
- if (arg0) lparg0 = (*env)->GetShortArrayElements(env, arg0, NULL);
- }
- glIndexsv(lparg0);
-#ifdef JNI_VERSION_1_2
- if (IS_JNI_1_2) {
- if (arg0) (*env)->ReleasePrimitiveArrayCritical(env, arg0, lparg0, 0);
- } else
-#endif
- {
- if (arg0) (*env)->ReleaseShortArrayElements(env, arg0, lparg0, 0);
- }
- GL_NATIVE_EXIT(env, that, glIndexsv_FUNC);
-}
-#endif
-
-#ifndef NO_glInitNames
-JNIEXPORT void JNICALL GL_NATIVE(glInitNames)
- (JNIEnv *env, jclass that)
-{
- GL_NATIVE_ENTER(env, that, glInitNames_FUNC);
- glInitNames();
- GL_NATIVE_EXIT(env, that, glInitNames_FUNC);
-}
-#endif
-
-#ifndef NO_glInterleavedArrays
-JNIEXPORT void JNICALL GL_NATIVE(glInterleavedArrays)
- (JNIEnv *env, jclass that, jint arg0, jint arg1, jintArray arg2)
-{
- jint *lparg2=NULL;
- GL_NATIVE_ENTER(env, that, glInterleavedArrays_FUNC);
-#ifdef JNI_VERSION_1_2
- if (IS_JNI_1_2) {
- if (arg2) lparg2 = (*env)->GetPrimitiveArrayCritical(env, arg2, NULL);
- } else
-#endif
- {
- if (arg2) lparg2 = (*env)->GetIntArrayElements(env, arg2, NULL);
- }
- glInterleavedArrays(arg0, arg1, lparg2);
-#ifdef JNI_VERSION_1_2
- if (IS_JNI_1_2) {
- if (arg2) (*env)->ReleasePrimitiveArrayCritical(env, arg2, lparg2, 0);
- } else
-#endif
- {
- if (arg2) (*env)->ReleaseIntArrayElements(env, arg2, lparg2, 0);
- }
- GL_NATIVE_EXIT(env, that, glInterleavedArrays_FUNC);
-}
-#endif
-
-#ifndef NO_glIsEnabled
-JNIEXPORT jboolean JNICALL GL_NATIVE(glIsEnabled)
- (JNIEnv *env, jclass that, jint arg0)
-{
- jboolean rc;
- GL_NATIVE_ENTER(env, that, glIsEnabled_FUNC);
- rc = (jboolean)glIsEnabled(arg0);
- GL_NATIVE_EXIT(env, that, glIsEnabled_FUNC);
- return rc;
-}
-#endif
-
-#ifndef NO_glIsList
-JNIEXPORT jboolean JNICALL GL_NATIVE(glIsList)
- (JNIEnv *env, jclass that, jint arg0)
-{
- jboolean rc;
- GL_NATIVE_ENTER(env, that, glIsList_FUNC);
- rc = (jboolean)glIsList(arg0);
- GL_NATIVE_EXIT(env, that, glIsList_FUNC);
- return rc;
-}
-#endif
-
-#ifndef NO_glIsTexture
-JNIEXPORT jboolean JNICALL GL_NATIVE(glIsTexture)
- (JNIEnv *env, jclass that, jint arg0)
-{
- jboolean rc;
- GL_NATIVE_ENTER(env, that, glIsTexture_FUNC);
- rc = (jboolean)glIsTexture(arg0);
- GL_NATIVE_EXIT(env, that, glIsTexture_FUNC);
- return rc;
-}
-#endif
-
-#ifndef NO_glLightModelf
-JNIEXPORT void JNICALL GL_NATIVE(glLightModelf)
- (JNIEnv *env, jclass that, jint arg0, jfloat arg1)
-{
- GL_NATIVE_ENTER(env, that, glLightModelf_FUNC);
- glLightModelf(arg0, arg1);
- GL_NATIVE_EXIT(env, that, glLightModelf_FUNC);
-}
-#endif
-
-#ifndef NO_glLightModelfv
-JNIEXPORT void JNICALL GL_NATIVE(glLightModelfv)
- (JNIEnv *env, jclass that, jint arg0, jfloatArray arg1)
-{
- jfloat *lparg1=NULL;
- GL_NATIVE_ENTER(env, that, glLightModelfv_FUNC);
-#ifdef JNI_VERSION_1_2
- if (IS_JNI_1_2) {
- if (arg1) lparg1 = (*env)->GetPrimitiveArrayCritical(env, arg1, NULL);
- } else
-#endif
- {
- if (arg1) lparg1 = (*env)->GetFloatArrayElements(env, arg1, NULL);
- }
- glLightModelfv(arg0, lparg1);
-#ifdef JNI_VERSION_1_2
- if (IS_JNI_1_2) {
- if (arg1) (*env)->ReleasePrimitiveArrayCritical(env, arg1, lparg1, 0);
- } else
-#endif
- {
- if (arg1) (*env)->ReleaseFloatArrayElements(env, arg1, lparg1, 0);
- }
- GL_NATIVE_EXIT(env, that, glLightModelfv_FUNC);
-}
-#endif
-
-#ifndef NO_glLightModeli
-JNIEXPORT void JNICALL GL_NATIVE(glLightModeli)
- (JNIEnv *env, jclass that, jint arg0, jint arg1)
-{
- GL_NATIVE_ENTER(env, that, glLightModeli_FUNC);
- glLightModeli(arg0, arg1);
- GL_NATIVE_EXIT(env, that, glLightModeli_FUNC);
-}
-#endif
-
-#ifndef NO_glLightModeliv
-JNIEXPORT void JNICALL GL_NATIVE(glLightModeliv)
- (JNIEnv *env, jclass that, jint arg0, jintArray arg1)
-{
- jint *lparg1=NULL;
- GL_NATIVE_ENTER(env, that, glLightModeliv_FUNC);
-#ifdef JNI_VERSION_1_2
- if (IS_JNI_1_2) {
- if (arg1) lparg1 = (*env)->GetPrimitiveArrayCritical(env, arg1, NULL);
- } else
-#endif
- {
- if (arg1) lparg1 = (*env)->GetIntArrayElements(env, arg1, NULL);
- }
- glLightModeliv(arg0, lparg1);
-#ifdef JNI_VERSION_1_2
- if (IS_JNI_1_2) {
- if (arg1) (*env)->ReleasePrimitiveArrayCritical(env, arg1, lparg1, 0);
- } else
-#endif
- {
- if (arg1) (*env)->ReleaseIntArrayElements(env, arg1, lparg1, 0);
- }
- GL_NATIVE_EXIT(env, that, glLightModeliv_FUNC);
-}
-#endif
-
-#ifndef NO_glLightf
-JNIEXPORT void JNICALL GL_NATIVE(glLightf)
- (JNIEnv *env, jclass that, jint arg0, jint arg1, jfloat arg2)
-{
- GL_NATIVE_ENTER(env, that, glLightf_FUNC);
- glLightf(arg0, arg1, arg2);
- GL_NATIVE_EXIT(env, that, glLightf_FUNC);
-}
-#endif
-
-#ifndef NO_glLightfv
-JNIEXPORT void JNICALL GL_NATIVE(glLightfv)
- (JNIEnv *env, jclass that, jint arg0, jint arg1, jfloatArray arg2)
-{
- jfloat *lparg2=NULL;
- GL_NATIVE_ENTER(env, that, glLightfv_FUNC);
-#ifdef JNI_VERSION_1_2
- if (IS_JNI_1_2) {
- if (arg2) lparg2 = (*env)->GetPrimitiveArrayCritical(env, arg2, NULL);
- } else
-#endif
- {
- if (arg2) lparg2 = (*env)->GetFloatArrayElements(env, arg2, NULL);
- }
- glLightfv(arg0, arg1, lparg2);
-#ifdef JNI_VERSION_1_2
- if (IS_JNI_1_2) {
- if (arg2) (*env)->ReleasePrimitiveArrayCritical(env, arg2, lparg2, 0);
- } else
-#endif
- {
- if (arg2) (*env)->ReleaseFloatArrayElements(env, arg2, lparg2, 0);
- }
- GL_NATIVE_EXIT(env, that, glLightfv_FUNC);
-}
-#endif
-
-#ifndef NO_glLighti
-JNIEXPORT void JNICALL GL_NATIVE(glLighti)
- (JNIEnv *env, jclass that, jint arg0, jint arg1, jint arg2)
-{
- GL_NATIVE_ENTER(env, that, glLighti_FUNC);
- glLighti(arg0, arg1, arg2);
- GL_NATIVE_EXIT(env, that, glLighti_FUNC);
-}
-#endif
-
-#ifndef NO_glLightiv
-JNIEXPORT void JNICALL GL_NATIVE(glLightiv)
- (JNIEnv *env, jclass that, jint arg0, jint arg1, jintArray arg2)
-{
- jint *lparg2=NULL;
- GL_NATIVE_ENTER(env, that, glLightiv_FUNC);
-#ifdef JNI_VERSION_1_2
- if (IS_JNI_1_2) {
- if (arg2) lparg2 = (*env)->GetPrimitiveArrayCritical(env, arg2, NULL);
- } else
-#endif
- {
- if (arg2) lparg2 = (*env)->GetIntArrayElements(env, arg2, NULL);
- }
- glLightiv(arg0, arg1, lparg2);
-#ifdef JNI_VERSION_1_2
- if (IS_JNI_1_2) {
- if (arg2) (*env)->ReleasePrimitiveArrayCritical(env, arg2, lparg2, 0);
- } else
-#endif
- {
- if (arg2) (*env)->ReleaseIntArrayElements(env, arg2, lparg2, 0);
- }
- GL_NATIVE_EXIT(env, that, glLightiv_FUNC);
-}
-#endif
-
-#ifndef NO_glLineStipple
-JNIEXPORT void JNICALL GL_NATIVE(glLineStipple)
- (JNIEnv *env, jclass that, jint arg0, jshort arg1)
-{
- GL_NATIVE_ENTER(env, that, glLineStipple_FUNC);
- glLineStipple(arg0, arg1);
- GL_NATIVE_EXIT(env, that, glLineStipple_FUNC);
-}
-#endif
-
-#ifndef NO_glLineWidth
-JNIEXPORT void JNICALL GL_NATIVE(glLineWidth)
- (JNIEnv *env, jclass that, jfloat arg0)
-{
- GL_NATIVE_ENTER(env, that, glLineWidth_FUNC);
- glLineWidth(arg0);
- GL_NATIVE_EXIT(env, that, glLineWidth_FUNC);
-}
-#endif
-
-#ifndef NO_glListBase
-JNIEXPORT void JNICALL GL_NATIVE(glListBase)
- (JNIEnv *env, jclass that, jint arg0)
-{
- GL_NATIVE_ENTER(env, that, glListBase_FUNC);
- glListBase(arg0);
- GL_NATIVE_EXIT(env, that, glListBase_FUNC);
-}
-#endif
-
-#ifndef NO_glLoadIdentity
-JNIEXPORT void JNICALL GL_NATIVE(glLoadIdentity)
- (JNIEnv *env, jclass that)
-{
- GL_NATIVE_ENTER(env, that, glLoadIdentity_FUNC);
- glLoadIdentity();
- GL_NATIVE_EXIT(env, that, glLoadIdentity_FUNC);
-}
-#endif
-
-#ifndef NO_glLoadMatrixd
-JNIEXPORT void JNICALL GL_NATIVE(glLoadMatrixd)
- (JNIEnv *env, jclass that, jdoubleArray arg0)
-{
- jdouble *lparg0=NULL;
- GL_NATIVE_ENTER(env, that, glLoadMatrixd_FUNC);
-#ifdef JNI_VERSION_1_2
- if (IS_JNI_1_2) {
- if (arg0) lparg0 = (*env)->GetPrimitiveArrayCritical(env, arg0, NULL);
- } else
-#endif
- {
- if (arg0) lparg0 = (*env)->GetDoubleArrayElements(env, arg0, NULL);
- }
- glLoadMatrixd(lparg0);
-#ifdef JNI_VERSION_1_2
- if (IS_JNI_1_2) {
- if (arg0) (*env)->ReleasePrimitiveArrayCritical(env, arg0, lparg0, 0);
- } else
-#endif
- {
- if (arg0) (*env)->ReleaseDoubleArrayElements(env, arg0, lparg0, 0);
- }
- GL_NATIVE_EXIT(env, that, glLoadMatrixd_FUNC);
-}
-#endif
-
-#ifndef NO_glLoadMatrixf
-JNIEXPORT void JNICALL GL_NATIVE(glLoadMatrixf)
- (JNIEnv *env, jclass that, jfloatArray arg0)
-{
- jfloat *lparg0=NULL;
- GL_NATIVE_ENTER(env, that, glLoadMatrixf_FUNC);
-#ifdef JNI_VERSION_1_2
- if (IS_JNI_1_2) {
- if (arg0) lparg0 = (*env)->GetPrimitiveArrayCritical(env, arg0, NULL);
- } else
-#endif
- {
- if (arg0) lparg0 = (*env)->GetFloatArrayElements(env, arg0, NULL);
- }
- glLoadMatrixf(lparg0);
-#ifdef JNI_VERSION_1_2
- if (IS_JNI_1_2) {
- if (arg0) (*env)->ReleasePrimitiveArrayCritical(env, arg0, lparg0, 0);
- } else
-#endif
- {
- if (arg0) (*env)->ReleaseFloatArrayElements(env, arg0, lparg0, 0);
- }
- GL_NATIVE_EXIT(env, that, glLoadMatrixf_FUNC);
-}
-#endif
-
-#ifndef NO_glLoadName
-JNIEXPORT void JNICALL GL_NATIVE(glLoadName)
- (JNIEnv *env, jclass that, jint arg0)
-{
- GL_NATIVE_ENTER(env, that, glLoadName_FUNC);
- glLoadName(arg0);
- GL_NATIVE_EXIT(env, that, glLoadName_FUNC);
-}
-#endif
-
-#ifndef NO_glLogicOp
-JNIEXPORT void JNICALL GL_NATIVE(glLogicOp)
- (JNIEnv *env, jclass that, jint arg0)
-{
- GL_NATIVE_ENTER(env, that, glLogicOp_FUNC);
- glLogicOp(arg0);
- GL_NATIVE_EXIT(env, that, glLogicOp_FUNC);
-}
-#endif
-
-#ifndef NO_glMap1d
-JNIEXPORT void JNICALL GL_NATIVE(glMap1d)
- (JNIEnv *env, jclass that, jint arg0, jdouble arg1, jdouble arg2, jint arg3, jint arg4, jdoubleArray arg5)
-{
- jdouble *lparg5=NULL;
- GL_NATIVE_ENTER(env, that, glMap1d_FUNC);
-#ifdef JNI_VERSION_1_2
- if (IS_JNI_1_2) {
- if (arg5) lparg5 = (*env)->GetPrimitiveArrayCritical(env, arg5, NULL);
- } else
-#endif
- {
- if (arg5) lparg5 = (*env)->GetDoubleArrayElements(env, arg5, NULL);
- }
- glMap1d(arg0, arg1, arg2, arg3, arg4, lparg5);
-#ifdef JNI_VERSION_1_2
- if (IS_JNI_1_2) {
- if (arg5) (*env)->ReleasePrimitiveArrayCritical(env, arg5, lparg5, 0);
- } else
-#endif
- {
- if (arg5) (*env)->ReleaseDoubleArrayElements(env, arg5, lparg5, 0);
- }
- GL_NATIVE_EXIT(env, that, glMap1d_FUNC);
-}
-#endif
-
-#ifndef NO_glMap1f
-JNIEXPORT void JNICALL GL_NATIVE(glMap1f)
- (JNIEnv *env, jclass that, jint arg0, jfloat arg1, jfloat arg2, jint arg3, jint arg4, jfloatArray arg5)
-{
- jfloat *lparg5=NULL;
- GL_NATIVE_ENTER(env, that, glMap1f_FUNC);
-#ifdef JNI_VERSION_1_2
- if (IS_JNI_1_2) {
- if (arg5) lparg5 = (*env)->GetPrimitiveArrayCritical(env, arg5, NULL);
- } else
-#endif
- {
- if (arg5) lparg5 = (*env)->GetFloatArrayElements(env, arg5, NULL);
- }
- glMap1f(arg0, arg1, arg2, arg3, arg4, lparg5);
-#ifdef JNI_VERSION_1_2
- if (IS_JNI_1_2) {
- if (arg5) (*env)->ReleasePrimitiveArrayCritical(env, arg5, lparg5, 0);
- } else
-#endif
- {
- if (arg5) (*env)->ReleaseFloatArrayElements(env, arg5, lparg5, 0);
- }
- GL_NATIVE_EXIT(env, that, glMap1f_FUNC);
-}
-#endif
-
-#ifndef NO_glMap2d
-JNIEXPORT void JNICALL GL_NATIVE(glMap2d)
- (JNIEnv *env, jclass that, jint arg0, jdouble arg1, jdouble arg2, jint arg3, jint arg4, jdouble arg5, jdouble arg6, jint arg7, jint arg8, jdoubleArray arg9)
-{
- jdouble *lparg9=NULL;
- GL_NATIVE_ENTER(env, that, glMap2d_FUNC);
-#ifdef JNI_VERSION_1_2
- if (IS_JNI_1_2) {
- if (arg9) lparg9 = (*env)->GetPrimitiveArrayCritical(env, arg9, NULL);
- } else
-#endif
- {
- if (arg9) lparg9 = (*env)->GetDoubleArrayElements(env, arg9, NULL);
- }
- glMap2d(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, lparg9);
-#ifdef JNI_VERSION_1_2
- if (IS_JNI_1_2) {
- if (arg9) (*env)->ReleasePrimitiveArrayCritical(env, arg9, lparg9, 0);
- } else
-#endif
- {
- if (arg9) (*env)->ReleaseDoubleArrayElements(env, arg9, lparg9, 0);
- }
- GL_NATIVE_EXIT(env, that, glMap2d_FUNC);
-}
-#endif
-
-#ifndef NO_glMap2f
-JNIEXPORT void JNICALL GL_NATIVE(glMap2f)
- (JNIEnv *env, jclass that, jint arg0, jfloat arg1, jfloat arg2, jint arg3, jint arg4, jfloat arg5, jfloat arg6, jint arg7, jint arg8, jfloatArray arg9)
-{
- jfloat *lparg9=NULL;
- GL_NATIVE_ENTER(env, that, glMap2f_FUNC);
-#ifdef JNI_VERSION_1_2
- if (IS_JNI_1_2) {
- if (arg9) lparg9 = (*env)->GetPrimitiveArrayCritical(env, arg9, NULL);
- } else
-#endif
- {
- if (arg9) lparg9 = (*env)->GetFloatArrayElements(env, arg9, NULL);
- }
- glMap2f(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, lparg9);
-#ifdef JNI_VERSION_1_2
- if (IS_JNI_1_2) {
- if (arg9) (*env)->ReleasePrimitiveArrayCritical(env, arg9, lparg9, 0);
- } else
-#endif
- {
- if (arg9) (*env)->ReleaseFloatArrayElements(env, arg9, lparg9, 0);
- }
- GL_NATIVE_EXIT(env, that, glMap2f_FUNC);
-}
-#endif
-
-#ifndef NO_glMapGrid1d
-JNIEXPORT void JNICALL GL_NATIVE(glMapGrid1d)
- (JNIEnv *env, jclass that, jint arg0, jdouble arg1, jdouble arg2)
-{
- GL_NATIVE_ENTER(env, that, glMapGrid1d_FUNC);
- glMapGrid1d(arg0, arg1, arg2);
- GL_NATIVE_EXIT(env, that, glMapGrid1d_FUNC);
-}
-#endif
-
-#ifndef NO_glMapGrid1f
-JNIEXPORT void JNICALL GL_NATIVE(glMapGrid1f)
- (JNIEnv *env, jclass that, jint arg0, jfloat arg1, jfloat arg2)
-{
- GL_NATIVE_ENTER(env, that, glMapGrid1f_FUNC);
- glMapGrid1f(arg0, arg1, arg2);
- GL_NATIVE_EXIT(env, that, glMapGrid1f_FUNC);
-}
-#endif
-
-#ifndef NO_glMapGrid2d
-JNIEXPORT void JNICALL GL_NATIVE(glMapGrid2d)
- (JNIEnv *env, jclass that, jint arg0, jdouble arg1, jdouble arg2, jint arg3, jdouble arg4, jdouble arg5)
-{
- GL_NATIVE_ENTER(env, that, glMapGrid2d_FUNC);
- glMapGrid2d(arg0, arg1, arg2, arg3, arg4, arg5);
- GL_NATIVE_EXIT(env, that, glMapGrid2d_FUNC);
-}
-#endif
-
-#ifndef NO_glMapGrid2f
-JNIEXPORT void JNICALL GL_NATIVE(glMapGrid2f)
- (JNIEnv *env, jclass that, jint arg0, jfloat arg1, jfloat arg2, jint arg3, jfloat arg4, jfloat arg5)
-{
- GL_NATIVE_ENTER(env, that, glMapGrid2f_FUNC);
- glMapGrid2f(arg0, arg1, arg2, arg3, arg4, arg5);
- GL_NATIVE_EXIT(env, that, glMapGrid2f_FUNC);
-}
-#endif
-
-#ifndef NO_glMaterialf
-JNIEXPORT void JNICALL GL_NATIVE(glMaterialf)
- (JNIEnv *env, jclass that, jint arg0, jint arg1, jfloat arg2)
-{
- GL_NATIVE_ENTER(env, that, glMaterialf_FUNC);
- glMaterialf(arg0, arg1, arg2);
- GL_NATIVE_EXIT(env, that, glMaterialf_FUNC);
-}
-#endif
-
-#ifndef NO_glMaterialfv
-JNIEXPORT void JNICALL GL_NATIVE(glMaterialfv)
- (JNIEnv *env, jclass that, jint arg0, jint arg1, jfloatArray arg2)
-{
- jfloat *lparg2=NULL;
- GL_NATIVE_ENTER(env, that, glMaterialfv_FUNC);
-#ifdef JNI_VERSION_1_2
- if (IS_JNI_1_2) {
- if (arg2) lparg2 = (*env)->GetPrimitiveArrayCritical(env, arg2, NULL);
- } else
-#endif
- {
- if (arg2) lparg2 = (*env)->GetFloatArrayElements(env, arg2, NULL);
- }
- glMaterialfv(arg0, arg1, lparg2);
-#ifdef JNI_VERSION_1_2
- if (IS_JNI_1_2) {
- if (arg2) (*env)->ReleasePrimitiveArrayCritical(env, arg2, lparg2, 0);
- } else
-#endif
- {
- if (arg2) (*env)->ReleaseFloatArrayElements(env, arg2, lparg2, 0);
- }
- GL_NATIVE_EXIT(env, that, glMaterialfv_FUNC);
-}
-#endif
-
-#ifndef NO_glMateriali
-JNIEXPORT void JNICALL GL_NATIVE(glMateriali)
- (JNIEnv *env, jclass that, jint arg0, jint arg1, jint arg2)
-{
- GL_NATIVE_ENTER(env, that, glMateriali_FUNC);
- glMateriali(arg0, arg1, arg2);
- GL_NATIVE_EXIT(env, that, glMateriali_FUNC);
-}
-#endif
-
-#ifndef NO_glMaterialiv
-JNIEXPORT void JNICALL GL_NATIVE(glMaterialiv)
- (JNIEnv *env, jclass that, jint arg0, jint arg1, jintArray arg2)
-{
- jint *lparg2=NULL;
- GL_NATIVE_ENTER(env, that, glMaterialiv_FUNC);
-#ifdef JNI_VERSION_1_2
- if (IS_JNI_1_2) {
- if (arg2) lparg2 = (*env)->GetPrimitiveArrayCritical(env, arg2, NULL);
- } else
-#endif
- {
- if (arg2) lparg2 = (*env)->GetIntArrayElements(env, arg2, NULL);
- }
- glMaterialiv(arg0, arg1, lparg2);
-#ifdef JNI_VERSION_1_2
- if (IS_JNI_1_2) {
- if (arg2) (*env)->ReleasePrimitiveArrayCritical(env, arg2, lparg2, 0);
- } else
-#endif
- {
- if (arg2) (*env)->ReleaseIntArrayElements(env, arg2, lparg2, 0);
- }
- GL_NATIVE_EXIT(env, that, glMaterialiv_FUNC);
-}
-#endif
-
-#ifndef NO_glMatrixMode
-JNIEXPORT void JNICALL GL_NATIVE(glMatrixMode)
- (JNIEnv *env, jclass that, jint arg0)
-{
- GL_NATIVE_ENTER(env, that, glMatrixMode_FUNC);
- glMatrixMode(arg0);
- GL_NATIVE_EXIT(env, that, glMatrixMode_FUNC);
-}
-#endif
-
-#ifndef NO_glMultMatrixd
-JNIEXPORT void JNICALL GL_NATIVE(glMultMatrixd)
- (JNIEnv *env, jclass that, jdoubleArray arg0)
-{
- jdouble *lparg0=NULL;
- GL_NATIVE_ENTER(env, that, glMultMatrixd_FUNC);
-#ifdef JNI_VERSION_1_2
- if (IS_JNI_1_2) {
- if (arg0) lparg0 = (*env)->GetPrimitiveArrayCritical(env, arg0, NULL);
- } else
-#endif
- {
- if (arg0) lparg0 = (*env)->GetDoubleArrayElements(env, arg0, NULL);
- }
- glMultMatrixd(lparg0);
-#ifdef JNI_VERSION_1_2
- if (IS_JNI_1_2) {
- if (arg0) (*env)->ReleasePrimitiveArrayCritical(env, arg0, lparg0, 0);
- } else
-#endif
- {
- if (arg0) (*env)->ReleaseDoubleArrayElements(env, arg0, lparg0, 0);
- }
- GL_NATIVE_EXIT(env, that, glMultMatrixd_FUNC);
-}
-#endif
-
-#ifndef NO_glMultMatrixf
-JNIEXPORT void JNICALL GL_NATIVE(glMultMatrixf)
- (JNIEnv *env, jclass that, jfloatArray arg0)
-{
- jfloat *lparg0=NULL;
- GL_NATIVE_ENTER(env, that, glMultMatrixf_FUNC);
-#ifdef JNI_VERSION_1_2
- if (IS_JNI_1_2) {
- if (arg0) lparg0 = (*env)->GetPrimitiveArrayCritical(env, arg0, NULL);
- } else
-#endif
- {
- if (arg0) lparg0 = (*env)->GetFloatArrayElements(env, arg0, NULL);
- }
- glMultMatrixf(lparg0);
-#ifdef JNI_VERSION_1_2
- if (IS_JNI_1_2) {
- if (arg0) (*env)->ReleasePrimitiveArrayCritical(env, arg0, lparg0, 0);
- } else
-#endif
- {
- if (arg0) (*env)->ReleaseFloatArrayElements(env, arg0, lparg0, 0);
- }
- GL_NATIVE_EXIT(env, that, glMultMatrixf_FUNC);
-}
-#endif
-
-#ifndef NO_glNewList
-JNIEXPORT void JNICALL GL_NATIVE(glNewList)
- (JNIEnv *env, jclass that, jint arg0, jint arg1)
-{
- GL_NATIVE_ENTER(env, that, glNewList_FUNC);
- glNewList(arg0, arg1);
- GL_NATIVE_EXIT(env, that, glNewList_FUNC);
-}
-#endif
-
-#ifndef NO_glNormal3b
-JNIEXPORT void JNICALL GL_NATIVE(glNormal3b)
- (JNIEnv *env, jclass that, jbyte arg0, jbyte arg1, jbyte arg2)
-{
- GL_NATIVE_ENTER(env, that, glNormal3b_FUNC);
- glNormal3b(arg0, arg1, arg2);
- GL_NATIVE_EXIT(env, that, glNormal3b_FUNC);
-}
-#endif
-
-#ifndef NO_glNormal3bv
-JNIEXPORT void JNICALL GL_NATIVE(glNormal3bv)
- (JNIEnv *env, jclass that, jbyteArray arg0)
-{
- jbyte *lparg0=NULL;
- GL_NATIVE_ENTER(env, that, glNormal3bv_FUNC);
-#ifdef JNI_VERSION_1_2
- if (IS_JNI_1_2) {
- if (arg0) lparg0 = (*env)->GetPrimitiveArrayCritical(env, arg0, NULL);
- } else
-#endif
- {
- if (arg0) lparg0 = (*env)->GetByteArrayElements(env, arg0, NULL);
- }
- glNormal3bv(lparg0);
-#ifdef JNI_VERSION_1_2
- if (IS_JNI_1_2) {
- if (arg0) (*env)->ReleasePrimitiveArrayCritical(env, arg0, lparg0, 0);
- } else
-#endif
- {
- if (arg0) (*env)->ReleaseByteArrayElements(env, arg0, lparg0, 0);
- }
- GL_NATIVE_EXIT(env, that, glNormal3bv_FUNC);
-}
-#endif
-
-#ifndef NO_glNormal3d
-JNIEXPORT void JNICALL GL_NATIVE(glNormal3d)
- (JNIEnv *env, jclass that, jdouble arg0, jdouble arg1, jdouble arg2)
-{
- GL_NATIVE_ENTER(env, that, glNormal3d_FUNC);
- glNormal3d(arg0, arg1, arg2);
- GL_NATIVE_EXIT(env, that, glNormal3d_FUNC);
-}
-#endif
-
-#ifndef NO_glNormal3dv
-JNIEXPORT void JNICALL GL_NATIVE(glNormal3dv)
- (JNIEnv *env, jclass that, jdoubleArray arg0)
-{
- jdouble *lparg0=NULL;
- GL_NATIVE_ENTER(env, that, glNormal3dv_FUNC);
-#ifdef JNI_VERSION_1_2
- if (IS_JNI_1_2) {
- if (arg0) lparg0 = (*env)->GetPrimitiveArrayCritical(env, arg0, NULL);
- } else
-#endif
- {
- if (arg0) lparg0 = (*env)->GetDoubleArrayElements(env, arg0, NULL);
- }
- glNormal3dv(lparg0);
-#ifdef JNI_VERSION_1_2
- if (IS_JNI_1_2) {
- if (arg0) (*env)->ReleasePrimitiveArrayCritical(env, arg0, lparg0, 0);
- } else
-#endif
- {
- if (arg0) (*env)->ReleaseDoubleArrayElements(env, arg0, lparg0, 0);
- }
- GL_NATIVE_EXIT(env, that, glNormal3dv_FUNC);
-}
-#endif
-
-#ifndef NO_glNormal3f
-JNIEXPORT void JNICALL GL_NATIVE(glNormal3f)
- (JNIEnv *env, jclass that, jfloat arg0, jfloat arg1, jfloat arg2)
-{
- GL_NATIVE_ENTER(env, that, glNormal3f_FUNC);
- glNormal3f(arg0, arg1, arg2);
- GL_NATIVE_EXIT(env, that, glNormal3f_FUNC);
-}
-#endif
-
-#ifndef NO_glNormal3fv
-JNIEXPORT void JNICALL GL_NATIVE(glNormal3fv)
- (JNIEnv *env, jclass that, jfloatArray arg0)
-{
- jfloat *lparg0=NULL;
- GL_NATIVE_ENTER(env, that, glNormal3fv_FUNC);
-#ifdef JNI_VERSION_1_2
- if (IS_JNI_1_2) {
- if (arg0) lparg0 = (*env)->GetPrimitiveArrayCritical(env, arg0, NULL);
- } else
-#endif
- {
- if (arg0) lparg0 = (*env)->GetFloatArrayElements(env, arg0, NULL);
- }
- glNormal3fv(lparg0);
-#ifdef JNI_VERSION_1_2
- if (IS_JNI_1_2) {
- if (arg0) (*env)->ReleasePrimitiveArrayCritical(env, arg0, lparg0, 0);
- } else
-#endif
- {
- if (arg0) (*env)->ReleaseFloatArrayElements(env, arg0, lparg0, 0);
- }
- GL_NATIVE_EXIT(env, that, glNormal3fv_FUNC);
-}
-#endif
-
-#ifndef NO_glNormal3i
-JNIEXPORT void JNICALL GL_NATIVE(glNormal3i)
- (JNIEnv *env, jclass that, jint arg0, jint arg1, jint arg2)
-{
- GL_NATIVE_ENTER(env, that, glNormal3i_FUNC);
- glNormal3i(arg0, arg1, arg2);
- GL_NATIVE_EXIT(env, that, glNormal3i_FUNC);
-}
-#endif
-
-#ifndef NO_glNormal3iv
-JNIEXPORT void JNICALL GL_NATIVE(glNormal3iv)
- (JNIEnv *env, jclass that, jintArray arg0)
-{
- jint *lparg0=NULL;
- GL_NATIVE_ENTER(env, that, glNormal3iv_FUNC);
-#ifdef JNI_VERSION_1_2
- if (IS_JNI_1_2) {
- if (arg0) lparg0 = (*env)->GetPrimitiveArrayCritical(env, arg0, NULL);
- } else
-#endif
- {
- if (arg0) lparg0 = (*env)->GetIntArrayElements(env, arg0, NULL);
- }
- glNormal3iv(lparg0);
-#ifdef JNI_VERSION_1_2
- if (IS_JNI_1_2) {
- if (arg0) (*env)->ReleasePrimitiveArrayCritical(env, arg0, lparg0, 0);
- } else
-#endif
- {
- if (arg0) (*env)->ReleaseIntArrayElements(env, arg0, lparg0, 0);
- }
- GL_NATIVE_EXIT(env, that, glNormal3iv_FUNC);
-}
-#endif
-
-#ifndef NO_glNormal3s
-JNIEXPORT void JNICALL GL_NATIVE(glNormal3s)
- (JNIEnv *env, jclass that, jshort arg0, jshort arg1, jshort arg2)
-{
- GL_NATIVE_ENTER(env, that, glNormal3s_FUNC);
- glNormal3s(arg0, arg1, arg2);
- GL_NATIVE_EXIT(env, that, glNormal3s_FUNC);
-}
-#endif
-
-#ifndef NO_glNormal3sv
-JNIEXPORT void JNICALL GL_NATIVE(glNormal3sv)
- (JNIEnv *env, jclass that, jshortArray arg0)
-{
- jshort *lparg0=NULL;
- GL_NATIVE_ENTER(env, that, glNormal3sv_FUNC);
-#ifdef JNI_VERSION_1_2
- if (IS_JNI_1_2) {
- if (arg0) lparg0 = (*env)->GetPrimitiveArrayCritical(env, arg0, NULL);
- } else
-#endif
- {
- if (arg0) lparg0 = (*env)->GetShortArrayElements(env, arg0, NULL);
- }
- glNormal3sv(lparg0);
-#ifdef JNI_VERSION_1_2
- if (IS_JNI_1_2) {
- if (arg0) (*env)->ReleasePrimitiveArrayCritical(env, arg0, lparg0, 0);
- } else
-#endif
- {
- if (arg0) (*env)->ReleaseShortArrayElements(env, arg0, lparg0, 0);
- }
- GL_NATIVE_EXIT(env, that, glNormal3sv_FUNC);
-}
-#endif
-
-#ifndef NO_glNormalPointer
-JNIEXPORT void JNICALL GL_NATIVE(glNormalPointer)
- (JNIEnv *env, jclass that, jint arg0, jint arg1, jintArray arg2)
-{
- jint *lparg2=NULL;
- GL_NATIVE_ENTER(env, that, glNormalPointer_FUNC);
-#ifdef JNI_VERSION_1_2
- if (IS_JNI_1_2) {
- if (arg2) lparg2 = (*env)->GetPrimitiveArrayCritical(env, arg2, NULL);
- } else
-#endif
- {
- if (arg2) lparg2 = (*env)->GetIntArrayElements(env, arg2, NULL);
- }
- glNormalPointer(arg0, arg1, lparg2);
-#ifdef JNI_VERSION_1_2
- if (IS_JNI_1_2) {
- if (arg2) (*env)->ReleasePrimitiveArrayCritical(env, arg2, lparg2, 0);
- } else
-#endif
- {
- if (arg2) (*env)->ReleaseIntArrayElements(env, arg2, lparg2, 0);
- }
- GL_NATIVE_EXIT(env, that, glNormalPointer_FUNC);
-}
-#endif
-
-#ifndef NO_glOrtho
-JNIEXPORT void JNICALL GL_NATIVE(glOrtho)
- (JNIEnv *env, jclass that, jdouble arg0, jdouble arg1, jdouble arg2, jdouble arg3, jdouble arg4, jdouble arg5)
-{
- GL_NATIVE_ENTER(env, that, glOrtho_FUNC);
- glOrtho(arg0, arg1, arg2, arg3, arg4, arg5);
- GL_NATIVE_EXIT(env, that, glOrtho_FUNC);
-}
-#endif
-
-#ifndef NO_glPassThrough
-JNIEXPORT void JNICALL GL_NATIVE(glPassThrough)
- (JNIEnv *env, jclass that, jfloat arg0)
-{
- GL_NATIVE_ENTER(env, that, glPassThrough_FUNC);
- glPassThrough(arg0);
- GL_NATIVE_EXIT(env, that, glPassThrough_FUNC);
-}
-#endif
-
-#ifndef NO_glPixelMapfv
-JNIEXPORT void JNICALL GL_NATIVE(glPixelMapfv)
- (JNIEnv *env, jclass that, jint arg0, jint arg1, jfloatArray arg2)
-{
- jfloat *lparg2=NULL;
- GL_NATIVE_ENTER(env, that, glPixelMapfv_FUNC);
-#ifdef JNI_VERSION_1_2
- if (IS_JNI_1_2) {
- if (arg2) lparg2 = (*env)->GetPrimitiveArrayCritical(env, arg2, NULL);
- } else
-#endif
- {
- if (arg2) lparg2 = (*env)->GetFloatArrayElements(env, arg2, NULL);
- }
- glPixelMapfv(arg0, arg1, lparg2);
-#ifdef JNI_VERSION_1_2
- if (IS_JNI_1_2) {
- if (arg2) (*env)->ReleasePrimitiveArrayCritical(env, arg2, lparg2, 0);
- } else
-#endif
- {
- if (arg2) (*env)->ReleaseFloatArrayElements(env, arg2, lparg2, 0);
- }
- GL_NATIVE_EXIT(env, that, glPixelMapfv_FUNC);
-}
-#endif
-
-#ifndef NO_glPixelMapuiv
-JNIEXPORT void JNICALL GL_NATIVE(glPixelMapuiv)
- (JNIEnv *env, jclass that, jint arg0, jint arg1, jintArray arg2)
-{
- jint *lparg2=NULL;
- GL_NATIVE_ENTER(env, that, glPixelMapuiv_FUNC);
-#ifdef JNI_VERSION_1_2
- if (IS_JNI_1_2) {
- if (arg2) lparg2 = (*env)->GetPrimitiveArrayCritical(env, arg2, NULL);
- } else
-#endif
- {
- if (arg2) lparg2 = (*env)->GetIntArrayElements(env, arg2, NULL);
- }
- glPixelMapuiv(arg0, arg1, (const GLuint *)lparg2);
-#ifdef JNI_VERSION_1_2
- if (IS_JNI_1_2) {
- if (arg2) (*env)->ReleasePrimitiveArrayCritical(env, arg2, lparg2, 0);
- } else
-#endif
- {
- if (arg2) (*env)->ReleaseIntArrayElements(env, arg2, lparg2, 0);
- }
- GL_NATIVE_EXIT(env, that, glPixelMapuiv_FUNC);
-}
-#endif
-
-#ifndef NO_glPixelMapusv
-JNIEXPORT void JNICALL GL_NATIVE(glPixelMapusv)
- (JNIEnv *env, jclass that, jint arg0, jint arg1, jshortArray arg2)
-{
- jshort *lparg2=NULL;
- GL_NATIVE_ENTER(env, that, glPixelMapusv_FUNC);
-#ifdef JNI_VERSION_1_2
- if (IS_JNI_1_2) {
- if (arg2) lparg2 = (*env)->GetPrimitiveArrayCritical(env, arg2, NULL);
- } else
-#endif
- {
- if (arg2) lparg2 = (*env)->GetShortArrayElements(env, arg2, NULL);
- }
- glPixelMapusv(arg0, arg1, (const GLushort *)lparg2);
-#ifdef JNI_VERSION_1_2
- if (IS_JNI_1_2) {
- if (arg2) (*env)->ReleasePrimitiveArrayCritical(env, arg2, lparg2, 0);
- } else
-#endif
- {
- if (arg2) (*env)->ReleaseShortArrayElements(env, arg2, lparg2, 0);
- }
- GL_NATIVE_EXIT(env, that, glPixelMapusv_FUNC);
-}
-#endif
-
-#ifndef NO_glPixelStoref
-JNIEXPORT void JNICALL GL_NATIVE(glPixelStoref)
- (JNIEnv *env, jclass that, jint arg0, jfloat arg1)
-{
- GL_NATIVE_ENTER(env, that, glPixelStoref_FUNC);
- glPixelStoref(arg0, arg1);
- GL_NATIVE_EXIT(env, that, glPixelStoref_FUNC);
-}
-#endif
-
-#ifndef NO_glPixelStorei
-JNIEXPORT void JNICALL GL_NATIVE(glPixelStorei)
- (JNIEnv *env, jclass that, jint arg0, jint arg1)
-{
- GL_NATIVE_ENTER(env, that, glPixelStorei_FUNC);
- glPixelStorei(arg0, arg1);
- GL_NATIVE_EXIT(env, that, glPixelStorei_FUNC);
-}
-#endif
-
-#ifndef NO_glPixelTransferf
-JNIEXPORT void JNICALL GL_NATIVE(glPixelTransferf)
- (JNIEnv *env, jclass that, jint arg0, jfloat arg1)
-{
- GL_NATIVE_ENTER(env, that, glPixelTransferf_FUNC);
- glPixelTransferf(arg0, arg1);
- GL_NATIVE_EXIT(env, that, glPixelTransferf_FUNC);
-}
-#endif
-
-#ifndef NO_glPixelTransferi
-JNIEXPORT void JNICALL GL_NATIVE(glPixelTransferi)
- (JNIEnv *env, jclass that, jint arg0, jint arg1)
-{
- GL_NATIVE_ENTER(env, that, glPixelTransferi_FUNC);
- glPixelTransferi(arg0, arg1);
- GL_NATIVE_EXIT(env, that, glPixelTransferi_FUNC);
-}
-#endif
-
-#ifndef NO_glPixelZoom
-JNIEXPORT void JNICALL GL_NATIVE(glPixelZoom)
- (JNIEnv *env, jclass that, jfloat arg0, jfloat arg1)
-{
- GL_NATIVE_ENTER(env, that, glPixelZoom_FUNC);
- glPixelZoom(arg0, arg1);
- GL_NATIVE_EXIT(env, that, glPixelZoom_FUNC);
-}
-#endif
-
-#ifndef NO_glPointSize
-JNIEXPORT void JNICALL GL_NATIVE(glPointSize)
- (JNIEnv *env, jclass that, jfloat arg0)
-{
- GL_NATIVE_ENTER(env, that, glPointSize_FUNC);
- glPointSize(arg0);
- GL_NATIVE_EXIT(env, that, glPointSize_FUNC);
-}
-#endif
-
-#ifndef NO_glPolygonMode
-JNIEXPORT void JNICALL GL_NATIVE(glPolygonMode)
- (JNIEnv *env, jclass that, jint arg0, jint arg1)
-{
- GL_NATIVE_ENTER(env, that, glPolygonMode_FUNC);
- glPolygonMode(arg0, arg1);
- GL_NATIVE_EXIT(env, that, glPolygonMode_FUNC);
-}
-#endif
-
-#ifndef NO_glPolygonOffset
-JNIEXPORT void JNICALL GL_NATIVE(glPolygonOffset)
- (JNIEnv *env, jclass that, jfloat arg0, jfloat arg1)
-{
- GL_NATIVE_ENTER(env, that, glPolygonOffset_FUNC);
- glPolygonOffset(arg0, arg1);
- GL_NATIVE_EXIT(env, that, glPolygonOffset_FUNC);
-}
-#endif
-
-#ifndef NO_glPolygonStipple
-JNIEXPORT void JNICALL GL_NATIVE(glPolygonStipple)
- (JNIEnv *env, jclass that, jbyteArray arg0)
-{
- jbyte *lparg0=NULL;
- GL_NATIVE_ENTER(env, that, glPolygonStipple_FUNC);
-#ifdef JNI_VERSION_1_2
- if (IS_JNI_1_2) {
- if (arg0) lparg0 = (*env)->GetPrimitiveArrayCritical(env, arg0, NULL);
- } else
-#endif
- {
- if (arg0) lparg0 = (*env)->GetByteArrayElements(env, arg0, NULL);
- }
- glPolygonStipple((GLubyte *)lparg0);
-#ifdef JNI_VERSION_1_2
- if (IS_JNI_1_2) {
- if (arg0) (*env)->ReleasePrimitiveArrayCritical(env, arg0, lparg0, 0);
- } else
-#endif
- {
- if (arg0) (*env)->ReleaseByteArrayElements(env, arg0, lparg0, 0);
- }
- GL_NATIVE_EXIT(env, that, glPolygonStipple_FUNC);
-}
-#endif
-
-#ifndef NO_glPopAttrib
-JNIEXPORT void JNICALL GL_NATIVE(glPopAttrib)
- (JNIEnv *env, jclass that)
-{
- GL_NATIVE_ENTER(env, that, glPopAttrib_FUNC);
- glPopAttrib();
- GL_NATIVE_EXIT(env, that, glPopAttrib_FUNC);
-}
-#endif
-
-#ifndef NO_glPopClientAttrib
-JNIEXPORT void JNICALL GL_NATIVE(glPopClientAttrib)
- (JNIEnv *env, jclass that)
-{
- GL_NATIVE_ENTER(env, that, glPopClientAttrib_FUNC);
- glPopClientAttrib();
- GL_NATIVE_EXIT(env, that, glPopClientAttrib_FUNC);
-}
-#endif
-
-#ifndef NO_glPopMatrix
-JNIEXPORT void JNICALL GL_NATIVE(glPopMatrix)
- (JNIEnv *env, jclass that)
-{
- GL_NATIVE_ENTER(env, that, glPopMatrix_FUNC);
- glPopMatrix();
- GL_NATIVE_EXIT(env, that, glPopMatrix_FUNC);
-}
-#endif
-
-#ifndef NO_glPopName
-JNIEXPORT void JNICALL GL_NATIVE(glPopName)
- (JNIEnv *env, jclass that)
-{
- GL_NATIVE_ENTER(env, that, glPopName_FUNC);
- glPopName();
- GL_NATIVE_EXIT(env, that, glPopName_FUNC);
-}
-#endif
-
-#ifndef NO_glPrioritizeTextures
-JNIEXPORT void JNICALL GL_NATIVE(glPrioritizeTextures)
- (JNIEnv *env, jclass that, jint arg0, jintArray arg1, jfloatArray arg2)
-{
- jint *lparg1=NULL;
- jfloat *lparg2=NULL;
- GL_NATIVE_ENTER(env, that, glPrioritizeTextures_FUNC);
-#ifdef JNI_VERSION_1_2
- if (IS_JNI_1_2) {
- if (arg1) lparg1 = (*env)->GetPrimitiveArrayCritical(env, arg1, NULL);
- if (arg2) lparg2 = (*env)->GetPrimitiveArrayCritical(env, arg2, NULL);
- } else
-#endif
- {
- if (arg1) lparg1 = (*env)->GetIntArrayElements(env, arg1, NULL);
- if (arg2) lparg2 = (*env)->GetFloatArrayElements(env, arg2, NULL);
- }
- glPrioritizeTextures(arg0, (const GLuint *)lparg1, lparg2);
-#ifdef JNI_VERSION_1_2
- if (IS_JNI_1_2) {
- if (arg2) (*env)->ReleasePrimitiveArrayCritical(env, arg2, lparg2, 0);
- if (arg1) (*env)->ReleasePrimitiveArrayCritical(env, arg1, lparg1, 0);
- } else
-#endif
- {
- if (arg2) (*env)->ReleaseFloatArrayElements(env, arg2, lparg2, 0);
- if (arg1) (*env)->ReleaseIntArrayElements(env, arg1, lparg1, 0);
- }
- GL_NATIVE_EXIT(env, that, glPrioritizeTextures_FUNC);
-}
-#endif
-
-#ifndef NO_glPushAttrib
-JNIEXPORT void JNICALL GL_NATIVE(glPushAttrib)
- (JNIEnv *env, jclass that, jint arg0)
-{
- GL_NATIVE_ENTER(env, that, glPushAttrib_FUNC);
- glPushAttrib(arg0);
- GL_NATIVE_EXIT(env, that, glPushAttrib_FUNC);
-}
-#endif
-
-#ifndef NO_glPushClientAttrib
-JNIEXPORT void JNICALL GL_NATIVE(glPushClientAttrib)
- (JNIEnv *env, jclass that, jint arg0)
-{
- GL_NATIVE_ENTER(env, that, glPushClientAttrib_FUNC);
- glPushClientAttrib(arg0);
- GL_NATIVE_EXIT(env, that, glPushClientAttrib_FUNC);
-}
-#endif
-
-#ifndef NO_glPushMatrix
-JNIEXPORT void JNICALL GL_NATIVE(glPushMatrix)
- (JNIEnv *env, jclass that)
-{
- GL_NATIVE_ENTER(env, that, glPushMatrix_FUNC);
- glPushMatrix();
- GL_NATIVE_EXIT(env, that, glPushMatrix_FUNC);
-}
-#endif
-
-#ifndef NO_glPushName
-JNIEXPORT void JNICALL GL_NATIVE(glPushName)
- (JNIEnv *env, jclass that, jint arg0)
-{
- GL_NATIVE_ENTER(env, that, glPushName_FUNC);
- glPushName(arg0);
- GL_NATIVE_EXIT(env, that, glPushName_FUNC);
-}
-#endif
-
-#ifndef NO_glRasterPos2d
-JNIEXPORT void JNICALL GL_NATIVE(glRasterPos2d)
- (JNIEnv *env, jclass that, jdouble arg0, jdouble arg1)
-{
- GL_NATIVE_ENTER(env, that, glRasterPos2d_FUNC);
- glRasterPos2d(arg0, arg1);
- GL_NATIVE_EXIT(env, that, glRasterPos2d_FUNC);
-}
-#endif
-
-#ifndef NO_glRasterPos2dv
-JNIEXPORT void JNICALL GL_NATIVE(glRasterPos2dv)
- (JNIEnv *env, jclass that, jdoubleArray arg0)
-{
- jdouble *lparg0=NULL;
- GL_NATIVE_ENTER(env, that, glRasterPos2dv_FUNC);
-#ifdef JNI_VERSION_1_2
- if (IS_JNI_1_2) {
- if (arg0) lparg0 = (*env)->GetPrimitiveArrayCritical(env, arg0, NULL);
- } else
-#endif
- {
- if (arg0) lparg0 = (*env)->GetDoubleArrayElements(env, arg0, NULL);
- }
- glRasterPos2dv(lparg0);
-#ifdef JNI_VERSION_1_2
- if (IS_JNI_1_2) {
- if (arg0) (*env)->ReleasePrimitiveArrayCritical(env, arg0, lparg0, 0);
- } else
-#endif
- {
- if (arg0) (*env)->ReleaseDoubleArrayElements(env, arg0, lparg0, 0);
- }
- GL_NATIVE_EXIT(env, that, glRasterPos2dv_FUNC);
-}
-#endif
-
-#ifndef NO_glRasterPos2f
-JNIEXPORT void JNICALL GL_NATIVE(glRasterPos2f)
- (JNIEnv *env, jclass that, jfloat arg0, jfloat arg1)
-{
- GL_NATIVE_ENTER(env, that, glRasterPos2f_FUNC);
- glRasterPos2f(arg0, arg1);
- GL_NATIVE_EXIT(env, that, glRasterPos2f_FUNC);
-}
-#endif
-
-#ifndef NO_glRasterPos2fv
-JNIEXPORT void JNICALL GL_NATIVE(glRasterPos2fv)
- (JNIEnv *env, jclass that, jfloatArray arg0)
-{
- jfloat *lparg0=NULL;
- GL_NATIVE_ENTER(env, that, glRasterPos2fv_FUNC);
-#ifdef JNI_VERSION_1_2
- if (IS_JNI_1_2) {
- if (arg0) lparg0 = (*env)->GetPrimitiveArrayCritical(env, arg0, NULL);
- } else
-#endif
- {
- if (arg0) lparg0 = (*env)->GetFloatArrayElements(env, arg0, NULL);
- }
- glRasterPos2fv(lparg0);
-#ifdef JNI_VERSION_1_2
- if (IS_JNI_1_2) {
- if (arg0) (*env)->ReleasePrimitiveArrayCritical(env, arg0, lparg0, 0);
- } else
-#endif
- {
- if (arg0) (*env)->ReleaseFloatArrayElements(env, arg0, lparg0, 0);
- }
- GL_NATIVE_EXIT(env, that, glRasterPos2fv_FUNC);
-}
-#endif
-
-#ifndef NO_glRasterPos2i
-JNIEXPORT void JNICALL GL_NATIVE(glRasterPos2i)
- (JNIEnv *env, jclass that, jint arg0, jint arg1)
-{
- GL_NATIVE_ENTER(env, that, glRasterPos2i_FUNC);
- glRasterPos2i(arg0, arg1);
- GL_NATIVE_EXIT(env, that, glRasterPos2i_FUNC);
-}
-#endif
-
-#ifndef NO_glRasterPos2iv
-JNIEXPORT void JNICALL GL_NATIVE(glRasterPos2iv)
- (JNIEnv *env, jclass that, jintArray arg0)
-{
- jint *lparg0=NULL;
- GL_NATIVE_ENTER(env, that, glRasterPos2iv_FUNC);
-#ifdef JNI_VERSION_1_2
- if (IS_JNI_1_2) {
- if (arg0) lparg0 = (*env)->GetPrimitiveArrayCritical(env, arg0, NULL);
- } else
-#endif
- {
- if (arg0) lparg0 = (*env)->GetIntArrayElements(env, arg0, NULL);
- }
- glRasterPos2iv(lparg0);
-#ifdef JNI_VERSION_1_2
- if (IS_JNI_1_2) {
- if (arg0) (*env)->ReleasePrimitiveArrayCritical(env, arg0, lparg0, 0);
- } else
-#endif
- {
- if (arg0) (*env)->ReleaseIntArrayElements(env, arg0, lparg0, 0);
- }
- GL_NATIVE_EXIT(env, that, glRasterPos2iv_FUNC);
-}
-#endif
-
-#ifndef NO_glRasterPos2s
-JNIEXPORT void JNICALL GL_NATIVE(glRasterPos2s)
- (JNIEnv *env, jclass that, jshort arg0, jshort arg1)
-{
- GL_NATIVE_ENTER(env, that, glRasterPos2s_FUNC);
- glRasterPos2s(arg0, arg1);
- GL_NATIVE_EXIT(env, that, glRasterPos2s_FUNC);
-}
-#endif
-
-#ifndef NO_glRasterPos2sv
-JNIEXPORT void JNICALL GL_NATIVE(glRasterPos2sv)
- (JNIEnv *env, jclass that, jshortArray arg0)
-{
- jshort *lparg0=NULL;
- GL_NATIVE_ENTER(env, that, glRasterPos2sv_FUNC);
-#ifdef JNI_VERSION_1_2
- if (IS_JNI_1_2) {
- if (arg0) lparg0 = (*env)->GetPrimitiveArrayCritical(env, arg0, NULL);
- } else
-#endif
- {
- if (arg0) lparg0 = (*env)->GetShortArrayElements(env, arg0, NULL);
- }
- glRasterPos2sv(lparg0);
-#ifdef JNI_VERSION_1_2
- if (IS_JNI_1_2) {
- if (arg0) (*env)->ReleasePrimitiveArrayCritical(env, arg0, lparg0, 0);
- } else
-#endif
- {
- if (arg0) (*env)->ReleaseShortArrayElements(env, arg0, lparg0, 0);
- }
- GL_NATIVE_EXIT(env, that, glRasterPos2sv_FUNC);
-}
-#endif
-
-#ifndef NO_glRasterPos3d
-JNIEXPORT void JNICALL GL_NATIVE(glRasterPos3d)
- (JNIEnv *env, jclass that, jdouble arg0, jdouble arg1, jdouble arg2)
-{
- GL_NATIVE_ENTER(env, that, glRasterPos3d_FUNC);
- glRasterPos3d(arg0, arg1, arg2);
- GL_NATIVE_EXIT(env, that, glRasterPos3d_FUNC);
-}
-#endif
-
-#ifndef NO_glRasterPos3dv
-JNIEXPORT void JNICALL GL_NATIVE(glRasterPos3dv)
- (JNIEnv *env, jclass that, jdoubleArray arg0)
-{
- jdouble *lparg0=NULL;
- GL_NATIVE_ENTER(env, that, glRasterPos3dv_FUNC);
-#ifdef JNI_VERSION_1_2
- if (IS_JNI_1_2) {
- if (arg0) lparg0 = (*env)->GetPrimitiveArrayCritical(env, arg0, NULL);
- } else
-#endif
- {
- if (arg0) lparg0 = (*env)->GetDoubleArrayElements(env, arg0, NULL);
- }
- glRasterPos3dv(lparg0);
-#ifdef JNI_VERSION_1_2
- if (IS_JNI_1_2) {
- if (arg0) (*env)->ReleasePrimitiveArrayCritical(env, arg0, lparg0, 0);
- } else
-#endif
- {
- if (arg0) (*env)->ReleaseDoubleArrayElements(env, arg0, lparg0, 0);
- }
- GL_NATIVE_EXIT(env, that, glRasterPos3dv_FUNC);
-}
-#endif
-
-#ifndef NO_glRasterPos3f
-JNIEXPORT void JNICALL GL_NATIVE(glRasterPos3f)
- (JNIEnv *env, jclass that, jfloat arg0, jfloat arg1, jfloat arg2)
-{
- GL_NATIVE_ENTER(env, that, glRasterPos3f_FUNC);
- glRasterPos3f(arg0, arg1, arg2);
- GL_NATIVE_EXIT(env, that, glRasterPos3f_FUNC);
-}
-#endif
-
-#ifndef NO_glRasterPos3fv
-JNIEXPORT void JNICALL GL_NATIVE(glRasterPos3fv)
- (JNIEnv *env, jclass that, jfloatArray arg0)
-{
- jfloat *lparg0=NULL;
- GL_NATIVE_ENTER(env, that, glRasterPos3fv_FUNC);
-#ifdef JNI_VERSION_1_2
- if (IS_JNI_1_2) {
- if (arg0) lparg0 = (*env)->GetPrimitiveArrayCritical(env, arg0, NULL);
- } else
-#endif
- {
- if (arg0) lparg0 = (*env)->GetFloatArrayElements(env, arg0, NULL);
- }
- glRasterPos3fv(lparg0);
-#ifdef JNI_VERSION_1_2
- if (IS_JNI_1_2) {
- if (arg0) (*env)->ReleasePrimitiveArrayCritical(env, arg0, lparg0, 0);
- } else
-#endif
- {
- if (arg0) (*env)->ReleaseFloatArrayElements(env, arg0, lparg0, 0);
- }
- GL_NATIVE_EXIT(env, that, glRasterPos3fv_FUNC);
-}
-#endif
-
-#ifndef NO_glRasterPos3i
-JNIEXPORT void JNICALL GL_NATIVE(glRasterPos3i)
- (JNIEnv *env, jclass that, jint arg0, jint arg1, jint arg2)
-{
- GL_NATIVE_ENTER(env, that, glRasterPos3i_FUNC);
- glRasterPos3i(arg0, arg1, arg2);
- GL_NATIVE_EXIT(env, that, glRasterPos3i_FUNC);
-}
-#endif
-
-#ifndef NO_glRasterPos3iv
-JNIEXPORT void JNICALL GL_NATIVE(glRasterPos3iv)
- (JNIEnv *env, jclass that, jintArray arg0)
-{
- jint *lparg0=NULL;
- GL_NATIVE_ENTER(env, that, glRasterPos3iv_FUNC);
-#ifdef JNI_VERSION_1_2
- if (IS_JNI_1_2) {
- if (arg0) lparg0 = (*env)->GetPrimitiveArrayCritical(env, arg0, NULL);
- } else
-#endif
- {
- if (arg0) lparg0 = (*env)->GetIntArrayElements(env, arg0, NULL);
- }
- glRasterPos3iv(lparg0);
-#ifdef JNI_VERSION_1_2
- if (IS_JNI_1_2) {
- if (arg0) (*env)->ReleasePrimitiveArrayCritical(env, arg0, lparg0, 0);
- } else
-#endif
- {
- if (arg0) (*env)->ReleaseIntArrayElements(env, arg0, lparg0, 0);
- }
- GL_NATIVE_EXIT(env, that, glRasterPos3iv_FUNC);
-}
-#endif
-
-#ifndef NO_glRasterPos3s
-JNIEXPORT void JNICALL GL_NATIVE(glRasterPos3s)
- (JNIEnv *env, jclass that, jshort arg0, jshort arg1, jshort arg2)
-{
- GL_NATIVE_ENTER(env, that, glRasterPos3s_FUNC);
- glRasterPos3s(arg0, arg1, arg2);
- GL_NATIVE_EXIT(env, that, glRasterPos3s_FUNC);
-}
-#endif
-
-#ifndef NO_glRasterPos3sv
-JNIEXPORT void JNICALL GL_NATIVE(glRasterPos3sv)
- (JNIEnv *env, jclass that, jshortArray arg0)
-{
- jshort *lparg0=NULL;
- GL_NATIVE_ENTER(env, that, glRasterPos3sv_FUNC);
-#ifdef JNI_VERSION_1_2
- if (IS_JNI_1_2) {
- if (arg0) lparg0 = (*env)->GetPrimitiveArrayCritical(env, arg0, NULL);
- } else
-#endif
- {
- if (arg0) lparg0 = (*env)->GetShortArrayElements(env, arg0, NULL);
- }
- glRasterPos3sv(lparg0);
-#ifdef JNI_VERSION_1_2
- if (IS_JNI_1_2) {
- if (arg0) (*env)->ReleasePrimitiveArrayCritical(env, arg0, lparg0, 0);
- } else
-#endif
- {
- if (arg0) (*env)->ReleaseShortArrayElements(env, arg0, lparg0, 0);
- }
- GL_NATIVE_EXIT(env, that, glRasterPos3sv_FUNC);
-}
-#endif
-
-#ifndef NO_glRasterPos4d
-JNIEXPORT void JNICALL GL_NATIVE(glRasterPos4d)
- (JNIEnv *env, jclass that, jdouble arg0, jdouble arg1, jdouble arg2, jdouble arg3)
-{
- GL_NATIVE_ENTER(env, that, glRasterPos4d_FUNC);
- glRasterPos4d(arg0, arg1, arg2, arg3);
- GL_NATIVE_EXIT(env, that, glRasterPos4d_FUNC);
-}
-#endif
-
-#ifndef NO_glRasterPos4dv
-JNIEXPORT void JNICALL GL_NATIVE(glRasterPos4dv)
- (JNIEnv *env, jclass that, jdoubleArray arg0)
-{
- jdouble *lparg0=NULL;
- GL_NATIVE_ENTER(env, that, glRasterPos4dv_FUNC);
-#ifdef JNI_VERSION_1_2
- if (IS_JNI_1_2) {
- if (arg0) lparg0 = (*env)->GetPrimitiveArrayCritical(env, arg0, NULL);
- } else
-#endif
- {
- if (arg0) lparg0 = (*env)->GetDoubleArrayElements(env, arg0, NULL);
- }
- glRasterPos4dv(lparg0);
-#ifdef JNI_VERSION_1_2
- if (IS_JNI_1_2) {
- if (arg0) (*env)->ReleasePrimitiveArrayCritical(env, arg0, lparg0, 0);
- } else
-#endif
- {
- if (arg0) (*env)->ReleaseDoubleArrayElements(env, arg0, lparg0, 0);
- }
- GL_NATIVE_EXIT(env, that, glRasterPos4dv_FUNC);
-}
-#endif
-
-#ifndef NO_glRasterPos4f
-JNIEXPORT void JNICALL GL_NATIVE(glRasterPos4f)
- (JNIEnv *env, jclass that, jfloat arg0, jfloat arg1, jfloat arg2, jfloat arg3)
-{
- GL_NATIVE_ENTER(env, that, glRasterPos4f_FUNC);
- glRasterPos4f(arg0, arg1, arg2, arg3);
- GL_NATIVE_EXIT(env, that, glRasterPos4f_FUNC);
-}
-#endif
-
-#ifndef NO_glRasterPos4fv
-JNIEXPORT void JNICALL GL_NATIVE(glRasterPos4fv)
- (JNIEnv *env, jclass that, jfloatArray arg0)
-{
- jfloat *lparg0=NULL;
- GL_NATIVE_ENTER(env, that, glRasterPos4fv_FUNC);
-#ifdef JNI_VERSION_1_2
- if (IS_JNI_1_2) {
- if (arg0) lparg0 = (*env)->GetPrimitiveArrayCritical(env, arg0, NULL);
- } else
-#endif
- {
- if (arg0) lparg0 = (*env)->GetFloatArrayElements(env, arg0, NULL);
- }
- glRasterPos4fv(lparg0);
-#ifdef JNI_VERSION_1_2
- if (IS_JNI_1_2) {
- if (arg0) (*env)->ReleasePrimitiveArrayCritical(env, arg0, lparg0, 0);
- } else
-#endif
- {
- if (arg0) (*env)->ReleaseFloatArrayElements(env, arg0, lparg0, 0);
- }
- GL_NATIVE_EXIT(env, that, glRasterPos4fv_FUNC);
-}
-#endif
-
-#ifndef NO_glRasterPos4i
-JNIEXPORT void JNICALL GL_NATIVE(glRasterPos4i)
- (JNIEnv *env, jclass that, jint arg0, jint arg1, jint arg2, jint arg3)
-{
- GL_NATIVE_ENTER(env, that, glRasterPos4i_FUNC);
- glRasterPos4i(arg0, arg1, arg2, arg3);
- GL_NATIVE_EXIT(env, that, glRasterPos4i_FUNC);
-}
-#endif
-
-#ifndef NO_glRasterPos4iv
-JNIEXPORT void JNICALL GL_NATIVE(glRasterPos4iv)
- (JNIEnv *env, jclass that, jintArray arg0)
-{
- jint *lparg0=NULL;
- GL_NATIVE_ENTER(env, that, glRasterPos4iv_FUNC);
-#ifdef JNI_VERSION_1_2
- if (IS_JNI_1_2) {
- if (arg0) lparg0 = (*env)->GetPrimitiveArrayCritical(env, arg0, NULL);
- } else
-#endif
- {
- if (arg0) lparg0 = (*env)->GetIntArrayElements(env, arg0, NULL);
- }
- glRasterPos4iv(lparg0);
-#ifdef JNI_VERSION_1_2
- if (IS_JNI_1_2) {
- if (arg0) (*env)->ReleasePrimitiveArrayCritical(env, arg0, lparg0, 0);
- } else
-#endif
- {
- if (arg0) (*env)->ReleaseIntArrayElements(env, arg0, lparg0, 0);
- }
- GL_NATIVE_EXIT(env, that, glRasterPos4iv_FUNC);
-}
-#endif
-
-#ifndef NO_glRasterPos4s
-JNIEXPORT void JNICALL GL_NATIVE(glRasterPos4s)
- (JNIEnv *env, jclass that, jshort arg0, jshort arg1, jshort arg2, jshort arg3)
-{
- GL_NATIVE_ENTER(env, that, glRasterPos4s_FUNC);
- glRasterPos4s(arg0, arg1, arg2, arg3);
- GL_NATIVE_EXIT(env, that, glRasterPos4s_FUNC);
-}
-#endif
-
-#ifndef NO_glRasterPos4sv
-JNIEXPORT void JNICALL GL_NATIVE(glRasterPos4sv)
- (JNIEnv *env, jclass that, jshortArray arg0)
-{
- jshort *lparg0=NULL;
- GL_NATIVE_ENTER(env, that, glRasterPos4sv_FUNC);
-#ifdef JNI_VERSION_1_2
- if (IS_JNI_1_2) {
- if (arg0) lparg0 = (*env)->GetPrimitiveArrayCritical(env, arg0, NULL);
- } else
-#endif
- {
- if (arg0) lparg0 = (*env)->GetShortArrayElements(env, arg0, NULL);
- }
- glRasterPos4sv(lparg0);
-#ifdef JNI_VERSION_1_2
- if (IS_JNI_1_2) {
- if (arg0) (*env)->ReleasePrimitiveArrayCritical(env, arg0, lparg0, 0);
- } else
-#endif
- {
- if (arg0) (*env)->ReleaseShortArrayElements(env, arg0, lparg0, 0);
- }
- GL_NATIVE_EXIT(env, that, glRasterPos4sv_FUNC);
-}
-#endif
-
-#ifndef NO_glReadBuffer
-JNIEXPORT void JNICALL GL_NATIVE(glReadBuffer)
- (JNIEnv *env, jclass that, jint arg0)
-{
- GL_NATIVE_ENTER(env, that, glReadBuffer_FUNC);
- glReadBuffer(arg0);
- GL_NATIVE_EXIT(env, that, glReadBuffer_FUNC);
-}
-#endif
-
-#ifndef NO_glReadPixels
-JNIEXPORT void JNICALL GL_NATIVE(glReadPixels)
- (JNIEnv *env, jclass that, jint arg0, jint arg1, jint arg2, jint arg3, jint arg4, jint arg5, jintArray arg6)
-{
- jint *lparg6=NULL;
- GL_NATIVE_ENTER(env, that, glReadPixels_FUNC);
-#ifdef JNI_VERSION_1_2
- if (IS_JNI_1_2) {
- if (arg6) lparg6 = (*env)->GetPrimitiveArrayCritical(env, arg6, NULL);
- } else
-#endif
- {
- if (arg6) lparg6 = (*env)->GetIntArrayElements(env, arg6, NULL);
- }
- glReadPixels(arg0, arg1, arg2, arg3, arg4, arg5, lparg6);
-#ifdef JNI_VERSION_1_2
- if (IS_JNI_1_2) {
- if (arg6) (*env)->ReleasePrimitiveArrayCritical(env, arg6, lparg6, 0);
- } else
-#endif
- {
- if (arg6) (*env)->ReleaseIntArrayElements(env, arg6, lparg6, 0);
- }
- GL_NATIVE_EXIT(env, that, glReadPixels_FUNC);
-}
-#endif
-
-#ifndef NO_glRectd
-JNIEXPORT void JNICALL GL_NATIVE(glRectd)
- (JNIEnv *env, jclass that, jdouble arg0, jdouble arg1, jdouble arg2, jdouble arg3)
-{
- GL_NATIVE_ENTER(env, that, glRectd_FUNC);
- glRectd(arg0, arg1, arg2, arg3);
- GL_NATIVE_EXIT(env, that, glRectd_FUNC);
-}
-#endif
-
-#ifndef NO_glRectdv
-JNIEXPORT void JNICALL GL_NATIVE(glRectdv)
- (JNIEnv *env, jclass that, jdoubleArray arg0, jdoubleArray arg1)
-{
- jdouble *lparg0=NULL;
- jdouble *lparg1=NULL;
- GL_NATIVE_ENTER(env, that, glRectdv_FUNC);
-#ifdef JNI_VERSION_1_2
- if (IS_JNI_1_2) {
- if (arg0) lparg0 = (*env)->GetPrimitiveArrayCritical(env, arg0, NULL);
- if (arg1) lparg1 = (*env)->GetPrimitiveArrayCritical(env, arg1, NULL);
- } else
-#endif
- {
- if (arg0) lparg0 = (*env)->GetDoubleArrayElements(env, arg0, NULL);
- if (arg1) lparg1 = (*env)->GetDoubleArrayElements(env, arg1, NULL);
- }
- glRectdv(lparg0, lparg1);
-#ifdef JNI_VERSION_1_2
- if (IS_JNI_1_2) {
- if (arg1) (*env)->ReleasePrimitiveArrayCritical(env, arg1, lparg1, 0);
- if (arg0) (*env)->ReleasePrimitiveArrayCritical(env, arg0, lparg0, 0);
- } else
-#endif
- {
- if (arg1) (*env)->ReleaseDoubleArrayElements(env, arg1, lparg1, 0);
- if (arg0) (*env)->ReleaseDoubleArrayElements(env, arg0, lparg0, 0);
- }
- GL_NATIVE_EXIT(env, that, glRectdv_FUNC);
-}
-#endif
-
-#ifndef NO_glRectf
-JNIEXPORT void JNICALL GL_NATIVE(glRectf)
- (JNIEnv *env, jclass that, jfloat arg0, jfloat arg1, jfloat arg2, jfloat arg3)
-{
- GL_NATIVE_ENTER(env, that, glRectf_FUNC);
- glRectf(arg0, arg1, arg2, arg3);
- GL_NATIVE_EXIT(env, that, glRectf_FUNC);
-}
-#endif
-
-#ifndef NO_glRectfv
-JNIEXPORT void JNICALL GL_NATIVE(glRectfv)
- (JNIEnv *env, jclass that, jfloatArray arg0, jfloatArray arg1)
-{
- jfloat *lparg0=NULL;
- jfloat *lparg1=NULL;
- GL_NATIVE_ENTER(env, that, glRectfv_FUNC);
-#ifdef JNI_VERSION_1_2
- if (IS_JNI_1_2) {
- if (arg0) lparg0 = (*env)->GetPrimitiveArrayCritical(env, arg0, NULL);
- if (arg1) lparg1 = (*env)->GetPrimitiveArrayCritical(env, arg1, NULL);
- } else
-#endif
- {
- if (arg0) lparg0 = (*env)->GetFloatArrayElements(env, arg0, NULL);
- if (arg1) lparg1 = (*env)->GetFloatArrayElements(env, arg1, NULL);
- }
- glRectfv(lparg0, lparg1);
-#ifdef JNI_VERSION_1_2
- if (IS_JNI_1_2) {
- if (arg1) (*env)->ReleasePrimitiveArrayCritical(env, arg1, lparg1, 0);
- if (arg0) (*env)->ReleasePrimitiveArrayCritical(env, arg0, lparg0, 0);
- } else
-#endif
- {
- if (arg1) (*env)->ReleaseFloatArrayElements(env, arg1, lparg1, 0);
- if (arg0) (*env)->ReleaseFloatArrayElements(env, arg0, lparg0, 0);
- }
- GL_NATIVE_EXIT(env, that, glRectfv_FUNC);
-}
-#endif
-
-#ifndef NO_glRecti
-JNIEXPORT void JNICALL GL_NATIVE(glRecti)
- (JNIEnv *env, jclass that, jint arg0, jint arg1, jint arg2, jint arg3)
-{
- GL_NATIVE_ENTER(env, that, glRecti_FUNC);
- glRecti(arg0, arg1, arg2, arg3);
- GL_NATIVE_EXIT(env, that, glRecti_FUNC);
-}
-#endif
-
-#ifndef NO_glRectiv
-JNIEXPORT void JNICALL GL_NATIVE(glRectiv)
- (JNIEnv *env, jclass that, jintArray arg0, jintArray arg1)
-{
- jint *lparg0=NULL;
- jint *lparg1=NULL;
- GL_NATIVE_ENTER(env, that, glRectiv_FUNC);
-#ifdef JNI_VERSION_1_2
- if (IS_JNI_1_2) {
- if (arg0) lparg0 = (*env)->GetPrimitiveArrayCritical(env, arg0, NULL);
- if (arg1) lparg1 = (*env)->GetPrimitiveArrayCritical(env, arg1, NULL);
- } else
-#endif
- {
- if (arg0) lparg0 = (*env)->GetIntArrayElements(env, arg0, NULL);
- if (arg1) lparg1 = (*env)->GetIntArrayElements(env, arg1, NULL);
- }
- glRectiv(lparg0, lparg1);
-#ifdef JNI_VERSION_1_2
- if (IS_JNI_1_2) {
- if (arg1) (*env)->ReleasePrimitiveArrayCritical(env, arg1, lparg1, 0);
- if (arg0) (*env)->ReleasePrimitiveArrayCritical(env, arg0, lparg0, 0);
- } else
-#endif
- {
- if (arg1) (*env)->ReleaseIntArrayElements(env, arg1, lparg1, 0);
- if (arg0) (*env)->ReleaseIntArrayElements(env, arg0, lparg0, 0);
- }
- GL_NATIVE_EXIT(env, that, glRectiv_FUNC);
-}
-#endif
-
-#ifndef NO_glRects
-JNIEXPORT void JNICALL GL_NATIVE(glRects)
- (JNIEnv *env, jclass that, jshort arg0, jshort arg1, jshort arg2, jshort arg3)
-{
- GL_NATIVE_ENTER(env, that, glRects_FUNC);
- glRects(arg0, arg1, arg2, arg3);
- GL_NATIVE_EXIT(env, that, glRects_FUNC);
-}
-#endif
-
-#ifndef NO_glRectsv
-JNIEXPORT void JNICALL GL_NATIVE(glRectsv)
- (JNIEnv *env, jclass that, jshortArray arg0, jshortArray arg1)
-{
- jshort *lparg0=NULL;
- jshort *lparg1=NULL;
- GL_NATIVE_ENTER(env, that, glRectsv_FUNC);
-#ifdef JNI_VERSION_1_2
- if (IS_JNI_1_2) {
- if (arg0) lparg0 = (*env)->GetPrimitiveArrayCritical(env, arg0, NULL);
- if (arg1) lparg1 = (*env)->GetPrimitiveArrayCritical(env, arg1, NULL);
- } else
-#endif
- {
- if (arg0) lparg0 = (*env)->GetShortArrayElements(env, arg0, NULL);
- if (arg1) lparg1 = (*env)->GetShortArrayElements(env, arg1, NULL);
- }
- glRectsv(lparg0, lparg1);
-#ifdef JNI_VERSION_1_2
- if (IS_JNI_1_2) {
- if (arg1) (*env)->ReleasePrimitiveArrayCritical(env, arg1, lparg1, 0);
- if (arg0) (*env)->ReleasePrimitiveArrayCritical(env, arg0, lparg0, 0);
- } else
-#endif
- {
- if (arg1) (*env)->ReleaseShortArrayElements(env, arg1, lparg1, 0);
- if (arg0) (*env)->ReleaseShortArrayElements(env, arg0, lparg0, 0);
- }
- GL_NATIVE_EXIT(env, that, glRectsv_FUNC);
-}
-#endif
-
-#ifndef NO_glRenderMode
-JNIEXPORT jint JNICALL GL_NATIVE(glRenderMode)
- (JNIEnv *env, jclass that, jint arg0)
-{
- jint rc;
- GL_NATIVE_ENTER(env, that, glRenderMode_FUNC);
- rc = (jint)glRenderMode(arg0);
- GL_NATIVE_EXIT(env, that, glRenderMode_FUNC);
- return rc;
-}
-#endif
-
-#ifndef NO_glRotated
-JNIEXPORT void JNICALL GL_NATIVE(glRotated)
- (JNIEnv *env, jclass that, jdouble arg0, jdouble arg1, jdouble arg2, jdouble arg3)
-{
- GL_NATIVE_ENTER(env, that, glRotated_FUNC);
- glRotated(arg0, arg1, arg2, arg3);
- GL_NATIVE_EXIT(env, that, glRotated_FUNC);
-}
-#endif
-
-#ifndef NO_glRotatef
-JNIEXPORT void JNICALL GL_NATIVE(glRotatef)
- (JNIEnv *env, jclass that, jfloat arg0, jfloat arg1, jfloat arg2, jfloat arg3)
-{
- GL_NATIVE_ENTER(env, that, glRotatef_FUNC);
- glRotatef(arg0, arg1, arg2, arg3);
- GL_NATIVE_EXIT(env, that, glRotatef_FUNC);
-}
-#endif
-
-#ifndef NO_glScaled
-JNIEXPORT void JNICALL GL_NATIVE(glScaled)
- (JNIEnv *env, jclass that, jdouble arg0, jdouble arg1, jdouble arg2)
-{
- GL_NATIVE_ENTER(env, that, glScaled_FUNC);
- glScaled(arg0, arg1, arg2);
- GL_NATIVE_EXIT(env, that, glScaled_FUNC);
-}
-#endif
-
-#ifndef NO_glScalef
-JNIEXPORT void JNICALL GL_NATIVE(glScalef)
- (JNIEnv *env, jclass that, jfloat arg0, jfloat arg1, jfloat arg2)
-{
- GL_NATIVE_ENTER(env, that, glScalef_FUNC);
- glScalef(arg0, arg1, arg2);
- GL_NATIVE_EXIT(env, that, glScalef_FUNC);
-}
-#endif
-
-#ifndef NO_glScissor
-JNIEXPORT void JNICALL GL_NATIVE(glScissor)
- (JNIEnv *env, jclass that, jint arg0, jint arg1, jint arg2, jint arg3)
-{
- GL_NATIVE_ENTER(env, that, glScissor_FUNC);
- glScissor(arg0, arg1, arg2, arg3);
- GL_NATIVE_EXIT(env, that, glScissor_FUNC);
-}
-#endif
-
-#ifndef NO_glSelectBuffer
-JNIEXPORT void JNICALL GL_NATIVE(glSelectBuffer)
- (JNIEnv *env, jclass that, jint arg0, jint arg1)
-{
- GL_NATIVE_ENTER(env, that, glSelectBuffer_FUNC);
- glSelectBuffer(arg0, arg1);
- GL_NATIVE_EXIT(env, that, glSelectBuffer_FUNC);
-}
-#endif
-
-#ifndef NO_glShadeModel
-JNIEXPORT void JNICALL GL_NATIVE(glShadeModel)
- (JNIEnv *env, jclass that, jint arg0)
-{
- GL_NATIVE_ENTER(env, that, glShadeModel_FUNC);
- glShadeModel(arg0);
- GL_NATIVE_EXIT(env, that, glShadeModel_FUNC);
-}
-#endif
-
-#ifndef NO_glStencilFunc
-JNIEXPORT void JNICALL GL_NATIVE(glStencilFunc)
- (JNIEnv *env, jclass that, jint arg0, jint arg1, jint arg2)
-{
- GL_NATIVE_ENTER(env, that, glStencilFunc_FUNC);
- glStencilFunc(arg0, arg1, arg2);
- GL_NATIVE_EXIT(env, that, glStencilFunc_FUNC);
-}
-#endif
-
-#ifndef NO_glStencilMask
-JNIEXPORT void JNICALL GL_NATIVE(glStencilMask)
- (JNIEnv *env, jclass that, jint arg0)
-{
- GL_NATIVE_ENTER(env, that, glStencilMask_FUNC);
- glStencilMask(arg0);
- GL_NATIVE_EXIT(env, that, glStencilMask_FUNC);
-}
-#endif
-
-#ifndef NO_glStencilOp
-JNIEXPORT void JNICALL GL_NATIVE(glStencilOp)
- (JNIEnv *env, jclass that, jint arg0, jint arg1, jint arg2)
-{
- GL_NATIVE_ENTER(env, that, glStencilOp_FUNC);
- glStencilOp(arg0, arg1, arg2);
- GL_NATIVE_EXIT(env, that, glStencilOp_FUNC);
-}
-#endif
-
-#ifndef NO_glTexCoord1d
-JNIEXPORT void JNICALL GL_NATIVE(glTexCoord1d)
- (JNIEnv *env, jclass that, jdouble arg0)
-{
- GL_NATIVE_ENTER(env, that, glTexCoord1d_FUNC);
- glTexCoord1d(arg0);
- GL_NATIVE_EXIT(env, that, glTexCoord1d_FUNC);
-}
-#endif
-
-#ifndef NO_glTexCoord1dv
-JNIEXPORT void JNICALL GL_NATIVE(glTexCoord1dv)
- (JNIEnv *env, jclass that, jdoubleArray arg0)
-{
- jdouble *lparg0=NULL;
- GL_NATIVE_ENTER(env, that, glTexCoord1dv_FUNC);
-#ifdef JNI_VERSION_1_2
- if (IS_JNI_1_2) {
- if (arg0) lparg0 = (*env)->GetPrimitiveArrayCritical(env, arg0, NULL);
- } else
-#endif
- {
- if (arg0) lparg0 = (*env)->GetDoubleArrayElements(env, arg0, NULL);
- }
- glTexCoord1dv(lparg0);
-#ifdef JNI_VERSION_1_2
- if (IS_JNI_1_2) {
- if (arg0) (*env)->ReleasePrimitiveArrayCritical(env, arg0, lparg0, 0);
- } else
-#endif
- {
- if (arg0) (*env)->ReleaseDoubleArrayElements(env, arg0, lparg0, 0);
- }
- GL_NATIVE_EXIT(env, that, glTexCoord1dv_FUNC);
-}
-#endif
-
-#ifndef NO_glTexCoord1f
-JNIEXPORT void JNICALL GL_NATIVE(glTexCoord1f)
- (JNIEnv *env, jclass that, jfloat arg0)
-{
- GL_NATIVE_ENTER(env, that, glTexCoord1f_FUNC);
- glTexCoord1f(arg0);
- GL_NATIVE_EXIT(env, that, glTexCoord1f_FUNC);
-}
-#endif
-
-#ifndef NO_glTexCoord1fv
-JNIEXPORT void JNICALL GL_NATIVE(glTexCoord1fv)
- (JNIEnv *env, jclass that, jfloatArray arg0)
-{
- jfloat *lparg0=NULL;
- GL_NATIVE_ENTER(env, that, glTexCoord1fv_FUNC);
-#ifdef JNI_VERSION_1_2
- if (IS_JNI_1_2) {
- if (arg0) lparg0 = (*env)->GetPrimitiveArrayCritical(env, arg0, NULL);
- } else
-#endif
- {
- if (arg0) lparg0 = (*env)->GetFloatArrayElements(env, arg0, NULL);
- }
- glTexCoord1fv(lparg0);
-#ifdef JNI_VERSION_1_2
- if (IS_JNI_1_2) {
- if (arg0) (*env)->ReleasePrimitiveArrayCritical(env, arg0, lparg0, 0);
- } else
-#endif
- {
- if (arg0) (*env)->ReleaseFloatArrayElements(env, arg0, lparg0, 0);
- }
- GL_NATIVE_EXIT(env, that, glTexCoord1fv_FUNC);
-}
-#endif
-
-#ifndef NO_glTexCoord1i
-JNIEXPORT void JNICALL GL_NATIVE(glTexCoord1i)
- (JNIEnv *env, jclass that, jint arg0)
-{
- GL_NATIVE_ENTER(env, that, glTexCoord1i_FUNC);
- glTexCoord1i(arg0);
- GL_NATIVE_EXIT(env, that, glTexCoord1i_FUNC);
-}
-#endif
-
-#ifndef NO_glTexCoord1iv
-JNIEXPORT void JNICALL GL_NATIVE(glTexCoord1iv)
- (JNIEnv *env, jclass that, jintArray arg0)
-{
- jint *lparg0=NULL;
- GL_NATIVE_ENTER(env, that, glTexCoord1iv_FUNC);
-#ifdef JNI_VERSION_1_2
- if (IS_JNI_1_2) {
- if (arg0) lparg0 = (*env)->GetPrimitiveArrayCritical(env, arg0, NULL);
- } else
-#endif
- {
- if (arg0) lparg0 = (*env)->GetIntArrayElements(env, arg0, NULL);
- }
- glTexCoord1iv(lparg0);
-#ifdef JNI_VERSION_1_2
- if (IS_JNI_1_2) {
- if (arg0) (*env)->ReleasePrimitiveArrayCritical(env, arg0, lparg0, 0);
- } else
-#endif
- {
- if (arg0) (*env)->ReleaseIntArrayElements(env, arg0, lparg0, 0);
- }
- GL_NATIVE_EXIT(env, that, glTexCoord1iv_FUNC);
-}
-#endif
-
-#ifndef NO_glTexCoord1s
-JNIEXPORT void JNICALL GL_NATIVE(glTexCoord1s)
- (JNIEnv *env, jclass that, jshort arg0)
-{
- GL_NATIVE_ENTER(env, that, glTexCoord1s_FUNC);
- glTexCoord1s(arg0);
- GL_NATIVE_EXIT(env, that, glTexCoord1s_FUNC);
-}
-#endif
-
-#ifndef NO_glTexCoord1sv
-JNIEXPORT void JNICALL GL_NATIVE(glTexCoord1sv)
- (JNIEnv *env, jclass that, jshortArray arg0)
-{
- jshort *lparg0=NULL;
- GL_NATIVE_ENTER(env, that, glTexCoord1sv_FUNC);
-#ifdef JNI_VERSION_1_2
- if (IS_JNI_1_2) {
- if (arg0) lparg0 = (*env)->GetPrimitiveArrayCritical(env, arg0, NULL);
- } else
-#endif
- {
- if (arg0) lparg0 = (*env)->GetShortArrayElements(env, arg0, NULL);
- }
- glTexCoord1sv(lparg0);
-#ifdef JNI_VERSION_1_2
- if (IS_JNI_1_2) {
- if (arg0) (*env)->ReleasePrimitiveArrayCritical(env, arg0, lparg0, 0);
- } else
-#endif
- {
- if (arg0) (*env)->ReleaseShortArrayElements(env, arg0, lparg0, 0);
- }
- GL_NATIVE_EXIT(env, that, glTexCoord1sv_FUNC);
-}
-#endif
-
-#ifndef NO_glTexCoord2d
-JNIEXPORT void JNICALL GL_NATIVE(glTexCoord2d)
- (JNIEnv *env, jclass that, jdouble arg0, jdouble arg1)
-{
- GL_NATIVE_ENTER(env, that, glTexCoord2d_FUNC);
- glTexCoord2d(arg0, arg1);
- GL_NATIVE_EXIT(env, that, glTexCoord2d_FUNC);
-}
-#endif
-
-#ifndef NO_glTexCoord2dv
-JNIEXPORT void JNICALL GL_NATIVE(glTexCoord2dv)
- (JNIEnv *env, jclass that, jdoubleArray arg0)
-{
- jdouble *lparg0=NULL;
- GL_NATIVE_ENTER(env, that, glTexCoord2dv_FUNC);
-#ifdef JNI_VERSION_1_2
- if (IS_JNI_1_2) {
- if (arg0) lparg0 = (*env)->GetPrimitiveArrayCritical(env, arg0, NULL);
- } else
-#endif
- {
- if (arg0) lparg0 = (*env)->GetDoubleArrayElements(env, arg0, NULL);
- }
- glTexCoord2dv(lparg0);
-#ifdef JNI_VERSION_1_2
- if (IS_JNI_1_2) {
- if (arg0) (*env)->ReleasePrimitiveArrayCritical(env, arg0, lparg0, 0);
- } else
-#endif
- {
- if (arg0) (*env)->ReleaseDoubleArrayElements(env, arg0, lparg0, 0);
- }
- GL_NATIVE_EXIT(env, that, glTexCoord2dv_FUNC);
-}
-#endif
-
-#ifndef NO_glTexCoord2f
-JNIEXPORT void JNICALL GL_NATIVE(glTexCoord2f)
- (JNIEnv *env, jclass that, jfloat arg0, jfloat arg1)
-{
- GL_NATIVE_ENTER(env, that, glTexCoord2f_FUNC);
- glTexCoord2f(arg0, arg1);
- GL_NATIVE_EXIT(env, that, glTexCoord2f_FUNC);
-}
-#endif
-
-#ifndef NO_glTexCoord2fv
-JNIEXPORT void JNICALL GL_NATIVE(glTexCoord2fv)
- (JNIEnv *env, jclass that, jfloatArray arg0)
-{
- jfloat *lparg0=NULL;
- GL_NATIVE_ENTER(env, that, glTexCoord2fv_FUNC);
-#ifdef JNI_VERSION_1_2
- if (IS_JNI_1_2) {
- if (arg0) lparg0 = (*env)->GetPrimitiveArrayCritical(env, arg0, NULL);
- } else
-#endif
- {
- if (arg0) lparg0 = (*env)->GetFloatArrayElements(env, arg0, NULL);
- }
- glTexCoord2fv(lparg0);
-#ifdef JNI_VERSION_1_2
- if (IS_JNI_1_2) {
- if (arg0) (*env)->ReleasePrimitiveArrayCritical(env, arg0, lparg0, 0);
- } else
-#endif
- {
- if (arg0) (*env)->ReleaseFloatArrayElements(env, arg0, lparg0, 0);
- }
- GL_NATIVE_EXIT(env, that, glTexCoord2fv_FUNC);
-}
-#endif
-
-#ifndef NO_glTexCoord2i
-JNIEXPORT void JNICALL GL_NATIVE(glTexCoord2i)
- (JNIEnv *env, jclass that, jint arg0, jint arg1)
-{
- GL_NATIVE_ENTER(env, that, glTexCoord2i_FUNC);
- glTexCoord2i(arg0, arg1);
- GL_NATIVE_EXIT(env, that, glTexCoord2i_FUNC);
-}
-#endif
-
-#ifndef NO_glTexCoord2iv
-JNIEXPORT void JNICALL GL_NATIVE(glTexCoord2iv)
- (JNIEnv *env, jclass that, jintArray arg0)
-{
- jint *lparg0=NULL;
- GL_NATIVE_ENTER(env, that, glTexCoord2iv_FUNC);
-#ifdef JNI_VERSION_1_2
- if (IS_JNI_1_2) {
- if (arg0) lparg0 = (*env)->GetPrimitiveArrayCritical(env, arg0, NULL);
- } else
-#endif
- {
- if (arg0) lparg0 = (*env)->GetIntArrayElements(env, arg0, NULL);
- }
- glTexCoord2iv(lparg0);
-#ifdef JNI_VERSION_1_2
- if (IS_JNI_1_2) {
- if (arg0) (*env)->ReleasePrimitiveArrayCritical(env, arg0, lparg0, 0);
- } else
-#endif
- {
- if (arg0) (*env)->ReleaseIntArrayElements(env, arg0, lparg0, 0);
- }
- GL_NATIVE_EXIT(env, that, glTexCoord2iv_FUNC);
-}
-#endif
-
-#ifndef NO_glTexCoord2s
-JNIEXPORT void JNICALL GL_NATIVE(glTexCoord2s)
- (JNIEnv *env, jclass that, jshort arg0, jshort arg1)
-{
- GL_NATIVE_ENTER(env, that, glTexCoord2s_FUNC);
- glTexCoord2s(arg0, arg1);
- GL_NATIVE_EXIT(env, that, glTexCoord2s_FUNC);
-}
-#endif
-
-#ifndef NO_glTexCoord2sv
-JNIEXPORT void JNICALL GL_NATIVE(glTexCoord2sv)
- (JNIEnv *env, jclass that, jshortArray arg0)
-{
- jshort *lparg0=NULL;
- GL_NATIVE_ENTER(env, that, glTexCoord2sv_FUNC);
-#ifdef JNI_VERSION_1_2
- if (IS_JNI_1_2) {
- if (arg0) lparg0 = (*env)->GetPrimitiveArrayCritical(env, arg0, NULL);
- } else
-#endif
- {
- if (arg0) lparg0 = (*env)->GetShortArrayElements(env, arg0, NULL);
- }
- glTexCoord2sv(lparg0);
-#ifdef JNI_VERSION_1_2
- if (IS_JNI_1_2) {
- if (arg0) (*env)->ReleasePrimitiveArrayCritical(env, arg0, lparg0, 0);
- } else
-#endif
- {
- if (arg0) (*env)->ReleaseShortArrayElements(env, arg0, lparg0, 0);
- }
- GL_NATIVE_EXIT(env, that, glTexCoord2sv_FUNC);
-}
-#endif
-
-#ifndef NO_glTexCoord3d
-JNIEXPORT void JNICALL GL_NATIVE(glTexCoord3d)
- (JNIEnv *env, jclass that, jdouble arg0, jdouble arg1, jdouble arg2)
-{
- GL_NATIVE_ENTER(env, that, glTexCoord3d_FUNC);
- glTexCoord3d(arg0, arg1, arg2);
- GL_NATIVE_EXIT(env, that, glTexCoord3d_FUNC);
-}
-#endif
-
-#ifndef NO_glTexCoord3dv
-JNIEXPORT void JNICALL GL_NATIVE(glTexCoord3dv)
- (JNIEnv *env, jclass that, jdoubleArray arg0)
-{
- jdouble *lparg0=NULL;
- GL_NATIVE_ENTER(env, that, glTexCoord3dv_FUNC);
-#ifdef JNI_VERSION_1_2
- if (IS_JNI_1_2) {
- if (arg0) lparg0 = (*env)->GetPrimitiveArrayCritical(env, arg0, NULL);
- } else
-#endif
- {
- if (arg0) lparg0 = (*env)->GetDoubleArrayElements(env, arg0, NULL);
- }
- glTexCoord3dv(lparg0);
-#ifdef JNI_VERSION_1_2
- if (IS_JNI_1_2) {
- if (arg0) (*env)->ReleasePrimitiveArrayCritical(env, arg0, lparg0, 0);
- } else
-#endif
- {
- if (arg0) (*env)->ReleaseDoubleArrayElements(env, arg0, lparg0, 0);
- }
- GL_NATIVE_EXIT(env, that, glTexCoord3dv_FUNC);
-}
-#endif
-
-#ifndef NO_glTexCoord3f
-JNIEXPORT void JNICALL GL_NATIVE(glTexCoord3f)
- (JNIEnv *env, jclass that, jfloat arg0, jfloat arg1, jfloat arg2)
-{
- GL_NATIVE_ENTER(env, that, glTexCoord3f_FUNC);
- glTexCoord3f(arg0, arg1, arg2);
- GL_NATIVE_EXIT(env, that, glTexCoord3f_FUNC);
-}
-#endif
-
-#ifndef NO_glTexCoord3fv
-JNIEXPORT void JNICALL GL_NATIVE(glTexCoord3fv)
- (JNIEnv *env, jclass that, jfloatArray arg0)
-{
- jfloat *lparg0=NULL;
- GL_NATIVE_ENTER(env, that, glTexCoord3fv_FUNC);
-#ifdef JNI_VERSION_1_2
- if (IS_JNI_1_2) {
- if (arg0) lparg0 = (*env)->GetPrimitiveArrayCritical(env, arg0, NULL);
- } else
-#endif
- {
- if (arg0) lparg0 = (*env)->GetFloatArrayElements(env, arg0, NULL);
- }
- glTexCoord3fv(lparg0);
-#ifdef JNI_VERSION_1_2
- if (IS_JNI_1_2) {
- if (arg0) (*env)->ReleasePrimitiveArrayCritical(env, arg0, lparg0, 0);
- } else
-#endif
- {
- if (arg0) (*env)->ReleaseFloatArrayElements(env, arg0, lparg0, 0);
- }
- GL_NATIVE_EXIT(env, that, glTexCoord3fv_FUNC);
-}
-#endif
-
-#ifndef NO_glTexCoord3i
-JNIEXPORT void JNICALL GL_NATIVE(glTexCoord3i)
- (JNIEnv *env, jclass that, jint arg0, jint arg1, jint arg2)
-{
- GL_NATIVE_ENTER(env, that, glTexCoord3i_FUNC);
- glTexCoord3i(arg0, arg1, arg2);
- GL_NATIVE_EXIT(env, that, glTexCoord3i_FUNC);
-}
-#endif
-
-#ifndef NO_glTexCoord3iv
-JNIEXPORT void JNICALL GL_NATIVE(glTexCoord3iv)
- (JNIEnv *env, jclass that, jintArray arg0)
-{
- jint *lparg0=NULL;
- GL_NATIVE_ENTER(env, that, glTexCoord3iv_FUNC);
-#ifdef JNI_VERSION_1_2
- if (IS_JNI_1_2) {
- if (arg0) lparg0 = (*env)->GetPrimitiveArrayCritical(env, arg0, NULL);
- } else
-#endif
- {
- if (arg0) lparg0 = (*env)->GetIntArrayElements(env, arg0, NULL);
- }
- glTexCoord3iv(lparg0);
-#ifdef JNI_VERSION_1_2
- if (IS_JNI_1_2) {
- if (arg0) (*env)->ReleasePrimitiveArrayCritical(env, arg0, lparg0, 0);
- } else
-#endif
- {
- if (arg0) (*env)->ReleaseIntArrayElements(env, arg0, lparg0, 0);
- }
- GL_NATIVE_EXIT(env, that, glTexCoord3iv_FUNC);
-}
-#endif
-
-#ifndef NO_glTexCoord3s
-JNIEXPORT void JNICALL GL_NATIVE(glTexCoord3s)
- (JNIEnv *env, jclass that, jshort arg0, jshort arg1, jshort arg2)
-{
- GL_NATIVE_ENTER(env, that, glTexCoord3s_FUNC);
- glTexCoord3s(arg0, arg1, arg2);
- GL_NATIVE_EXIT(env, that, glTexCoord3s_FUNC);
-}
-#endif
-
-#ifndef NO_glTexCoord3sv
-JNIEXPORT void JNICALL GL_NATIVE(glTexCoord3sv)
- (JNIEnv *env, jclass that, jshortArray arg0)
-{
- jshort *lparg0=NULL;
- GL_NATIVE_ENTER(env, that, glTexCoord3sv_FUNC);
-#ifdef JNI_VERSION_1_2
- if (IS_JNI_1_2) {
- if (arg0) lparg0 = (*env)->GetPrimitiveArrayCritical(env, arg0, NULL);
- } else
-#endif
- {
- if (arg0) lparg0 = (*env)->GetShortArrayElements(env, arg0, NULL);
- }
- glTexCoord3sv(lparg0);
-#ifdef JNI_VERSION_1_2
- if (IS_JNI_1_2) {
- if (arg0) (*env)->ReleasePrimitiveArrayCritical(env, arg0, lparg0, 0);
- } else
-#endif
- {
- if (arg0) (*env)->ReleaseShortArrayElements(env, arg0, lparg0, 0);
- }
- GL_NATIVE_EXIT(env, that, glTexCoord3sv_FUNC);
-}
-#endif
-
-#ifndef NO_glTexCoord4d
-JNIEXPORT void JNICALL GL_NATIVE(glTexCoord4d)
- (JNIEnv *env, jclass that, jdouble arg0, jdouble arg1, jdouble arg2, jdouble arg3)
-{
- GL_NATIVE_ENTER(env, that, glTexCoord4d_FUNC);
- glTexCoord4d(arg0, arg1, arg2, arg3);
- GL_NATIVE_EXIT(env, that, glTexCoord4d_FUNC);
-}
-#endif
-
-#ifndef NO_glTexCoord4dv
-JNIEXPORT void JNICALL GL_NATIVE(glTexCoord4dv)
- (JNIEnv *env, jclass that, jdoubleArray arg0)
-{
- jdouble *lparg0=NULL;
- GL_NATIVE_ENTER(env, that, glTexCoord4dv_FUNC);
-#ifdef JNI_VERSION_1_2
- if (IS_JNI_1_2) {
- if (arg0) lparg0 = (*env)->GetPrimitiveArrayCritical(env, arg0, NULL);
- } else
-#endif
- {
- if (arg0) lparg0 = (*env)->GetDoubleArrayElements(env, arg0, NULL);
- }
- glTexCoord4dv(lparg0);
-#ifdef JNI_VERSION_1_2
- if (IS_JNI_1_2) {
- if (arg0) (*env)->ReleasePrimitiveArrayCritical(env, arg0, lparg0, 0);
- } else
-#endif
- {
- if (arg0) (*env)->ReleaseDoubleArrayElements(env, arg0, lparg0, 0);
- }
- GL_NATIVE_EXIT(env, that, glTexCoord4dv_FUNC);
-}
-#endif
-
-#ifndef NO_glTexCoord4f
-JNIEXPORT void JNICALL GL_NATIVE(glTexCoord4f)
- (JNIEnv *env, jclass that, jfloat arg0, jfloat arg1, jfloat arg2, jfloat arg3)
-{
- GL_NATIVE_ENTER(env, that, glTexCoord4f_FUNC);
- glTexCoord4f(arg0, arg1, arg2, arg3);
- GL_NATIVE_EXIT(env, that, glTexCoord4f_FUNC);
-}
-#endif
-
-#ifndef NO_glTexCoord4fv
-JNIEXPORT void JNICALL GL_NATIVE(glTexCoord4fv)
- (JNIEnv *env, jclass that, jfloatArray arg0)
-{
- jfloat *lparg0=NULL;
- GL_NATIVE_ENTER(env, that, glTexCoord4fv_FUNC);
-#ifdef JNI_VERSION_1_2
- if (IS_JNI_1_2) {
- if (arg0) lparg0 = (*env)->GetPrimitiveArrayCritical(env, arg0, NULL);
- } else
-#endif
- {
- if (arg0) lparg0 = (*env)->GetFloatArrayElements(env, arg0, NULL);
- }
- glTexCoord4fv(lparg0);
-#ifdef JNI_VERSION_1_2
- if (IS_JNI_1_2) {
- if (arg0) (*env)->ReleasePrimitiveArrayCritical(env, arg0, lparg0, 0);
- } else
-#endif
- {
- if (arg0) (*env)->ReleaseFloatArrayElements(env, arg0, lparg0, 0);
- }
- GL_NATIVE_EXIT(env, that, glTexCoord4fv_FUNC);
-}
-#endif
-
-#ifndef NO_glTexCoord4i
-JNIEXPORT void JNICALL GL_NATIVE(glTexCoord4i)
- (JNIEnv *env, jclass that, jint arg0, jint arg1, jint arg2, jint arg3)
-{
- GL_NATIVE_ENTER(env, that, glTexCoord4i_FUNC);
- glTexCoord4i(arg0, arg1, arg2, arg3);
- GL_NATIVE_EXIT(env, that, glTexCoord4i_FUNC);
-}
-#endif
-
-#ifndef NO_glTexCoord4iv
-JNIEXPORT void JNICALL GL_NATIVE(glTexCoord4iv)
- (JNIEnv *env, jclass that, jintArray arg0)
-{
- jint *lparg0=NULL;
- GL_NATIVE_ENTER(env, that, glTexCoord4iv_FUNC);
-#ifdef JNI_VERSION_1_2
- if (IS_JNI_1_2) {
- if (arg0) lparg0 = (*env)->GetPrimitiveArrayCritical(env, arg0, NULL);
- } else
-#endif
- {
- if (arg0) lparg0 = (*env)->GetIntArrayElements(env, arg0, NULL);
- }
- glTexCoord4iv(lparg0);
-#ifdef JNI_VERSION_1_2
- if (IS_JNI_1_2) {
- if (arg0) (*env)->ReleasePrimitiveArrayCritical(env, arg0, lparg0, 0);
- } else
-#endif
- {
- if (arg0) (*env)->ReleaseIntArrayElements(env, arg0, lparg0, 0);
- }
- GL_NATIVE_EXIT(env, that, glTexCoord4iv_FUNC);
-}
-#endif
-
-#ifndef NO_glTexCoord4s
-JNIEXPORT void JNICALL GL_NATIVE(glTexCoord4s)
- (JNIEnv *env, jclass that, jshort arg0, jshort arg1, jshort arg2, jshort arg3)
-{
- GL_NATIVE_ENTER(env, that, glTexCoord4s_FUNC);
- glTexCoord4s(arg0, arg1, arg2, arg3);
- GL_NATIVE_EXIT(env, that, glTexCoord4s_FUNC);
-}
-#endif
-
-#ifndef NO_glTexCoord4sv
-JNIEXPORT void JNICALL GL_NATIVE(glTexCoord4sv)
- (JNIEnv *env, jclass that, jshortArray arg0)
-{
- jshort *lparg0=NULL;
- GL_NATIVE_ENTER(env, that, glTexCoord4sv_FUNC);
-#ifdef JNI_VERSION_1_2
- if (IS_JNI_1_2) {
- if (arg0) lparg0 = (*env)->GetPrimitiveArrayCritical(env, arg0, NULL);
- } else
-#endif
- {
- if (arg0) lparg0 = (*env)->GetShortArrayElements(env, arg0, NULL);
- }
- glTexCoord4sv(lparg0);
-#ifdef JNI_VERSION_1_2
- if (IS_JNI_1_2) {
- if (arg0) (*env)->ReleasePrimitiveArrayCritical(env, arg0, lparg0, 0);
- } else
-#endif
- {
- if (arg0) (*env)->ReleaseShortArrayElements(env, arg0, lparg0, 0);
- }
- GL_NATIVE_EXIT(env, that, glTexCoord4sv_FUNC);
-}
-#endif
-
-#ifndef NO_glTexCoordPointer
-JNIEXPORT void JNICALL GL_NATIVE(glTexCoordPointer)
- (JNIEnv *env, jclass that, jint arg0, jint arg1, jint arg2, jintArray arg3)
-{
- jint *lparg3=NULL;
- GL_NATIVE_ENTER(env, that, glTexCoordPointer_FUNC);
-#ifdef JNI_VERSION_1_2
- if (IS_JNI_1_2) {
- if (arg3) lparg3 = (*env)->GetPrimitiveArrayCritical(env, arg3, NULL);
- } else
-#endif
- {
- if (arg3) lparg3 = (*env)->GetIntArrayElements(env, arg3, NULL);
- }
- glTexCoordPointer(arg0, arg1, arg2, lparg3);
-#ifdef JNI_VERSION_1_2
- if (IS_JNI_1_2) {
- if (arg3) (*env)->ReleasePrimitiveArrayCritical(env, arg3, lparg3, 0);
- } else
-#endif
- {
- if (arg3) (*env)->ReleaseIntArrayElements(env, arg3, lparg3, 0);
- }
- GL_NATIVE_EXIT(env, that, glTexCoordPointer_FUNC);
-}
-#endif
-
-#ifndef NO_glTexEnvf
-JNIEXPORT void JNICALL GL_NATIVE(glTexEnvf)
- (JNIEnv *env, jclass that, jint arg0, jint arg1, jfloat arg2)
-{
- GL_NATIVE_ENTER(env, that, glTexEnvf_FUNC);
- glTexEnvf(arg0, arg1, arg2);
- GL_NATIVE_EXIT(env, that, glTexEnvf_FUNC);
-}
-#endif
-
-#ifndef NO_glTexEnvfv
-JNIEXPORT void JNICALL GL_NATIVE(glTexEnvfv)
- (JNIEnv *env, jclass that, jint arg0, jint arg1, jfloatArray arg2)
-{
- jfloat *lparg2=NULL;
- GL_NATIVE_ENTER(env, that, glTexEnvfv_FUNC);
-#ifdef JNI_VERSION_1_2
- if (IS_JNI_1_2) {
- if (arg2) lparg2 = (*env)->GetPrimitiveArrayCritical(env, arg2, NULL);
- } else
-#endif
- {
- if (arg2) lparg2 = (*env)->GetFloatArrayElements(env, arg2, NULL);
- }
- glTexEnvfv(arg0, arg1, lparg2);
-#ifdef JNI_VERSION_1_2
- if (IS_JNI_1_2) {
- if (arg2) (*env)->ReleasePrimitiveArrayCritical(env, arg2, lparg2, 0);
- } else
-#endif
- {
- if (arg2) (*env)->ReleaseFloatArrayElements(env, arg2, lparg2, 0);
- }
- GL_NATIVE_EXIT(env, that, glTexEnvfv_FUNC);
-}
-#endif
-
-#ifndef NO_glTexEnvi
-JNIEXPORT void JNICALL GL_NATIVE(glTexEnvi)
- (JNIEnv *env, jclass that, jint arg0, jint arg1, jint arg2)
-{
- GL_NATIVE_ENTER(env, that, glTexEnvi_FUNC);
- glTexEnvi(arg0, arg1, arg2);
- GL_NATIVE_EXIT(env, that, glTexEnvi_FUNC);
-}
-#endif
-
-#ifndef NO_glTexEnviv
-JNIEXPORT void JNICALL GL_NATIVE(glTexEnviv)
- (JNIEnv *env, jclass that, jint arg0, jint arg1, jintArray arg2)
-{
- jint *lparg2=NULL;
- GL_NATIVE_ENTER(env, that, glTexEnviv_FUNC);
-#ifdef JNI_VERSION_1_2
- if (IS_JNI_1_2) {
- if (arg2) lparg2 = (*env)->GetPrimitiveArrayCritical(env, arg2, NULL);
- } else
-#endif
- {
- if (arg2) lparg2 = (*env)->GetIntArrayElements(env, arg2, NULL);
- }
- glTexEnviv(arg0, arg1, lparg2);
-#ifdef JNI_VERSION_1_2
- if (IS_JNI_1_2) {
- if (arg2) (*env)->ReleasePrimitiveArrayCritical(env, arg2, lparg2, 0);
- } else
-#endif
- {
- if (arg2) (*env)->ReleaseIntArrayElements(env, arg2, lparg2, 0);
- }
- GL_NATIVE_EXIT(env, that, glTexEnviv_FUNC);
-}
-#endif
-
-#ifndef NO_glTexGend
-JNIEXPORT void JNICALL GL_NATIVE(glTexGend)
- (JNIEnv *env, jclass that, jint arg0, jint arg1, jdouble arg2)
-{
- GL_NATIVE_ENTER(env, that, glTexGend_FUNC);
- glTexGend(arg0, arg1, arg2);
- GL_NATIVE_EXIT(env, that, glTexGend_FUNC);
-}
-#endif
-
-#ifndef NO_glTexGendv
-JNIEXPORT void JNICALL GL_NATIVE(glTexGendv)
- (JNIEnv *env, jclass that, jint arg0, jint arg1, jdoubleArray arg2)
-{
- jdouble *lparg2=NULL;
- GL_NATIVE_ENTER(env, that, glTexGendv_FUNC);
-#ifdef JNI_VERSION_1_2
- if (IS_JNI_1_2) {
- if (arg2) lparg2 = (*env)->GetPrimitiveArrayCritical(env, arg2, NULL);
- } else
-#endif
- {
- if (arg2) lparg2 = (*env)->GetDoubleArrayElements(env, arg2, NULL);
- }
- glTexGendv(arg0, arg1, lparg2);
-#ifdef JNI_VERSION_1_2
- if (IS_JNI_1_2) {
- if (arg2) (*env)->ReleasePrimitiveArrayCritical(env, arg2, lparg2, 0);
- } else
-#endif
- {
- if (arg2) (*env)->ReleaseDoubleArrayElements(env, arg2, lparg2, 0);
- }
- GL_NATIVE_EXIT(env, that, glTexGendv_FUNC);
-}
-#endif
-
-#ifndef NO_glTexGenf
-JNIEXPORT void JNICALL GL_NATIVE(glTexGenf)
- (JNIEnv *env, jclass that, jint arg0, jint arg1, jfloat arg2)
-{
- GL_NATIVE_ENTER(env, that, glTexGenf_FUNC);
- glTexGenf(arg0, arg1, arg2);
- GL_NATIVE_EXIT(env, that, glTexGenf_FUNC);
-}
-#endif
-
-#ifndef NO_glTexGenfv
-JNIEXPORT void JNICALL GL_NATIVE(glTexGenfv)
- (JNIEnv *env, jclass that, jint arg0, jint arg1, jfloatArray arg2)
-{
- jfloat *lparg2=NULL;
- GL_NATIVE_ENTER(env, that, glTexGenfv_FUNC);
-#ifdef JNI_VERSION_1_2
- if (IS_JNI_1_2) {
- if (arg2) lparg2 = (*env)->GetPrimitiveArrayCritical(env, arg2, NULL);
- } else
-#endif
- {
- if (arg2) lparg2 = (*env)->GetFloatArrayElements(env, arg2, NULL);
- }
- glTexGenfv(arg0, arg1, lparg2);
-#ifdef JNI_VERSION_1_2
- if (IS_JNI_1_2) {
- if (arg2) (*env)->ReleasePrimitiveArrayCritical(env, arg2, lparg2, 0);
- } else
-#endif
- {
- if (arg2) (*env)->ReleaseFloatArrayElements(env, arg2, lparg2, 0);
- }
- GL_NATIVE_EXIT(env, that, glTexGenfv_FUNC);
-}
-#endif
-
-#ifndef NO_glTexGeni
-JNIEXPORT void JNICALL GL_NATIVE(glTexGeni)
- (JNIEnv *env, jclass that, jint arg0, jint arg1, jint arg2)
-{
- GL_NATIVE_ENTER(env, that, glTexGeni_FUNC);
- glTexGeni(arg0, arg1, arg2);
- GL_NATIVE_EXIT(env, that, glTexGeni_FUNC);
-}
-#endif
-
-#ifndef NO_glTexGeniv
-JNIEXPORT void JNICALL GL_NATIVE(glTexGeniv)
- (JNIEnv *env, jclass that, jint arg0, jint arg1, jintArray arg2)
-{
- jint *lparg2=NULL;
- GL_NATIVE_ENTER(env, that, glTexGeniv_FUNC);
-#ifdef JNI_VERSION_1_2
- if (IS_JNI_1_2) {
- if (arg2) lparg2 = (*env)->GetPrimitiveArrayCritical(env, arg2, NULL);
- } else
-#endif
- {
- if (arg2) lparg2 = (*env)->GetIntArrayElements(env, arg2, NULL);
- }
- glTexGeniv(arg0, arg1, lparg2);
-#ifdef JNI_VERSION_1_2
- if (IS_JNI_1_2) {
- if (arg2) (*env)->ReleasePrimitiveArrayCritical(env, arg2, lparg2, 0);
- } else
-#endif
- {
- if (arg2) (*env)->ReleaseIntArrayElements(env, arg2, lparg2, 0);
- }
- GL_NATIVE_EXIT(env, that, glTexGeniv_FUNC);
-}
-#endif
-
-#ifndef NO_glTexImage1D
-JNIEXPORT void JNICALL GL_NATIVE(glTexImage1D)
- (JNIEnv *env, jclass that, jint arg0, jint arg1, jint arg2, jint arg3, jint arg4, jint arg5, jint arg6, jintArray arg7)
-{
- jint *lparg7=NULL;
- GL_NATIVE_ENTER(env, that, glTexImage1D_FUNC);
-#ifdef JNI_VERSION_1_2
- if (IS_JNI_1_2) {
- if (arg7) lparg7 = (*env)->GetPrimitiveArrayCritical(env, arg7, NULL);
- } else
-#endif
- {
- if (arg7) lparg7 = (*env)->GetIntArrayElements(env, arg7, NULL);
- }
- glTexImage1D(arg0, arg1, arg2, arg3, arg4, arg5, arg6, lparg7);
-#ifdef JNI_VERSION_1_2
- if (IS_JNI_1_2) {
- if (arg7) (*env)->ReleasePrimitiveArrayCritical(env, arg7, lparg7, 0);
- } else
-#endif
- {
- if (arg7) (*env)->ReleaseIntArrayElements(env, arg7, lparg7, 0);
- }
- GL_NATIVE_EXIT(env, that, glTexImage1D_FUNC);
-}
-#endif
-
-#ifndef NO_glTexImage2D
-JNIEXPORT void JNICALL GL_NATIVE(glTexImage2D)
- (JNIEnv *env, jclass that, jint arg0, jint arg1, jint arg2, jint arg3, jint arg4, jint arg5, jint arg6, jint arg7, jbyteArray arg8)
-{
- jbyte *lparg8=NULL;
- GL_NATIVE_ENTER(env, that, glTexImage2D_FUNC);
-#ifdef JNI_VERSION_1_2
- if (IS_JNI_1_2) {
- if (arg8) lparg8 = (*env)->GetPrimitiveArrayCritical(env, arg8, NULL);
- } else
-#endif
- {
- if (arg8) lparg8 = (*env)->GetByteArrayElements(env, arg8, NULL);
- }
- glTexImage2D(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, lparg8);
-#ifdef JNI_VERSION_1_2
- if (IS_JNI_1_2) {
- if (arg8) (*env)->ReleasePrimitiveArrayCritical(env, arg8, lparg8, 0);
- } else
-#endif
- {
- if (arg8) (*env)->ReleaseByteArrayElements(env, arg8, lparg8, 0);
- }
- GL_NATIVE_EXIT(env, that, glTexImage2D_FUNC);
-}
-#endif
-
-#ifndef NO_glTexParameterf
-JNIEXPORT void JNICALL GL_NATIVE(glTexParameterf)
- (JNIEnv *env, jclass that, jint arg0, jint arg1, jfloat arg2)
-{
- GL_NATIVE_ENTER(env, that, glTexParameterf_FUNC);
- glTexParameterf(arg0, arg1, arg2);
- GL_NATIVE_EXIT(env, that, glTexParameterf_FUNC);
-}
-#endif
-
-#ifndef NO_glTexParameterfv
-JNIEXPORT void JNICALL GL_NATIVE(glTexParameterfv)
- (JNIEnv *env, jclass that, jint arg0, jint arg1, jfloatArray arg2)
-{
- jfloat *lparg2=NULL;
- GL_NATIVE_ENTER(env, that, glTexParameterfv_FUNC);
-#ifdef JNI_VERSION_1_2
- if (IS_JNI_1_2) {
- if (arg2) lparg2 = (*env)->GetPrimitiveArrayCritical(env, arg2, NULL);
- } else
-#endif
- {
- if (arg2) lparg2 = (*env)->GetFloatArrayElements(env, arg2, NULL);
- }
- glTexParameterfv(arg0, arg1, lparg2);
-#ifdef JNI_VERSION_1_2
- if (IS_JNI_1_2) {
- if (arg2) (*env)->ReleasePrimitiveArrayCritical(env, arg2, lparg2, 0);
- } else
-#endif
- {
- if (arg2) (*env)->ReleaseFloatArrayElements(env, arg2, lparg2, 0);
- }
- GL_NATIVE_EXIT(env, that, glTexParameterfv_FUNC);
-}
-#endif
-
-#ifndef NO_glTexParameteri
-JNIEXPORT void JNICALL GL_NATIVE(glTexParameteri)
- (JNIEnv *env, jclass that, jint arg0, jint arg1, jint arg2)
-{
- GL_NATIVE_ENTER(env, that, glTexParameteri_FUNC);
- glTexParameteri(arg0, arg1, arg2);
- GL_NATIVE_EXIT(env, that, glTexParameteri_FUNC);
-}
-#endif
-
-#ifndef NO_glTexParameteriv
-JNIEXPORT void JNICALL GL_NATIVE(glTexParameteriv)
- (JNIEnv *env, jclass that, jint arg0, jint arg1, jintArray arg2)
-{
- jint *lparg2=NULL;
- GL_NATIVE_ENTER(env, that, glTexParameteriv_FUNC);
-#ifdef JNI_VERSION_1_2
- if (IS_JNI_1_2) {
- if (arg2) lparg2 = (*env)->GetPrimitiveArrayCritical(env, arg2, NULL);
- } else
-#endif
- {
- if (arg2) lparg2 = (*env)->GetIntArrayElements(env, arg2, NULL);
- }
- glTexParameteriv(arg0, arg1, lparg2);
-#ifdef JNI_VERSION_1_2
- if (IS_JNI_1_2) {
- if (arg2) (*env)->ReleasePrimitiveArrayCritical(env, arg2, lparg2, 0);
- } else
-#endif
- {
- if (arg2) (*env)->ReleaseIntArrayElements(env, arg2, lparg2, 0);
- }
- GL_NATIVE_EXIT(env, that, glTexParameteriv_FUNC);
-}
-#endif
-
-#ifndef NO_glTexSubImage1D
-JNIEXPORT void JNICALL GL_NATIVE(glTexSubImage1D)
- (JNIEnv *env, jclass that, jint arg0, jint arg1, jint arg2, jint arg3, jint arg4, jint arg5, jintArray arg6)
-{
- jint *lparg6=NULL;
- GL_NATIVE_ENTER(env, that, glTexSubImage1D_FUNC);
-#ifdef JNI_VERSION_1_2
- if (IS_JNI_1_2) {
- if (arg6) lparg6 = (*env)->GetPrimitiveArrayCritical(env, arg6, NULL);
- } else
-#endif
- {
- if (arg6) lparg6 = (*env)->GetIntArrayElements(env, arg6, NULL);
- }
- glTexSubImage1D(arg0, arg1, arg2, arg3, arg4, arg5, lparg6);
-#ifdef JNI_VERSION_1_2
- if (IS_JNI_1_2) {
- if (arg6) (*env)->ReleasePrimitiveArrayCritical(env, arg6, lparg6, 0);
- } else
-#endif
- {
- if (arg6) (*env)->ReleaseIntArrayElements(env, arg6, lparg6, 0);
- }
- GL_NATIVE_EXIT(env, that, glTexSubImage1D_FUNC);
-}
-#endif
-
-#ifndef NO_glTexSubImage2D
-JNIEXPORT void JNICALL GL_NATIVE(glTexSubImage2D)
- (JNIEnv *env, jclass that, jint arg0, jint arg1, jint arg2, jint arg3, jint arg4, jint arg5, jint arg6, jint arg7, jintArray arg8)
-{
- jint *lparg8=NULL;
- GL_NATIVE_ENTER(env, that, glTexSubImage2D_FUNC);
-#ifdef JNI_VERSION_1_2
- if (IS_JNI_1_2) {
- if (arg8) lparg8 = (*env)->GetPrimitiveArrayCritical(env, arg8, NULL);
- } else
-#endif
- {
- if (arg8) lparg8 = (*env)->GetIntArrayElements(env, arg8, NULL);
- }
- glTexSubImage2D(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, lparg8);
-#ifdef JNI_VERSION_1_2
- if (IS_JNI_1_2) {
- if (arg8) (*env)->ReleasePrimitiveArrayCritical(env, arg8, lparg8, 0);
- } else
-#endif
- {
- if (arg8) (*env)->ReleaseIntArrayElements(env, arg8, lparg8, 0);
- }
- GL_NATIVE_EXIT(env, that, glTexSubImage2D_FUNC);
-}
-#endif
-
-#ifndef NO_glTranslated
-JNIEXPORT void JNICALL GL_NATIVE(glTranslated)
- (JNIEnv *env, jclass that, jdouble arg0, jdouble arg1, jdouble arg2)
-{
- GL_NATIVE_ENTER(env, that, glTranslated_FUNC);
- glTranslated(arg0, arg1, arg2);
- GL_NATIVE_EXIT(env, that, glTranslated_FUNC);
-}
-#endif
-
-#ifndef NO_glTranslatef
-JNIEXPORT void JNICALL GL_NATIVE(glTranslatef)
- (JNIEnv *env, jclass that, jfloat arg0, jfloat arg1, jfloat arg2)
-{
- GL_NATIVE_ENTER(env, that, glTranslatef_FUNC);
- glTranslatef(arg0, arg1, arg2);
- GL_NATIVE_EXIT(env, that, glTranslatef_FUNC);
-}
-#endif
-
-#ifndef NO_glVertex2d
-JNIEXPORT void JNICALL GL_NATIVE(glVertex2d)
- (JNIEnv *env, jclass that, jdouble arg0, jdouble arg1)
-{
- GL_NATIVE_ENTER(env, that, glVertex2d_FUNC);
- glVertex2d(arg0, arg1);
- GL_NATIVE_EXIT(env, that, glVertex2d_FUNC);
-}
-#endif
-
-#ifndef NO_glVertex2dv
-JNIEXPORT void JNICALL GL_NATIVE(glVertex2dv)
- (JNIEnv *env, jclass that, jdoubleArray arg0)
-{
- jdouble *lparg0=NULL;
- GL_NATIVE_ENTER(env, that, glVertex2dv_FUNC);
-#ifdef JNI_VERSION_1_2
- if (IS_JNI_1_2) {
- if (arg0) lparg0 = (*env)->GetPrimitiveArrayCritical(env, arg0, NULL);
- } else
-#endif
- {
- if (arg0) lparg0 = (*env)->GetDoubleArrayElements(env, arg0, NULL);
- }
- glVertex2dv(lparg0);
-#ifdef JNI_VERSION_1_2
- if (IS_JNI_1_2) {
- if (arg0) (*env)->ReleasePrimitiveArrayCritical(env, arg0, lparg0, 0);
- } else
-#endif
- {
- if (arg0) (*env)->ReleaseDoubleArrayElements(env, arg0, lparg0, 0);
- }
- GL_NATIVE_EXIT(env, that, glVertex2dv_FUNC);
-}
-#endif
-
-#ifndef NO_glVertex2f
-JNIEXPORT void JNICALL GL_NATIVE(glVertex2f)
- (JNIEnv *env, jclass that, jfloat arg0, jfloat arg1)
-{
- GL_NATIVE_ENTER(env, that, glVertex2f_FUNC);
- glVertex2f(arg0, arg1);
- GL_NATIVE_EXIT(env, that, glVertex2f_FUNC);
-}
-#endif
-
-#ifndef NO_glVertex2fv
-JNIEXPORT void JNICALL GL_NATIVE(glVertex2fv)
- (JNIEnv *env, jclass that, jfloatArray arg0)
-{
- jfloat *lparg0=NULL;
- GL_NATIVE_ENTER(env, that, glVertex2fv_FUNC);
-#ifdef JNI_VERSION_1_2
- if (IS_JNI_1_2) {
- if (arg0) lparg0 = (*env)->GetPrimitiveArrayCritical(env, arg0, NULL);
- } else
-#endif
- {
- if (arg0) lparg0 = (*env)->GetFloatArrayElements(env, arg0, NULL);
- }
- glVertex2fv(lparg0);
-#ifdef JNI_VERSION_1_2
- if (IS_JNI_1_2) {
- if (arg0) (*env)->ReleasePrimitiveArrayCritical(env, arg0, lparg0, 0);
- } else
-#endif
- {
- if (arg0) (*env)->ReleaseFloatArrayElements(env, arg0, lparg0, 0);
- }
- GL_NATIVE_EXIT(env, that, glVertex2fv_FUNC);
-}
-#endif
-
-#ifndef NO_glVertex2i
-JNIEXPORT void JNICALL GL_NATIVE(glVertex2i)
- (JNIEnv *env, jclass that, jint arg0, jint arg1)
-{
- GL_NATIVE_ENTER(env, that, glVertex2i_FUNC);
- glVertex2i(arg0, arg1);
- GL_NATIVE_EXIT(env, that, glVertex2i_FUNC);
-}
-#endif
-
-#ifndef NO_glVertex2iv
-JNIEXPORT void JNICALL GL_NATIVE(glVertex2iv)
- (JNIEnv *env, jclass that, jintArray arg0)
-{
- jint *lparg0=NULL;
- GL_NATIVE_ENTER(env, that, glVertex2iv_FUNC);
-#ifdef JNI_VERSION_1_2
- if (IS_JNI_1_2) {
- if (arg0) lparg0 = (*env)->GetPrimitiveArrayCritical(env, arg0, NULL);
- } else
-#endif
- {
- if (arg0) lparg0 = (*env)->GetIntArrayElements(env, arg0, NULL);
- }
- glVertex2iv(lparg0);
-#ifdef JNI_VERSION_1_2
- if (IS_JNI_1_2) {
- if (arg0) (*env)->ReleasePrimitiveArrayCritical(env, arg0, lparg0, 0);
- } else
-#endif
- {
- if (arg0) (*env)->ReleaseIntArrayElements(env, arg0, lparg0, 0);
- }
- GL_NATIVE_EXIT(env, that, glVertex2iv_FUNC);
-}
-#endif
-
-#ifndef NO_glVertex2s
-JNIEXPORT void JNICALL GL_NATIVE(glVertex2s)
- (JNIEnv *env, jclass that, jshort arg0, jshort arg1)
-{
- GL_NATIVE_ENTER(env, that, glVertex2s_FUNC);
- glVertex2s(arg0, arg1);
- GL_NATIVE_EXIT(env, that, glVertex2s_FUNC);
-}
-#endif
-
-#ifndef NO_glVertex2sv
-JNIEXPORT void JNICALL GL_NATIVE(glVertex2sv)
- (JNIEnv *env, jclass that, jshortArray arg0)
-{
- jshort *lparg0=NULL;
- GL_NATIVE_ENTER(env, that, glVertex2sv_FUNC);
-#ifdef JNI_VERSION_1_2
- if (IS_JNI_1_2) {
- if (arg0) lparg0 = (*env)->GetPrimitiveArrayCritical(env, arg0, NULL);
- } else
-#endif
- {
- if (arg0) lparg0 = (*env)->GetShortArrayElements(env, arg0, NULL);
- }
- glVertex2sv(lparg0);
-#ifdef JNI_VERSION_1_2
- if (IS_JNI_1_2) {
- if (arg0) (*env)->ReleasePrimitiveArrayCritical(env, arg0, lparg0, 0);
- } else
-#endif
- {
- if (arg0) (*env)->ReleaseShortArrayElements(env, arg0, lparg0, 0);
- }
- GL_NATIVE_EXIT(env, that, glVertex2sv_FUNC);
-}
-#endif
-
-#ifndef NO_glVertex3d
-JNIEXPORT void JNICALL GL_NATIVE(glVertex3d)
- (JNIEnv *env, jclass that, jdouble arg0, jdouble arg1, jdouble arg2)
-{
- GL_NATIVE_ENTER(env, that, glVertex3d_FUNC);
- glVertex3d(arg0, arg1, arg2);
- GL_NATIVE_EXIT(env, that, glVertex3d_FUNC);
-}
-#endif
-
-#ifndef NO_glVertex3dv
-JNIEXPORT void JNICALL GL_NATIVE(glVertex3dv)
- (JNIEnv *env, jclass that, jdoubleArray arg0)
-{
- jdouble *lparg0=NULL;
- GL_NATIVE_ENTER(env, that, glVertex3dv_FUNC);
- if (arg0) lparg0 = (*env)->GetDoubleArrayElements(env, arg0, NULL);
- glVertex3dv(lparg0);
- if (arg0) (*env)->ReleaseDoubleArrayElements(env, arg0, lparg0, 0);
- GL_NATIVE_EXIT(env, that, glVertex3dv_FUNC);
-}
-#endif
-
-#ifndef NO_glVertex3f
-JNIEXPORT void JNICALL GL_NATIVE(glVertex3f)
- (JNIEnv *env, jclass that, jfloat arg0, jfloat arg1, jfloat arg2)
-{
- GL_NATIVE_ENTER(env, that, glVertex3f_FUNC);
- glVertex3f(arg0, arg1, arg2);
- GL_NATIVE_EXIT(env, that, glVertex3f_FUNC);
-}
-#endif
-
-#ifndef NO_glVertex3fv
-JNIEXPORT void JNICALL GL_NATIVE(glVertex3fv)
- (JNIEnv *env, jclass that, jfloatArray arg0)
-{
- jfloat *lparg0=NULL;
- GL_NATIVE_ENTER(env, that, glVertex3fv_FUNC);
-#ifdef JNI_VERSION_1_2
- if (IS_JNI_1_2) {
- if (arg0) lparg0 = (*env)->GetPrimitiveArrayCritical(env, arg0, NULL);
- } else
-#endif
- {
- if (arg0) lparg0 = (*env)->GetFloatArrayElements(env, arg0, NULL);
- }
- glVertex3fv(lparg0);
-#ifdef JNI_VERSION_1_2
- if (IS_JNI_1_2) {
- if (arg0) (*env)->ReleasePrimitiveArrayCritical(env, arg0, lparg0, 0);
- } else
-#endif
- {
- if (arg0) (*env)->ReleaseFloatArrayElements(env, arg0, lparg0, 0);
- }
- GL_NATIVE_EXIT(env, that, glVertex3fv_FUNC);
-}
-#endif
-
-#ifndef NO_glVertex3i
-JNIEXPORT void JNICALL GL_NATIVE(glVertex3i)
- (JNIEnv *env, jclass that, jint arg0, jint arg1, jint arg2)
-{
- GL_NATIVE_ENTER(env, that, glVertex3i_FUNC);
- glVertex3i(arg0, arg1, arg2);
- GL_NATIVE_EXIT(env, that, glVertex3i_FUNC);
-}
-#endif
-
-#ifndef NO_glVertex3iv
-JNIEXPORT void JNICALL GL_NATIVE(glVertex3iv)
- (JNIEnv *env, jclass that, jintArray arg0)
-{
- jint *lparg0=NULL;
- GL_NATIVE_ENTER(env, that, glVertex3iv_FUNC);
-#ifdef JNI_VERSION_1_2
- if (IS_JNI_1_2) {
- if (arg0) lparg0 = (*env)->GetPrimitiveArrayCritical(env, arg0, NULL);
- } else
-#endif
- {
- if (arg0) lparg0 = (*env)->GetIntArrayElements(env, arg0, NULL);
- }
- glVertex3iv(lparg0);
-#ifdef JNI_VERSION_1_2
- if (IS_JNI_1_2) {
- if (arg0) (*env)->ReleasePrimitiveArrayCritical(env, arg0, lparg0, 0);
- } else
-#endif
- {
- if (arg0) (*env)->ReleaseIntArrayElements(env, arg0, lparg0, 0);
- }
- GL_NATIVE_EXIT(env, that, glVertex3iv_FUNC);
-}
-#endif
-
-#ifndef NO_glVertex3s
-JNIEXPORT void JNICALL GL_NATIVE(glVertex3s)
- (JNIEnv *env, jclass that, jshort arg0, jshort arg1, jshort arg2)
-{
- GL_NATIVE_ENTER(env, that, glVertex3s_FUNC);
- glVertex3s(arg0, arg1, arg2);
- GL_NATIVE_EXIT(env, that, glVertex3s_FUNC);
-}
-#endif
-
-#ifndef NO_glVertex3sv
-JNIEXPORT void JNICALL GL_NATIVE(glVertex3sv)
- (JNIEnv *env, jclass that, jshortArray arg0)
-{
- jshort *lparg0=NULL;
- GL_NATIVE_ENTER(env, that, glVertex3sv_FUNC);
-#ifdef JNI_VERSION_1_2
- if (IS_JNI_1_2) {
- if (arg0) lparg0 = (*env)->GetPrimitiveArrayCritical(env, arg0, NULL);
- } else
-#endif
- {
- if (arg0) lparg0 = (*env)->GetShortArrayElements(env, arg0, NULL);
- }
- glVertex3sv(lparg0);
-#ifdef JNI_VERSION_1_2
- if (IS_JNI_1_2) {
- if (arg0) (*env)->ReleasePrimitiveArrayCritical(env, arg0, lparg0, 0);
- } else
-#endif
- {
- if (arg0) (*env)->ReleaseShortArrayElements(env, arg0, lparg0, 0);
- }
- GL_NATIVE_EXIT(env, that, glVertex3sv_FUNC);
-}
-#endif
-
-#ifndef NO_glVertex4d
-JNIEXPORT void JNICALL GL_NATIVE(glVertex4d)
- (JNIEnv *env, jclass that, jdouble arg0, jdouble arg1, jdouble arg2, jdouble arg3)
-{
- GL_NATIVE_ENTER(env, that, glVertex4d_FUNC);
- glVertex4d(arg0, arg1, arg2, arg3);
- GL_NATIVE_EXIT(env, that, glVertex4d_FUNC);
-}
-#endif
-
-#ifndef NO_glVertex4dv
-JNIEXPORT void JNICALL GL_NATIVE(glVertex4dv)
- (JNIEnv *env, jclass that, jdoubleArray arg0)
-{
- jdouble *lparg0=NULL;
- GL_NATIVE_ENTER(env, that, glVertex4dv_FUNC);
-#ifdef JNI_VERSION_1_2
- if (IS_JNI_1_2) {
- if (arg0) lparg0 = (*env)->GetPrimitiveArrayCritical(env, arg0, NULL);
- } else
-#endif
- {
- if (arg0) lparg0 = (*env)->GetDoubleArrayElements(env, arg0, NULL);
- }
- glVertex4dv(lparg0);
-#ifdef JNI_VERSION_1_2
- if (IS_JNI_1_2) {
- if (arg0) (*env)->ReleasePrimitiveArrayCritical(env, arg0, lparg0, 0);
- } else
-#endif
- {
- if (arg0) (*env)->ReleaseDoubleArrayElements(env, arg0, lparg0, 0);
- }
- GL_NATIVE_EXIT(env, that, glVertex4dv_FUNC);
-}
-#endif
-
-#ifndef NO_glVertex4f
-JNIEXPORT void JNICALL GL_NATIVE(glVertex4f)
- (JNIEnv *env, jclass that, jfloat arg0, jfloat arg1, jfloat arg2, jfloat arg3)
-{
- GL_NATIVE_ENTER(env, that, glVertex4f_FUNC);
- glVertex4f(arg0, arg1, arg2, arg3);
- GL_NATIVE_EXIT(env, that, glVertex4f_FUNC);
-}
-#endif
-
-#ifndef NO_glVertex4fv
-JNIEXPORT void JNICALL GL_NATIVE(glVertex4fv)
- (JNIEnv *env, jclass that, jfloatArray arg0)
-{
- jfloat *lparg0=NULL;
- GL_NATIVE_ENTER(env, that, glVertex4fv_FUNC);
-#ifdef JNI_VERSION_1_2
- if (IS_JNI_1_2) {
- if (arg0) lparg0 = (*env)->GetPrimitiveArrayCritical(env, arg0, NULL);
- } else
-#endif
- {
- if (arg0) lparg0 = (*env)->GetFloatArrayElements(env, arg0, NULL);
- }
- glVertex4fv(lparg0);
-#ifdef JNI_VERSION_1_2
- if (IS_JNI_1_2) {
- if (arg0) (*env)->ReleasePrimitiveArrayCritical(env, arg0, lparg0, 0);
- } else
-#endif
- {
- if (arg0) (*env)->ReleaseFloatArrayElements(env, arg0, lparg0, 0);
- }
- GL_NATIVE_EXIT(env, that, glVertex4fv_FUNC);
-}
-#endif
-
-#ifndef NO_glVertex4i
-JNIEXPORT void JNICALL GL_NATIVE(glVertex4i)
- (JNIEnv *env, jclass that, jint arg0, jint arg1, jint arg2, jint arg3)
-{
- GL_NATIVE_ENTER(env, that, glVertex4i_FUNC);
- glVertex4i(arg0, arg1, arg2, arg3);
- GL_NATIVE_EXIT(env, that, glVertex4i_FUNC);
-}
-#endif
-
-#ifndef NO_glVertex4iv
-JNIEXPORT void JNICALL GL_NATIVE(glVertex4iv)
- (JNIEnv *env, jclass that, jintArray arg0)
-{
- jint *lparg0=NULL;
- GL_NATIVE_ENTER(env, that, glVertex4iv_FUNC);
-#ifdef JNI_VERSION_1_2
- if (IS_JNI_1_2) {
- if (arg0) lparg0 = (*env)->GetPrimitiveArrayCritical(env, arg0, NULL);
- } else
-#endif
- {
- if (arg0) lparg0 = (*env)->GetIntArrayElements(env, arg0, NULL);
- }
- glVertex4iv(lparg0);
-#ifdef JNI_VERSION_1_2
- if (IS_JNI_1_2) {
- if (arg0) (*env)->ReleasePrimitiveArrayCritical(env, arg0, lparg0, 0);
- } else
-#endif
- {
- if (arg0) (*env)->ReleaseIntArrayElements(env, arg0, lparg0, 0);
- }
- GL_NATIVE_EXIT(env, that, glVertex4iv_FUNC);
-}
-#endif
-
-#ifndef NO_glVertex4s
-JNIEXPORT void JNICALL GL_NATIVE(glVertex4s)
- (JNIEnv *env, jclass that, jshort arg0, jshort arg1, jshort arg2, jshort arg3)
-{
- GL_NATIVE_ENTER(env, that, glVertex4s_FUNC);
- glVertex4s(arg0, arg1, arg2, arg3);
- GL_NATIVE_EXIT(env, that, glVertex4s_FUNC);
-}
-#endif
-
-#ifndef NO_glVertex4sv
-JNIEXPORT void JNICALL GL_NATIVE(glVertex4sv)
- (JNIEnv *env, jclass that, jshortArray arg0)
-{
- jshort *lparg0=NULL;
- GL_NATIVE_ENTER(env, that, glVertex4sv_FUNC);
-#ifdef JNI_VERSION_1_2
- if (IS_JNI_1_2) {
- if (arg0) lparg0 = (*env)->GetPrimitiveArrayCritical(env, arg0, NULL);
- } else
-#endif
- {
- if (arg0) lparg0 = (*env)->GetShortArrayElements(env, arg0, NULL);
- }
- glVertex4sv(lparg0);
-#ifdef JNI_VERSION_1_2
- if (IS_JNI_1_2) {
- if (arg0) (*env)->ReleasePrimitiveArrayCritical(env, arg0, lparg0, 0);
- } else
-#endif
- {
- if (arg0) (*env)->ReleaseShortArrayElements(env, arg0, lparg0, 0);
- }
- GL_NATIVE_EXIT(env, that, glVertex4sv_FUNC);
-}
-#endif
-
-#ifndef NO_glVertexPointer
-JNIEXPORT void JNICALL GL_NATIVE(glVertexPointer)
- (JNIEnv *env, jclass that, jint arg0, jint arg1, jint arg2, jintArray arg3)
-{
- jint *lparg3=NULL;
- GL_NATIVE_ENTER(env, that, glVertexPointer_FUNC);
-#ifdef JNI_VERSION_1_2
- if (IS_JNI_1_2) {
- if (arg3) lparg3 = (*env)->GetPrimitiveArrayCritical(env, arg3, NULL);
- } else
-#endif
- {
- if (arg3) lparg3 = (*env)->GetIntArrayElements(env, arg3, NULL);
- }
- glVertexPointer(arg0, arg1, arg2, lparg3);
-#ifdef JNI_VERSION_1_2
- if (IS_JNI_1_2) {
- if (arg3) (*env)->ReleasePrimitiveArrayCritical(env, arg3, lparg3, 0);
- } else
-#endif
- {
- if (arg3) (*env)->ReleaseIntArrayElements(env, arg3, lparg3, 0);
- }
- GL_NATIVE_EXIT(env, that, glVertexPointer_FUNC);
-}
-#endif
-
-#ifndef NO_glViewport
-JNIEXPORT void JNICALL GL_NATIVE(glViewport)
- (JNIEnv *env, jclass that, jint arg0, jint arg1, jint arg2, jint arg3)
-{
- GL_NATIVE_ENTER(env, that, glViewport_FUNC);
- glViewport(arg0, arg1, arg2, arg3);
- GL_NATIVE_EXIT(env, that, glViewport_FUNC);
-}
-#endif
-
diff --git a/bundles/org.eclipse.swt.opengl/common/library/gl.h b/bundles/org.eclipse.swt.opengl/common/library/gl.h
deleted file mode 100644
index c8f0a1251a..0000000000
--- a/bundles/org.eclipse.swt.opengl/common/library/gl.h
+++ /dev/null
@@ -1,10 +0,0 @@
-#ifdef __APPLE__
-#include <OpenGL/gl.h>
-#else
-#ifdef WIN32
-#include <windows.h>
-#endif
-#include <GL/gl.h>
-#endif
-
-extern int IS_JNI_1_2;
diff --git a/bundles/org.eclipse.swt.opengl/common/library/gl_stats.c b/bundles/org.eclipse.swt.opengl/common/library/gl_stats.c
deleted file mode 100644
index 257efe036a..0000000000
--- a/bundles/org.eclipse.swt.opengl/common/library/gl_stats.c
+++ /dev/null
@@ -1,366 +0,0 @@
-#include "swt.h"
-#include "gl_stats.h"
-
-#ifdef NATIVE_STATS
-
-int GL_nativeFunctionCount = 335;
-int GL_nativeFunctionCallCount[335];
-char * GL_nativeFunctionNames[] = {
- "glAccum",
- "glAlphaFunc",
- "glAreTexturesResident",
- "glArrayElement",
- "glBegin",
- "glBindTexture",
- "glBitmap",
- "glBlendFunc",
- "glCallList",
- "glCallLists__II_3B",
- "glCallLists__II_3C",
- "glCallLists__II_3I",
- "glClear",
- "glClearAccum",
- "glClearColor",
- "glClearDepth",
- "glClearIndex",
- "glClearStencil",
- "glClipPlane",
- "glColor3b",
- "glColor3bv",
- "glColor3d",
- "glColor3dv",
- "glColor3f",
- "glColor3fv",
- "glColor3i",
- "glColor3iv",
- "glColor3s",
- "glColor3sv",
- "glColor3ub",
- "glColor3ubv",
- "glColor3ui",
- "glColor3uiv",
- "glColor3us",
- "glColor3usv",
- "glColor4b",
- "glColor4bv",
- "glColor4d",
- "glColor4dv",
- "glColor4f",
- "glColor4fv",
- "glColor4i",
- "glColor4iv",
- "glColor4s",
- "glColor4ub",
- "glColor4ubv",
- "glColor4ui",
- "glColor4uiv",
- "glColor4us",
- "glColor4usv",
- "glColorMask",
- "glColorMaterial",
- "glColorPointer",
- "glCopyPixels",
- "glCopyTexImage1D",
- "glCopyTexImage2D",
- "glCopyTexSubImage1D",
- "glCopyTexSubImage2D",
- "glCullFace",
- "glDeleteLists",
- "glDeleteTextures",
- "glDepthFunc",
- "glDepthMask",
- "glDepthRange",
- "glDisable",
- "glDisableClientState",
- "glDrawArrays",
- "glDrawBuffer",
- "glDrawElements",
- "glDrawPixels",
- "glEdgeFlag",
- "glEdgeFlagPointer",
- "glEdgeFlagv",
- "glEnable",
- "glEnableClientState",
- "glEnd",
- "glEndList",
- "glEvalCoord1d",
- "glEvalCoord1dv",
- "glEvalCoord1f",
- "glEvalCoord1fv",
- "glEvalCoord2d",
- "glEvalCoord2dv",
- "glEvalCoord2f",
- "glEvalCoord2fv",
- "glEvalMesh1",
- "glEvalMesh2",
- "glEvalPoint1",
- "glEvalPoint2",
- "glFeedbackBuffer",
- "glFinish",
- "glFlush",
- "glFogf",
- "glFogfv",
- "glFogi",
- "glFogiv",
- "glFrontFace",
- "glFrustum",
- "glGenLists",
- "glGenTextures",
- "glGetBooleanv",
- "glGetClipPlane",
- "glGetDoublev",
- "glGetError",
- "glGetFloatv",
- "glGetIntegerv",
- "glGetLightfv",
- "glGetLightiv",
- "glGetMapdv",
- "glGetMapfv",
- "glGetMapiv",
- "glGetMaterialfv",
- "glGetMaterialiv",
- "glGetPixelMapfv",
- "glGetPixelMapuiv",
- "glGetPixelMapusv",
- "glGetPointerv",
- "glGetPolygonStipple",
- "glGetString",
- "glGetTexEnvfv",
- "glGetTexEnviv",
- "glGetTexGendv",
- "glGetTexGenfv",
- "glGetTexGeniv",
- "glGetTexImage",
- "glGetTexLevelParameterfv",
- "glGetTexLevelParameteriv",
- "glGetTexParameterfv",
- "glGetTexParameteriv",
- "glHint",
- "glIndexMask",
- "glIndexPointer",
- "glIndexd",
- "glIndexdv",
- "glIndexf",
- "glIndexfv",
- "glIndexi",
- "glIndexiv",
- "glIndexs",
- "glIndexsv",
- "glInitNames",
- "glInterleavedArrays",
- "glIsEnabled",
- "glIsList",
- "glIsTexture",
- "glLightModelf",
- "glLightModelfv",
- "glLightModeli",
- "glLightModeliv",
- "glLightf",
- "glLightfv",
- "glLighti",
- "glLightiv",
- "glLineStipple",
- "glLineWidth",
- "glListBase",
- "glLoadIdentity",
- "glLoadMatrixd",
- "glLoadMatrixf",
- "glLoadName",
- "glLogicOp",
- "glMap1d",
- "glMap1f",
- "glMap2d",
- "glMap2f",
- "glMapGrid1d",
- "glMapGrid1f",
- "glMapGrid2d",
- "glMapGrid2f",
- "glMaterialf",
- "glMaterialfv",
- "glMateriali",
- "glMaterialiv",
- "glMatrixMode",
- "glMultMatrixd",
- "glMultMatrixf",
- "glNewList",
- "glNormal3b",
- "glNormal3bv",
- "glNormal3d",
- "glNormal3dv",
- "glNormal3f",
- "glNormal3fv",
- "glNormal3i",
- "glNormal3iv",
- "glNormal3s",
- "glNormal3sv",
- "glNormalPointer",
- "glOrtho",
- "glPassThrough",
- "glPixelMapfv",
- "glPixelMapuiv",
- "glPixelMapusv",
- "glPixelStoref",
- "glPixelStorei",
- "glPixelTransferf",
- "glPixelTransferi",
- "glPixelZoom",
- "glPointSize",
- "glPolygonMode",
- "glPolygonOffset",
- "glPolygonStipple",
- "glPopAttrib",
- "glPopClientAttrib",
- "glPopMatrix",
- "glPopName",
- "glPrioritizeTextures",
- "glPushAttrib",
- "glPushClientAttrib",
- "glPushMatrix",
- "glPushName",
- "glRasterPos2d",
- "glRasterPos2dv",
- "glRasterPos2f",
- "glRasterPos2fv",
- "glRasterPos2i",
- "glRasterPos2iv",
- "glRasterPos2s",
- "glRasterPos2sv",
- "glRasterPos3d",
- "glRasterPos3dv",
- "glRasterPos3f",
- "glRasterPos3fv",
- "glRasterPos3i",
- "glRasterPos3iv",
- "glRasterPos3s",
- "glRasterPos3sv",
- "glRasterPos4d",
- "glRasterPos4dv",
- "glRasterPos4f",
- "glRasterPos4fv",
- "glRasterPos4i",
- "glRasterPos4iv",
- "glRasterPos4s",
- "glRasterPos4sv",
- "glReadBuffer",
- "glReadPixels",
- "glRectd",
- "glRectdv",
- "glRectf",
- "glRectfv",
- "glRecti",
- "glRectiv",
- "glRects",
- "glRectsv",
- "glRenderMode",
- "glRotated",
- "glRotatef",
- "glScaled",
- "glScalef",
- "glScissor",
- "glSelectBuffer",
- "glShadeModel",
- "glStencilFunc",
- "glStencilMask",
- "glStencilOp",
- "glTexCoord1d",
- "glTexCoord1dv",
- "glTexCoord1f",
- "glTexCoord1fv",
- "glTexCoord1i",
- "glTexCoord1iv",
- "glTexCoord1s",
- "glTexCoord1sv",
- "glTexCoord2d",
- "glTexCoord2dv",
- "glTexCoord2f",
- "glTexCoord2fv",
- "glTexCoord2i",
- "glTexCoord2iv",
- "glTexCoord2s",
- "glTexCoord2sv",
- "glTexCoord3d",
- "glTexCoord3dv",
- "glTexCoord3f",
- "glTexCoord3fv",
- "glTexCoord3i",
- "glTexCoord3iv",
- "glTexCoord3s",
- "glTexCoord3sv",
- "glTexCoord4d",
- "glTexCoord4dv",
- "glTexCoord4f",
- "glTexCoord4fv",
- "glTexCoord4i",
- "glTexCoord4iv",
- "glTexCoord4s",
- "glTexCoord4sv",
- "glTexCoordPointer",
- "glTexEnvf",
- "glTexEnvfv",
- "glTexEnvi",
- "glTexEnviv",
- "glTexGend",
- "glTexGendv",
- "glTexGenf",
- "glTexGenfv",
- "glTexGeni",
- "glTexGeniv",
- "glTexImage1D",
- "glTexImage2D",
- "glTexParameterf",
- "glTexParameterfv",
- "glTexParameteri",
- "glTexParameteriv",
- "glTexSubImage1D",
- "glTexSubImage2D",
- "glTranslated",
- "glTranslatef",
- "glVertex2d",
- "glVertex2dv",
- "glVertex2f",
- "glVertex2fv",
- "glVertex2i",
- "glVertex2iv",
- "glVertex2s",
- "glVertex2sv",
- "glVertex3d",
- "glVertex3dv",
- "glVertex3f",
- "glVertex3fv",
- "glVertex3i",
- "glVertex3iv",
- "glVertex3s",
- "glVertex3sv",
- "glVertex4d",
- "glVertex4dv",
- "glVertex4f",
- "glVertex4fv",
- "glVertex4i",
- "glVertex4iv",
- "glVertex4s",
- "glVertex4sv",
- "glVertexPointer",
- "glViewport",
-};
-
-#define STATS_NATIVE(func) Java_org_eclipse_swt_tools_internal_NativeStats_##func
-
-JNIEXPORT jint JNICALL STATS_NATIVE(GL_1GetFunctionCount)
- (JNIEnv *env, jclass that)
-{
- return GL_nativeFunctionCount;
-}
-
-JNIEXPORT jstring JNICALL STATS_NATIVE(GL_1GetFunctionName)
- (JNIEnv *env, jclass that, jint index)
-{
- return (*env)->NewStringUTF(env, GL_nativeFunctionNames[index]);
-}
-
-JNIEXPORT jint JNICALL STATS_NATIVE(GL_1GetFunctionCallCount)
- (JNIEnv *env, jclass that, jint index)
-{
- return GL_nativeFunctionCallCount[index];
-}
-
-#endif
diff --git a/bundles/org.eclipse.swt.opengl/common/library/gl_stats.h b/bundles/org.eclipse.swt.opengl/common/library/gl_stats.h
deleted file mode 100644
index 6e1feee92c..0000000000
--- a/bundles/org.eclipse.swt.opengl/common/library/gl_stats.h
+++ /dev/null
@@ -1,348 +0,0 @@
-#ifdef NATIVE_STATS
-extern int GL_nativeFunctionCount;
-extern int GL_nativeFunctionCallCount[];
-extern char* GL_nativeFunctionNames[];
-#define GL_NATIVE_ENTER(env, that, func) GL_nativeFunctionCallCount[func]++;
-#define GL_NATIVE_EXIT(env, that, func)
-#else
-#define GL_NATIVE_ENTER(env, that, func)
-#define GL_NATIVE_EXIT(env, that, func)
-#endif
-
-typedef enum {
- glAccum_FUNC,
- glAlphaFunc_FUNC,
- glAreTexturesResident_FUNC,
- glArrayElement_FUNC,
- glBegin_FUNC,
- glBindTexture_FUNC,
- glBitmap_FUNC,
- glBlendFunc_FUNC,
- glCallList_FUNC,
- glCallLists__II_3B_FUNC,
- glCallLists__II_3C_FUNC,
- glCallLists__II_3I_FUNC,
- glClear_FUNC,
- glClearAccum_FUNC,
- glClearColor_FUNC,
- glClearDepth_FUNC,
- glClearIndex_FUNC,
- glClearStencil_FUNC,
- glClipPlane_FUNC,
- glColor3b_FUNC,
- glColor3bv_FUNC,
- glColor3d_FUNC,
- glColor3dv_FUNC,
- glColor3f_FUNC,
- glColor3fv_FUNC,
- glColor3i_FUNC,
- glColor3iv_FUNC,
- glColor3s_FUNC,
- glColor3sv_FUNC,
- glColor3ub_FUNC,
- glColor3ubv_FUNC,
- glColor3ui_FUNC,
- glColor3uiv_FUNC,
- glColor3us_FUNC,
- glColor3usv_FUNC,
- glColor4b_FUNC,
- glColor4bv_FUNC,
- glColor4d_FUNC,
- glColor4dv_FUNC,
- glColor4f_FUNC,
- glColor4fv_FUNC,
- glColor4i_FUNC,
- glColor4iv_FUNC,
- glColor4s_FUNC,
- glColor4ub_FUNC,
- glColor4ubv_FUNC,
- glColor4ui_FUNC,
- glColor4uiv_FUNC,
- glColor4us_FUNC,
- glColor4usv_FUNC,
- glColorMask_FUNC,
- glColorMaterial_FUNC,
- glColorPointer_FUNC,
- glCopyPixels_FUNC,
- glCopyTexImage1D_FUNC,
- glCopyTexImage2D_FUNC,
- glCopyTexSubImage1D_FUNC,
- glCopyTexSubImage2D_FUNC,
- glCullFace_FUNC,
- glDeleteLists_FUNC,
- glDeleteTextures_FUNC,
- glDepthFunc_FUNC,
- glDepthMask_FUNC,
- glDepthRange_FUNC,
- glDisable_FUNC,
- glDisableClientState_FUNC,
- glDrawArrays_FUNC,
- glDrawBuffer_FUNC,
- glDrawElements_FUNC,
- glDrawPixels_FUNC,
- glEdgeFlag_FUNC,
- glEdgeFlagPointer_FUNC,
- glEdgeFlagv_FUNC,
- glEnable_FUNC,
- glEnableClientState_FUNC,
- glEnd_FUNC,
- glEndList_FUNC,
- glEvalCoord1d_FUNC,
- glEvalCoord1dv_FUNC,
- glEvalCoord1f_FUNC,
- glEvalCoord1fv_FUNC,
- glEvalCoord2d_FUNC,
- glEvalCoord2dv_FUNC,
- glEvalCoord2f_FUNC,
- glEvalCoord2fv_FUNC,
- glEvalMesh1_FUNC,
- glEvalMesh2_FUNC,
- glEvalPoint1_FUNC,
- glEvalPoint2_FUNC,
- glFeedbackBuffer_FUNC,
- glFinish_FUNC,
- glFlush_FUNC,
- glFogf_FUNC,
- glFogfv_FUNC,
- glFogi_FUNC,
- glFogiv_FUNC,
- glFrontFace_FUNC,
- glFrustum_FUNC,
- glGenLists_FUNC,
- glGenTextures_FUNC,
- glGetBooleanv_FUNC,
- glGetClipPlane_FUNC,
- glGetDoublev_FUNC,
- glGetError_FUNC,
- glGetFloatv_FUNC,
- glGetIntegerv_FUNC,
- glGetLightfv_FUNC,
- glGetLightiv_FUNC,
- glGetMapdv_FUNC,
- glGetMapfv_FUNC,
- glGetMapiv_FUNC,
- glGetMaterialfv_FUNC,
- glGetMaterialiv_FUNC,
- glGetPixelMapfv_FUNC,
- glGetPixelMapuiv_FUNC,
- glGetPixelMapusv_FUNC,
- glGetPointerv_FUNC,
- glGetPolygonStipple_FUNC,
- glGetString_FUNC,
- glGetTexEnvfv_FUNC,
- glGetTexEnviv_FUNC,
- glGetTexGendv_FUNC,
- glGetTexGenfv_FUNC,
- glGetTexGeniv_FUNC,
- glGetTexImage_FUNC,
- glGetTexLevelParameterfv_FUNC,
- glGetTexLevelParameteriv_FUNC,
- glGetTexParameterfv_FUNC,
- glGetTexParameteriv_FUNC,
- glHint_FUNC,
- glIndexMask_FUNC,
- glIndexPointer_FUNC,
- glIndexd_FUNC,
- glIndexdv_FUNC,
- glIndexf_FUNC,
- glIndexfv_FUNC,
- glIndexi_FUNC,
- glIndexiv_FUNC,
- glIndexs_FUNC,
- glIndexsv_FUNC,
- glInitNames_FUNC,
- glInterleavedArrays_FUNC,
- glIsEnabled_FUNC,
- glIsList_FUNC,
- glIsTexture_FUNC,
- glLightModelf_FUNC,
- glLightModelfv_FUNC,
- glLightModeli_FUNC,
- glLightModeliv_FUNC,
- glLightf_FUNC,
- glLightfv_FUNC,
- glLighti_FUNC,
- glLightiv_FUNC,
- glLineStipple_FUNC,
- glLineWidth_FUNC,
- glListBase_FUNC,
- glLoadIdentity_FUNC,
- glLoadMatrixd_FUNC,
- glLoadMatrixf_FUNC,
- glLoadName_FUNC,
- glLogicOp_FUNC,
- glMap1d_FUNC,
- glMap1f_FUNC,
- glMap2d_FUNC,
- glMap2f_FUNC,
- glMapGrid1d_FUNC,
- glMapGrid1f_FUNC,
- glMapGrid2d_FUNC,
- glMapGrid2f_FUNC,
- glMaterialf_FUNC,
- glMaterialfv_FUNC,
- glMateriali_FUNC,
- glMaterialiv_FUNC,
- glMatrixMode_FUNC,
- glMultMatrixd_FUNC,
- glMultMatrixf_FUNC,
- glNewList_FUNC,
- glNormal3b_FUNC,
- glNormal3bv_FUNC,
- glNormal3d_FUNC,
- glNormal3dv_FUNC,
- glNormal3f_FUNC,
- glNormal3fv_FUNC,
- glNormal3i_FUNC,
- glNormal3iv_FUNC,
- glNormal3s_FUNC,
- glNormal3sv_FUNC,
- glNormalPointer_FUNC,
- glOrtho_FUNC,
- glPassThrough_FUNC,
- glPixelMapfv_FUNC,
- glPixelMapuiv_FUNC,
- glPixelMapusv_FUNC,
- glPixelStoref_FUNC,
- glPixelStorei_FUNC,
- glPixelTransferf_FUNC,
- glPixelTransferi_FUNC,
- glPixelZoom_FUNC,
- glPointSize_FUNC,
- glPolygonMode_FUNC,
- glPolygonOffset_FUNC,
- glPolygonStipple_FUNC,
- glPopAttrib_FUNC,
- glPopClientAttrib_FUNC,
- glPopMatrix_FUNC,
- glPopName_FUNC,
- glPrioritizeTextures_FUNC,
- glPushAttrib_FUNC,
- glPushClientAttrib_FUNC,
- glPushMatrix_FUNC,
- glPushName_FUNC,
- glRasterPos2d_FUNC,
- glRasterPos2dv_FUNC,
- glRasterPos2f_FUNC,
- glRasterPos2fv_FUNC,
- glRasterPos2i_FUNC,
- glRasterPos2iv_FUNC,
- glRasterPos2s_FUNC,
- glRasterPos2sv_FUNC,
- glRasterPos3d_FUNC,
- glRasterPos3dv_FUNC,
- glRasterPos3f_FUNC,
- glRasterPos3fv_FUNC,
- glRasterPos3i_FUNC,
- glRasterPos3iv_FUNC,
- glRasterPos3s_FUNC,
- glRasterPos3sv_FUNC,
- glRasterPos4d_FUNC,
- glRasterPos4dv_FUNC,
- glRasterPos4f_FUNC,
- glRasterPos4fv_FUNC,
- glRasterPos4i_FUNC,
- glRasterPos4iv_FUNC,
- glRasterPos4s_FUNC,
- glRasterPos4sv_FUNC,
- glReadBuffer_FUNC,
- glReadPixels_FUNC,
- glRectd_FUNC,
- glRectdv_FUNC,
- glRectf_FUNC,
- glRectfv_FUNC,
- glRecti_FUNC,
- glRectiv_FUNC,
- glRects_FUNC,
- glRectsv_FUNC,
- glRenderMode_FUNC,
- glRotated_FUNC,
- glRotatef_FUNC,
- glScaled_FUNC,
- glScalef_FUNC,
- glScissor_FUNC,
- glSelectBuffer_FUNC,
- glShadeModel_FUNC,
- glStencilFunc_FUNC,
- glStencilMask_FUNC,
- glStencilOp_FUNC,
- glTexCoord1d_FUNC,
- glTexCoord1dv_FUNC,
- glTexCoord1f_FUNC,
- glTexCoord1fv_FUNC,
- glTexCoord1i_FUNC,
- glTexCoord1iv_FUNC,
- glTexCoord1s_FUNC,
- glTexCoord1sv_FUNC,
- glTexCoord2d_FUNC,
- glTexCoord2dv_FUNC,
- glTexCoord2f_FUNC,
- glTexCoord2fv_FUNC,
- glTexCoord2i_FUNC,
- glTexCoord2iv_FUNC,
- glTexCoord2s_FUNC,
- glTexCoord2sv_FUNC,
- glTexCoord3d_FUNC,
- glTexCoord3dv_FUNC,
- glTexCoord3f_FUNC,
- glTexCoord3fv_FUNC,
- glTexCoord3i_FUNC,
- glTexCoord3iv_FUNC,
- glTexCoord3s_FUNC,
- glTexCoord3sv_FUNC,
- glTexCoord4d_FUNC,
- glTexCoord4dv_FUNC,
- glTexCoord4f_FUNC,
- glTexCoord4fv_FUNC,
- glTexCoord4i_FUNC,
- glTexCoord4iv_FUNC,
- glTexCoord4s_FUNC,
- glTexCoord4sv_FUNC,
- glTexCoordPointer_FUNC,
- glTexEnvf_FUNC,
- glTexEnvfv_FUNC,
- glTexEnvi_FUNC,
- glTexEnviv_FUNC,
- glTexGend_FUNC,
- glTexGendv_FUNC,
- glTexGenf_FUNC,
- glTexGenfv_FUNC,
- glTexGeni_FUNC,
- glTexGeniv_FUNC,
- glTexImage1D_FUNC,
- glTexImage2D_FUNC,
- glTexParameterf_FUNC,
- glTexParameterfv_FUNC,
- glTexParameteri_FUNC,
- glTexParameteriv_FUNC,
- glTexSubImage1D_FUNC,
- glTexSubImage2D_FUNC,
- glTranslated_FUNC,
- glTranslatef_FUNC,
- glVertex2d_FUNC,
- glVertex2dv_FUNC,
- glVertex2f_FUNC,
- glVertex2fv_FUNC,
- glVertex2i_FUNC,
- glVertex2iv_FUNC,
- glVertex2s_FUNC,
- glVertex2sv_FUNC,
- glVertex3d_FUNC,
- glVertex3dv_FUNC,
- glVertex3f_FUNC,
- glVertex3fv_FUNC,
- glVertex3i_FUNC,
- glVertex3iv_FUNC,
- glVertex3s_FUNC,
- glVertex3sv_FUNC,
- glVertex4d_FUNC,
- glVertex4dv_FUNC,
- glVertex4f_FUNC,
- glVertex4fv_FUNC,
- glVertex4i_FUNC,
- glVertex4iv_FUNC,
- glVertex4s_FUNC,
- glVertex4sv_FUNC,
- glVertexPointer_FUNC,
- glViewport_FUNC,
-} GL_FUNCS;
diff --git a/bundles/org.eclipse.swt.opengl/common/library/gl_structs.c b/bundles/org.eclipse.swt.opengl/common/library/gl_structs.c
deleted file mode 100644
index 92490dfd40..0000000000
--- a/bundles/org.eclipse.swt.opengl/common/library/gl_structs.c
+++ /dev/null
@@ -1,3 +0,0 @@
-#include "swt.h"
-#include "gl_structs.h"
-
diff --git a/bundles/org.eclipse.swt.opengl/common/library/gl_structs.h b/bundles/org.eclipse.swt.opengl/common/library/gl_structs.h
deleted file mode 100644
index 8ae9679e68..0000000000
--- a/bundles/org.eclipse.swt.opengl/common/library/gl_structs.h
+++ /dev/null
@@ -1,2 +0,0 @@
-#include "gl.h"
-
diff --git a/bundles/org.eclipse.swt.opengl/common/library/glu.c b/bundles/org.eclipse.swt.opengl/common/library/glu.c
deleted file mode 100644
index 5ef7075bce..0000000000
--- a/bundles/org.eclipse.swt.opengl/common/library/glu.c
+++ /dev/null
@@ -1,798 +0,0 @@
-#include "swt.h"
-#include "glu_structs.h"
-#include "glu_stats.h"
-
-#define GLU_NATIVE(func) Java_org_eclipse_opengl_GLU_##func
-
-#ifndef NO_gluBeginCurve
-JNIEXPORT void JNICALL GLU_NATIVE(gluBeginCurve)
- (JNIEnv *env, jclass that, jint arg0)
-{
- GLU_NATIVE_ENTER(env, that, gluBeginCurve_FUNC);
- gluBeginCurve((GLUnurbs *)arg0);
- GLU_NATIVE_EXIT(env, that, gluBeginCurve_FUNC);
-}
-#endif
-
-#ifndef NO_gluBeginPolygon
-JNIEXPORT void JNICALL GLU_NATIVE(gluBeginPolygon)
- (JNIEnv *env, jclass that, jint arg0)
-{
- GLU_NATIVE_ENTER(env, that, gluBeginPolygon_FUNC);
- gluBeginPolygon((GLUtesselator*)arg0);
- GLU_NATIVE_EXIT(env, that, gluBeginPolygon_FUNC);
-}
-#endif
-
-#ifndef NO_gluBeginSurface
-JNIEXPORT void JNICALL GLU_NATIVE(gluBeginSurface)
- (JNIEnv *env, jclass that, jint arg0)
-{
- GLU_NATIVE_ENTER(env, that, gluBeginSurface_FUNC);
- gluBeginSurface((GLUnurbs *)arg0);
- GLU_NATIVE_EXIT(env, that, gluBeginSurface_FUNC);
-}
-#endif
-
-#ifndef NO_gluBeginTrim
-JNIEXPORT void JNICALL GLU_NATIVE(gluBeginTrim)
- (JNIEnv *env, jclass that, jint arg0)
-{
- GLU_NATIVE_ENTER(env, that, gluBeginTrim_FUNC);
- gluBeginTrim((GLUnurbs *)arg0);
- GLU_NATIVE_EXIT(env, that, gluBeginTrim_FUNC);
-}
-#endif
-
-#ifndef NO_gluBuild1DMipmaps
-JNIEXPORT jint JNICALL GLU_NATIVE(gluBuild1DMipmaps)
- (JNIEnv *env, jclass that, jint arg0, jint arg1, jint arg2, jint arg3, jint arg4, jint arg5)
-{
- jint rc;
- GLU_NATIVE_ENTER(env, that, gluBuild1DMipmaps_FUNC);
- rc = (jint)gluBuild1DMipmaps(arg0, arg1, arg2, arg3, arg4, (const void *)arg5);
- GLU_NATIVE_EXIT(env, that, gluBuild1DMipmaps_FUNC);
- return rc;
-}
-#endif
-
-#ifndef NO_gluBuild2DMipmaps
-JNIEXPORT jint JNICALL GLU_NATIVE(gluBuild2DMipmaps)
- (JNIEnv *env, jclass that, jint arg0, jint arg1, jint arg2, jint arg3, jint arg4, jint arg5, jbyteArray arg6)
-{
- jbyte *lparg6=NULL;
- jint rc;
- GLU_NATIVE_ENTER(env, that, gluBuild2DMipmaps_FUNC);
-#ifdef JNI_VERSION_1_2
- if (IS_JNI_1_2) {
- if (arg6) lparg6 = (*env)->GetPrimitiveArrayCritical(env, arg6, NULL);
- } else
-#endif
- {
- if (arg6) lparg6 = (*env)->GetByteArrayElements(env, arg6, NULL);
- }
- rc = (jint)gluBuild2DMipmaps(arg0, arg1, arg2, arg3, arg4, arg5, lparg6);
-#ifdef JNI_VERSION_1_2
- if (IS_JNI_1_2) {
- if (arg6) (*env)->ReleasePrimitiveArrayCritical(env, arg6, lparg6, 0);
- } else
-#endif
- {
- if (arg6) (*env)->ReleaseByteArrayElements(env, arg6, lparg6, 0);
- }
- GLU_NATIVE_EXIT(env, that, gluBuild2DMipmaps_FUNC);
- return rc;
-}
-#endif
-
-#ifndef NO_gluCylinder
-JNIEXPORT void JNICALL GLU_NATIVE(gluCylinder)
- (JNIEnv *env, jclass that, jint arg0, jdouble arg1, jdouble arg2, jdouble arg3, jint arg4, jint arg5)
-{
- GLU_NATIVE_ENTER(env, that, gluCylinder_FUNC);
- gluCylinder((GLUquadric *)arg0, arg1, arg2, arg3, arg4, arg5);
- GLU_NATIVE_EXIT(env, that, gluCylinder_FUNC);
-}
-#endif
-
-#ifndef NO_gluDeleteNurbsRenderer
-JNIEXPORT void JNICALL GLU_NATIVE(gluDeleteNurbsRenderer)
- (JNIEnv *env, jclass that, jint arg0)
-{
- GLU_NATIVE_ENTER(env, that, gluDeleteNurbsRenderer_FUNC);
- gluDeleteNurbsRenderer((GLUnurbs *)arg0);
- GLU_NATIVE_EXIT(env, that, gluDeleteNurbsRenderer_FUNC);
-}
-#endif
-
-#ifndef NO_gluDeleteQuadric
-JNIEXPORT void JNICALL GLU_NATIVE(gluDeleteQuadric)
- (JNIEnv *env, jclass that, jint arg0)
-{
- GLU_NATIVE_ENTER(env, that, gluDeleteQuadric_FUNC);
- gluDeleteQuadric((GLUquadric *)arg0);
- GLU_NATIVE_EXIT(env, that, gluDeleteQuadric_FUNC);
-}
-#endif
-
-#ifndef NO_gluDeleteTess
-JNIEXPORT void JNICALL GLU_NATIVE(gluDeleteTess)
- (JNIEnv *env, jclass that, jint arg0)
-{
- GLU_NATIVE_ENTER(env, that, gluDeleteTess_FUNC);
- gluDeleteTess((GLUtesselator *)arg0);
- GLU_NATIVE_EXIT(env, that, gluDeleteTess_FUNC);
-}
-#endif
-
-#ifndef NO_gluDisk
-JNIEXPORT void JNICALL GLU_NATIVE(gluDisk)
- (JNIEnv *env, jclass that, jint arg0, jdouble arg1, jdouble arg2, jint arg3, jint arg4)
-{
- GLU_NATIVE_ENTER(env, that, gluDisk_FUNC);
- gluDisk((GLUquadricObj *)arg0, arg1, arg2, arg3, arg4);
- GLU_NATIVE_EXIT(env, that, gluDisk_FUNC);
-}
-#endif
-
-#ifndef NO_gluEndCurve
-JNIEXPORT void JNICALL GLU_NATIVE(gluEndCurve)
- (JNIEnv *env, jclass that, jint arg0)
-{
- GLU_NATIVE_ENTER(env, that, gluEndCurve_FUNC);
- gluEndCurve((GLUnurbsObj *)arg0);
- GLU_NATIVE_EXIT(env, that, gluEndCurve_FUNC);
-}
-#endif
-
-#ifndef NO_gluEndPolygon
-JNIEXPORT void JNICALL GLU_NATIVE(gluEndPolygon)
- (JNIEnv *env, jclass that, jint arg0)
-{
- GLU_NATIVE_ENTER(env, that, gluEndPolygon_FUNC);
- gluEndPolygon((GLUtriangulatorObj *)arg0);
- GLU_NATIVE_EXIT(env, that, gluEndPolygon_FUNC);
-}
-#endif
-
-#ifndef NO_gluEndSurface
-JNIEXPORT void JNICALL GLU_NATIVE(gluEndSurface)
- (JNIEnv *env, jclass that, jint arg0)
-{
- GLU_NATIVE_ENTER(env, that, gluEndSurface_FUNC);
- gluEndSurface((GLUnurbsObj *)arg0);
- GLU_NATIVE_EXIT(env, that, gluEndSurface_FUNC);
-}
-#endif
-
-#ifndef NO_gluEndTrim
-JNIEXPORT void JNICALL GLU_NATIVE(gluEndTrim)
- (JNIEnv *env, jclass that, jint arg0)
-{
- GLU_NATIVE_ENTER(env, that, gluEndTrim_FUNC);
- gluEndTrim((GLUnurbsObj *)arg0);
- GLU_NATIVE_EXIT(env, that, gluEndTrim_FUNC);
-}
-#endif
-
-#ifndef NO_gluErrorString
-JNIEXPORT jint JNICALL GLU_NATIVE(gluErrorString)
- (JNIEnv *env, jclass that, jint arg0)
-{
- jint rc;
- GLU_NATIVE_ENTER(env, that, gluErrorString_FUNC);
- rc = (jint)gluErrorString(arg0);
- GLU_NATIVE_EXIT(env, that, gluErrorString_FUNC);
- return rc;
-}
-#endif
-
-#ifndef NO_gluGetNurbsProperty
-JNIEXPORT void JNICALL GLU_NATIVE(gluGetNurbsProperty)
- (JNIEnv *env, jclass that, jint arg0, jint arg1, jfloatArray arg2)
-{
- jfloat *lparg2=NULL;
- GLU_NATIVE_ENTER(env, that, gluGetNurbsProperty_FUNC);
-#ifdef JNI_VERSION_1_2
- if (IS_JNI_1_2) {
- if (arg2) lparg2 = (*env)->GetPrimitiveArrayCritical(env, arg2, NULL);
- } else
-#endif
- {
- if (arg2) lparg2 = (*env)->GetFloatArrayElements(env, arg2, NULL);
- }
- gluGetNurbsProperty((GLUnurbs *)arg0, arg1, lparg2);
-#ifdef JNI_VERSION_1_2
- if (IS_JNI_1_2) {
- if (arg2) (*env)->ReleasePrimitiveArrayCritical(env, arg2, lparg2, 0);
- } else
-#endif
- {
- if (arg2) (*env)->ReleaseFloatArrayElements(env, arg2, lparg2, 0);
- }
- GLU_NATIVE_EXIT(env, that, gluGetNurbsProperty_FUNC);
-}
-#endif
-
-#ifndef NO_gluGetString
-JNIEXPORT jint JNICALL GLU_NATIVE(gluGetString)
- (JNIEnv *env, jclass that, jint arg0)
-{
- jint rc;
- GLU_NATIVE_ENTER(env, that, gluGetString_FUNC);
- rc = (jint)gluGetString(arg0);
- GLU_NATIVE_EXIT(env, that, gluGetString_FUNC);
- return rc;
-}
-#endif
-
-#ifndef NO_gluGetTessProperty
-JNIEXPORT void JNICALL GLU_NATIVE(gluGetTessProperty)
- (JNIEnv *env, jclass that, jint arg0, jint arg1, jdoubleArray arg2)
-{
- jdouble *lparg2=NULL;
- GLU_NATIVE_ENTER(env, that, gluGetTessProperty_FUNC);
-#ifdef JNI_VERSION_1_2
- if (IS_JNI_1_2) {
- if (arg2) lparg2 = (*env)->GetPrimitiveArrayCritical(env, arg2, NULL);
- } else
-#endif
- {
- if (arg2) lparg2 = (*env)->GetDoubleArrayElements(env, arg2, NULL);
- }
- gluGetTessProperty((GLUtesselator *)arg0, arg1, lparg2);
-#ifdef JNI_VERSION_1_2
- if (IS_JNI_1_2) {
- if (arg2) (*env)->ReleasePrimitiveArrayCritical(env, arg2, lparg2, 0);
- } else
-#endif
- {
- if (arg2) (*env)->ReleaseDoubleArrayElements(env, arg2, lparg2, 0);
- }
- GLU_NATIVE_EXIT(env, that, gluGetTessProperty_FUNC);
-}
-#endif
-
-#ifndef NO_gluLoadSamplingMatrices
-JNIEXPORT void JNICALL GLU_NATIVE(gluLoadSamplingMatrices)
- (JNIEnv *env, jclass that, jint arg0, jfloatArray arg1, jfloatArray arg2, jintArray arg3)
-{
- jfloat *lparg1=NULL;
- jfloat *lparg2=NULL;
- jint *lparg3=NULL;
- GLU_NATIVE_ENTER(env, that, gluLoadSamplingMatrices_FUNC);
-#ifdef JNI_VERSION_1_2
- if (IS_JNI_1_2) {
- if (arg1) lparg1 = (*env)->GetPrimitiveArrayCritical(env, arg1, NULL);
- if (arg2) lparg2 = (*env)->GetPrimitiveArrayCritical(env, arg2, NULL);
- if (arg3) lparg3 = (*env)->GetPrimitiveArrayCritical(env, arg3, NULL);
- } else
-#endif
- {
- if (arg1) lparg1 = (*env)->GetFloatArrayElements(env, arg1, NULL);
- if (arg2) lparg2 = (*env)->GetFloatArrayElements(env, arg2, NULL);
- if (arg3) lparg3 = (*env)->GetIntArrayElements(env, arg3, NULL);
- }
- gluLoadSamplingMatrices((GLUnurbs *)arg0, lparg1, lparg2, lparg3);
-#ifdef JNI_VERSION_1_2
- if (IS_JNI_1_2) {
- if (arg3) (*env)->ReleasePrimitiveArrayCritical(env, arg3, lparg3, 0);
- if (arg2) (*env)->ReleasePrimitiveArrayCritical(env, arg2, lparg2, 0);
- if (arg1) (*env)->ReleasePrimitiveArrayCritical(env, arg1, lparg1, 0);
- } else
-#endif
- {
- if (arg3) (*env)->ReleaseIntArrayElements(env, arg3, lparg3, 0);
- if (arg2) (*env)->ReleaseFloatArrayElements(env, arg2, lparg2, 0);
- if (arg1) (*env)->ReleaseFloatArrayElements(env, arg1, lparg1, 0);
- }
- GLU_NATIVE_EXIT(env, that, gluLoadSamplingMatrices_FUNC);
-}
-#endif
-
-#ifndef NO_gluLookAt
-JNIEXPORT void JNICALL GLU_NATIVE(gluLookAt)
- (JNIEnv *env, jclass that, jdouble arg0, jdouble arg1, jdouble arg2, jdouble arg3, jdouble arg4, jdouble arg5, jdouble arg6, jdouble arg7, jdouble arg8)
-{
- GLU_NATIVE_ENTER(env, that, gluLookAt_FUNC);
- gluLookAt(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8);
- GLU_NATIVE_EXIT(env, that, gluLookAt_FUNC);
-}
-#endif
-
-#ifndef NO_gluNewNurbsRenderer
-JNIEXPORT jint JNICALL GLU_NATIVE(gluNewNurbsRenderer)
- (JNIEnv *env, jclass that)
-{
- jint rc;
- GLU_NATIVE_ENTER(env, that, gluNewNurbsRenderer_FUNC);
- rc = (jint)gluNewNurbsRenderer();
- GLU_NATIVE_EXIT(env, that, gluNewNurbsRenderer_FUNC);
- return rc;
-}
-#endif
-
-#ifndef NO_gluNewQuadric
-JNIEXPORT jint JNICALL GLU_NATIVE(gluNewQuadric)
- (JNIEnv *env, jclass that)
-{
- jint rc;
- GLU_NATIVE_ENTER(env, that, gluNewQuadric_FUNC);
- rc = (jint)gluNewQuadric();
- GLU_NATIVE_EXIT(env, that, gluNewQuadric_FUNC);
- return rc;
-}
-#endif
-
-#ifndef NO_gluNewTess
-JNIEXPORT jint JNICALL GLU_NATIVE(gluNewTess)
- (JNIEnv *env, jclass that)
-{
- jint rc;
- GLU_NATIVE_ENTER(env, that, gluNewTess_FUNC);
- rc = (jint)gluNewTess();
- GLU_NATIVE_EXIT(env, that, gluNewTess_FUNC);
- return rc;
-}
-#endif
-
-#ifndef NO_gluNextContour
-JNIEXPORT void JNICALL GLU_NATIVE(gluNextContour)
- (JNIEnv *env, jclass that, jint arg0, jint arg1)
-{
- GLU_NATIVE_ENTER(env, that, gluNextContour_FUNC);
- gluNextContour((GLUtesselator *)arg0, arg1);
- GLU_NATIVE_EXIT(env, that, gluNextContour_FUNC);
-}
-#endif
-
-#ifndef NO_gluNurbsCallback
-JNIEXPORT void JNICALL GLU_NATIVE(gluNurbsCallback)
- (JNIEnv *env, jclass that, jint arg0, jint arg1, jint arg2)
-{
- GLU_NATIVE_ENTER(env, that, gluNurbsCallback_FUNC);
- gluNurbsCallback((GLUnurbs *)arg0, arg1, (GLvoid(*))arg2);
- GLU_NATIVE_EXIT(env, that, gluNurbsCallback_FUNC);
-}
-#endif
-
-#ifndef NO_gluNurbsCurve
-JNIEXPORT void JNICALL GLU_NATIVE(gluNurbsCurve)
- (JNIEnv *env, jclass that, jint arg0, jint arg1, jfloatArray arg2, jint arg3, jfloatArray arg4, jint arg5, jint arg6)
-{
- jfloat *lparg2=NULL;
- jfloat *lparg4=NULL;
- GLU_NATIVE_ENTER(env, that, gluNurbsCurve_FUNC);
-#ifdef JNI_VERSION_1_2
- if (IS_JNI_1_2) {
- if (arg2) lparg2 = (*env)->GetPrimitiveArrayCritical(env, arg2, NULL);
- if (arg4) lparg4 = (*env)->GetPrimitiveArrayCritical(env, arg4, NULL);
- } else
-#endif
- {
- if (arg2) lparg2 = (*env)->GetFloatArrayElements(env, arg2, NULL);
- if (arg4) lparg4 = (*env)->GetFloatArrayElements(env, arg4, NULL);
- }
- gluNurbsCurve((GLUnurbs *)arg0, arg1, lparg2, arg3, lparg4, arg5, arg6);
-#ifdef JNI_VERSION_1_2
- if (IS_JNI_1_2) {
- if (arg4) (*env)->ReleasePrimitiveArrayCritical(env, arg4, lparg4, 0);
- if (arg2) (*env)->ReleasePrimitiveArrayCritical(env, arg2, lparg2, 0);
- } else
-#endif
- {
- if (arg4) (*env)->ReleaseFloatArrayElements(env, arg4, lparg4, 0);
- if (arg2) (*env)->ReleaseFloatArrayElements(env, arg2, lparg2, 0);
- }
- GLU_NATIVE_EXIT(env, that, gluNurbsCurve_FUNC);
-}
-#endif
-
-#ifndef NO_gluNurbsProperty
-JNIEXPORT void JNICALL GLU_NATIVE(gluNurbsProperty)
- (JNIEnv *env, jclass that, jint arg0, jint arg1, jfloat arg2)
-{
- GLU_NATIVE_ENTER(env, that, gluNurbsProperty_FUNC);
- gluNurbsProperty((GLUnurbs *)arg0, arg1, arg2);
- GLU_NATIVE_EXIT(env, that, gluNurbsProperty_FUNC);
-}
-#endif
-
-#ifndef NO_gluNurbsSurface
-JNIEXPORT void JNICALL GLU_NATIVE(gluNurbsSurface)
- (JNIEnv *env, jclass that, jint arg0, jint arg1, jfloatArray arg2, jint arg3, jfloatArray arg4, jint arg5, jint arg6, jfloatArray arg7, jint arg8, jint arg9, jint arg10)
-{
- jfloat *lparg2=NULL;
- jfloat *lparg4=NULL;
- jfloat *lparg7=NULL;
- GLU_NATIVE_ENTER(env, that, gluNurbsSurface_FUNC);
-#ifdef JNI_VERSION_1_2
- if (IS_JNI_1_2) {
- if (arg2) lparg2 = (*env)->GetPrimitiveArrayCritical(env, arg2, NULL);
- if (arg4) lparg4 = (*env)->GetPrimitiveArrayCritical(env, arg4, NULL);
- if (arg7) lparg7 = (*env)->GetPrimitiveArrayCritical(env, arg7, NULL);
- } else
-#endif
- {
- if (arg2) lparg2 = (*env)->GetFloatArrayElements(env, arg2, NULL);
- if (arg4) lparg4 = (*env)->GetFloatArrayElements(env, arg4, NULL);
- if (arg7) lparg7 = (*env)->GetFloatArrayElements(env, arg7, NULL);
- }
- gluNurbsSurface((GLUnurbsObj *)arg0, arg1, lparg2, arg3, lparg4, arg5, arg6, lparg7, arg8, arg9, arg10);
-#ifdef JNI_VERSION_1_2
- if (IS_JNI_1_2) {
- if (arg7) (*env)->ReleasePrimitiveArrayCritical(env, arg7, lparg7, 0);
- if (arg4) (*env)->ReleasePrimitiveArrayCritical(env, arg4, lparg4, 0);
- if (arg2) (*env)->ReleasePrimitiveArrayCritical(env, arg2, lparg2, 0);
- } else
-#endif
- {
- if (arg7) (*env)->ReleaseFloatArrayElements(env, arg7, lparg7, 0);
- if (arg4) (*env)->ReleaseFloatArrayElements(env, arg4, lparg4, 0);
- if (arg2) (*env)->ReleaseFloatArrayElements(env, arg2, lparg2, 0);
- }
- GLU_NATIVE_EXIT(env, that, gluNurbsSurface_FUNC);
-}
-#endif
-
-#ifndef NO_gluOrtho2D
-JNIEXPORT void JNICALL GLU_NATIVE(gluOrtho2D)
- (JNIEnv *env, jclass that, jdouble arg0, jdouble arg1, jdouble arg2, jdouble arg3)
-{
- GLU_NATIVE_ENTER(env, that, gluOrtho2D_FUNC);
- gluOrtho2D(arg0, arg1, arg2, arg3);
- GLU_NATIVE_EXIT(env, that, gluOrtho2D_FUNC);
-}
-#endif
-
-#ifndef NO_gluPartialDisk
-JNIEXPORT void JNICALL GLU_NATIVE(gluPartialDisk)
- (JNIEnv *env, jclass that, jint arg0, jdouble arg1, jdouble arg2, jint arg3, jint arg4, jdouble arg5, jdouble arg6)
-{
- GLU_NATIVE_ENTER(env, that, gluPartialDisk_FUNC);
- gluPartialDisk((GLUquadric *)arg0, arg1, arg2, arg3, arg4, arg5, arg6);
- GLU_NATIVE_EXIT(env, that, gluPartialDisk_FUNC);
-}
-#endif
-
-#ifndef NO_gluPerspective
-JNIEXPORT void JNICALL GLU_NATIVE(gluPerspective)
- (JNIEnv *env, jclass that, jdouble arg0, jdouble arg1, jdouble arg2, jdouble arg3)
-{
- GLU_NATIVE_ENTER(env, that, gluPerspective_FUNC);
- gluPerspective(arg0, arg1, arg2, arg3);
- GLU_NATIVE_EXIT(env, that, gluPerspective_FUNC);
-}
-#endif
-
-#ifndef NO_gluPickMatrix
-JNIEXPORT void JNICALL GLU_NATIVE(gluPickMatrix)
- (JNIEnv *env, jclass that, jdouble arg0, jdouble arg1, jdouble arg2, jdouble arg3, jintArray arg4)
-{
- jint *lparg4=NULL;
- GLU_NATIVE_ENTER(env, that, gluPickMatrix_FUNC);
-#ifdef JNI_VERSION_1_2
- if (IS_JNI_1_2) {
- if (arg4) lparg4 = (*env)->GetPrimitiveArrayCritical(env, arg4, NULL);
- } else
-#endif
- {
- if (arg4) lparg4 = (*env)->GetIntArrayElements(env, arg4, NULL);
- }
- gluPickMatrix(arg0, arg1, arg2, arg3, lparg4);
-#ifdef JNI_VERSION_1_2
- if (IS_JNI_1_2) {
- if (arg4) (*env)->ReleasePrimitiveArrayCritical(env, arg4, lparg4, 0);
- } else
-#endif
- {
- if (arg4) (*env)->ReleaseIntArrayElements(env, arg4, lparg4, 0);
- }
- GLU_NATIVE_EXIT(env, that, gluPickMatrix_FUNC);
-}
-#endif
-
-#ifndef NO_gluProject
-JNIEXPORT jint JNICALL GLU_NATIVE(gluProject)
- (JNIEnv *env, jclass that, jdouble arg0, jdouble arg1, jdouble arg2, jdoubleArray arg3, jdoubleArray arg4, jintArray arg5, jdoubleArray arg6, jdoubleArray arg7, jdoubleArray arg8)
-{
- jdouble *lparg3=NULL;
- jdouble *lparg4=NULL;
- jint *lparg5=NULL;
- jdouble *lparg6=NULL;
- jdouble *lparg7=NULL;
- jdouble *lparg8=NULL;
- jint rc;
- GLU_NATIVE_ENTER(env, that, gluProject_FUNC);
-#ifdef JNI_VERSION_1_2
- if (IS_JNI_1_2) {
- if (arg3) lparg3 = (*env)->GetPrimitiveArrayCritical(env, arg3, NULL);
- if (arg4) lparg4 = (*env)->GetPrimitiveArrayCritical(env, arg4, NULL);
- if (arg5) lparg5 = (*env)->GetPrimitiveArrayCritical(env, arg5, NULL);
- if (arg6) lparg6 = (*env)->GetPrimitiveArrayCritical(env, arg6, NULL);
- if (arg7) lparg7 = (*env)->GetPrimitiveArrayCritical(env, arg7, NULL);
- if (arg8) lparg8 = (*env)->GetPrimitiveArrayCritical(env, arg8, NULL);
- } else
-#endif
- {
- if (arg3) lparg3 = (*env)->GetDoubleArrayElements(env, arg3, NULL);
- if (arg4) lparg4 = (*env)->GetDoubleArrayElements(env, arg4, NULL);
- if (arg5) lparg5 = (*env)->GetIntArrayElements(env, arg5, NULL);
- if (arg6) lparg6 = (*env)->GetDoubleArrayElements(env, arg6, NULL);
- if (arg7) lparg7 = (*env)->GetDoubleArrayElements(env, arg7, NULL);
- if (arg8) lparg8 = (*env)->GetDoubleArrayElements(env, arg8, NULL);
- }
- rc = (jint)gluProject(arg0, arg1, arg2, lparg3, lparg4, lparg5, lparg6, lparg7, lparg8);
-#ifdef JNI_VERSION_1_2
- if (IS_JNI_1_2) {
- if (arg8) (*env)->ReleasePrimitiveArrayCritical(env, arg8, lparg8, 0);
- if (arg7) (*env)->ReleasePrimitiveArrayCritical(env, arg7, lparg7, 0);
- if (arg6) (*env)->ReleasePrimitiveArrayCritical(env, arg6, lparg6, 0);
- if (arg5) (*env)->ReleasePrimitiveArrayCritical(env, arg5, lparg5, 0);
- if (arg4) (*env)->ReleasePrimitiveArrayCritical(env, arg4, lparg4, 0);
- if (arg3) (*env)->ReleasePrimitiveArrayCritical(env, arg3, lparg3, 0);
- } else
-#endif
- {
- if (arg8) (*env)->ReleaseDoubleArrayElements(env, arg8, lparg8, 0);
- if (arg7) (*env)->ReleaseDoubleArrayElements(env, arg7, lparg7, 0);
- if (arg6) (*env)->ReleaseDoubleArrayElements(env, arg6, lparg6, 0);
- if (arg5) (*env)->ReleaseIntArrayElements(env, arg5, lparg5, 0);
- if (arg4) (*env)->ReleaseDoubleArrayElements(env, arg4, lparg4, 0);
- if (arg3) (*env)->ReleaseDoubleArrayElements(env, arg3, lparg3, 0);
- }
- GLU_NATIVE_EXIT(env, that, gluProject_FUNC);
- return rc;
-}
-#endif
-
-#ifndef NO_gluPwlCurve
-JNIEXPORT void JNICALL GLU_NATIVE(gluPwlCurve)
- (JNIEnv *env, jclass that, jint arg0, jint arg1, jfloatArray arg2, jint arg3, jint arg4)
-{
- jfloat *lparg2=NULL;
- GLU_NATIVE_ENTER(env, that, gluPwlCurve_FUNC);
-#ifdef JNI_VERSION_1_2
- if (IS_JNI_1_2) {
- if (arg2) lparg2 = (*env)->GetPrimitiveArrayCritical(env, arg2, NULL);
- } else
-#endif
- {
- if (arg2) lparg2 = (*env)->GetFloatArrayElements(env, arg2, NULL);
- }
- gluPwlCurve((GLUnurbs *)arg0, arg1, lparg2, arg3, arg4);
-#ifdef JNI_VERSION_1_2
- if (IS_JNI_1_2) {
- if (arg2) (*env)->ReleasePrimitiveArrayCritical(env, arg2, lparg2, 0);
- } else
-#endif
- {
- if (arg2) (*env)->ReleaseFloatArrayElements(env, arg2, lparg2, 0);
- }
- GLU_NATIVE_EXIT(env, that, gluPwlCurve_FUNC);
-}
-#endif
-
-#ifndef NO_gluQuadricCallback
-JNIEXPORT void JNICALL GLU_NATIVE(gluQuadricCallback)
- (JNIEnv *env, jclass that, jint arg0, jint arg1, jint arg2)
-{
- GLU_NATIVE_ENTER(env, that, gluQuadricCallback_FUNC);
- gluQuadricCallback((GLUquadricObj *)arg0, arg1, (GLvoid(*))arg2);
- GLU_NATIVE_EXIT(env, that, gluQuadricCallback_FUNC);
-}
-#endif
-
-#ifndef NO_gluQuadricDrawStyle
-JNIEXPORT void JNICALL GLU_NATIVE(gluQuadricDrawStyle)
- (JNIEnv *env, jclass that, jint arg0, jint arg1)
-{
- GLU_NATIVE_ENTER(env, that, gluQuadricDrawStyle_FUNC);
- gluQuadricDrawStyle((GLUquadricObj *)arg0, arg1);
- GLU_NATIVE_EXIT(env, that, gluQuadricDrawStyle_FUNC);
-}
-#endif
-
-#ifndef NO_gluQuadricNormals
-JNIEXPORT void JNICALL GLU_NATIVE(gluQuadricNormals)
- (JNIEnv *env, jclass that, jint arg0, jint arg1)
-{
- GLU_NATIVE_ENTER(env, that, gluQuadricNormals_FUNC);
- gluQuadricNormals((GLUquadricObj *)arg0, arg1);
- GLU_NATIVE_EXIT(env, that, gluQuadricNormals_FUNC);
-}
-#endif
-
-#ifndef NO_gluQuadricOrientation
-JNIEXPORT void JNICALL GLU_NATIVE(gluQuadricOrientation)
- (JNIEnv *env, jclass that, jint arg0, jint arg1)
-{
- GLU_NATIVE_ENTER(env, that, gluQuadricOrientation_FUNC);
- gluQuadricOrientation((GLUquadric *)arg0, arg1);
- GLU_NATIVE_EXIT(env, that, gluQuadricOrientation_FUNC);
-}
-#endif
-
-#ifndef NO_gluQuadricTexture
-JNIEXPORT void JNICALL GLU_NATIVE(gluQuadricTexture)
- (JNIEnv *env, jclass that, jint arg0, jboolean arg1)
-{
- GLU_NATIVE_ENTER(env, that, gluQuadricTexture_FUNC);
- gluQuadricTexture((GLUquadric *)arg0, arg1);
- GLU_NATIVE_EXIT(env, that, gluQuadricTexture_FUNC);
-}
-#endif
-
-#ifndef NO_gluScaleImage
-JNIEXPORT jint JNICALL GLU_NATIVE(gluScaleImage)
- (JNIEnv *env, jclass that, jint arg0, jint arg1, jint arg2, jint arg3, jint arg4, jint arg5, jint arg6, jint arg7, jint arg8)
-{
- jint rc;
- GLU_NATIVE_ENTER(env, that, gluScaleImage_FUNC);
- rc = (jint)gluScaleImage(arg0, arg1, arg2, arg3, (const void *)arg4, arg5, arg6, arg7, (void *)arg8);
- GLU_NATIVE_EXIT(env, that, gluScaleImage_FUNC);
- return rc;
-}
-#endif
-
-#ifndef NO_gluSphere
-JNIEXPORT void JNICALL GLU_NATIVE(gluSphere)
- (JNIEnv *env, jclass that, jint arg0, jdouble arg1, jint arg2, jint arg3)
-{
- GLU_NATIVE_ENTER(env, that, gluSphere_FUNC);
- gluSphere((GLUquadric *)arg0, arg1, arg2, arg3);
- GLU_NATIVE_EXIT(env, that, gluSphere_FUNC);
-}
-#endif
-
-#ifndef NO_gluTessBeginContour
-JNIEXPORT void JNICALL GLU_NATIVE(gluTessBeginContour)
- (JNIEnv *env, jclass that, jint arg0)
-{
- GLU_NATIVE_ENTER(env, that, gluTessBeginContour_FUNC);
- gluTessBeginContour((GLUtesselator *)arg0);
- GLU_NATIVE_EXIT(env, that, gluTessBeginContour_FUNC);
-}
-#endif
-
-#ifndef NO_gluTessBeginPolygon
-JNIEXPORT void JNICALL GLU_NATIVE(gluTessBeginPolygon)
- (JNIEnv *env, jclass that, jint arg0, jint arg1)
-{
- GLU_NATIVE_ENTER(env, that, gluTessBeginPolygon_FUNC);
- gluTessBeginPolygon((GLUtesselator *)arg0, (GLvoid *)arg1);
- GLU_NATIVE_EXIT(env, that, gluTessBeginPolygon_FUNC);
-}
-#endif
-
-#ifndef NO_gluTessCallback
-JNIEXPORT void JNICALL GLU_NATIVE(gluTessCallback)
- (JNIEnv *env, jclass that, jint arg0, jint arg1, jint arg2)
-{
- GLU_NATIVE_ENTER(env, that, gluTessCallback_FUNC);
- gluTessCallback((GLUtesselator *)arg0, arg1, (GLvoid(*))arg2);
- GLU_NATIVE_EXIT(env, that, gluTessCallback_FUNC);
-}
-#endif
-
-#ifndef NO_gluTessEndContour
-JNIEXPORT void JNICALL GLU_NATIVE(gluTessEndContour)
- (JNIEnv *env, jclass that, jint arg0)
-{
- GLU_NATIVE_ENTER(env, that, gluTessEndContour_FUNC);
- gluTessEndContour((GLUtesselator *)arg0);
- GLU_NATIVE_EXIT(env, that, gluTessEndContour_FUNC);
-}
-#endif
-
-#ifndef NO_gluTessEndPolygon
-JNIEXPORT void JNICALL GLU_NATIVE(gluTessEndPolygon)
- (JNIEnv *env, jclass that, jint arg0)
-{
- GLU_NATIVE_ENTER(env, that, gluTessEndPolygon_FUNC);
- gluTessEndPolygon((GLUtesselator *)arg0);
- GLU_NATIVE_EXIT(env, that, gluTessEndPolygon_FUNC);
-}
-#endif
-
-#ifndef NO_gluTessNormal
-JNIEXPORT void JNICALL GLU_NATIVE(gluTessNormal)
- (JNIEnv *env, jclass that, jint arg0, jdouble arg1, jdouble arg2, jdouble arg3)
-{
- GLU_NATIVE_ENTER(env, that, gluTessNormal_FUNC);
- gluTessNormal((GLUtesselator *)arg0, arg1, arg2, arg3);
- GLU_NATIVE_EXIT(env, that, gluTessNormal_FUNC);
-}
-#endif
-
-#ifndef NO_gluTessProperty
-JNIEXPORT void JNICALL GLU_NATIVE(gluTessProperty)
- (JNIEnv *env, jclass that, jint arg0, jint arg1, jdouble arg2)
-{
- GLU_NATIVE_ENTER(env, that, gluTessProperty_FUNC);
- gluTessProperty((GLUtesselator *)arg0, arg1, arg2);
- GLU_NATIVE_EXIT(env, that, gluTessProperty_FUNC);
-}
-#endif
-
-#ifndef NO_gluTessVertex
-JNIEXPORT void JNICALL GLU_NATIVE(gluTessVertex)
- (JNIEnv *env, jclass that, jint arg0, jdoubleArray arg1, jint arg2)
-{
- jdouble *lparg1=NULL;
- GLU_NATIVE_ENTER(env, that, gluTessVertex_FUNC);
-#ifdef JNI_VERSION_1_2
- if (IS_JNI_1_2) {
- if (arg1) lparg1 = (*env)->GetPrimitiveArrayCritical(env, arg1, NULL);
- } else
-#endif
- {
- if (arg1) lparg1 = (*env)->GetDoubleArrayElements(env, arg1, NULL);
- }
- gluTessVertex((GLUtesselator *)arg0, lparg1, (GLvoid *)arg2);
-#ifdef JNI_VERSION_1_2
- if (IS_JNI_1_2) {
- if (arg1) (*env)->ReleasePrimitiveArrayCritical(env, arg1, lparg1, 0);
- } else
-#endif
- {
- if (arg1) (*env)->ReleaseDoubleArrayElements(env, arg1, lparg1, 0);
- }
- GLU_NATIVE_EXIT(env, that, gluTessVertex_FUNC);
-}
-#endif
-
-#ifndef NO_gluUnProject
-JNIEXPORT jint JNICALL GLU_NATIVE(gluUnProject)
- (JNIEnv *env, jclass that, jdouble arg0, jdouble arg1, jdouble arg2, jdoubleArray arg3, jdoubleArray arg4, jintArray arg5, jdoubleArray arg6, jdoubleArray arg7, jdoubleArray arg8)
-{
- jdouble *lparg3=NULL;
- jdouble *lparg4=NULL;
- jint *lparg5=NULL;
- jdouble *lparg6=NULL;
- jdouble *lparg7=NULL;
- jdouble *lparg8=NULL;
- jint rc;
- GLU_NATIVE_ENTER(env, that, gluUnProject_FUNC);
-#ifdef JNI_VERSION_1_2
- if (IS_JNI_1_2) {
- if (arg3) lparg3 = (*env)->GetPrimitiveArrayCritical(env, arg3, NULL);
- if (arg4) lparg4 = (*env)->GetPrimitiveArrayCritical(env, arg4, NULL);
- if (arg5) lparg5 = (*env)->GetPrimitiveArrayCritical(env, arg5, NULL);
- if (arg6) lparg6 = (*env)->GetPrimitiveArrayCritical(env, arg6, NULL);
- if (arg7) lparg7 = (*env)->GetPrimitiveArrayCritical(env, arg7, NULL);
- if (arg8) lparg8 = (*env)->GetPrimitiveArrayCritical(env, arg8, NULL);
- } else
-#endif
- {
- if (arg3) lparg3 = (*env)->GetDoubleArrayElements(env, arg3, NULL);
- if (arg4) lparg4 = (*env)->GetDoubleArrayElements(env, arg4, NULL);
- if (arg5) lparg5 = (*env)->GetIntArrayElements(env, arg5, NULL);
- if (arg6) lparg6 = (*env)->GetDoubleArrayElements(env, arg6, NULL);
- if (arg7) lparg7 = (*env)->GetDoubleArrayElements(env, arg7, NULL);
- if (arg8) lparg8 = (*env)->GetDoubleArrayElements(env, arg8, NULL);
- }
- rc = (jint)gluUnProject(arg0, arg1, arg2, lparg3, lparg4, lparg5, lparg6, lparg7, lparg8);
-#ifdef JNI_VERSION_1_2
- if (IS_JNI_1_2) {
- if (arg8) (*env)->ReleasePrimitiveArrayCritical(env, arg8, lparg8, 0);
- if (arg7) (*env)->ReleasePrimitiveArrayCritical(env, arg7, lparg7, 0);
- if (arg6) (*env)->ReleasePrimitiveArrayCritical(env, arg6, lparg6, 0);
- if (arg5) (*env)->ReleasePrimitiveArrayCritical(env, arg5, lparg5, 0);
- if (arg4) (*env)->ReleasePrimitiveArrayCritical(env, arg4, lparg4, 0);
- if (arg3) (*env)->ReleasePrimitiveArrayCritical(env, arg3, lparg3, 0);
- } else
-#endif
- {
- if (arg8) (*env)->ReleaseDoubleArrayElements(env, arg8, lparg8, 0);
- if (arg7) (*env)->ReleaseDoubleArrayElements(env, arg7, lparg7, 0);
- if (arg6) (*env)->ReleaseDoubleArrayElements(env, arg6, lparg6, 0);
- if (arg5) (*env)->ReleaseIntArrayElements(env, arg5, lparg5, 0);
- if (arg4) (*env)->ReleaseDoubleArrayElements(env, arg4, lparg4, 0);
- if (arg3) (*env)->ReleaseDoubleArrayElements(env, arg3, lparg3, 0);
- }
- GLU_NATIVE_EXIT(env, that, gluUnProject_FUNC);
- return rc;
-}
-#endif
-
diff --git a/bundles/org.eclipse.swt.opengl/common/library/glu.h b/bundles/org.eclipse.swt.opengl/common/library/glu.h
deleted file mode 100644
index 96f8b03c23..0000000000
--- a/bundles/org.eclipse.swt.opengl/common/library/glu.h
+++ /dev/null
@@ -1,10 +0,0 @@
-#ifdef __APPLE__
-#include <OpenGL/glu.h>
-#else
-#ifdef WIN32
-#include <windows.h>
-#endif
-#include <GL/glu.h>
-#endif
-
-extern int IS_JNI_1_2;
diff --git a/bundles/org.eclipse.swt.opengl/common/library/glu_stats.c b/bundles/org.eclipse.swt.opengl/common/library/glu_stats.c
deleted file mode 100644
index 3befc268da..0000000000
--- a/bundles/org.eclipse.swt.opengl/common/library/glu_stats.c
+++ /dev/null
@@ -1,82 +0,0 @@
-#include "swt.h"
-#include "glu_stats.h"
-
-#ifdef NATIVE_STATS
-
-int GLU_nativeFunctionCount = 51;
-int GLU_nativeFunctionCallCount[51];
-char * GLU_nativeFunctionNames[] = {
- "gluBeginCurve",
- "gluBeginPolygon",
- "gluBeginSurface",
- "gluBeginTrim",
- "gluBuild1DMipmaps",
- "gluBuild2DMipmaps",
- "gluCylinder",
- "gluDeleteNurbsRenderer",
- "gluDeleteQuadric",
- "gluDeleteTess",
- "gluDisk",
- "gluEndCurve",
- "gluEndPolygon",
- "gluEndSurface",
- "gluEndTrim",
- "gluErrorString",
- "gluGetNurbsProperty",
- "gluGetString",
- "gluGetTessProperty",
- "gluLoadSamplingMatrices",
- "gluLookAt",
- "gluNewNurbsRenderer",
- "gluNewQuadric",
- "gluNewTess",
- "gluNextContour",
- "gluNurbsCallback",
- "gluNurbsCurve",
- "gluNurbsProperty",
- "gluNurbsSurface",
- "gluOrtho2D",
- "gluPartialDisk",
- "gluPerspective",
- "gluPickMatrix",
- "gluProject",
- "gluPwlCurve",
- "gluQuadricCallback",
- "gluQuadricDrawStyle",
- "gluQuadricNormals",
- "gluQuadricOrientation",
- "gluQuadricTexture",
- "gluScaleImage",
- "gluSphere",
- "gluTessBeginContour",
- "gluTessBeginPolygon",
- "gluTessCallback",
- "gluTessEndContour",
- "gluTessEndPolygon",
- "gluTessNormal",
- "gluTessProperty",
- "gluTessVertex",
- "gluUnProject",
-};
-
-#define STATS_NATIVE(func) Java_org_eclipse_swt_tools_internal_NativeStats_##func
-
-JNIEXPORT jint JNICALL STATS_NATIVE(GLU_1GetFunctionCount)
- (JNIEnv *env, jclass that)
-{
- return GLU_nativeFunctionCount;
-}
-
-JNIEXPORT jstring JNICALL STATS_NATIVE(GLU_1GetFunctionName)
- (JNIEnv *env, jclass that, jint index)
-{
- return (*env)->NewStringUTF(env, GLU_nativeFunctionNames[index]);
-}
-
-JNIEXPORT jint JNICALL STATS_NATIVE(GLU_1GetFunctionCallCount)
- (JNIEnv *env, jclass that, jint index)
-{
- return GLU_nativeFunctionCallCount[index];
-}
-
-#endif
diff --git a/bundles/org.eclipse.swt.opengl/common/library/glu_stats.h b/bundles/org.eclipse.swt.opengl/common/library/glu_stats.h
deleted file mode 100644
index 99173e6713..0000000000
--- a/bundles/org.eclipse.swt.opengl/common/library/glu_stats.h
+++ /dev/null
@@ -1,64 +0,0 @@
-#ifdef NATIVE_STATS
-extern int GLU_nativeFunctionCount;
-extern int GLU_nativeFunctionCallCount[];
-extern char* GLU_nativeFunctionNames[];
-#define GLU_NATIVE_ENTER(env, that, func) GLU_nativeFunctionCallCount[func]++;
-#define GLU_NATIVE_EXIT(env, that, func)
-#else
-#define GLU_NATIVE_ENTER(env, that, func)
-#define GLU_NATIVE_EXIT(env, that, func)
-#endif
-
-typedef enum {
- gluBeginCurve_FUNC,
- gluBeginPolygon_FUNC,
- gluBeginSurface_FUNC,
- gluBeginTrim_FUNC,
- gluBuild1DMipmaps_FUNC,
- gluBuild2DMipmaps_FUNC,
- gluCylinder_FUNC,
- gluDeleteNurbsRenderer_FUNC,
- gluDeleteQuadric_FUNC,
- gluDeleteTess_FUNC,
- gluDisk_FUNC,
- gluEndCurve_FUNC,
- gluEndPolygon_FUNC,
- gluEndSurface_FUNC,
- gluEndTrim_FUNC,
- gluErrorString_FUNC,
- gluGetNurbsProperty_FUNC,
- gluGetString_FUNC,
- gluGetTessProperty_FUNC,
- gluLoadSamplingMatrices_FUNC,
- gluLookAt_FUNC,
- gluNewNurbsRenderer_FUNC,
- gluNewQuadric_FUNC,
- gluNewTess_FUNC,
- gluNextContour_FUNC,
- gluNurbsCallback_FUNC,
- gluNurbsCurve_FUNC,
- gluNurbsProperty_FUNC,
- gluNurbsSurface_FUNC,
- gluOrtho2D_FUNC,
- gluPartialDisk_FUNC,
- gluPerspective_FUNC,
- gluPickMatrix_FUNC,
- gluProject_FUNC,
- gluPwlCurve_FUNC,
- gluQuadricCallback_FUNC,
- gluQuadricDrawStyle_FUNC,
- gluQuadricNormals_FUNC,
- gluQuadricOrientation_FUNC,
- gluQuadricTexture_FUNC,
- gluScaleImage_FUNC,
- gluSphere_FUNC,
- gluTessBeginContour_FUNC,
- gluTessBeginPolygon_FUNC,
- gluTessCallback_FUNC,
- gluTessEndContour_FUNC,
- gluTessEndPolygon_FUNC,
- gluTessNormal_FUNC,
- gluTessProperty_FUNC,
- gluTessVertex_FUNC,
- gluUnProject_FUNC,
-} GLU_FUNCS;
diff --git a/bundles/org.eclipse.swt.opengl/common/library/glu_structs.c b/bundles/org.eclipse.swt.opengl/common/library/glu_structs.c
deleted file mode 100644
index 620ce43b12..0000000000
--- a/bundles/org.eclipse.swt.opengl/common/library/glu_structs.c
+++ /dev/null
@@ -1,3 +0,0 @@
-#include "swt.h"
-#include "glu_structs.h"
-
diff --git a/bundles/org.eclipse.swt.opengl/common/library/glu_structs.h b/bundles/org.eclipse.swt.opengl/common/library/glu_structs.h
deleted file mode 100644
index 5d11acf289..0000000000
--- a/bundles/org.eclipse.swt.opengl/common/library/glu_structs.h
+++ /dev/null
@@ -1,2 +0,0 @@
-#include "glu.h"
-
diff --git a/bundles/org.eclipse.swt.opengl/common/library/swt.h b/bundles/org.eclipse.swt.opengl/common/library/swt.h
deleted file mode 100644
index 2729037ce9..0000000000
--- a/bundles/org.eclipse.swt.opengl/common/library/swt.h
+++ /dev/null
@@ -1,50 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2000, 2005 IBM Corporation and others.
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * IBM Corporation - initial API and implementation
- *******************************************************************************/
-
-#ifndef INC_swt_H
-#define INC_swt_H
-
-#include "jni.h"
-
-/* For debugging */
-#define DEBUG_PRINTF(x)
-/*#define DEBUG_PRINTF(x) printf x; */
-
-/* define this to print out debug statements */
-/* #define DEBUG_CALL_PRINTS */
-/* #define DEBUG_CHECK_NULL_EXCEPTIONS */
-
-#ifdef DEBUG_CALL_PRINTS
-#define DEBUG_CALL(func) fprintf(stderr, func);
-#else
-#define DEBUG_CALL(func)
-#endif
-
-#ifdef DEBUG_CHECK_NULL_EXCEPTIONS
-#define DEBUG_CHECK_NULL(env, address) \
- if (address == 0) { \
- jclass clazz = (*env)->FindClass(env, "org/eclipse/swt/SWTError"); \
- if (clazz != NULL) { \
- (*env)->ThrowNew(env, clazz, "Argument cannot be NULL"); \
- } \
- return; \
- }
-#else
-#define DEBUG_CHECK_NULL(env, address)
-#endif
-
-#define DECL_GLOB(pSym)
-#define PGLOB(x) x
-
-#define NATIVE_ENTER(env,clazz,func)
-#define NATIVE_EXIT(env,clazz,func)
-
-#endif /* ifndef INC_swt_H */
diff --git a/bundles/org.eclipse.swt.opengl/common/org/eclipse/opengl/GL.java b/bundles/org.eclipse.swt.opengl/common/org/eclipse/opengl/GL.java
deleted file mode 100755
index 01a4fca4c3..0000000000
--- a/bundles/org.eclipse.swt.opengl/common/org/eclipse/opengl/GL.java
+++ /dev/null
@@ -1,1447 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2000, 2004 IBM Corporation and others.
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * IBM Corporation - initial API and implementation
- *******************************************************************************/
-package org.eclipse.opengl;
-
-public class GL {
-
- public static final int GL_VERSION_1_1 = 1;
-
- /* AccumOp */
- public static final int GL_ACCUM = 0x0100;
- public static final int GL_LOAD = 0x0101;
- public static final int GL_RETURN = 0x0102;
- public static final int GL_MULT = 0x0103;
- public static final int GL_ADD = 0x0104;
-
- /* AlphaFunction */
- public static final int GL_NEVER = 0x0200;
- public static final int GL_LESS = 0x0201;
- public static final int GL_EQUAL = 0x0202;
- public static final int GL_LEQUAL = 0x0203;
- public static final int GL_GREATER = 0x0204;
- public static final int GL_NOTEQUAL = 0x0205;
- public static final int GL_GEQUAL = 0x0206;
- public static final int GL_ALWAYS = 0x0207;
-
- /* AttribMask */
- public static final int GL_CURRENT_BIT = 0x00000001;
- public static final int GL_POINT_BIT = 0x00000002;
- public static final int GL_LINE_BIT = 0x00000004;
- public static final int GL_POLYGON_BIT = 0x00000008;
- public static final int GL_POLYGON_STIPPLE_BIT = 0x00000010;
- public static final int GL_PIXEL_MODE_BIT = 0x00000020;
- public static final int GL_LIGHTING_BIT = 0x00000040;
- public static final int GL_FOG_BIT = 0x00000080;
- public static final int GL_DEPTH_BUFFER_BIT = 0x00000100;
- public static final int GL_ACCUM_BUFFER_BIT = 0x00000200;
- public static final int GL_STENCIL_BUFFER_BIT = 0x00000400;
- public static final int GL_VIEWPORT_BIT = 0x00000800;
- public static final int GL_TRANSFORM_BIT = 0x00001000;
- public static final int GL_ENABLE_BIT = 0x00002000;
- public static final int GL_COLOR_BUFFER_BIT = 0x00004000;
- public static final int GL_HINT_BIT = 0x00008000;
- public static final int GL_EVAL_BIT = 0x00010000;
- public static final int GL_LIST_BIT = 0x00020000;
- public static final int GL_TEXTURE_BIT = 0x00040000;
- public static final int GL_SCISSOR_BIT = 0x00080000;
- public static final int GL_ALL_ATTRIB_BITS = 0x000fffff;
-
- /* BeginMode */
- public static final int GL_POINTS = 0x0000;
- public static final int GL_LINES = 0x0001;
- public static final int GL_LINE_LOOP = 0x0002;
- public static final int GL_LINE_STRIP = 0x0003;
- public static final int GL_TRIANGLES = 0x0004;
- public static final int GL_TRIANGLE_STRIP = 0x0005;
- public static final int GL_TRIANGLE_FAN = 0x0006;
- public static final int GL_QUADS = 0x0007;
- public static final int GL_QUAD_STRIP = 0x0008;
- public static final int GL_POLYGON = 0x0009;
-
- /* BlendingFactorDest */
- public static final int GL_ZERO = 0;
- public static final int GL_ONE = 1;
- public static final int GL_SRC_COLOR = 0x0300;
- public static final int GL_ONE_MINUS_SRC_COLOR = 0x0301;
- public static final int GL_SRC_ALPHA = 0x0302;
- public static final int GL_ONE_MINUS_SRC_ALPHA = 0x0303;
- public static final int GL_DST_ALPHA = 0x0304;
- public static final int GL_ONE_MINUS_DST_ALPHA = 0x0305;
-
- /* BlendingFactorSrc */
- /* GL_ZERO */
- /* GL_ONE */
- public static final int GL_DST_COLOR = 0x0306;
- public static final int GL_ONE_MINUS_DST_COLOR = 0x0307;
- public static final int GL_SRC_ALPHA_SATURATE = 0x0308;
- /* GL_SRC_ALPHA */
- /* GL_ONE_MINUS_SRC_ALPHA */
- /* GL_DST_ALPHA */
- /* GL_ONE_MINUS_DST_ALPHA */
-
- /* Boolean */
- public static final int GL_TRUE = 1;
- public static final int GL_FALSE = 0;
-
- /* ClearBufferMask */
- /* GL_COLOR_BUFFER_BIT */
- /* GL_ACCUM_BUFFER_BIT */
- /* GL_STENCIL_BUFFER_BIT */
- /* GL_DEPTH_BUFFER_BIT */
-
- /* ClientArrayType */
- /* GL_VERTEX_ARRAY */
- /* GL_NORMAL_ARRAY */
- /* GL_COLOR_ARRAY */
- /* GL_INDEX_ARRAY */
- /* GL_TEXTURE_COORD_ARRAY */
- /* GL_EDGE_FLAG_ARRAY */
-
- /* ClipPlaneName */
- 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;
-
- /* ColorMaterialFace */
- /* GL_FRONT */
- /* GL_BACK */
- /* GL_FRONT_AND_BACK */
-
- /* ColorMaterialParameter */
- /* GL_AMBIENT */
- /* GL_DIFFUSE */
- /* GL_SPECULAR */
- /* GL_EMISSION */
- /* GL_AMBIENT_AND_DIFFUSE */
-
- /* ColorPointerType */
- /* GL_BYTE */
- /* GL_UNSIGNED_BYTE */
- /* GL_SHORT */
- /* GL_UNSIGNED_SHORT */
- /* GL_INT */
- /* GL_UNSIGNED_INT */
- /* GL_FLOAT */
- /* GL_DOUBLE */
-
- /* CullFaceMode */
- /* GL_FRONT */
- /* GL_BACK */
- /* GL_FRONT_AND_BACK */
-
- /* DataType */
- public static final int GL_BYTE = 0x1400;
- public static final int GL_UNSIGNED_BYTE = 0x1401;
- public static final int GL_SHORT = 0x1402;
- public static final int GL_UNSIGNED_SHORT = 0x1403;
- public static final int GL_INT = 0x1404;
- public static final int GL_UNSIGNED_INT = 0x1405;
- public static final int GL_FLOAT = 0x1406;
- public static final int GL_2_BYTES = 0x1407;
- public static final int GL_3_BYTES = 0x1408;
- public static final int GL_4_BYTES = 0x1409;
- public static final int GL_DOUBLE = 0x140A;
-
- /* DepthFunction */
- /* GL_NEVER */
- /* GL_LESS */
- /* GL_EQUAL */
- /* GL_LEQUAL */
- /* GL_GREATER */
- /* GL_NOTEQUAL */
- /* GL_GEQUAL */
- /* GL_ALWAYS */
-
- /* DrawBufferMode */
- public static final int GL_NONE = 0;
- public static final int GL_FRONT_LEFT = 0x0400;
- public static final int GL_FRONT_RIGHT = 0x0401;
- public static final int GL_BACK_LEFT = 0x0402;
- public static final int GL_BACK_RIGHT = 0x0403;
- public static final int GL_FRONT = 0x0404;
- public static final int GL_BACK = 0x0405;
- public static final int GL_LEFT = 0x0406;
- public static final int GL_RIGHT = 0x0407;
- public static final int GL_FRONT_AND_BACK = 0x0408;
- 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;
-
- /* Enable */
- /* GL_FOG */
- /* GL_LIGHTING */
- /* GL_TEXTURE_1D */
- /* GL_TEXTURE_2D */
- /* GL_LINE_STIPPLE */
- /* GL_POLYGON_STIPPLE */
- /* GL_CULL_FACE */
- /* GL_ALPHA_TEST */
- /* GL_BLEND */
- /* GL_INDEX_LOGIC_OP */
- /* GL_COLOR_LOGIC_OP */
- /* GL_DITHER */
- /* GL_STENCIL_TEST */
- /* GL_DEPTH_TEST */
- /* GL_CLIP_PLANE0 */
- /* GL_CLIP_PLANE1 */
- /* GL_CLIP_PLANE2 */
- /* GL_CLIP_PLANE3 */
- /* GL_CLIP_PLANE4 */
- /* GL_CLIP_PLANE5 */
- /* GL_LIGHT0 */
- /* GL_LIGHT1 */
- /* GL_LIGHT2 */
- /* GL_LIGHT3 */
- /* GL_LIGHT4 */
- /* GL_LIGHT5 */
- /* GL_LIGHT6 */
- /* GL_LIGHT7 */
- /* GL_TEXTURE_GEN_S */
- /* GL_TEXTURE_GEN_T */
- /* GL_TEXTURE_GEN_R */
- /* GL_TEXTURE_GEN_Q */
- /* GL_MAP1_VERTEX_3 */
- /* GL_MAP1_VERTEX_4 */
- /* GL_MAP1_COLOR_4 */
- /* GL_MAP1_INDEX */
- /* GL_MAP1_NORMAL */
- /* GL_MAP1_TEXTURE_COORD_1 */
- /* GL_MAP1_TEXTURE_COORD_2 */
- /* GL_MAP1_TEXTURE_COORD_3 */
- /* GL_MAP1_TEXTURE_COORD_4 */
- /* GL_MAP2_VERTEX_3 */
- /* GL_MAP2_VERTEX_4 */
- /* GL_MAP2_COLOR_4 */
- /* GL_MAP2_INDEX */
- /* GL_MAP2_NORMAL */
- /* GL_MAP2_TEXTURE_COORD_1 */
- /* GL_MAP2_TEXTURE_COORD_2 */
- /* GL_MAP2_TEXTURE_COORD_3 */
- /* GL_MAP2_TEXTURE_COORD_4 */
- /* GL_POINT_SMOOTH */
- /* GL_LINE_SMOOTH */
- /* GL_POLYGON_SMOOTH */
- /* GL_SCISSOR_TEST */
- /* GL_COLOR_MATERIAL */
- /* GL_NORMALIZE */
- /* GL_AUTO_NORMAL */
- /* GL_VERTEX_ARRAY */
- /* GL_NORMAL_ARRAY */
- /* GL_COLOR_ARRAY */
- /* GL_INDEX_ARRAY */
- /* GL_TEXTURE_COORD_ARRAY */
- /* GL_EDGE_FLAG_ARRAY */
- /* GL_POLYGON_OFFSET_POINT */
- /* GL_POLYGON_OFFSET_LINE */
- /* GL_POLYGON_OFFSET_FILL */
-
- /* ErrorCode */
- public static final int GL_NO_ERROR = 0;
- public static final int GL_INVALID_ENUM = 0x0500;
- public static final int GL_INVALID_VALUE = 0x0501;
- public static final int GL_INVALID_OPERATION = 0x0502;
- public static final int GL_STACK_OVERFLOW = 0x0503;
- public static final int GL_STACK_UNDERFLOW = 0x0504;
- public static final int GL_OUT_OF_MEMORY = 0x0505;
-
- /* FeedBackMode */
- public static final int GL_2D = 0x0600;
- 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_4D_COLOR_TEXTURE = 0x0604;
-
- /* FeedBackToken */
- public static final int GL_PASS_THROUGH_TOKEN = 0x0700;
- public static final int GL_POINT_TOKEN = 0x0701;
- public static final int GL_LINE_TOKEN = 0x0702;
- public static final int GL_POLYGON_TOKEN = 0x0703;
- public static final int GL_BITMAP_TOKEN = 0x0704;
- public static final int GL_DRAW_PIXEL_TOKEN = 0x0705;
- public static final int GL_COPY_PIXEL_TOKEN = 0x0706;
- public static final int GL_LINE_RESET_TOKEN = 0x0707;
-
- /* FogMode */
- /* GL_LINEAR */
- public static final int GL_EXP = 0x0800;
- public static final int GL_EXP2 = 0x0801;
-
- /* FogParameter */
- /* GL_FOG_COLOR */
- /* GL_FOG_DENSITY */
- /* GL_FOG_END */
- /* GL_FOG_INDEX */
- /* GL_FOG_MODE */
- /* GL_FOG_START */
-
- /* FrontFaceDirection */
- public static final int GL_CW = 0x0900;
- public static final int GL_CCW = 0x0901;
-
- /* GetMapTarget */
- public static final int GL_COEFF = 0x0A00;
- public static final int GL_ORDER = 0x0A01;
- public static final int GL_DOMAIN = 0x0A02;
-
- /* GetPixelMap */
- /* GL_PIXEL_MAP_I_TO_I */
- /* GL_PIXEL_MAP_S_TO_S */
- /* GL_PIXEL_MAP_I_TO_R */
- /* GL_PIXEL_MAP_I_TO_G */
- /* GL_PIXEL_MAP_I_TO_B */
- /* GL_PIXEL_MAP_I_TO_A */
- /* GL_PIXEL_MAP_R_TO_R */
- /* GL_PIXEL_MAP_G_TO_G */
- /* GL_PIXEL_MAP_B_TO_B */
- /* GL_PIXEL_MAP_A_TO_A */
-
- /* GetPointerTarget */
- /* GL_VERTEX_ARRAY_POINTER */
- /* GL_NORMAL_ARRAY_POINTER */
- /* GL_COLOR_ARRAY_POINTER */
- /* GL_INDEX_ARRAY_POINTER */
- /* GL_TEXTURE_COORD_ARRAY_POINTER */
- /* GL_EDGE_FLAG_ARRAY_POINTER */
-
- /* GetTarget */
- public static final int GL_CURRENT_COLOR = 0x0B00;
- public static final int GL_CURRENT_INDEX = 0x0B01;
- public static final int GL_CURRENT_NORMAL = 0x0B02;
- public static final int GL_CURRENT_TEXTURE_COORDS = 0x0B03;
- public static final int GL_CURRENT_RASTER_COLOR = 0x0B04;
- public static final int GL_CURRENT_RASTER_INDEX = 0x0B05;
- public static final int GL_CURRENT_RASTER_TEXTURE_COORDS = 0x0B06;
- 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_DISTANCE = 0x0B09;
- public static final int GL_POINT_SMOOTH = 0x0B10;
- public static final int GL_POINT_SIZE = 0x0B11;
- public static final int GL_POINT_SIZE_RANGE = 0x0B12;
- public static final int GL_POINT_SIZE_GRANULARITY = 0x0B13;
- public static final int GL_LINE_SMOOTH = 0x0B20;
- public static final int GL_LINE_WIDTH = 0x0B21;
- public static final int GL_LINE_WIDTH_RANGE = 0x0B22;
- public static final int GL_LINE_WIDTH_GRANULARITY = 0x0B23;
- 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_LIST_MODE = 0x0B30;
- public static final int GL_MAX_LIST_NESTING = 0x0B31;
- public static final int GL_LIST_BASE = 0x0B32;
- public static final int GL_LIST_INDEX = 0x0B33;
- public static final int GL_POLYGON_MODE = 0x0B40;
- public static final int GL_POLYGON_SMOOTH = 0x0B41;
- public static final int GL_POLYGON_STIPPLE = 0x0B42;
- public static final int GL_EDGE_FLAG = 0x0B43;
- public static final int GL_CULL_FACE = 0x0B44;
- public static final int GL_CULL_FACE_MODE = 0x0B45;
- public static final int GL_FRONT_FACE = 0x0B46;
- public static final int GL_LIGHTING = 0x0B50;
- public static final int GL_LIGHT_MODEL_LOCAL_VIEWER = 0x0B51;
- public static final int GL_LIGHT_MODEL_TWO_SIDE = 0x0B52;
- public static final int GL_LIGHT_MODEL_AMBIENT = 0x0B53;
- public static final int GL_SHADE_MODEL = 0x0B54;
- public static final int GL_COLOR_MATERIAL_FACE = 0x0B55;
- public static final int GL_COLOR_MATERIAL_PARAMETER = 0x0B56;
- public static final int GL_COLOR_MATERIAL = 0x0B57;
- public static final int GL_FOG = 0x0B60;
- public static final int GL_FOG_INDEX = 0x0B61;
- public static final int GL_FOG_DENSITY = 0x0B62;
- public static final int GL_FOG_START = 0x0B63;
- public static final int GL_FOG_END = 0x0B64;
- public static final int GL_FOG_MODE = 0x0B65;
- public static final int GL_FOG_COLOR = 0x0B66;
- public static final int GL_DEPTH_RANGE = 0x0B70;
- public static final int GL_DEPTH_TEST = 0x0B71;
- public static final int GL_DEPTH_WRITEMASK = 0x0B72;
- public static final int GL_DEPTH_CLEAR_VALUE = 0x0B73;
- public static final int GL_DEPTH_FUNC = 0x0B74;
- public static final int GL_ACCUM_CLEAR_VALUE = 0x0B80;
- public static final int GL_STENCIL_TEST = 0x0B90;
- public static final int GL_STENCIL_CLEAR_VALUE = 0x0B91;
- public static final int GL_STENCIL_FUNC = 0x0B92;
- public static final int GL_STENCIL_VALUE_MASK = 0x0B93;
- public static final int GL_STENCIL_FAIL = 0x0B94;
- 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_WRITEMASK = 0x0B98;
- public static final int GL_MATRIX_MODE = 0x0BA0;
- public static final int GL_NORMALIZE = 0x0BA1;
- public static final int GL_VIEWPORT = 0x0BA2;
- public static final int GL_MODELVIEW_STACK_DEPTH = 0x0BA3;
- public static final int GL_PROJECTION_STACK_DEPTH = 0x0BA4;
- public static final int GL_TEXTURE_STACK_DEPTH = 0x0BA5;
- public static final int GL_MODELVIEW_MATRIX = 0x0BA6;
- public static final int GL_PROJECTION_MATRIX = 0x0BA7;
- public static final int GL_TEXTURE_MATRIX = 0x0BA8;
- public static final int GL_ATTRIB_STACK_DEPTH = 0x0BB0;
- public static final int GL_CLIENT_ATTRIB_STACK_DEPTH = 0x0BB1;
- 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_DITHER = 0x0BD0;
- public static final int GL_BLEND_DST = 0x0BE0;
- public static final int GL_BLEND_SRC = 0x0BE1;
- public static final int GL_BLEND = 0x0BE2;
- public static final int GL_LOGIC_OP_MODE = 0x0BF0;
- public static final int GL_INDEX_LOGIC_OP = 0x0BF1;
- public static final int GL_COLOR_LOGIC_OP = 0x0BF2;
- public static final int GL_AUX_BUFFERS = 0x0C00;
- public static final int GL_DRAW_BUFFER = 0x0C01;
- public static final int GL_READ_BUFFER = 0x0C02;
- public static final int GL_SCISSOR_BOX = 0x0C10;
- public static final int GL_SCISSOR_TEST = 0x0C11;
- public static final int GL_INDEX_CLEAR_VALUE = 0x0C20;
- public static final int GL_INDEX_WRITEMASK = 0x0C21;
- public static final int GL_COLOR_CLEAR_VALUE = 0x0C22;
- public static final int GL_COLOR_WRITEMASK = 0x0C23;
- public static final int GL_INDEX_MODE = 0x0C30;
- public static final int GL_RGBA_MODE = 0x0C31;
- public static final int GL_DOUBLEBUFFER = 0x0C32;
- public static final int GL_STEREO = 0x0C33;
- public static final int GL_RENDER_MODE = 0x0C40;
- public static final int GL_PERSPECTIVE_CORRECTION_HINT = 0x0C50;
- public static final int GL_POINT_SMOOTH_HINT = 0x0C51;
- public static final int GL_LINE_SMOOTH_HINT = 0x0C52;
- public static final int GL_POLYGON_SMOOTH_HINT = 0x0C53;
- public static final int GL_FOG_HINT = 0x0C54;
- public static final int GL_TEXTURE_GEN_S = 0x0C60;
- public static final int GL_TEXTURE_GEN_T = 0x0C61;
- public static final int GL_TEXTURE_GEN_R = 0x0C62;
- public static final int GL_TEXTURE_GEN_Q = 0x0C63;
- public static final int GL_PIXEL_MAP_I_TO_I = 0x0C70;
- public static final int GL_PIXEL_MAP_S_TO_S = 0x0C71;
- public static final int GL_PIXEL_MAP_I_TO_R = 0x0C72;
- public static final int GL_PIXEL_MAP_I_TO_G = 0x0C73;
- public static final int GL_PIXEL_MAP_I_TO_B = 0x0C74;
- public static final int GL_PIXEL_MAP_I_TO_A = 0x0C75;
- public static final int GL_PIXEL_MAP_R_TO_R = 0x0C76;
- public static final int GL_PIXEL_MAP_G_TO_G = 0x0C77;
- public static final int GL_PIXEL_MAP_B_TO_B = 0x0C78;
- public static final int GL_PIXEL_MAP_A_TO_A = 0x0C79;
- public static final int GL_PIXEL_MAP_I_TO_I_SIZE = 0x0CB0;
- public static final int GL_PIXEL_MAP_S_TO_S_SIZE = 0x0CB1;
- public static final int GL_PIXEL_MAP_I_TO_R_SIZE = 0x0CB2;
- public static final int GL_PIXEL_MAP_I_TO_G_SIZE = 0x0CB3;
- public static final int GL_PIXEL_MAP_I_TO_B_SIZE = 0x0CB4;
- public static final int GL_PIXEL_MAP_I_TO_A_SIZE = 0x0CB5;
- public static final int GL_PIXEL_MAP_R_TO_R_SIZE = 0x0CB6;
- public static final int GL_PIXEL_MAP_G_TO_G_SIZE = 0x0CB7;
- public static final int GL_PIXEL_MAP_B_TO_B_SIZE = 0x0CB8;
- public static final int GL_PIXEL_MAP_A_TO_A_SIZE = 0x0CB9;
- public static final int GL_UNPACK_SWAP_BYTES = 0x0CF0;
- 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_ROWS = 0x0CF3;
- public static final int GL_UNPACK_SKIP_PIXELS = 0x0CF4;
- public static final int GL_UNPACK_ALIGNMENT = 0x0CF5;
- public static final int GL_PACK_SWAP_BYTES = 0x0D00;
- 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_ROWS = 0x0D03;
- public static final int GL_PACK_SKIP_PIXELS = 0x0D04;
- public static final int GL_PACK_ALIGNMENT = 0x0D05;
- public static final int GL_MAP_COLOR = 0x0D10;
- public static final int GL_MAP_STENCIL = 0x0D11;
- public static final int GL_INDEX_SHIFT = 0x0D12;
- public static final int GL_INDEX_OFFSET = 0x0D13;
- public static final int GL_RED_SCALE = 0x0D14;
- public static final int GL_RED_BIAS = 0x0D15;
- public static final int GL_ZOOM_X = 0x0D16;
- public static final int GL_ZOOM_Y = 0x0D17;
- public static final int GL_GREEN_SCALE = 0x0D18;
- public static final int GL_GREEN_BIAS = 0x0D19;
- public static final int GL_BLUE_SCALE = 0x0D1A;
- public static final int GL_BLUE_BIAS = 0x0D1B;
- public static final int GL_ALPHA_SCALE = 0x0D1C;
- public static final int GL_ALPHA_BIAS = 0x0D1D;
- public static final int GL_DEPTH_SCALE = 0x0D1E;
- public static final int GL_DEPTH_BIAS = 0x0D1F;
- public static final int GL_MAX_EVAL_ORDER = 0x0D30;
- public static final int GL_MAX_LIGHTS = 0x0D31;
- public static final int GL_MAX_CLIP_PLANES = 0x0D32;
- public static final int GL_MAX_TEXTURE_SIZE = 0x0D33;
- public static final int GL_MAX_PIXEL_MAP_TABLE = 0x0D34;
- public static final int GL_MAX_ATTRIB_STACK_DEPTH = 0x0D35;
- 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_PROJECTION_STACK_DEPTH = 0x0D38;
- public static final int GL_MAX_TEXTURE_STACK_DEPTH = 0x0D39;
- public static final int GL_MAX_VIEWPORT_DIMS = 0x0D3A;
- public static final int GL_MAX_CLIENT_ATTRIB_STACK_DEPTH = 0x0D3B;
- public static final int GL_SUBPIXEL_BITS = 0x0D50;
- public static final int GL_INDEX_BITS = 0x0D51;
- public static final int GL_RED_BITS = 0x0D52;
- public static final int GL_GREEN_BITS = 0x0D53;
- public static final int GL_BLUE_BITS = 0x0D54;
- public static final int GL_ALPHA_BITS = 0x0D55;
- public static final int GL_DEPTH_BITS = 0x0D56;
- public static final int GL_STENCIL_BITS = 0x0D57;
- public static final int GL_ACCUM_RED_BITS = 0x0D58;
- public static final int GL_ACCUM_GREEN_BITS = 0x0D59;
- public static final int GL_ACCUM_BLUE_BITS = 0x0D5A;
- public static final int GL_ACCUM_ALPHA_BITS = 0x0D5B;
- public static final int GL_NAME_STACK_DEPTH = 0x0D70;
- public static final int GL_AUTO_NORMAL = 0x0D80;
- public static final int GL_MAP1_COLOR_4 = 0x0D90;
- public static final int GL_MAP1_INDEX = 0x0D91;
- public static final int GL_MAP1_NORMAL = 0x0D92;
- 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_COLOR_4 = 0x0DB0;
- public static final int GL_MAP2_INDEX = 0x0DB1;
- public static final int GL_MAP2_NORMAL = 0x0DB2;
- 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_MAP1_GRID_DOMAIN = 0x0DD0;
- public static final int GL_MAP1_GRID_SEGMENTS = 0x0DD1;
- public static final int GL_MAP2_GRID_DOMAIN = 0x0DD2;
- public static final int GL_MAP2_GRID_SEGMENTS = 0x0DD3;
- public static final int GL_TEXTURE_1D = 0x0DE0;
- public static final int GL_TEXTURE_2D = 0x0DE1;
- 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_SELECTION_BUFFER_POINTER = 0x0DF3;
- public static final int GL_SELECTION_BUFFER_SIZE = 0x0DF4;
- /* GL_TEXTURE_BINDING_1D */
- /* GL_TEXTURE_BINDING_2D */
- /* GL_VERTEX_ARRAY */
- /* GL_NORMAL_ARRAY */
- /* GL_COLOR_ARRAY */
- /* GL_INDEX_ARRAY */
- /* GL_TEXTURE_COORD_ARRAY */
- /* GL_EDGE_FLAG_ARRAY */
- /* GL_VERTEX_ARRAY_SIZE */
- /* GL_VERTEX_ARRAY_TYPE */
- /* GL_VERTEX_ARRAY_STRIDE */
- /* GL_NORMAL_ARRAY_TYPE */
- /* GL_NORMAL_ARRAY_STRIDE */
- /* GL_COLOR_ARRAY_SIZE */
- /* GL_COLOR_ARRAY_TYPE */
- /* GL_COLOR_ARRAY_STRIDE */
- /* GL_INDEX_ARRAY_TYPE */
- /* GL_INDEX_ARRAY_STRIDE */
- /* GL_TEXTURE_COORD_ARRAY_SIZE */
- /* GL_TEXTURE_COORD_ARRAY_TYPE */
- /* GL_TEXTURE_COORD_ARRAY_STRIDE */
- /* GL_EDGE_FLAG_ARRAY_STRIDE */
- /* GL_POLYGON_OFFSET_FACTOR */
- /* GL_POLYGON_OFFSET_UNITS */
-
- /* GetTextureParameter */
- /* GL_TEXTURE_MAG_FILTER */
- /* GL_TEXTURE_MIN_FILTER */
- /* GL_TEXTURE_WRAP_S */
- /* GL_TEXTURE_WRAP_T */
- public static final int GL_TEXTURE_WIDTH = 0x1000;
- public static final int GL_TEXTURE_HEIGHT = 0x1001;
- public static final int GL_TEXTURE_INTERNAL_FORMAT = 0x1003;
- public static final int GL_TEXTURE_BORDER_COLOR = 0x1004;
- public static final int GL_TEXTURE_BORDER = 0x1005;
- /* GL_TEXTURE_RED_SIZE */
- /* GL_TEXTURE_GREEN_SIZE */
- /* GL_TEXTURE_BLUE_SIZE */
- /* GL_TEXTURE_ALPHA_SIZE */
- /* GL_TEXTURE_LUMINANCE_SIZE */
- /* GL_TEXTURE_INTENSITY_SIZE */
- /* GL_TEXTURE_PRIORITY */
- /* GL_TEXTURE_RESIDENT */
-
- /* HintMode */
- public static final int GL_DONT_CARE = 0x1100;
- public static final int GL_FASTEST = 0x1101;
- public static final int GL_NICEST = 0x1102;
-
- /* HintTarget */
- /* GL_PERSPECTIVE_CORRECTION_HINT */
- /* GL_POINT_SMOOTH_HINT */
- /* GL_LINE_SMOOTH_HINT */
- /* GL_POLYGON_SMOOTH_HINT */
- /* GL_FOG_HINT */
- /* GL_PHONG_HINT */
-
- /* IndexPointerType */
- /* GL_SHORT */
- /* GL_INT */
- /* GL_FLOAT */
- /* GL_DOUBLE */
-
- /* LightModelParameter */
- /* GL_LIGHT_MODEL_AMBIENT */
- /* GL_LIGHT_MODEL_LOCAL_VIEWER */
- /* GL_LIGHT_MODEL_TWO_SIDE */
-
- /* LightName */
- 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;
-
- /* LightParameter */
- public static final int GL_AMBIENT = 0x1200;
- public static final int GL_DIFFUSE = 0x1201;
- public static final int GL_SPECULAR = 0x1202;
- public static final int GL_POSITION = 0x1203;
- public static final int GL_SPOT_DIRECTION = 0x1204;
- public static final int GL_SPOT_EXPONENT = 0x1205;
- public static final int GL_SPOT_CUTOFF = 0x1206;
- public static final int GL_CONSTANT_ATTENUATION = 0x1207;
- public static final int GL_LINEAR_ATTENUATION = 0x1208;
- public static final int GL_QUADRATIC_ATTENUATION = 0x1209;
-
- /* InterleavedArrays */
- /* GL_V2F */
- /* GL_V3F */
- /* GL_C4UB_V2F */
- /* GL_C4UB_V3F */
- /* GL_C3F_V3F */
- /* GL_N3F_V3F */
- /* GL_C4F_N3F_V3F */
- /* GL_T2F_V3F */
- /* GL_T4F_V4F */
- /* GL_T2F_C4UB_V3F */
- /* GL_T2F_C3F_V3F */
- /* GL_T2F_N3F_V3F */
- /* GL_T2F_C4F_N3F_V3F */
- /* GL_T4F_C4F_N3F_V4F */
-
- /* ListMode */
- public static final int GL_COMPILE = 0x1300;
- public static final int GL_COMPILE_AND_EXECUTE = 0x1301;
-
- /* ListNameType */
- /* GL_BYTE */
- /* GL_UNSIGNED_BYTE */
- /* GL_SHORT */
- /* GL_UNSIGNED_SHORT */
- /* GL_INT */
- /* GL_UNSIGNED_INT */
- /* GL_FLOAT */
- /* GL_2_BYTES */
- /* GL_3_BYTES */
- /* GL_4_BYTES */
-
- /* LogicOp */
- public static final int GL_CLEAR = 0x1500;
- public static final int GL_AND = 0x1501;
- public static final int GL_AND_REVERSE = 0x1502;
- public static final int GL_COPY = 0x1503;
- public static final int GL_AND_INVERTED = 0x1504;
- public static final int GL_NOOP = 0x1505;
- public static final int GL_XOR = 0x1506;
- public static final int GL_OR = 0x1507;
- public static final int GL_NOR = 0x1508;
- public static final int GL_EQUIV = 0x1509;
- public static final int GL_INVERT = 0x150A;
- public static final int GL_OR_REVERSE = 0x150B;
- public static final int GL_COPY_INVERTED = 0x150C;
- public static final int GL_OR_INVERTED = 0x150D;
- public static final int GL_NAND = 0x150E;
- public static final int GL_SET = 0x150F;
-
- /* MapTarget */
- /* GL_MAP1_COLOR_4 */
- /* GL_MAP1_INDEX */
- /* GL_MAP1_NORMAL */
- /* GL_MAP1_TEXTURE_COORD_1 */
- /* GL_MAP1_TEXTURE_COORD_2 */
- /* GL_MAP1_TEXTURE_COORD_3 */
- /* GL_MAP1_TEXTURE_COORD_4 */
- /* GL_MAP1_VERTEX_3 */
- /* GL_MAP1_VERTEX_4 */
- /* GL_MAP2_COLOR_4 */
- /* GL_MAP2_INDEX */
- /* GL_MAP2_NORMAL */
- /* GL_MAP2_TEXTURE_COORD_1 */
- /* GL_MAP2_TEXTURE_COORD_2 */
- /* GL_MAP2_TEXTURE_COORD_3 */
- /* GL_MAP2_TEXTURE_COORD_4 */
- /* GL_MAP2_VERTEX_3 */
- /* GL_MAP2_VERTEX_4 */
-
- /* MaterialFace */
- /* GL_FRONT */
- /* GL_BACK */
- /* GL_FRONT_AND_BACK */
-
- /* MaterialParameter */
- public static final int GL_EMISSION = 0x1600;
- public static final int GL_SHININESS = 0x1601;
- public static final int GL_AMBIENT_AND_DIFFUSE = 0x1602;
- public static final int GL_COLOR_INDEXES = 0x1603;
- /* GL_AMBIENT */
- /* GL_DIFFUSE */
- /* GL_SPECULAR */
-
- /* MatrixMode */
- public static final int GL_MODELVIEW = 0x1700;
- public static final int GL_PROJECTION = 0x1701;
- public static final int GL_TEXTURE = 0x1702;
-
- /* MeshMode1 */
- /* GL_POINT */
- /* GL_LINE */
-
- /* MeshMode2 */
- /* GL_POINT */
- /* GL_LINE */
- /* GL_FILL */
-
- /* NormalPointerType */
- /* GL_BYTE */
- /* GL_SHORT */
- /* GL_INT */
- /* GL_FLOAT */
- /* GL_DOUBLE */
-
- /* PixelCopyType */
- public static final int GL_COLOR = 0x1800;
- public static final int GL_DEPTH = 0x1801;
- public static final int GL_STENCIL = 0x1802;
-
- /* PixelFormat */
- public static final int GL_COLOR_INDEX = 0x1900;
- public static final int GL_STENCIL_INDEX = 0x1901;
- public static final int GL_DEPTH_COMPONENT = 0x1902;
- public static final int GL_RED = 0x1903;
- public static final int GL_GREEN = 0x1904;
- public static final int GL_BLUE = 0x1905;
- public static final int GL_ALPHA = 0x1906;
- public static final int GL_RGB = 0x1907;
- public static final int GL_RGBA = 0x1908;
- public static final int GL_LUMINANCE = 0x1909;
- public static final int GL_LUMINANCE_ALPHA = 0x190A;
-
- /* PixelMap */
- /* GL_PIXEL_MAP_I_TO_I */
- /* GL_PIXEL_MAP_S_TO_S */
- /* GL_PIXEL_MAP_I_TO_R */
- /* GL_PIXEL_MAP_I_TO_G */
- /* GL_PIXEL_MAP_I_TO_B */
- /* GL_PIXEL_MAP_I_TO_A */
- /* GL_PIXEL_MAP_R_TO_R */
- /* GL_PIXEL_MAP_G_TO_G */
- /* GL_PIXEL_MAP_B_TO_B */
- /* GL_PIXEL_MAP_A_TO_A */
-
- /* PixelStore */
- /* GL_UNPACK_SWAP_BYTES */
- /* GL_UNPACK_LSB_FIRST */
- /* GL_UNPACK_ROW_LENGTH */
- /* GL_UNPACK_SKIP_ROWS */
- /* GL_UNPACK_SKIP_PIXELS */
- /* GL_UNPACK_ALIGNMENT */
- /* GL_PACK_SWAP_BYTES */
- /* GL_PACK_LSB_FIRST */
- /* GL_PACK_ROW_LENGTH */
- /* GL_PACK_SKIP_ROWS */
- /* GL_PACK_SKIP_PIXELS */
- /* GL_PACK_ALIGNMENT */
-
- /* PixelTransfer */
- /* GL_MAP_COLOR */
- /* GL_MAP_STENCIL */
- /* GL_INDEX_SHIFT */
- /* GL_INDEX_OFFSET */
- /* GL_RED_SCALE */
- /* GL_RED_BIAS */
- /* GL_GREEN_SCALE */
- /* GL_GREEN_BIAS */
- /* GL_BLUE_SCALE */
- /* GL_BLUE_BIAS */
- /* GL_ALPHA_SCALE */
- /* GL_ALPHA_BIAS */
- /* GL_DEPTH_SCALE */
- /* GL_DEPTH_BIAS */
-
- /* PixelType */
- public static final int GL_BITMAP = 0x1A00;
- /* GL_BYTE */
- /* GL_UNSIGNED_BYTE */
- /* GL_SHORT */
- /* GL_UNSIGNED_SHORT */
- /* GL_INT */
- /* GL_UNSIGNED_INT */
- /* GL_FLOAT */
-
- /* PolygonMode */
- public static final int GL_POINT = 0x1B00;
- public static final int GL_LINE = 0x1B01;
- public static final int GL_FILL = 0x1B02;
-
- /* ReadBufferMode */
- /* GL_FRONT_LEFT */
- /* GL_FRONT_RIGHT */
- /* GL_BACK_LEFT */
- /* GL_BACK_RIGHT */
- /* GL_FRONT */
- /* GL_BACK */
- /* GL_LEFT */
- /* GL_RIGHT */
- /* GL_AUX0 */
- /* GL_AUX1 */
- /* GL_AUX2 */
- /* GL_AUX3 */
-
- /* RenderingMode */
- public static final int GL_RENDER = 0x1C00;
- public static final int GL_FEEDBACK = 0x1C01;
- public static final int GL_SELECT = 0x1C02;
-
- /* ShadingModel */
- public static final int GL_FLAT = 0x1D00;
- public static final int GL_SMOOTH = 0x1D01;
-
- /* StencilFunction */
- /* GL_NEVER */
- /* GL_LESS */
- /* GL_EQUAL */
- /* GL_LEQUAL */
- /* GL_GREATER */
- /* GL_NOTEQUAL */
- /* GL_GEQUAL */
- /* GL_ALWAYS */
-
- /* StencilOp */
- /* GL_ZERO */
- public static final int GL_KEEP = 0x1E00;
- public static final int GL_REPLACE = 0x1E01;
- public static final int GL_INCR = 0x1E02;
- public static final int GL_DECR = 0x1E03;
- /* GL_INVERT */
-
- /* StringName */
- public static final int GL_VENDOR = 0x1F00;
- public static final int GL_RENDERER = 0x1F01;
- public static final int GL_VERSION = 0x1F02;
- public static final int GL_EXTENSIONS = 0x1F03;
-
- /* TextureCoordName */
- public static final int GL_S = 0x2000;
- public static final int GL_T = 0x2001;
- public static final int GL_R = 0x2002;
- public static final int GL_Q = 0x2003;
-
- /* TexCoordPointerType */
- /* GL_SHORT */
- /* GL_INT */
- /* GL_FLOAT */
- /* GL_DOUBLE */
-
- /* TextureEnvMode */
- public static final int GL_MODULATE = 0x2100;
- public static final int GL_DECAL = 0x2101;
- /* GL_BLEND */
- /* GL_REPLACE */
-
- /* TextureEnvParameter */
- public static final int GL_TEXTURE_ENV_MODE = 0x2200;
- public static final int GL_TEXTURE_ENV_COLOR = 0x2201;
-
- /* TextureEnvTarget */
- public static final int GL_TEXTURE_ENV = 0x2300;
-
- /* TextureGenMode */
- public static final int GL_EYE_LINEAR = 0x2400;
- public static final int GL_OBJECT_LINEAR = 0x2401;
- public static final int GL_SPHERE_MAP = 0x2402;
-
- /* TextureGenParameter */
- public static final int GL_TEXTURE_GEN_MODE = 0x2500;
- public static final int GL_OBJECT_PLANE = 0x2501;
- public static final int GL_EYE_PLANE = 0x2502;
-
- /* TextureMagFilter */
- public static final int GL_NEAREST = 0x2600;
- public static final int GL_LINEAR = 0x2601;
-
- /* TextureMinFilter */
- /* GL_NEAREST */
- /* GL_LINEAR */
- public static final int GL_NEAREST_MIPMAP_NEAREST = 0x2700;
- public static final int GL_LINEAR_MIPMAP_NEAREST = 0x2701;
- public static final int GL_NEAREST_MIPMAP_LINEAR = 0x2702;
- public static final int GL_LINEAR_MIPMAP_LINEAR = 0x2703;
-
- /* TextureParameterName */
- public static final int GL_TEXTURE_MAG_FILTER = 0x2800;
- public static final int GL_TEXTURE_MIN_FILTER = 0x2801;
- public static final int GL_TEXTURE_WRAP_S = 0x2802;
- public static final int GL_TEXTURE_WRAP_T = 0x2803;
- /* GL_TEXTURE_BORDER_COLOR */
- /* GL_TEXTURE_PRIORITY */
-
- /* TextureTarget */
- /* GL_TEXTURE_1D */
- /* GL_TEXTURE_2D */
- /* GL_PROXY_TEXTURE_1D */
- /* GL_PROXY_TEXTURE_2D */
-
- /* TextureWrapMode */
- public static final int GL_CLAMP = 0x2900;
- public static final int GL_REPEAT = 0x2901;
-
- /* VertexPointerType */
- /* GL_SHORT */
- /* GL_INT */
- /* GL_FLOAT */
- /* GL_DOUBLE */
-
- /* ClientAttribMask */
- 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_CLIENT_ALL_ATTRIB_BITS = 0xffffffff;
-
- /* polygon_offset */
- public static final int GL_POLYGON_OFFSET_FACTOR = 0x8038;
- public static final int GL_POLYGON_OFFSET_UNITS = 0x2A00;
- public static final int GL_POLYGON_OFFSET_POINT = 0x2A01;
- public static final int GL_POLYGON_OFFSET_LINE = 0x2A02;
- public static final int GL_POLYGON_OFFSET_FILL = 0x8037;
-
- /* texture */
- public static final int GL_ALPHA4 = 0x803B;
- public static final int GL_ALPHA8 = 0x803C;
- public static final int GL_ALPHA12 = 0x803D;
- public static final int GL_ALPHA16 = 0x803E;
- public static final int GL_LUMINANCE4 = 0x803F;
- public static final int GL_LUMINANCE8 = 0x8040;
- public static final int GL_LUMINANCE12 = 0x8041;
- public static final int GL_LUMINANCE16 = 0x8042;
- public static final int GL_LUMINANCE4_ALPHA4 = 0x8043;
- public static final int GL_LUMINANCE6_ALPHA2 = 0x8044;
- public static final int GL_LUMINANCE8_ALPHA8 = 0x8045;
- public static final int GL_LUMINANCE12_ALPHA4 = 0x8046;
- public static final int GL_LUMINANCE12_ALPHA12 = 0x8047;
- public static final int GL_LUMINANCE16_ALPHA16 = 0x8048;
- public static final int GL_INTENSITY = 0x8049;
- public static final int GL_INTENSITY4 = 0x804A;
- public static final int GL_INTENSITY8 = 0x804B;
- public static final int GL_INTENSITY12 = 0x804C;
- public static final int GL_INTENSITY16 = 0x804D;
- public static final int GL_R3_G3_B2 = 0x2A10;
- public static final int GL_RGB4 = 0x804F;
- public static final int GL_RGB5 = 0x8050;
- public static final int GL_RGB8 = 0x8051;
- public static final int GL_RGB10 = 0x8052;
- public static final int GL_RGB12 = 0x8053;
- public static final int GL_RGB16 = 0x8054;
- public static final int GL_RGBA2 = 0x8055;
- public static final int GL_RGBA4 = 0x8056;
- public static final int GL_RGB5_A1 = 0x8057;
- public static final int GL_RGBA8 = 0x8058;
- public static final int GL_RGB10_A2 = 0x8059;
- public static final int GL_RGBA12 = 0x805A;
- public static final int GL_RGBA16 = 0x805B;
- public static final int GL_TEXTURE_RED_SIZE = 0x805C;
- public static final int GL_TEXTURE_GREEN_SIZE = 0x805D;
- public static final int GL_TEXTURE_BLUE_SIZE = 0x805E;
- public static final int GL_TEXTURE_ALPHA_SIZE = 0x805F;
- public static final int GL_TEXTURE_LUMINANCE_SIZE = 0x8060;
- public static final int GL_TEXTURE_INTENSITY_SIZE = 0x8061;
- public static final int GL_PROXY_TEXTURE_1D = 0x8063;
- public static final int GL_PROXY_TEXTURE_2D = 0x8064;
-
- /* texture_object */
- public static final int GL_TEXTURE_PRIORITY = 0x8066;
- public static final int GL_TEXTURE_RESIDENT = 0x8067;
- public static final int GL_TEXTURE_BINDING_1D = 0x8068;
- public static final int GL_TEXTURE_BINDING_2D = 0x8069;
-
- /* vertex_array */
- public static final int GL_VERTEX_ARRAY = 0x8074;
- public static final int GL_NORMAL_ARRAY = 0x8075;
- public static final int GL_COLOR_ARRAY = 0x8076;
- public static final int GL_INDEX_ARRAY = 0x8077;
- public static final int GL_TEXTURE_COORD_ARRAY = 0x8078;
- public static final int GL_EDGE_FLAG_ARRAY = 0x8079;
- public static final int GL_VERTEX_ARRAY_SIZE = 0x807A;
- public static final int GL_VERTEX_ARRAY_TYPE = 0x807B;
- public static final int GL_VERTEX_ARRAY_STRIDE = 0x807C;
- public static final int GL_NORMAL_ARRAY_TYPE = 0x807E;
- public static final int GL_NORMAL_ARRAY_STRIDE = 0x807F;
- public static final int GL_COLOR_ARRAY_SIZE = 0x8081;
- public static final int GL_COLOR_ARRAY_TYPE = 0x8082;
- public static final int GL_COLOR_ARRAY_STRIDE = 0x8083;
- public static final int GL_INDEX_ARRAY_TYPE = 0x8085;
- public static final int GL_INDEX_ARRAY_STRIDE = 0x8086;
- public static final int GL_TEXTURE_COORD_ARRAY_SIZE = 0x8088;
- public static final int GL_TEXTURE_COORD_ARRAY_TYPE = 0x8089;
- public static final int GL_TEXTURE_COORD_ARRAY_STRIDE = 0x808A;
- public static final int GL_EDGE_FLAG_ARRAY_STRIDE = 0x808C;
- public static final int GL_VERTEX_ARRAY_POINTER = 0x808E;
- public static final int GL_NORMAL_ARRAY_POINTER = 0x808F;
- public static final int GL_COLOR_ARRAY_POINTER = 0x8090;
- public static final int GL_INDEX_ARRAY_POINTER = 0x8091;
- public static final int GL_TEXTURE_COORD_ARRAY_POINTER = 0x8092;
- public static final int GL_EDGE_FLAG_ARRAY_POINTER = 0x8093;
- public static final int GL_V2F = 0x2A20;
- public static final int GL_V3F = 0x2A21;
- public static final int GL_C4UB_V2F = 0x2A22;
- public static final int GL_C4UB_V3F = 0x2A23;
- public static final int GL_C3F_V3F = 0x2A24;
- public static final int GL_N3F_V3F = 0x2A25;
- public static final int GL_C4F_N3F_V3F = 0x2A26;
- public static final int GL_T2F_V3F = 0x2A27;
- public static final int GL_T4F_V4F = 0x2A28;
- public static final int GL_T2F_C4UB_V3F = 0x2A29;
- public static final int GL_T2F_C3F_V3F = 0x2A2A;
- public static final int GL_T2F_N3F_V3F = 0x2A2B;
- public static final int GL_T2F_C4F_N3F_V3F = 0x2A2C;
- public static final int GL_T4F_C4F_N3F_V4F = 0x2A2D;
-
- /* Extensions */
- public static final int GL_EXT_vertex_array = 1;
- public static final int GL_EXT_bgra = 1;
- public static final int GL_EXT_paletted_texture = 1;
- public static final int GL_WIN_swap_hint = 1;
- public static final int GL_WIN_draw_range_elements = 1;
- // public static final int GL_WIN_phong_shading = 1;
- // public static final int GL_WIN_specular_fog = 1;
-
- /* EXT_vertex_array */
- public static final int GL_VERTEX_ARRAY_EXT = 0x8074;
- public static final int GL_NORMAL_ARRAY_EXT = 0x8075;
- public static final int GL_COLOR_ARRAY_EXT = 0x8076;
- public static final int GL_INDEX_ARRAY_EXT = 0x8077;
- public static final int GL_TEXTURE_COORD_ARRAY_EXT = 0x8078;
- public static final int GL_EDGE_FLAG_ARRAY_EXT = 0x8079;
- public static final int GL_VERTEX_ARRAY_SIZE_EXT = 0x807A;
- public static final int GL_VERTEX_ARRAY_TYPE_EXT = 0x807B;
- public static final int GL_VERTEX_ARRAY_STRIDE_EXT = 0x807C;
- public static final int GL_VERTEX_ARRAY_COUNT_EXT = 0x807D;
- public static final int GL_NORMAL_ARRAY_TYPE_EXT = 0x807E;
- public static final int GL_NORMAL_ARRAY_STRIDE_EXT = 0x807F;
- public static final int GL_NORMAL_ARRAY_COUNT_EXT = 0x8080;
- public static final int GL_COLOR_ARRAY_SIZE_EXT = 0x8081;
- public static final int GL_COLOR_ARRAY_TYPE_EXT = 0x8082;
- public static final int GL_COLOR_ARRAY_STRIDE_EXT = 0x8083;
- public static final int GL_COLOR_ARRAY_COUNT_EXT = 0x8084;
- public static final int GL_INDEX_ARRAY_TYPE_EXT = 0x8085;
- public static final int GL_INDEX_ARRAY_STRIDE_EXT = 0x8086;
- public static final int GL_INDEX_ARRAY_COUNT_EXT = 0x8087;
- public static final int GL_TEXTURE_COORD_ARRAY_SIZE_EXT = 0x8088;
- public static final int GL_TEXTURE_COORD_ARRAY_TYPE_EXT = 0x8089;
- public static final int GL_TEXTURE_COORD_ARRAY_STRIDE_EXT = 0x808A;
- public static final int GL_TEXTURE_COORD_ARRAY_COUNT_EXT = 0x808B;
- public static final int GL_EDGE_FLAG_ARRAY_STRIDE_EXT = 0x808C;
- public static final int GL_EDGE_FLAG_ARRAY_COUNT_EXT = 0x808D;
- public static final int GL_VERTEX_ARRAY_POINTER_EXT = 0x808E;
- public static final int GL_NORMAL_ARRAY_POINTER_EXT = 0x808F;
- public static final int GL_COLOR_ARRAY_POINTER_EXT = 0x8090;
- public static final int GL_INDEX_ARRAY_POINTER_EXT = 0x8091;
- public static final int GL_TEXTURE_COORD_ARRAY_POINTER_EXT = 0x8092;
- public static final int GL_EDGE_FLAG_ARRAY_POINTER_EXT = 0x8093;
- public static final int GL_DOUBLE_EXT = GL_DOUBLE;
-
- /* EXT_bgra */
- public static final int GL_BGR_EXT = 0x80E0;
- public static final int GL_BGRA_EXT = 0x80E1;
-
- /* EXT_paletted_texture */
-
- /* These must match the GL_COLOR_TABLE_*_SGI enumerants */
- public static final int GL_COLOR_TABLE_FORMAT_EXT = 0x80D8;
- public static final int GL_COLOR_TABLE_WIDTH_EXT = 0x80D9;
- public static final int GL_COLOR_TABLE_RED_SIZE_EXT = 0x80DA;
- public static final int GL_COLOR_TABLE_GREEN_SIZE_EXT = 0x80DB;
- public static final int GL_COLOR_TABLE_BLUE_SIZE_EXT = 0x80DC;
- public static final int GL_COLOR_TABLE_ALPHA_SIZE_EXT = 0x80DD;
- public static final int GL_COLOR_TABLE_LUMINANCE_SIZE_EXT = 0x80DE;
- public static final int GL_COLOR_TABLE_INTENSITY_SIZE_EXT = 0x80DF;
-
- 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_INDEX12_EXT = 0x80E6;
- public static final int GL_COLOR_INDEX16_EXT = 0x80E7;
-
- /* WIN_draw_range_elements */
- public static final int GL_MAX_ELEMENTS_VERTICES_WIN = 0x80E8;
- public static final int GL_MAX_ELEMENTS_INDICES_WIN = 0x80E9;
-
- /* WIN_phong_shading */
- public static final int GL_PHONG_WIN = 0x80EA;
- public static final int GL_PHONG_HINT_WIN = 0x80EB;
-
- /* WIN_specular_fog */
- public static final int GL_FOG_SPECULAR_TEXTURE_WIN = 0x80EC;
-
- /* For compatibility with OpenGL v1.0 */
- public static final int GL_LOGIC_OP = GL_INDEX_LOGIC_OP;
- public static final int GL_TEXTURE_COMPONENTS = GL_TEXTURE_INTERNAL_FORMAT;
-
- public static final native void glAccum (int op, float value);
- public static final native void glAlphaFunc (int func, float ref);
- public static final native boolean glAreTexturesResident (int n, int[] textures, boolean[] residences);
- public static final native void glArrayElement (int index);
- public static final native void glBegin (int mode);
- public static final native void glEnd ();
- public static final native void glBindTexture (int target, int texture);
- public static final native void glBitmap (int width, int height, float xorig, float yorig, float xmove, float ymove, byte[] bitmap);
- public static final native void glBlendFunc (int sfactor, int dfactor);
- public static final native void glCallList (int list);
- public static final native void glCallLists (int n, int type, byte[] lists);
- public static final native void glCallLists (int n, int type, char[] lists);
- public static final native void glCallLists (int n, int type, int[] lists);
- public static final native void glClear (int mask);
- public static final native void glClearAccum (float red, float green, float blue, float alpha);
- public static final native void glClearColor (float red, float green, float blue, float alpha);
- public static final native void glClearDepth (double depth);
- public static final native void glClearIndex (float c);
- public static final native void glClearStencil (int s);
- public static final native void glClipPlane (int plane, double[] equation);
- public static final native void glColor3b (byte red, byte green, byte blue);
- public static final native void glColor3d (double red, double green, double blue);
- public static final native void glColor3f (float red, float green, float blue);
- public static final native void glColor3i (int red, int green, int blue);
- public static final native void glColor3s (short red, short green, short blue);
- public static final native void glColor3ub (byte red, byte green, byte blue);
- public static final native void glColor3ui (int red, int green, int blue);
- public static final native void glColor3us (short red, short green, short blue);
- public static final native void glColor4b (byte red, byte green, byte blue, byte alpha);
- public static final native void glColor4d (double red, double green, double blue, double alpha);
- public static final native void glColor4f (float red, float green, float blue, float alpha);
- public static final native void glColor4i (int red, int green, int blue, int alpha);
- public static final native void glColor4s (short red, short green, short blue, short alpha);
- public static final native void glColor4ub (byte red, byte green, byte blue, byte alpha);
- public static final native void glColor4ui (int red, int green, int blue, int alpha);
- public static final native void glColor4us (short red, short green, short blue, short alpha);
- public static final native void glColor3bv (byte[] v);
- public static final native void glColor3dv (double[] v);
- public static final native void glColor3fv (float[] v);
- public static final native void glColor3iv (int[] v);
- public static final native void glColor3sv (short[] v);
- public static final native void glColor3ubv (byte[] v);
- public static final native void glColor3uiv (int[] v);
- public static final native void glColor3usv (short[] v);
- public static final native void glColor4bv (byte[] v);
- public static final native void glColor4dv (double[] v);
- public static final native void glColor4fv (float[] v);
- public static final native void glColor4iv (int[] v);
- public static final native void glColor4ubv (byte[] v);
- public static final native void glColor4uiv (int[] v);
- public static final native void glColor4usv (short[] v);
- public static final native void glColorMask (boolean red, boolean green, boolean blue, boolean alpha);
- public static final native void glColorMaterial (int face, int mode);
- public static final native void glColorPointer (int size, int type, int stride, int[] pointer);
- //public static final native void glColorTableEXT (int target, int internalFormat, int width, int format, int type, int[] data);
- //public static final native void glColorSubTableEXT (int target, int start, int count, int format, int type, int[] data);
- public static final native void glCopyPixels (int x, int y, int width, int height, int type);
- public static final native void glCopyTexImage1D (int target, int level, int internalFormat, int x, int y, int width, int border);
- public static final native void glCopyTexImage2D (int target, int level, int internalFormat, int x, int y, int width, int height, int border);
- public static final native void glCopyTexSubImage1D (int target, int level, int xoffset, int x, int y, int width);
- public static final native void glCopyTexSubImage2D (int target, int level, int xoffset, int yoffset, int x, int y, int width, int height);
- public static final native void glCullFace (int mode);
- public static final native void glDeleteLists (int list, int range);
- public static final native void glDeleteTextures (int n, int[] textures);
- public static final native void glDepthFunc (int func);
- public static final native void glDepthMask (boolean flag);
- public static final native void glDepthRange (double znear, double zfar);
- public static final native void glDrawArrays (int mode, int first, int count);
- public static final native void glDrawBuffer (int mode);
- public static final native void glDrawElements (int mode, int count, int type, int[] indices); /* MULTIPLES TYPES */
- public static final native void glDrawPixels (int width, int height, int format, int type, int[] pixels); /* MULTIPLES TYPES */
- public static final native void glEdgeFlag (boolean flag);
- public static final native void glEdgeFlagv (boolean[] flag);
- public static final native void glEdgeFlagPointer (int stride, boolean[] pointer);
- public static final native void glEnable (int cap);
- public static final native void glDisable (int cap);
- public static final native void glEnableClientState (int array);
- public static final native void glDisableClientState (int array);
- public static final native void glEvalCoord1d (double u);
- public static final native void glEvalCoord1f (float u);
- public static final native void glEvalCoord2d (double u, double v);
- public static final native void glEvalCoord2f (float u, float v);
- public static final native void glEvalCoord1dv (double[] u);
- public static final native void glEvalCoord1fv (float[] u);
- public static final native void glEvalCoord2dv (double[] u);
- public static final native void glEvalCoord2fv (float[] u);
- public static final native void glEvalMesh1 (int mode, int i1, int i2);
- public static final native void glEvalMesh2 (int mode, int i1, int i2, int j1, int j2);
- public static final native void glEvalPoint1 (int i);
- public static final native void glEvalPoint2 (int i, int j);
- public static final native void glFeedbackBuffer (int size, int type, float[] buffer);
- public static final native void glFinish ();
- public static final native void glFlush ();
- public static final native void glFogf (int pname, float param);
- public static final native void glFogi (int pname, int param);
- public static final native void glFogfv (int pname, float[] params);
- public static final native void glFogiv (int pname, int[] params);
- public static final native void glFrontFace (int mode);
- public static final native void glFrustum (double left, double right, double bottom, double top, double znear, double zfar);
- public static final native int glGenLists (int range);
- public static final native void glGenTextures (int n, int[] textures);
- public static final native void glGetBooleanv (int pname, boolean[] params);
- public static final native void glGetDoublev (int pname, double[] params);
- public static final native void glGetFloatv (int pname, float[] params);
- public static final native void glGetIntegerv (int pname, int[] params);
- public static final native void glGetClipPlane (int plane, double[] equation);
- //public static final native void glGetColorTableEXT (int target, int format, int type, int[] data);
- //public static final native void glGetColorTableParameterfvEXT (int target, int pname, float[] params);
- //public static final native void glGetColorTableParameterivEXT (int target, int pname, int[] params);
- public static final native int glGetError ();
- public static final native void glGetLightfv (int light, int pname, float[] params);
- public static final native void glGetLightiv (int light, int pname, int[] params);
- public static final native void glGetMapdv (int tagert, int query, double[] v);
- public static final native void glGetMapfv (int tagert, int query, float[] v);
- public static final native void glGetMapiv (int tagert, int query, int[] v);
- public static final native void glGetMaterialfv (int face, int pname, float[] params);
- public static final native void glGetMaterialiv (int face, int pname, int[] params);
- public static final native void glGetPixelMapfv (int map, float[] values);
- public static final native void glGetPixelMapuiv (int map, int[] values);
- public static final native void glGetPixelMapusv (int map, short[] values);
- public static final native void glGetPointerv (int pname, int[] params);
- /* TEST */
- public static final native void glGetPolygonStipple (byte[] mask);
- public static final native int glGetString (int name);
- /* SHOULD RETURN A STRING */
- public static final native void glGetTexEnvfv (int target, int pname, float[] params);
- public static final native void glGetTexEnviv (int target, int pname, int[] params);
- public static final native void glGetTexGendv (int coord, int pname, double[] params);
- public static final native void glGetTexGenfv (int coord, int pname, float[] params);
- public static final native void glGetTexGeniv (int coord, int pname, int[] params);
- public static final native void glGetTexImage (int target, int level, int format, int type, int[] pixels); /* MULTIPLES TYPES ARRAY */
- public static final native void glGetTexLevelParameterfv (int target, int level, int pname, float[] params);
- public static final native void glGetTexLevelParameteriv (int target, int level, int pname, int[] params);
- public static final native void glGetTexParameterfv (int target, int pname, float[] params);
- public static final native void glGetTexParameteriv (int target, int pname, int[] params);
- public static final native void glHint (int target, int mode);
- public static final native void glIndexd (double c);
- public static final native void glIndexf (float c);
- public static final native void glIndexi (int c);
- public static final native void glIndexs (short c);
- public static final native void glIndexdv (double[] c);
- public static final native void glIndexfv (float[] c);
- public static final native void glIndexiv (int[] c);
- public static final native void glIndexsv (short[] c);
- public static final native void glIndexMask (int mask);
- public static final native void glIndexPointer (int type, int stride, int[] pointer);
- /* MULTIPLES TYPES */
- public static final native void glInitNames ();
- public static final native void glInterleavedArrays (int format, int stride, int[] pointer);
- /* CHECK */
- public static final native boolean glIsEnabled (int cap);
- public static final native boolean glIsList (int list);
- public static final native boolean glIsTexture (int texture);
- public static final native void glLightf (int light, int pname, float param);
- public static final native void glLighti (int light, int pname, int param);
- public static final native void glLightfv (int light, int pname, float[] param);
- //public static final native void glLightfv (int light, int pname, int param);
- public static final native void glLightiv (int light, int pname, int[] param);
- public static final native void glLightModelf (int pname, float param);
- public static final native void glLightModeli (int pname, int param);
- public static final native void glLightModelfv (int pname, float[] param);
- public static final native void glLightModeliv (int pname, int[] param);
- public static final native void glLineStipple (int factor, short pattern);
- public static final native void glLineWidth (float width);
- public static final native void glListBase (int base);
- public static final native void glLoadIdentity ();
- public static final native void glLoadMatrixd (double[] m);
- public static final native void glLoadMatrixf (float[] m);
- public static final native void glLoadName (int name);
- public static final native void glLogicOp (int opcode);
- public static final native void glMap1d (int target, double u1, double u2, int stride, int order, double[] points);
- public static final native void glMap1f (int target, float u1, float u2, int stride, int order, float[] points);
- public static final native void glMap2d (int target, double u1, double u2, int ustride, int uorder, double v1, double v2, int vstride, int vorder, double[] points);
- public static final native void glMap2f (int target, float u1, float u2, int ustride, int uorder, float v1, float v2, int vstride, int vorder, float[] points);
- public static final native void glMapGrid1d (int un, double u1, double u2);
- public static final native void glMapGrid1f (int un, float u1, float u2);
- public static final native void glMapGrid2d (int un, double u1, double u2, int vm, double v1, double v2);
- public static final native void glMapGrid2f (int un, float u1, float u2, int vm, float v1, float v2);
- public static final native void glMaterialf (int face, int pname, float param);
- public static final native void glMateriali (int face, int pname, int param);
- public static final native void glMaterialfv (int face, int pname, float[] param);
- public static final native void glMaterialiv (int face, int pname, int[] param);
- public static final native void glMatrixMode (int mode);
- public static final native void glMultMatrixd (double[] m);
- public static final native void glMultMatrixf (float[] m);
- public static final native void glNewList (int list, int mode);
- public static final native void glEndList ();
- public static final native void glNormal3b (byte nx, byte ny, byte nz);
- public static final native void glNormal3d (double nx, double ny, double nz);
- public static final native void glNormal3f (float nx, float ny, float nz);
- public static final native void glNormal3i (int nx, int ny, int nz);
- public static final native void glNormal3s (short nx, short ny, short nz);
- public static final native void glNormal3bv (byte[] v);
- public static final native void glNormal3dv (double[] v);
- public static final native void glNormal3fv (float[] v);
- public static final native void glNormal3iv (int[] v);
- public static final native void glNormal3sv (short[] v);
- public static final native void glNormalPointer (int type, int stride, int[] pointer); /* MULTIPLES TYPES ARRAY */
- public static final native void glOrtho (double left, double right, double bottom, double top, double znear, double zfar);
- public static final native void glPassThrough (float token);
- public static final native void glPixelMapfv (int map, int mapsize, float[] values);
- public static final native void glPixelMapuiv (int map, int mapsize, int[] values);
- public static final native void glPixelMapusv (int map, int mapsize, short[] values);
- public static final native void glPixelStoref (int pname, float param);
- public static final native void glPixelStorei (int pname, int param);
- public static final native void glPixelTransferf (int pname, float param);
- public static final native void glPixelTransferi (int pname, int param);
- public static final native void glPixelZoom (float xfactor, float yfactor);
- public static final native void glPointSize (float size);
- public static final native void glPolygonMode (int face, int mode);
- public static final native void glPolygonOffset (float factor, float units);
- public static final native void glPolygonStipple (byte[] mask);
- public static final native void glPrioritizeTextures (int n, int[] textures, float[] priorities);
- public static final native void glPushAttrib (int mask);
- public static final native void glPopAttrib ();
- public static final native void glPushClientAttrib (int mask);
- public static final native void glPopClientAttrib ();
- public static final native void glPushMatrix ();
- public static final native void glPopMatrix ();
- public static final native void glPushName (int name);
- public static final native void glPopName ();
- public static final native void glRasterPos2d (double x, double y);
- public static final native void glRasterPos2f (float x, float y);
- public static final native void glRasterPos2i (int x, int y);
- public static final native void glRasterPos2s (short x, short y);
- public static final native void glRasterPos3d (double x, double y, double z);
- public static final native void glRasterPos3f (float x, float y, float z);
- public static final native void glRasterPos3i (int x, int y, int z);
- public static final native void glRasterPos3s (short x, short y, short z);
- public static final native void glRasterPos4d (double x, double y, double z, double w);
- public static final native void glRasterPos4f (float x, float y, float z, float w);
- public static final native void glRasterPos4i (int x, int y, int z, int w);
- public static final native void glRasterPos4s (short x, short y, short z, short w);
- public static final native void glRasterPos2dv (double[] v);
- public static final native void glRasterPos2fv (float[] v);
- public static final native void glRasterPos2iv (int[] v);
- public static final native void glRasterPos2sv (short[] v);
- public static final native void glRasterPos3dv (double[] v);
- public static final native void glRasterPos3fv (float[] v);
- public static final native void glRasterPos3iv (int[] v);
- public static final native void glRasterPos3sv (short[] v);
- public static final native void glRasterPos4dv (double[] v);
- public static final native void glRasterPos4fv (float[] v);
- public static final native void glRasterPos4iv (int[] v);
- public static final native void glRasterPos4sv (short[] v);
- public static final native void glReadBuffer (int mode);
- public static final native void glReadPixels (int x, int y, int width, int height, int format, int type, int[] pixels); /* MULTIPLES TYPES ARRAY */
- public static final native void glRectd (double x1, double y1, double x2, double y2);
- public static final native void glRectf (float x1, float y1, float x2, float y2);
- public static final native void glRecti (int x1, int y1, int x2, int y2);
- public static final native void glRects (short x1, short y1, short x2, short y2);
- public static final native void glRectdv (double[] v1, double[] v2);
- public static final native void glRectfv (float[] v1, float[] v2);
- public static final native void glRectiv (int[] v1, int[] v2);
- public static final native void glRectsv (short[] v, short[] v2);
- public static final native int glRenderMode (int mode);
- public static final native void glRotated (double angle, double x, double y, double z);
- public static final native void glRotatef (float angle, float x, float y, float z);
- public static final native void glScaled (double x, double y, double z);
- public static final native void glScalef (float x, float y, float z);
- public static final native void glScissor (int x, int y, int width, int height);
- //public static final native void glSelectBuffer (int size, int[] buffer);
- public static final native void glSelectBuffer (int size, int buffer);
- public static final native void glShadeModel (int mode);
- public static final native void glStencilFunc (int func, int ref, int mask);
- public static final native void glStencilMask (int mask);
- public static final native void glStencilOp (int fail, int zfail, int zpass);
- public static final native void glTexCoord1d (double s);
- public static final native void glTexCoord1f (float s);
- public static final native void glTexCoord1i (int s);
- public static final native void glTexCoord1s (short s);
- public static final native void glTexCoord2d (double s, double t);
- public static final native void glTexCoord2f (float s, float t);
- public static final native void glTexCoord2i (int s, int t);
- public static final native void glTexCoord2s (short s, short t);
- public static final native void glTexCoord3d (double s, double t, double r);
- public static final native void glTexCoord3f (float s, float t, float r);
- public static final native void glTexCoord3i (int s, int t, int r);
- public static final native void glTexCoord3s (short s, short t, short r);
- public static final native void glTexCoord4d (double s, double t, double r, double q);
- public static final native void glTexCoord4f (float s, float t, float r, float q);
- public static final native void glTexCoord4i (int s, int t, int r, int q);
- public static final native void glTexCoord4s (short s, short t, short r, short q);
- public static final native void glTexCoord1dv (double[] v);
- public static final native void glTexCoord1fv (float[] v);
- public static final native void glTexCoord1iv (int[] v);
- public static final native void glTexCoord1sv (short[] v);
- public static final native void glTexCoord2dv (double[] v);
- public static final native void glTexCoord2fv (float[] v);
- public static final native void glTexCoord2iv (int[] v);
- public static final native void glTexCoord2sv (short[] v);
- public static final native void glTexCoord3dv (double[] v);
- public static final native void glTexCoord3fv (float[] v);
- public static final native void glTexCoord3iv (int[] v);
- public static final native void glTexCoord3sv (short[] v);
- public static final native void glTexCoord4dv (double[] v);
- public static final native void glTexCoord4fv (float[] v);
- public static final native void glTexCoord4iv (int[] v);
- public static final native void glTexCoord4sv (short[] v);
- public static final native void glTexCoordPointer (int size, int type, int stride, int[] pointer); /*MULTIPLES ARRAYS - CHECK MSDK, COUNT PARAM MISSING */
- public static final native void glTexEnvf (int target, int pname, float param);
- public static final native void glTexEnvi (int target, int pname, int param);
- public static final native void glTexEnvfv (int target, int pname, float[] params);
- public static final native void glTexEnviv (int target, int pname, int[] params);
- public static final native void glTexGend (int coord, int pname, double param);
- public static final native void glTexGenf (int coord, int pname, float param);
- public static final native void glTexGeni (int coord, int pname, int param);
- public static final native void glTexGendv (int coord, int pname, double[] params);
- public static final native void glTexGenfv (int coord, int pname, float[] params);
- public static final native void glTexGeniv (int coord, int pname, int[] params);
- public static final native void glTexImage1D (int target, int level, int internalFormat, int width, int border, int format, int type, int[] pixels); /* MULTIPLES ARRAYS */
- public static final native void glTexImage2D (int target, int level, int internalFormat, int width, int height, int border, int format, int type, byte[] pixels); /* MULTIPLES ARRAYS */
- public static final native void glTexParameterf (int target, int pname, float param);
- public static final native void glTexParameteri (int target, int pname, int param);
- public static final native void glTexParameterfv (int target, int pname, float[] params);
- public static final native void glTexParameteriv (int target, int pname, int[] params);
- public static final native void glTexSubImage1D (int target, int level, int xoffset, int width, int format, int type, int[] pixels); /* MULTIPLES ARRAYS */
- public static final native void glTexSubImage2D (int target, int level, int xoffset, int yoffset, int width, int height, int format, int type, int[] pixels); /* MULTIPLES ARRAYS */
- public static final native void glTranslated (double x, double y, double z);
- public static final native void glTranslatef (float x, float y, float z);
- public static final native void glVertex2d (double x, double y);
- public static final native void glVertex2f (float x, float y);
- public static final native void glVertex2i (int x, int y);
- public static final native void glVertex2s (short x, short y);
- public static final native void glVertex3d (double x, double y, double z);
- public static final native void glVertex3f (float x, float y, float z);
- public static final native void glVertex3i (int x, int y, int z);
- public static final native void glVertex3s (short x, short y, short z);
- public static final native void glVertex4d (double x, double y, double z, double w);
- public static final native void glVertex4f (float x, float y, float z, float w);
- public static final native void glVertex4i (int x, int y, int z, int w);
- public static final native void glVertex4s (short x, short y, short z, short w);
- public static final native void glVertex2dv (double[] v);
- public static final native void glVertex2fv (float[] v);
- public static final native void glVertex2iv (int[] v);
- public static final native void glVertex2sv (short[] v);
- public static final native void glVertex3dv (double[] v);
- public static final native void glVertex3fv (float[] v);
- public static final native void glVertex3iv (int[] v);
- public static final native void glVertex3sv (short[] v);
- public static final native void glVertex4dv (double[] v);
- public static final native void glVertex4fv (float[] v);
- public static final native void glVertex4iv (int[] v);
- public static final native void glVertex4sv (short[] v);
- public static final native void glVertexPointer (int size, int type, int stride, int[] pointer); /* MULTIPLES ARRAYS */
- public static final native void glViewport (int x, int y, int width, int height);
-}
diff --git a/bundles/org.eclipse.swt.opengl/common/org/eclipse/opengl/GLU.java b/bundles/org.eclipse.swt.opengl/common/org/eclipse/opengl/GLU.java
deleted file mode 100755
index 4c1e333d45..0000000000
--- a/bundles/org.eclipse.swt.opengl/common/org/eclipse/opengl/GLU.java
+++ /dev/null
@@ -1,245 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2000, 2003 IBM Corporation and others.
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * IBM Corporation - initial API and implementation
- *******************************************************************************/
-package org.eclipse.opengl;
-
-
-public class GLU {
-
- /* Version */
- public static final int GLU_VERSION_1_1 = 1;
- public static final int GLU_VERSION_1_2 = 1;
-
- /* Errors: (return value 0 = no error) */
- public static final int GLU_INVALID_ENUM = 100900;
- public static final int GLU_INVALID_VALUE = 100901;
- public static final int GLU_OUT_OF_MEMORY = 100902;
- public static final int GLU_INCOMPATIBLE_GL_VERSION = 100903;
-
- /* StringName */
- public static final int GLU_VERSION = 100800;
- public static final int GLU_EXTENSIONS = 100801;
-
-
- /**** Quadric constants ****/
-
- /* QuadricNormal */
- public static final int GLU_SMOOTH = 100000;
- public static final int GLU_FLAT = 100001;
- public static final int GLU_NONE = 100002;
-
- /* QuadricDrawStyle */
- public static final int GLU_POINT = 100010;
- public static final int GLU_LINE = 100011;
- public static final int GLU_FILL = 100012;
- public static final int GLU_SILHOUETTE = 100013;
-
- /* QuadricOrientation */
- public static final int GLU_OUTSIDE = 100020;
- public static final int GLU_INSIDE = 100021;
-
- /* Callback types: */
- /* GLU_ERROR 100103 */
-
-
- /**** Tesselation constants ****/
-
- public static final double GLU_TESS_MAX_COORD = 1.0e150;
-
- /* TessProperty */
- public static final int GLU_TESS_WINDING_RULE = 100140;
- public static final int GLU_TESS_BOUNDARY_ONLY = 100141;
- public static final int GLU_TESS_TOLERANCE = 100142;
-
- /* TessWinding */
- public static final int GLU_TESS_WINDING_ODD = 100130;
- public static final int GLU_TESS_WINDING_NONZERO = 100131;
- public static final int GLU_TESS_WINDING_POSITIVE = 100132;
- public static final int GLU_TESS_WINDING_NEGATIVE = 100133;
- public static final int GLU_TESS_WINDING_ABS_GEQ_TWO = 100134;
-
- /* TessCallback */
- public static final int GLU_TESS_BEGIN = 100100; /* void (CALLBACK*)(GLenum type) */
- public static final int GLU_TESS_VERTEX = 100101; /* void (CALLBACK*)(void *data) */
- public static final int GLU_TESS_END = 100102; /* void (CALLBACK*)(void) */
- public static final int GLU_TESS_ERROR = 100103; /* void (CALLBACK*)(GLenum errno) */
- public static final int GLU_TESS_EDGE_FLAG = 100104; /* void (CALLBACK*)(GLboolean boundaryEdge) */
- public static final int GLU_TESS_COMBINE = 100105; /* void (CALLBACK*)(GLdouble coords[3],
- void *data[4],
- GLfloat weight[4],
- void **dataOut) */
- public static final int GLU_TESS_BEGIN_DATA = 100106; /* void (CALLBACK*)(GLenum type,
- void *polygon_data) */
- public static final int GLU_TESS_VERTEX_DATA = 100107; /* void (CALLBACK*)(void *data,
- void *polygon_data) */
- public static final int GLU_TESS_END_DATA = 100108; /* void (CALLBACK*)(void *polygon_data) */
- public static final int GLU_TESS_ERROR_DATA = 100109; /* void (CALLBACK*)(GLenum errno,
- void *polygon_data) */
- public static final int GLU_TESS_EDGE_FLAG_DATA = 100110; /* void (CALLBACK*)(GLboolean boundaryEdge,
- void *polygon_data) */
- public static final int GLU_TESS_COMBINE_DATA = 100111; /* void (CALLBACK*)(GLdouble coords[3],
- void *data[4],
- GLfloat weight[4],
- void **dataOut,
- void *polygon_data) */
-
- /* TessError */
- 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_MISSING_BEGIN_POLYGON = GLU_TESS_ERROR1;
- public static final int GLU_TESS_MISSING_BEGIN_CONTOUR = GLU_TESS_ERROR2;
- public static final int GLU_TESS_MISSING_END_POLYGON = GLU_TESS_ERROR3;
- public static final int GLU_TESS_MISSING_END_CONTOUR = GLU_TESS_ERROR4;
- public static final int GLU_TESS_COORD_TOO_LARGE = GLU_TESS_ERROR5;
- public static final int GLU_TESS_NEED_COMBINE_CALLBACK = GLU_TESS_ERROR6;
-
- /**** NURBS constants ****/
-
- /* NurbsProperty */
- public static final int GLU_AUTO_LOAD_MATRIX = 100200;
- public static final int GLU_CULLING = 100201;
- public static final int GLU_SAMPLING_TOLERANCE = 100203;
- public static final int GLU_DISPLAY_MODE = 100204;
- public static final int GLU_PARAMETRIC_TOLERANCE = 100202;
- public static final int GLU_SAMPLING_METHOD = 100205;
- public static final int GLU_U_STEP = 100206;
- public static final int GLU_V_STEP = 100207;
-
- /* NurbsSampling */
- public static final int GLU_PATH_LENGTH = 100215;
- public static final int GLU_PARAMETRIC_ERROR = 100216;
- public static final int GLU_DOMAIN_DISTANCE = 100217;
-
-
- /* NurbsTrim */
- public static final int GLU_MAP1_TRIM_2 = 100210;
- public static final int GLU_MAP1_TRIM_3 = 100211;
-
- /* NurbsDisplay */
- /* GLU_FILL 100012 */
- public static final int GLU_OUTLINE_POLYGON = 100240;
- public static final int GLU_OUTLINE_PATCH = 100241;
-
- /* NurbsCallback */
- /* GLU_ERROR 100103 */
-
- /* NurbsErrors */
- public static final int GLU_NURBS_ERROR1 = 100251;
- public static final int GLU_NURBS_ERROR2 = 100252;
- public static final int GLU_NURBS_ERROR3 = 100253;
- 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_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_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_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;
-
- /* Contours types -- obsolete! */
- public static final int GLU_CW = 100120;
- public static final int GLU_CCW = 100121;
- public static final int GLU_INTERIOR = 100122;
- public static final int GLU_EXTERIOR = 100123;
- public static final int GLU_UNKNOWN = 100124;
-
- /* Names without "TESS_" prefix */
- public static final int GLU_BEGIN = GLU_TESS_BEGIN;
- public static final int GLU_VERTEX = GLU_TESS_VERTEX;
- public static final int GLU_END = GLU_TESS_END;
- public static final int GLU_ERROR = GLU_TESS_ERROR;
- public static final int GLU_EDGE_FLAG = GLU_TESS_EDGE_FLAG;
-
-
- public static final native void gluBeginCurve (int nobj);
- public static final native void gluEndCurve (int nobj);
- public static final native void gluBeginPolygon (int tess);
- public static final native void gluEndPolygon (int tess);
- public static final native void gluBeginSurface (int nobj);
- public static final native void gluEndSurface (int nobj);
- public static final native void gluBeginTrim (int nobj);
- public static final native void gluEndTrim (int nobj);
- public static final native int gluBuild1DMipmaps (int target, int componenets, int width, int format, int type, int data); /* MULTIPLES TYPES ARRAY */
- public static final native int gluBuild2DMipmaps (int target, int componenets, int width, int height, int format, int type, byte[] data); /* MULTIPLES TYPES ARRAY */
- public static final native void gluCylinder (int qobj, double baseRadius, double topRadius, double height, int slices, int stacks);
- public static final native void gluDeleteNurbsRenderer (int nobj);
- public static final native void gluDeleteQuadric (int qobj);
- public static final native void gluDeleteTess (int tess);
- public static final native void gluDisk (int qobj, double innerRadius, double outerRadius, int slices, int loops);
- public static final native int gluErrorString (int errCode); /* SHOULD RETURN A STRING */
- public static final native void gluGetNurbsProperty (int nobj, int property, float[] value);
- public static final native int gluGetString (int name); /* SHOULD RETURN A STRING */
- public static final native void gluGetTessProperty (int tess, int which, double[] value);
- public static final native void gluLoadSamplingMatrices (int nobj, float[] modelMatrix, float[] projMatrix, int[] viewport);
- public static final native void gluLookAt (double eyex, double eyey, double eyez, double centerx, double centery, double centerz, double upx, double upy, double upz);
- public static final native int gluNewNurbsRenderer ();
- public static final native int gluNewQuadric ();
- public static final native int gluNewTess ();
- public static final native void gluNextContour (int tess, int type);
- public static final native void gluNurbsCallback (int nobj, int which, int fn);
- public static final native void gluNurbsCurve (int nobj, int nknots, float[] knot, int stride, float[] ctlarray, int order, int type);
- public static final native void gluNurbsProperty (int nobj, int property, float value);
- public static 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);
- public static final native void gluOrtho2D (double left, double right, double bottom, double top);
- public static final native void gluPartialDisk (int qobj, double innerRadius, double outerRadius, int slices, int loops, double startAngle, double sweepAngle);
- public static final native void gluPerspective (double fovy, double aspect, double zNear, double zFar);
- public static final native void gluPickMatrix (double x, double y, double width, double height, int[] viewport);
- public static final native int gluProject (double objx, double objy, double objz,double[] modelMatrix, double[] projMatrix, int[] viewport, double[] winx, double[] winy, double[] winz);
- public static final native void gluPwlCurve (int nobj, int count, float[] array, int stride, int type);
- public static final native void gluQuadricCallback (int qobj, int which, int fn);
- public static final native void gluQuadricDrawStyle (int qobj, int drawStyle);
- public static final native void gluQuadricNormals (int qobj, int normals);
- public static final native void gluQuadricOrientation (int qobj, int orientation);
- public static final native void gluQuadricTexture (int qobj, boolean textureCoords);
- public static final native int gluScaleImage (int format, int widthin, int heightin, int typein, int datain, int widthout, int heightout, int typeout, int dataout); /*MULTIPLES TYPES ARRAYS*/
- public static final native void gluSphere (int qobj, double radius, int slices, int stacks);
- public static final native void gluTessBeginContour (int tess);
- public static final native void gluTessEndContour (int tess);
- public static final native void gluTessBeginPolygon (int tess, int polygon_data);
- public static final native void gluTessEndPolygon (int tess);
- public static final native void gluTessCallback (int tess, int which, int fn);
- public static final native void gluTessNormal (int tess, double x, double y, double z);
- public static final native void gluTessProperty (int tess, int property, double value); /* CHECK MSDN, VALUE'S TYPE IS DOUBLE */
- public static final native void gluTessVertex (int tess, double[] coords, int data);
- public static final native int gluUnProject (double winx, double winy, double winz, double[] modelMatrix, double[] projMatrix, int[] viewport, double[] objx, double[] objy, double[] objz);
-}
diff --git a/bundles/org.eclipse.swt.opengl/common/org/eclipse/swt/opengl/GLData.java b/bundles/org.eclipse.swt.opengl/common/org/eclipse/swt/opengl/GLData.java
deleted file mode 100644
index f25f11d156..0000000000
--- a/bundles/org.eclipse.swt.opengl/common/org/eclipse/swt/opengl/GLData.java
+++ /dev/null
@@ -1,135 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2000, 2005 IBM Corporation and others.
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * IBM Corporation - initial API and implementation
- *******************************************************************************/
-package org.eclipse.swt.opengl;
-
-/**
- * The GLData class is a device-independent description
- * of the pixel format attributes of a GL drawable.
- *
- * @see GLCanvas
- */
-
-public class GLData {
- /**
- * Specifies a double-buffered surface. During context
- * creation, only double-buffered formats are considered
- * when set to true.
- */
- public boolean doubleBuffer;
-
- /**
- * Specifies a stereo surface. During context creation,
- * only stereo formats are considered when set to true.
- */
- public boolean stereo;
-
- /**
- * The size in bits of the color buffer's red channel.
- * During context creation, this specifies the minimum
- * required red bits.
- */
- public int redSize;
-
- /**
- * The size in bits of the color buffer's green channel.
- * During context creation, this specifies the minimum
- * required green bits.
- */
- public int greenSize;
-
- /**
- * The size in bits of the color buffer's blue channel.
- * During context creation, this specifies the minimum
- * required blue bits.
- */
- public int blueSize;
-
- /**
- * The size in bits of the color buffer's alpha channel.
- * During context creation, this specifies the minimum
- * required alpha bits.
- */
- public int alphaSize;
-
- /**
- * The size in bits of the depth buffer. During context
- * creation, the smallest depth buffer of at least the
- * specified value is preferred, or zero for no depth
- * buffer.
- */
- public int depthSize;
-
- /**
- * The desired number of stencil bitplanes. During
- * context creation, the smallest stencil buffer of at
- * least the specified value is preferred, or zero for
- * no stencil buffer.
- */
- public int stencilSize;
-
- /**
- * The size in bits of the accumulation buffer's red
- * channel. During context creation, this specifies the
- * minimum required red bits.
- */
- public int accumRedSize;
-
- /**
- * The size in bits of the accumulation buffer's green
- * channel. During context creation, this specifies the
- * minimum required green bits.
- */
- public int accumGreenSize;
-
- /**
- * The size in bits of the accumulation buffer's blue
- * channel. During context creation, this specifies the
- * minimum required blue bits.
- */
- public int accumBlueSize;
-
- /**
- * The size in bits of the accumulation buffer's alpha
- * channel. During context creation, this specifies the
- * minimum required alpha bits.
- */
- public int accumAlphaSize;
-
- /**
- * The number of multisample buffers used by this context.
- * During context creation, this specifies the minimum
- * number of multisample buffers requested.
- */
- public int sampleBuffers;
-
- /**
- * The number of samples accepted in the multisample buffer.
- * During creation, pixel formats with the smallest number of
- * samples that meets or exceeds the specified minimum number
- * are preferred.
- */
- public int samples;
-
-/**
- * Returns a string containing a concise, human-readable
- * description of the receiver.
- *
- * @return a string representation of the data
- */
-public String toString() {
- return (doubleBuffer ? "doubleBuffer," : "") +
- (stereo ? "stereo," : "") +
- "r:" + redSize + " g:" + greenSize + " b:" + blueSize + " a:" + alphaSize + "," +
- "depth:" + depthSize + ",stencil:" + stencilSize +
- ",accum r:" + accumRedSize + "g:" + accumGreenSize + "b:" + accumBlueSize + "a:" + accumAlphaSize +
- ",sampleBuffers:" + sampleBuffers + ",samples:" + samples;
-}
-}
diff --git a/bundles/org.eclipse.swt.opengl/common/org/eclipse/swt/opengl/ImageDataUtil.java b/bundles/org.eclipse.swt.opengl/common/org/eclipse/swt/opengl/ImageDataUtil.java
deleted file mode 100644
index 2069032fe9..0000000000
--- a/bundles/org.eclipse.swt.opengl/common/org/eclipse/swt/opengl/ImageDataUtil.java
+++ /dev/null
@@ -1,566 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2000, 2003 IBM Corporation and others.
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * IBM Corporation - initial API and implementation
- *******************************************************************************/
-package org.eclipse.swt.opengl;
-
-import org.eclipse.swt.graphics.ImageData;
-import org.eclipse.swt.graphics.PaletteData;
-
-
-public class ImageDataUtil {
- /**
- * Alpha mode, values 0 - 255 specify global alpha level
- */
- static final int
- ALPHA_OPAQUE = 255, // Fully opaque (ignores any alpha data)
- ALPHA_TRANSPARENT = 0, // Fully transparent (ignores any alpha data)
- ALPHA_CHANNEL_SEPARATE = -1, // Use alpha channel from separate alphaData
- ALPHA_CHANNEL_SOURCE = -2, // Use alpha channel embedded in sourceData
- ALPHA_MASK_UNPACKED = -3, // Use transparency mask formed by bytes in alphaData (non-zero is opaque)
- ALPHA_MASK_PACKED = -4, // Use transparency mask formed by packed bits in alphaData
- ALPHA_MASK_INDEX = -5, // Consider source palette indices transparent if in alphaData array
- ALPHA_MASK_RGB = -6; // Consider source RGBs transparent if in RGB888 format alphaData array
-
- /**
- * Data types (internal)
- */
- private static final int
- // direct / true color formats with arbitrary masks & shifts
- TYPE_GENERIC_8 = 0,
- TYPE_GENERIC_16_MSB = 1,
- TYPE_GENERIC_16_LSB = 2,
- TYPE_GENERIC_24 = 3,
- TYPE_GENERIC_32_MSB = 4,
- TYPE_GENERIC_32_LSB = 5,
- // palette indexed color formats
- TYPE_INDEX_8 = 6,
- TYPE_INDEX_4 = 7,
- TYPE_INDEX_2 = 8,
- TYPE_INDEX_1_MSB = 9,
- TYPE_INDEX_1_LSB = 10;
-
- /**
- * Byte and bit order constants.
- */
- static final int LSB_FIRST = 0;
- static final int MSB_FIRST = 1;
-
- /**
- * Blit operation bits to be OR'ed together to specify the desired operation.
- */
- static final int
- BLIT_SRC = 1, // copy source directly, else applies logic operations
- BLIT_ALPHA = 2, // enable alpha blending
- BLIT_DITHER = 4; // enable dithering in low color modes
-
- /**
- * Arbitrary channel width data to 8-bit conversion table.
- */
- static final byte[][] ANY_TO_EIGHT = new byte[9][];
- static {
- for (int b = 0; b < 9; ++b) {
- byte[] data = ANY_TO_EIGHT[b] = new byte[1 << b];
- if (b == 0) continue;
- int inc = 0;
- for (int bit = 0x10000; (bit >>= b) != 0;) inc |= bit;
- for (int v = 0, p = 0; v < 0x10000; v+= inc) data[p++] = (byte)(v >> 8);
- }
- }
-
- /**
- * Blits a direct palette image into a direct palette image.
- * <p>
- * Note: When the source and destination depth, order and masks
- * are pairwise equal and the blitter operation is BLIT_SRC,
- * the masks are ignored. Hence when not changing the image
- * data format, 0 may be specified for the masks.
- * </p>
- *
- * @param op the blitter operation: a combination of BLIT_xxx flags
- * (see BLIT_xxx constants)
- * @param srcData the source byte array containing image data
- * @param srcDepth the source depth: one of 8, 16, 24, 32
- * @param srcStride the source number of bytes per line
- * @param srcOrder the source byte ordering: one of MSB_FIRST or LSB_FIRST;
- * ignored if srcDepth is not 16 or 32
- * @param srcX the top-left x-coord of the source blit region
- * @param srcY the top-left y-coord of the source blit region
- * @param srcWidth the width of the source blit region
- * @param srcHeight the height of the source blit region
- * @param srcRedMask the source red channel mask
- * @param srcGreenMask the source green channel mask
- * @param srcBlueMask the source blue channel mask
- * @param alphaMode the alpha blending or mask mode, may be
- * an integer 0-255 for global alpha; ignored if BLIT_ALPHA
- * not specified in the blitter operations
- * (see ALPHA_MODE_xxx constants)
- * @param alphaData the alpha blending or mask data, varies depending
- * on the value of alphaMode and sometimes ignored
- * @param alphaStride the alpha data number of bytes per line
- * @param alphaX the top-left x-coord of the alpha blit region
- * @param alphaY the top-left y-coord of the alpha blit region
- * @param destData the destination byte array containing image data
- * @param destDepth the destination depth: one of 8, 16, 24, 32
- * @param destStride the destination number of bytes per line
- * @param destOrder the destination byte ordering: one of MSB_FIRST or LSB_FIRST;
- * ignored if destDepth is not 16 or 32
- * @param destX the top-left x-coord of the destination blit region
- * @param destY the top-left y-coord of the destination blit region
- * @param destWidth the width of the destination blit region
- * @param destHeight the height of the destination blit region
- * @param destRedMask the destination red channel mask
- * @param destGreenMask the destination green channel mask
- * @param destBlueMask the destination blue channel mask
- * @param flipX if true the resulting image is flipped along the vertical axis
- * @param flipY if true the resulting image is flipped along the horizontal axis
- */
- static void blit(int op,
- byte[] srcData, int srcDepth, int srcStride, int srcOrder,
- int srcX, int srcY, int srcWidth, int srcHeight,
- int srcRedMask, int srcGreenMask, int srcBlueMask,
- int alphaMode, byte[] alphaData, int alphaStride, int alphaX, int alphaY,
- byte[] destData, int destDepth, int destStride, int destOrder,
- int destX, int destY, int destWidth, int destHeight,
- int destRedMask, int destGreenMask, int destBlueMask,
- boolean flipX, boolean flipY) {
- if ((destWidth <= 0) || (destHeight <= 0) || (alphaMode == ALPHA_TRANSPARENT)) return;
-
- // these should be supplied as params later
- final int srcAlphaMask = 0, destAlphaMask = 0;
-
- /*** Prepare scaling data ***/
- final int dwm1 = destWidth - 1;
- final int sfxi = (dwm1 != 0) ? (int)((((long)srcWidth << 16) - 1) / dwm1) : 0;
- final int dhm1 = destHeight - 1;
- final int sfyi = (dhm1 != 0) ? (int)((((long)srcHeight << 16) - 1) / dhm1) : 0;
-
- /*** Prepare source-related data ***/
- final int sbpp, stype;
- switch (srcDepth) {
- case 8:
- sbpp = 1;
- stype = TYPE_GENERIC_8;
- break;
- case 16:
- sbpp = 2;
- stype = (srcOrder == MSB_FIRST) ? TYPE_GENERIC_16_MSB : TYPE_GENERIC_16_LSB;
- break;
- case 24:
- sbpp = 3;
- stype = TYPE_GENERIC_24;
- break;
- case 32:
- sbpp = 4;
- stype = (srcOrder == MSB_FIRST) ? TYPE_GENERIC_32_MSB : TYPE_GENERIC_32_LSB;
- break;
- default:
- //throw new IllegalArgumentException("Invalid source type");
- return;
- }
- int spr = srcY * srcStride + srcX * sbpp;
-
- /*** Prepare destination-related data ***/
- final int dbpp, dtype;
- switch (destDepth) {
- case 8:
- dbpp = 1;
- dtype = TYPE_GENERIC_8;
- break;
- case 16:
- dbpp = 2;
- dtype = (destOrder == MSB_FIRST) ? TYPE_GENERIC_16_MSB : TYPE_GENERIC_16_LSB;
- break;
- case 24:
- dbpp = 3;
- dtype = TYPE_GENERIC_24;
- break;
- case 32:
- dbpp = 4;
- dtype = (destOrder == MSB_FIRST) ? TYPE_GENERIC_32_MSB : TYPE_GENERIC_32_LSB;
- break;
- default:
- //throw new IllegalArgumentException("Invalid destination type");
- return;
- }
- int dpr = ((flipY) ? destY + dhm1 : destY) * destStride + ((flipX) ? destX + dwm1 : destX) * dbpp;
- final int dprxi = (flipX) ? -dbpp : dbpp;
- final int dpryi = (flipY) ? -destStride : destStride;
-
- /*** Prepare special processing data ***/
- int apr;
- if ((op & BLIT_ALPHA) != 0) {
- switch (alphaMode) {
- case ALPHA_MASK_UNPACKED:
- case ALPHA_CHANNEL_SEPARATE:
- if (alphaData == null) alphaMode = 0x10000;
- apr = alphaY * alphaStride + alphaX;
- break;
- case ALPHA_MASK_PACKED:
- if (alphaData == null) alphaMode = 0x10000;
- alphaStride <<= 3;
- apr = alphaY * alphaStride + alphaX;
- break;
- case ALPHA_MASK_INDEX:
- //throw new IllegalArgumentException("Invalid alpha type");
- return;
- case ALPHA_MASK_RGB:
- if (alphaData == null) alphaMode = 0x10000;
- apr = 0;
- break;
- default:
- alphaMode = (alphaMode << 16) / 255; // prescale
- case ALPHA_CHANNEL_SOURCE:
- apr = 0;
- break;
- }
- } else {
- alphaMode = 0x10000;
- apr = 0;
- }
-
- /*** Blit ***/
- int dp = dpr;
- int sp = spr;
- if ((alphaMode == 0x10000) && (stype == dtype) &&
- (srcRedMask == destRedMask) && (srcGreenMask == destGreenMask) &&
- (srcBlueMask == destBlueMask) && (srcAlphaMask == destAlphaMask)) {
- /*** Fast blit (straight copy) ***/
- switch (sbpp) {
- case 1:
- for (int dy = destHeight, sfy = sfyi; dy > 0; --dy, sp = spr += (sfy >>> 16) * srcStride, sfy = (sfy & 0xffff) + sfyi, dp = dpr += dpryi) {
- for (int dx = destWidth, sfx = sfxi; dx > 0; --dx, dp += dprxi, sfx = (sfx & 0xffff) + sfxi) {
- destData[dp] = srcData[sp];
- sp += (sfx >>> 16);
- }
- }
- break;
- case 2:
- for (int dy = destHeight, sfy = sfyi; dy > 0; --dy, sp = spr += (sfy >>> 16) * srcStride, sfy = (sfy & 0xffff) + sfyi, dp = dpr += dpryi) {
- for (int dx = destWidth, sfx = sfxi; dx > 0; --dx, dp += dprxi, sfx = (sfx & 0xffff) + sfxi) {
- destData[dp] = srcData[sp];
- destData[dp + 1] = srcData[sp + 1];
- sp += (sfx >>> 16) * 2;
- }
- }
- break;
- case 3:
- for (int dy = destHeight, sfy = sfyi; dy > 0; --dy, sp = spr += (sfy >>> 16) * srcStride, sfy = (sfy & 0xffff) + sfyi, dp = dpr += dpryi) {
- for (int dx = destWidth, sfx = sfxi; dx > 0; --dx, dp += dprxi, sfx = (sfx & 0xffff) + sfxi) {
- destData[dp] = srcData[sp];
- destData[dp + 1] = srcData[sp + 1];
- destData[dp + 2] = srcData[sp + 2];
- sp += (sfx >>> 16) * 3;
- }
- }
- break;
- case 4:
- for (int dy = destHeight, sfy = sfyi; dy > 0; --dy, sp = spr += (sfy >>> 16) * srcStride, sfy = (sfy & 0xffff) + sfyi, dp = dpr += dpryi) {
- for (int dx = destWidth, sfx = sfxi; dx > 0; --dx, dp += dprxi, sfx = (sfx & 0xffff) + sfxi) {
- destData[dp] = srcData[sp];
- destData[dp + 1] = srcData[sp + 1];
- destData[dp + 2] = srcData[sp + 2];
- destData[dp + 3] = srcData[sp + 3];
- sp += (sfx >>> 16) * 4;
- }
- }
- break;
- }
- return;
- }
- /*** Comprehensive blit (apply transformations) ***/
- final int srcRedShift = getChannelShift(srcRedMask);
- final byte[] srcReds = ANY_TO_EIGHT[getChannelWidth(srcRedMask, srcRedShift)];
- final int srcGreenShift = getChannelShift(srcGreenMask);
- final byte[] srcGreens = ANY_TO_EIGHT[getChannelWidth(srcGreenMask, srcGreenShift)];
- final int srcBlueShift = getChannelShift(srcBlueMask);
- final byte[] srcBlues = ANY_TO_EIGHT[getChannelWidth(srcBlueMask, srcBlueShift)];
- final int srcAlphaShift = getChannelShift(srcAlphaMask);
- final byte[] srcAlphas = ANY_TO_EIGHT[getChannelWidth(srcAlphaMask, srcAlphaShift)];
-
- final int destRedShift = getChannelShift(destRedMask);
- final int destRedWidth = getChannelWidth(destRedMask, destRedShift);
- final byte[] destReds = ANY_TO_EIGHT[destRedWidth];
- final int destRedPreShift = 8 - destRedWidth;
- final int destGreenShift = getChannelShift(destGreenMask);
- final int destGreenWidth = getChannelWidth(destGreenMask, destGreenShift);
- final byte[] destGreens = ANY_TO_EIGHT[destGreenWidth];
- final int destGreenPreShift = 8 - destGreenWidth;
- final int destBlueShift = getChannelShift(destBlueMask);
- final int destBlueWidth = getChannelWidth(destBlueMask, destBlueShift);
- final byte[] destBlues = ANY_TO_EIGHT[destBlueWidth];
- final int destBluePreShift = 8 - destBlueWidth;
- final int destAlphaShift = getChannelShift(destAlphaMask);
- final int destAlphaWidth = getChannelWidth(destAlphaMask, destAlphaShift);
- final byte[] destAlphas = ANY_TO_EIGHT[destAlphaWidth];
- final int destAlphaPreShift = 8 - destAlphaWidth;
-
- int ap = apr, alpha = alphaMode;
- int r = 0, g = 0, b = 0, a = 0;
- int rq = 0, gq = 0, bq = 0, aq = 0;
- for (int dy = destHeight, sfy = sfyi; dy > 0; --dy,
- sp = spr += (sfy >>> 16) * srcStride,
- ap = apr += (sfy >>> 16) * alphaStride,
- sfy = (sfy & 0xffff) + sfyi,
- dp = dpr += dpryi) {
- for (int dx = destWidth, sfx = sfxi; dx > 0; --dx,
- dp += dprxi,
- sfx = (sfx & 0xffff) + sfxi) {
- /*** READ NEXT PIXEL ***/
- switch (stype) {
- case TYPE_GENERIC_8: {
- final int data = srcData[sp] & 0xff;
- sp += (sfx >>> 16);
- r = srcReds[(data & srcRedMask) >>> srcRedShift] & 0xff;
- g = srcGreens[(data & srcGreenMask) >>> srcGreenShift] & 0xff;
- b = srcBlues[(data & srcBlueMask) >>> srcBlueShift] & 0xff;
- a = srcAlphas[(data & srcAlphaMask) >>> srcAlphaShift] & 0xff;
- } break;
- case TYPE_GENERIC_16_MSB: {
- final int data = ((srcData[sp] & 0xff) << 8) | (srcData[sp + 1] & 0xff);
- sp += (sfx >>> 16) * 2;
- r = srcReds[(data & srcRedMask) >>> srcRedShift] & 0xff;
- g = srcGreens[(data & srcGreenMask) >>> srcGreenShift] & 0xff;
- b = srcBlues[(data & srcBlueMask) >>> srcBlueShift] & 0xff;
- a = srcAlphas[(data & srcAlphaMask) >>> srcAlphaShift] & 0xff;
- } break;
- case TYPE_GENERIC_16_LSB: {
- final int data = ((srcData[sp + 1] & 0xff) << 8) | (srcData[sp] & 0xff);
- sp += (sfx >>> 16) * 2;
- r = srcReds[(data & srcRedMask) >>> srcRedShift] & 0xff;
- g = srcGreens[(data & srcGreenMask) >>> srcGreenShift] & 0xff;
- b = srcBlues[(data & srcBlueMask) >>> srcBlueShift] & 0xff;
- a = srcAlphas[(data & srcAlphaMask) >>> srcAlphaShift] & 0xff;
- } break;
- case TYPE_GENERIC_24: {
- final int data = (( ((srcData[sp] & 0xff) << 8) |
- (srcData[sp + 1] & 0xff)) << 8) |
- (srcData[sp + 2] & 0xff);
- sp += (sfx >>> 16) * 3;
- r = srcReds[(data & srcRedMask) >>> srcRedShift] & 0xff;
- g = srcGreens[(data & srcGreenMask) >>> srcGreenShift] & 0xff;
- b = srcBlues[(data & srcBlueMask) >>> srcBlueShift] & 0xff;
- a = srcAlphas[(data & srcAlphaMask) >>> srcAlphaShift] & 0xff;
- } break;
- case TYPE_GENERIC_32_MSB: {
- final int data = (( (( ((srcData[sp] & 0xff) << 8) |
- (srcData[sp + 1] & 0xff)) << 8) |
- (srcData[sp + 2] & 0xff)) << 8) |
- (srcData[sp + 3] & 0xff);
- sp += (sfx >>> 16) * 4;
- r = srcReds[(data & srcRedMask) >>> srcRedShift] & 0xff;
- g = srcGreens[(data & srcGreenMask) >>> srcGreenShift] & 0xff;
- b = srcBlues[(data & srcBlueMask) >>> srcBlueShift] & 0xff;
- a = srcAlphas[(data & srcAlphaMask) >>> srcAlphaShift] & 0xff;
- } break;
- case TYPE_GENERIC_32_LSB: {
- final int data = (( (( ((srcData[sp + 3] & 0xff) << 8) |
- (srcData[sp + 2] & 0xff)) << 8) |
- (srcData[sp + 1] & 0xff)) << 8) |
- (srcData[sp] & 0xff);
- sp += (sfx >>> 16) * 4;
- r = srcReds[(data & srcRedMask) >>> srcRedShift] & 0xff;
- g = srcGreens[(data & srcGreenMask) >>> srcGreenShift] & 0xff;
- b = srcBlues[(data & srcBlueMask) >>> srcBlueShift] & 0xff;
- a = srcAlphas[(data & srcAlphaMask) >>> srcAlphaShift] & 0xff;
- } break;
- }
-
- /*** DO SPECIAL PROCESSING IF REQUIRED ***/
- switch (alphaMode) {
- case ALPHA_CHANNEL_SEPARATE:
- alpha = ((alphaData[ap] & 0xff) << 16) / 255;
- ap += (sfx >> 16);
- break;
- case ALPHA_CHANNEL_SOURCE:
- alpha = (a << 16) / 255;
- break;
- case ALPHA_MASK_UNPACKED:
- alpha = (alphaData[ap] != 0) ? 0x10000 : 0;
- ap += (sfx >> 16);
- break;
- case ALPHA_MASK_PACKED:
- alpha = (alphaData[ap >> 3] << ((ap & 7) + 9)) & 0x10000;
- ap += (sfx >> 16);
- break;
- case ALPHA_MASK_RGB:
- alpha = 0x10000;
- for (int i = 0; i < alphaData.length; i += 3) {
- if ((r == alphaData[i]) && (g == alphaData[i + 1]) && (b == alphaData[i + 2])) {
- alpha = 0x0000;
- break;
- }
- }
- break;
- }
- if (alpha != 0x10000) {
- if (alpha == 0x0000) continue;
- switch (dtype) {
- case TYPE_GENERIC_8: {
- final int data = destData[dp] & 0xff;
- rq = destReds[(data & destRedMask) >>> destRedShift] & 0xff;
- gq = destGreens[(data & destGreenMask) >>> destGreenShift] & 0xff;
- bq = destBlues[(data & destBlueMask) >>> destBlueShift] & 0xff;
- aq = destAlphas[(data & destAlphaMask) >>> destAlphaShift] & 0xff;
- } break;
- case TYPE_GENERIC_16_MSB: {
- final int data = ((destData[dp] & 0xff) << 8) | (destData[dp + 1] & 0xff);
- rq = destReds[(data & destRedMask) >>> destRedShift] & 0xff;
- gq = destGreens[(data & destGreenMask) >>> destGreenShift] & 0xff;
- bq = destBlues[(data & destBlueMask) >>> destBlueShift] & 0xff;
- aq = destAlphas[(data & destAlphaMask) >>> destAlphaShift] & 0xff;
- } break;
- case TYPE_GENERIC_16_LSB: {
- final int data = ((destData[dp + 1] & 0xff) << 8) | (destData[dp] & 0xff);
- rq = destReds[(data & destRedMask) >>> destRedShift] & 0xff;
- gq = destGreens[(data & destGreenMask) >>> destGreenShift] & 0xff;
- bq = destBlues[(data & destBlueMask) >>> destBlueShift] & 0xff;
- aq = destAlphas[(data & destAlphaMask) >>> destAlphaShift] & 0xff;
- } break;
- case TYPE_GENERIC_24: {
- final int data = (( ((destData[dp] & 0xff) << 8) |
- (destData[dp + 1] & 0xff)) << 8) |
- (destData[dp + 2] & 0xff);
- rq = destReds[(data & destRedMask) >>> destRedShift] & 0xff;
- gq = destGreens[(data & destGreenMask) >>> destGreenShift] & 0xff;
- bq = destBlues[(data & destBlueMask) >>> destBlueShift] & 0xff;
- aq = destAlphas[(data & destAlphaMask) >>> destAlphaShift] & 0xff;
- } break;
- case TYPE_GENERIC_32_MSB: {
- final int data = (( (( ((destData[dp] & 0xff) << 8) |
- (destData[dp + 1] & 0xff)) << 8) |
- (destData[dp + 2] & 0xff)) << 8) |
- (destData[dp + 3] & 0xff);
- rq = destReds[(data & destRedMask) >>> destRedShift] & 0xff;
- gq = destGreens[(data & destGreenMask) >>> destGreenShift] & 0xff;
- bq = destBlues[(data & destBlueMask) >>> destBlueShift] & 0xff;
- aq = destAlphas[(data & destAlphaMask) >>> destAlphaShift] & 0xff;
- } break;
- case TYPE_GENERIC_32_LSB: {
- final int data = (( (( ((destData[dp + 3] & 0xff) << 8) |
- (destData[dp + 2] & 0xff)) << 8) |
- (destData[dp + 1] & 0xff)) << 8) |
- (destData[dp] & 0xff);
- rq = destReds[(data & destRedMask) >>> destRedShift] & 0xff;
- gq = destGreens[(data & destGreenMask) >>> destGreenShift] & 0xff;
- bq = destBlues[(data & destBlueMask) >>> destBlueShift] & 0xff;
- aq = destAlphas[(data & destAlphaMask) >>> destAlphaShift] & 0xff;
- } break;
- }
- // Perform alpha blending
- a = aq + ((a - aq) * alpha >> 16);
- r = rq + ((r - rq) * alpha >> 16);
- g = gq + ((g - gq) * alpha >> 16);
- b = bq + ((b - bq) * alpha >> 16);
- }
-
- /*** WRITE NEXT PIXEL ***/
- final int data =
- (r >>> destRedPreShift << destRedShift) |
- (g >>> destGreenPreShift << destGreenShift) |
- (b >>> destBluePreShift << destBlueShift) |
- (a >>> destAlphaPreShift << destAlphaShift);
- switch (dtype) {
- case TYPE_GENERIC_8: {
- destData[dp] = (byte) data;
- } break;
- case TYPE_GENERIC_16_MSB: {
- destData[dp] = (byte) (data >>> 8);
- destData[dp + 1] = (byte) (data & 0xff);
- } break;
- case TYPE_GENERIC_16_LSB: {
- destData[dp] = (byte) (data & 0xff);
- destData[dp + 1] = (byte) (data >>> 8);
- } break;
- case TYPE_GENERIC_24: {
- destData[dp] = (byte) (data >>> 16);
- destData[dp + 1] = (byte) (data >>> 8);
- destData[dp + 2] = (byte) (data & 0xff);
- } break;
- case TYPE_GENERIC_32_MSB: {
- destData[dp] = (byte) (data >>> 24);
- destData[dp + 1] = (byte) (data >>> 16);
- destData[dp + 2] = (byte) (data >>> 8);
- destData[dp + 3] = (byte) (data & 0xff);
- } break;
- case TYPE_GENERIC_32_LSB: {
- destData[dp] = (byte) (data & 0xff);
- destData[dp + 1] = (byte) (data >>> 8);
- destData[dp + 2] = (byte) (data >>> 16);
- destData[dp + 3] = (byte) (data >>> 24);
- } break;
- }
- }
- }
- }
-
- /**
- * Computes the required channel shift from a mask.
- */
- static int getChannelShift(int mask) {
- if (mask == 0) return 0;
- int i;
- for (i = 0; ((mask & 1) == 0) && (i < 32); ++i) {
- mask >>>= 1;
- }
- return i;
- }
-
- /**
- * Computes the required channel width (depth) from a mask.
- */
- static int getChannelWidth(int mask, int shift) {
- if (mask == 0) return 0;
- int i;
- mask >>>= shift;
- for (i = shift; ((mask & 1) != 0) && (i < 32); ++i) {
- mask >>>= 1;
- }
- return i - shift;
- }
-
- public static ImageData convertImageData (ImageData source) {
- PaletteData palette = new PaletteData (0xff0000, 0xff00, 0xff);
- ImageData newSource = new ImageData (source.width, source.height, 24, palette);
-
- ImageDataUtil.blit (
- 1,
- source.data,
- source.depth,
- source.bytesPerLine,
- (source.depth != 16) ? MSB_FIRST : LSB_FIRST,
- 0,
- 0,
- source.width,
- source.height,
- source.palette.redMask,
- source.palette.greenMask,
- source.palette.blueMask,
- 255,
- null,
- 0,
- 0,
- 0,
- newSource.data,
- newSource.depth,
- newSource.bytesPerLine,
- (newSource.depth != 16) ? MSB_FIRST : LSB_FIRST,
- 0,
- 0,
- newSource.width,
- newSource.height,
- newSource.palette.redMask,
- newSource.palette.greenMask,
- newSource.palette.blueMask,
- false,
- true);
-
- return newSource;
- }
-}
diff --git a/bundles/org.eclipse.swt.opengl/gtk/library/build.sh b/bundles/org.eclipse.swt.opengl/gtk/library/build.sh
deleted file mode 100644
index dc26d12412..0000000000
--- a/bundles/org.eclipse.swt.opengl/gtk/library/build.sh
+++ /dev/null
@@ -1,29 +0,0 @@
-#!/bin/sh
-#*******************************************************************************
-# Copyright (c) 2000, 2005 IBM Corporation and others.
-# All rights reserved. This program and the accompanying materials
-# are made available under the terms of the Eclipse Public License v1.0
-# which accompanies this distribution, and is available at
-# http://www.eclipse.org/legal/epl-v10.html
-#
-# Contributors:
-# IBM Corporation - initial API and implementation
-#*******************************************************************************
-
-if [ "${OS}" = "" ]; then
- OS=`uname -s`
-fi
-
-case $OS in
- "Linux")
- makefile="make_linux.mak"
- echo "Building Linux GTK version of SWT OpenGL"
- ;;
- *)
- echo "*** Unknown OS <${OS}>"
- ;;
-esac
-
-export JAVA_HOME
-
-make -f $makefile ${1+"$@"}
diff --git a/bundles/org.eclipse.swt.opengl/gtk/library/glx.c b/bundles/org.eclipse.swt.opengl/gtk/library/glx.c
deleted file mode 100644
index e3615ca3e1..0000000000
--- a/bundles/org.eclipse.swt.opengl/gtk/library/glx.c
+++ /dev/null
@@ -1,290 +0,0 @@
-/*******************************************************************************
-* Copyright (c) 2000, 2005 IBM Corporation and others.
-* All rights reserved. This program and the accompanying materials
-* are made available under the terms of the Eclipse Public License v1.0
-* which accompanies this distribution, and is available at
-* http://www.eclipse.org/legal/epl-v10.html
-*
-* Contributors:
-* IBM Corporation - initial API and implementation
-*******************************************************************************/
-
-#include "swt.h"
-#include "glx_structs.h"
-#include "glx_stats.h"
-
-#define GLX_NATIVE(func) Java_org_eclipse_swt_internal_opengl_gtk_GLX_##func
-
-#ifndef NO_glXChooseVisual
-JNIEXPORT jint JNICALL GLX_NATIVE(glXChooseVisual)
- (JNIEnv *env, jclass that, jint arg0, jint arg1, jintArray arg2)
-{
- jint *lparg2=NULL;
- jint rc = 0;
- GLX_NATIVE_ENTER(env, that, glXChooseVisual_FUNC);
- if (arg2) if ((lparg2 = (*env)->GetIntArrayElements(env, arg2, NULL)) == NULL) goto fail;
- rc = (jint)glXChooseVisual(arg0, arg1, lparg2);
-fail:
- if (arg2 && lparg2) (*env)->ReleaseIntArrayElements(env, arg2, lparg2, 0);
- GLX_NATIVE_EXIT(env, that, glXChooseVisual_FUNC);
- return rc;
-}
-#endif
-
-#ifndef NO_glXCopyContext
-JNIEXPORT void JNICALL GLX_NATIVE(glXCopyContext)
- (JNIEnv *env, jclass that, jint arg0, jint arg1, jint arg2, jint arg3)
-{
- GLX_NATIVE_ENTER(env, that, glXCopyContext_FUNC);
- glXCopyContext(arg0, arg1, arg2, arg3);
- GLX_NATIVE_EXIT(env, that, glXCopyContext_FUNC);
-}
-#endif
-
-#ifndef NO_glXCreateContext
-JNIEXPORT jint JNICALL GLX_NATIVE(glXCreateContext)
- (JNIEnv *env, jclass that, jint arg0, jobject arg1, jint arg2, jboolean arg3)
-{
- XVisualInfo _arg1, *lparg1=NULL;
- jint rc = 0;
- GLX_NATIVE_ENTER(env, that, glXCreateContext_FUNC);
- if (arg1) if ((lparg1 = getXVisualInfoFields(env, arg1, &_arg1)) == NULL) goto fail;
- rc = (jint)glXCreateContext(arg0, lparg1, arg2, arg3);
-fail:
- if (arg1 && lparg1) setXVisualInfoFields(env, arg1, lparg1);
- GLX_NATIVE_EXIT(env, that, glXCreateContext_FUNC);
- return rc;
-}
-#endif
-
-#ifndef NO_glXCreateGLXPixmap
-JNIEXPORT jint JNICALL GLX_NATIVE(glXCreateGLXPixmap)
- (JNIEnv *env, jclass that, jint arg0, jobject arg1, jint arg2)
-{
- XVisualInfo _arg1, *lparg1=NULL;
- jint rc = 0;
- GLX_NATIVE_ENTER(env, that, glXCreateGLXPixmap_FUNC);
- if (arg1) if ((lparg1 = getXVisualInfoFields(env, arg1, &_arg1)) == NULL) goto fail;
- rc = (jint)glXCreateGLXPixmap(arg0, lparg1, arg2);
-fail:
- if (arg1 && lparg1) setXVisualInfoFields(env, arg1, lparg1);
- GLX_NATIVE_EXIT(env, that, glXCreateGLXPixmap_FUNC);
- return rc;
-}
-#endif
-
-#ifndef NO_glXDestroyContext
-JNIEXPORT void JNICALL GLX_NATIVE(glXDestroyContext)
- (JNIEnv *env, jclass that, jint arg0, jint arg1)
-{
- GLX_NATIVE_ENTER(env, that, glXDestroyContext_FUNC);
- glXDestroyContext(arg0, arg1);
- GLX_NATIVE_EXIT(env, that, glXDestroyContext_FUNC);
-}
-#endif
-
-#ifndef NO_glXDestroyGLXPixmap
-JNIEXPORT void JNICALL GLX_NATIVE(glXDestroyGLXPixmap)
- (JNIEnv *env, jclass that, jint arg0, jint arg1)
-{
- GLX_NATIVE_ENTER(env, that, glXDestroyGLXPixmap_FUNC);
- glXDestroyGLXPixmap(arg0, arg1);
- GLX_NATIVE_EXIT(env, that, glXDestroyGLXPixmap_FUNC);
-}
-#endif
-
-#ifndef NO_glXGetClientString
-JNIEXPORT jint JNICALL GLX_NATIVE(glXGetClientString)
- (JNIEnv *env, jclass that, jint arg0, jint arg1)
-{
- jint rc = 0;
- GLX_NATIVE_ENTER(env, that, glXGetClientString_FUNC);
- rc = (jint)glXGetClientString(arg0, arg1);
- GLX_NATIVE_EXIT(env, that, glXGetClientString_FUNC);
- return rc;
-}
-#endif
-
-#ifndef NO_glXGetConfig
-JNIEXPORT jint JNICALL GLX_NATIVE(glXGetConfig)
- (JNIEnv *env, jclass that, jint arg0, jobject arg1, jint arg2, jintArray arg3)
-{
- XVisualInfo _arg1, *lparg1=NULL;
- jint *lparg3=NULL;
- jint rc = 0;
- GLX_NATIVE_ENTER(env, that, glXGetConfig_FUNC);
- if (arg1) if ((lparg1 = getXVisualInfoFields(env, arg1, &_arg1)) == NULL) goto fail;
- if (arg3) if ((lparg3 = (*env)->GetIntArrayElements(env, arg3, NULL)) == NULL) goto fail;
- rc = (jint)glXGetConfig(arg0, lparg1, arg2, lparg3);
-fail:
- if (arg3 && lparg3) (*env)->ReleaseIntArrayElements(env, arg3, lparg3, 0);
- if (arg1 && lparg1) setXVisualInfoFields(env, arg1, lparg1);
- GLX_NATIVE_EXIT(env, that, glXGetConfig_FUNC);
- return rc;
-}
-#endif
-
-#ifndef NO_glXGetCurrentContext
-JNIEXPORT jint JNICALL GLX_NATIVE(glXGetCurrentContext)
- (JNIEnv *env, jclass that)
-{
- jint rc = 0;
- GLX_NATIVE_ENTER(env, that, glXGetCurrentContext_FUNC);
- rc = (jint)glXGetCurrentContext();
- GLX_NATIVE_EXIT(env, that, glXGetCurrentContext_FUNC);
- return rc;
-}
-#endif
-
-#ifndef NO_glXGetCurrentDrawable
-JNIEXPORT jint JNICALL GLX_NATIVE(glXGetCurrentDrawable)
- (JNIEnv *env, jclass that)
-{
- jint rc = 0;
- GLX_NATIVE_ENTER(env, that, glXGetCurrentDrawable_FUNC);
- rc = (jint)glXGetCurrentDrawable();
- GLX_NATIVE_EXIT(env, that, glXGetCurrentDrawable_FUNC);
- return rc;
-}
-#endif
-
-#ifndef NO_glXIsDirect
-JNIEXPORT jboolean JNICALL GLX_NATIVE(glXIsDirect)
- (JNIEnv *env, jclass that, jint arg0, jint arg1)
-{
- jboolean rc = 0;
- GLX_NATIVE_ENTER(env, that, glXIsDirect_FUNC);
- rc = (jboolean)glXIsDirect(arg0, arg1);
- GLX_NATIVE_EXIT(env, that, glXIsDirect_FUNC);
- return rc;
-}
-#endif
-
-#ifndef NO_glXMakeCurrent
-JNIEXPORT jboolean JNICALL GLX_NATIVE(glXMakeCurrent)
- (JNIEnv *env, jclass that, jint arg0, jint arg1, jint arg2)
-{
- jboolean rc = 0;
- GLX_NATIVE_ENTER(env, that, glXMakeCurrent_FUNC);
- rc = (jboolean)glXMakeCurrent(arg0, arg1, arg2);
- GLX_NATIVE_EXIT(env, that, glXMakeCurrent_FUNC);
- return rc;
-}
-#endif
-
-#ifndef NO_glXQueryExtension
-JNIEXPORT jboolean JNICALL GLX_NATIVE(glXQueryExtension)
- (JNIEnv *env, jclass that, jint arg0, jintArray arg1, jintArray arg2)
-{
- jint *lparg1=NULL;
- jint *lparg2=NULL;
- jboolean rc = 0;
- GLX_NATIVE_ENTER(env, that, glXQueryExtension_FUNC);
- if (arg1) if ((lparg1 = (*env)->GetIntArrayElements(env, arg1, NULL)) == NULL) goto fail;
- if (arg2) if ((lparg2 = (*env)->GetIntArrayElements(env, arg2, NULL)) == NULL) goto fail;
- rc = (jboolean)glXQueryExtension(arg0, lparg1, lparg2);
-fail:
- if (arg2 && lparg2) (*env)->ReleaseIntArrayElements(env, arg2, lparg2, 0);
- if (arg1 && lparg1) (*env)->ReleaseIntArrayElements(env, arg1, lparg1, 0);
- GLX_NATIVE_EXIT(env, that, glXQueryExtension_FUNC);
- return rc;
-}
-#endif
-
-#ifndef NO_glXQueryExtensionsString
-JNIEXPORT jint JNICALL GLX_NATIVE(glXQueryExtensionsString)
- (JNIEnv *env, jclass that, jint arg0, jint arg1)
-{
- jint rc = 0;
- GLX_NATIVE_ENTER(env, that, glXQueryExtensionsString_FUNC);
- rc = (jint)glXQueryExtensionsString(arg0, arg1);
- GLX_NATIVE_EXIT(env, that, glXQueryExtensionsString_FUNC);
- return rc;
-}
-#endif
-
-#ifndef NO_glXQueryServerString
-JNIEXPORT jint JNICALL GLX_NATIVE(glXQueryServerString)
- (JNIEnv *env, jclass that, jint arg0, jint arg1, jint arg2)
-{
- jint rc = 0;
- GLX_NATIVE_ENTER(env, that, glXQueryServerString_FUNC);
- rc = (jint)glXQueryServerString(arg0, arg1, arg2);
- GLX_NATIVE_EXIT(env, that, glXQueryServerString_FUNC);
- return rc;
-}
-#endif
-
-#ifndef NO_glXQueryVersion
-JNIEXPORT jboolean JNICALL GLX_NATIVE(glXQueryVersion)
- (JNIEnv *env, jclass that, jint arg0, jintArray arg1, jintArray arg2)
-{
- jint *lparg1=NULL;
- jint *lparg2=NULL;
- jboolean rc = 0;
- GLX_NATIVE_ENTER(env, that, glXQueryVersion_FUNC);
- if (arg1) if ((lparg1 = (*env)->GetIntArrayElements(env, arg1, NULL)) == NULL) goto fail;
- if (arg2) if ((lparg2 = (*env)->GetIntArrayElements(env, arg2, NULL)) == NULL) goto fail;
- rc = (jboolean)glXQueryVersion(arg0, lparg1, lparg2);
-fail:
- if (arg2 && lparg2) (*env)->ReleaseIntArrayElements(env, arg2, lparg2, 0);
- if (arg1 && lparg1) (*env)->ReleaseIntArrayElements(env, arg1, lparg1, 0);
- GLX_NATIVE_EXIT(env, that, glXQueryVersion_FUNC);
- return rc;
-}
-#endif
-
-#ifndef NO_glXSwapBuffers
-JNIEXPORT void JNICALL GLX_NATIVE(glXSwapBuffers)
- (JNIEnv *env, jclass that, jint arg0, jint arg1)
-{
- GLX_NATIVE_ENTER(env, that, glXSwapBuffers_FUNC);
- glXSwapBuffers(arg0, arg1);
- GLX_NATIVE_EXIT(env, that, glXSwapBuffers_FUNC);
-}
-#endif
-
-#ifndef NO_glXUseXFont
-JNIEXPORT void JNICALL GLX_NATIVE(glXUseXFont)
- (JNIEnv *env, jclass that, jint arg0, jint arg1, jint arg2, jint arg3)
-{
- GLX_NATIVE_ENTER(env, that, glXUseXFont_FUNC);
- glXUseXFont(arg0, arg1, arg2, arg3);
- GLX_NATIVE_EXIT(env, that, glXUseXFont_FUNC);
-}
-#endif
-
-#ifndef NO_glXWaitGL
-JNIEXPORT void JNICALL GLX_NATIVE(glXWaitGL)
- (JNIEnv *env, jclass that)
-{
- GLX_NATIVE_ENTER(env, that, glXWaitGL_FUNC);
- glXWaitGL();
- GLX_NATIVE_EXIT(env, that, glXWaitGL_FUNC);
-}
-#endif
-
-#ifndef NO_glXWaitX
-JNIEXPORT void JNICALL GLX_NATIVE(glXWaitX)
- (JNIEnv *env, jclass that)
-{
- GLX_NATIVE_ENTER(env, that, glXWaitX_FUNC);
- glXWaitX();
- GLX_NATIVE_EXIT(env, that, glXWaitX_FUNC);
-}
-#endif
-
-#ifndef NO_memmove
-JNIEXPORT void JNICALL GLX_NATIVE(memmove)
- (JNIEnv *env, jclass that, jobject arg0, jint arg1, jint arg2)
-{
- XVisualInfo _arg0, *lparg0=NULL;
- GLX_NATIVE_ENTER(env, that, memmove_FUNC);
- if (arg0) if ((lparg0 = getXVisualInfoFields(env, arg0, &_arg0)) == NULL) goto fail;
- memmove(lparg0, arg1, arg2);
-fail:
- if (arg0 && lparg0) setXVisualInfoFields(env, arg0, lparg0);
- GLX_NATIVE_EXIT(env, that, memmove_FUNC);
-}
-#endif
-
diff --git a/bundles/org.eclipse.swt.opengl/gtk/library/glx.h b/bundles/org.eclipse.swt.opengl/gtk/library/glx.h
deleted file mode 100644
index 4129ee597c..0000000000
--- a/bundles/org.eclipse.swt.opengl/gtk/library/glx.h
+++ /dev/null
@@ -1,2 +0,0 @@
-
-#include <GL/glx.h>
diff --git a/bundles/org.eclipse.swt.opengl/gtk/library/glx_stats.c b/bundles/org.eclipse.swt.opengl/gtk/library/glx_stats.c
deleted file mode 100644
index 111d1870b8..0000000000
--- a/bundles/org.eclipse.swt.opengl/gtk/library/glx_stats.c
+++ /dev/null
@@ -1,63 +0,0 @@
-/*******************************************************************************
-* Copyright (c) 2000, 2005 IBM Corporation and others.
-* All rights reserved. This program and the accompanying materials
-* are made available under the terms of the Eclipse Public License v1.0
-* which accompanies this distribution, and is available at
-* http://www.eclipse.org/legal/epl-v10.html
-*
-* Contributors:
-* IBM Corporation - initial API and implementation
-*******************************************************************************/
-
-#include "swt.h"
-#include "glx_stats.h"
-
-#ifdef NATIVE_STATS
-
-int GLX_nativeFunctionCount = 21;
-int GLX_nativeFunctionCallCount[21];
-char * GLX_nativeFunctionNames[] = {
- "glXChooseVisual",
- "glXCopyContext",
- "glXCreateContext",
- "glXCreateGLXPixmap",
- "glXDestroyContext",
- "glXDestroyGLXPixmap",
- "glXGetClientString",
- "glXGetConfig",
- "glXGetCurrentContext",
- "glXGetCurrentDrawable",
- "glXIsDirect",
- "glXMakeCurrent",
- "glXQueryExtension",
- "glXQueryExtensionsString",
- "glXQueryServerString",
- "glXQueryVersion",
- "glXSwapBuffers",
- "glXUseXFont",
- "glXWaitGL",
- "glXWaitX",
- "memmove",
-};
-
-#define STATS_NATIVE(func) Java_org_eclipse_swt_tools_internal_NativeStats_##func
-
-JNIEXPORT jint JNICALL STATS_NATIVE(GLX_1GetFunctionCount)
- (JNIEnv *env, jclass that)
-{
- return GLX_nativeFunctionCount;
-}
-
-JNIEXPORT jstring JNICALL STATS_NATIVE(GLX_1GetFunctionName)
- (JNIEnv *env, jclass that, jint index)
-{
- return (*env)->NewStringUTF(env, GLX_nativeFunctionNames[index]);
-}
-
-JNIEXPORT jint JNICALL STATS_NATIVE(GLX_1GetFunctionCallCount)
- (JNIEnv *env, jclass that, jint index)
-{
- return GLX_nativeFunctionCallCount[index];
-}
-
-#endif
diff --git a/bundles/org.eclipse.swt.opengl/gtk/library/glx_stats.h b/bundles/org.eclipse.swt.opengl/gtk/library/glx_stats.h
deleted file mode 100644
index 8ec1695e48..0000000000
--- a/bundles/org.eclipse.swt.opengl/gtk/library/glx_stats.h
+++ /dev/null
@@ -1,45 +0,0 @@
-/*******************************************************************************
-* Copyright (c) 2000, 2005 IBM Corporation and others.
-* All rights reserved. This program and the accompanying materials
-* are made available under the terms of the Eclipse Public License v1.0
-* which accompanies this distribution, and is available at
-* http://www.eclipse.org/legal/epl-v10.html
-*
-* Contributors:
-* IBM Corporation - initial API and implementation
-*******************************************************************************/
-
-#ifdef NATIVE_STATS
-extern int GLX_nativeFunctionCount;
-extern int GLX_nativeFunctionCallCount[];
-extern char* GLX_nativeFunctionNames[];
-#define GLX_NATIVE_ENTER(env, that, func) GLX_nativeFunctionCallCount[func]++;
-#define GLX_NATIVE_EXIT(env, that, func)
-#else
-#define GLX_NATIVE_ENTER(env, that, func)
-#define GLX_NATIVE_EXIT(env, that, func)
-#endif
-
-typedef enum {
- glXChooseVisual_FUNC,
- glXCopyContext_FUNC,
- glXCreateContext_FUNC,
- glXCreateGLXPixmap_FUNC,
- glXDestroyContext_FUNC,
- glXDestroyGLXPixmap_FUNC,
- glXGetClientString_FUNC,
- glXGetConfig_FUNC,
- glXGetCurrentContext_FUNC,
- glXGetCurrentDrawable_FUNC,
- glXIsDirect_FUNC,
- glXMakeCurrent_FUNC,
- glXQueryExtension_FUNC,
- glXQueryExtensionsString_FUNC,
- glXQueryServerString_FUNC,
- glXQueryVersion_FUNC,
- glXSwapBuffers_FUNC,
- glXUseXFont_FUNC,
- glXWaitGL_FUNC,
- glXWaitX_FUNC,
- memmove_FUNC,
-} GLX_FUNCS;
diff --git a/bundles/org.eclipse.swt.opengl/gtk/library/glx_structs.c b/bundles/org.eclipse.swt.opengl/gtk/library/glx_structs.c
deleted file mode 100644
index b873c1dfa8..0000000000
--- a/bundles/org.eclipse.swt.opengl/gtk/library/glx_structs.c
+++ /dev/null
@@ -1,72 +0,0 @@
-/*******************************************************************************
-* Copyright (c) 2000, 2005 IBM Corporation and others.
-* All rights reserved. This program and the accompanying materials
-* are made available under the terms of the Eclipse Public License v1.0
-* which accompanies this distribution, and is available at
-* http://www.eclipse.org/legal/epl-v10.html
-*
-* Contributors:
-* IBM Corporation - initial API and implementation
-*******************************************************************************/
-
-#include "swt.h"
-#include "glx_structs.h"
-
-#ifndef NO_XVisualInfo
-typedef struct XVisualInfo_FID_CACHE {
- int cached;
- jclass clazz;
- jfieldID visual, visualid, screen, depth, cclass, red_mask, green_mask, blue_mask, colormap_size, bits_per_rgb;
-} XVisualInfo_FID_CACHE;
-
-XVisualInfo_FID_CACHE XVisualInfoFc;
-
-void cacheXVisualInfoFields(JNIEnv *env, jobject lpObject)
-{
- if (XVisualInfoFc.cached) return;
- XVisualInfoFc.clazz = (*env)->GetObjectClass(env, lpObject);
- XVisualInfoFc.visual = (*env)->GetFieldID(env, XVisualInfoFc.clazz, "visual", "I");
- XVisualInfoFc.visualid = (*env)->GetFieldID(env, XVisualInfoFc.clazz, "visualid", "I");
- XVisualInfoFc.screen = (*env)->GetFieldID(env, XVisualInfoFc.clazz, "screen", "I");
- XVisualInfoFc.depth = (*env)->GetFieldID(env, XVisualInfoFc.clazz, "depth", "I");
- XVisualInfoFc.cclass = (*env)->GetFieldID(env, XVisualInfoFc.clazz, "cclass", "I");
- XVisualInfoFc.red_mask = (*env)->GetFieldID(env, XVisualInfoFc.clazz, "red_mask", "I");
- XVisualInfoFc.green_mask = (*env)->GetFieldID(env, XVisualInfoFc.clazz, "green_mask", "I");
- XVisualInfoFc.blue_mask = (*env)->GetFieldID(env, XVisualInfoFc.clazz, "blue_mask", "I");
- XVisualInfoFc.colormap_size = (*env)->GetFieldID(env, XVisualInfoFc.clazz, "colormap_size", "I");
- XVisualInfoFc.bits_per_rgb = (*env)->GetFieldID(env, XVisualInfoFc.clazz, "bits_per_rgb", "I");
- XVisualInfoFc.cached = 1;
-}
-
-XVisualInfo *getXVisualInfoFields(JNIEnv *env, jobject lpObject, XVisualInfo *lpStruct)
-{
- if (!XVisualInfoFc.cached) cacheXVisualInfoFields(env, lpObject);
- lpStruct->visual = (*env)->GetIntField(env, lpObject, XVisualInfoFc.visual);
- lpStruct->visualid = (*env)->GetIntField(env, lpObject, XVisualInfoFc.visualid);
- lpStruct->screen = (*env)->GetIntField(env, lpObject, XVisualInfoFc.screen);
- lpStruct->depth = (*env)->GetIntField(env, lpObject, XVisualInfoFc.depth);
- lpStruct->cclass = (*env)->GetIntField(env, lpObject, XVisualInfoFc.cclass);
- lpStruct->red_mask = (*env)->GetIntField(env, lpObject, XVisualInfoFc.red_mask);
- lpStruct->green_mask = (*env)->GetIntField(env, lpObject, XVisualInfoFc.green_mask);
- lpStruct->blue_mask = (*env)->GetIntField(env, lpObject, XVisualInfoFc.blue_mask);
- lpStruct->colormap_size = (*env)->GetIntField(env, lpObject, XVisualInfoFc.colormap_size);
- lpStruct->bits_per_rgb = (*env)->GetIntField(env, lpObject, XVisualInfoFc.bits_per_rgb);
- return lpStruct;
-}
-
-void setXVisualInfoFields(JNIEnv *env, jobject lpObject, XVisualInfo *lpStruct)
-{
- if (!XVisualInfoFc.cached) cacheXVisualInfoFields(env, lpObject);
- (*env)->SetIntField(env, lpObject, XVisualInfoFc.visual, (jint)lpStruct->visual);
- (*env)->SetIntField(env, lpObject, XVisualInfoFc.visualid, (jint)lpStruct->visualid);
- (*env)->SetIntField(env, lpObject, XVisualInfoFc.screen, (jint)lpStruct->screen);
- (*env)->SetIntField(env, lpObject, XVisualInfoFc.depth, (jint)lpStruct->depth);
- (*env)->SetIntField(env, lpObject, XVisualInfoFc.cclass, (jint)lpStruct->cclass);
- (*env)->SetIntField(env, lpObject, XVisualInfoFc.red_mask, (jint)lpStruct->red_mask);
- (*env)->SetIntField(env, lpObject, XVisualInfoFc.green_mask, (jint)lpStruct->green_mask);
- (*env)->SetIntField(env, lpObject, XVisualInfoFc.blue_mask, (jint)lpStruct->blue_mask);
- (*env)->SetIntField(env, lpObject, XVisualInfoFc.colormap_size, (jint)lpStruct->colormap_size);
- (*env)->SetIntField(env, lpObject, XVisualInfoFc.bits_per_rgb, (jint)lpStruct->bits_per_rgb);
-}
-#endif
-
diff --git a/bundles/org.eclipse.swt.opengl/gtk/library/glx_structs.h b/bundles/org.eclipse.swt.opengl/gtk/library/glx_structs.h
deleted file mode 100644
index c04f09282b..0000000000
--- a/bundles/org.eclipse.swt.opengl/gtk/library/glx_structs.h
+++ /dev/null
@@ -1,25 +0,0 @@
-/*******************************************************************************
-* Copyright (c) 2000, 2005 IBM Corporation and others.
-* All rights reserved. This program and the accompanying materials
-* are made available under the terms of the Eclipse Public License v1.0
-* which accompanies this distribution, and is available at
-* http://www.eclipse.org/legal/epl-v10.html
-*
-* Contributors:
-* IBM Corporation - initial API and implementation
-*******************************************************************************/
-
-#include "glx.h"
-
-#ifndef NO_XVisualInfo
-void cacheXVisualInfoFields(JNIEnv *env, jobject lpObject);
-XVisualInfo *getXVisualInfoFields(JNIEnv *env, jobject lpObject, XVisualInfo *lpStruct);
-void setXVisualInfoFields(JNIEnv *env, jobject lpObject, XVisualInfo *lpStruct);
-#define XVisualInfo_sizeof() sizeof(XVisualInfo)
-#else
-#define cacheXVisualInfoFields(a,b)
-#define getXVisualInfoFields(a,b,c) NULL
-#define setXVisualInfoFields(a,b,c)
-#define XVisualInfo_sizeof() 0
-#endif
-
diff --git a/bundles/org.eclipse.swt.opengl/gtk/library/make_linux.mak b/bundles/org.eclipse.swt.opengl/gtk/library/make_linux.mak
deleted file mode 100644
index f2e954c66c..0000000000
--- a/bundles/org.eclipse.swt.opengl/gtk/library/make_linux.mak
+++ /dev/null
@@ -1,34 +0,0 @@
-#*******************************************************************************
-# Copyright (c) 2000, 2005 IBM Corporation and others.
-# All rights reserved. This program and the accompanying materials
-# are made available under the terms of the Eclipse Public License v1.0
-# which accompanies this distribution, and is available at
-# http://www.eclipse.org/legal/epl-v10.html
-#
-# Contributors:
-# IBM Corporation - initial API and implementation
-#*******************************************************************************
-
-# Define the installation directories for various products.
-CC=gcc
-LD=gcc
-
-# Define the various shared libraries to be made.
-WS_PREFIX = gtk
-GL_PREFIX = gl
-GL_DLL = lib$(GL_PREFIX)-$(WS_PREFIX).so
-GL_OBJ = swt.o gl.o glu.o structs.o glx.o
-GL_LIB = -shared -L/usr/X11R6/lib -lGL -lGLU -lm
-
-CFLAGS = -O2 -Wall -I.
-
-all: make_gl
-
-make_gl: $(GL_DLL)
- $(LD) $(GL_LIB) -o $(GL_DLL) $(GL_OBJ)
-
-$(GL_DLL): $(GL_OBJ)
- $(CC) $(CFLAGS) -c glx.c
-
-clean:
- rm -f *.so *.o
diff --git a/bundles/org.eclipse.swt.opengl/gtk/library/structs.c b/bundles/org.eclipse.swt.opengl/gtk/library/structs.c
deleted file mode 100644
index f11d22d342..0000000000
--- a/bundles/org.eclipse.swt.opengl/gtk/library/structs.c
+++ /dev/null
@@ -1,73 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2000, 2005 IBM Corporation and others.
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * IBM Corporation - initial API and implementation
- *******************************************************************************/
-#include <X11/X.h>
-#include <X11/Xlib.h>
-#include "swt.h"
-#include "structs.h"
-
-typedef struct XVisualInfo_FID_CACHE {
- int cached;
- jclass clazz;
- jfieldID visual, visualid, screen, depth, cclass, red_mask, green_mask, blue_mask, colormap_size, bits_per_rgb;
-} XVisualInfo_FID_CACHE;
-typedef XVisualInfo_FID_CACHE *PXVisualInfo_FID_CACHE;
-
-XVisualInfo_FID_CACHE XVisualInfoFc;
-
-void cacheXVisualInfoFids(JNIEnv *env, jobject lpObject, PXVisualInfo_FID_CACHE lpCache)
-{
- if (lpCache->cached) return;
- lpCache->clazz = (*env)->GetObjectClass(env, lpObject);
- lpCache->visual = (*env)->GetFieldID(env, lpCache->clazz, "visual", "I");
- lpCache->visualid = (*env)->GetFieldID(env, lpCache->clazz, "visualid", "I");
- lpCache->screen = (*env)->GetFieldID(env, lpCache->clazz, "screen", "I");
- lpCache->depth = (*env)->GetFieldID(env, lpCache->clazz, "depth", "I");
- lpCache->cclass = (*env)->GetFieldID(env, lpCache->clazz, "cclass", "I");
- lpCache->red_mask = (*env)->GetFieldID(env, lpCache->clazz, "red_mask", "I");
- lpCache->green_mask = (*env)->GetFieldID(env, lpCache->clazz, "green_mask", "I");
- lpCache->blue_mask = (*env)->GetFieldID(env, lpCache->clazz, "blue_mask", "I");
- lpCache->colormap_size = (*env)->GetFieldID(env, lpCache->clazz, "colormap_size", "I");
- lpCache->bits_per_rgb = (*env)->GetFieldID(env, lpCache->clazz, "bits_per_rgb", "I");
- lpCache->cached = 1;
-}
-
-XVisualInfo *getXVisualInfoFields(JNIEnv *env, jobject lpObject, XVisualInfo *lpStruct)
-{
- PXVisualInfo_FID_CACHE lpCache = &XVisualInfoFc;
- if (!lpCache->cached) cacheXVisualInfoFids(env, lpObject, lpCache);
- lpStruct->visual = (Visual *)(*env)->GetIntField(env, lpObject, lpCache->visual);
- lpStruct->visualid = (*env)->GetIntField(env, lpObject, lpCache->visualid);
- lpStruct->screen = (*env)->GetIntField(env, lpObject, lpCache->screen);
- lpStruct->depth = (*env)->GetIntField(env, lpObject, lpCache->depth);
- lpStruct->class = (*env)->GetIntField(env, lpObject, lpCache->cclass);
- lpStruct->red_mask = (*env)->GetIntField(env, lpObject, lpCache->red_mask);
- lpStruct->green_mask = (*env)->GetIntField(env, lpObject, lpCache->green_mask);
- lpStruct->blue_mask = (*env)->GetIntField(env, lpObject, lpCache->blue_mask);
- lpStruct->colormap_size = (*env)->GetIntField(env, lpObject, lpCache->colormap_size);
- lpStruct->bits_per_rgb = (*env)->GetIntField(env, lpObject, lpCache->bits_per_rgb);
- return lpStruct;
-}
-
-void setXVisualInfoFields(JNIEnv *env, jobject lpObject, XVisualInfo *lpStruct)
-{
- PXVisualInfo_FID_CACHE lpCache = &XVisualInfoFc;
- if (!lpCache->cached) cacheXVisualInfoFids(env, lpObject, lpCache);
- (*env)->SetIntField(env, lpObject, lpCache->visual, (jint)lpStruct->visual);
- (*env)->SetIntField(env, lpObject, lpCache->visualid, (jint)lpStruct->visualid);
- (*env)->SetIntField(env, lpObject, lpCache->screen, (jint)lpStruct->screen);
- (*env)->SetIntField(env, lpObject, lpCache->depth, (jint)lpStruct->depth);
- (*env)->SetIntField(env, lpObject, lpCache->cclass, (jint)lpStruct->class);
- (*env)->SetIntField(env, lpObject, lpCache->red_mask, (jint)lpStruct->red_mask);
- (*env)->SetIntField(env, lpObject, lpCache->green_mask, (jint)lpStruct->green_mask);
- (*env)->SetIntField(env, lpObject, lpCache->blue_mask, (jint)lpStruct->blue_mask);
- (*env)->SetIntField(env, lpObject, lpCache->colormap_size, (jint)lpStruct->colormap_size);
- (*env)->SetIntField(env, lpObject, lpCache->bits_per_rgb, (jint)lpStruct->bits_per_rgb);
-}
diff --git a/bundles/org.eclipse.swt.opengl/gtk/library/structs.h b/bundles/org.eclipse.swt.opengl/gtk/library/structs.h
deleted file mode 100644
index 5d98fdd395..0000000000
--- a/bundles/org.eclipse.swt.opengl/gtk/library/structs.h
+++ /dev/null
@@ -1,16 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2000, 2005 IBM Corporation and others.
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * IBM Corporation - initial API and implementation
- *******************************************************************************/
-#include <X11/X.h>
-#include <X11/Xutil.h>
-
-XVisualInfo *getXVisualInfoFields(JNIEnv *env, jobject lpObject, XVisualInfo *lpStruct);
-void setXVisualInfoFields(JNIEnv *env, jobject lpObject, XVisualInfo *lpStruct);
-
diff --git a/bundles/org.eclipse.swt.opengl/gtk/org/eclipse/swt/internal/opengl/gtk/GLX.java b/bundles/org.eclipse.swt.opengl/gtk/org/eclipse/swt/internal/opengl/gtk/GLX.java
deleted file mode 100755
index 3507933b1c..0000000000
--- a/bundles/org.eclipse.swt.opengl/gtk/org/eclipse/swt/internal/opengl/gtk/GLX.java
+++ /dev/null
@@ -1,221 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2000, 2003 IBM Corporation and others.
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * IBM Corporation - initial API and implementation
- *******************************************************************************/
-package org.eclipse.swt.internal.opengl.gtk;
-
-import org.eclipse.swt.opengl.Library;
-
-public class GLX {
-
-static {
- Library.loadLibrary("gl");
-}
-
-/*
-** Visual Config Attributes (glXGetConfig, glXGetFBConfigAttrib)
-*/
-public static final int GLX_USE_GL = 1; /* support GLX rendering */
-public static final int GLX_BUFFER_SIZE = 2; /* depth of the color buffer */
-public static final int GLX_LEVEL = 3; /* level in plane stacking */
-public static final int GLX_RGBA = 4; /* true if RGBA mode */
-public static final int GLX_DOUBLEBUFFER = 5; /* double buffering supported */
-public static final int GLX_STEREO = 6; /* stereo buffering supported */
-public static final int GLX_AUX_BUFFERS = 7; /* number of aux buffers */
-public static final int GLX_RED_SIZE = 8; /* number of red component bits */
-public static final int GLX_GREEN_SIZE = 9; /* number of green component bits */
-public static final int GLX_BLUE_SIZE = 10; /* number of blue component bits */
-public static final int GLX_ALPHA_SIZE = 11; /* number of alpha component bits */
-public static final int GLX_DEPTH_SIZE = 12; /* number of depth bits */
-public static final int GLX_STENCIL_SIZE = 13; /* number of stencil bits */
-public static final int GLX_ACCUM_RED_SIZE = 14; /* number of red accum bits */
-public static final int GLX_ACCUM_GREEN_SIZE = 15; /* number of green accum bits */
-public static final int GLX_ACCUM_BLUE_SIZE = 16; /* number of blue accum bits */
-public static final int GLX_ACCUM_ALPHA_SIZE = 17; /* number of alpha accum bits */
-/*
-** FBConfig-specific attributes
-*/
-public static final int GLX_X_VISUAL_TYPE = 0x22;
-public static final int GLX_CONFIG_CAVEAT = 0x20; /* Like visual_info VISUAL_CAVEAT_EXT */
-public static final int GLX_TRANSPARENT_TYPE = 0x23;
-public static final int GLX_TRANSPARENT_INDEX_VALUE = 0x24;
-public static final int GLX_TRANSPARENT_RED_VALUE = 0x25;
-public static final int GLX_TRANSPARENT_GREEN_VALUE = 0x26;
-public static final int GLX_TRANSPARENT_BLUE_VALUE = 0x27;
-public static final int GLX_TRANSPARENT_ALPHA_VALUE = 0x28;
-public static final int GLX_DRAWABLE_TYPE = 0x8010;
-public static final int GLX_RENDER_TYPE = 0x8011;
-public static final int GLX_X_RENDERABLE = 0x8012;
-public static final int GLX_FBCONFIG_ID = 0x8013;
-public static final int GLX_MAX_PBUFFER_WIDTH = 0x8016;
-public static final int GLX_MAX_PBUFFER_HEIGHT = 0x8017;
-public static final int GLX_MAX_PBUFFER_PIXELS = 0x8018;
-public static final int GLX_VISUAL_ID = 0x800B;
-
-/*
-** Error return values from glXGetConfig. Success is indicated by
-** a value of 0.
-*/
-public static final int GLX_BAD_SCREEN = 1; /* screen # is bad */
-public static final int GLX_BAD_ATTRIBUTE = 2; /* attribute to get is bad */
-public static final int GLX_NO_EXTENSION = 3; /* no glx extension on server */
-public static final int GLX_BAD_VISUAL = 4; /* visual # not known by GLX */
-public static final int GLX_BAD_CONTEXT = 5; /* returned only by import_context EXT? */
-public static final int GLX_BAD_VALUE = 6; /* returned only by glXSwapIntervalSGI? */
-public static final int GLX_BAD_ENUM = 7; /* unused? */
-
-/* FBConfig attribute values */
-
-/*
-** Generic "don't care" value for glX ChooseFBConfig attributes (except
-** GLX_LEVEL)
-*/
-public static final int GLX_DONT_CARE = 0xFFFFFFFF;
-
-/* GLX_RENDER_TYPE bits */
-public static final int GLX_RGBA_BIT = 0x00000001;
-public static final int GLX_COLOR_INDEX_BIT = 0x00000002;
-
-/* GLX_DRAWABLE_TYPE bits */
-public static final int GLX_WINDOW_BIT = 0x00000001;
-public static final int GLX_PIXMAP_BIT = 0x00000002;
-public static final int GLX_PBUFFER_BIT = 0x00000004;
-
-/* GLX_CONFIG_CAVEAT attribute values */
-public static final int GLX_NONE = 0x8000;
-public static final int GLX_SLOW_CONFIG = 0x8001;
-public static final int GLX_NON_CONFORMANT_CONFIG = 0x800D;
-
-/* GLX_X_VISUAL_TYPE attribute values */
-public static final int GLX_TRUE_COLOR = 0x8002;
-public static final int GLX_DIRECT_COLOR = 0x8003;
-public static final int GLX_PSEUDO_COLOR = 0x8004;
-public static final int GLX_STATIC_COLOR = 0x8005;
-public static final int GLX_GRAY_SCALE = 0x8006;
-public static final int GLX_STATIC_GRAY = 0x8007;
-
-/* GLX_TRANSPARENT_TYPE attribute values */
-/* public static final int GLX_NONE 0x8000 */
-public static final int GLX_TRANSPARENT_RGB = 0x8008;
-public static final int GLX_TRANSPARENT_INDEX = 0x8009;
-
-/* glXCreateGLXPbuffer attributes */
-public static final int GLX_PRESERVED_CONTENTS = 0x801B;
-public static final int GLX_LARGEST_PBUFFER = 0x801C;
-public static final int GLX_PBUFFER_HEIGHT = 0x8040; /* New for GLX 1.3 */
-public static final int GLX_PBUFFER_WIDTH = 0x8041; /* New for GLX 1.3 */
-
-/* glXQueryGLXPBuffer attributes */
-public static final int GLX_WIDTH = 0x801D;
-public static final int GLX_HEIGHT = 0x801E;
-public static final int GLX_EVENT_MASK = 0x801F;
-
-/* glXCreateNewContext render_type attribute values */
-public static final int GLX_RGBA_TYPE = 0x8014;
-public static final int GLX_COLOR_INDEX_TYPE = 0x8015;
-
-/* glXQueryContext attributes */
-/* public static final int GLX_FBCONFIG_ID 0x8013 */
-/* public static final int GLX_RENDER_TYPE 0x8011 */
-public static final int GLX_SCREEN = 0x800C;
-
-/* glXSelectEvent event mask bits */
-public static final int GLX_PBUFFER_CLOBBER_MASK = 0x08000000;
-
-/* GLXPbufferClobberEvent event_type values */
-public static final int GLX_DAMAGED = 0x8020;
-public static final int GLX_SAVED = 0x8021;
-
-/* GLXPbufferClobberEvent draw_type values */
-public static final int GLX_WINDOW = 0x8022;
-public static final int GLX_PBUFFER = 0x8023;
-
-/* GLXPbufferClobberEvent buffer_mask bits */
-public static final int GLX_FRONT_LEFT_BUFFER_BIT = 0x00000001;
-public static final int GLX_FRONT_RIGHT_BUFFER_BIT = 0x00000002;
-public static final int GLX_BACK_LEFT_BUFFER_BIT = 0x00000004;
-public static final int GLX_BACK_RIGHT_BUFFER_BIT = 0x00000008;
-public static final int GLX_AUX_BUFFERS_BIT = 0x00000010;
-public static final int GLX_DEPTH_BUFFER_BIT = 0x00000020;
-public static final int GLX_STENCIL_BUFFER_BIT = 0x00000040;
-public static final int GLX_ACCUM_BUFFER_BIT = 0x00000080;
-
-/*
-** Extension return values from glXGetConfig. These are also
-** accepted as parameter values for glXChooseVisual.
-*/
-
-public static final int GLX_X_VISUAL_TYPE_EXT = 0x22; /* visual_info extension type */
-public static final int GLX_TRANSPARENT_TYPE_EXT = 0x23; /* visual_info extension */
-public static final int GLX_TRANSPARENT_INDEX_VALUE_EXT = 0x24; /* visual_info extension */
-public static final int GLX_TRANSPARENT_RED_VALUE_EXT = 0x25; /* visual_info extension */
-public static final int GLX_TRANSPARENT_GREEN_VALUE_EXT = 0x26; /* visual_info extension */
-public static final int GLX_TRANSPARENT_BLUE_VALUE_EXT = 0x27; /* visual_info extension */
-public static final int GLX_TRANSPARENT_ALPHA_VALUE_EXT = 0x28; /* visual_info extension */
-
-/* Property values for visual_type */
-public static final int GLX_TRUE_COLOR_EXT = 0x8002;
-public static final int GLX_DIRECT_COLOR_EXT = 0x8003;
-public static final int GLX_PSEUDO_COLOR_EXT = 0x8004;
-public static final int GLX_STATIC_COLOR_EXT = 0x8005;
-public static final int GLX_GRAY_SCALE_EXT = 0x8006;
-public static final int GLX_STATIC_GRAY_EXT = 0x8007;
-
-/* Property values for transparent pixel */
-public static final int GLX_NONE_EXT = 0x8000;
-public static final int GLX_TRANSPARENT_RGB_EXT = 0x8008;
-public static final int GLX_TRANSPARENT_INDEX_EXT = 0x8009;
-
-/* Property values for visual_rating */
-public static final int GLX_VISUAL_CAVEAT_EXT = 0x20; /* visual_rating extension type */
-public static final int GLX_SLOW_VISUAL_EXT = 0x8001;
-public static final int GLX_NON_CONFORMANT_VISUAL_EXT = 0x800D;
-
-/*
-** Names for attributes to glXGetClientString.
-*/
-public static final int GLX_VENDOR = 0x1;
-public static final int GLX_VERSION = 0x2;
-public static final int GLX_EXTENSIONS = 0x3;
-
-/*
-** Names for attributes to glXQueryContextInfoEXT.
-*/
-public static final int GLX_SHARE_CONTEXT_EXT = 0x800A; /* id of share context */
-public static final int GLX_VISUAL_ID_EXT = 0x800B; /* id of context's visual */
-public static final int GLX_SCREEN_EXT = 0x800C; /* screen number */
-
-/*
-* GLX 1.4
-*/
-public static final int GLX_SAMPLE_BUFFERS = 100000;
-public static final int GLX_SAMPLES = 100001;
-
-public static final native int glXChooseVisual(int dpy, int screen, int[] attribList);
-public static final native void glXCopyContext(int dpy, int src, int dst, int mask);
-public static final native int glXCreateContext(int dpy, XVisualInfo vis, int shareList, boolean direct);
-public static final native int glXCreateGLXPixmap(int dpy, XVisualInfo vis, int pixmap);
-public static final native void glXDestroyContext(int dpy, int ctx);
-public static final native void glXDestroyGLXPixmap(int dpy, int pix);
-public static final native int glXGetConfig(int dpy, XVisualInfo vis, int attrib, int[] value);
-public static final native int glXGetCurrentContext();
-public static final native int glXGetCurrentDrawable();
-public static final native boolean glXIsDirect(int dpy, int ctx);
-public static final native boolean glXMakeCurrent(int dpy, int drawable, int ctx);
-public static final native boolean glXQueryExtension(int dpy, int[] errorBase, int[] eventBase);
-public static final native boolean glXQueryVersion(int dpy, int[] major, int[] minor);
-public static final native void glXSwapBuffers(int dpy, int drawable);
-public static final native void glXUseXFont(int font, int first, int count, int listBase);
-public static final native void glXWaitGL();
-public static final native void glXWaitX();
-public static final native int glXGetClientString(int dpy, int name);
-public static final native int glXQueryServerString(int dpy, int screen, int name);
-public static final native int glXQueryExtensionsString(int dpy, int screen);
-public static final native void memmove(XVisualInfo dest, int src, int size);
-}
diff --git a/bundles/org.eclipse.swt.opengl/gtk/org/eclipse/swt/opengl/GLCanvas.java b/bundles/org.eclipse.swt.opengl/gtk/org/eclipse/swt/opengl/GLCanvas.java
deleted file mode 100644
index 113f3ed8f9..0000000000
--- a/bundles/org.eclipse.swt.opengl/gtk/org/eclipse/swt/opengl/GLCanvas.java
+++ /dev/null
@@ -1,257 +0,0 @@
-package org.eclipse.swt.opengl;
-
-import org.eclipse.swt.*;
-import org.eclipse.swt.widgets.*;
-import org.eclipse.swt.graphics.*;
-import org.eclipse.swt.internal.gtk.*;
-import org.eclipse.swt.internal.opengl.gtk.*;
-import org.eclipse.opengl.*;
-
-/**
- * GLCanvas is a widget capable of displaying OpenGL content.
- */
-
-public class GLCanvas extends Canvas {
- int /*long*/ xdisplay;
- int /*long*/ xid;
- int /*long*/ context;
- int /*long*/ glWindow;
- XVisualInfo vinfo;
-
- private static final int MAX_ATTRIBUTES = 32;
-
-/**
- * Create a GLCanvas widget using the attributes described in the GLData
- * object provided.
- *
- * @param parent a composite widget
- * @param style the bitwise OR'ing of widget styles
- * @param data the requested attributes of the GLCanvas
- *
- * @exception IllegalArgumentException
- * <ul><li>ERROR_NULL_ARGUMENT when the data is null
- * <li>ERROR_UNSUPPORTED_DEPTH when the requested attributes cannot be provided</ul>
- * @exception SWTException
- * <ul><li>ERROR_THREAD_INVALID_ACCESS when called from the wrong thread
- * <li>ERROR_CANNOT_CREATE_OBJECT when failed to create OLE Object
- * <li>ERROR_CANNOT_OPEN_FILE when failed to open file
- * <li>ERROR_INTERFACE_NOT_FOUND when unable to create callbacks for OLE Interfaces
- * <li>ERROR_INVALID_CLASSID
- * </ul>
- */
-public GLCanvas (Composite parent, int style, GLData data) {
- super (parent, style);
- if (data == null) SWT.error (SWT.ERROR_NULL_ARGUMENT);
- int glxAttrib [] = new int [MAX_ATTRIBUTES];
- int pos = 0;
-
- OS.gtk_widget_realize (handle);
- int /*long*/ window = OS.GTK_WIDGET_WINDOW (handle);
- xdisplay = OS.gdk_x11_drawable_get_xdisplay (window);
- int xscreen = OS.XDefaultScreen (xdisplay);
-
- glxAttrib [pos++] = GLX.GLX_RGBA;
- if (data.doubleBuffer) glxAttrib [pos++] = GLX.GLX_DOUBLEBUFFER;
- if (data.stereo) glxAttrib [pos++] = GLX.GLX_STEREO;
- if (data.redSize > 0) {
- glxAttrib [pos++] = GLX.GLX_RED_SIZE;
- glxAttrib [pos++] = data.redSize;
- }
- if (data.greenSize > 0) {
- glxAttrib [pos++] = GLX.GLX_GREEN_SIZE;
- glxAttrib [pos++] = data.greenSize;
- }
- if (data.blueSize > 0) {
- glxAttrib [pos++] = GLX.GLX_BLUE_SIZE;
- glxAttrib [pos++] = data.blueSize;
- }
- if (data.alphaSize > 0) {
- glxAttrib [pos++] = GLX.GLX_ALPHA_SIZE;
- glxAttrib [pos++] = data.alphaSize;
- }
- if (data.depthSize > 0) {
- glxAttrib [pos++] = GLX.GLX_DEPTH_SIZE;
- glxAttrib [pos++] = data.depthSize;
- }
- if (data.stencilSize > 0) {
- glxAttrib [pos++] = GLX.GLX_STENCIL_SIZE;
- glxAttrib [pos++] = data.stencilSize;
- }
- if (data.accumRedSize > 0) {
- glxAttrib [pos++] = GLX.GLX_ACCUM_RED_SIZE;
- glxAttrib [pos++] = data.accumRedSize;
- }
- if (data.accumGreenSize > 0) {
- glxAttrib [pos++] = GLX.GLX_ACCUM_GREEN_SIZE;
- glxAttrib [pos++] = data.accumGreenSize;
- }
- if (data.accumBlueSize > 0) {
- glxAttrib [pos++] = GLX.GLX_ACCUM_BLUE_SIZE;
- glxAttrib [pos++] = data.accumBlueSize;
- }
- if (data.accumAlphaSize > 0) {
- glxAttrib [pos++] = GLX.GLX_ACCUM_ALPHA_SIZE;
- glxAttrib [pos++] = data.accumAlphaSize;
- }
- if (data.sampleBuffers > 0) {
- glxAttrib [pos++] = GLX.GLX_SAMPLE_BUFFERS;
- glxAttrib [pos++] = data.sampleBuffers;
- }
- if (data.samples > 0) {
- glxAttrib [pos++] = GLX.GLX_SAMPLES;
- glxAttrib [pos++] = data.samples;
- }
- glxAttrib [pos++] = 0;
- int infoPtr = GLX.glXChooseVisual (xdisplay, xscreen, glxAttrib);
- if (infoPtr == 0) SWT.error (SWT.ERROR_UNSUPPORTED_DEPTH);
- vinfo = new XVisualInfo ();
- GLX.memmove (vinfo, infoPtr, XVisualInfo.sizeof);
- OS.XFree (infoPtr);
- int /*long*/ screen = OS.gdk_screen_get_default ();
- int /*long*/ gdkvisual = OS.gdk_x11_screen_lookup_visual (screen, vinfo.visualid);
- //context = GLX.glXCreateContext (xdisplay, info, share == null ? 0 : share.context, true);
- context = GLX.glXCreateContext (xdisplay, vinfo, 0, true);
- if (context == 0) SWT.error (SWT.ERROR_NO_HANDLES);
- GdkWindowAttr attrs = new GdkWindowAttr ();
- attrs.width = 1;
- attrs.height = 1;
- attrs.event_mask = OS.GDK_KEY_PRESS_MASK | OS.GDK_KEY_RELEASE_MASK |
- OS.GDK_FOCUS_CHANGE_MASK | OS.GDK_POINTER_MOTION_MASK |
- OS.GDK_BUTTON_PRESS_MASK | OS.GDK_BUTTON_RELEASE_MASK |
- OS.GDK_ENTER_NOTIFY_MASK | OS.GDK_LEAVE_NOTIFY_MASK |
- OS.GDK_EXPOSURE_MASK | OS.GDK_VISIBILITY_NOTIFY_MASK;
- attrs.window_type = OS.GDK_WINDOW_CHILD;
- attrs.visual = gdkvisual;
- glWindow = OS.gdk_window_new (window, attrs, OS.GDK_WA_VISUAL);
- OS.gdk_window_set_user_data (glWindow, handle);
- xid = OS.gdk_x11_drawable_get_xid (glWindow);
- OS.gdk_window_show (glWindow);
-
- Listener listener = new Listener () {
- public void handleEvent (Event event) {
- switch (event.type) {
- case SWT.Paint:
- /**
- * Bug in MESA. MESA does some nasty sort of polling to try
- * and ensure that their buffer sizes match the current X state.
- * This state can be updated using glViewport().
- * FIXME: There has to be a better way of doing this.
- */
- int [] viewport = new int [4];
- GL.glGetIntegerv (GL.GL_VIEWPORT, viewport);
- GL.glViewport (viewport [0],viewport [1],viewport [2],viewport [3]);
- break;
- case SWT.Resize:
- Rectangle clientArea = getClientArea();
- OS.gdk_window_move (glWindow, clientArea.x, clientArea.y);
- OS.gdk_window_resize (glWindow, clientArea.width, clientArea.height);
- break;
- case SWT.Dispose:
- if (context != 0) {
- if (GLX.glXGetCurrentContext () == context) {
- GLX.glXMakeCurrent(xdisplay, 0, 0);
- }
- GLX.glXDestroyContext (xdisplay, context);
- context = 0;
- }
- if (glWindow != 0) {
- OS.gdk_window_destroy (glWindow);
- glWindow = 0;
- }
- break;
- }
- }
- };
- addListener (SWT.Resize, listener);
- addListener (SWT.Paint, listener);
- addListener (SWT.Dispose, listener);
-}
-
-/**
- * Returns a GLData object describing the created context.
- *
- * @return GLData description of the OpenGL context attributes
- * @exception SWTException <ul>
- * <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li>
- * <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li>
- * </ul>
- */
-public GLData getGLData () {
- checkWidget ();
- GLData data = new GLData ();
- int [] value = new int [1];
- GLX.glXGetConfig (xdisplay, vinfo, GLX.GLX_DOUBLEBUFFER, value);
- data.doubleBuffer = value [0] != 0;
- GLX.glXGetConfig (xdisplay, vinfo, GLX.GLX_STEREO, value);
- data.stereo = value [0] != 0;
- GLX.glXGetConfig (xdisplay, vinfo, GLX.GLX_RED_SIZE, value);
- data.redSize = value [0];
- GLX.glXGetConfig (xdisplay, vinfo, GLX.GLX_GREEN_SIZE, value);
- data.greenSize = value [0];
- GLX.glXGetConfig (xdisplay, vinfo, GLX.GLX_BLUE_SIZE, value);
- data.blueSize = value [0];
- GLX.glXGetConfig (xdisplay, vinfo, GLX.GLX_ALPHA_SIZE, value);
- data.alphaSize = value [0];
- GLX.glXGetConfig (xdisplay, vinfo, GLX.GLX_DEPTH_SIZE, value);
- data.depthSize = value [0];
- GLX.glXGetConfig (xdisplay, vinfo, GLX.GLX_STENCIL_SIZE, value);
- data.stencilSize = value [0];
- GLX.glXGetConfig (xdisplay, vinfo, GLX.GLX_ACCUM_RED_SIZE, value);
- data.accumRedSize = value [0];
- GLX.glXGetConfig (xdisplay, vinfo, GLX.GLX_ACCUM_GREEN_SIZE, value);
- data.accumGreenSize = value [0];
- GLX.glXGetConfig (xdisplay, vinfo, GLX.GLX_ACCUM_BLUE_SIZE, value);
- data.accumBlueSize = value [0];
- GLX.glXGetConfig (xdisplay, vinfo, GLX.GLX_ACCUM_ALPHA_SIZE, value);
- data.accumAlphaSize = value [0];
- GLX.glXGetConfig (xdisplay, vinfo, GLX.GLX_SAMPLE_BUFFERS, value);
- data.sampleBuffers = value [0];
- GLX.glXGetConfig (xdisplay, vinfo, GLX.GLX_SAMPLES, value);
- data.samples = value [0];
- return data;
-}
-
-/**
- * Returns a boolean indicating whether the receiver's OpenGL context
- * is the current context.
- *
- * @return true if the receiver holds the current OpenGL context,
- * false otherwise
- * @exception SWTException <ul>
- * <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li>
- * <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li>
- * </ul>
- */
-public boolean isCurrent () {
- checkWidget ();
- return GLX.glXGetCurrentContext () == context;
-}
-
-/**
- * Sets the OpenGL context associated with this GLCanvas to be the
- * current GL context.
- *
- * @exception SWTException <ul>
- * <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li>
- * <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li>
- * </ul>
- */
-public void setCurrent () {
- checkWidget ();
- if (GLX.glXGetCurrentContext () == context) return;
- GLX.glXMakeCurrent (xdisplay, xid, context);
-}
-
-/**
- * Swaps the front and back color buffers.
- *
- * @exception SWTException <ul>
- * <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li>
- * <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li>
- * </ul>
- */
-public void swapBuffers () {
- checkWidget ();
- GLX.glXSwapBuffers (xdisplay, xid);
-}
-}
diff --git a/bundles/org.eclipse.swt.opengl/motif/library/build.sh b/bundles/org.eclipse.swt.opengl/motif/library/build.sh
deleted file mode 100644
index afec19dd74..0000000000
--- a/bundles/org.eclipse.swt.opengl/motif/library/build.sh
+++ /dev/null
@@ -1,70 +0,0 @@
-#!/bin/sh
-#*******************************************************************************
-# Copyright (c) 2000, 2005 IBM Corporation and others.
-# All rights reserved. This program and the accompanying materials
-# are made available under the terms of the Eclipse Public License v1.0
-# which accompanies this distribution, and is available at
-# http://www.eclipse.org/legal/epl-v10.html
-#
-# Contributors:
-# IBM Corporation - initial API and implementation
-# Kevin Cornell (Rational Software Corporation)
-# Tom Tromey (Red Hat, Inc.)
-# Sridhar Bidigalu (ICS)
-#*******************************************************************************
-
-cd `dirname $0`
-
-# Determine the operating system being built
-makefile=""
-OS=`uname -s`
-MODEL=`uname -m`
-
-case $OS in
- "AIX")
- JAVA_HOME=/bluebird/teamswt/swt-builddir/aixj9
- MOTIF_HOME=/usr
- CDE_HOME=/usr/dt
- makefile="make_aix.mak"
- echo "Building AIX version of SWT"
- ;;
- "Linux")
- JAVA_HOME=/bluebird/teamswt/swt-builddir/IBMJava2-141
- MOTIF_HOME=/bluebird/teamswt/swt-builddir/motif21
- QT_HOME=$QTDIR
- makefile="make_linux.mak"
- echo "Building Linux version of SWT"
- ;;
- "SunOS")
- JAVA_HOME=/usr/java
- MOTIF_HOME=/usr/dt
- CDE_HOME=/usr/dt
- PATH=/opt/SUNWspro/bin:$PATH
- export PATH
- makefile="make_solaris.mak"
- echo "Building Solaris version of SWT"
- ;;
- "HP-UX")
- JAVA_HOME=/opt/jdk14101
- MOTIF_HOME=/usr
- CDE_HOME=/usr/dt
- case $MODEL in
- "ia64")
- makefile="make_hpux_ia64.mak"
- echo "Building HPUX ia64 version of SWT"
- ;;
- *)
- makefile="make_hpux_PA_RISC.mak"
- echo "Building HPUX risc version of SWT"
- ;;
- esac
- ;;
-
- *)
- echo "Unknown OS -- build aborted"
- ;;
-esac
-
-export JAVA_HOME MOTIF_HOME CDE_HOME QT_HOME
-
-make -f $makefile $1 $2 $3 $4 \ No newline at end of file
diff --git a/bundles/org.eclipse.swt.opengl/motif/library/glx.c b/bundles/org.eclipse.swt.opengl/motif/library/glx.c
deleted file mode 100644
index df8e1024f9..0000000000
--- a/bundles/org.eclipse.swt.opengl/motif/library/glx.c
+++ /dev/null
@@ -1,232 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2000, 2005 IBM Corporation and others.
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * IBM Corporation - initial API and implementation
- *******************************************************************************/
-#include <GL/glx.h>
-#include "swt.h"
-#include "structs.h"
-
-#define XGL_NATIVE(func) Java_org_eclipse_swt_opengl_internal_motif_XGL_##func
-
-JNIEXPORT jint JNICALL XGL_NATIVE(glXChooseVisual)
- (JNIEnv *env, jclass that, jint arg0, jint arg1, jintArray arg2)
-{
- jint *lparg2=NULL;
- jint rc;
-
- DEBUG_CALL("glXChooseVisual\n")
-
- if (arg2) lparg2 = (*env)->GetIntArrayElements(env, arg2, NULL);
- rc = (jint)glXChooseVisual((Display *)arg0, arg1, (int *)lparg2);
- if (arg2) (*env)->ReleaseIntArrayElements(env, arg2, lparg2, 0);
- return rc;
-}
-
-JNIEXPORT void JNICALL XGL_NATIVE(glXCopyContext)
- (JNIEnv *env, jclass that, jint arg0, jint arg1, jint arg2, jint arg3)
-{
- DEBUG_CALL("glXCopyContext\n")
-
- glXCopyContext((Display *)arg0, (GLXContext)arg1, (GLXContext)arg2, arg3);
-}
-
-JNIEXPORT jint JNICALL XGL_NATIVE(glXCreateContext)
- (JNIEnv *env, jclass that, jint arg0, jobject arg1, jint arg2, jboolean arg3)
-{
- XVisualInfo _arg1, *lparg1=NULL;
- jint rc;
-
- DEBUG_CALL("glXCreateContext\n")
-
- if (arg1) lparg1 = getXVisualInfoFields(env, arg1, &_arg1);
- rc = (jint)glXCreateContext((Display *)arg0, lparg1, (GLXContext)arg2, arg3);
- if (arg1) setXVisualInfoFields(env, arg1, lparg1);
- return rc;
-}
-
-JNIEXPORT jint JNICALL XGL_NATIVE(glXCreateGLXPixmap)
- (JNIEnv *env, jclass that, jint arg0, jobject arg1, jint arg2)
-{
- XVisualInfo _arg1, *lparg1=NULL;
- jint rc;
-
- DEBUG_CALL("glXCreateGLXPixmap\n")
-
- if (arg1) lparg1 = getXVisualInfoFields(env, arg1, &_arg1);
- rc = (jint)glXCreateGLXPixmap((Display *)arg0, lparg1, arg2);
- if (arg1) setXVisualInfoFields(env, arg1, lparg1);
- return rc;
-}
-
-JNIEXPORT void JNICALL XGL_NATIVE(glXDestroyContext)
- (JNIEnv *env, jclass that, jint arg0, jint arg1)
-{
- DEBUG_CALL("glXDestroyContext\n")
-
- glXDestroyContext((Display *)arg0, (GLXContext)arg1);
-}
-
-JNIEXPORT void JNICALL XGL_NATIVE(glXDestroyGLXPixmap)
- (JNIEnv *env, jclass that, jint arg0, jint arg1)
-{
- DEBUG_CALL("glXDestroyGLXPixmap\n")
-
- glXDestroyGLXPixmap((Display *)arg0, arg1);
-}
-
-JNIEXPORT jint JNICALL XGL_NATIVE(glXGetClientString)
- (JNIEnv *env, jclass that, jint arg0, jint arg1)
-{
- DEBUG_CALL("glXGetClientString\n")
-
- return (jint)glXGetClientString((Display *)arg0, arg1);
-}
-
-JNIEXPORT jint JNICALL XGL_NATIVE(glXGetConfig)
- (JNIEnv *env, jclass that, jint arg0, jobject arg1, jint arg2, jintArray arg3)
-{
- XVisualInfo _arg1, *lparg1=NULL;
- jint *lparg3=NULL;
- jint rc;
-
- DEBUG_CALL("glXGetConfig\n")
-
- if (arg1) lparg1 = getXVisualInfoFields(env, arg1, &_arg1);
- if (arg3) lparg3 = (*env)->GetIntArrayElements(env, arg3, NULL);
- rc = (jint)glXGetConfig((Display *)arg0, lparg1, arg2, (int *)lparg3);
- if (arg1) setXVisualInfoFields(env, arg1, lparg1);
- if (arg3) (*env)->ReleaseIntArrayElements(env, arg3, lparg3, 0);
- return rc;
-}
-
-JNIEXPORT jint JNICALL XGL_NATIVE(glXGetCurrentContext)
- (JNIEnv *env, jclass that)
-{
- DEBUG_CALL("glXGetCurrentContext\n")
-
- return (jint)glXGetCurrentContext();
-}
-
-JNIEXPORT jint JNICALL XGL_NATIVE(glXGetCurrentDrawable)
- (JNIEnv *env, jclass that)
-{
- DEBUG_CALL("glXGetCurrentDrawable\n")
-
- return (jint)glXGetCurrentDrawable();
-}
-
-JNIEXPORT jboolean JNICALL XGL_NATIVE(glXIsDirect)
- (JNIEnv *env, jclass that, jint arg0, jint arg1)
-{
- DEBUG_CALL("glXIsDirect\n")
-
- return (jboolean)glXIsDirect((Display *)arg0, (GLXContext)arg1);
-}
-
-JNIEXPORT jboolean JNICALL XGL_NATIVE(glXMakeCurrent)
- (JNIEnv *env, jclass that, jint arg0, jint arg1, jint arg2)
-{
- DEBUG_CALL("glXMakeCurrent\n")
-
- return (jboolean)glXMakeCurrent((Display *)arg0, (GLXDrawable)arg1, (GLXContext)arg2);
-}
-
-JNIEXPORT jboolean JNICALL XGL_NATIVE(glXQueryExtension)
- (JNIEnv *env, jclass that, jint arg0, jintArray arg1, jintArray arg2)
-{
- jint *lparg1=NULL;
- jint *lparg2=NULL;
- jboolean rc;
-
- DEBUG_CALL("glXQueryExtension\n")
-
- if (arg1) lparg1 = (*env)->GetIntArrayElements(env, arg1, NULL);
- if (arg2) lparg2 = (*env)->GetIntArrayElements(env, arg2, NULL);
- rc = (jboolean)glXQueryExtension((Display *)arg0, (int *)lparg1, (int *)lparg2);
- if (arg1) (*env)->ReleaseIntArrayElements(env, arg1, lparg1, 0);
- if (arg2) (*env)->ReleaseIntArrayElements(env, arg2, lparg2, 0);
- return rc;
-}
-
-JNIEXPORT jint JNICALL XGL_NATIVE(glXQueryExtensionsString)
- (JNIEnv *env, jclass that, jint arg0, jint arg1)
-{
- DEBUG_CALL("glXQueryExtensionsString\n")
-
- return (jint)glXQueryExtensionsString((Display *)arg0, arg1);
-}
-
-JNIEXPORT jint JNICALL XGL_NATIVE(glXQueryServerString)
- (JNIEnv *env, jclass that, jint arg0, jint arg1, jint arg2)
-{
- DEBUG_CALL("glXQueryServerString\n")
-
- return (jint)glXQueryServerString((Display *)arg0, arg1, arg2);
-}
-
-JNIEXPORT jboolean JNICALL XGL_NATIVE(glXQueryVersion)
- (JNIEnv *env, jclass that, jint arg0, jintArray arg1, jintArray arg2)
-{
- jint *lparg1=NULL;
- jint *lparg2=NULL;
- jboolean rc;
-
- DEBUG_CALL("glXQueryVersion\n")
-
- if (arg1) lparg1 = (*env)->GetIntArrayElements(env, arg1, NULL);
- if (arg2) lparg2 = (*env)->GetIntArrayElements(env, arg2, NULL);
- rc = (jboolean)glXQueryVersion((Display *)arg0, (int *)lparg1, (int *)lparg2);
- if (arg1) (*env)->ReleaseIntArrayElements(env, arg1, lparg1, 0);
- if (arg2) (*env)->ReleaseIntArrayElements(env, arg2, lparg2, 0);
- return rc;
-}
-
-JNIEXPORT void JNICALL XGL_NATIVE(glXSwapBuffers)
- (JNIEnv *env, jclass that, jint arg0, jint arg1)
-{
- DEBUG_CALL("glXSwapBuffers\n")
-
- glXSwapBuffers((Display *)arg0, (GLXDrawable)arg1);
-}
-
-JNIEXPORT void JNICALL XGL_NATIVE(glXUseXFont)
- (JNIEnv *env, jclass that, jint arg0, jint arg1, jint arg2, jint arg3)
-{
- DEBUG_CALL("glXUseXFont\n")
-
- glXUseXFont(arg0, arg1, arg2, arg3);
-}
-
-JNIEXPORT void JNICALL XGL_NATIVE(glXWaitGL)
- (JNIEnv *env, jclass that)
-{
- DEBUG_CALL("glXWaitGL\n")
-
- glXWaitGL();
-}
-
-JNIEXPORT void JNICALL XGL_NATIVE(glXWaitX)
- (JNIEnv *env, jclass that)
-{
- DEBUG_CALL("glXWaitX\n")
-
- glXWaitX();
-}
-
-JNIEXPORT void JNICALL XGL_NATIVE(memmove__Lorg_eclipse_swt_opengl_internal_motif_XVisualInfo_2II)
- (JNIEnv *env, jclass that, jobject arg0, jint arg1, jint arg2)
-{
- XVisualInfo _arg0, *lparg0=NULL;
-
- DEBUG_CALL("memmove__Lorg_eclipse_swt_opengl_internal_motif_XVisualInfo_2II\n")
-
- if (arg0) lparg0 = &_arg0;
- memmove((void *)lparg0, (const void *)arg1, (size_t)arg2);
- if (arg0) setXVisualInfoFields(env, arg0, lparg0);
-}
diff --git a/bundles/org.eclipse.swt.opengl/motif/library/make_aix.mak b/bundles/org.eclipse.swt.opengl/motif/library/make_aix.mak
deleted file mode 100644
index 78b7b7a2e3..0000000000
--- a/bundles/org.eclipse.swt.opengl/motif/library/make_aix.mak
+++ /dev/null
@@ -1,40 +0,0 @@
-#*******************************************************************************
-# Copyright (c) 2000, 2005 IBM Corporation and others.
-# All rights reserved. This program and the accompanying materials
-# are made available under the terms of the Eclipse Public License v1.0
-# which accompanies this distribution, and is available at
-# http://www.eclipse.org/legal/epl-v10.html
-#
-# Contributors:
-# IBM Corporation - initial API and implementation
-#*******************************************************************************
-
-# Define the installation directories for various products.
-# JAVA_HOME - The JDK > 1.3
-JAVA_HOME = /usr/java131
-
-# Define the various shared libraries to be made.
-SWT_PREFIX = swt
-WS_PREFIX = motif
-SWT_DLL = lib$(SWT_PREFIX)-$(WS_PREFIX).so
-SWT_OBJ = swt.o gl.o glu.o structs.o glx.o
-SWT_LIB = -G -bnoentry -lc_r -lC_r -lm -bexpall -lMrm -lX11 -lXext -liconv -lGL -lGLU
-
-#
-# The following CFLAGS are for compiling the SWT OpenGL library.
-#
-CFLAGS = -O -s \
- -DAIX \
- -DNO_XINERAMA_EXTENSIONS \
- -q mbcs -qlanglvl=extended -qmaxmem=8192 \
- -I$(JAVA_HOME)/include
-
-all: make_swt
-
-make_swt: $(SWT_DLL)
-
-$(SWT_DLL): $(SWT_OBJ)
- ld $(SWT_LIB) -o $(SWT_DLL) $(SWT_OBJ)
-
-clean:
- rm -f *.o *.so *.a
diff --git a/bundles/org.eclipse.swt.opengl/motif/library/make_hpux.mak b/bundles/org.eclipse.swt.opengl/motif/library/make_hpux.mak
deleted file mode 100644
index e0afb28abe..0000000000
--- a/bundles/org.eclipse.swt.opengl/motif/library/make_hpux.mak
+++ /dev/null
@@ -1,44 +0,0 @@
-#*******************************************************************************
-# Copyright (c) 2000, 2005 IBM Corporation and others.
-# All rights reserved. This program and the accompanying materials
-# are made available under the terms of the Eclipse Public License v1.0
-# which accompanies this distribution, and is available at
-# http://www.eclipse.org/legal/epl-v10.html
-#
-# Contributors:
-# IBM Corporation - initial API and implementation
-#*******************************************************************************
-
-# Define the installation directories for various products.
-JAVA_HOME = /opt/java1.3
-
-# Define the various shared libraries to be made.
-SWT_PREFIX = gl
-WS_PREFIX = motif
-SWT_DLL = lib$(SWT_PREFIX)-$(WS_PREFIX).sl
-SWT_OBJ = swt.o gl.o glu.o structs.o glx.o
-SWT_LIB = -L/usr/lib -L/opt/graphics/OpenGL/lib -G -lGL -lGLU -lc -ldld -lm
-
-#
-# The following CFLAGS are for compiling the SWT OpenGL library.
-#
-# Note:
-# The flag -xarch=generic ensure the compiled modules will be targeted
-# for 32-bit architectures. If this flag is not
-#
-CFLAGS = -Ae +z \
- -DNO_XINERAMA_EXTENSIONS \
- -D_HPUX -D_POSIX_C_SOURCE=199506L \
- -I./ \
- -I$(JAVA_HOME)/include -I$(JAVA_HOME)/include/hp-ux \
- -I/opt/graphics/OpenGL/include
-
-all: make_swt
-
-make_swt: $(SWT_DLL)
-
-$(SWT_DLL): $(SWT_OBJ)
- ld -b -z -o $@ $(SWT_OBJ) $(SWT_LIB)
-
-clean:
- rm -f *.sl *.o
diff --git a/bundles/org.eclipse.swt.opengl/motif/library/make_linux.mak b/bundles/org.eclipse.swt.opengl/motif/library/make_linux.mak
deleted file mode 100644
index 2c995c09cb..0000000000
--- a/bundles/org.eclipse.swt.opengl/motif/library/make_linux.mak
+++ /dev/null
@@ -1,38 +0,0 @@
-#*******************************************************************************
-# Copyright (c) 2000, 2005 IBM Corporation and others.
-# All rights reserved. This program and the accompanying materials
-# are made available under the terms of the Eclipse Public License v1.0
-# which accompanies this distribution, and is available at
-# http://www.eclipse.org/legal/epl-v10.html
-#
-# Contributors:
-# IBM Corporation - initial API and implementation
-#*******************************************************************************
-
-# Define the installation directories for various products.
-JAVA_HOME = /bluebird/teamswt/swt-builddir/ive/bin
-
-
-# Define the various shared libraries to be made.
-SWT_PREFIX = gl
-WS_PREFIX = motif
-SWT_DLL = lib$(SWT_PREFIX)-$(WS_PREFIX).so
-SWT_OBJ = swt.o gl.o glu.o structs.o glx.o
-SWT_LIB = -shared -L/usr/X11R6/lib -lGL -lGLU -lm
-
-#
-# The following CFLAGS are for compiling the SWT OpenGL library.
-#
-CFLAGS = -O -s \
- -I./ \
- -I$(JAVA_HOME)/include
-
-all: make_swt
-
-make_swt: $(SWT_DLL)
-
-$(SWT_DLL): $(SWT_OBJ)
- ld -o $@ $(SWT_OBJ) $(SWT_LIB)
-
-clean:
- rm -f *.so *.o
diff --git a/bundles/org.eclipse.swt.opengl/motif/library/make_solaris.mak b/bundles/org.eclipse.swt.opengl/motif/library/make_solaris.mak
deleted file mode 100644
index c9510b7cd3..0000000000
--- a/bundles/org.eclipse.swt.opengl/motif/library/make_solaris.mak
+++ /dev/null
@@ -1,45 +0,0 @@
-#*******************************************************************************
-# Copyright (c) 2000, 2005 IBM Corporation and others.
-# All rights reserved. This program and the accompanying materials
-# are made available under the terms of the Eclipse Public License v1.0
-# which accompanies this distribution, and is available at
-# http://www.eclipse.org/legal/epl-v10.html
-#
-# Contributors:
-# IBM Corporation - initial API and implementation
-#*******************************************************************************
-
-# Define the installation directories for various products.
-JAVA_HOME = /bluebird/teamswt/swt-builddir/ive/bin
-
-# Define the various shared libraries to be made.
-SWT_PREFIX = gl
-WS_PREFIX = motif
-SWT_DLL = lib$(SWT_PREFIX)-$(WS_PREFIX).so
-SWT_OBJ = swt.o gl.o glu.o structs.o glx.o
-SWT_LIB = -G -L/usr/lib -lm -lGL -lGLU
-
-#
-# The following CFLAGS are for compiling the SWT OpenGL library.
-#
-# Note:
-# The flag -xarch=generic ensure the compiled modules will be targeted
-# for 32-bit architectures.
-#
-CFLAGS = -O -s \
- -xarch=generic \
- -KPIC \
- -I./ \
- -I$(JAVA_HOME)/include
-
-all: make_swt
-
-make_swt: $(SWT_DLL)
-
-$(SWT_DLL): $(SWT_OBJ)
- ld -o $@ $(SWT_OBJ) $(SWT_LIB)
-
-clean:
- rm -f *.so *.o
-
-
diff --git a/bundles/org.eclipse.swt.opengl/motif/library/structs.c b/bundles/org.eclipse.swt.opengl/motif/library/structs.c
deleted file mode 100644
index f11d22d342..0000000000
--- a/bundles/org.eclipse.swt.opengl/motif/library/structs.c
+++ /dev/null
@@ -1,73 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2000, 2005 IBM Corporation and others.
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * IBM Corporation - initial API and implementation
- *******************************************************************************/
-#include <X11/X.h>
-#include <X11/Xlib.h>
-#include "swt.h"
-#include "structs.h"
-
-typedef struct XVisualInfo_FID_CACHE {
- int cached;
- jclass clazz;
- jfieldID visual, visualid, screen, depth, cclass, red_mask, green_mask, blue_mask, colormap_size, bits_per_rgb;
-} XVisualInfo_FID_CACHE;
-typedef XVisualInfo_FID_CACHE *PXVisualInfo_FID_CACHE;
-
-XVisualInfo_FID_CACHE XVisualInfoFc;
-
-void cacheXVisualInfoFids(JNIEnv *env, jobject lpObject, PXVisualInfo_FID_CACHE lpCache)
-{
- if (lpCache->cached) return;
- lpCache->clazz = (*env)->GetObjectClass(env, lpObject);
- lpCache->visual = (*env)->GetFieldID(env, lpCache->clazz, "visual", "I");
- lpCache->visualid = (*env)->GetFieldID(env, lpCache->clazz, "visualid", "I");
- lpCache->screen = (*env)->GetFieldID(env, lpCache->clazz, "screen", "I");
- lpCache->depth = (*env)->GetFieldID(env, lpCache->clazz, "depth", "I");
- lpCache->cclass = (*env)->GetFieldID(env, lpCache->clazz, "cclass", "I");
- lpCache->red_mask = (*env)->GetFieldID(env, lpCache->clazz, "red_mask", "I");
- lpCache->green_mask = (*env)->GetFieldID(env, lpCache->clazz, "green_mask", "I");
- lpCache->blue_mask = (*env)->GetFieldID(env, lpCache->clazz, "blue_mask", "I");
- lpCache->colormap_size = (*env)->GetFieldID(env, lpCache->clazz, "colormap_size", "I");
- lpCache->bits_per_rgb = (*env)->GetFieldID(env, lpCache->clazz, "bits_per_rgb", "I");
- lpCache->cached = 1;
-}
-
-XVisualInfo *getXVisualInfoFields(JNIEnv *env, jobject lpObject, XVisualInfo *lpStruct)
-{
- PXVisualInfo_FID_CACHE lpCache = &XVisualInfoFc;
- if (!lpCache->cached) cacheXVisualInfoFids(env, lpObject, lpCache);
- lpStruct->visual = (Visual *)(*env)->GetIntField(env, lpObject, lpCache->visual);
- lpStruct->visualid = (*env)->GetIntField(env, lpObject, lpCache->visualid);
- lpStruct->screen = (*env)->GetIntField(env, lpObject, lpCache->screen);
- lpStruct->depth = (*env)->GetIntField(env, lpObject, lpCache->depth);
- lpStruct->class = (*env)->GetIntField(env, lpObject, lpCache->cclass);
- lpStruct->red_mask = (*env)->GetIntField(env, lpObject, lpCache->red_mask);
- lpStruct->green_mask = (*env)->GetIntField(env, lpObject, lpCache->green_mask);
- lpStruct->blue_mask = (*env)->GetIntField(env, lpObject, lpCache->blue_mask);
- lpStruct->colormap_size = (*env)->GetIntField(env, lpObject, lpCache->colormap_size);
- lpStruct->bits_per_rgb = (*env)->GetIntField(env, lpObject, lpCache->bits_per_rgb);
- return lpStruct;
-}
-
-void setXVisualInfoFields(JNIEnv *env, jobject lpObject, XVisualInfo *lpStruct)
-{
- PXVisualInfo_FID_CACHE lpCache = &XVisualInfoFc;
- if (!lpCache->cached) cacheXVisualInfoFids(env, lpObject, lpCache);
- (*env)->SetIntField(env, lpObject, lpCache->visual, (jint)lpStruct->visual);
- (*env)->SetIntField(env, lpObject, lpCache->visualid, (jint)lpStruct->visualid);
- (*env)->SetIntField(env, lpObject, lpCache->screen, (jint)lpStruct->screen);
- (*env)->SetIntField(env, lpObject, lpCache->depth, (jint)lpStruct->depth);
- (*env)->SetIntField(env, lpObject, lpCache->cclass, (jint)lpStruct->class);
- (*env)->SetIntField(env, lpObject, lpCache->red_mask, (jint)lpStruct->red_mask);
- (*env)->SetIntField(env, lpObject, lpCache->green_mask, (jint)lpStruct->green_mask);
- (*env)->SetIntField(env, lpObject, lpCache->blue_mask, (jint)lpStruct->blue_mask);
- (*env)->SetIntField(env, lpObject, lpCache->colormap_size, (jint)lpStruct->colormap_size);
- (*env)->SetIntField(env, lpObject, lpCache->bits_per_rgb, (jint)lpStruct->bits_per_rgb);
-}
diff --git a/bundles/org.eclipse.swt.opengl/motif/library/structs.h b/bundles/org.eclipse.swt.opengl/motif/library/structs.h
deleted file mode 100644
index 5d98fdd395..0000000000
--- a/bundles/org.eclipse.swt.opengl/motif/library/structs.h
+++ /dev/null
@@ -1,16 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2000, 2005 IBM Corporation and others.
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * IBM Corporation - initial API and implementation
- *******************************************************************************/
-#include <X11/X.h>
-#include <X11/Xutil.h>
-
-XVisualInfo *getXVisualInfoFields(JNIEnv *env, jobject lpObject, XVisualInfo *lpStruct);
-void setXVisualInfoFields(JNIEnv *env, jobject lpObject, XVisualInfo *lpStruct);
-
diff --git a/bundles/org.eclipse.swt.opengl/motif/org/eclipse/swt/opengl/GLContext.java b/bundles/org.eclipse.swt.opengl/motif/org/eclipse/swt/opengl/GLContext.java
deleted file mode 100644
index 29df45c7bd..0000000000
--- a/bundles/org.eclipse.swt.opengl/motif/org/eclipse/swt/opengl/GLContext.java
+++ /dev/null
@@ -1,303 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2000, 2004 IBM Corporation and others.
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * IBM Corporation - initial API and implementation
- *******************************************************************************/
-package org.eclipse.swt.opengl;
-
-
-import org.eclipse.swt.*;
-import org.eclipse.swt.graphics.*;
-import org.eclipse.swt.internal.motif.*;
-import org.eclipse.swt.opengl.internal.motif.*;
-
-/**
- * Instances of <code>GLContext</code> are used to draw on swt <code>Drawable</code>s
- * through invocations of provided OpenGL functions.
- * <p>
- * Application code must explicitly invoke the <code>GLContext.dispose ()</code>
- * method to release the operating system resources managed by each instance
- * when those instances are no longer required. This is <em>particularly</em>
- * important on Windows95 and Windows98 where the operating system has a limited
- * number of device contexts available.
- * </p>
- */
-public class GLContext {
- int handle;
- int gc;
- GCData data;
- Drawable drawable;
- int selectBufferPtr = 0;
-
- static final int MSB_FIRST = 1;
- static final int LSB_FIRST = 2;
-
- /**
- * Constructs a new instance of this class which has been
- * configured to draw on the specified drawable.
- * <p>
- * You must dispose the <code>GLContext</code> when it is no longer required.
- * </p>
- *
- * @param drawable the drawable to draw on
- * @exception IllegalArgumentException <ul>
- * <li>ERROR_NULL_ARGUMENT - if the drawable is null</li>
- * </ul>
- * @exception SWTError <ul>
- * <li>ERROR_NO_HANDLES if a handle could not be obtained for gc creation</li>
- * <li>ERROR_UNSUPPORTED_DEPTH - if the current display depth is not supported</li>
- * </ul>
- */
- public GLContext (Drawable drawable) {
- if (drawable == null) SWT.error (SWT.ERROR_NULL_ARGUMENT);
- this.drawable = drawable;
- this.data = new GCData ();
- gc = drawable.internal_new_GC (data);
- if (gc == 0) SWT.error (SWT.ERROR_NO_HANDLES);
- int xDisplay = data.display;
- int screen = OS.XDefaultScreen (xDisplay);
- int depth = OS.XDefaultDepthOfScreen (OS.XDefaultScreenOfDisplay (xDisplay));
- int attrib [] = {
- XGL.GLX_LEVEL,
- 0,
- XGL.GLX_RGBA,
- XGL.GLX_DOUBLEBUFFER,
-// XGL.GLX_DEPTH_SIZE,
-// depth,
- 0
- };
- int infoPtr = XGL.glXChooseVisual (xDisplay, screen, attrib);
- if (infoPtr == 0) SWT.error (SWT.ERROR_UNSUPPORTED_DEPTH);
- XVisualInfo info = new XVisualInfo ();
- XGL.memmove (info, infoPtr, XVisualInfo.sizeof);
- OS.XFree (infoPtr);
- handle = XGL.glXCreateContext (xDisplay, info, 0, false);
- if (handle == 0) SWT.error (SWT.ERROR_NO_HANDLES);
- }
-
- public ImageData convertImageData (ImageData source) {
- PaletteData palette = new PaletteData (0xff0000, 0xff00, 0xff);
- ImageData newSource = new ImageData (source.width, source.height, 24, palette);
- ImageDataUtil.blit (
- 1,
- source.data,
- source.depth,
- source.bytesPerLine,
- (source.depth != 16) ? MSB_FIRST : LSB_FIRST,
- 0,
- 0,
- source.width,
- source.height,
- source.palette.redMask,
- source.palette.greenMask,
- source.palette.blueMask,
- 255,
- null,
- 0,
- 0,
- 0,
- newSource.data,
- newSource.depth,
- newSource.bytesPerLine,
- (newSource.depth != 16) ? MSB_FIRST : LSB_FIRST,
- 0,
- 0,
- newSource.width,
- newSource.height,
- newSource.palette.redMask,
- newSource.palette.greenMask,
- newSource.palette.blueMask,
- false,
- true);
-
- return newSource;
- }
-
- /**
- * Disposes of the operating system resources associated with
- * the receiver. Applications must dispose of all <code>GLContext</code>s
- * that they allocate.
- */
- public void dispose () {
- if (handle == 0) return;
- int xDisplay = data.display;
- if (XGL.glXGetCurrentContext () == handle) {
- XGL.glXMakeCurrent (xDisplay, 0, 0);
- }
- if (selectBufferPtr != 0) OS.XtFree (selectBufferPtr);
- XGL.glXDestroyContext (xDisplay, handle);
- handle = 0;
- // drawable may be disposed
- try {
- drawable.internal_dispose_GC (gc, data);
- } catch (SWTException e) {
- }
- gc = 0;
- data.display = data.drawable = data.colormap = 0;
- /*data.fontList =*/ data.clipRgn = data.renderTable = 0;
- drawable = null;
- data.device = null;
- data.image = null;
- //data.codePage = null;
- data = null;
- }
-
- public int[] getSelectBuffer (int selectBufferPtr, int[] selectBuffer) {
- OS.memmove (selectBuffer, selectBufferPtr, selectBuffer.length * 4);
- return selectBuffer;
- }
-
- public int getSelectBufferPtr (int[] selectBuffer) {
- if (selectBufferPtr == 0) {
- selectBufferPtr = OS.XtMalloc (selectBuffer.length * 4);
- }
- OS.memmove (selectBufferPtr, selectBuffer, selectBuffer.length * 4);
- return selectBufferPtr;
- }
-
- /**
- * Returns a boolean indicating whether the receiver is the current
- * <code>GLContext</code>.
- *
- * @return true if the receiver is the current <code>GLContext</code>,
- * false otherwise
- * @exception SWTError <ul>
- * <li>ERROR_GRAPHIC_DISPOSED if the receiver is disposed</li>
- * </ul>
- */
- public boolean isCurrent () {
- if (isDisposed ()) SWT.error (SWT.ERROR_GRAPHIC_DISPOSED);
- return XGL.glXGetCurrentContext () == handle;
- }
-
- /**
- * Returns a boolean indicating whether the <code>GLContext</code> has been
- * disposed.
- * <p>
- * This method gets the dispose state for the <code>GLContext</code>.
- * When a <code>GLContext</code> has been disposed, it is an error to
- * invoke any other method using the <code>GLContext</code>.
- *
- * @return true if the <code>GLContext</code> is disposed, false otherwise
- */
- public boolean isDisposed () {
- return handle == 0;
- }
-
- /**
- * Loads the specified bitmap font.
- *
- * @param fdata
- * @param device
- * @param base
- * @param first
- * @param count
- */
- public void loadBitmapFont (FontData fdata, Device device, int base, int startIndex, int length) {
- /* Temporary code, due some problems when running on UTF-8 loadBitmapFont ()
- * is restrict to works only for ascii.
- * Note: en_US.ISO8859-1 also code be used.
- */
- fdata.setLocale ("C");
- Font font = new Font (device, fdata);
- int fontList = font.handle;
- int[] buffer = new int [1];
- if (!OS.XmFontListInitFontContext (buffer, fontList)) return;
- int context = buffer [0];
- XFontStruct fontStruct = new XFontStruct ();
- int fontListEntry;
- int[] fontStructPtr = new int [1];
- int[] fontNamePtr = new int [1];
- int xfont = 0;
- // go through each entry in the font list
- while ((fontListEntry = OS.XmFontListNextEntry (context)) != 0) {
- int fontPtr = OS.XmFontListEntryGetFont (fontListEntry, buffer);
- if (buffer [0] == OS.XmFONT_IS_FONT) {
- // FontList contains a single font
- OS.memmove (fontStruct, fontPtr, 20 * 4);
- xfont = fontStruct.fid;
- } else {
- // FontList contains a fontSet
- int nFonts = OS.XFontsOfFontSet (fontPtr, fontStructPtr, fontNamePtr);
- int[] fontStructs = new int [nFonts];
- OS.memmove (fontStructs, fontStructPtr [0], nFonts * 4);
- // Go through each fontStruct in the font set.
- for (int i = 0; i < nFonts; i++) {
- OS.memmove (fontStruct, fontStructs [i], XFontStruct.sizeof);
- xfont = fontStruct.fid;
- }
- }
- }
- if (xfont != 0) {
- XGL.glXUseXFont (xfont, startIndex, length, base);
- }
- font.dispose ();
- OS.XmFontListFreeFontContext (context);
- }
-
- /**
- * Loads the specified outline font.
- *
- * @param fdata
- * @param device
- * @param base
- * @param first
- * @param count
- * @param deviation
- * @param extrusion
- * @param format
- * @param lpgmf
- */
- public void loadOutlineFont (FontData fdata, Device device, int base, int first,
- int count, float deviation, float extrusion, int format, GLYPHMETRICSFLOAT[] lpgmf) {
- // stub
- }
-
- /**
- * Resizes the receiver.
- *
- * @param x
- * @param y
- * @param width
- * @param height
- */
- public void resize (int x, int y, int width, int height) {
- if (height == 0) height = 1;
- GL.glViewport (x, y, width, height);
- GL.glMatrixMode (GL.GL_PROJECTION);
- GL.glLoadIdentity ();
- GLU.gluPerspective (45.0f, (float) width / (float) height, 0.1f, 100.0f);
- GL.glMatrixMode (GL.GL_MODELVIEW);
- GL.glLoadIdentity ();
- }
-
- /**
- * Sets the receiver to be the current <code>GLContext</code>.
- *
- * @exception SWTError <ul>
- * <li>ERROR_GRAPHIC_DISPOSED if the receiver is disposed</li>
- * </ul>
- */
- public void setCurrent () {
- if (isDisposed ()) SWT.error (SWT.ERROR_GRAPHIC_DISPOSED);
- if (XGL.glXGetCurrentContext () == handle) return;
- XGL.glXMakeCurrent (data.display, data.drawable, handle);
- }
-
- /**
- * Swaps the receiver's buffers.
- *
- * @exception SWTError <ul>
- * <li>ERROR_GRAPHIC_DISPOSED if the receiver is disposed</li>
- * </ul>
- */
- public void swapBuffers () {
- if (isDisposed ()) SWT.error (SWT.ERROR_GRAPHIC_DISPOSED);
- XGL.glXSwapBuffers (data.display, data.drawable);
- }
-}
diff --git a/bundles/org.eclipse.swt.opengl/motif/org/eclipse/swt/opengl/internal/motif/XGL.java b/bundles/org.eclipse.swt.opengl/motif/org/eclipse/swt/opengl/internal/motif/XGL.java
deleted file mode 100644
index a5a3e5a264..0000000000
--- a/bundles/org.eclipse.swt.opengl/motif/org/eclipse/swt/opengl/internal/motif/XGL.java
+++ /dev/null
@@ -1,227 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2000, 2003 IBM Corporation and others.
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * IBM Corporation - initial API and implementation
- *******************************************************************************/
-package org.eclipse.swt.opengl.internal.motif;
-
-import org.eclipse.swt.opengl.Library;
-
-public class XGL {
-
-static {
- Library.loadLibrary("gl");
-}
-
-public static final int GLX_VERSION_1_1 = 1;
-public static final int GLX_VERSION_1_2 = 1;
-public static final int GLX_VERSION_1_3 = 1;
-
-/*
-** Visual Config Attributes (glXGetConfig, glXGetFBConfigAttrib)
-*/
-public static final int GLX_USE_GL = 1; /* support GLX rendering */
-public static final int GLX_BUFFER_SIZE = 2; /* depth of the color buffer */
-public static final int GLX_LEVEL = 3; /* level in plane stacking */
-public static final int GLX_RGBA = 4; /* true if RGBA mode */
-public static final int GLX_DOUBLEBUFFER = 5; /* double buffering supported */
-public static final int GLX_STEREO = 6; /* stereo buffering supported */
-public static final int GLX_AUX_BUFFERS = 7; /* number of aux buffers */
-public static final int GLX_RED_SIZE = 8; /* number of red component bits */
-public static final int GLX_GREEN_SIZE = 9; /* number of green component bits */
-public static final int GLX_BLUE_SIZE = 10; /* number of blue component bits */
-public static final int GLX_ALPHA_SIZE = 11; /* number of alpha component bits */
-public static final int GLX_DEPTH_SIZE = 12; /* number of depth bits */
-public static final int GLX_STENCIL_SIZE = 13; /* number of stencil bits */
-public static final int GLX_ACCUM_RED_SIZE = 14; /* number of red accum bits */
-public static final int GLX_ACCUM_GREEN_SIZE = 15; /* number of green accum bits */
-public static final int GLX_ACCUM_BLUE_SIZE = 16; /* number of blue accum bits */
-public static final int GLX_ACCUM_ALPHA_SIZE = 17; /* number of alpha accum bits */
-/*
-** FBConfig-specific attributes
-*/
-public static final int GLX_X_VISUAL_TYPE = 0x22;
-public static final int GLX_CONFIG_CAVEAT = 0x20; /* Like visual_info VISUAL_CAVEAT_EXT */
-public static final int GLX_TRANSPARENT_TYPE = 0x23;
-public static final int GLX_TRANSPARENT_INDEX_VALUE = 0x24;
-public static final int GLX_TRANSPARENT_RED_VALUE = 0x25;
-public static final int GLX_TRANSPARENT_GREEN_VALUE = 0x26;
-public static final int GLX_TRANSPARENT_BLUE_VALUE = 0x27;
-public static final int GLX_TRANSPARENT_ALPHA_VALUE = 0x28;
-public static final int GLX_DRAWABLE_TYPE = 0x8010;
-public static final int GLX_RENDER_TYPE = 0x8011;
-public static final int GLX_X_RENDERABLE = 0x8012;
-public static final int GLX_FBCONFIG_ID = 0x8013;
-public static final int GLX_MAX_PBUFFER_WIDTH = 0x8016;
-public static final int GLX_MAX_PBUFFER_HEIGHT = 0x8017;
-public static final int GLX_MAX_PBUFFER_PIXELS = 0x8018;
-public static final int GLX_VISUAL_ID = 0x800B;
-
-/*
-** Error return values from glXGetConfig. Success is indicated by
-** a value of 0.
-*/
-public static final int GLX_BAD_SCREEN = 1; /* screen # is bad */
-public static final int GLX_BAD_ATTRIBUTE = 2; /* attribute to get is bad */
-public static final int GLX_NO_EXTENSION = 3; /* no glx extension on server */
-public static final int GLX_BAD_VISUAL = 4; /* visual # not known by GLX */
-public static final int GLX_BAD_CONTEXT = 5; /* returned only by import_context EXT? */
-public static final int GLX_BAD_VALUE = 6; /* returned only by glXSwapIntervalSGI? */
-public static final int GLX_BAD_ENUM = 7; /* unused? */
-
-/* FBConfig attribute values */
-
-/*
-** Generic "don't care" value for glX ChooseFBConfig attributes (except
-** GLX_LEVEL)
-*/
-public static final int GLX_DONT_CARE = 0xFFFFFFFF;
-
-/* GLX_RENDER_TYPE bits */
-public static final int GLX_RGBA_BIT = 0x00000001;
-public static final int GLX_COLOR_INDEX_BIT = 0x00000002;
-
-/* GLX_DRAWABLE_TYPE bits */
-public static final int GLX_WINDOW_BIT = 0x00000001;
-public static final int GLX_PIXMAP_BIT = 0x00000002;
-public static final int GLX_PBUFFER_BIT = 0x00000004;
-
-/* GLX_CONFIG_CAVEAT attribute values */
-public static final int GLX_NONE = 0x8000;
-public static final int GLX_SLOW_CONFIG = 0x8001;
-public static final int GLX_NON_CONFORMANT_CONFIG = 0x800D;
-
-/* GLX_X_VISUAL_TYPE attribute values */
-public static final int GLX_TRUE_COLOR = 0x8002;
-public static final int GLX_DIRECT_COLOR = 0x8003;
-public static final int GLX_PSEUDO_COLOR = 0x8004;
-public static final int GLX_STATIC_COLOR = 0x8005;
-public static final int GLX_GRAY_SCALE = 0x8006;
-public static final int GLX_STATIC_GRAY = 0x8007;
-
-/* GLX_TRANSPARENT_TYPE attribute values */
-/* public static final int GLX_NONE 0x8000 */
-public static final int GLX_TRANSPARENT_RGB = 0x8008;
-public static final int GLX_TRANSPARENT_INDEX = 0x8009;
-
-/* glXCreateGLXPbuffer attributes */
-public static final int GLX_PRESERVED_CONTENTS = 0x801B;
-public static final int GLX_LARGEST_PBUFFER = 0x801C;
-public static final int GLX_PBUFFER_HEIGHT = 0x8040; /* New for GLX 1.3 */
-public static final int GLX_PBUFFER_WIDTH = 0x8041; /* New for GLX 1.3 */
-
-/* glXQueryGLXPBuffer attributes */
-public static final int GLX_WIDTH = 0x801D;
-public static final int GLX_HEIGHT = 0x801E;
-public static final int GLX_EVENT_MASK = 0x801F;
-
-/* glXCreateNewContext render_type attribute values */
-public static final int GLX_RGBA_TYPE = 0x8014;
-public static final int GLX_COLOR_INDEX_TYPE = 0x8015;
-
-/* glXQueryContext attributes */
-/* public static final int GLX_FBCONFIG_ID 0x8013 */
-/* public static final int GLX_RENDER_TYPE 0x8011 */
-public static final int GLX_SCREEN = 0x800C;
-
-/* glXSelectEvent event mask bits */
-public static final int GLX_PBUFFER_CLOBBER_MASK = 0x08000000;
-
-/* GLXPbufferClobberEvent event_type values */
-public static final int GLX_DAMAGED = 0x8020;
-public static final int GLX_SAVED = 0x8021;
-
-/* GLXPbufferClobberEvent draw_type values */
-public static final int GLX_WINDOW = 0x8022;
-public static final int GLX_PBUFFER = 0x8023;
-
-/* GLXPbufferClobberEvent buffer_mask bits */
-public static final int GLX_FRONT_LEFT_BUFFER_BIT = 0x00000001;
-public static final int GLX_FRONT_RIGHT_BUFFER_BIT = 0x00000002;
-public static final int GLX_BACK_LEFT_BUFFER_BIT = 0x00000004;
-public static final int GLX_BACK_RIGHT_BUFFER_BIT = 0x00000008;
-public static final int GLX_AUX_BUFFERS_BIT = 0x00000010;
-public static final int GLX_DEPTH_BUFFER_BIT = 0x00000020;
-public static final int GLX_STENCIL_BUFFER_BIT = 0x00000040;
-public static final int GLX_ACCUM_BUFFER_BIT = 0x00000080;
-
-/*
-** Extension return values from glXGetConfig. These are also
-** accepted as parameter values for glXChooseVisual.
-*/
-
-public static final int GLX_X_VISUAL_TYPE_EXT = 0x22; /* visual_info extension type */
-public static final int GLX_TRANSPARENT_TYPE_EXT = 0x23; /* visual_info extension */
-public static final int GLX_TRANSPARENT_INDEX_VALUE_EXT = 0x24; /* visual_info extension */
-public static final int GLX_TRANSPARENT_RED_VALUE_EXT = 0x25; /* visual_info extension */
-public static final int GLX_TRANSPARENT_GREEN_VALUE_EXT = 0x26; /* visual_info extension */
-public static final int GLX_TRANSPARENT_BLUE_VALUE_EXT = 0x27; /* visual_info extension */
-public static final int GLX_TRANSPARENT_ALPHA_VALUE_EXT = 0x28; /* visual_info extension */
-
-/* Property values for visual_type */
-public static final int GLX_TRUE_COLOR_EXT = 0x8002;
-public static final int GLX_DIRECT_COLOR_EXT = 0x8003;
-public static final int GLX_PSEUDO_COLOR_EXT = 0x8004;
-public static final int GLX_STATIC_COLOR_EXT = 0x8005;
-public static final int GLX_GRAY_SCALE_EXT = 0x8006;
-public static final int GLX_STATIC_GRAY_EXT = 0x8007;
-
-/* Property values for transparent pixel */
-public static final int GLX_NONE_EXT = 0x8000;
-public static final int GLX_TRANSPARENT_RGB_EXT = 0x8008;
-public static final int GLX_TRANSPARENT_INDEX_EXT = 0x8009;
-
-/* Property values for visual_rating */
-public static final int GLX_VISUAL_CAVEAT_EXT = 0x20; /* visual_rating extension type */
-public static final int GLX_SLOW_VISUAL_EXT = 0x8001;
-public static final int GLX_NON_CONFORMANT_VISUAL_EXT = 0x800D;
-
-/*
-** Names for attributes to glXGetClientString.
-*/
-public static final int GLX_VENDOR = 0x1;
-public static final int GLX_VERSION = 0x2;
-public static final int GLX_EXTENSIONS = 0x3;
-
-/*
-** Names for attributes to glXQueryContextInfoEXT.
-*/
-public static final int GLX_SHARE_CONTEXT_EXT = 0x800A; /* id of share context */
-public static final int GLX_VISUAL_ID_EXT = 0x800B; /* id of context's visual */
-public static final int GLX_SCREEN_EXT = 0x800C; /* screen number */
-
-/* GLX Extension Strings */
-public static final int GLX_EXT_import_context = 1;
-public static final int GLX_EXT_visual_info = 1;
-public static final int GLX_EXT_visual_rating = 1;
-public static final int GLX_ARB_get_proc_address = 1;
-
-public static final native int glXChooseVisual(int dpy, int screen, int[] attribList);
-public static final native void glXCopyContext(int dpy, int src, int dst, int mask);
-//public static final native int glXCreateContext(int dpy, int vis, int shareList, boolean direct);
-public static final native int glXCreateContext(int dpy, XVisualInfo vis, int shareList, boolean direct);
-public static final native int glXCreateGLXPixmap(int dpy, XVisualInfo vis, int pixmap);
-public static final native void glXDestroyContext(int dpy, int ctx);
-public static final native void glXDestroyGLXPixmap(int dpy, int pix);
-public static final native int glXGetConfig(int dpy, XVisualInfo vis, int attrib, int[] value);
-public static final native int glXGetCurrentContext();
-public static final native int glXGetCurrentDrawable();
-public static final native boolean glXIsDirect(int dpy, int ctx);
-public static final native boolean glXMakeCurrent(int dpy, int drawable, int ctx);
-public static final native boolean glXQueryExtension(int dpy, int[] errorBase, int[] eventBase);
-public static final native boolean glXQueryVersion(int dpy, int[] major, int[] minor);
-public static final native void glXSwapBuffers(int dpy, int drawable);
-public static final native void glXUseXFont(int font, int first, int count, int listBase);
-public static final native void glXWaitGL();
-public static final native void glXWaitX();
-public static final native int glXGetClientString(int dpy, int name);
-public static final native int glXQueryServerString(int dpy, int screen, int name);
-public static final native int glXQueryExtensionsString(int dpy, int screen);
-public static final native void memmove(XVisualInfo dest, int src, int size);
-
-}
diff --git a/bundles/org.eclipse.swt.opengl/plugin.properties b/bundles/org.eclipse.swt.opengl/plugin.properties
deleted file mode 100644
index 4e303e22d5..0000000000
--- a/bundles/org.eclipse.swt.opengl/plugin.properties
+++ /dev/null
@@ -1,12 +0,0 @@
-###############################################################################
-# Copyright (c) 2000, 2003 IBM Corporation and others.
-# All rights reserved. This program and the accompanying materials
-# are made available under the terms of the Eclipse Public License v1.0
-# which accompanies this distribution, and is available at
-# http://www.eclipse.org/legal/epl-v10.html
-#
-# Contributors:
-# IBM Corporation - initial API and implementation
-###############################################################################
-pluginName = Standard Widget Toolkit OpenGL Bindings
-providerName = Eclipse.org \ No newline at end of file
diff --git a/bundles/org.eclipse.swt.opengl/plugin.xml b/bundles/org.eclipse.swt.opengl/plugin.xml
deleted file mode 100644
index feaf868d11..0000000000
--- a/bundles/org.eclipse.swt.opengl/plugin.xml
+++ /dev/null
@@ -1,19 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<plugin
- id="org.eclipse.swt.opengl"
- name="%pluginName"
- version="3.1.0"
- provider-name="%providerName">
-
- <runtime>
- <library name="$ws$/swt.jar">
- <export name="*"/>
- <packages prefixes="org.eclipse.swt.opengl"/>
- </library>
- </runtime>
- <requires>
- <import plugin="org.eclipse.swt" export="true"/>
- </requires>
-
-
-</plugin>
diff --git a/bundles/org.eclipse.swt.opengl/win32/library/build.bat b/bundles/org.eclipse.swt.opengl/win32/library/build.bat
deleted file mode 100644
index e3cd949c2e..0000000000
--- a/bundles/org.eclipse.swt.opengl/win32/library/build.bat
+++ /dev/null
@@ -1,34 +0,0 @@
-rem *******************************************************************************
-rem Copyright (c) 2000, 2005 IBM Corporation and others.
-rem All rights reserved. This program and the accompanying materials
-rem are made available under the terms of the Eclipse Public License v1.0
-rem which accompanies this distribution, and is available at
-rem http://www.eclipse.org/legal/epl-v10.html
-rem
-rem Contributors:
-rem IBM Corporation - initial API and implementation
-rem *******************************************************************************
-
-@echo off
-
-IF NOT "%JAVA_HOME%"=="" GOTO MAKE
-
-rem *****
-rem Javah
-rem *****
-set JAVA_HOME=j:\teamswt\swt-builddir\ive\bin
-set path=%JAVA_HOME%;%path%
-
-rem ********
-rem MSVC 6.0
-rem ********
-call k:\dev\products\msvc60\vc98\bin\vcvars32.bat
-
-rem ******
-rem MS-SDK
-rem ******
-set Mssdk=j:\teamswt\swt-builddir\mssdk
-call %mssdk%\setenv.bat
-
-:MAKE
-nmake -f make_win32.mak %1 %2 %3 %4
diff --git a/bundles/org.eclipse.swt.opengl/win32/library/glw.c b/bundles/org.eclipse.swt.opengl/win32/library/glw.c
deleted file mode 100644
index 81c8ed5494..0000000000
--- a/bundles/org.eclipse.swt.opengl/win32/library/glw.c
+++ /dev/null
@@ -1,283 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2000, 2005 IBM Corporation and others.
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * IBM Corporation - initial API and implementation
- *******************************************************************************/
-#include <windows.h>
-#include <wingdi.h>
-#include "jni.h"
-#include "swt.h"
-#include "structs.h"
-
-#define WGL_NATIVE(func) Java_org_eclipse_swt_opengl_internal_win32_WGL_##func
-
-JNIEXPORT jint JNICALL WGL_NATIVE(ChoosePixelFormat)
- (JNIEnv *env, jclass that, jint arg0, jobject arg1)
-{
- PIXELFORMATDESCRIPTOR _arg1, *lparg1=NULL;
- jint rc;
-
- DEBUG_CALL("ChoosePixelFormat\n")
-
- if (arg1) lparg1 = getPIXELFORMATDESCRIPTORFields(env, arg1, &_arg1);
- rc = (jint)ChoosePixelFormat((HDC)arg0, (CONST PIXELFORMATDESCRIPTOR *)lparg1);
- if (arg1) setPIXELFORMATDESCRIPTORFields(env, arg1, lparg1);
- return rc;
-}
-
-JNIEXPORT jint JNICALL WGL_NATIVE(DescribePixelFormat)
- (JNIEnv *env, jclass that, jint arg0, jint arg1, jint arg2, jobject arg3)
-{
- PIXELFORMATDESCRIPTOR _arg3, *lparg3=NULL;
- jint rc;
-
- DEBUG_CALL("DescribePixelFormat\n")
-
- if (arg3) lparg3 = getPIXELFORMATDESCRIPTORFields(env, arg3, &_arg3);
- rc = (jint)DescribePixelFormat((HDC)arg0, arg1, arg2, (LPPIXELFORMATDESCRIPTOR)lparg3);
- if (arg3) setPIXELFORMATDESCRIPTORFields(env, arg3, lparg3);
- return rc;
-}
-
-JNIEXPORT jint JNICALL WGL_NATIVE(GetPixelFormat)
- (JNIEnv *env, jclass that, jint arg0)
-{
- DEBUG_CALL("GetPixelFormat\n")
-
- return (jint)GetPixelFormat((HDC)arg0);
-}
-
-JNIEXPORT jboolean JNICALL WGL_NATIVE(SetPixelFormat)
- (JNIEnv *env, jclass that, jint arg0, jint arg1, jobject arg2)
-{
- PIXELFORMATDESCRIPTOR _arg2, *lparg2=NULL;
- jboolean rc;
-
- DEBUG_CALL("SetPixelFormat\n")
-
- if (arg2) lparg2 = getPIXELFORMATDESCRIPTORFields(env, arg2, &_arg2);
- rc = (jboolean)SetPixelFormat((HDC)arg0, arg1, (CONST PIXELFORMATDESCRIPTOR *)lparg2);
- if (arg2) setPIXELFORMATDESCRIPTORFields(env, arg2, lparg2);
- return rc;
-}
-
-JNIEXPORT jboolean JNICALL WGL_NATIVE(SwapBuffers)
- (JNIEnv *env, jclass that, jint arg0)
-{
- DEBUG_CALL("SwapBuffers\n")
-
- return (jboolean)SwapBuffers((HDC)arg0);
-}
-
-JNIEXPORT jboolean JNICALL WGL_NATIVE(wglCopyContext)
- (JNIEnv *env, jclass that, jint arg0, jint arg1, jint arg2)
-{
- DEBUG_CALL("wglCopyContext\n")
-
- return (jboolean)wglCopyContext((HGLRC)arg0, (HGLRC)arg1, (UINT)arg2);
-}
-
-JNIEXPORT jint JNICALL WGL_NATIVE(wglCreateContext)
- (JNIEnv *env, jclass that, jint arg0)
-{
- DEBUG_CALL("wglCreateContext\n")
-
- return (jint)wglCreateContext((HDC)arg0);
-}
-
-JNIEXPORT jint JNICALL WGL_NATIVE(wglCreateLayerContext)
- (JNIEnv *env, jclass that, jint arg0, jint arg1)
-{
- DEBUG_CALL("wglCreateLayerContext\n")
-
- return (jint)wglCreateLayerContext((HDC)arg0, arg1);
-}
-
-JNIEXPORT jboolean JNICALL WGL_NATIVE(wglDeleteContext)
- (JNIEnv *env, jclass that, jint arg0)
-{
- DEBUG_CALL("wglDeleteContext\n")
-
- return (jboolean)wglDeleteContext((HGLRC)arg0);
-}
-
-JNIEXPORT jboolean JNICALL WGL_NATIVE(wglDescribeLayerPlane)
- (JNIEnv *env, jclass that, jint arg0, jint arg1, jint arg2, jint arg3, jobject arg4)
-{
- LAYERPLANEDESCRIPTOR _arg4, *lparg4=NULL;
- jboolean rc;
-
- DEBUG_CALL("wglDescribeLayerPlane\n")
-
- if (arg4) lparg4 = getLAYERPLANEDESCRIPTORFields(env, arg4, &_arg4);
- rc = (jboolean)wglDescribeLayerPlane((HDC)arg0, arg1, arg2, arg3, (LPLAYERPLANEDESCRIPTOR)lparg4);
- if (arg4) setLAYERPLANEDESCRIPTORFields(env, arg4, lparg4);
- return rc;
-}
-
-JNIEXPORT jint JNICALL WGL_NATIVE(wglGetCurrentContext)
- (JNIEnv *env, jclass that)
-{
- DEBUG_CALL("wglGetCurrentContext\n")
-
- return (jint)wglGetCurrentContext();
-}
-
-JNIEXPORT jint JNICALL WGL_NATIVE(wglGetCurrentDC)
- (JNIEnv *env, jclass that)
-{
- DEBUG_CALL("wglGetCurrentDC\n")
-
- return (jint)wglGetCurrentDC();
-}
-
-JNIEXPORT jint JNICALL WGL_NATIVE(wglGetLayerPaletteEntries)
- (JNIEnv *env, jclass that, jint arg0, jint arg1, jint arg2, jint arg3, jintArray arg4)
-{
- jint *lparg4=NULL;
- jint rc;
-
- DEBUG_CALL("wglGetLayerPaletteEntries\n")
-
- if (arg4) lparg4 = (*env)->GetIntArrayElements(env, arg4, NULL);
- rc = (jint)wglGetLayerPaletteEntries((HDC)arg0, arg1, arg2, arg3, (COLORREF *)lparg4);
- if (arg4) (*env)->ReleaseIntArrayElements(env, arg4, lparg4, 0);
- return rc;
-}
-
-JNIEXPORT jint JNICALL WGL_NATIVE(wglGetProcAddress)
- (JNIEnv *env, jclass that, jbyteArray arg0)
-{
- jbyte *lparg0=NULL;
- jint rc;
-
- DEBUG_CALL("wglGetProcAddress\n")
-
- if (arg0) lparg0 = (*env)->GetByteArrayElements(env, arg0, NULL);
- rc = (jint)wglGetProcAddress((LPCSTR)lparg0);
- if (arg0) (*env)->ReleaseByteArrayElements(env, arg0, lparg0, 0);
- return rc;
-}
-
-JNIEXPORT jboolean JNICALL WGL_NATIVE(wglMakeCurrent)
- (JNIEnv *env, jclass that, jint arg0, jint arg1)
-{
- DEBUG_CALL("wglMakeCurrent\n")
-
- return (jboolean)wglMakeCurrent((HDC)arg0, (HGLRC)arg1);
-}
-
-JNIEXPORT jboolean JNICALL WGL_NATIVE(wglRealizeLayerPalette)
- (JNIEnv *env, jclass that, jint arg0, jint arg1, jboolean arg2)
-{
- DEBUG_CALL("wglRealizeLayerPalette\n")
-
- return (jboolean)wglRealizeLayerPalette((HDC)arg0, arg1, (BOOL)arg2);
-}
-
-JNIEXPORT jint JNICALL WGL_NATIVE(wglSetLayerPaletteEntries)
- (JNIEnv *env, jclass that, jint arg0, jint arg1, jint arg2, jint arg3, jintArray arg4)
-{
- jint *lparg4=NULL;
- jint rc;
-
- DEBUG_CALL("wglSetLayerPaletteEntries\n")
-
- if (arg4) lparg4 = (*env)->GetIntArrayElements(env, arg4, NULL);
- rc = (jint)wglSetLayerPaletteEntries((HDC)arg0, arg1, arg2, arg3, (CONST COLORREF *)lparg4);
- if (arg4) (*env)->ReleaseIntArrayElements(env, arg4, lparg4, 0);
- return rc;
-}
-
-JNIEXPORT jboolean JNICALL WGL_NATIVE(wglShareLists)
- (JNIEnv *env, jclass that, jint arg0, jint arg1)
-{
- DEBUG_CALL("wglShareLists\n")
-
- return (jboolean)wglShareLists((HGLRC)arg0, (HGLRC)arg1);
-}
-
-JNIEXPORT jboolean JNICALL WGL_NATIVE(wglSwapLayerBuffers)
- (JNIEnv *env, jclass that, jint arg0, jint arg1)
-{
- DEBUG_CALL("wglSwapLayerBuffers\n")
-
- return (jboolean)wglSwapLayerBuffers((HDC)arg0, arg1);
-}
-
-JNIEXPORT jboolean JNICALL WGL_NATIVE(wglUseFontBitmapsA)
- (JNIEnv *env, jclass that, jint arg0, jint arg1, jint arg2, jint arg3)
-{
- DEBUG_CALL("wglUseFontBitmapsA\n")
-
- return (jboolean)wglUseFontBitmapsA((HDC)arg0, arg1, arg2, arg3);
-}
-
-JNIEXPORT jboolean JNICALL WGL_NATIVE(wglUseFontBitmapsW)
- (JNIEnv *env, jclass that, jint arg0, jint arg1, jint arg2, jint arg3)
-{
- DEBUG_CALL("wglUseFontBitmapsW\n")
-
- return (jboolean)wglUseFontBitmapsW((HDC)arg0, arg1, arg2, arg3);
-}
-
-JNIEXPORT jboolean JNICALL WGL_NATIVE(wglUseFontOutlinesA)
- (JNIEnv *env, jclass that, jint arg0, jint arg1, jint arg2, jint arg3, jfloat arg4, jfloat arg5, jint arg6, jobject arg7)
-{
-// GLYPHMETRICSFLOAT _arg7, *lparg7=NULL;
- jboolean rc;
-
- DEBUG_CALL("wglUseFontOutlinesA\n")
-
-// if (arg7) lparg7 = getGLYPHMETRICSFLOATFields(env, arg7, &_arg7);
- rc = (jboolean)wglUseFontOutlinesA((HDC)arg0, arg1, arg2, arg3, (FLOAT)arg4, (FLOAT)arg5, arg6, (LPGLYPHMETRICSFLOAT)arg7);
-// if (arg7) setGLYPHMETRICSFLOATFields(env, arg7, lparg7);
- return rc;
-}
-
-JNIEXPORT jboolean JNICALL WGL_NATIVE(wglUseFontOutlinesW)
- (JNIEnv *env, jclass that, jint arg0, jint arg1, jint arg2, jint arg3, jfloat arg4, jfloat arg5, jint arg6, jobject arg7)
-{
-// GLYPHMETRICSFLOAT _arg7, *lparg7=NULL;
- jboolean rc;
-
- DEBUG_CALL("wglUseFontOutlinesW\n")
-
-// if (arg7) lparg7 = getGLYPHMETRICSFLOATFields(env, arg7, &_arg7);
- rc = (jboolean)wglUseFontOutlinesW((HDC)arg0, arg1, arg2, arg3, (FLOAT)arg4, (FLOAT)arg5, arg6, (LPGLYPHMETRICSFLOAT)arg7);
-// if (arg7) setGLYPHMETRICSFLOATFields(env, arg7, lparg7);
- return rc;
-}
-
-JNIEXPORT void JNICALL WGL_NATIVE(MoveMemoryW__Lorg_eclipse_swt_opengl_internal_win32_GLYPHMETRICSFLOAT_2II)
- (JNIEnv *env, jclass that, jobject arg0, jint arg1, jint arg2)
-{
- GLYPHMETRICSFLOAT _arg0, *lparg0=NULL;
-
- DEBUG_CALL("MoveMemoryW__Lorg_eclipse_swt_opengl_internal_win32_GLYPHMETRICSFLOAT_2II\n")
- DEBUG_CHECK_NULL(env, arg1)
-
- if (arg0) lparg0 = &_arg0;
- MoveMemory((PVOID)lparg0, (CONST VOID *)arg1, arg2);
- if (arg0) setGLYPHMETRICSFLOATFields(env, arg0, lparg0);
-}
-
-JNIEXPORT void JNICALL WGL_NATIVE(MoveMemoryA__Lorg_eclipse_swt_opengl_internal_win32_GLYPHMETRICSFLOAT_2II)
- (JNIEnv *env, jclass that, jobject arg0, jint arg1, jint arg2)
-{
- GLYPHMETRICSFLOAT _arg0, *lparg0=NULL;
-
- DEBUG_CALL("MoveMemoryA__Lorg_eclipse_swt_opengl_internal_win32_GLYPHMETRICSFLOAT_2II\n")
- DEBUG_CHECK_NULL(env, arg1)
-
- if (arg0) lparg0 = &_arg0;
- MoveMemory((PVOID)lparg0, (CONST VOID *)arg1, arg2);
- if (arg0) setGLYPHMETRICSFLOATFields(env, arg0, lparg0);
-}
-
-
diff --git a/bundles/org.eclipse.swt.opengl/win32/library/make_win32.mak b/bundles/org.eclipse.swt.opengl/win32/library/make_win32.mak
deleted file mode 100644
index af6a861e89..0000000000
--- a/bundles/org.eclipse.swt.opengl/win32/library/make_win32.mak
+++ /dev/null
@@ -1,56 +0,0 @@
-#*******************************************************************************
-# Copyright (c) 2000, 2005 IBM Corporation and others.
-# All rights reserved. This program and the accompanying materials
-# are made available under the terms of the Eclipse Public License v1.0
-# which accompanies this distribution, and is available at
-# http://www.eclipse.org/legal/epl-v10.html
-#
-# Contributors:
-# IBM Corporation - initial API and implementation
-#*******************************************************************************
-
-# assumes JAVA_HOME is set in the environment from which nmake is run
-
-APPVER=5.0
-!include <win32.mak>
-
-pgm_ver_str="SWT $(maj_ver).$(min_ver) for Windows"
-timestamp_str=__DATE__\" \"__TIME__\" (EST)\"
-copyright = "Copyright (C) 1999, 2003 IBM Corp. All rights reserved."
-
-SWT_PREFIX=gl
-WS_PREFIX=win32
-SWT_LIB = $(SWT_PREFIX)-$(WS_PREFIX).dll
-
-LINK_LIBS = opengl32.lib glu32.lib gdi32.lib
-
-# note: thoroughly test all examples after changing any optimization flags
-SWT_CDEBUG = #-Zi -Odi
-SWT_LDEBUG = #/DEBUG /DEBUGTYPE:both
-CFLAGS = -c -W3 -G6 -GD -O1 $(SWT_CDEBUG) -nologo -D_X86_=1 -D_WIN32 -D_WIN95 -D_WIN32_WINDOWS=0x0400 -D_MT -MT -DWIN32 -D_WIN32_DCOM /I$(JAVA_HOME)\include /I.
-RCFLAGS = -DSWT_COMMA_VERSION=$(comma_ver)
-LFLAGS = /INCREMENTAL:NO /PDB:NONE /RELEASE /NOLOGO $(SWT_LDEBUG) -entry:_DllMainCRTStartup@12 -dll /BASE:0x10000000 /comment:$(pgm_ver_str) /comment:$(copyright) /DLL
-
-SWT_OBJS = swt.obj gl.obj glu.obj glw.obj structs.obj
-
-all: $(SWT_LIB)
-
-.c.obj:
- cl $(CFLAGS) $*.c
-
-$(SWT_LIB): $(SWT_OBJS) swt.res
- echo $(LFLAGS) >templrf
- echo $(LINK_LIBS) >>templrf
- echo -machine:IX86 >>templrf
- echo -subsystem:windows >>templrf
- echo -out:$(SWT_LIB) >>templrf
- echo $(SWT_OBJS) >>templrf
- echo swt.res >>templrf
- link @templrf
- del templrf
-
-swt.res:
- rc $(RCFLAGS) -DSWT_ORG_FILENAME=\"$(SWT_LIB)\" -r -fo swt.res swt.rc
-
-clean:
- del *.obj *.res *.dll *.lib *.exp
diff --git a/bundles/org.eclipse.swt.opengl/win32/library/structs.c b/bundles/org.eclipse.swt.opengl/win32/library/structs.c
deleted file mode 100644
index a38435b144..0000000000
--- a/bundles/org.eclipse.swt.opengl/win32/library/structs.c
+++ /dev/null
@@ -1,304 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2000, 2005 IBM Corporation and others.
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * IBM Corporation - initial API and implementation
- *******************************************************************************/
-
-#include "swt.h"
-#include "structs.h"
-
-typedef struct GLYPHMETRICSFLOAT_FID_CACHE {
- int cached;
- jclass clazz;
- jfieldID gmfCellIncY, gmfCellIncX, gmfptGlyphOrigin_y, gmfptGlyphOrigin_x, gmfBlackBoxY, gmfBlackBoxX;
-} GLYPHMETRICSFLOAT_FID_CACHE;
-typedef GLYPHMETRICSFLOAT_FID_CACHE *PGLYPHMETRICSFLOAT_FID_CACHE;
-
-GLYPHMETRICSFLOAT_FID_CACHE GLYPHMETRICSFLOATFc;
-
-void cacheGLYPHMETRICSFLOATFids(JNIEnv *env, jobject lpObject, PGLYPHMETRICSFLOAT_FID_CACHE lpCache)
-{
- if (lpCache->cached) return;
- lpCache->clazz = (*env)->GetObjectClass(env, lpObject);
- lpCache->gmfCellIncY = (*env)->GetFieldID(env, lpCache->clazz, "gmfCellIncY", "F");
- lpCache->gmfCellIncX = (*env)->GetFieldID(env, lpCache->clazz, "gmfCellIncX", "F");
- lpCache->gmfptGlyphOrigin_y = (*env)->GetFieldID(env, lpCache->clazz, "gmfptGlyphOrigin_y", "F");
- lpCache->gmfptGlyphOrigin_x = (*env)->GetFieldID(env, lpCache->clazz, "gmfptGlyphOrigin_x", "F");
- lpCache->gmfBlackBoxY = (*env)->GetFieldID(env, lpCache->clazz, "gmfBlackBoxY", "F");
- lpCache->gmfBlackBoxX = (*env)->GetFieldID(env, lpCache->clazz, "gmfBlackBoxX", "F");
- lpCache->cached = 1;
-}
-
-GLYPHMETRICSFLOAT *getGLYPHMETRICSFLOATFields(JNIEnv *env, jobject lpObject, GLYPHMETRICSFLOAT *lpStruct)
-{
- PGLYPHMETRICSFLOAT_FID_CACHE lpCache = &GLYPHMETRICSFLOATFc;
- if (!lpCache->cached) cacheGLYPHMETRICSFLOATFids(env, lpObject, lpCache);
- lpStruct->gmfCellIncY = (*env)->GetFloatField(env, lpObject, lpCache->gmfCellIncY);
- lpStruct->gmfCellIncX = (*env)->GetFloatField(env, lpObject, lpCache->gmfCellIncX);
- lpStruct->gmfptGlyphOrigin.y = (*env)->GetFloatField(env, lpObject, lpCache->gmfptGlyphOrigin_y);
- lpStruct->gmfptGlyphOrigin.x = (*env)->GetFloatField(env, lpObject, lpCache->gmfptGlyphOrigin_x);
- lpStruct->gmfBlackBoxY = (*env)->GetFloatField(env, lpObject, lpCache->gmfBlackBoxY);
- lpStruct->gmfBlackBoxX = (*env)->GetFloatField(env, lpObject, lpCache->gmfBlackBoxX);
- return lpStruct;
-}
-
-void setGLYPHMETRICSFLOATFields(JNIEnv *env, jobject lpObject, GLYPHMETRICSFLOAT *lpStruct)
-{
- PGLYPHMETRICSFLOAT_FID_CACHE lpCache = &GLYPHMETRICSFLOATFc;
- if (!lpCache->cached) cacheGLYPHMETRICSFLOATFids(env, lpObject, lpCache);
- (*env)->SetFloatField(env, lpObject, lpCache->gmfCellIncY, (jfloat)lpStruct->gmfCellIncY);
- (*env)->SetFloatField(env, lpObject, lpCache->gmfCellIncX, (jfloat)lpStruct->gmfCellIncX);
- (*env)->SetFloatField(env, lpObject, lpCache->gmfptGlyphOrigin_y, (jfloat)lpStruct->gmfptGlyphOrigin.y);
- (*env)->SetFloatField(env, lpObject, lpCache->gmfptGlyphOrigin_x, (jfloat)lpStruct->gmfptGlyphOrigin.x);
- (*env)->SetFloatField(env, lpObject, lpCache->gmfBlackBoxY, (jfloat)lpStruct->gmfBlackBoxY);
- (*env)->SetFloatField(env, lpObject, lpCache->gmfBlackBoxX, (jfloat)lpStruct->gmfBlackBoxX);
-}
-
-typedef struct LAYERPLANEDESCRIPTOR_FID_CACHE {
- int cached;
- jclass clazz;
- jfieldID crTransparent, bReserved, iLayerPlane, cAuxBuffers, cStencilBits, cDepthBits, cAccumAlphaBits, cAccumBlueBits, cAccumGreenBits, cAccumRedBits, cAccumBits, cAlphaShift, cAlphaBits, cBlueShift, cBlueBits, cGreenShift, cGreenBits, cRedShift, cRedBits, cColorBits, iPixelType, dwFlags, nVersion, nSize;
-} LAYERPLANEDESCRIPTOR_FID_CACHE;
-typedef LAYERPLANEDESCRIPTOR_FID_CACHE *PLAYERPLANEDESCRIPTOR_FID_CACHE;
-
-LAYERPLANEDESCRIPTOR_FID_CACHE LAYERPLANEDESCRIPTORFc;
-
-void cacheLAYERPLANEDESCRIPTORFids(JNIEnv *env, jobject lpObject, PLAYERPLANEDESCRIPTOR_FID_CACHE lpCache)
-{
- if (lpCache->cached) return;
- lpCache->clazz = (*env)->GetObjectClass(env, lpObject);
- lpCache->crTransparent = (*env)->GetFieldID(env, lpCache->clazz, "crTransparent", "I");
- lpCache->bReserved = (*env)->GetFieldID(env, lpCache->clazz, "bReserved", "B");
- lpCache->iLayerPlane = (*env)->GetFieldID(env, lpCache->clazz, "iLayerPlane", "B");
- lpCache->cAuxBuffers = (*env)->GetFieldID(env, lpCache->clazz, "cAuxBuffers", "B");
- lpCache->cStencilBits = (*env)->GetFieldID(env, lpCache->clazz, "cStencilBits", "B");
- lpCache->cDepthBits = (*env)->GetFieldID(env, lpCache->clazz, "cDepthBits", "B");
- lpCache->cAccumAlphaBits = (*env)->GetFieldID(env, lpCache->clazz, "cAccumAlphaBits", "B");
- lpCache->cAccumBlueBits = (*env)->GetFieldID(env, lpCache->clazz, "cAccumBlueBits", "B");
- lpCache->cAccumGreenBits = (*env)->GetFieldID(env, lpCache->clazz, "cAccumGreenBits", "B");
- lpCache->cAccumRedBits = (*env)->GetFieldID(env, lpCache->clazz, "cAccumRedBits", "B");
- lpCache->cAccumBits = (*env)->GetFieldID(env, lpCache->clazz, "cAccumBits", "B");
- lpCache->cAlphaShift = (*env)->GetFieldID(env, lpCache->clazz, "cAlphaShift", "B");
- lpCache->cAlphaBits = (*env)->GetFieldID(env, lpCache->clazz, "cAlphaBits", "B");
- lpCache->cBlueShift = (*env)->GetFieldID(env, lpCache->clazz, "cBlueShift", "B");
- lpCache->cBlueBits = (*env)->GetFieldID(env, lpCache->clazz, "cBlueBits", "B");
- lpCache->cGreenShift = (*env)->GetFieldID(env, lpCache->clazz, "cGreenShift", "B");
- lpCache->cGreenBits = (*env)->GetFieldID(env, lpCache->clazz, "cGreenBits", "B");
- lpCache->cRedShift = (*env)->GetFieldID(env, lpCache->clazz, "cRedShift", "B");
- lpCache->cRedBits = (*env)->GetFieldID(env, lpCache->clazz, "cRedBits", "B");
- lpCache->cColorBits = (*env)->GetFieldID(env, lpCache->clazz, "cColorBits", "B");
- lpCache->iPixelType = (*env)->GetFieldID(env, lpCache->clazz, "iPixelType", "B");
- lpCache->dwFlags = (*env)->GetFieldID(env, lpCache->clazz, "dwFlags", "I");
- lpCache->nVersion = (*env)->GetFieldID(env, lpCache->clazz, "nVersion", "S");
- lpCache->nSize = (*env)->GetFieldID(env, lpCache->clazz, "nSize", "S");
- lpCache->cached = 1;
-}
-
-LAYERPLANEDESCRIPTOR *getLAYERPLANEDESCRIPTORFields(JNIEnv *env, jobject lpObject, LAYERPLANEDESCRIPTOR *lpStruct)
-{
- PLAYERPLANEDESCRIPTOR_FID_CACHE lpCache = &LAYERPLANEDESCRIPTORFc;
- if (!lpCache->cached) cacheLAYERPLANEDESCRIPTORFids(env, lpObject, lpCache);
- lpStruct->crTransparent = (*env)->GetIntField(env, lpObject, lpCache->crTransparent);
- lpStruct->bReserved = (*env)->GetByteField(env, lpObject, lpCache->bReserved);
- lpStruct->iLayerPlane = (*env)->GetByteField(env, lpObject, lpCache->iLayerPlane);
- lpStruct->cAuxBuffers = (*env)->GetByteField(env, lpObject, lpCache->cAuxBuffers);
- lpStruct->cStencilBits = (*env)->GetByteField(env, lpObject, lpCache->cStencilBits);
- lpStruct->cDepthBits = (*env)->GetByteField(env, lpObject, lpCache->cDepthBits);
- lpStruct->cAccumAlphaBits = (*env)->GetByteField(env, lpObject, lpCache->cAccumAlphaBits);
- lpStruct->cAccumBlueBits = (*env)->GetByteField(env, lpObject, lpCache->cAccumBlueBits);
- lpStruct->cAccumGreenBits = (*env)->GetByteField(env, lpObject, lpCache->cAccumGreenBits);
- lpStruct->cAccumRedBits = (*env)->GetByteField(env, lpObject, lpCache->cAccumRedBits);
- lpStruct->cAccumBits = (*env)->GetByteField(env, lpObject, lpCache->cAccumBits);
- lpStruct->cAlphaShift = (*env)->GetByteField(env, lpObject, lpCache->cAlphaShift);
- lpStruct->cAlphaBits = (*env)->GetByteField(env, lpObject, lpCache->cAlphaBits);
- lpStruct->cBlueShift = (*env)->GetByteField(env, lpObject, lpCache->cBlueShift);
- lpStruct->cBlueBits = (*env)->GetByteField(env, lpObject, lpCache->cBlueBits);
- lpStruct->cGreenShift = (*env)->GetByteField(env, lpObject, lpCache->cGreenShift);
- lpStruct->cGreenBits = (*env)->GetByteField(env, lpObject, lpCache->cGreenBits);
- lpStruct->cRedShift = (*env)->GetByteField(env, lpObject, lpCache->cRedShift);
- lpStruct->cRedBits = (*env)->GetByteField(env, lpObject, lpCache->cRedBits);
- lpStruct->cColorBits = (*env)->GetByteField(env, lpObject, lpCache->cColorBits);
- lpStruct->iPixelType = (*env)->GetByteField(env, lpObject, lpCache->iPixelType);
- lpStruct->dwFlags = (*env)->GetIntField(env, lpObject, lpCache->dwFlags);
- lpStruct->nVersion = (*env)->GetShortField(env, lpObject, lpCache->nVersion);
- lpStruct->nSize = (*env)->GetShortField(env, lpObject, lpCache->nSize);
- return lpStruct;
-}
-
-void setLAYERPLANEDESCRIPTORFields(JNIEnv *env, jobject lpObject, LAYERPLANEDESCRIPTOR *lpStruct)
-{
- PLAYERPLANEDESCRIPTOR_FID_CACHE lpCache = &LAYERPLANEDESCRIPTORFc;
- if (!lpCache->cached) cacheLAYERPLANEDESCRIPTORFids(env, lpObject, lpCache);
- (*env)->SetIntField(env, lpObject, lpCache->crTransparent, (jint)lpStruct->crTransparent);
- (*env)->SetByteField(env, lpObject, lpCache->bReserved, (jbyte)lpStruct->bReserved);
- (*env)->SetByteField(env, lpObject, lpCache->iLayerPlane, (jbyte)lpStruct->iLayerPlane);
- (*env)->SetByteField(env, lpObject, lpCache->cAuxBuffers, (jbyte)lpStruct->cAuxBuffers);
- (*env)->SetByteField(env, lpObject, lpCache->cStencilBits, (jbyte)lpStruct->cStencilBits);
- (*env)->SetByteField(env, lpObject, lpCache->cDepthBits, (jbyte)lpStruct->cDepthBits);
- (*env)->SetByteField(env, lpObject, lpCache->cAccumAlphaBits, (jbyte)lpStruct->cAccumAlphaBits);
- (*env)->SetByteField(env, lpObject, lpCache->cAccumBlueBits, (jbyte)lpStruct->cAccumBlueBits);
- (*env)->SetByteField(env, lpObject, lpCache->cAccumGreenBits, (jbyte)lpStruct->cAccumGreenBits);
- (*env)->SetByteField(env, lpObject, lpCache->cAccumRedBits, (jbyte)lpStruct->cAccumRedBits);
- (*env)->SetByteField(env, lpObject, lpCache->cAccumBits, (jbyte)lpStruct->cAccumBits);
- (*env)->SetByteField(env, lpObject, lpCache->cAlphaShift, (jbyte)lpStruct->cAlphaShift);
- (*env)->SetByteField(env, lpObject, lpCache->cAlphaBits, (jbyte)lpStruct->cAlphaBits);
- (*env)->SetByteField(env, lpObject, lpCache->cBlueShift, (jbyte)lpStruct->cBlueShift);
- (*env)->SetByteField(env, lpObject, lpCache->cBlueBits, (jbyte)lpStruct->cBlueBits);
- (*env)->SetByteField(env, lpObject, lpCache->cGreenShift, (jbyte)lpStruct->cGreenShift);
- (*env)->SetByteField(env, lpObject, lpCache->cGreenBits, (jbyte)lpStruct->cGreenBits);
- (*env)->SetByteField(env, lpObject, lpCache->cRedShift, (jbyte)lpStruct->cRedShift);
- (*env)->SetByteField(env, lpObject, lpCache->cRedBits, (jbyte)lpStruct->cRedBits);
- (*env)->SetByteField(env, lpObject, lpCache->cColorBits, (jbyte)lpStruct->cColorBits);
- (*env)->SetByteField(env, lpObject, lpCache->iPixelType, (jbyte)lpStruct->iPixelType);
- (*env)->SetIntField(env, lpObject, lpCache->dwFlags, (jint)lpStruct->dwFlags);
- (*env)->SetShortField(env, lpObject, lpCache->nVersion, (jshort)lpStruct->nVersion);
- (*env)->SetShortField(env, lpObject, lpCache->nSize, (jshort)lpStruct->nSize);
-}
-
-typedef struct POINTFLOAT_FID_CACHE {
- int cached;
- jclass clazz;
- jfieldID y, x;
-} POINTFLOAT_FID_CACHE;
-typedef POINTFLOAT_FID_CACHE *PPOINTFLOAT_FID_CACHE;
-
-POINTFLOAT_FID_CACHE POINTFLOATFc;
-
-void cachePOINTFLOATFids(JNIEnv *env, jobject lpObject, PPOINTFLOAT_FID_CACHE lpCache)
-{
- if (lpCache->cached) return;
- lpCache->clazz = (*env)->GetObjectClass(env, lpObject);
- lpCache->y = (*env)->GetFieldID(env, lpCache->clazz, "y", "F");
- lpCache->x = (*env)->GetFieldID(env, lpCache->clazz, "x", "F");
- lpCache->cached = 1;
-}
-
-POINTFLOAT *getPOINTFLOATFields(JNIEnv *env, jobject lpObject, POINTFLOAT *lpStruct)
-{
- PPOINTFLOAT_FID_CACHE lpCache = &POINTFLOATFc;
- if (!lpCache->cached) cachePOINTFLOATFids(env, lpObject, lpCache);
- lpStruct->y = (*env)->GetFloatField(env, lpObject, lpCache->y);
- lpStruct->x = (*env)->GetFloatField(env, lpObject, lpCache->x);
- return lpStruct;
-}
-
-void setPOINTFLOATFields(JNIEnv *env, jobject lpObject, POINTFLOAT *lpStruct)
-{
- PPOINTFLOAT_FID_CACHE lpCache = &POINTFLOATFc;
- if (!lpCache->cached) cachePOINTFLOATFids(env, lpObject, lpCache);
- (*env)->SetFloatField(env, lpObject, lpCache->y, (jfloat)lpStruct->y);
- (*env)->SetFloatField(env, lpObject, lpCache->x, (jfloat)lpStruct->x);
-}
-
-typedef struct PIXELFORMATDESCRIPTOR_FID_CACHE {
- int cached;
- jclass clazz;
- jfieldID dwDamageMask, dwVisibleMask, dwLayerMask, bReserved, iLayerType, cAuxBuffers, cStencilBits, cDepthBits, cAccumAlphaBits, cAccumBlueBits, cAccumGreenBits, cAccumRedBits, cAccumBits, cAlphaShift, cAlphaBits, cBlueShift, cBlueBits, cGreenShift, cGreenBits, cRedShift, cRedBits, cColorBits, iPixelType, dwFlags, nVersion, nSize;
-} PIXELFORMATDESCRIPTOR_FID_CACHE;
-typedef PIXELFORMATDESCRIPTOR_FID_CACHE *PPIXELFORMATDESCRIPTOR_FID_CACHE;
-
-PIXELFORMATDESCRIPTOR_FID_CACHE PIXELFORMATDESCRIPTORFc;
-
-void cachePIXELFORMATDESCRIPTORFids(JNIEnv *env, jobject lpObject, PPIXELFORMATDESCRIPTOR_FID_CACHE lpCache)
-{
- if (lpCache->cached) return;
- lpCache->clazz = (*env)->GetObjectClass(env, lpObject);
- lpCache->dwDamageMask = (*env)->GetFieldID(env, lpCache->clazz, "dwDamageMask", "I");
- lpCache->dwVisibleMask = (*env)->GetFieldID(env, lpCache->clazz, "dwVisibleMask", "I");
- lpCache->dwLayerMask = (*env)->GetFieldID(env, lpCache->clazz, "dwLayerMask", "I");
- lpCache->bReserved = (*env)->GetFieldID(env, lpCache->clazz, "bReserved", "B");
- lpCache->iLayerType = (*env)->GetFieldID(env, lpCache->clazz, "iLayerType", "B");
- lpCache->cAuxBuffers = (*env)->GetFieldID(env, lpCache->clazz, "cAuxBuffers", "B");
- lpCache->cStencilBits = (*env)->GetFieldID(env, lpCache->clazz, "cStencilBits", "B");
- lpCache->cDepthBits = (*env)->GetFieldID(env, lpCache->clazz, "cDepthBits", "B");
- lpCache->cAccumAlphaBits = (*env)->GetFieldID(env, lpCache->clazz, "cAccumAlphaBits", "B");
- lpCache->cAccumBlueBits = (*env)->GetFieldID(env, lpCache->clazz, "cAccumBlueBits", "B");
- lpCache->cAccumGreenBits = (*env)->GetFieldID(env, lpCache->clazz, "cAccumGreenBits", "B");
- lpCache->cAccumRedBits = (*env)->GetFieldID(env, lpCache->clazz, "cAccumRedBits", "B");
- lpCache->cAccumBits = (*env)->GetFieldID(env, lpCache->clazz, "cAccumBits", "B");
- lpCache->cAlphaShift = (*env)->GetFieldID(env, lpCache->clazz, "cAlphaShift", "B");
- lpCache->cAlphaBits = (*env)->GetFieldID(env, lpCache->clazz, "cAlphaBits", "B");
- lpCache->cBlueShift = (*env)->GetFieldID(env, lpCache->clazz, "cBlueShift", "B");
- lpCache->cBlueBits = (*env)->GetFieldID(env, lpCache->clazz, "cBlueBits", "B");
- lpCache->cGreenShift = (*env)->GetFieldID(env, lpCache->clazz, "cGreenShift", "B");
- lpCache->cGreenBits = (*env)->GetFieldID(env, lpCache->clazz, "cGreenBits", "B");
- lpCache->cRedShift = (*env)->GetFieldID(env, lpCache->clazz, "cRedShift", "B");
- lpCache->cRedBits = (*env)->GetFieldID(env, lpCache->clazz, "cRedBits", "B");
- lpCache->cColorBits = (*env)->GetFieldID(env, lpCache->clazz, "cColorBits", "B");
- lpCache->iPixelType = (*env)->GetFieldID(env, lpCache->clazz, "iPixelType", "B");
- lpCache->dwFlags = (*env)->GetFieldID(env, lpCache->clazz, "dwFlags", "I");
- lpCache->nVersion = (*env)->GetFieldID(env, lpCache->clazz, "nVersion", "S");
- lpCache->nSize = (*env)->GetFieldID(env, lpCache->clazz, "nSize", "S");
- lpCache->cached = 1;
-}
-
-PIXELFORMATDESCRIPTOR *getPIXELFORMATDESCRIPTORFields(JNIEnv *env, jobject lpObject, PIXELFORMATDESCRIPTOR *lpStruct)
-{
- PPIXELFORMATDESCRIPTOR_FID_CACHE lpCache = &PIXELFORMATDESCRIPTORFc;
- if (!lpCache->cached) cachePIXELFORMATDESCRIPTORFids(env, lpObject, lpCache);
- lpStruct->dwDamageMask = (*env)->GetIntField(env, lpObject, lpCache->dwDamageMask);
- lpStruct->dwVisibleMask = (*env)->GetIntField(env, lpObject, lpCache->dwVisibleMask);
- lpStruct->dwLayerMask = (*env)->GetIntField(env, lpObject, lpCache->dwLayerMask);
- lpStruct->bReserved = (*env)->GetByteField(env, lpObject, lpCache->bReserved);
- lpStruct->iLayerType = (*env)->GetByteField(env, lpObject, lpCache->iLayerType);
- lpStruct->cAuxBuffers = (*env)->GetByteField(env, lpObject, lpCache->cAuxBuffers);
- lpStruct->cStencilBits = (*env)->GetByteField(env, lpObject, lpCache->cStencilBits);
- lpStruct->cDepthBits = (*env)->GetByteField(env, lpObject, lpCache->cDepthBits);
- lpStruct->cAccumAlphaBits = (*env)->GetByteField(env, lpObject, lpCache->cAccumAlphaBits);
- lpStruct->cAccumBlueBits = (*env)->GetByteField(env, lpObject, lpCache->cAccumBlueBits);
- lpStruct->cAccumGreenBits = (*env)->GetByteField(env, lpObject, lpCache->cAccumGreenBits);
- lpStruct->cAccumRedBits = (*env)->GetByteField(env, lpObject, lpCache->cAccumRedBits);
- lpStruct->cAccumBits = (*env)->GetByteField(env, lpObject, lpCache->cAccumBits);
- lpStruct->cAlphaShift = (*env)->GetByteField(env, lpObject, lpCache->cAlphaShift);
- lpStruct->cAlphaBits = (*env)->GetByteField(env, lpObject, lpCache->cAlphaBits);
- lpStruct->cBlueShift = (*env)->GetByteField(env, lpObject, lpCache->cBlueShift);
- lpStruct->cBlueBits = (*env)->GetByteField(env, lpObject, lpCache->cBlueBits);
- lpStruct->cGreenShift = (*env)->GetByteField(env, lpObject, lpCache->cGreenShift);
- lpStruct->cGreenBits = (*env)->GetByteField(env, lpObject, lpCache->cGreenBits);
- lpStruct->cRedShift = (*env)->GetByteField(env, lpObject, lpCache->cRedShift);
- lpStruct->cRedBits = (*env)->GetByteField(env, lpObject, lpCache->cRedBits);
- lpStruct->cColorBits = (*env)->GetByteField(env, lpObject, lpCache->cColorBits);
- lpStruct->iPixelType = (*env)->GetByteField(env, lpObject, lpCache->iPixelType);
- lpStruct->dwFlags = (*env)->GetIntField(env, lpObject, lpCache->dwFlags);
- lpStruct->nVersion = (*env)->GetShortField(env, lpObject, lpCache->nVersion);
- lpStruct->nSize = (*env)->GetShortField(env, lpObject, lpCache->nSize);
- return lpStruct;
-}
-
-void setPIXELFORMATDESCRIPTORFields(JNIEnv *env, jobject lpObject, PIXELFORMATDESCRIPTOR *lpStruct)
-{
- PPIXELFORMATDESCRIPTOR_FID_CACHE lpCache = &PIXELFORMATDESCRIPTORFc;
- if (!lpCache->cached) cachePIXELFORMATDESCRIPTORFids(env, lpObject, lpCache);
- (*env)->SetIntField(env, lpObject, lpCache->dwDamageMask, (jint)lpStruct->dwDamageMask);
- (*env)->SetIntField(env, lpObject, lpCache->dwVisibleMask, (jint)lpStruct->dwVisibleMask);
- (*env)->SetIntField(env, lpObject, lpCache->dwLayerMask, (jint)lpStruct->dwLayerMask);
- (*env)->SetByteField(env, lpObject, lpCache->bReserved, (jbyte)lpStruct->bReserved);
- (*env)->SetByteField(env, lpObject, lpCache->iLayerType, (jbyte)lpStruct->iLayerType);
- (*env)->SetByteField(env, lpObject, lpCache->cAuxBuffers, (jbyte)lpStruct->cAuxBuffers);
- (*env)->SetByteField(env, lpObject, lpCache->cStencilBits, (jbyte)lpStruct->cStencilBits);
- (*env)->SetByteField(env, lpObject, lpCache->cDepthBits, (jbyte)lpStruct->cDepthBits);
- (*env)->SetByteField(env, lpObject, lpCache->cAccumAlphaBits, (jbyte)lpStruct->cAccumAlphaBits);
- (*env)->SetByteField(env, lpObject, lpCache->cAccumBlueBits, (jbyte)lpStruct->cAccumBlueBits);
- (*env)->SetByteField(env, lpObject, lpCache->cAccumGreenBits, (jbyte)lpStruct->cAccumGreenBits);
- (*env)->SetByteField(env, lpObject, lpCache->cAccumRedBits, (jbyte)lpStruct->cAccumRedBits);
- (*env)->SetByteField(env, lpObject, lpCache->cAccumBits, (jbyte)lpStruct->cAccumBits);
- (*env)->SetByteField(env, lpObject, lpCache->cAlphaShift, (jbyte)lpStruct->cAlphaShift);
- (*env)->SetByteField(env, lpObject, lpCache->cAlphaBits, (jbyte)lpStruct->cAlphaBits);
- (*env)->SetByteField(env, lpObject, lpCache->cBlueShift, (jbyte)lpStruct->cBlueShift);
- (*env)->SetByteField(env, lpObject, lpCache->cBlueBits, (jbyte)lpStruct->cBlueBits);
- (*env)->SetByteField(env, lpObject, lpCache->cGreenShift, (jbyte)lpStruct->cGreenShift);
- (*env)->SetByteField(env, lpObject, lpCache->cGreenBits, (jbyte)lpStruct->cGreenBits);
- (*env)->SetByteField(env, lpObject, lpCache->cRedShift, (jbyte)lpStruct->cRedShift);
- (*env)->SetByteField(env, lpObject, lpCache->cRedBits, (jbyte)lpStruct->cRedBits);
- (*env)->SetByteField(env, lpObject, lpCache->cColorBits, (jbyte)lpStruct->cColorBits);
- (*env)->SetByteField(env, lpObject, lpCache->iPixelType, (jbyte)lpStruct->iPixelType);
- (*env)->SetIntField(env, lpObject, lpCache->dwFlags, (jint)lpStruct->dwFlags);
- (*env)->SetShortField(env, lpObject, lpCache->nVersion, (jshort)lpStruct->nVersion);
- (*env)->SetShortField(env, lpObject, lpCache->nSize, (jshort)lpStruct->nSize);
-}
-
diff --git a/bundles/org.eclipse.swt.opengl/win32/library/structs.h b/bundles/org.eclipse.swt.opengl/win32/library/structs.h
deleted file mode 100644
index 14c62a85dd..0000000000
--- a/bundles/org.eclipse.swt.opengl/win32/library/structs.h
+++ /dev/null
@@ -1,24 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2000, 2005 IBM Corporation and others.
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * IBM Corporation - initial API and implementation
- *******************************************************************************/
-#include <windows.h>
-
-GLYPHMETRICSFLOAT *getGLYPHMETRICSFLOATFields(JNIEnv *env, jobject lpObject, GLYPHMETRICSFLOAT *lpStruct);
-void setGLYPHMETRICSFLOATFields(JNIEnv *env, jobject lpObject, GLYPHMETRICSFLOAT *lpStruct);
-
-LAYERPLANEDESCRIPTOR *getLAYERPLANEDESCRIPTORFields(JNIEnv *env, jobject lpObject, LAYERPLANEDESCRIPTOR *lpStruct);
-void setLAYERPLANEDESCRIPTORFields(JNIEnv *env, jobject lpObject, LAYERPLANEDESCRIPTOR *lpStruct);
-
-POINTFLOAT *getPOINTFLOATFields(JNIEnv *env, jobject lpObject, POINTFLOAT *lpStruct);
-void setPOINTFLOATFields(JNIEnv *env, jobject lpObject, POINTFLOAT *lpStruct);
-
-PIXELFORMATDESCRIPTOR *getPIXELFORMATDESCRIPTORFields(JNIEnv *env, jobject lpObject, PIXELFORMATDESCRIPTOR *lpStruct);
-void setPIXELFORMATDESCRIPTORFields(JNIEnv *env, jobject lpObject, PIXELFORMATDESCRIPTOR *lpStruct);
-
diff --git a/bundles/org.eclipse.swt.opengl/win32/library/swt.rc b/bundles/org.eclipse.swt.opengl/win32/library/swt.rc
deleted file mode 100644
index c5b350cb38..0000000000
--- a/bundles/org.eclipse.swt.opengl/win32/library/swt.rc
+++ /dev/null
@@ -1,67 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2000, 2005 IBM Corporation and others.
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * IBM Corporation - initial API and implementation
- *******************************************************************************/
-
-#include "windows.h"
-
-VS_VERSION_INFO VERSIONINFO
- PRODUCTVERSION 0,0,0,0
- FILEFLAGSMASK 0x3fL
-#ifdef _DEBUG
- FILEFLAGS 0x1L
-#else
- FILEFLAGS 0x0L
-#endif
- FILEOS 0x40000L
- FILETYPE 0x2L
- FILESUBTYPE 0x0L
-BEGIN
- BLOCK "StringFileInfo"
- BEGIN
- BLOCK "040904b0"
- BEGIN
- VALUE "CompanyName", "IBM Corporation\0"
- VALUE "FileDescription", "Standard Widget Toolkit\0"
- VALUE "InternalName", "SWT\0"
- VALUE "LegalCopyright", " Copyright 2000, 2003 IBM Corp. All Rights Reserved.\0"
- VALUE "OriginalFilename", SWT_ORG_FILENAME
- VALUE "ProductName", "\0"
- VALUE "ProductVersion", "0,0,0,0\0"
- END
- END
- BLOCK "VarFileInfo"
- BEGIN
- VALUE "Translation", 0x409, 1200
- END
-END
-
-/* SHMENUBAR Pocket PC
- * ID_MENU SHMENUBAR DISCARDABLE
- * BEGIN
- * ID_MENU, 1,
- * IMAGE_NONE, ID_MENU_ITEM1, 0, 0,
- * 0, 0, 0,
- * END
- * ID_MENU MENU DISCARDABLE
- * BEGIN
- * MENUITEM "", ID_MENU_ITEM1
- * END
- */
-100 RCDATA DISCARDABLE
-BEGIN
- 100, 1,
- -2, 101, 0, 0,
- 0, 0, 0,
-END
-
-100 MENU DISCARDABLE
-BEGIN
- MENUITEM "", 101
-END \ No newline at end of file
diff --git a/bundles/org.eclipse.swt.opengl/win32/org/eclipse/swt/opengl/GLCanvas.java b/bundles/org.eclipse.swt.opengl/win32/org/eclipse/swt/opengl/GLCanvas.java
deleted file mode 100644
index 32b1a1a092..0000000000
--- a/bundles/org.eclipse.swt.opengl/win32/org/eclipse/swt/opengl/GLCanvas.java
+++ /dev/null
@@ -1,189 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2000, 2003 IBM Corporation and others.
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * IBM Corporation - initial API and implementation
- *******************************************************************************/
-package org.eclipse.swt.opengl;
-
-import org.eclipse.swt.*;
-import org.eclipse.swt.opengl.internal.win32.*;
-import org.eclipse.swt.internal.win32.*;
-import org.eclipse.swt.widgets.*;
-
-/**
- * GLCanvas is a widget capable of displaying OpenGL content.
- */
-
-public class GLCanvas extends Canvas {
- int context;
- int pixelFormat;
-
-/**
- * Create a GLCanvas widget using the attributes described in the GLData
- * object provided.
- *
- * @param parent a composite widget
- * @param style the bitwise OR'ing of widget styles
- * @param data the requested attributes of the GLCanvas
- *
- * @exception IllegalArgumentException
- * <ul><li>ERROR_NULL_ARGUMENT when the data is null
- * <li>ERROR_UNSUPPORTED_DEPTH when the requested attributes cannot be provided</ul>
- * @exception SWTException
- * <ul><li>ERROR_THREAD_INVALID_ACCESS when called from the wrong thread
- * <li>ERROR_CANNOT_CREATE_OBJECT when failed to create OLE Object
- * <li>ERROR_CANNOT_OPEN_FILE when failed to open file
- * <li>ERROR_INTERFACE_NOT_FOUND when unable to create callbacks for OLE Interfaces
- * <li>ERROR_INVALID_CLASSID
- * </ul>
- */
-public GLCanvas (Composite parent, int style, GLData data) {
- super (parent, style);
- if (data == null) SWT.error (SWT.ERROR_NULL_ARGUMENT);
-
- PIXELFORMATDESCRIPTOR pfd = new PIXELFORMATDESCRIPTOR ();
- pfd.nSize = (short) PIXELFORMATDESCRIPTOR.sizeof;
- pfd.nVersion = 1;
- pfd.dwFlags = WGL.PFD_DRAW_TO_WINDOW | WGL.PFD_SUPPORT_OPENGL;
- pfd.dwLayerMask = WGL.PFD_MAIN_PLANE;
- pfd.iPixelType = (byte) WGL.PFD_TYPE_RGBA;
- if (data.doubleBuffer) pfd.dwFlags |= WGL.PFD_DOUBLEBUFFER;
- if (data.stereo) pfd.dwFlags |= WGL.PFD_STEREO;
- pfd.cRedBits = (byte) data.redSize;
- pfd.cGreenBits = (byte) data.greenSize;
- pfd.cBlueBits = (byte) data.blueSize;
- pfd.cAlphaBits = (byte) data.alphaSize;
- pfd.cDepthBits = (byte) data.depthSize;
- pfd.cStencilBits = (byte) data.stencilSize;
- pfd.cAccumRedBits = (byte) data.accumRedSize;
- pfd.cAccumGreenBits = (byte) data.accumGreenSize;
- pfd.cAccumBlueBits = (byte) data.accumBlueSize;
- pfd.cAccumAlphaBits = (byte) data.accumAlphaSize;
- pfd.cAccumBits = (byte) (pfd.cAccumRedBits + pfd.cAccumGreenBits + pfd.cAccumBlueBits + pfd.cAccumAlphaBits);
- //FIXME - use wglChoosePixelFormatARB
-// if (data.sampleBuffers > 0) {
-// wglAttrib [pos++] = WGL.WGL_SAMPLE_BUFFERS_ARB;
-// wglAttrib [pos++] = data.sampleBuffers;
-// }
-// if (data.samples > 0) {
-// wglAttrib [pos++] = WGL.WGL_SAMPLES_ARB;
-// wglAttrib [pos++] = data.samples;
-// }
-
- int hDC = OS.GetDC (handle);
- pixelFormat = WGL.ChoosePixelFormat (hDC, pfd);
- if (pixelFormat == 0) {
- OS.ReleaseDC (handle, hDC);
- SWT.error (SWT.ERROR_UNSUPPORTED_DEPTH);
- }
- if (!WGL.SetPixelFormat (hDC, pixelFormat, pfd)) {
- OS.ReleaseDC (handle, hDC);
- SWT.error (SWT.ERROR_UNSUPPORTED_DEPTH);
- }
- context = WGL.wglCreateContext (hDC);
- if (context == 0) {
- OS.ReleaseDC (handle, hDC);
- SWT.error (SWT.ERROR_NO_HANDLES);
- }
- OS.ReleaseDC (handle, hDC);
-// if (share != null) {
-// WGL.wglShareLists (context, share.context);
-// }
-
- Listener listener = new Listener () {
- public void handleEvent (Event event) {
- switch (event.type) {
- case SWT.Dispose:
- WGL.wglDeleteContext (context);
- break;
- }
- }
- };
- addListener (SWT.Dispose, listener);
-}
-
-/**
- * Returns a GLData object describing the created context.
- *
- * @return GLData description of the OpenGL context attributes
- * @exception SWTException <ul>
- * <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li>
- * <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li>
- * </ul>
- */
-public GLData getGLData () {
- checkWidget ();
- GLData data = new GLData ();
- PIXELFORMATDESCRIPTOR pfd = new PIXELFORMATDESCRIPTOR ();
- pfd.nSize = (short) PIXELFORMATDESCRIPTOR.sizeof;
- int hDC = OS.GetDC (handle);
- WGL.DescribePixelFormat(hDC, pixelFormat, PIXELFORMATDESCRIPTOR.sizeof, pfd);
- OS.ReleaseDC (handle, hDC);
- data.doubleBuffer = (pfd.dwFlags & WGL.PFD_DOUBLEBUFFER) != 0;
- data.stereo = (pfd.dwFlags & WGL.PFD_STEREO) != 0;
- data.redSize = pfd.cRedBits;
- data.greenSize = pfd.cGreenBits;
- data.blueSize = pfd.cBlueBits;
- data.alphaSize = pfd.cAlphaBits;
- data.depthSize = pfd.cDepthBits;
- data.stencilSize = pfd.cStencilBits;
- data.accumRedSize = pfd.cAccumRedBits;
- data.accumGreenSize = pfd.cAccumGreenBits;
- data.accumBlueSize = pfd.cAccumBlueBits;
- data.accumAlphaSize = pfd.cAccumAlphaBits;
- return data;
-}
-
-/**
- * Returns a boolean indicating whether the receiver's OpenGL context
- * is the current context.
- *
- * @return true if the receiver holds the current OpenGL context,
- * false otherwise
- * @exception SWTException <ul>
- * <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li>
- * <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li>
- * </ul>
- */
-public boolean isCurrent () {
- checkWidget ();
- return WGL.wglGetCurrentContext () == handle;
-}
-
-/**
- * Sets the OpenGL context associated with this GLCanvas to be the
- * current GL context.
- *
- * @exception SWTException <ul>
- * <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li>
- * <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li>
- * </ul>
- */
-public void setCurrent () {
- checkWidget ();
- if (WGL.wglGetCurrentContext () == handle) return;
- int hDC = OS.GetDC (handle);
- WGL.wglMakeCurrent (hDC, context);
- OS.ReleaseDC (handle, hDC);
-}
-
-/**
- * Swaps the front and back color buffers.
- *
- * @exception SWTException <ul>
- * <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li>
- * <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li>
- * </ul>
- */
-public void swapBuffers () {
- checkWidget ();
- int hDC = OS.GetDC (handle);
- WGL.SwapBuffers (hDC);
- OS.ReleaseDC (handle, hDC);
-}
-}
diff --git a/bundles/org.eclipse.swt.opengl/win32/org/eclipse/swt/opengl/internal/win32/LAYERPLANEDESCRIPTOR.java b/bundles/org.eclipse.swt.opengl/win32/org/eclipse/swt/opengl/internal/win32/LAYERPLANEDESCRIPTOR.java
deleted file mode 100644
index 8f674ae39e..0000000000
--- a/bundles/org.eclipse.swt.opengl/win32/org/eclipse/swt/opengl/internal/win32/LAYERPLANEDESCRIPTOR.java
+++ /dev/null
@@ -1,40 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2000, 2003 IBM Corporation and others.
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * IBM Corporation - initial API and implementation
- *******************************************************************************/
-package org.eclipse.swt.opengl.internal.win32;
-
-
-public class LAYERPLANEDESCRIPTOR {
- public short nSize;
- public short nVersion;
- public int dwFlags;
- public byte iPixelType;
- public byte cColorBits;
- public byte cRedBits;
- public byte cRedShift;
- public byte cGreenBits;
- public byte cGreenShift;
- public byte cBlueBits;
- public byte cBlueShift;
- public byte cAlphaBits;
- public byte cAlphaShift;
- public byte cAccumBits;
- public byte cAccumRedBits;
- public byte cAccumGreenBits;
- public byte cAccumBlueBits;
- public byte cAccumAlphaBits;
- public byte cDepthBits;
- public byte cStencilBits;
- public byte cAuxBuffers;
- public byte iLayerPlane;
- public byte bReserved;
- public int crTransparent;
- public static final int sizeof = 36;
-}
diff --git a/bundles/org.eclipse.swt.opengl/win32/org/eclipse/swt/opengl/internal/win32/PIXELFORMATDESCRIPTOR.java b/bundles/org.eclipse.swt.opengl/win32/org/eclipse/swt/opengl/internal/win32/PIXELFORMATDESCRIPTOR.java
deleted file mode 100644
index a817010b7e..0000000000
--- a/bundles/org.eclipse.swt.opengl/win32/org/eclipse/swt/opengl/internal/win32/PIXELFORMATDESCRIPTOR.java
+++ /dev/null
@@ -1,42 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2000, 2003 IBM Corporation and others.
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * IBM Corporation - initial API and implementation
- *******************************************************************************/
-package org.eclipse.swt.opengl.internal.win32;
-
-
-public class PIXELFORMATDESCRIPTOR {
- public short nSize;
- public short nVersion;
- public int dwFlags;
- public byte iPixelType;
- public byte cColorBits;
- public byte cRedBits;
- public byte cRedShift;
- public byte cGreenBits;
- public byte cGreenShift;
- public byte cBlueBits;
- public byte cBlueShift;
- public byte cAlphaBits;
- public byte cAlphaShift;
- public byte cAccumBits;
- public byte cAccumRedBits;
- public byte cAccumGreenBits;
- public byte cAccumBlueBits;
- public byte cAccumAlphaBits;
- public byte cDepthBits;
- public byte cStencilBits;
- public byte cAuxBuffers;
- public byte iLayerType;
- public byte bReserved;
- public int dwLayerMask;
- public int dwVisibleMask;
- public int dwDamageMask;
- public static final int sizeof = 40;
-}
diff --git a/bundles/org.eclipse.swt.opengl/win32/org/eclipse/swt/opengl/internal/win32/WGL.java b/bundles/org.eclipse.swt.opengl/win32/org/eclipse/swt/opengl/internal/win32/WGL.java
deleted file mode 100644
index 52db669747..0000000000
--- a/bundles/org.eclipse.swt.opengl/win32/org/eclipse/swt/opengl/internal/win32/WGL.java
+++ /dev/null
@@ -1,136 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2000, 2003 IBM Corporation and others.
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * IBM Corporation - initial API and implementation
- *******************************************************************************/
-package org.eclipse.swt.opengl.internal.win32;
-
-
-import org.eclipse.swt.opengl.*;
-import org.eclipse.swt.opengl.Library;
-import org.eclipse.swt.internal.win32.OS;
-
-public class WGL {
-
-static {
- Library.loadLibrary("gl");
-}
-
-public static final int WGL_FONT_LINES = 0;
-public static final int WGL_FONT_POLYGONS = 1;
-
-/* LAYERPLANEDESCRIPTOR flags */
-public static final int LPD_DOUBLEBUFFER = 0x00000001;
-public static final int LPD_STEREO = 0x00000002;
-public static final int LPD_SUPPORT_GDI = 0x00000010;
-public static final int LPD_SUPPORT_OPENGL = 0x00000020;
-public static final int LPD_SHARE_DEPTH = 0x00000040;
-public static final int LPD_SHARE_STENCIL = 0x00000080;
-public static final int LPD_SHARE_ACCUM = 0x00000100;
-public static final int LPD_SWAP_EXCHANGE = 0x00000200;
-public static final int LPD_SWAP_COPY = 0x00000400;
-public static final int LPD_TRANSPARENT = 0x00001000;
-
-public static final int LPD_TYPE_RGBA = 0;
-public static final int LPD_TYPE_COLORINDEX = 1;
-
-/* wglSwapLayerBuffers flags */
-public static final int WGL_SWAP_MAIN_PLANE = 0x00000001;
-public static final int WGL_SWAP_OVERLAY1 = 0x00000002;
-public static final int WGL_SWAP_OVERLAY2 = 0x00000004;
-public static final int WGL_SWAP_OVERLAY3 = 0x00000008;
-public static final int WGL_SWAP_OVERLAY4 = 0x00000010;
-public static final int WGL_SWAP_OVERLAY5 = 0x00000020;
-public static final int WGL_SWAP_OVERLAY6 = 0x00000040;
-public static final int WGL_SWAP_OVERLAY7 = 0x00000080;
-public static final int WGL_SWAP_OVERLAY8 = 0x00000100;
-public static final int WGL_SWAP_OVERLAY9 = 0x00000200;
-public static final int WGL_SWAP_OVERLAY10 = 0x00000400;
-public static final int WGL_SWAP_OVERLAY11 = 0x00000800;
-public static final int WGL_SWAP_OVERLAY12 = 0x00001000;
-public static final int WGL_SWAP_OVERLAY13 = 0x00002000;
-public static final int WGL_SWAP_OVERLAY14 = 0x00004000;
-public static final int WGL_SWAP_OVERLAY15 = 0x00008000;
-public static final int WGL_SWAP_UNDERLAY1 = 0x00010000;
-public static final int WGL_SWAP_UNDERLAY2 = 0x00020000;
-public static final int WGL_SWAP_UNDERLAY3 = 0x00040000;
-public static final int WGL_SWAP_UNDERLAY4 = 0x00080000;
-public static final int WGL_SWAP_UNDERLAY5 = 0x00100000;
-public static final int WGL_SWAP_UNDERLAY6 = 0x00200000;
-public static final int WGL_SWAP_UNDERLAY7 = 0x00400000;
-public static final int WGL_SWAP_UNDERLAY8 = 0x00800000;
-public static final int WGL_SWAP_UNDERLAY9 = 0x01000000;
-public static final int WGL_SWAP_UNDERLAY10 = 0x02000000;
-public static final int WGL_SWAP_UNDERLAY11 = 0x04000000;
-public static final int WGL_SWAP_UNDERLAY12 = 0x08000000;
-public static final int WGL_SWAP_UNDERLAY13 = 0x10000000;
-public static final int WGL_SWAP_UNDERLAY14 = 0x20000000;
-public static final int WGL_SWAP_UNDERLAY15 = 0x40000000;
-
-/* pixel types */
-public static final int PFD_TYPE_RGBA = 0;
-public static final int PFD_TYPE_COLORINDEX = 1;
-
-/* layer types */
-public static final int PFD_MAIN_PLANE = 0;
-public static final int PFD_OVERLAY_PLANE = 1;
-public static final int PFD_UNDERLAY_PLANE = (-1);
-
-/* PIXELFORMATDESCRIPTOR flags */
-public static final int PFD_DOUBLEBUFFER = 0x00000001;
-public static final int PFD_STEREO = 0x00000002;
-public static final int PFD_DRAW_TO_WINDOW = 0x00000004;
-public static final int PFD_DRAW_TO_BITMAP = 0x00000008;
-public static final int PFD_SUPPORT_GDI = 0x00000010;
-public static final int PFD_SUPPORT_OPENGL = 0x00000020;
-public static final int PFD_GENERIC_FORMAT = 0x00000040;
-public static final int PFD_NEED_PALETTE = 0x00000080;
-public static final int PFD_NEED_SYSTEM_PALETTE = 0x00000100;
-public static final int PFD_SWAP_EXCHANGE = 0x00000200;
-public static final int PFD_SWAP_COPY = 0x00000400;
-public static final int PFD_SWAP_LAYER_BUFFERS = 0x00000800;
-public static final int PFD_GENERIC_ACCELERATED = 0x00001000;
-public static final int PFD_SUPPORT_DIRECTDRAW = 0x00002000;
-
-/* PIXELFORMATDESCRIPTOR flags for use in ChoosePixelFormat only */
-public static final int PFD_DEPTH_DONTCARE = 0x20000000;
-public static final int PFD_DOUBLEBUFFER_DONTCARE = 0x40000000;
-public static final int PFD_STEREO_DONTCARE = 0x80000000;
-
-public static final native int ChoosePixelFormat(int hdc, PIXELFORMATDESCRIPTOR ppfd);
-public static final native int DescribePixelFormat(int hdc, int iPixelFormat, int nBytes, PIXELFORMATDESCRIPTOR ppfd);
-public static final native int GetPixelFormat(int hdc);
-public static final native boolean SetPixelFormat(int hdc, int iPixelFormat, PIXELFORMATDESCRIPTOR ppfd);
-public static final native boolean SwapBuffers(int hdc);
-public static final native boolean wglCopyContext(int hglrcSrc, int hglrcDst, int mask);
-public static final native int wglCreateContext(int hdc);
-public static final native int wglCreateLayerContext(int hdc, int iLayerPlane);
-public static final native boolean wglDeleteContext(int hglrc);
-public static final native int wglGetCurrentContext();
-public static final native int wglGetCurrentDC();
-public static final native int wglGetProcAddress(byte[] lpszProc);
-public static final native boolean wglMakeCurrent(int hdc, int hglrc);
-public static final native boolean wglShareLists(int hglrc1, int hglrc2);
-public static final native boolean wglUseFontBitmapsA(int hdc, int first, int count, int listBase);
-public static final native boolean wglUseFontBitmapsW(int hdc, int first, int count, int listBase);
-public static final boolean wglUseFontBitmaps(int hdc, int first, int count, int listBase) {
- if (OS.IsUnicode) return wglUseFontBitmapsW(hdc, first, count, listBase);
- return wglUseFontBitmapsA(hdc, first, count, listBase);
-}
-public static final native boolean wglUseFontOutlinesA(int hdc, int first, int count, int listBase, float deviation, float extrusion, int format, int lpgmf);
-public static final native boolean wglUseFontOutlinesW(int hdc, int first, int count, int listBase, float deviation, float extrusion, int format, int lpgmf);
-public static final boolean wglUseFontOutlines(int hdc, int first, int count, int listBase, float deviation, float extrusion, int format, int lpgmf) {
- if (OS.IsUnicode) return wglUseFontOutlinesW(hdc, first, count, listBase, deviation, extrusion, format, lpgmf);
- return wglUseFontOutlinesA(hdc, first, count, listBase, deviation, extrusion, format, lpgmf);
-}
-public static final native boolean wglDescribeLayerPlane(int hdc, int iPixelFormat, int iLayerPlane, int nBytes, LAYERPLANEDESCRIPTOR plpd);
-public static final native int wglSetLayerPaletteEntries(int hdc, int iLayerPlane, int iStart, int cEntries, int[] pcr);
-public static final native int wglGetLayerPaletteEntries(int hdc, int iLayerPlane, int iStart, int cEntries, int[] pcr);
-public static final native boolean wglRealizeLayerPalette(int hdc, int iLayerPlane, boolean bRealize);
-public static final native boolean wglSwapLayerBuffers(int hdc, int fuPlanes);
-}
diff --git a/bundles/org.eclipse.swt.tools/JNI Generation/org/eclipse/swt/tools/internal/org.eclipse.swt.internal.gtk.OS.properties b/bundles/org.eclipse.swt.tools/JNI Generation/org/eclipse/swt/tools/internal/org.eclipse.swt.internal.gtk.OS.properties
index e33ce9374e..6e4232d1bb 100644
--- a/bundles/org.eclipse.swt.tools/JNI Generation/org/eclipse/swt/tools/internal/org.eclipse.swt.internal.gtk.OS.properties
+++ b/bundles/org.eclipse.swt.tools/JNI Generation/org/eclipse/swt/tools/internal/org.eclipse.swt.internal.gtk.OS.properties
@@ -2717,9 +2717,6 @@ OS__gtk_init_check=
OS__gtk_init_check_0=cast=(int *)
OS__gtk_init_check_1=cast=(char ***)
-OS__gtk_label_get_layout=
-OS__gtk_label_get_layout_0=cast=(GtkLabel *)
-
OS__gtk_label_get_mnemonic_keyval=
OS__gtk_label_get_mnemonic_keyval_0=cast=GtkLabel *
@@ -4884,10 +4881,7 @@ OS__pango_layout_get_alignment=
OS__pango_layout_get_alignment_0=cast=PangoLayout*
OS__pango_layout_get_attributes=
-OS__pango_layout_get_attributes_0=cast=(PangoLayout *)
-
-OS__pango_layout_get_context=
-OS__pango_layout_get_context_0=cast=(PangoLayout *)
+OS__pango_layout_get_attributes_0=cast=PangoLayout *
OS__pango_layout_get_indent=
OS__pango_layout_get_indent_0=cast=(PangoLayout*)
diff --git a/bundles/org.eclipse.swt/Eclipse SWT PI/win32/org/eclipse/swt/internal/win32/HDHITTESTINFO.java b/bundles/org.eclipse.swt/Eclipse SWT PI/win32/org/eclipse/swt/internal/win32/HDHITTESTINFO.java
new file mode 100644
index 0000000000..359fd02a1d
--- /dev/null
+++ b/bundles/org.eclipse.swt/Eclipse SWT PI/win32/org/eclipse/swt/internal/win32/HDHITTESTINFO.java
@@ -0,0 +1,20 @@
+/*******************************************************************************
+ * Copyright (c) 2000, 2006 IBM Corporation and others.
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * IBM Corporation - initial API and implementation
+ *******************************************************************************/
+package org.eclipse.swt.internal.win32;
+
+public class HDHITTESTINFO {
+// POINT pt;
+ public int x;
+ public int y;
+ public int flags;
+ public int iItem;
+ public static int sizeof = 16;
+}
diff --git a/bundles/org.eclipse.swt/Eclipse SWT PI/win32/org/eclipse/swt/internal/win32/NMTVITEMCHANGE.java b/bundles/org.eclipse.swt/Eclipse SWT PI/win32/org/eclipse/swt/internal/win32/NMTVITEMCHANGE.java
new file mode 100644
index 0000000000..13484f1840
--- /dev/null
+++ b/bundles/org.eclipse.swt/Eclipse SWT PI/win32/org/eclipse/swt/internal/win32/NMTVITEMCHANGE.java
@@ -0,0 +1,20 @@
+/*******************************************************************************
+ * Copyright (c) 2000, 2006 IBM Corporation and others.
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * IBM Corporation - initial API and implementation
+ *******************************************************************************/
+package org.eclipse.swt.internal.win32;
+
+public class NMTVITEMCHANGE extends NMHDR {
+ public int uChanged;
+ public int hItem;
+ public int uStateNew;
+ public int uStateOld;
+ public int lParam;
+ public static int sizeof = 32;
+}
diff --git a/bundles/org.eclipse.swt.opengl/common/library/swt.c b/bundles/org.eclipse.swt/Eclipse SWT PI/win32/org/eclipse/swt/internal/win32/OFNOTIFY.java
index 6740c65109..ac210ce9b1 100644
--- a/bundles/org.eclipse.swt.opengl/common/library/swt.c
+++ b/bundles/org.eclipse.swt/Eclipse SWT PI/win32/org/eclipse/swt/internal/win32/OFNOTIFY.java
@@ -1,21 +1,17 @@
/*******************************************************************************
- * Copyright (c) 2000, 2005 IBM Corporation and others.
+ * Copyright (c) 2000, 2006 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
+ * which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
- *
+ *
* Contributors:
* IBM Corporation - initial API and implementation
*******************************************************************************/
-
-#include "swt.h"
+package org.eclipse.swt.internal.win32;
-int IS_JNI_1_2 = 0;
-
-#ifdef JNI_VERSION_1_2
-JNIEXPORT jint JNICALL JNI_OnLoad(JavaVM *vm, void *reserved) {
- IS_JNI_1_2 = 1;
- return JNI_VERSION_1_2;
+public class OFNOTIFY extends NMHDR {
+ public int lpOFN;
+ public int pszFile;
+ public static int sizeof = 20;
}
-#endif
diff --git a/bundles/org.eclipse.swt/Eclipse SWT PI/win32/org/eclipse/swt/internal/win32/PROCESS_INFORMATION.java b/bundles/org.eclipse.swt/Eclipse SWT PI/win32/org/eclipse/swt/internal/win32/PROCESS_INFORMATION.java
new file mode 100644
index 0000000000..ec2292d27b
--- /dev/null
+++ b/bundles/org.eclipse.swt/Eclipse SWT PI/win32/org/eclipse/swt/internal/win32/PROCESS_INFORMATION.java
@@ -0,0 +1,19 @@
+/*******************************************************************************
+ * Copyright (c) 2000, 2006 IBM Corporation and others.
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * IBM Corporation - initial API and implementation
+ *******************************************************************************/
+package org.eclipse.swt.internal.win32;
+
+public class PROCESS_INFORMATION {
+ public int hProcess;
+ public int hThread;
+ public int dwProcessId;
+ public int dwThreadId;
+ public static int sizeof = 16;
+}
diff --git a/bundles/org.eclipse.swt.opengl/common/org/eclipse/swt/opengl/Library.java b/bundles/org.eclipse.swt/Eclipse SWT PI/win32/org/eclipse/swt/internal/win32/SHFILEINFO.java
index 26467bcb54..760f727860 100644
--- a/bundles/org.eclipse.swt.opengl/common/org/eclipse/swt/opengl/Library.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT PI/win32/org/eclipse/swt/internal/win32/SHFILEINFO.java
@@ -8,20 +8,11 @@
* Contributors:
* IBM Corporation - initial API and implementation
*******************************************************************************/
-package org.eclipse.swt.opengl;
+package org.eclipse.swt.internal.win32;
-import org.eclipse.swt.*;
-
-public class Library {
-
-public static void loadLibrary (String name) {
- String platform = SWT.getPlatform ();
- try {
- String newName = name + '-' + platform;
- System.loadLibrary (newName);
- return;
- } catch (UnsatisfiedLinkError e1) {
- throw e1;
- }
-}
+public class SHFILEINFO {
+ public int hIcon;
+ public int iIcon;
+ public int dwAttributes;
+ public static int sizeof = OS.IsUnicode ? 692 : 352;
}
diff --git a/bundles/org.eclipse.swt.opengl/motif/org/eclipse/swt/opengl/internal/motif/XVisualInfo.java b/bundles/org.eclipse.swt/Eclipse SWT PI/win32/org/eclipse/swt/internal/win32/SHFILEINFOA.java
index 028032dce4..e79376b4e6 100644
--- a/bundles/org.eclipse.swt.opengl/motif/org/eclipse/swt/opengl/internal/motif/XVisualInfo.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT PI/win32/org/eclipse/swt/internal/win32/SHFILEINFOA.java
@@ -8,17 +8,10 @@
* Contributors:
* IBM Corporation - initial API and implementation
*******************************************************************************/
-package org.eclipse.swt.opengl.internal.motif;
+package org.eclipse.swt.internal.win32;
-
-public class XVisualInfo {
- public int visual;
- public int visualid;
- public int screen;
- public int depth;
- public int cclass;
- public int red_mask, green_mask, blue_mask;
- public int colormap_size;
- public int bits_per_rgb;
- public static final int sizeof = 40;
+public class SHFILEINFOA extends SHFILEINFO {
+ public byte [] szDisplayName = new byte [OS.MAX_PATH];
+ public byte [] szTypeName = new byte [80];
+ public static int sizeof = 352;
}
diff --git a/bundles/org.eclipse.swt.opengl/gtk/org/eclipse/swt/internal/opengl/gtk/XVisualInfo.java b/bundles/org.eclipse.swt/Eclipse SWT PI/win32/org/eclipse/swt/internal/win32/SHFILEINFOW.java
index 8f396967d4..b8b7c21ce5 100755..100644
--- a/bundles/org.eclipse.swt.opengl/gtk/org/eclipse/swt/internal/opengl/gtk/XVisualInfo.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT PI/win32/org/eclipse/swt/internal/win32/SHFILEINFOW.java
@@ -8,17 +8,10 @@
* Contributors:
* IBM Corporation - initial API and implementation
*******************************************************************************/
-package org.eclipse.swt.internal.opengl.gtk;
+package org.eclipse.swt.internal.win32;
-
-public class XVisualInfo {
- public int visual;
- public int visualid;
- public int screen;
- public int depth;
- public int cclass;
- public int red_mask, green_mask, blue_mask;
- public int colormap_size;
- public int bits_per_rgb;
- public static final int sizeof = 40;
+public class SHFILEINFOW extends SHFILEINFO {
+ public char [] szDisplayName = new char [OS.MAX_PATH];
+ public char [] szTypeName = new char [80];
+ public static int sizeof = 692;
}
diff --git a/bundles/org.eclipse.swt/Eclipse SWT PI/win32/org/eclipse/swt/internal/win32/STARTUPINFO.java b/bundles/org.eclipse.swt/Eclipse SWT PI/win32/org/eclipse/swt/internal/win32/STARTUPINFO.java
new file mode 100644
index 0000000000..41a9ede044
--- /dev/null
+++ b/bundles/org.eclipse.swt/Eclipse SWT PI/win32/org/eclipse/swt/internal/win32/STARTUPINFO.java
@@ -0,0 +1,33 @@
+/*******************************************************************************
+ * Copyright (c) 2000, 2006 IBM Corporation and others.
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * IBM Corporation - initial API and implementation
+ *******************************************************************************/
+package org.eclipse.swt.internal.win32;
+
+public class STARTUPINFO {
+ public int cb;
+ public int lpReserved;
+ public int lpDesktop;
+ public int lpTitle;
+ public int dwX;
+ public int dwY;
+ public int dwXSize;
+ public int dwYSize;
+ public int dwXCountChars;
+ public int dwYCountChars;
+ public int dwFillAttribute;
+ public int dwFlags;
+ public short wShowWindow;
+ public short cbReserved2;
+ public int lpReserved2;
+ public int hStdInput;
+ public int hStdOutput;
+ public int hStdError;
+ public static int sizeof = 17 * 4;
+}
diff --git a/bundles/org.eclipse.swt/Eclipse SWT PI/win32/org/eclipse/swt/internal/win32/SYSTEMTIME.java b/bundles/org.eclipse.swt/Eclipse SWT PI/win32/org/eclipse/swt/internal/win32/SYSTEMTIME.java
new file mode 100644
index 0000000000..a28874ea99
--- /dev/null
+++ b/bundles/org.eclipse.swt/Eclipse SWT PI/win32/org/eclipse/swt/internal/win32/SYSTEMTIME.java
@@ -0,0 +1,23 @@
+/*******************************************************************************
+ * Copyright (c) 2000, 2006 IBM Corporation and others.
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * IBM Corporation - initial API and implementation
+ *******************************************************************************/
+package org.eclipse.swt.internal.win32;
+
+public class SYSTEMTIME {
+ public short wYear;
+ public short wMonth;
+ public short wDayOfWeek;
+ public short wDay;
+ public short wHour;
+ public short wMinute;
+ public short wSecond;
+ public short wMilliseconds;
+ public static final int sizeof = 16;
+}

Back to the top