diff --git a/eclipse-update/org.lwjgl.eclipseplugins/.project b/eclipse-update/org.lwjgl.eclipseplugins/.project new file mode 100644 index 00000000..8d572f44 --- /dev/null +++ b/eclipse-update/org.lwjgl.eclipseplugins/.project @@ -0,0 +1,11 @@ + + + org.lwjgl.eclipseplugins + + + + + + + + diff --git a/eclipse-update/org.lwjgl.eclipseplugins/about.html b/eclipse-update/org.lwjgl.eclipseplugins/about.html new file mode 100644 index 00000000..77d3a6ce --- /dev/null +++ b/eclipse-update/org.lwjgl.eclipseplugins/about.html @@ -0,0 +1,77 @@ + + + +About + + + + +

About This Content

+

The Lightweight Java Game Library (LWJGL) is a solution aimed +directly at professional and amateur Java programmers alike to enable commercial quality games to be written in Java. +LWJGL provides developers access to high performance crossplatform +libraries such as OpenGL (Open Graphics Library) and OpenAL (Open Audio Library) +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.

+

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 Java +platform. 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.

+

LWJGL is available under a BSD +license, which means it's open source and freely available at no charge.

+

Please visit us on the Freenode IRC Network: #LWJGL. Do idle +if there is no one to answer any of your questions, we are on different +timezones.

+ +

Plugin assembly

+

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

+ +

Third party code

+ +

IBM

+

The LWJGL Textview contains code copyright under the Eclipse Public License (EPL):
+

+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
+
+The source of this code can be found at: +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 +

+ +

MESA

+

+LWJGL contains code copyright under Mesa (MIT) License. Copyright (C) 1999-2006 Brian Paul All Rights Reserved. +

+ +

Lev Povalahev

+

+LWJGL contains code copyright under BSD License. Copyright (c) 2002, Lev Povalahev +

+ + +

Third party code used for building the update site

+

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.

+ +

Eclipse Packages

+

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).

+ +

Ant4Eclipse

+

This ant task is copyright under the Sun Public License, see http://www.opensource.org/licenses/sunpublic.php.

+ +

Packagelist

+

This ant tasks was created by Jens von Pilgrim, it is copyright under the Eclipse Public License (EPL) and the BSD license.

+ + + diff --git a/eclipse-update/org.lwjgl.eclipseplugins/anttasks/ant4eclipse-0.5.0.rc1.jar b/eclipse-update/org.lwjgl.eclipseplugins/anttasks/ant4eclipse-0.5.0.rc1.jar new file mode 100644 index 00000000..720aa38b Binary files /dev/null and b/eclipse-update/org.lwjgl.eclipseplugins/anttasks/ant4eclipse-0.5.0.rc1.jar differ diff --git a/eclipse-update/org.lwjgl.eclipseplugins/anttasks/ecj.jar b/eclipse-update/org.lwjgl.eclipseplugins/anttasks/ecj.jar new file mode 100644 index 00000000..3dbefa45 Binary files /dev/null and b/eclipse-update/org.lwjgl.eclipseplugins/anttasks/ecj.jar differ diff --git a/eclipse-update/org.lwjgl.eclipseplugins/anttasks/org.eclipse.osgi_3.2.0.v20060601.jar b/eclipse-update/org.lwjgl.eclipseplugins/anttasks/org.eclipse.osgi_3.2.0.v20060601.jar new file mode 100644 index 00000000..5f86e420 Binary files /dev/null and b/eclipse-update/org.lwjgl.eclipseplugins/anttasks/org.eclipse.osgi_3.2.0.v20060601.jar differ diff --git a/eclipse-update/org.lwjgl.eclipseplugins/anttasks/packagelist.jar b/eclipse-update/org.lwjgl.eclipseplugins/anttasks/packagelist.jar new file mode 100644 index 00000000..665872a9 Binary files /dev/null and b/eclipse-update/org.lwjgl.eclipseplugins/anttasks/packagelist.jar differ diff --git a/eclipse-update/org.lwjgl.eclipseplugins/build.xml b/eclipse-update/org.lwjgl.eclipseplugins/build.xml new file mode 100644 index 00000000..b279202e --- /dev/null +++ b/eclipse-update/org.lwjgl.eclipseplugins/build.xml @@ -0,0 +1,217 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Building plugins for version ${version} + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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} . + + + + + 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} + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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} + + + + 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} + + + + + + + + + + + + + + + + + + + + + + + + + + Build Plugin ${plugin.id}, Version ${plugin.version} + + + + + + + + + + + Call this build with version number and target dist, e.g. + ant -Dversion=1.1.2 dist + + + \ No newline at end of file diff --git a/eclipse-update/org.lwjgl.eclipseplugins/plugin-skeletons/org.lwjgl.doc/.project b/eclipse-update/org.lwjgl.eclipseplugins/plugin-skeletons/org.lwjgl.doc/.project new file mode 100644 index 00000000..b5dc3d41 --- /dev/null +++ b/eclipse-update/org.lwjgl.eclipseplugins/plugin-skeletons/org.lwjgl.doc/.project @@ -0,0 +1,22 @@ + + + org.lwjgl.doc + + + + + + org.eclipse.pde.ManifestBuilder + + + + + org.eclipse.pde.SchemaBuilder + + + + + + org.eclipse.pde.PluginNature + + diff --git a/eclipse-update/org.lwjgl.eclipseplugins/plugin-skeletons/org.lwjgl.doc/about.html b/eclipse-update/org.lwjgl.eclipseplugins/plugin-skeletons/org.lwjgl.doc/about.html new file mode 100644 index 00000000..77d3a6ce --- /dev/null +++ b/eclipse-update/org.lwjgl.eclipseplugins/plugin-skeletons/org.lwjgl.doc/about.html @@ -0,0 +1,77 @@ + + + +About + + + + +

