java.lang.Object
de.grogra.glsl.renderpass.RenderPass
- Direct Known Subclasses:
DepthPeelingPass,DepthPeelingPass,ExtractLayerPass,ExtractLayerPass,FullQualityRenderPass,FullQualityRenderPass,FullRenderPass,PresentDebugImagePass,PresentDebugImagePass,PresentScenePass,PresentScenePass,ProcessLightingPass,ProcessLightingPass,ShadowMapGenerationPass
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidactivateTextures(javax.media.opengl.GL gl, int[] img, int cnt) static voidactivateTextures(javax.media.opengl.GL gl, int[] img, int cnt, int type) Bind Textures present in img-Array.static voiddeactivateTextures(javax.media.opengl.GL gl, int cnt) static voiddeactivateTextures(javax.media.opengl.GL gl, int cnt, int type) Deactivate Texture bindings from Texture-offset to Texture-cnt+offsetstatic voiddrawPrjQuad(OpenGLState glState, Camera c) static voiddrawPrjQuad(OpenGLState glState, Camera c, float x, float y, float width, float height) static voiddrawPrjQuad(OpenGLState glState, Camera c, float x, float y, float width, float height, double angle) Draw a fullscreen Quad (only useful in orthogonal mode)static voiddrawPrjQuadParallel(OpenGLState glState, Camera c, float x, float y, float width, float height, double projectionWidth) Draw a fullscreen Quad (only useful in orthogonal mode)protected abstract voidepilogue(GLSLDisplay disp, OpenGLState glState, Object data) protected intgetID()voidpostDrawCallback(Drawable dr, OpenGLState glState, GLSLDisplay disp) voidprocess(GLSLDisplay disp, OpenGLState glState, Object data) protected abstract voidprologue(GLSLDisplay disp, OpenGLState glState, Object data) protected abstract voidrender(GLSLDisplay disp, OpenGLState glState, Object data) voidrenderAndUpdateVector(GLSLDisplay disp, Matrix4d worldToView, Vector<Drawable> cache) voidrenderVector(GLSLDisplay disp, Matrix4d worldToView, boolean normal, Vector<Drawable> cache) voidresetMatrix(OpenGLState glState, int count) voidsetMatrix(OpenGLState glState, int where, Matrix4d which) static voidViewOrtho(OpenGLState glState) static voidViewOrtho(OpenGLState glState, int width, int height) construct an orthogranal view matrix for easing full screen quad drawingstatic voidViewPerspective(OpenGLState glState) change view matrix back to default
-
Field Details
-
newVisit
-
-
Constructor Details
-
RenderPass
public RenderPass()
-
-
Method Details
-
getID
protected int getID() -
postDrawCallback
-
renderVector
public void renderVector(GLSLDisplay disp, Matrix4d worldToView, boolean normal, Vector<Drawable> cache) -
renderAndUpdateVector
-
deactivateTextures
public static void deactivateTextures(javax.media.opengl.GL gl, int cnt) -
deactivateTextures
public static void deactivateTextures(javax.media.opengl.GL gl, int cnt, int type) Deactivate Texture bindings from Texture-offset to Texture-cnt+offset- Parameters:
cnt- Number of Textures that should be deactivatedtype-
-
activateTextures
public static void activateTextures(javax.media.opengl.GL gl, int[] img, int cnt) -
activateTextures
public static void activateTextures(javax.media.opengl.GL gl, int[] img, int cnt, int type) Bind Textures present in img-Array. Up to cnt Textures are bound- Parameters:
img- Array containing ids for OpenGL Textures.cnt- Maximum number of Textures that will be activated starting with img[0].type-
-
setMatrix
-
resetMatrix
-
ViewOrtho
-
ViewOrtho
construct an orthogranal view matrix for easing full screen quad drawing -
ViewPerspective
change view matrix back to default -
drawPrjQuad
-
drawPrjQuad
public static void drawPrjQuad(OpenGLState glState, Camera c, float x, float y, float width, float height) -
drawPrjQuad
public static void drawPrjQuad(OpenGLState glState, Camera c, float x, float y, float width, float height, double angle) Draw a fullscreen Quad (only useful in orthogonal mode)- Parameters:
c-
-
drawPrjQuadParallel
public static void drawPrjQuadParallel(OpenGLState glState, Camera c, float x, float y, float width, float height, double projectionWidth) Draw a fullscreen Quad (only useful in orthogonal mode)- Parameters:
c-
-
prologue
-
render
-
epilogue
-
process
-