From 9d209d3b6ae12604e666d7b655bd1f19e70ee48b Mon Sep 17 00:00:00 2001 From: Kenneth Russel Date: Fri, 27 May 2005 19:45:51 +0000 Subject: 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 --- src/demos/hdr/Pipeline.java | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100755 src/demos/hdr/Pipeline.java (limited to 'src/demos/hdr/Pipeline.java') 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); +} -- cgit v1.2.3