About This Content

+

The Lightweight Java Game Library (LWJGL) is a solution aimed +directly at professional and amateur Java programmers alike to enable commercial quality games to be written in Java. +LWJGL provides developers access to high performance crossplatform +libraries such as OpenGL (Open Graphics Library) and OpenAL (Open Audio Library) +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.

+

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 Java +platform. 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.

+

LWJGL is available under a BSD +license, which means it's open source and freely available at no charge.

+

Please visit us on the Freenode IRC Network: #LWJGL. Do idle +if there is no one to answer any of your questions, we are on different +timezones.

+ +

Plugin assembly

+

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

+ +

Third party code

+ +

IBM

+

The LWJGL Textview contains code copyright under the Eclipse Public License (EPL):
+

+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
+
+The source of this code can be found at: +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 +

+ +

MESA

+

+LWJGL contains code copyright under Mesa (MIT) License. Copyright (C) 1999-2006 Brian Paul All Rights Reserved. +

+ +

Lev Povalahev

+

+LWJGL contains code copyright under BSD License. Copyright (c) 2002, Lev Povalahev +

+ + +

Third party code used for building the update site

+

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.

+ +

Eclipse Packages

+

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).

+ +

Ant4Eclipse

+

This ant task is copyright under the Sun Public License, see http://www.opensource.org/licenses/sunpublic.php.

+ +

Packagelist

+

This ant tasks was created by Jens von Pilgrim, it is copyright under the Eclipse Public License (EPL) and the BSD license.

+ + + diff --git a/eclipse-update/org.lwjgl.eclipseplugins/plugin-skeletons/org.lwjgl.doc/build.properties b/eclipse-update/org.lwjgl.eclipseplugins/plugin-skeletons/org.lwjgl.doc/build.properties new file mode 100644 index 00000000..c465aac0 --- /dev/null +++ b/eclipse-update/org.lwjgl.eclipseplugins/plugin-skeletons/org.lwjgl.doc/build.properties @@ -0,0 +1,17 @@ +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 diff --git a/eclipse-update/org.lwjgl.eclipseplugins/plugin-skeletons/org.lwjgl.doc/lwjgl_logo.png b/eclipse-update/org.lwjgl.eclipseplugins/plugin-skeletons/org.lwjgl.doc/lwjgl_logo.png new file mode 100644 index 00000000..e4d806ae Binary files /dev/null and b/eclipse-update/org.lwjgl.eclipseplugins/plugin-skeletons/org.lwjgl.doc/lwjgl_logo.png differ diff --git a/eclipse-update/org.lwjgl.eclipseplugins/plugin-skeletons/org.lwjgl.doc/plugin.xml b/eclipse-update/org.lwjgl.eclipseplugins/plugin-skeletons/org.lwjgl.doc/plugin.xml new file mode 100644 index 00000000..33028b1d --- /dev/null +++ b/eclipse-update/org.lwjgl.eclipseplugins/plugin-skeletons/org.lwjgl.doc/plugin.xml @@ -0,0 +1,30 @@ + + + +- + + + +- +- +- +- + + +- +- +- +- + + + + + + + diff --git a/eclipse-update/org.lwjgl.eclipseplugins/plugin-skeletons/org.lwjgl.doc/toc.xml b/eclipse-update/org.lwjgl.eclipseplugins/plugin-skeletons/org.lwjgl.doc/toc.xml new file mode 100644 index 00000000..ac7ccc07 --- /dev/null +++ b/eclipse-update/org.lwjgl.eclipseplugins/plugin-skeletons/org.lwjgl.doc/toc.xml @@ -0,0 +1,8 @@ + + + + + + + + diff --git a/eclipse-update/org.lwjgl.eclipseplugins/plugin-skeletons/org.lwjgl.feature/.project b/eclipse-update/org.lwjgl.eclipseplugins/plugin-skeletons/org.lwjgl.feature/.project new file mode 100644 index 00000000..fd7459fd --- /dev/null +++ b/eclipse-update/org.lwjgl.eclipseplugins/plugin-skeletons/org.lwjgl.feature/.project @@ -0,0 +1,17 @@ + + + org.lwjgl.feature + + + + + + org.eclipse.pde.FeatureBuilder + + + + + + org.eclipse.pde.FeatureNature + + diff --git a/eclipse-update/org.lwjgl.eclipseplugins/plugin-skeletons/org.lwjgl.feature/about.html b/eclipse-update/org.lwjgl.eclipseplugins/plugin-skeletons/org.lwjgl.feature/about.html new file mode 100644 index 00000000..77d3a6ce --- /dev/null +++ b/eclipse-update/org.lwjgl.eclipseplugins/plugin-skeletons/org.lwjgl.feature/about.html @@ -0,0 +1,77 @@ + + + +About + + + + +

