removed old eclipse bundle build

This commit is contained in:
Jens von Pilgrim 2011-03-30 09:02:50 +00:00
parent 8b1e7293ca
commit 48eccdc614
47 changed files with 0 additions and 2008 deletions

View File

@ -1,11 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>org.lwjgl.eclipseplugins</name>
<comment></comment>
<projects>
</projects>
<buildSpec>
</buildSpec>
<natures>
</natures>
</projectDescription>

View File

@ -1,77 +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">
<img src="lwjgl_logo.png" align="right"/>
<h2>About This Content</h2>
<p>The <a href="http://lwjgl.org">Lightweight Java Game Library (LWJGL)</a> is a solution aimed
directly at professional and amateur Java programmers alike to enable <a
href="projects.php">commercial quality games</a> to be written in Java.
LWJGL provides developers access to high performance crossplatform
libraries such as OpenGL (<a href="http://www.opengl.org/"
target="_blank">Open Graphics Library</a>) and OpenAL (<a
href="http://www.openal.org" target="_blank">Open Audio Library</a>)
allowing for state of the art 3D games and 3D sound. Additionally LWJGL
provides access to controllers such as Gamepads, Steering wheel and
Joysticks. All in a simple and straight forward API.</p>
<p>LWJGL is not meant to make writing games particularly easy; it is
primarily an enabling technology which allows developers to get at
resources that are simply otherwise unavailable or poorly implemented on
the existing <a href="http://java.sun.com" target="_blank">Java
platform</a>. We anticipate that the LWJGL will, through evolution and
extension, become the foundation for more complete game libraries and
"game engines" as they have popularly become known, and hide some of the
new evils we have had to expose in the APIs.</p>
<p>LWJGL is available under a <a href="http://lwjgl.org/license.php">BSD
license</a>, which means it's open source and freely available at no charge.</p>
<p>Please visit us on the Freenode IRC Network: <a
href="irc://irc.freenode.net/lwjgl" target="_blank">#LWJGL</a>. Do idle
if there is no one to answer any of your questions, we are on different
timezones.</p>
<h3>Plugin assembly</h3>
<p>The plugins were assembled by Jens von Pilgrim (developer@jevopi.de). All files related to this assembly, such as manifest files or plugin descriptors, are copyright under the Eclipse Public License (EPL) and the BSD license</p>
<h3>Third party code</h3>
<h4>IBM</h4>
<p>The LWJGL Textview contains code copyright under the Eclipse Public License (EPL):<br/>
<pre>
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
<a href="http://www.eclipse.org/legal/epl-v10.html">http://www.eclipse.org/legal/epl-v10.html</a>
</pre>
The source of this code can be found at:
<a href="http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet195.java?view=markup&content-type=text%2Fvnd.viewcvs-markup&revision=HEAD">http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet195.java?view=markup&content-type=text%2Fvnd.viewcvs-markup&revision=HEAD</a>
</p>
<h4>MESA</h4>
<p>
LWJGL contains code copyright under Mesa (MIT) License. Copyright (C) 1999-2006 Brian Paul All Rights Reserved.
</p>
<h4>Lev Povalahev</h4>
<p>
LWJGL contains code copyright under BSD License. Copyright (c) 2002, Lev Povalahev
</p>
<h3>Third party code used for building the update site</h3>
<p>The build system is based on Apache ANT. In order to build all plugins, features and the updatesite, some third-party ant tasks are required.</p>
<h4>Eclipse Packages</h4>
<p>ecj.jar and org.eclipse.osgi.jar are used for compiling the test view. These two files are copyright under the Eclipse Public License (EPL). </p>
<h4>Ant4Eclipse</h4>
<p>This ant task is copyright under the Sun Public License, see <a href="http://www.opensource.org/licenses/sunpublic.php">http://www.opensource.org/licenses/sunpublic.php</a>.</p>
<h4>Packagelist</h4>
<p>This ant tasks was created by Jens von Pilgrim, it is copyright under the Eclipse Public License (EPL) and the BSD license.</p>
</body>
</html>

View File

@ -1,217 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
Call with
ant -Dversion=1.9.1 dist
(C) 2008 Jens von Pilgrim, developer@jevopi.de
-->
<project default="help" basedir="." name="">
<property name="eclipse.install" value="D:\Development\eclipse" />
<property name="eclipse.updatesite" value="http://www.lwjgl.org/update/" />
<property name="bundle.vendor" value="LWJGL.org" />
<taskdef name="packagelist" classname="de.jevopi.ant.PackageList" >
<classpath>
<pathelement location="./anttasks/packagelist.jar"/>
</classpath>
</taskdef>
<taskdef resource="net/sf/ant4eclipse/antlib.xml">
<classpath>
<pathelement location="./anttasks/ant4eclipse-0.5.0.rc1.jar"/>
<pathelement location="./anttasks/ecj.jar"/>
<pathelement location="./anttasks/org.eclipse.osgi_3.2.0.v20060601.jar"/>
</classpath>
</taskdef>
<property name="version" value="unknown" />
<property name="archives.dir" value="lwjgl-archives/${version}" />
<property name="skeletons.dir" value="plugin-skeletons" />
<property name="build.path" value="build" />
<property name="build.temp" value="${build.path}/temp" />
<property name="build.plugins" value="${build.path}/plugins" />
<property name="lwjgl.zip" value="lwjgl-${version}.zip" />
<property name="lwjgl_docs.zip" value="lwjgl-docs-${version}.zip" />
<property name="lwjgl_source.zip" value="lwjgl-source-${version}.zip" />
<property name="lwjgl.dir" value="${build.temp}/lwjgl-${version}" />
<property name="lwjgl_docs.dir" value="${build.temp}/javadoc" />
<property name="lwjgl_source.dir" value="${build.temp}/src" />
<property name="NL" value="&#10;" />
<target name="init">
<echo>Building plugins for version ${version}</echo>
</target>
<target name="dist" depends="init" >
<mkdir dir="${build.temp}" />
<!-- Copy sekeletons -->
<mkdir dir="${build.plugins}" />
<copy todir="${build.plugins}">
<fileset dir="${skeletons.dir}" />
</copy>
<!-- Build plugin org.lwjgl -->
<unzip src="${archives.dir}/${lwjgl.zip}" dest="${build.temp}" />
<copy todir="${build.plugins}/org.lwjgl/native">
<fileset dir="${lwjgl.dir}/native" />
</copy>
<copy todir="${build.plugins}/org.lwjgl/">
<fileset dir="${lwjgl.dir}/jar"/>
</copy>
<copy todir="${build.plugins}/org.lwjgl/doc">
<fileset dir="${lwjgl.dir}/doc" />
</copy>
<packagelist property="bundle.export-package" pathsep=",${NL} ">
<fileset dir="${lwjgl.dir}/jar"/>
<patternset>
<exclude name="**/test/**" />
<exclude name="**/examples/**" />
</patternset>
</packagelist>
<pathconvert property="bundle.classpath.jars" pathsep=",${NL} ">
<map from="${basedir}/${lwjgl.dir}/jar/" to="" />
<fileset dir="${lwjgl.dir}/jar" />
</pathconvert>
<!-- not using manifest task, since manifest wraps at the wrong positions -->
<echo file="${build.plugins}/org.lwjgl/META-INF/MANIFEST.MF" encoding="UTF-8">Manifest-Version: 1.0
Bundle-ManifestVersion: 2
Bundle-Name: LWJGL Lightweight Java Game Library
Bundle-SymbolicName: org.lwjgl
Bundle-Version: ${version}
Bundle-Activator: org.lwjgl.Activator
Bundle-Localization: plugin
Require-Bundle: org.eclipse.core.runtime
Eclipse-LazyStart: true
Bundle-Vendor: ${bundle.vendor}
Export-Package: ${bundle.export-package}
Bundle-ClassPath: ${bundle.classpath.jars},${NL} .
</echo>
<!-- Build plugin org.lwjgl.doc -->
<copy file="${archives.dir}/${lwjgl_docs.zip}" tofile="${build.plugins}/org.lwjgl.doc/doc.zip" />
<echo file="${build.plugins}/org.lwjgl.doc/META-INF/MANIFEST.MF" encoding="UTF-8">Manifest-Version: 1.0
Bundle-ManifestVersion: 2
Bundle-Name: LWJGL Documentation
Bundle-SymbolicName: org.lwjgl.doc;singleton:=true
Bundle-Version: ${version}
Bundle-Localization: plugin
Require-Bundle: org.eclipse.help;bundle-version="[3.2.0,4.0.0)"
Eclipse-LazyStart: true
Bundle-Vendor: ${bundle.vendor}
</echo>
<!-- Build plugin org.lwjgl.source -->
<unzip src="${archives.dir}/${lwjgl_source.zip}" dest="${build.temp}" />
<!-- Build src zips for plugin org.lwjgl -->
<property name="org.lwjgl.src.dir" value="${build.plugins}/org.lwjgl.source/src/org.lwjgl_${version}" />
<mkdir dir="${org.lwjgl.src.dir}" />
<zip destfile="${org.lwjgl.src.dir}/lwjglsrc.zip">
<fileset dir="${lwjgl_source.dir}/generated" />
<fileset dir="${lwjgl_source.dir}/java">
<exclude name="org/lwjgl/util/**" />
</fileset>
</zip>
<zip destfile="${org.lwjgl.src.dir}/lwjgl_utilsrc.zip">
<fileset dir="${lwjgl_source.dir}/java">
<include name="org/lwjgl/util/**" />
<exclude name="org/lwjgl/util/applet/**" />
</fileset>
</zip>
<zip destfile="${org.lwjgl.src.dir}/lwjgl_util_applet.zip">
<fileset dir="${lwjgl_source.dir}/java">
<include name="org/lwjgl/util/applet/**" />
</fileset>
</zip>
<!-- Build manfest -->
<!-- not using manifest task, since manifest wraps at the wrong positions -->
<echo file="${build.plugins}/org.lwjgl.source/META-INF/MANIFEST.MF" encoding="UTF-8">Manifest-Version: 1.0
Bundle-ManifestVersion: 2
Bundle-Name: LWJGL Sources
Bundle-SymbolicName: org.lwjgl.source;singleton:=true
Bundle-Version: ${version}
Bundle-Localization: plugin
Bundle-Vendor: ${bundle.vendor}
</echo>
<!-- Build plugin org.lwjgl.test -->
<echo file="${build.plugins}/org.lwjgl.test/META-INF/MANIFEST.MF" encoding="UTF-8">Manifest-Version: 1.0
Bundle-ManifestVersion: 2
Bundle-Name: LWJGL TestView
Bundle-SymbolicName: org.lwjgl.test;singleton:=true
Bundle-Version: ${version}
Bundle-Localization: plugin
Require-Bundle: org.eclipse.ui,
org.eclipse.core.runtime,
org.eclipse.ui.views,
org.eclipse.core.resources,
org.lwjgl;bundle-version="${version}"
Bundle-Vendor: ${bundle.vendor}
</echo>
<!-- Build org.lwjgl.feature -->
<copy file="${skeletons.dir}/org.lwjgl.feature/feature.xml"
tofile="${build.plugins}/org.lwjgl.feature/feature.xml"
encoding="UTF-8" overwrite="true">
<filterset>
<filter token="VERSION" value="${version}" />
<filter token="PROVIDERNAME" value="${bundle.vendor}" />
<filter token="UPDATEURL" value="${eclipse.updatesite}" />
</filterset>
</copy>
<!-- Build update site -->
<copy file="${skeletons.dir}/org.lwjgl.updatesite/site.xml"
tofile="${build.plugins}/org.lwjgl.updatesite/site.xml"
encoding="UTF-8" overwrite="true">
<filterset>
<filter token="VERSION" value="${version}" />
<filter token="PROVIDERNAME" value="${bundle.vendor}" />
<filter token="UPDATEURL" value="${eclipse.updatesite}" />
</filterset>
</copy>
<!-- Eclipse build -->
<buildFeature
workspace="${build.plugins}"
targetPlatformLocation="${eclipse.install}"
projectname="org.lwjgl.feature"
buildPluginTarget="buildPlugin"
destDir="${build.plugins}/org.lwjgl.updatesite"
packageAsJar="true"/>
</target>
<target name="buildPlugin">
<echo>Build Plugin ${plugin.id}, Version ${plugin.version}</echo>
<buildPlugin
workspace="${build.plugins}"
targetPlatformLocation="${eclipse.install}"
projectname="${plugin.id}"
destDir="${build.plugins}/org.lwjgl.updatesite"
packageAsJar="true">
<eclipseLibraryCompiler/>
</buildPlugin>
</target>
<target name="clean">
<delete dir="${build.path}" />
</target>
<target name="help">
<echo>Call this build with version number and target dist, e.g.</echo>
<echo> ant -Dversion=1.1.2 dist</echo>
</target>
</project>

