Class ShaderRenderer3d
- java.lang.Object
-
- org.jzy3d.plot3d.rendering.view.Renderer3d
-
- org.jzy3d.plot3d.rendering.shaders.ShaderRenderer3d
-
- All Implemented Interfaces:
com.jogamp.opengl.GLEventListener,EventListener
public class ShaderRenderer3d extends Renderer3d
-
-
Field Summary
Fields Modifier and Type Field Description protected booleanautoSwapBufferprotected static booleanDEBUGstatic booleanDECOMPOSE_VIEWprotected IShaderableshaderable-
Fields inherited from class org.jzy3d.plot3d.rendering.view.Renderer3d
debugGL, doScreenshotAtNextDisplay, height, image, lastRenderingTimeMs, profileDisplayTimer, traceGL, view, width
-
-
Constructor Summary
Constructors Constructor Description ShaderRenderer3d(View view, boolean traceGL, boolean debugGL)ShaderRenderer3d(View view, boolean traceGL, boolean debugGL, IShaderable shaderable)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddisplay(com.jogamp.opengl.GLAutoDrawable drawable)Called when theGLAutoDrawablerequires a rendering.voiddispose(com.jogamp.opengl.GLAutoDrawable drawable)static IGLRenderergetShaderContentRenderer(View view)voidinit(com.jogamp.opengl.GLAutoDrawable drawable)Called when theGLAutoDrawableis rendered for the first time.voidpostDisplay(com.jogamp.opengl.GL2 gl)voidpreDisplay(com.jogamp.opengl.GL2 gl)voidreshape(com.jogamp.opengl.GLAutoDrawable drawable, int x, int y, int width, int height)Rebuild all depth peeling buffers for the new screen size.-
Methods inherited from class org.jzy3d.plot3d.rendering.view.Renderer3d
getHeight, getLastRenderingTimeMs, getLastScreenshot, getWidth, nextDisplayUpdateScreenshot, updatePainterWithGL
-
-
-
-
Field Detail
-
shaderable
protected IShaderable shaderable
-
autoSwapBuffer
protected boolean autoSwapBuffer
-
DEBUG
protected static boolean DEBUG
-
DECOMPOSE_VIEW
public static boolean DECOMPOSE_VIEW
-
-
Constructor Detail
-
ShaderRenderer3d
public ShaderRenderer3d(View view, boolean traceGL, boolean debugGL)
-
ShaderRenderer3d
public ShaderRenderer3d(View view, boolean traceGL, boolean debugGL, IShaderable shaderable)
-
-
Method Detail
-
init
public void init(com.jogamp.opengl.GLAutoDrawable drawable)
Description copied from class:Renderer3dCalled when theGLAutoDrawableis rendered for the first time. When one calls Scene.init() function, this function is called and makes the OpenGL buffers initialization. Note: in this implementation, GL Exceptions are not triggered. To do so, make te following call at the beginning of the init() body:canvas.setGL( new DebugGL(canvas.getGL()) );- Specified by:
initin interfacecom.jogamp.opengl.GLEventListener- Overrides:
initin classRenderer3d
-
display
public void display(com.jogamp.opengl.GLAutoDrawable drawable)
Description copied from class:Renderer3dCalled when theGLAutoDrawablerequires a rendering. All call to rendering methods should appear here.- Specified by:
displayin interfacecom.jogamp.opengl.GLEventListener- Overrides:
displayin classRenderer3d
-
preDisplay
public void preDisplay(com.jogamp.opengl.GL2 gl)
-
postDisplay
public void postDisplay(com.jogamp.opengl.GL2 gl)
-
getShaderContentRenderer
public static IGLRenderer getShaderContentRenderer(View view)
-
reshape
public void reshape(com.jogamp.opengl.GLAutoDrawable drawable, int x, int y, int width, int height)Rebuild all depth peeling buffers for the new screen size.- Specified by:
reshapein interfacecom.jogamp.opengl.GLEventListener- Overrides:
reshapein classRenderer3d
-
dispose
public void dispose(com.jogamp.opengl.GLAutoDrawable drawable)
- Specified by:
disposein interfacecom.jogamp.opengl.GLEventListener- Overrides:
disposein classRenderer3d
-
-