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
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
activateTextures
(javax.media.opengl.GL gl, int[] img, int cnt) static void
activateTextures
(javax.media.opengl.GL gl, int[] img, int cnt, int type) Bind Textures present in img-Array.static void
deactivateTextures
(javax.media.opengl.GL gl, int cnt) static void
deactivateTextures
(javax.media.opengl.GL gl, int cnt, int type) Deactivate Texture bindings from Texture-offset to Texture-cnt+offsetstatic void
drawPrjQuad
(OpenGLState glState, Camera c) static void
drawPrjQuad
(OpenGLState glState, Camera c, float x, float y, float width, float height) 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)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)protected abstract void
epilogue
(GLSLDisplay disp, OpenGLState glState, Object data) protected int
getID()
void
postDrawCallback
(Drawable dr, OpenGLState glState, GLSLDisplay disp) void
process
(GLSLDisplay disp, OpenGLState glState, Object data) protected abstract void
prologue
(GLSLDisplay disp, OpenGLState glState, Object data) protected abstract void
render
(GLSLDisplay disp, OpenGLState glState, Object data) void
renderAndUpdateVector
(GLSLDisplay disp, Matrix4d worldToView, Vector<Drawable> cache) void
renderVector
(GLSLDisplay disp, Matrix4d worldToView, boolean normal, Vector<Drawable> cache) void
resetMatrix
(OpenGLState glState, int count) void
setMatrix
(OpenGLState glState, int where, Matrix4d which) static void
ViewOrtho
(OpenGLState glState) static void
ViewOrtho
(OpenGLState glState, int width, int height) construct an orthogranal view matrix for easing full screen quad drawingstatic void
ViewPerspective
(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
-