About This Content

+

The Lightweight Java Game Library (LWJGL) is a solution aimed +directly at professional and amateur Java programmers alike to enable commercial quality games to be written in Java. +LWJGL provides developers access to high performance crossplatform +libraries such as OpenGL (Open Graphics Library) and OpenAL (Open Audio Library) +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.

+

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 Java +platform. 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.

+

LWJGL is available under a BSD +license, which means it's open source and freely available at no charge.

+

Please visit us on the Freenode IRC Network: #LWJGL. Do idle +if there is no one to answer any of your questions, we are on different +timezones.

+ +

Plugin assembly

+

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

+ +

Third party code

+ +

IBM

+

The LWJGL Textview contains code copyright under the Eclipse Public License (EPL):
+

+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
+
+The source of this code can be found at: +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 +

+ +

MESA

+

+LWJGL contains code copyright under Mesa (MIT) License. Copyright (C) 1999-2006 Brian Paul All Rights Reserved. +

+ +

Lev Povalahev

+

+LWJGL contains code copyright under BSD License. Copyright (c) 2002, Lev Povalahev +

+ + +

Third party code used for building the update site

+

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.

+ +

Eclipse Packages

+

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).

+ +

Ant4Eclipse

+

This ant task is copyright under the Sun Public License, see http://www.opensource.org/licenses/sunpublic.php.

+ +

Packagelist

+

This ant tasks was created by Jens von Pilgrim, it is copyright under the Eclipse Public License (EPL) and the BSD license.

+ + + diff --git a/eclipse-update/org.lwjgl.eclipseplugins/plugin-skeletons/org.lwjgl.feature/build.properties b/eclipse-update/org.lwjgl.eclipseplugins/plugin-skeletons/org.lwjgl.feature/build.properties new file mode 100644 index 00000000..b6f6a064 --- /dev/null +++ b/eclipse-update/org.lwjgl.eclipseplugins/plugin-skeletons/org.lwjgl.feature/build.properties @@ -0,0 +1,2 @@ +bin.includes = feature.xml,\ + lwjgl_logo.png diff --git a/eclipse-update/org.lwjgl.eclipseplugins/plugin-skeletons/org.lwjgl.feature/feature.xml b/eclipse-update/org.lwjgl.eclipseplugins/plugin-skeletons/org.lwjgl.feature/feature.xml new file mode 100644 index 00000000..c7da5131 --- /dev/null +++ b/eclipse-update/org.lwjgl.eclipseplugins/plugin-skeletons/org.lwjgl.feature/feature.xml @@ -0,0 +1,89 @@ + + + + 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 + + + + Copyright (c) 2002-2008 Lightweight Java Game Library Project +All rights reserved. + +LWJGL is available under a BSD license, which means it's open +source and freely available at no charge. + + + + 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 'Light Weight Java Game Library' 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 +"AS IS" 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. + + + + + + + + + + + + + + + + diff --git a/eclipse-update/org.lwjgl.eclipseplugins/plugin-skeletons/org.lwjgl.feature/lwjgl_logo.png b/eclipse-update/org.lwjgl.eclipseplugins/plugin-skeletons/org.lwjgl.feature/lwjgl_logo.png new file mode 100644 index 00000000..e4d806ae Binary files /dev/null and b/eclipse-update/org.lwjgl.eclipseplugins/plugin-skeletons/org.lwjgl.feature/lwjgl_logo.png differ diff --git a/eclipse-update/org.lwjgl.eclipseplugins/plugin-skeletons/org.lwjgl.source/.project b/eclipse-update/org.lwjgl.eclipseplugins/plugin-skeletons/org.lwjgl.source/.project new file mode 100644 index 00000000..3afdb3da --- /dev/null +++ b/eclipse-update/org.lwjgl.eclipseplugins/plugin-skeletons/org.lwjgl.source/.project @@ -0,0 +1,22 @@ + + + org.lwjgl.source + + + + + + org.eclipse.pde.ManifestBuilder + + + + + org.eclipse.pde.SchemaBuilder + + + + + + org.eclipse.pde.PluginNature + + diff --git a/eclipse-update/org.lwjgl.eclipseplugins/plugin-skeletons/org.lwjgl.source/about.html b/eclipse-update/org.lwjgl.eclipseplugins/plugin-skeletons/org.lwjgl.source/about.html new file mode 100644 index 00000000..77d3a6ce --- /dev/null +++ b/eclipse-update/org.lwjgl.eclipseplugins/plugin-skeletons/org.lwjgl.source/about.html @@ -0,0 +1,77 @@ + + + +About + + + + +

