Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
  * The MIT License (MIT)
  * Copyright (c) 2014 Christian Gärtner
  * Permission is hereby granted, free of charge, to any person obtaining a copy
  * of this software and associated documentation files (the "Software"), to deal
  * in the Software without restriction, including without limitation the rights
  * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
 * copies of the Software, and to permit persons to whom the Software is
 * furnished to do so, subject to the following conditions:
 * The above copyright notice and this permission notice shall be included in all
 * copies or substantial portions of the Software.
package org.achtern.AchternEngine.core.rendering;
A PassFilter can perform stuff during render time. A PassFilter runs before (pre) and after (post) each forward rendererd pass.
public interface PassFilter {

Once added to the RenderEngine, this methods gets called. Initialize FrameBuffers etc. in this method.

renderEngine The active RenderEngine
    public void init(RenderEngine renderEngine);

Called before the pass. (activeRenderPass already set, when calling this method)

node Node which gets rendered
pass The active RenderPass
renderEngine The active RenderEngine
    public void pre(Node nodeRenderPass passRenderEngine renderEngine);

Called after the pass.

node Node which got rendered
pass The "active" RenderPass which was used to render
renderEngine The active RenderEngine
    public void post(Node nodeRenderPass passRenderEngine renderEngine);
New to GrepCode? Check out our FAQ X