From 76da2b16bcb7b760660a9cf91cf6457acf526a6b Mon Sep 17 00:00:00 2001 From: Mark Raynsford Date: Sun, 2 Dec 2012 22:46:30 +0000 Subject: Initial jp4da setup --- maven/jp4da/jp4da-core/.classpath | 36 ++++++++++++++++++ maven/jp4da/jp4da-core/.project | 23 ++++++++++++ .../.settings/org.eclipse.core.resources.prefs | 6 +++ .../.settings/org.eclipse.jdt.core.prefs | 5 +++ .../.settings/org.eclipse.m2e.core.prefs | 4 ++ maven/jp4da/jp4da-core/pom.xml | 43 ++++++++++++++++++++++ .../main/java/com/io7m/examples/jp4da/Example.java | 40 ++++++++++++++++++++ 7 files changed, 157 insertions(+) create mode 100644 maven/jp4da/jp4da-core/.classpath create mode 100644 maven/jp4da/jp4da-core/.project create mode 100644 maven/jp4da/jp4da-core/.settings/org.eclipse.core.resources.prefs create mode 100644 maven/jp4da/jp4da-core/.settings/org.eclipse.jdt.core.prefs create mode 100644 maven/jp4da/jp4da-core/.settings/org.eclipse.m2e.core.prefs create mode 100644 maven/jp4da/jp4da-core/pom.xml create mode 100644 maven/jp4da/jp4da-core/src/main/java/com/io7m/examples/jp4da/Example.java (limited to 'maven/jp4da/jp4da-core') 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 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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 @@ + + + jp4da-core + + + + + + org.eclipse.jdt.core.javabuilder + + + + + org.eclipse.m2e.core.maven2Builder + + + + + + org.eclipse.jdt.core.javanature + org.eclipse.m2e.core.maven2Nature + + 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/=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 @@ + + + + 4.0.0 + com.io7m.examples.jp4da + jp4da-core + 1.0.0 + jp4da-core + Common code + jar + + + UTF-8 + UTF-8 + + + + + org.jogamp.jogl + jogl-all + 2.0-rc11 + + + + + + + + org.apache.maven.plugins + maven-compiler-plugin + 2.5.1 + + 1.6 + 1.6 + + + + + + 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. + } +} -- cgit v1.2.3