diff options
Diffstat (limited to 'maven/jp4da/jp4da-core')
7 files changed, 157 insertions, 0 deletions
diff --git a/maven/jp4da/jp4da-core/.classpath b/maven/jp4da/jp4da-core/.classpath new file mode 100644 index 0000000..534b5e5 --- /dev/null +++ b/maven/jp4da/jp4da-core/.classpath @@ -0,0 +1,36 @@ +<?xml version="1.0" encoding="UTF-8"?> +<classpath> + <classpathentry kind="src" output="target/classes" path="src/main/java"> + <attributes> + <attribute name="optional" value="true"/> + <attribute name="maven.pomderived" value="true"/> + </attributes> + </classpathentry> + <classpathentry excluding="**" kind="src" output="target/classes" path="src/main/resources"> + <attributes> + <attribute name="maven.pomderived" value="true"/> + </attributes> + </classpathentry> + <classpathentry kind="src" output="target/test-classes" path="src/test/java"> + <attributes> + <attribute name="optional" value="true"/> + <attribute name="maven.pomderived" value="true"/> + </attributes> + </classpathentry> + <classpathentry excluding="**" kind="src" output="target/test-classes" path="src/test/resources"> + <attributes> + <attribute name="maven.pomderived" value="true"/> + </attributes> + </classpathentry> + <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.6"> + <attributes> + <attribute name="maven.pomderived" value="true"/> + </attributes> + </classpathentry> + <classpathentry kind="con" path="org.eclipse.m2e.MAVEN2_CLASSPATH_CONTAINER"> + <attributes> + <attribute name="maven.pomderived" value="true"/> + </attributes> + </classpathentry> + <classpathentry kind="output" path="target/classes"/> +</classpath> diff --git a/maven/jp4da/jp4da-core/.project b/maven/jp4da/jp4da-core/.project new file mode 100644 index 0000000..c2c6d70 --- /dev/null +++ b/maven/jp4da/jp4da-core/.project @@ -0,0 +1,23 @@ +<?xml version="1.0" encoding="UTF-8"?> +<projectDescription> + <name>jp4da-core</name> + <comment></comment> + <projects> + </projects> + <buildSpec> + <buildCommand> + <name>org.eclipse.jdt.core.javabuilder</name> + <arguments> + </arguments> + </buildCommand> + <buildCommand> + <name>org.eclipse.m2e.core.maven2Builder</name> + <arguments> + </arguments> + </buildCommand> + </buildSpec> + <natures> + <nature>org.eclipse.jdt.core.javanature</nature> + <nature>org.eclipse.m2e.core.maven2Nature</nature> + </natures> +</projectDescription> diff --git a/maven/jp4da/jp4da-core/.settings/org.eclipse.core.resources.prefs b/maven/jp4da/jp4da-core/.settings/org.eclipse.core.resources.prefs new file mode 100644 index 0000000..29abf99 --- /dev/null +++ b/maven/jp4da/jp4da-core/.settings/org.eclipse.core.resources.prefs @@ -0,0 +1,6 @@ +eclipse.preferences.version=1 +encoding//src/main/java=UTF-8 +encoding//src/main/resources=UTF-8 +encoding//src/test/java=UTF-8 +encoding//src/test/resources=UTF-8 +encoding/<project>=UTF-8 diff --git a/maven/jp4da/jp4da-core/.settings/org.eclipse.jdt.core.prefs b/maven/jp4da/jp4da-core/.settings/org.eclipse.jdt.core.prefs new file mode 100644 index 0000000..60105c1 --- /dev/null +++ b/maven/jp4da/jp4da-core/.settings/org.eclipse.jdt.core.prefs @@ -0,0 +1,5 @@ +eclipse.preferences.version=1 +org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.6 +org.eclipse.jdt.core.compiler.compliance=1.6 +org.eclipse.jdt.core.compiler.problem.forbiddenReference=warning +org.eclipse.jdt.core.compiler.source=1.6 diff --git a/maven/jp4da/jp4da-core/.settings/org.eclipse.m2e.core.prefs b/maven/jp4da/jp4da-core/.settings/org.eclipse.m2e.core.prefs new file mode 100644 index 0000000..f897a7f --- /dev/null +++ b/maven/jp4da/jp4da-core/.settings/org.eclipse.m2e.core.prefs @@ -0,0 +1,4 @@ +activeProfiles= +eclipse.preferences.version=1 +resolveWorkspaceProjects=true +version=1 diff --git a/maven/jp4da/jp4da-core/pom.xml b/maven/jp4da/jp4da-core/pom.xml new file mode 100644 index 0000000..49cb507 --- /dev/null +++ b/maven/jp4da/jp4da-core/pom.xml @@ -0,0 +1,43 @@ +<?xml version="1.0" encoding="UTF-8"?> +<project + xmlns="http://maven.apache.org/POM/4.0.0" + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> + + <modelVersion>4.0.0</modelVersion> + <groupId>com.io7m.examples.jp4da</groupId> + <artifactId>jp4da-core</artifactId> + <version>1.0.0</version> + <name>jp4da-core</name> + <description>Common code</description> + <packaging>jar</packaging> + + <properties> + <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> + <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding> + </properties> + + <dependencies> + <dependency> + <groupId>org.jogamp.jogl</groupId> + <artifactId>jogl-all</artifactId> + <version>2.0-rc11</version> + </dependency> + </dependencies> + + <build> + <plugins> + <!-- Require JDK >= 1.6 --> + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-compiler-plugin</artifactId> + <version>2.5.1</version> + <configuration> + <source>1.6</source> + <target>1.6</target> + </configuration> + </plugin> + </plugins> + </build> + +</project> diff --git a/maven/jp4da/jp4da-core/src/main/java/com/io7m/examples/jp4da/Example.java b/maven/jp4da/jp4da-core/src/main/java/com/io7m/examples/jp4da/Example.java new file mode 100644 index 0000000..5675b95 --- /dev/null +++ b/maven/jp4da/jp4da-core/src/main/java/com/io7m/examples/jp4da/Example.java @@ -0,0 +1,40 @@ +package com.io7m.examples.jp4da; + +import javax.media.opengl.GL; +import javax.media.opengl.GL2ES2; +import javax.media.opengl.GLAutoDrawable; +import javax.media.opengl.GLEventListener; + +public class Example implements GLEventListener +{ + @Override public void display( + final GLAutoDrawable drawable) + { + final GL2ES2 gl = drawable.getGL().getGL2ES2(); + + gl.glClearColor(0f, 0f, 1.0f, 1f); + gl.glClear(GL.GL_COLOR_BUFFER_BIT); + } + + @Override public void dispose( + @SuppressWarnings("unused") final GLAutoDrawable drawable) + { + // Nothing. + } + + @Override public void init( + @SuppressWarnings("unused") final GLAutoDrawable drawable) + { + // Nothing. + } + + @Override public void reshape( + @SuppressWarnings("unused") final GLAutoDrawable drawable, + @SuppressWarnings("unused") final int x, + @SuppressWarnings("unused") final int y, + @SuppressWarnings("unused") final int w, + @SuppressWarnings("unused") final int h) + { + // Nothing. + } +} |