View File

@ -1,22 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>org.lwjgl.doc</name>
<comment></comment>
<projects>
</projects>
<buildSpec>
<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.pde.PluginNature</nature>
</natures>
</projectDescription>

View File

@ -1,77 +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">
<img src="lwjgl_logo.png" align="right"/>
<h2>About This Content</h2>
<p>The <a href="http://lwjgl.org">Lightweight Java Game Library (LWJGL)</a> is a solution aimed
directly at professional and amateur Java programmers alike to enable <a
href="projects.php">commercial quality games</a> to be written in Java.
LWJGL provides developers access to high performance crossplatform
libraries such as OpenGL (<a href="http://www.opengl.org/"
target="_blank">Open Graphics Library</a>) and OpenAL (<a
href="http://www.openal.org" target="_blank">Open Audio Library</a>)
allowing for state of the art 3D games and 3D sound. Additionally LWJGL
provides access to controllers such as Gamepads, Steering wheel and
Joysticks. All in a simple and straight forward API.</p>
<p>LWJGL is not meant to make writing games particularly easy; it is
primarily an enabling technology which allows developers to get at
resources that are simply otherwise unavailable or poorly implemented on
the existing <a href="http://java.sun.com" target="_blank">Java
platform</a>. We anticipate that the LWJGL will, through evolution and
extension, become the foundation for more complete game libraries and
"game engines" as they have popularly become known, and hide some of the
new evils we have had to expose in the APIs.</p>
<p>LWJGL is available under a <a href="http://lwjgl.org/license.php">BSD
license</a>, which means it's open source and freely available at no charge.</p>
<p>Please visit us on the Freenode IRC Network: <a
href="irc://irc.freenode.net/lwjgl" target="_blank">#LWJGL</a>. Do idle
if there is no one to answer any of your questions, we are on different
timezones.</p>
<h3>Plugin assembly</h3>
<p>The plugins were assembled by Jens von Pilgrim (developer@jevopi.de). All files related to this assembly, such as manifest files or plugin descriptors, are copyright under the Eclipse Public License (EPL) and the BSD license</p>
<h3>Third party code</h3>
<h4>IBM</h4>
<p>The LWJGL Textview contains code copyright under the Eclipse Public License (EPL):<br/>
<pre>
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
<a href="http://www.eclipse.org/legal/epl-v10.html">http://www.eclipse.org/legal/epl-v10.html</a>
</pre>
The source of this code can be found at:
<a href="http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet195.java?view=markup&content-type=text%2Fvnd.viewcvs-markup&revision=HEAD">http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet195.java?view=markup&content-type=text%2Fvnd.viewcvs-markup&revision=HEAD</a>
</p>
<h4>MESA</h4>
<p>
LWJGL contains code copyright under Mesa (MIT) License. Copyright (C) 1999-2006 Brian Paul All Rights Reserved.
</p>
<h4>Lev Povalahev</h4>
<p>
LWJGL contains code copyright under BSD License. Copyright (c) 2002, Lev Povalahev
</p>
<h3>Third party code used for building the update site</h3>
<p>The build system is based on Apache ANT. In order to build all plugins, features and the updatesite, some third-party ant tasks are required.</p>
<h4>Eclipse Packages</h4>
<p>ecj.jar and org.eclipse.osgi.jar are used for compiling the test view. These two files are copyright under the Eclipse Public License (EPL). </p>
<h4>Ant4Eclipse</h4>
<p>This ant task is copyright under the Sun Public License, see <a href="http://www.opensource.org/licenses/sunpublic.php">http://www.opensource.org/licenses/sunpublic.php</a>.</p>
<h4>Packagelist</h4>
<p>This ant tasks was created by Jens von Pilgrim, it is copyright under the Eclipse Public License (EPL) and the BSD license.</p>
</body>
</html>

View File

@ -1,17 +0,0 @@
bin.includes = META-INF/,\
plugin.xml,\
doc_api.zip,\
toc.xml,\
build.properties,\
.project,\
about.html,\
lwjgl_logo.png,\
doc.zip
src.includes = .project,\
META-INF/,\
about.html,\
build.properties,\
doc.zip,\
lwjgl_logo.png,\
plugin.xml,\
toc.xml

Binary file not shown.

Before

Width:  |  Height:  |  Size: 24 KiB

View File

@ -1,30 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<?eclipse version="3.2"?>
<plugin>
- <extension point="org.eclipse.help.toc">
<toc file="toc.xml" primary="true" />
<index path="index" />
</extension>
- <!-- =============================
-->
- <!-- Define TOCs
-->
- <!-- =============================
-->
- <extension point="org.eclipse.help.toc">
<toc file="toc.xml" />
</extension>
- <!-- =============================
-->
- <!-- Define Javadoc locations
-->
- <!-- =============================
-->
- <extension point="org.eclipse.pde.core.javadoc">
<javadoc path="doc.zip!/javadoc/" archive="true">
<plugin id="org.lwjgl"/>
</javadoc>
</extension>
</plugin>