About This Content

+

The Lightweight Java Game Library (LWJGL) is a solution aimed +directly at professional and amateur Java programmers alike to enable commercial quality games to be written in Java. +LWJGL provides developers access to high performance crossplatform +libraries such as OpenGL (Open Graphics Library) and OpenAL (Open Audio Library) +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.

+

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 Java +platform. 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.

+

LWJGL is available under a BSD +license, which means it's open source and freely available at no charge.

+

Please visit us on the Freenode IRC Network: #LWJGL. Do idle +if there is no one to answer any of your questions, we are on different +timezones.

+ +

Plugin assembly

+

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

+ +

Third party code

+ +

IBM

+

The LWJGL Textview contains code copyright under the Eclipse Public License (EPL):
+

+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
+
+The source of this code can be found at: +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 +

+ +

MESA

+

+LWJGL contains code copyright under Mesa (MIT) License. Copyright (C) 1999-2006 Brian Paul All Rights Reserved. +

+ +

Lev Povalahev

+

+LWJGL contains code copyright under BSD License. Copyright (c) 2002, Lev Povalahev +

+ + +

Third party code used for building the update site

+

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.

+ +

Eclipse Packages

+

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).

+ +

Ant4Eclipse

+

This ant task is copyright under the Sun Public License, see http://www.opensource.org/licenses/sunpublic.php.

+ +

Packagelist

+

This ant tasks was created by Jens von Pilgrim, it is copyright under the Eclipse Public License (EPL) and the BSD license.

+ + + diff --git a/eclipse-update/org.lwjgl.eclipseplugins/plugin-skeletons/org.lwjgl.source/build.properties b/eclipse-update/org.lwjgl.eclipseplugins/plugin-skeletons/org.lwjgl.source/build.properties new file mode 100644 index 00000000..edb9a818 --- /dev/null +++ b/eclipse-update/org.lwjgl.eclipseplugins/plugin-skeletons/org.lwjgl.source/build.properties @@ -0,0 +1,10 @@ +bin.includes = META-INF/,\ + about.html,\ + lwjgl_logo.png,\ + plugin.xml,\ + src/ +src.includes = src/,\ + lwjgl_logo.png,\ + about.html,\ + plugin.xml,\ + META-INF/ diff --git a/eclipse-update/org.lwjgl.eclipseplugins/plugin-skeletons/org.lwjgl.source/lwjgl_logo.png b/eclipse-update/org.lwjgl.eclipseplugins/plugin-skeletons/org.lwjgl.source/lwjgl_logo.png new file mode 100644 index 00000000..e4d806ae Binary files /dev/null and b/eclipse-update/org.lwjgl.eclipseplugins/plugin-skeletons/org.lwjgl.source/lwjgl_logo.png differ diff --git a/eclipse-update/org.lwjgl.eclipseplugins/plugin-skeletons/org.lwjgl.source/plugin.xml b/eclipse-update/org.lwjgl.eclipseplugins/plugin-skeletons/org.lwjgl.source/plugin.xml new file mode 100644 index 00000000..bd34b669 --- /dev/null +++ b/eclipse-update/org.lwjgl.eclipseplugins/plugin-skeletons/org.lwjgl.source/plugin.xml @@ -0,0 +1,8 @@ + + + + + + + diff --git a/eclipse-update/org.lwjgl.eclipseplugins/plugin-skeletons/org.lwjgl.test/.classpath b/eclipse-update/org.lwjgl.eclipseplugins/plugin-skeletons/org.lwjgl.test/.classpath new file mode 100644 index 00000000..0c23d643 --- /dev/null +++ b/eclipse-update/org.lwjgl.eclipseplugins/plugin-skeletons/org.lwjgl.test/.classpath @@ -0,0 +1,7 @@ + + + + + + + diff --git a/eclipse-update/org.lwjgl.eclipseplugins/plugin-skeletons/org.lwjgl.test/.project b/eclipse-update/org.lwjgl.eclipseplugins/plugin-skeletons/org.lwjgl.test/.project new file mode 100644 index 00000000..b3f765ac --- /dev/null +++ b/eclipse-update/org.lwjgl.eclipseplugins/plugin-skeletons/org.lwjgl.test/.project @@ -0,0 +1,28 @@ + + + org.lwjgl.test + + + + + + org.eclipse.jdt.core.javabuilder + + + + + org.eclipse.pde.ManifestBuilder + + + + + org.eclipse.pde.SchemaBuilder + + + + + + org.eclipse.pde.PluginNature + org.eclipse.jdt.core.javanature + + diff --git a/eclipse-update/org.lwjgl.eclipseplugins/plugin-skeletons/org.lwjgl.test/.settings/org.eclipse.jdt.core.prefs b/eclipse-update/org.lwjgl.eclipseplugins/plugin-skeletons/org.lwjgl.test/.settings/org.eclipse.jdt.core.prefs new file mode 100644 index 00000000..565eda3c --- /dev/null +++ b/eclipse-update/org.lwjgl.eclipseplugins/plugin-skeletons/org.lwjgl.test/.settings/org.eclipse.jdt.core.prefs @@ -0,0 +1,12 @@ +#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 diff --git a/eclipse-update/org.lwjgl.eclipseplugins/plugin-skeletons/org.lwjgl.test/about.html b/eclipse-update/org.lwjgl.eclipseplugins/plugin-skeletons/org.lwjgl.test/about.html new file mode 100644 index 00000000..77d3a6ce --- /dev/null +++ b/eclipse-update/org.lwjgl.eclipseplugins/plugin-skeletons/org.lwjgl.test/about.html @@ -0,0 +1,77 @@ + + + +About + + + + +

