-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
started adding java doc to classes
- Loading branch information
Showing
4 changed files
with
111 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,67 @@ | ||
package ch.bildspur.postfx; | ||
|
||
import ch.bildspur.postfx.pass.Pass; | ||
import processing.core.PApplet; | ||
import processing.core.PGraphics; | ||
|
||
/** | ||
* Created by cansik on 26.03.17. | ||
* Handles the pass buffer and render technique. | ||
*/ | ||
public interface Supervisor { | ||
|
||
/** | ||
* Reset the resolution of the pass buffer. | ||
* | ||
* @param width New width of the pass buffer. | ||
* @param height New height of the pass buffer. | ||
*/ | ||
void setResolution(int width, int height); | ||
|
||
/** | ||
* Returns pass buffer resolution. | ||
* | ||
* @return Int array as shader uniform. | ||
*/ | ||
int[] getResolution(); | ||
|
||
/** | ||
* Start a new multi-pass rendering. | ||
* | ||
* @param graphics Texture used as input. | ||
*/ | ||
void render(PGraphics graphics); | ||
|
||
/** | ||
* Apply pass to texture. | ||
* | ||
* @param pass Pass to apply. | ||
*/ | ||
void pass(Pass pass); | ||
|
||
/** | ||
* Compose and finalize rendering. | ||
* | ||
* @param graphics Texture to render onto. | ||
*/ | ||
void compose(PGraphics graphics); | ||
|
||
/** | ||
* Get next pass of the pass buffer. | ||
* | ||
* @return Next pass of the pass buffer. | ||
*/ | ||
PGraphics getNextPass(); | ||
|
||
/** | ||
* Get current pass of the pass buffer. | ||
* | ||
* @return Current pass of the pass buffer. | ||
*/ | ||
PGraphics getCurrentPass(); | ||
|
||
/** | ||
* Clear a pass (black with alpha). | ||
* | ||
* @param pass Pass to clear. | ||
*/ | ||
void clearPass(PGraphics pass); | ||
} |