View File

@ -1,8 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<?NLS TYPE="org.eclipse.help.toc"?>
<toc label="LWJGL Documentation">
<topic label="API Reference" href="javadoc/index.html"/>
<topic label="LWJGL Website (extern)" href="http://lwjgl.org" />
<topic label="LWJGL Wiki (extern)" href="http://lwjgl.org/wiki/doku.php" />
</toc>

View File

@ -1,17 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>org.lwjgl.feature</name>
<comment></comment>
<projects>
</projects>
<buildSpec>
<buildCommand>
<name>org.eclipse.pde.FeatureBuilder</name>
<arguments>
</arguments>
</buildCommand>
</buildSpec>
<natures>
<nature>org.eclipse.pde.FeatureNature</nature>
</natures>
</projectDescription>

View File

@ -1,77 +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">
<img src="lwjgl_logo.png" align="right"/>
<h2>About This Content</h2>
<p>The <a href="http://lwjgl.org">Lightweight Java Game Library (LWJGL)</a> is a solution aimed
directly at professional and amateur Java programmers alike to enable <a
href="projects.php">commercial quality games</a> to be written in Java.
LWJGL provides developers access to high performance crossplatform
libraries such as OpenGL (<a href="http://www.opengl.org/"
target="_blank">Open Graphics Library</a>) and OpenAL (<a
href="http://www.openal.org" target="_blank">Open Audio Library</a>)
allowing for state of the art 3D games and 3D sound. Additionally LWJGL
provides access to controllers such as Gamepads, Steering wheel and
Joysticks. All in a simple and straight forward API.</p>
<p>LWJGL is not meant to make writing games particularly easy; it is
primarily an enabling technology which allows developers to get at
resources that are simply otherwise unavailable or poorly implemented on
the existing <a href="http://java.sun.com" target="_blank">Java
platform</a>. We anticipate that the LWJGL will, through evolution and
extension, become the foundation for more complete game libraries and
"game engines" as they have popularly become known, and hide some of the
new evils we have had to expose in the APIs.</p>
<p>LWJGL is available under a <a href="http://lwjgl.org/license.php">BSD
license</a>, which means it's open source and freely available at no charge.</p>
<p>Please visit us on the Freenode IRC Network: <a
href="irc://irc.freenode.net/lwjgl" target="_blank">#LWJGL</a>. Do idle
if there is no one to answer any of your questions, we are on different
timezones.</p>
<h3>Plugin assembly</h3>
<p>The plugins were assembled by Jens von Pilgrim (developer@jevopi.de). All files related to this assembly, such as manifest files or plugin descriptors, are copyright under the Eclipse Public License (EPL) and the BSD license</p>
<h3>Third party code</h3>
<h4>IBM</h4>
<p>The LWJGL Textview contains code copyright under the Eclipse Public License (EPL):<br/>
<pre>
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
<a href="http://www.eclipse.org/legal/epl-v10.html">http://www.eclipse.org/legal/epl-v10.html</a>
</pre>
The source of this code can be found at:
<a href="http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet195.java?view=markup&content-type=text%2Fvnd.viewcvs-markup&revision=HEAD">http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet195.java?view=markup&content-type=text%2Fvnd.viewcvs-markup&revision=HEAD</a>
</p>
<h4>MESA</h4>
<p>
LWJGL contains code copyright under Mesa (MIT) License. Copyright (C) 1999-2006 Brian Paul All Rights Reserved.
</p>
<h4>Lev Povalahev</h4>
<p>
LWJGL contains code copyright under BSD License. Copyright (c) 2002, Lev Povalahev
</p>
<h3>Third party code used for building the update site</h3>
<p>The build system is based on Apache ANT. In order to build all plugins, features and the updatesite, some third-party ant tasks are required.</p>
<h4>Eclipse Packages</h4>
<p>ecj.jar and org.eclipse.osgi.jar are used for compiling the test view. These two files are copyright under the Eclipse Public License (EPL). </p>
<h4>Ant4Eclipse</h4>
<p>This ant task is copyright under the Sun Public License, see <a href="http://www.opensource.org/licenses/sunpublic.php">http://www.opensource.org/licenses/sunpublic.php</a>.</p>
<h4>Packagelist</h4>
<p>This ant tasks was created by Jens von Pilgrim, it is copyright under the Eclipse Public License (EPL) and the BSD license.</p>
</body>
</html>

View File

@ -1,2 +0,0 @@
bin.includes = feature.xml,\
lwjgl_logo.png

View File

@ -1,89 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<feature
id="org.lwjgl"
label="LWJGL Feature"
version="@VERSION@"
provider-name="@PROVIDERNAME@"
image="lwjgl_logo.png">
<description>This feature provides easy access to the
Lightweight Java Game Library (LWJGL)
for Eclipse plugin developers. It includes
- java and native libraries (Windows, Mac OS X, Linux)
- source code
- javadoc
- test plugin (Window/Show View/Other/Others/LWJGL Test View)
Feature and plugins were created by Jens von Pilgrim at FernUniversitaet
in Hagen
</description>
<copyright url="http://lwjgl.org/credits.php">
Copyright (c) 2002-2008 Lightweight Java Game Library Project
All rights reserved.
LWJGL is available under a BSD license, which means it&apos;s open
source and freely available at no charge.
</copyright>
<license url="http://lwjgl.org/license.php">
Copyright (c) 2002-2008 Lightweight Java Game Library Project
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are
met:
* Redistributions of source code must retain the above copyright
notice, this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright
notice, this list of conditions and the following disclaimer in the
documentation and/or other materials provided with the distribution.
* Neither the name of &apos;Light Weight Java Game Library&apos; nor the names of
its contributors may be used to endorse or promote products derived
from this software without specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
&quot;AS IS&quot; AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
</license>
<url>
<update label="Gef3D Update Site" url="@UPDATEURL@"/>
<discovery label="Home of the Lightweight Java Game Library" url="http://lwjgl.org/index.php"/>
</url>
<plugin
id="org.lwjgl"
download-size="1560"
install-size="3796"
version="@VERSION@"/>
<plugin
id="org.lwjgl.doc"
download-size="1377"
install-size="1560"
version="@VERSION@"/>
<plugin
id="org.lwjgl.source"
download-size="774"
install-size="860"
version="@VERSION@"/>
<plugin
id="org.lwjgl.test"
download-size="34"
install-size="96"
version="@VERSION@"/>
</feature>

Binary file not shown.

Before

Width:  |  Height:  |  Size: 24 KiB

View File

@ -1,22 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>org.lwjgl.source</name>
<comment></comment>
<projects>
</projects>
<buildSpec>
<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.pde.PluginNature</nature>
</natures>
</projectDescription>

View File

@ -1,77 +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">
<img src="lwjgl_logo.png" align="right"/>
<h2>About This Content</h2>
<p>The <a href="http://lwjgl.org">Lightweight Java Game Library (LWJGL)</a> is a solution aimed
directly at professional and amateur Java programmers alike to enable <a
href="projects.php">commercial quality games</a> to be written in Java.
LWJGL provides developers access to high performance crossplatform
libraries such as OpenGL (<a href="http://www.opengl.org/"
target="_blank">Open Graphics Library</a>) and OpenAL (<a
href="http://www.openal.org" target="_blank">Open Audio Library</a>)
allowing for state of the art 3D games and 3D sound. Additionally LWJGL
provides access to controllers such as Gamepads, Steering wheel and
Joysticks. All in a simple and straight forward API.</p>
<p>LWJGL is not meant to make writing games particularly easy; it is
primarily an enabling technology which allows developers to get at
resources that are simply otherwise unavailable or poorly implemented on
the existing <a href="http://java.sun.com" target="_blank">Java
platform</a>. We anticipate that the LWJGL will, through evolution and
extension, become the foundation for more complete game libraries and
"game engines" as they have popularly become known, and hide some of the
new evils we have had to expose in the APIs.</p>
<p>LWJGL is available under a <a href="http://lwjgl.org/license.php">BSD
license</a>, which means it's open source and freely available at no charge.</p>
<p>Please visit us on the Freenode IRC Network: <a
href="irc://irc.freenode.net/lwjgl" target="_blank">#LWJGL</a>. Do idle
if there is no one to answer any of your questions, we are on different
timezones.</p>
<h3>Plugin assembly</h3>
<p>The plugins were assembled by Jens von Pilgrim (developer@jevopi.de). All files related to this assembly, such as manifest files or plugin descriptors, are copyright under the Eclipse Public License (EPL) and the BSD license</p>
<h3>Third party code</h3>
<h4>IBM</h4>
<p>The LWJGL Textview contains code copyright under the Eclipse Public License (EPL):<br/>
<pre>
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
<a href="http://www.eclipse.org/legal/epl-v10.html">http://www.eclipse.org/legal/epl-v10.html</a>
</pre>
The source of this code can be found at:
<a href="http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet195.java?view=markup&content-type=text%2Fvnd.viewcvs-markup&revision=HEAD">http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet195.java?view=markup&content-type=text%2Fvnd.viewcvs-markup&revision=HEAD</a>
</p>
<h4>MESA</h4>
<p>
LWJGL contains code copyright under Mesa (MIT) License. Copyright (C) 1999-2006 Brian Paul All Rights Reserved.
</p>
<h4>Lev Povalahev</h4>
<p>
LWJGL contains code copyright under BSD License. Copyright (c) 2002, Lev Povalahev
</p>
<h3>Third party code used for building the update site</h3>
<p>The build system is based on Apache ANT. In order to build all plugins, features and the updatesite, some third-party ant tasks are required.</p>
<h4>Eclipse Packages</h4>
<p>ecj.jar and org.eclipse.osgi.jar are used for compiling the test view. These two files are copyright under the Eclipse Public License (EPL). </p>
<h4>Ant4Eclipse</h4>
<p>This ant task is copyright under the Sun Public License, see <a href="http://www.opensource.org/licenses/sunpublic.php">http://www.opensource.org/licenses/sunpublic.php</a>.</p>
<h4>Packagelist</h4>
<p>This ant tasks was created by Jens von Pilgrim, it is copyright under the Eclipse Public License (EPL) and the BSD license.</p>
</body>
</html>

