Package com.metsci.glimpse.topo
Class EquirectTopoProgram
- java.lang.Object
-
- com.metsci.glimpse.topo.EquirectTopoProgram
-
public class EquirectTopoProgram extends Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classEquirectTopoProgram.Handles
-
Field Summary
Fields Modifier and Type Field Description static StringdegreesFragShader_GLSLstatic StringradiansFragShader_GLSLstatic StringvertShader_GLSL
-
Constructor Summary
Constructors Constructor Description EquirectTopoProgram(int dataTexUnit, int bathyColormapTexUnit, int topoColormapTexUnit, ColorTexture1D bathyColormapTexture, ColorTexture1D topoColormapTexture, float bathyColormapMinValue, float topoColormapMaxValue, EquirectNormalCylindricalProjection proj)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidbegin(GlimpseContext context)voiddispose(GlimpseContext context)Deletes the program, and resets this object to the way it was before#begin(GL3)was first called.voiddraw(GlimpseContext context, TopoDeviceTile tile)voidend(GlimpseContext context)static StringfragShader_GLSL(boolean xyInDegrees)EquirectTopoProgram.Handleshandles(com.jogamp.opengl.GL2ES2 gl)Returns the raw GL handles for the shader program, uniforms, and attributes.
-
-
-
Constructor Detail
-
EquirectTopoProgram
public EquirectTopoProgram(int dataTexUnit, int bathyColormapTexUnit, int topoColormapTexUnit, ColorTexture1D bathyColormapTexture, ColorTexture1D topoColormapTexture, float bathyColormapMinValue, float topoColormapMaxValue, EquirectNormalCylindricalProjection proj)
-
-
Method Detail
-
fragShader_GLSL
public static String fragShader_GLSL(boolean xyInDegrees)
-
handles
public EquirectTopoProgram.Handles handles(com.jogamp.opengl.GL2ES2 gl)
Returns the raw GL handles for the shader program, uniforms, and attributes. Compiles and links the program, if necessary.
-
begin
public void begin(GlimpseContext context)
-
draw
public void draw(GlimpseContext context, TopoDeviceTile tile)
-
end
public void end(GlimpseContext context)
-
dispose
public void dispose(GlimpseContext context)
Deletes the program, and resets this object to the way it was before#begin(GL3)was first called.This object can be safely reused after being disposed, but in most cases there is no significant advantage to doing so.
-
-