diff options
author | Billy Biggs <bbiggs> | 2005-09-12 19:18:54 +0000 |
---|---|---|
committer | Billy Biggs <bbiggs> | 2005-09-12 19:18:54 +0000 |
commit | 77b3fbb225bf670e0c417bef815fb7c859299e19 (patch) | |
tree | b426277a562f5fd66b9fcfb45d20081df799dc0c /bundles/org.eclipse.swt.opengl | |
parent | 8d760222238ab1b6818bb0321d0416a8678a608d (diff) | |
download | eclipse.platform.swt-77b3fbb225bf670e0c417bef815fb7c859299e19.tar.gz eclipse.platform.swt-77b3fbb225bf670e0c417bef815fb7c859299e19.tar.xz eclipse.platform.swt-77b3fbb225bf670e0c417bef815fb7c859299e19.zip |
Remove half-baked files.
Diffstat (limited to 'bundles/org.eclipse.swt.opengl')
-rwxr-xr-x | bundles/org.eclipse.swt.opengl/carbon/library/build.sh | 29 | ||||
-rw-r--r-- | bundles/org.eclipse.swt.opengl/carbon/org/eclipse/swt/opengl/GLPBuffer.java | 51 |
2 files changed, 0 insertions, 80 deletions
diff --git a/bundles/org.eclipse.swt.opengl/carbon/library/build.sh b/bundles/org.eclipse.swt.opengl/carbon/library/build.sh deleted file mode 100755 index dc26d12412..0000000000 --- a/bundles/org.eclipse.swt.opengl/carbon/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/carbon/org/eclipse/swt/opengl/GLPBuffer.java b/bundles/org.eclipse.swt.opengl/carbon/org/eclipse/swt/opengl/GLPBuffer.java deleted file mode 100644 index 53ebf1c7c1..0000000000 --- a/bundles/org.eclipse.swt.opengl/carbon/org/eclipse/swt/opengl/GLPBuffer.java +++ /dev/null @@ -1,51 +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.*; - -public class GLPBuffer { - int glContext; - static final int MAX_ATTRIBUTES = 32; - -public GLPBuffer (int width, int height, GLFormatData attributes) { - if (attributes == null) SWT.error (SWT.ERROR_NULL_ARGUMENT); - int aglAttrib [] = new int [MAX_ATTRIBUTES]; - int pos = 0; - aglAttrib [pos++] = 4; - aglAttrib [pos++] = 5; - aglAttrib [pos++] = 12; - aglAttrib [pos++] = 16; - aglAttrib [pos++] = 0; - int pixelFormat = AGL.aglChoosePixelFormat(0, 0, aglAttrib); - glContext = AGL.aglCreateContext(pixelFormat, 0); - //create the pbuffer for this context - -// System.out.println("context: " + glContext); -// int window = OS.GetControlOwner(handle); -// int port = OS.GetWindowPort(window); -// System.out.println("setdrawable: " + AGL.aglSetDrawable(glContext, port)); -} - -public boolean isCurrent () { - return AGL.aglGetCurrentContext () == glContext; -} - -public void setCurrent () { - if (AGL.aglGetCurrentContext () == glContext) return; - AGL.aglSetCurrentContext (glContext); -} - -} |