View File

@ -1,10 +0,0 @@
bin.includes = META-INF/,\
about.html,\
lwjgl_logo.png,\
plugin.xml,\
src/
src.includes = src/,\
lwjgl_logo.png,\
about.html,\
plugin.xml,\
META-INF/

Binary file not shown.

Before

Width:  |  Height:  |  Size: 24 KiB

View File

@ -1,8 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<?eclipse version="3.2"?>
<plugin>
<extension
point="org.eclipse.pde.core.source">
<location path="src" />
</extension>
</plugin>

View File

@ -1,7 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry kind="src" path="src/java"/>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
<classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/>
<classpathentry kind="output" path="build/classes"/>
</classpath>

View File

@ -1,28 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>org.lwjgl.test</name>
<comment></comment>
<projects>
</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.pde.PluginNature</nature>
<nature>org.eclipse.jdt.core.javanature</nature>
</natures>
</projectDescription>

View File

@ -1,12 +0,0 @@
#Thu Sep 13 13:53:08 CEST 2007
eclipse.preferences.version=1
org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.5
org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve
org.eclipse.jdt.core.compiler.compliance=1.5
org.eclipse.jdt.core.compiler.debug.lineNumber=generate
org.eclipse.jdt.core.compiler.debug.localVariable=generate
org.eclipse.jdt.core.compiler.debug.sourceFile=generate
org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
org.eclipse.jdt.core.compiler.source=1.5

View File

@ -1,77 +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">
<img src="lwjgl_logo.png" align="right"/>
<h2>About This Content</h2>
<p>The <a href="http://lwjgl.org">Lightweight Java Game Library (LWJGL)</a> is a solution aimed
directly at professional and amateur Java programmers alike to enable <a
href="projects.php">commercial quality games</a> to be written in Java.
LWJGL provides developers access to high performance crossplatform
libraries such as OpenGL (<a href="http://www.opengl.org/"
target="_blank">Open Graphics Library</a>) and OpenAL (<a
href="http://www.openal.org" target="_blank">Open Audio Library</a>)
allowing for state of the art 3D games and 3D sound. Additionally LWJGL
provides access to controllers such as Gamepads, Steering wheel and
Joysticks. All in a simple and straight forward API.</p>
<p>LWJGL is not meant to make writing games particularly easy; it is
primarily an enabling technology which allows developers to get at
resources that are simply otherwise unavailable or poorly implemented on
the existing <a href="http://java.sun.com" target="_blank">Java
platform</a>. We anticipate that the LWJGL will, through evolution and
extension, become the foundation for more complete game libraries and
"game engines" as they have popularly become known, and hide some of the
new evils we have had to expose in the APIs.</p>
<p>LWJGL is available under a <a href="http://lwjgl.org/license.php">BSD
license</a>, which means it's open source and freely available at no charge.</p>
<p>Please visit us on the Freenode IRC Network: <a
href="irc://irc.freenode.net/lwjgl" target="_blank">#LWJGL</a>. Do idle
if there is no one to answer any of your questions, we are on different
timezones.</p>
<h3>Plugin assembly</h3>
<p>The plugins were assembled by Jens von Pilgrim (developer@jevopi.de). All files related to this assembly, such as manifest files or plugin descriptors, are copyright under the Eclipse Public License (EPL) and the BSD license</p>
<h3>Third party code</h3>
<h4>IBM</h4>
<p>The LWJGL Textview contains code copyright under the Eclipse Public License (EPL):<br/>
<pre>
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
<a href="http://www.eclipse.org/legal/epl-v10.html">http://www.eclipse.org/legal/epl-v10.html</a>
</pre>
The source of this code can be found at:
<a href="http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet195.java?view=markup&content-type=text%2Fvnd.viewcvs-markup&revision=HEAD">http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet195.java?view=markup&content-type=text%2Fvnd.viewcvs-markup&revision=HEAD</a>
</p>
<h4>MESA</h4>
<p>
LWJGL contains code copyright under Mesa (MIT) License. Copyright (C) 1999-2006 Brian Paul All Rights Reserved.
</p>
<h4>Lev Povalahev</h4>
<p>
LWJGL contains code copyright under BSD License. Copyright (c) 2002, Lev Povalahev
</p>
<h3>Third party code used for building the update site</h3>
<p>The build system is based on Apache ANT. In order to build all plugins, features and the updatesite, some third-party ant tasks are required.</p>
<h4>Eclipse Packages</h4>
<p>ecj.jar and org.eclipse.osgi.jar are used for compiling the test view. These two files are copyright under the Eclipse Public License (EPL). </p>
<h4>Ant4Eclipse</h4>
<p>This ant task is copyright under the Sun Public License, see <a href="http://www.opensource.org/licenses/sunpublic.php">http://www.opensource.org/licenses/sunpublic.php</a>.</p>
<h4>Packagelist</h4>
<p>This ant tasks was created by Jens von Pilgrim, it is copyright under the Eclipse Public License (EPL) and the BSD license.</p>
</body>
</html>

View File

@ -1,9 +0,0 @@
source.. = src/java/
output.. = build/classes/
bin.includes = META-INF/,\
.,\
icons/,\
lwjgl_logo.png,\
plugin.xml,\
about.html
src.includes = src/

Binary file not shown.

Before

Width:  |  Height:  |  Size: 24 KiB

View File

@ -1,13 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<?eclipse version="3.2"?>
<plugin>
<extension point="org.eclipse.ui.views" >
<view
class="org.lwjgl.testview.LWJGLTestView"
icon="icons/lwjgl_logo_16.gif"
id="org.lwjgl.testview.LWJGLTestView"
name="LWJGL Test View"/>
</extension>
</plugin>

View File