About This Content

+

The Lightweight Java Game Library (LWJGL) is a solution aimed +directly at professional and amateur Java programmers alike to enable commercial quality games to be written in Java. +LWJGL provides developers access to high performance crossplatform +libraries such as OpenGL (Open Graphics Library) and OpenAL (Open Audio Library) +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.

+

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 Java +platform. 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.

+

LWJGL is available under a BSD +license, which means it's open source and freely available at no charge.

+

Please visit us on the Freenode IRC Network: #LWJGL. Do idle +if there is no one to answer any of your questions, we are on different +timezones.

+ +

Plugin assembly

+

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

+ +

Third party code

+ +

IBM

+

The LWJGL Textview contains code copyright under the Eclipse Public License (EPL):
+

+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
+
+The source of this code can be found at: +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 +

+ +

MESA

+

+LWJGL contains code copyright under Mesa (MIT) License. Copyright (C) 1999-2006 Brian Paul All Rights Reserved. +

+ +

Lev Povalahev

+

+LWJGL contains code copyright under BSD License. Copyright (c) 2002, Lev Povalahev +

+ + +

Third party code used for building the update site

+

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.

+ +

Eclipse Packages

+

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).

+ +

Ant4Eclipse

+

This ant task is copyright under the Sun Public License, see http://www.opensource.org/licenses/sunpublic.php.

+ +

Packagelist

+

This ant tasks was created by Jens von Pilgrim, it is copyright under the Eclipse Public License (EPL) and the BSD license.

