summaryrefslogtreecommitdiffstats
path: root/src/demos/hdr/Pipeline.java
diff options
context:
space:
mode:
authorKenneth Russel <[email protected]>2005-05-27 19:45:51 +0000
committerKenneth Russel <[email protected]>2005-05-27 19:45:51 +0000
commit9d209d3b6ae12604e666d7b655bd1f19e70ee48b (patch)
tree5eb780835a316cbb62a9718a2757a3d51c31adb5 /src/demos/hdr/Pipeline.java
parent02acfb8e24959f43cada34366598236a51b782bb (diff)
Added Java/JOGL port of NVidia HDR demo.
git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/../svn-server-sync/jogl-demos/trunk@80 3298f667-5e0e-4b4a-8ed4-a3559d26a5f4
Diffstat (limited to 'src/demos/hdr/Pipeline.java')
-rwxr-xr-xsrc/demos/hdr/Pipeline.java31
1 files changed, 31 insertions, 0 deletions
diff --git a/src/demos/hdr/Pipeline.java b/src/demos/hdr/Pipeline.java
new file mode 100755
index 0000000..822c3fb
--- /dev/null
+++ b/src/demos/hdr/Pipeline.java
@@ -0,0 +1,31 @@
+package demos.hdr;
+
+import java.io.*;
+import java.util.*;
+
+import net.java.games.jogl.*;
+import net.java.games.cg.*;
+import demos.util.*;
+
+public interface Pipeline {
+ public void init();
+ public void initFloatingPointTexture (GL gl, int textureObject, int w, int h);
+ public void initTexture (GL gl, int textureObject, int w, int h);
+ public void copyToTexture (GL gl, int textureObject, int w, int h);
+ public void bindTexture (GL gl, int textureObject);
+ public int loadVertexProgram (GL gl, String filename) throws IOException;
+ public int loadFragmentProgram (GL gl, String filename) throws IOException;
+ public void enableVertexProgram (GL gl, int program);
+ public void enableFragmentProgram (GL gl, int program);
+ public void disableVertexProgram (GL gl);
+ public void disableFragmentProgram (GL gl);
+ public int getNamedParameter (int program, String name);
+ public void setVertexProgramParameter1f (GL gl, int param, float val);
+ public void setVertexProgramParameter3f (GL gl, int param, float x, float y, float z);
+ public void setVertexProgramParameter4f (GL gl, int param, float x, float y, float z, float w);
+ public void setFragmentProgramParameter1f (GL gl, int param, float val);
+ public void setFragmentProgramParameter3f (GL gl, int param, float x, float y, float z);
+ public void setFragmentProgramParameter4f (GL gl, int param, float x, float y, float z, float w);
+ public void trackModelViewProjectionMatrix(GL gl, int param);
+ public void setMatrixParameterfc (GL gl, int param, float[] matrix);
+}