@ -1,190 +0,0 @@
/*******************************************************************************
* Copyright (c) 2008, Jens von Pilgrim 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:
* Kristian Duske - FPS Status Line Item
*******************************************************************************/
package org.lwjgl.testview;
import java.util.LinkedList;
import java.util.logging.Logger;
import org.eclipse.jface.action.ContributionItem;
import org.eclipse.jface.action.StatusLineLayoutData;
import org.eclipse.swt.SWT;
import org.eclipse.swt.custom.CLabel;
import org.eclipse.swt.graphics.GC;
import org.eclipse.swt.widgets.Composite;
import org.eclipse.swt.widgets.Display;
import org.eclipse.swt.widgets.Label;
/**
* Displays FPS information in the Eclipse status bar.
*
* @author Kristian Duske
* @version $Revision: 500 $
* @since 22.05.2008
* @see $HeadURL: https://gorgo.fernuni-hagen.de/OpenglGEF/trunk/de.feu.gef3d/src/java/de/feu/gef3d/ui/parts/FpsStatusLineItem.java $
*/
public class FpsStatusLineItem extends ContributionItem {
private static final int CHAR_WIDTH = 8;
private static final int INDENT = 3;
@SuppressWarnings("unused")
private static final Logger log = Logger.getLogger(FpsStatusLineItem.class
.getName());
private static final int NUM_FRAMES = 500;
private static final long TIMEOUT = 300;
private int m_fixedHeight = -1;
private int m_fixedWidth = -1;
private long[] m_frames = new long[NUM_FRAMES];
private int m_index = 0;
private int m_count = -1;
private double avg;
private long m_lastFrame = -1;
private CLabel m_label;
/**
*
*/
public FpsStatusLineItem() {
for (long f:m_frames) f=0;
avg = 0;
}
/**
* @param i_id
*/
public FpsStatusLineItem(String i_id) {
super(i_id);
}
/**
* {@inheritDoc}
*
* @see org.eclipse.jface.action.ContributionItem#fill(org.eclipse.swt.widgets.Composite)
*/
@Override
public void fill(Composite i_parent) {
Label sep = new Label(i_parent, SWT.SEPARATOR);
m_label = new CLabel(i_parent, SWT.SHADOW_NONE);
StatusLineLayoutData data = new StatusLineLayoutData();
data.widthHint = getWidthHint(i_parent);
m_label.setLayoutData(data);
data = new StatusLineLayoutData();
data.heightHint = getHeightHint(i_parent);
sep.setLayoutData(data);
updateCounter();
}
private int getHeightHint(Composite control) {
if (m_fixedHeight < 0) {
GC gc = new GC(control);
gc.setFont(control.getFont());
m_fixedHeight = gc.getFontMetrics().getHeight();
gc.dispose();
}
return m_fixedHeight;
}
private int getWidthHint(Composite control) {
if (m_fixedWidth < 0) {
GC gc = new GC(control);
gc.setFont(control.getFont());
m_fixedWidth = gc.getFontMetrics().getAverageCharWidth()
* CHAR_WIDTH;
m_fixedWidth += INDENT * 2;
gc.dispose();
}
return m_fixedWidth;
}
/**
* {@inheritDoc}
*
* @see de.feu.draw3d.RenderListener#renderPassFinished()
*/
public void renderPassFinished() {
long time = System.currentTimeMillis();
if (m_lastFrame == -1) {
m_lastFrame = time;
return;
}
long frameTime = time - m_lastFrame;
m_lastFrame = time;
if (frameTime <= TIMEOUT) {
if (m_count<NUM_FRAMES) m_count++;
avg -= m_frames[m_index];
m_frames[m_index] = frameTime;
avg += m_frames[m_index];
m_index++;
if (m_index>=NUM_FRAMES) {
m_index = 0;
}
}
updateCounter();
}
/**
* {@inheritDoc}
*
* @see de.feu.draw3d.RenderListener#renderPassStarted()
*/
public void renderPassStarted() {
// nothing to do
}
private synchronized void updateCounter() {
long fps = 0;
if (m_count>0)
fps = (long)(1000.0/(avg/((double)m_count)));
// System.out.println("i:"+m_index+", c="+m_count+", avg: " + avg);
if (m_label != null && !m_label.isDisposed()) {
Display display = m_label.getDisplay();
m_label.setForeground(display
.getSystemColor(SWT.COLOR_WIDGET_FOREGROUND));
m_label.setText(fps + " FPS");
}
}
}

View File

@ -1,206 +0,0 @@
/*******************************************************************************
* Copyright (c) 2008, Jens von Pilgrim 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:
* Jens von Pilgrim - Eclipse packaging
*******************************************************************************/
package org.lwjgl.testview;
import org.eclipse.core.runtime.IBundleGroup;
import org.eclipse.core.runtime.IBundleGroupProvider;
import org.eclipse.core.runtime.Platform;
import org.eclipse.jface.action.IStatusLineManager;
import org.eclipse.swt.SWT;
import org.eclipse.swt.graphics.Rectangle;
import org.eclipse.swt.opengl.GLCanvas;
import org.eclipse.swt.opengl.GLData;
import org.eclipse.swt.widgets.Composite;
import org.eclipse.swt.widgets.Display;
import org.eclipse.swt.widgets.Event;
import org.eclipse.swt.widgets.Listener;
import org.eclipse.ui.part.ViewPart;
import org.lwjgl.LWJGLException;
import org.lwjgl.opengl.GL11;
import org.lwjgl.opengl.GLContext;
import org.lwjgl.util.glu.GLU;
/**
* Simple view for testing whether LWJGL is installed correctly on your
* system.
* The example is based on
* <a href="http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet195.java?view=markup&content-type=text%2Fvnd.viewcvs-markup&revision=HEAD">snippet 195</a>.
*
* @author Jens von Pilgrim
* @version $Revision: 65 $
* @since 16.07.2007
* @headurl $HeadURL: https://gorgo.fernuni-hagen.de/lwjgl-plugins/trunk/org.lwjgl.test/src/java/org/lwjgl/testview/LWJGLTestView.java $
*/
public class LWJGLTestView extends ViewPart {
GLCanvas canvas;
FpsStatusLineItem fpsstatuslineitem;
private String getFeatureVersion(String myFeatureId) {
IBundleGroupProvider[] providers = Platform.getBundleGroupProviders();
if (providers != null) {
for (int i = 0; i < providers.length; ++i) {
IBundleGroup[] bundleGroups = providers[i].getBundleGroups();
for (IBundleGroup bg: bundleGroups) {
if (bg.getIdentifier().equals(myFeatureId)) {
return bg.getVersion();
}
}
}
}
return "Feature not found";
}
/**
* {@inheritDoc}
* @see org.eclipse.ui.part.WorkbenchPart#createPartControl(org.eclipse.swt.widgets.Composite)
*/
@Override
public void createPartControl(Composite parent) {
String strVersion = getFeatureVersion("org.lwjgl");
this.setPartName("org.lwjgl " + strVersion);
IStatusLineManager statusLine = this.getViewSite().getActionBars().getStatusLineManager();
fpsstatuslineitem = new FpsStatusLineItem();
statusLine.add(fpsstatuslineitem);
GLData data = new GLData();
data.doubleBuffer = true;
canvas = new GLCanvas(parent, SWT.NONE, data);
canvas.setCurrent();
try {
GLContext.useContext(canvas);
} catch (LWJGLException e) {
e.printStackTrace();
}
canvas.addListener(SWT.Resize, new Listener() {
public void handleEvent(Event event) {
Rectangle bounds = canvas.getBounds();
float fAspect = (float) bounds.width / (float) bounds.height;
canvas.setCurrent();
try {
GLContext.useContext(canvas);
} catch (LWJGLException e) {
e.printStackTrace();
}
GL11.glViewport(0, 0, bounds.width, bounds.height);
GL11.glMatrixMode(GL11.GL_PROJECTION);
GL11.glLoadIdentity();
GLU.gluPerspective(45.0f, fAspect, 0.5f, 400.0f);
GL11.glMatrixMode(GL11.GL_MODELVIEW);
GL11.glLoadIdentity();
}
});
GL11.glClearColor(1.0f, 1.0f, 1.0f, 1.0f);
GL11.glColor3f(1.0f, 0.0f, 0.0f);
GL11.glHint(GL11.GL_PERSPECTIVE_CORRECTION_HINT, GL11.GL_NICEST);
GL11.glClearDepth(1.0);
GL11.glLineWidth(2);
GL11.glEnable(GL11.GL_DEPTH_TEST);
Display.getCurrent().asyncExec(initRunnable());
}
/**
* {@inheritDoc}
* @see org.eclipse.ui.part.WorkbenchPart#setFocus()
*/
@Override
public void setFocus() {
canvas.setFocus();
}
static void drawTorus(float r, float R, int nsides, int rings) {
float ringDelta = 2.0f * (float) Math.PI / rings;
float sideDelta = 2.0f * (float) Math.PI / nsides;
float theta = 0.0f, cosTheta = 1.0f, sinTheta = 0.0f;
for (int i = rings - 1; i >= 0; i--) {
float theta1 = theta + ringDelta;
float cosTheta1 = (float) Math.cos(theta1);
float sinTheta1 = (float) Math.sin(theta1);
GL11.glBegin(GL11.GL_QUAD_STRIP);
float phi = 0.0f;
for (int j = nsides; j >= 0; j--) {
phi += sideDelta;
float cosPhi = (float) Math.cos(phi);
float sinPhi = (float) Math.sin(phi);
float dist = R + r * cosPhi;
GL11
.glNormal3f(cosTheta1 * cosPhi, -sinTheta1 * cosPhi,
sinPhi);
GL11
.glVertex3f(cosTheta1 * dist, -sinTheta1 * dist, r
* sinPhi);
GL11.glNormal3f(cosTheta * cosPhi, -sinTheta * cosPhi, sinPhi);
GL11.glVertex3f(cosTheta * dist, -sinTheta * dist, r * sinPhi);
}
GL11.glEnd();
theta = theta1;
cosTheta = cosTheta1;
sinTheta = sinTheta1;
}
}
Runnable initRunnable() {
return new Runnable() {
int rot = 0;
public void run() {
if (!canvas.isDisposed() && canvas.isVisible()) {
fpsstatuslineitem.renderPassStarted();
canvas.setCurrent();
try {
GLContext.useContext(canvas);
} catch (LWJGLException e) {
e.printStackTrace();
}
GL11.glClear(GL11.GL_COLOR_BUFFER_BIT
| GL11.GL_DEPTH_BUFFER_BIT);
GL11.glClearColor(.2f, .7f, .2f, 1.0f);
GL11.glLoadIdentity();
GL11.glTranslatef(0.0f, 0.0f, -10.0f);
float frot = rot;
GL11
.glRotatef(0.15f * rot, 2.0f * frot, 10.0f * frot,
1.0f);
GL11.glRotatef(0.3f * rot, 3.0f * frot, 1.0f * frot, 1.0f);
rot++;
GL11.glPolygonMode(GL11.GL_FRONT_AND_BACK, GL11.GL_LINE);
GL11.glColor3f(0.9f, 0.9f, 0.9f);
drawTorus(1, 1.9f + ((float) Math.sin((0.004f * frot))),
15, 15);
canvas.swapBuffers();
fpsstatuslineitem.renderPassFinished();
Display.getCurrent().asyncExec(this);
}
}
};
}
}

