FrameBufferListener.java
1.12 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
/*
* This file is part of LiteLoader.
* Copyright (C) 2012-16 Adam Mummery-Smith
* All Rights Reserved.
*/
package com.mumfrey.liteloader;
import net.minecraft.client.shader.Framebuffer;
/**
* Interface for mods which want to interact with Minecraft's main Frame Buffer
* Object.
*
* @author Adam Mummery-Smith
*/
public interface FrameBufferListener extends LiteMod
{
/**
* Called before the FBO is rendered. Useful if you want to interact with
* the FBO before it is drawn to the screen.
*/
public abstract void preRenderFBO(Framebuffer fbo);
/**
* Called immediately before the FBO is rendered to the screen, after the
* appropriate IGL modes and matrix transforms have been set but before the
* FBO is actually rendered into the main output buffer.
*
* @param fbo FBO instance
* @param width FBO width
* @param height FBO height
*/
public abstract void onRenderFBO(Framebuffer fbo, int width, int height);
/**
* Called after the FBO is rendered whilst still inside the FBO transform
*/
public abstract void postRenderFBO(Framebuffer fbo);
}