package net.coderbot.iris.compat.dh; import com.gtnewhorizons.angelica.glsm.GLStateManager; import com.seibel.distanthorizons.api.interfaces.override.rendering.IDhApiFramebuffer; import net.coderbot.iris.gl.framebuffer.GlFramebuffer; import org.lwjgl.opengl.GL30; public class DhFrameBufferWrapper implements IDhApiFramebuffer { private final GlFramebuffer framebuffer; public DhFrameBufferWrapper(GlFramebuffer framebuffer) { this.framebuffer = framebuffer; } @Override public boolean overrideThisFrame() { return true; } @Override public void bind() { this.framebuffer.bind(); } @Override public void addDepthAttachment(int i, boolean b) { // ignore } @Override public int getId() { return this.framebuffer.getId(); } @Override public int getStatus() { this.bind(); int status = GLStateManager.glCheckFramebufferStatus(GL30.GL_FRAMEBUFFER); return status; } @Override public void addColorAttachment(int i, int i1) { // ignore } @Override public void destroy() { // ignore //this.framebuffer.destroy(); } }