View File

@ -1,17 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>org.lwjgl.updatesite</name>
<comment></comment>
<projects>
</projects>
<buildSpec>
<buildCommand>
<name>org.eclipse.pde.UpdateSiteBuilder</name>
<arguments>
</arguments>
</buildCommand>
</buildSpec>
<natures>
<nature>org.eclipse.pde.UpdateSiteNature</nature>
</natures>
</projectDescription>

View File

@ -1,77 +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">
<img src="lwjgl_logo.png" align="right"/>
<h2>About This Content</h2>
<p>The <a href="http://lwjgl.org">Lightweight Java Game Library (LWJGL)</a> is a solution aimed
directly at professional and amateur Java programmers alike to enable <a
href="projects.php">commercial quality games</a> to be written in Java.
LWJGL provides developers access to high performance crossplatform
libraries such as OpenGL (<a href="http://www.opengl.org/"
target="_blank">Open Graphics Library</a>) and OpenAL (<a
href="http://www.openal.org" target="_blank">Open Audio Library</a>)
allowing for state of the art 3D games and 3D sound. Additionally LWJGL
provides access to controllers such as Gamepads, Steering wheel and
Joysticks. All in a simple and straight forward API.</p>
<p>LWJGL is not meant to make writing games particularly easy; it is
primarily an enabling technology which allows developers to get at
resources that are simply otherwise unavailable or poorly implemented on
the existing <a href="http://java.sun.com" target="_blank">Java
platform</a>. We anticipate that the LWJGL will, through evolution and
extension, become the foundation for more complete game libraries and
"game engines" as they have popularly become known, and hide some of the
new evils we have had to expose in the APIs.</p>
<p>LWJGL is available under a <a href="http://lwjgl.org/license.php">BSD
license</a>, which means it's open source and freely available at no charge.</p>
<p>Please visit us on the Freenode IRC Network: <a
href="irc://irc.freenode.net/lwjgl" target="_blank">#LWJGL</a>. Do idle
if there is no one to answer any of your questions, we are on different
timezones.</p>
<h3>Plugin assembly</h3>
<p>The plugins were assembled by Jens von Pilgrim (developer@jevopi.de). All files related to this assembly, such as manifest files or plugin descriptors, are copyright under the Eclipse Public License (EPL) and the BSD license</p>
<h3>Third party code</h3>
<h4>IBM</h4>
<p>The LWJGL Textview contains code copyright under the Eclipse Public License (EPL):<br/>
<pre>
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
<a href="http://www.eclipse.org/legal/epl-v10.html">http://www.eclipse.org/legal/epl-v10.html</a>
</pre>
The source of this code can be found at:
<a href="http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet195.java?view=markup&content-type=text%2Fvnd.viewcvs-markup&revision=HEAD">http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet195.java?view=markup&content-type=text%2Fvnd.viewcvs-markup&revision=HEAD</a>
</p>
<h4>MESA</h4>
<p>
LWJGL contains code copyright under Mesa (MIT) License. Copyright (C) 1999-2006 Brian Paul All Rights Reserved.
</p>
<h4>Lev Povalahev</h4>
<p>
LWJGL contains code copyright under BSD License. Copyright (c) 2002, Lev Povalahev
</p>
<h3>Third party code used for building the update site</h3>
<p>The build system is based on Apache ANT. In order to build all plugins, features and the updatesite, some third-party ant tasks are required.</p>
<h4>Eclipse Packages</h4>
<p>ecj.jar and org.eclipse.osgi.jar are used for compiling the test view. These two files are copyright under the Eclipse Public License (EPL). </p>
<h4>Ant4Eclipse</h4>
<p>This ant task is copyright under the Sun Public License, see <a href="http://www.opensource.org/licenses/sunpublic.php">http://www.opensource.org/licenses/sunpublic.php</a>.</p>
<h4>Packagelist</h4>
<p>This ant tasks was created by Jens von Pilgrim, it is copyright under the Eclipse Public License (EPL) and the BSD license.</p>
</body>
</html>

View File

@ -1,60 +0,0 @@
<html>
<head>
<title>org.lwjgl.updatesite</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<style>@import url("web/site.css");</style>
<script type="text/javascript">
var returnval = 0;
var stylesheet, xmlFile, cache, doc;
function init(){
// NSCP 7.1+ / Mozilla 1.4.1+ / Safari
// Use the standard DOM Level 2 technique, if it is supported
if (document.implementation && document.implementation.createDocument) {
xmlFile = document.implementation.createDocument("", "", null);
stylesheet = document.implementation.createDocument("", "", null);
if (xmlFile.load){
xmlFile.load("site.xml");
stylesheet.load("web/site.xsl");
} else {
alert("Document could not be loaded by browser.");
}
xmlFile.addEventListener("load", transform, false);
stylesheet.addEventListener("load", transform, false);
}
//IE 6.0+ solution
else if (window.ActiveXObject) {
xmlFile = new ActiveXObject("msxml2.DOMDocument.3.0");
xmlFile.async = false;
xmlFile.load("site.xml");
stylesheet = new ActiveXObject("msxml2.FreeThreadedDOMDocument.3.0");
stylesheet.async = false;
stylesheet.load("web/site.xsl");
cache = new ActiveXObject("msxml2.XSLTemplate.3.0");
cache.stylesheet = stylesheet;
transformData();
}
}
// separate transformation function for IE 6.0+
function transformData(){
var processor = cache.createProcessor();
processor.input = xmlFile;
processor.transform();
data.innerHTML = processor.output;
}
// separate transformation function for NSCP 7.1+ and Mozilla 1.4.1+
function transform(){
returnval+=1;
if (returnval==2){
var processor = new XSLTProcessor();
processor.importStylesheet(stylesheet);
doc = processor.transformToDocument(xmlFile);
document.getElementById("data").innerHTML = doc.documentElement.innerHTML;
}
}
</script>
</head>
<body onload="init();">
<!--[insert static HTML here]-->
<div id="data"><!-- this is where the transformed data goes --></div>
</body>
</html>

View File

@ -1,14 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<site>
<description url="@UPDATEURL@">
LWJGL.org Update Site
</description>
<feature url="features/org.lwjgl_@VERSION@.jar" id="org.lwjgl" version="@VERSION@">
<category name="3dlibs"/>
</feature>
<category-def name="3dlibs" label="3D Libraries">
<description>
Java 3D libraries such as LWJGL.
</description>
</category-def>
</site>

View File