+ + + diff --git a/eclipse-update/org.lwjgl.eclipseplugins/plugin-skeletons/org.lwjgl.test/build.properties b/eclipse-update/org.lwjgl.eclipseplugins/plugin-skeletons/org.lwjgl.test/build.properties new file mode 100644 index 00000000..6d465dae --- /dev/null +++ b/eclipse-update/org.lwjgl.eclipseplugins/plugin-skeletons/org.lwjgl.test/build.properties @@ -0,0 +1,9 @@ +source.. = src/java/ +output.. = build/classes/ +bin.includes = META-INF/,\ + .,\ + icons/,\ + lwjgl_logo.png,\ + plugin.xml,\ + about.html +src.includes = src/ diff --git a/eclipse-update/org.lwjgl.eclipseplugins/plugin-skeletons/org.lwjgl.test/icons/lwjgl_logo_16.gif b/eclipse-update/org.lwjgl.eclipseplugins/plugin-skeletons/org.lwjgl.test/icons/lwjgl_logo_16.gif new file mode 100644 index 00000000..a0252157 Binary files /dev/null and b/eclipse-update/org.lwjgl.eclipseplugins/plugin-skeletons/org.lwjgl.test/icons/lwjgl_logo_16.gif differ diff --git a/eclipse-update/org.lwjgl.eclipseplugins/plugin-skeletons/org.lwjgl.test/lwjgl_logo.png b/eclipse-update/org.lwjgl.eclipseplugins/plugin-skeletons/org.lwjgl.test/lwjgl_logo.png new file mode 100644 index 00000000..e4d806ae Binary files /dev/null and b/eclipse-update/org.lwjgl.eclipseplugins/plugin-skeletons/org.lwjgl.test/lwjgl_logo.png differ diff --git a/eclipse-update/org.lwjgl.eclipseplugins/plugin-skeletons/org.lwjgl.test/plugin.xml b/eclipse-update/org.lwjgl.eclipseplugins/plugin-skeletons/org.lwjgl.test/plugin.xml new file mode 100644 index 00000000..1a91f8db --- /dev/null +++ b/eclipse-update/org.lwjgl.eclipseplugins/plugin-skeletons/org.lwjgl.test/plugin.xml @@ -0,0 +1,13 @@ + + + + + + + + + diff --git a/eclipse-update/org.lwjgl.eclipseplugins/plugin-skeletons/org.lwjgl.test/src/java/org/lwjgl/testview/FpsStatusLineItem.java b/eclipse-update/org.lwjgl.eclipseplugins/plugin-skeletons/org.lwjgl.test/src/java/org/lwjgl/testview/FpsStatusLineItem.java new file mode 100644 index 00000000..c914be63 --- /dev/null +++ b/eclipse-update/org.lwjgl.eclipseplugins/plugin-skeletons/org.lwjgl.test/src/java/org/lwjgl/testview/FpsStatusLineItem.java @@ -0,0 +1,190 @@ +/******************************************************************************* + * 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_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"); + } + } +} diff --git a/eclipse-update/org.lwjgl.eclipseplugins/plugin-skeletons/org.lwjgl.test/src/java/org/lwjgl/testview/LWJGLTestView.java b/eclipse-update/org.lwjgl.eclipseplugins/plugin-skeletons/org.lwjgl.test/src/java/org/lwjgl/testview/LWJGLTestView.java new file mode 100644 index 00000000..1ad1b9be --- /dev/null +++ b/eclipse-update/org.lwjgl.eclipseplugins/plugin-skeletons/org.lwjgl.test/src/java/org/lwjgl/testview/LWJGLTestView.java @@ -0,0 +1,206 @@ +/******************************************************************************* + * 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 + * snippet 195. + * + * @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); + + } + } + }; + } + +} diff --git a/eclipse-update/org.lwjgl.eclipseplugins/plugin-skeletons/org.lwjgl.updatesite/.project b/eclipse-update/org.lwjgl.eclipseplugins/plugin-skeletons/org.lwjgl.updatesite/.project new file mode 100644 index 00000000..9dea0424 --- /dev/null +++ b/eclipse-update/org.lwjgl.eclipseplugins/plugin-skeletons/org.lwjgl.updatesite/.project @@ -0,0 +1,17 @@ + + + org.lwjgl.updatesite + + + + + + org.eclipse.pde.UpdateSiteBuilder + + + + + + org.eclipse.pde.UpdateSiteNature + + diff --git a/eclipse-update/org.lwjgl.eclipseplugins/plugin-skeletons/org.lwjgl.updatesite/about.html b/eclipse-update/org.lwjgl.eclipseplugins/plugin-skeletons/org.lwjgl.updatesite/about.html new file mode 100644 index 00000000..77d3a6ce --- /dev/null +++ b/eclipse-update/org.lwjgl.eclipseplugins/plugin-skeletons/org.lwjgl.updatesite/about.html @@ -0,0 +1,77 @@ + + + +About + + + + +

About This Content

+

The Lightweight Java Game Library (LWJGL) is a solution aimed +directly at professional and amateur Java programmers alike to enable commercial quality games to be written in Java. +LWJGL provides developers access to high performance crossplatform +libraries such as OpenGL (Open Graphics Library) and OpenAL (Open Audio Library) +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.

+

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 Java +platform. 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.

+

LWJGL is available under a BSD +license, which means it's open source and freely available at no charge.

+

Please visit us on the Freenode IRC Network: #LWJGL. Do idle +if there is no one to answer any of your questions, we are on different +timezones.

+ +

Plugin assembly

+

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

+ +

Third party code

+ +

IBM

+

The LWJGL Textview contains code copyright under the Eclipse Public License (EPL):
+

+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
+
+The source of this code can be found at: +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 +

+ +

MESA

+

+LWJGL contains code copyright under Mesa (MIT) License. Copyright (C) 1999-2006 Brian Paul All Rights Reserved. +

+ +

Lev Povalahev

+

+LWJGL contains code copyright under BSD License. Copyright (c) 2002, Lev Povalahev +

+ + +

Third party code used for building the update site

+

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.

+ +

Eclipse Packages

+

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).

+ +

Ant4Eclipse

+

This ant task is copyright under the Sun Public License, see http://www.opensource.org/licenses/sunpublic.php.

+ +

Packagelist

+

This ant tasks was created by Jens von Pilgrim, it is copyright under the Eclipse Public License (EPL) and the BSD license.

+ + + diff --git a/eclipse-update/org.lwjgl.eclipseplugins/plugin-skeletons/org.lwjgl.updatesite/index.html b/eclipse-update/org.lwjgl.eclipseplugins/plugin-skeletons/org.lwjgl.updatesite/index.html new file mode 100644 index 00000000..4484aa38 --- /dev/null +++ b/eclipse-update/org.lwjgl.eclipseplugins/plugin-skeletons/org.lwjgl.updatesite/index.html @@ -0,0 +1,60 @@ + + +org.lwjgl.updatesite + + + + + + +
+ + diff --git a/eclipse-update/org.lwjgl.eclipseplugins/plugin-skeletons/org.lwjgl.updatesite/site.xml b/eclipse-update/org.lwjgl.eclipseplugins/plugin-skeletons/org.lwjgl.updatesite/site.xml new file mode 100644 index 00000000..720febee --- /dev/null +++ b/eclipse-update/org.lwjgl.eclipseplugins/plugin-skeletons/org.lwjgl.updatesite/site.xml @@ -0,0 +1,14 @@ + + + + LWJGL.org Update Site + + + + + + + Java 3D libraries such as LWJGL. + + + diff --git a/eclipse-update/org.lwjgl.eclipseplugins/plugin-skeletons/org.lwjgl.updatesite/web/site.css b/eclipse-update/org.lwjgl.eclipseplugins/plugin-skeletons/org.lwjgl.updatesite/web/site.css new file mode 100644 index 00000000..425134ee --- /dev/null +++ b/eclipse-update/org.lwjgl.eclipseplugins/plugin-skeletons/org.lwjgl.updatesite/web/site.css @@ -0,0 +1,12 @@ + diff --git a/eclipse-update/org.lwjgl.eclipseplugins/plugin-skeletons/org.lwjgl.updatesite/web/site.xsl b/eclipse-update/org.lwjgl.eclipseplugins/plugin-skeletons/org.lwjgl.updatesite/web/site.xsl new file mode 100644 index 00000000..3dbeff2b --- /dev/null +++ b/eclipse-update/org.lwjgl.eclipseplugins/plugin-skeletons/org.lwjgl.updatesite/web/site.xsl @@ -0,0 +1,214 @@ + + + + + + + + org.lwjgl.updatesite + + + +

org.lwjgl.updatesite

+

+ + + + + + + + + + + + + + + + dark-row + + + light-row + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + dark-row + + + light-row + + + + + + + + + + + + + + + dark-row + + + light-row + + + + + + + + +
+ + + +
+ + + +
+
+ ( - ) +
+
+ + - + +
+
+
+ + + + + + + + + + + + + + + + + + + + + +
Operating Systems:
Windows Systems:
Languages:
Architecture:
+


+ Uncategorized +
+ + + +
+
+ ( - ) +
+
+ + - + +
+

+
+ + + + + + + + + + + + + + + + + + + + + +
Operating Systems:
Windows Systems:
Languages:
Architecture:
+
+ + + +
+
+ ( - ) +
+
+ + - + +
+

+
+ + + + + + + + + + + + + + + + + + + + + +
Operating Systems:
Windows Systems:
Languages:
Architecture:
+
+ + +
+
+
diff --git a/eclipse-update/org.lwjgl.eclipseplugins/plugin-skeletons/org.lwjgl/.classpath b/eclipse-update/org.lwjgl.eclipseplugins/plugin-skeletons/org.lwjgl/.classpath new file mode 100644 index 00000000..21f3cd6e --- /dev/null +++ b/eclipse-update/org.lwjgl.eclipseplugins/plugin-skeletons/org.lwjgl/.classpath @@ -0,0 +1,14 @@ + + + + + + + + + + + + + + diff --git a/eclipse-update/org.lwjgl.eclipseplugins/plugin-skeletons/org.lwjgl/.project b/eclipse-update/org.lwjgl.eclipseplugins/plugin-skeletons/org.lwjgl/.project new file mode 100644 index 00000000..dc84d8bd --- /dev/null +++ b/eclipse-update/org.lwjgl.eclipseplugins/plugin-skeletons/org.lwjgl/.project @@ -0,0 +1,28 @@ + + + org.lwjgl + + + + + + org.eclipse.jdt.core.javabuilder + + + + + org.eclipse.pde.ManifestBuilder + + + + + org.eclipse.pde.SchemaBuilder + + + + + + org.eclipse.pde.PluginNature + org.eclipse.jdt.core.javanature + + diff --git a/eclipse-update/org.lwjgl.eclipseplugins/plugin-skeletons/org.lwjgl/.settings/org.eclipse.jdt.core.prefs b/eclipse-update/org.lwjgl.eclipseplugins/plugin-skeletons/org.lwjgl/.settings/org.eclipse.jdt.core.prefs new file mode 100644 index 00000000..565eda3c --- /dev/null +++ b/eclipse-update/org.lwjgl.eclipseplugins/plugin-skeletons/org.lwjgl/.settings/org.eclipse.jdt.core.prefs @@ -0,0 +1,12 @@ +#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 diff --git a/eclipse-update/org.lwjgl.eclipseplugins/plugin-skeletons/org.lwjgl/about.html b/eclipse-update/org.lwjgl.eclipseplugins/plugin-skeletons/org.lwjgl/about.html new file mode 100644 index 00000000..77d3a6ce --- /dev/null +++ b/eclipse-update/org.lwjgl.eclipseplugins/plugin-skeletons/org.lwjgl/about.html @@ -0,0 +1,77 @@ + + + +About + + + + +

About This Content

+

The Lightweight Java Game Library (LWJGL) is a solution aimed +directly at professional and amateur Java programmers alike to enable commercial quality games to be written in Java. +LWJGL provides developers access to high performance crossplatform +libraries such as OpenGL (Open Graphics Library) and OpenAL (Open Audio Library) +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.

+

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 Java +platform. 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.

+

LWJGL is available under a BSD +license, which means it's open source and freely available at no charge.

+

Please visit us on the Freenode IRC Network: #LWJGL. Do idle +if there is no one to answer any of your questions, we are on different +timezones.

+ +

Plugin assembly

+

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

+ +

Third party code

+ +

IBM

+

The LWJGL Textview contains code copyright under the Eclipse Public License (EPL):
+

+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
+
+The source of this code can be found at: +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 +

+ +

MESA

+

+LWJGL contains code copyright under Mesa (MIT) License. Copyright (C) 1999-2006 Brian Paul All Rights Reserved. +

+ +

Lev Povalahev

+

+LWJGL contains code copyright under BSD License. Copyright (c) 2002, Lev Povalahev +

+ + +

Third party code used for building the update site

+

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.

+ +

Eclipse Packages

+

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).

+ +

Ant4Eclipse

+

This ant task is copyright under the Sun Public License, see http://www.opensource.org/licenses/sunpublic.php.

+ +

Packagelist

+

This ant tasks was created by Jens von Pilgrim, it is copyright under the Eclipse Public License (EPL) and the BSD license.

+ + + diff --git a/eclipse-update/org.lwjgl.eclipseplugins/plugin-skeletons/org.lwjgl/build.properties b/eclipse-update/org.lwjgl.eclipseplugins/plugin-skeletons/org.lwjgl/build.properties new file mode 100644 index 00000000..53da33f0 --- /dev/null +++ b/eclipse-update/org.lwjgl.eclipseplugins/plugin-skeletons/org.lwjgl/build.properties @@ -0,0 +1,15 @@ +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/ diff --git a/eclipse-update/org.lwjgl.eclipseplugins/plugin-skeletons/org.lwjgl/lwjgl_logo.png b/eclipse-update/org.lwjgl.eclipseplugins/plugin-skeletons/org.lwjgl/lwjgl_logo.png new file mode 100644 index 00000000..e4d806ae Binary files /dev/null and b/eclipse-update/org.lwjgl.eclipseplugins/plugin-skeletons/org.lwjgl/lwjgl_logo.png differ diff --git a/eclipse-update/org.lwjgl.eclipseplugins/plugin-skeletons/org.lwjgl/src/java/org/lwjgl/Activator.java b/eclipse-update/org.lwjgl.eclipseplugins/plugin-skeletons/org.lwjgl/src/java/org/lwjgl/Activator.java new file mode 100644 index 00000000..7028b26c --- /dev/null +++ b/eclipse-update/org.lwjgl.eclipseplugins/plugin-skeletons/org.lwjgl/src/java/org/lwjgl/Activator.java @@ -0,0 +1,95 @@ +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; + } + +} diff --git a/eclipse-update/org.lwjgl.eclipseplugins/readme.txt b/eclipse-update/org.lwjgl.eclipseplugins/readme.txt new file mode 100644 index 00000000..d005e1c3 --- /dev/null +++ b/eclipse-update/org.lwjgl.eclipseplugins/readme.txt @@ -0,0 +1,70 @@ +Readme + +Ant-Build for creating an Eclipse update site for LWJGL +Author: Jens von Pilgrim + + +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: + + + +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 :-) + + + + +