|
1 | 1 | package net.jibini.glutils; |
2 | 2 |
|
3 | | -import static org.lwjgl.opengl.GL11.*; |
4 | | -import static org.lwjgl.opengl.GL20.*; |
5 | | -import static org.lwjgl.opengl.GL30.*; |
6 | | -import static org.lwjgl.opengl.GL32.*; |
| 3 | +import static org.lwjgl.opengl.GL11.GL_DEPTH_COMPONENT; |
| 4 | +import static org.lwjgl.opengl.GL11.GL_LINEAR; |
| 5 | +import static org.lwjgl.opengl.GL11.GL_RGB; |
| 6 | +import static org.lwjgl.opengl.GL11.GL_TEXTURE_2D; |
| 7 | +import static org.lwjgl.opengl.GL11.GL_TEXTURE_MAG_FILTER; |
| 8 | +import static org.lwjgl.opengl.GL11.GL_TEXTURE_MIN_FILTER; |
| 9 | +import static org.lwjgl.opengl.GL11.GL_UNSIGNED_BYTE; |
| 10 | +import static org.lwjgl.opengl.GL11.glBindTexture; |
| 11 | +import static org.lwjgl.opengl.GL11.glDeleteTextures; |
| 12 | +import static org.lwjgl.opengl.GL11.glGenTextures; |
| 13 | +import static org.lwjgl.opengl.GL11.glTexImage2D; |
| 14 | +import static org.lwjgl.opengl.GL11.glTexParameteri; |
| 15 | +import static org.lwjgl.opengl.GL11.glViewport; |
| 16 | +import static org.lwjgl.opengl.GL20.glDrawBuffers; |
| 17 | +import static org.lwjgl.opengl.GL30.GL_COLOR_ATTACHMENT0; |
| 18 | +import static org.lwjgl.opengl.GL30.GL_DEPTH_ATTACHMENT; |
| 19 | +import static org.lwjgl.opengl.GL30.GL_FRAMEBUFFER; |
| 20 | +import static org.lwjgl.opengl.GL30.GL_RENDERBUFFER; |
| 21 | +import static org.lwjgl.opengl.GL30.glBindFramebuffer; |
| 22 | +import static org.lwjgl.opengl.GL30.glBindRenderbuffer; |
| 23 | +import static org.lwjgl.opengl.GL30.glDeleteFramebuffers; |
| 24 | +import static org.lwjgl.opengl.GL30.glDeleteRenderbuffers; |
| 25 | +import static org.lwjgl.opengl.GL30.glFramebufferRenderbuffer; |
| 26 | +import static org.lwjgl.opengl.GL30.glGenFramebuffers; |
| 27 | +import static org.lwjgl.opengl.GL30.glGenRenderbuffers; |
| 28 | +import static org.lwjgl.opengl.GL30.glRenderbufferStorage; |
| 29 | +import static org.lwjgl.opengl.GL32.glFramebufferTexture; |
7 | 30 | import java.nio.FloatBuffer; |
8 | 31 | import java.nio.IntBuffer; |
9 | 32 | import org.lwjgl.BufferUtils; |
10 | | -import net.jibini.glutils.utils.GLUtils; |
11 | 33 |
|
12 | 34 | public class Framebuffer |
13 | 35 | { |
@@ -79,7 +101,7 @@ public void bind() |
79 | 101 | { |
80 | 102 | glBindFramebuffer(GL_FRAMEBUFFER, framebuffer); |
81 | 103 | } |
82 | | - |
| 104 | + |
83 | 105 | public void release() |
84 | 106 | { |
85 | 107 | glBindFramebuffer(GL_FRAMEBUFFER, 0); |
|
0 commit comments