@ -1,12 +0,0 @@
<STYLE type="text/css">
td.spacer {padding-bottom: 10px; padding-top: 10px;}
.title { font-family: sans-serif; color: #99AACC;}
.bodyText { font-family: sans-serif; font-size: 9pt; color:#000000; }
.sub-header { font-family: sans-serif; font-style: normal; font-weight: bold; font-size: 9pt; color: white;}
.log-text {font-family: sans-serif; font-style: normal; font-weight: lighter; font-size: 8pt; color:black;}
.big-header { font-family: sans-serif; font-style: normal; font-weight: bold; font-size: 9pt; color: white; border-top:10px solid white;}
.light-row {background:#FFFFFF}
.dark-row {background:#EEEEFF}
.header {background:#99AADD}
#indent {word-wrap : break-word;width :300px;text-indent:10px;}
</STYLE>

View File

@ -1,214 +0,0 @@
<xsl:stylesheet version = '1.0' xmlns:xsl='http://www.w3.org/1999/XSL/Transform' xmlns:msxsl="urn:schemas-microsoft-com:xslt">
<xsl:output method="html" encoding="UTF-8"/>
<xsl:key name="cat" match="category" use="@name"/>
<xsl:template match="/">
<xsl:for-each select="site">
<html>
<head>
<title>org.lwjgl.updatesite</title>
<style>@import url("web/site.css");</style>
</head>
<body>
<h1 class="title">org.lwjgl.updatesite</h1>
<p class="bodyText"><xsl:value-of select="description"/></p>
<table width="100%" border="0" cellspacing="1" cellpadding="2">
<xsl:for-each select="category-def">
<xsl:sort select="@label" order="ascending" case-order="upper-first"/>
<xsl:sort select="@name" order="ascending" case-order="upper-first"/>
<xsl:if test="count(key('cat',@name)) != 0">
<tr class="header">
<td class="sub-header" width="30%">
<xsl:value-of select="@name"/>
</td>
<td class="sub-header" width="70%">
<xsl:value-of select="@label"/>
</td>
</tr>
<xsl:for-each select="key('cat',@name)">
<xsl:sort select="ancestor::feature//@version" order="ascending"/>
<xsl:sort select="ancestor::feature//@id" order="ascending" case-order="upper-first"/>
<tr>
<xsl:choose>
<xsl:when test="(position() mod 2 = 1)">
<xsl:attribute name="class">dark-row</xsl:attribute>
</xsl:when>
<xsl:otherwise>
<xsl:attribute name="class">light-row</xsl:attribute>
</xsl:otherwise>
</xsl:choose>
<td class="log-text" id="indent">
<xsl:choose>
<xsl:when test="ancestor::feature//@label">
<a href="{ancestor::feature//@url}"><xsl:value-of select="ancestor::feature//@label"/></a>
<br/>
<div id="indent">
(<xsl:value-of select="ancestor::feature//@id"/> - <xsl:value-of select="ancestor::feature//@version"/>)
</div>
</xsl:when>
<xsl:otherwise>
<a href="{ancestor::feature//@url}"><xsl:value-of select="ancestor::feature//@id"/> - <xsl:value-of select="ancestor::feature//@version"/></a>
</xsl:otherwise>
</xsl:choose>
<br />
</td>
<td>
<table>
<xsl:if test="ancestor::feature//@os">
<tr><td class="log-text" id="indent">Operating Systems:</td>
<td class="log-text" id="indent"><xsl:value-of select="ancestor::feature//@os"/></td>
</tr>
</xsl:if>
<xsl:if test="ancestor::feature//@ws">
<tr><td class="log-text" id="indent">Windows Systems:</td>
<td class="log-text" id="indent"><xsl:value-of select="ancestor::feature//@ws"/></td>
</tr>
</xsl:if>
<xsl:if test="ancestor::feature//@nl">
<tr><td class="log-text" id="indent">Languages:</td>
<td class="log-text" id="indent"><xsl:value-of select="ancestor::feature//@nl"/></td>
</tr>
</xsl:if>
<xsl:if test="ancestor::feature//@arch">
<tr><td class="log-text" id="indent">Architecture:</td>
<td class="log-text" id="indent"><xsl:value-of select="ancestor::feature//@arch"/></td>
</tr>
</xsl:if>
</table>
</td>
</tr>
</xsl:for-each>
<tr><td class="spacer"><br/></td><td class="spacer"><br/></td></tr>
</xsl:if>
</xsl:for-each>
<xsl:if test="count(feature) &gt; count(feature/category)">
<tr class="header">
<td class="sub-header" colspan="2">
Uncategorized
</td>
</tr>
</xsl:if>
<xsl:choose>
<xsl:when test="function-available('msxsl:node-set')">
<xsl:variable name="rtf-nodes">
<xsl:for-each select="feature[not(category)]">
<xsl:sort select="@id" order="ascending" case-order="upper-first"/>
<xsl:sort select="@version" order="ascending" />
<xsl:value-of select="."/>
<xsl:copy-of select="." />
</xsl:for-each>
</xsl:variable>
<xsl:variable name="myNodeSet" select="msxsl:node-set($rtf-nodes)/*"/>
<xsl:for-each select="$myNodeSet">
<tr>
<xsl:choose>
<xsl:when test="position() mod 2 = 1">
<xsl:attribute name="class">dark-row</xsl:attribute>
</xsl:when>
<xsl:otherwise>
<xsl:attribute name="class">light-row</xsl:attribute>
</xsl:otherwise>
</xsl:choose>
<td class="log-text" id="indent">
<xsl:choose>
<xsl:when test="@label">
<a href="{@url}"><xsl:value-of select="@label"/></a>
<br />
<div id="indent">
(<xsl:value-of select="@id"/> - <xsl:value-of select="@version"/>)
</div>
</xsl:when>
<xsl:otherwise>
<a href="{@url}"><xsl:value-of select="@id"/> - <xsl:value-of select="@version"/></a>
</xsl:otherwise>
</xsl:choose>
<br /><br />
</td>
<td>
<table>
<xsl:if test="@os">
<tr><td class="log-text" id="indent">Operating Systems:</td>
<td class="log-text" id="indent"><xsl:value-of select="@os"/></td>
</tr>
</xsl:if>
<xsl:if test="@ws">
<tr><td class="log-text" id="indent">Windows Systems:</td>
<td class="log-text" id="indent"><xsl:value-of select="@ws"/></td>
</tr>
</xsl:if>
<xsl:if test="@nl">
<tr><td class="log-text" id="indent">Languages:</td>
<td class="log-text" id="indent"><xsl:value-of select="@nl"/></td>
</tr>
</xsl:if>
<xsl:if test="@arch">
<tr><td class="log-text" id="indent">Architecture:</td>
<td class="log-text" id="indent"><xsl:value-of select="@arch"/></td>
</tr>
</xsl:if>
</table>
</td>
</tr>
</xsl:for-each>
</xsl:when>
<xsl:otherwise>
<xsl:for-each select="feature[not(category)]">
<xsl:sort select="@id" order="ascending" case-order="upper-first"/>
<xsl:sort select="@version" order="ascending" />
<tr>
<xsl:choose>
<xsl:when test="count(preceding-sibling::feature[not(category)]) mod 2 = 1">
<xsl:attribute name="class">dark-row</xsl:attribute>
</xsl:when>
<xsl:otherwise>
<xsl:attribute name="class">light-row</xsl:attribute>
</xsl:otherwise>
</xsl:choose>
<td class="log-text" id="indent">
<xsl:choose>
<xsl:when test="@label">
<a href="{@url}"><xsl:value-of select="@label"/></a>
<br />
<div id="indent">
(<xsl:value-of select="@id"/> - <xsl:value-of select="@version"/>)
</div>
</xsl:when>
<xsl:otherwise>
<a href="{@url}"><xsl:value-of select="@id"/> - <xsl:value-of select="@version"/></a>
</xsl:otherwise>
</xsl:choose>
<br /><br />
</td>
<td>
<table>
<xsl:if test="@os">
<tr><td class="log-text" id="indent">Operating Systems:</td>
<td class="log-text" id="indent"><xsl:value-of select="@os"/></td>
</tr>
</xsl:if>
<xsl:if test="@ws">
<tr><td class="log-text" id="indent">Windows Systems:</td>
<td class="log-text" id="indent"><xsl:value-of select="@ws"/></td>
</tr>
</xsl:if>
<xsl:if test="@nl">
<tr><td class="log-text" id="indent">Languages:</td>
<td class="log-text" id="indent"><xsl:value-of select="@nl"/></td>
</tr>
</xsl:if>
<xsl:if test="@arch">
<tr><td class="log-text" id="indent">Architecture:</td>
<td class="log-text" id="indent"><xsl:value-of select="@arch"/></td>
</tr>
</xsl:if>
</table>
</td>
</tr>
</xsl:for-each>
</xsl:otherwise>
</xsl:choose>
</table>
</body>
</html>
</xsl:for-each>
</xsl:template>
</xsl:stylesheet>

View File

@ -1,14 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry kind="src" path="src/java"/>
<classpathentry exported="true" kind="lib" path="lwjgl_util_applet.jar"/>
<classpathentry exported="true" kind="lib" path="native/win32/"/>
<classpathentry exported="true" kind="lib" path="native/macosx/"/>
<classpathentry exported="true" kind="lib" path="native/linux/"/>
<classpathentry exported="true" kind="lib" path="jinput.jar"/>
<classpathentry exported="true" kind="lib" path="lwjgl_util.jar"/>
<classpathentry exported="true" kind="lib" path="lwjgl.jar"/>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
<classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/>
<classpathentry kind="output" path="build/classes"/>
</classpath>

View File

@ -1,28 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>org.lwjgl</name>
<comment></comment>
<projects>
</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.pde.PluginNature</nature>
<nature>org.eclipse.jdt.core.javanature</nature>
</natures>
</projectDescription>

View File

@ -1,12 +0,0 @@
#Thu Sep 13 13:53:08 CEST 2007
eclipse.preferences.version=1
org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.5
org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve
org.eclipse.jdt.core.compiler.compliance=1.5
org.eclipse.jdt.core.compiler.debug.lineNumber=generate
org.eclipse.jdt.core.compiler.debug.localVariable=generate
org.eclipse.jdt.core.compiler.debug.sourceFile=generate
org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
org.eclipse.jdt.core.compiler.source=1.5

View File

@ -1,77 +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">
<img src="lwjgl_logo.png" align="right"/>
<h2>About This Content</h2>
<p>The <a href="http://lwjgl.org">Lightweight Java Game Library (LWJGL)</a> is a solution aimed
directly at professional and amateur Java programmers alike to enable <a
href="projects.php">commercial quality games</a> to be written in Java.
LWJGL provides developers access to high performance crossplatform
libraries such as OpenGL (<a href="http://www.opengl.org/"
target="_blank">Open Graphics Library</a>) and OpenAL (<a
href="http://www.openal.org" target="_blank">Open Audio Library</a>)
allowing for state of the art 3D games and 3D sound. Additionally LWJGL
provides access to controllers such as Gamepads, Steering wheel and
Joysticks. All in a simple and straight forward API.</p>
<p>LWJGL is not meant to make writing games particularly easy; it is
primarily an enabling technology which allows developers to get at
resources that are simply otherwise unavailable or poorly implemented on
the existing <a href="http://java.sun.com" target="_blank">Java
platform</a>. We anticipate that the LWJGL will, through evolution and
extension, become the foundation for more complete game libraries and
"game engines" as they have popularly become known, and hide some of the
new evils we have had to expose in the APIs.</p>
<p>LWJGL is available under a <a href="http://lwjgl.org/license.php">BSD
license</a>, which means it's open source and freely available at no charge.</p>
<p>Please visit us on the Freenode IRC Network: <a
href="irc://irc.freenode.net/lwjgl" target="_blank">#LWJGL</a>. Do idle
if there is no one to answer any of your questions, we are on different
timezones.</p>
<h3>Plugin assembly</h3>
<p>The plugins were assembled by Jens von Pilgrim (developer@jevopi.de). All files related to this assembly, such as manifest files or plugin descriptors, are copyright under the Eclipse Public License (EPL) and the BSD license</p>
<h3>Third party code</h3>
<h4>IBM</h4>
<p>The LWJGL Textview contains code copyright under the Eclipse Public License (EPL):<br/>
<pre>
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
<a href="http://www.eclipse.org/legal/epl-v10.html">http://www.eclipse.org/legal/epl-v10.html</a>
</pre>
The source of this code can be found at:
<a href="http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet195.java?view=markup&content-type=text%2Fvnd.viewcvs-markup&revision=HEAD">http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet195.java?view=markup&content-type=text%2Fvnd.viewcvs-markup&revision=HEAD</a>
</p>
<h4>MESA</h4>
<p>
LWJGL contains code copyright under Mesa (MIT) License. Copyright (C) 1999-2006 Brian Paul All Rights Reserved.
</p>
<h4>Lev Povalahev</h4>
<p>
LWJGL contains code copyright under BSD License. Copyright (c) 2002, Lev Povalahev
</p>
<h3>Third party code used for building the update site</h3>
<p>The build system is based on Apache ANT. In order to build all plugins, features and the updatesite, some third-party ant tasks are required.</p>
<h4>Eclipse Packages</h4>
<p>ecj.jar and org.eclipse.osgi.jar are used for compiling the test view. These two files are copyright under the Eclipse Public License (EPL). </p>
<h4>Ant4Eclipse</h4>
<p>This ant task is copyright under the Sun Public License, see <a href="http://www.opensource.org/licenses/sunpublic.php">http://www.opensource.org/licenses/sunpublic.php</a>.</p>
<h4>Packagelist</h4>
<p>This ant tasks was created by Jens von Pilgrim, it is copyright under the Eclipse Public License (EPL) and the BSD license.</p>
</body>
</html>

View File

@ -1,15 +0,0 @@
source.. = src/java/
output.. = build/classes/
bin.includes = META-INF/,\
.,\
jinput.jar,\
lwjgl.jar,\
lwjgl_util.jar,\
about.html,\
lwjgl_logo.png,\
native/,\
lwjgl_util_applet.jar,\
native/linux/,\
native/macosx/,\
native/win32/
src.includes = src/

Binary file not shown.

Before

Width:  |  Height:  |  Size: 24 KiB

View File

@ -1,95 +0,0 @@
package org.lwjgl;
import java.io.File;
import java.net.URL;
import org.eclipse.core.runtime.FileLocator;
import org.eclipse.core.runtime.Plugin;
import org.eclipse.core.runtime.Status;
import org.osgi.framework.Bundle;
import org.osgi.framework.BundleContext;
import org.osgi.framework.BundleException;
/**
* The activator class controls the plug-in life cycle
*/
public class Activator extends Plugin {
// The plug-in ID
public static final String PLUGIN_ID = "org.lwjgl";
public static String[] NATIVEPATH = new String[] { "win32", "macosx",
"linux" };
// The shared instance
private static Activator plugin;
/**
* The constructor
*/
public Activator() {
plugin = this;
}
/*
* (non-Javadoc)
* @see org.eclipse.core.runtime.Plugins#start(org.osgi.framework.BundleContext)
*/
@Override
public void start(BundleContext context) throws Exception {
super.start(context);
int iOS = -1;
String osname = System.getProperty("os.name").toLowerCase();
String osarch = System.getProperty("os.arch").toLowerCase();
if (osname.startsWith("windows") && osarch.startsWith("x86")) {
iOS = 0;
} else if (osname.startsWith("mac os x")) {
iOS = 1;
} else if (osname.startsWith("linux")) {
iOS = 2;
}
if (iOS >= 0) {
try {
Bundle fragment = context.getBundle();
String base = "native" + File.separator + NATIVEPATH[iOS];
URL url = FileLocator.resolve(fragment.getEntry(base));
File fileDir = new File(url.getPath());
System.setProperty("org.lwjgl.librarypath", fileDir.getPath());
} catch (Throwable ex) {
Status status = new Status(Status.ERROR, PLUGIN_ID,
Status.ERROR, "Error loading LWJGL", ex);
getLog().log(status);
throw new BundleException(status.getMessage(), ex);
}
} else {
Status status = new Status(Status.ERROR, PLUGIN_ID, Status.ERROR,
"Error setting native libraries path. LWJGL not available for "
+ osname + "(" + osarch + ")", null);
getLog().log(status);
}
}
/*
* (non-Javadoc)
* @see org.eclipse.core.runtime.Plugin#stop(org.osgi.framework.BundleContext)
*/
@Override
public void stop(BundleContext context) throws Exception {
plugin = null;
super.stop(context);
}
/**
* Returns the shared instance
*
* @return the shared instance
*/
public static Activator getDefault() {
return plugin;
}
}

View File

@ -1,70 +0,0 @@
Readme
Ant-Build for creating an Eclipse update site for LWJGL
Author: Jens von Pilgrim <developer@jevopi.de>
Required software:
------------------
- Eclipse 3.x
- ant 1.7
Note: This build file is for LWJGL version 2.x, the optional parts
shipped with 1.x are no longer supported.
The following 3rd party libraries are included:
- ant4eclipse
URL: http://ant4eclipse.sourceforge.net/
License: Sun Public License
Ant taks to use Eclipse features with Ant
- packagelist
Author: Jens von Pilgrim
Ant task extracting package names (or generally directory names) into given
property. Source code included.
- ecj.jar (from JDT) and org.eclipse.osgi_3.2.0.v20060601.jar
License: EPL
Eclipse libraries required for ant4eclipse
Steps:
------
1) Specify your Eclipse installation directory in build.xml, line 19:
<property name="eclipse.install" value="c:/Devel/Eclipse3.3" />
2) Specify your Eclipse update site url in build.xml, line 20 and
make other adjustent in build.xml if necessary.
2) Download the lwjgl version you want to build an update site for and
store all zip files in directory "lwjgl-archives" in org.lwjgl.eclipseplugins using the
version as a directory, e.g.
lwjgl-archives
+ 2.0.0
- lwjgl-2.0.0.zip
- lwjgl-docs-2.0.0.zip
- lwjgl-source-2.0.0.zip
- lwjgl_applet-2.0.0.zip
Note that the version number must match the following pattern [0-9]+\.[0-9]+\.[0-9]+, i.e. three point separated numbers.
So you must to rename these archives accordingly, and you maybe must also rename the of the folder in the applet archive.
3) Run build file and specify the version as a command line parameters, e.g.
ant -Dversion=2.0.0 dist
4) You will find the complete update site ready in
build/plugins/org.lwjgl.updatesite
You have to upload the complete folder to the url you specified in step 2.
That's it :-)