summaryrefslogtreecommitdiffstats
path: root/bundles/org.eclipse.swt/Eclipse SWT OpenGL/win32/org/eclipse/swt/internal
diff options
context:
space:
mode:
Diffstat (limited to 'bundles/org.eclipse.swt/Eclipse SWT OpenGL/win32/org/eclipse/swt/internal')
-rwxr-xr-xbundles/org.eclipse.swt/Eclipse SWT OpenGL/win32/org/eclipse/swt/internal/opengl/win32/LAYERPLANEDESCRIPTOR.java40
-rwxr-xr-xbundles/org.eclipse.swt/Eclipse SWT OpenGL/win32/org/eclipse/swt/internal/opengl/win32/PIXELFORMATDESCRIPTOR.java42
-rwxr-xr-xbundles/org.eclipse.swt/Eclipse SWT OpenGL/win32/org/eclipse/swt/internal/opengl/win32/WGL.java151
3 files changed, 0 insertions, 233 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT OpenGL/win32/org/eclipse/swt/internal/opengl/win32/LAYERPLANEDESCRIPTOR.java b/bundles/org.eclipse.swt/Eclipse SWT OpenGL/win32/org/eclipse/swt/internal/opengl/win32/LAYERPLANEDESCRIPTOR.java
deleted file mode 100755
index 49d2361d76..0000000000
--- a/bundles/org.eclipse.swt/Eclipse SWT OpenGL/win32/org/eclipse/swt/internal/opengl/win32/LAYERPLANEDESCRIPTOR.java
+++ /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
- *******************************************************************************/
-package org.eclipse.swt.internal.opengl.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/Eclipse SWT OpenGL/win32/org/eclipse/swt/internal/opengl/win32/PIXELFORMATDESCRIPTOR.java b/bundles/org.eclipse.swt/Eclipse SWT OpenGL/win32/org/eclipse/swt/internal/opengl/win32/PIXELFORMATDESCRIPTOR.java
deleted file mode 100755
index 29024643b1..0000000000
--- a/bundles/org.eclipse.swt/Eclipse SWT OpenGL/win32/org/eclipse/swt/internal/opengl/win32/PIXELFORMATDESCRIPTOR.java
+++ /dev/null
@@ -1,42 +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.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/Eclipse SWT OpenGL/win32/org/eclipse/swt/internal/opengl/win32/WGL.java b/bundles/org.eclipse.swt/Eclipse SWT OpenGL/win32/org/eclipse/swt/internal/opengl/win32/WGL.java
deleted file mode 100755
index 4904161221..0000000000
--- a/bundles/org.eclipse.swt/Eclipse SWT OpenGL/win32/org/eclipse/swt/internal/opengl/win32/WGL.java
+++ /dev/null
@@ -1,151 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2000, 2008 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.win32;
-
-import org.eclipse.swt.internal.*;
-
-public class WGL extends Platform {
- static {
- Library.loadLibrary("swt-wgl");
- }
-
- 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;
-
-/** @param hdc cast=(HDC) */
-public static final native int ChoosePixelFormat(int /*long*/ hdc, PIXELFORMATDESCRIPTOR ppfd);
-/** @param hdc cast=(HDC) */
-public static final native int DescribePixelFormat(int /*long*/ hdc, int iPixelFormat, int nBytes, PIXELFORMATDESCRIPTOR ppfd);
-/** @param hdc cast=(HDC) */
-public static final native int GetPixelFormat(int /*long*/ hdc);
-/** @param hdc cast=(HDC) */
-public static final native boolean SetPixelFormat(int /*long*/ hdc, int iPixelFormat, PIXELFORMATDESCRIPTOR ppfd);
-/** @param hdc cast=(HDC) */
-public static final native boolean SwapBuffers(int /*long*/ hdc);
-/**
- * @param hglrcSrc cast=(HGLRC)
- * @param hglrcDst cast=(HGLRC)
- */
-public static final native boolean wglCopyContext(int /*long*/ hglrcSrc, int /*long*/ hglrcDst, int mask);
-/** @param hdc cast=(HDC) */
-public static final native int /*long*/ wglCreateContext(int /*long*/ hdc);
-/** @param hdc cast=(HDC) */
-public static final native int /*long*/ wglCreateLayerContext(int /*long*/ hdc, int iLayerPlane);
-/** @param hglrc cast=(HGLRC) */
-public static final native boolean wglDeleteContext(int /*long*/ hglrc);
-public static final native int /*long*/ wglGetCurrentContext();
-public static final native int /*long*/ wglGetCurrentDC();
-public static final native int /*long*/ wglGetProcAddress(byte[] lpszProc);
-/**
- * @param hdc cast=(HDC)
- * @param hglrc cast=(HGLRC)
- */
-public static final native boolean wglMakeCurrent(int /*long*/ hdc, int /*long*/ hglrc);
-/**
- * @param hglrc1 cast=(HGLRC)
- * @param hglrc2 cast=(HGLRC)
- */
-public static final native boolean wglShareLists(int /*long*/ hglrc1, int /*long*/ hglrc2);
-/** @param hdc cast=(HDC) */
-public static final native boolean wglDescribeLayerPlane(int /*long*/ hdc, int iPixelFormat, int iLayerPlane, int nBytes, LAYERPLANEDESCRIPTOR plpd);
-/**
- * @param hdc cast=(HDC)
- * @param pcr cast=(COLORREF *)
- */
-public static final native int wglSetLayerPaletteEntries(int /*long*/ hdc, int iLayerPlane, int iStart, int cEntries, int[] pcr);
-/**
- * @param hdc cast=(HDC)
- * @param pcr cast=(COLORREF *)
- */
-public static final native int wglGetLayerPaletteEntries(int /*long*/ hdc, int iLayerPlane, int iStart, int cEntries, int[] pcr);
-/** @param hdc cast=(HDC) */
-public static final native boolean wglRealizeLayerPalette(int /*long*/ hdc, int iLayerPlane, boolean bRealize);
-/** @param hdc cast=(HDC) */
-public static final native boolean wglSwapLayerBuffers(int /*long*/ hdc, int fuPlanes);
-}