com.metsci.glimpse.gl.shader
Class Pipeline

java.lang.Object
  extended by com.metsci.glimpse.gl.shader.Pipeline

public class Pipeline
extends java.lang.Object

A structure wrapping a set of three OpenGL shaders (a geometry shader, a vertex shader, and a fragment shader) into a complete rendering pipeline. This class can be passed to painter which use shaders as part of their rendering. The pipeline methods beginUse() and endUse() can be used in the GlimpsePainter paintTo() method to turn on and off use of the Pipeline.

Author:
osborn
See Also:
ShadedTexturePainter

Field Summary
static Pipeline empty
           
 
Constructor Summary
Pipeline(java.lang.String name, Shader geom, Shader vert, Shader frag)
           
 
Method Summary
 void beginUse(javax.media.opengl.GL gl)
           
 void dispose(javax.media.opengl.GLContext context)
           
 void endUse(javax.media.opengl.GL gl)
           
 java.lang.String getName()
           
 boolean isLinked(javax.media.opengl.GL gl)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

empty

public static final Pipeline empty
Constructor Detail

Pipeline

public Pipeline(java.lang.String name,
                Shader geom,
                Shader vert,
                Shader frag)
Method Detail

getName

public java.lang.String getName()

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

isLinked

public boolean isLinked(javax.media.opengl.GL gl)

beginUse

public void beginUse(javax.media.opengl.GL gl)

endUse

public void endUse(javax.media.opengl.GL gl)

dispose

public void dispose(javax.media.opengl.GLContext context)


Copyright © 2012 Metron, Inc.. All Rights Reserved.