Class FrontToBackPeelingAlgorithm
- java.lang.Object
-
- org.jzy3d.plot3d.rendering.ddp.AbstractDepthPeelingAlgorithm
-
- org.jzy3d.plot3d.rendering.ddp.algorithms.FrontToBackPeelingAlgorithm
-
- All Implemented Interfaces:
IDepthPeelingAlgorithm
,IShaderable
public class FrontToBackPeelingAlgorithm extends AbstractDepthPeelingAlgorithm implements IDepthPeelingAlgorithm
-
-
Field Summary
Fields Modifier and Type Field Description int[]
g_frontColorBlenderFboId
int[]
g_frontColorBlenderTexId
int[]
g_frontColorTexId
int[]
g_frontDepthTexId
int[]
g_frontFboId
GLSLProgram
glslBlend
GLSLProgram
glslFinal
GLSLProgram
glslInit
GLSLProgram
glslPeel
protected ShaderFilePair
shaderBase
protected ShaderFilePair
shaderBlend
protected ShaderFilePair
shaderFinal
protected ShaderFilePair
shaderInit
protected ShaderFilePair
shaderPeel
-
Fields inherited from class org.jzy3d.plot3d.rendering.ddp.AbstractDepthPeelingAlgorithm
g_backgroundColor, g_black, g_drawBuffers, g_numGeoPasses, g_numPasses, g_opacity, g_quadDisplayList, g_queryId, g_useOQ, g_white, MAX_DEPTH
-
-
Constructor Summary
Constructors Constructor Description FrontToBackPeelingAlgorithm()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
buildShaders(com.jogamp.opengl.GL2 gl)
protected void
deleteFrontPeelingRenderTargets(com.jogamp.opengl.GL2 gl)
protected void
destroyShaders(com.jogamp.opengl.GL2 gl)
void
display(IPainter painter, com.jogamp.opengl.GL2 gl, com.jogamp.opengl.glu.GLU glu)
void
init(IPainter painter, com.jogamp.opengl.GL2 gl, int width, int height)
protected void
initFrontPeelingRenderTargets(com.jogamp.opengl.GL2 gl, int g_imageWidth, int g_imageHeight)
protected void
renderFrontToBackPeeling(IPainter painter, com.jogamp.opengl.GL2 gl)
void
reshape(IPainter painter, com.jogamp.opengl.GL2 gl, int width, int height)
-
Methods inherited from class org.jzy3d.plot3d.rendering.ddp.AbstractDepthPeelingAlgorithm
buildFinish, buildFullScreenQuad, dispose, getTasksToRender, incrementGeoPasses, reloadShaders, resetNumPass, setTasksToRender, shader, tasksToRender
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.jzy3d.plot3d.rendering.shaders.IShaderable
dispose, getTasksToRender, setTasksToRender
-
-
-
-
Field Detail
-
glslInit
public GLSLProgram glslInit
-
glslPeel
public GLSLProgram glslPeel
-
glslBlend
public GLSLProgram glslBlend
-
glslFinal
public GLSLProgram glslFinal
-
g_frontFboId
public int[] g_frontFboId
-
g_frontDepthTexId
public int[] g_frontDepthTexId
-
g_frontColorTexId
public int[] g_frontColorTexId
-
g_frontColorBlenderTexId
public int[] g_frontColorBlenderTexId
-
g_frontColorBlenderFboId
public int[] g_frontColorBlenderFboId
-
shaderBase
protected ShaderFilePair shaderBase
-
shaderInit
protected ShaderFilePair shaderInit
-
shaderPeel
protected ShaderFilePair shaderPeel
-
shaderBlend
protected ShaderFilePair shaderBlend
-
shaderFinal
protected ShaderFilePair shaderFinal
-
-
Method Detail
-
init
public void init(IPainter painter, com.jogamp.opengl.GL2 gl, int width, int height)
- Specified by:
init
in interfaceIShaderable
-
display
public void display(IPainter painter, com.jogamp.opengl.GL2 gl, com.jogamp.opengl.glu.GLU glu)
- Specified by:
display
in interfaceIShaderable
-
reshape
public void reshape(IPainter painter, com.jogamp.opengl.GL2 gl, int width, int height)
- Specified by:
reshape
in interfaceIShaderable
-
buildShaders
protected void buildShaders(com.jogamp.opengl.GL2 gl)
- Specified by:
buildShaders
in classAbstractDepthPeelingAlgorithm
-
destroyShaders
protected void destroyShaders(com.jogamp.opengl.GL2 gl)
- Specified by:
destroyShaders
in classAbstractDepthPeelingAlgorithm
-
initFrontPeelingRenderTargets
protected void initFrontPeelingRenderTargets(com.jogamp.opengl.GL2 gl, int g_imageWidth, int g_imageHeight)
-
deleteFrontPeelingRenderTargets
protected void deleteFrontPeelingRenderTargets(com.jogamp.opengl.GL2 gl)
-
renderFrontToBackPeeling
protected void renderFrontToBackPeeling(IPainter painter, com.jogamp.opengl.GL2 gl)
-
-