public static void glBindFramebuffer(int target, int framebufferIn) { if (framebufferSupported) { switch (framebufferType) { case 0: GL30.glBindFramebuffer(target, framebufferIn); break; case 1: ARBFramebufferObject.glBindFramebuffer(target, framebufferIn); break; case 2: EXTFramebufferObject.glBindFramebufferEXT(target, framebufferIn); } } }
public static void glBindRenderbuffer(int target, int renderbuffer) { if (framebufferSupported) { switch (framebufferType) { case 0: GL30.glBindRenderbuffer(target, renderbuffer); break; case 1: ARBFramebufferObject.glBindRenderbuffer(target, renderbuffer); break; case 2: EXTFramebufferObject.glBindRenderbufferEXT(target, renderbuffer); } } }
public static void glDeleteRenderbuffers(int renderbuffer) { if (framebufferSupported) { switch (framebufferType) { case 0: GL30.glDeleteRenderbuffers(renderbuffer); break; case 1: ARBFramebufferObject.glDeleteRenderbuffers(renderbuffer); break; case 2: EXTFramebufferObject.glDeleteRenderbuffersEXT(renderbuffer); } } }
public static void glDeleteFramebuffers(int framebufferIn) { if (framebufferSupported) { switch (framebufferType) { case 0: GL30.glDeleteFramebuffers(framebufferIn); break; case 1: ARBFramebufferObject.glDeleteFramebuffers(framebufferIn); break; case 2: EXTFramebufferObject.glDeleteFramebuffersEXT(framebufferIn); } } }
/** * Calls the appropriate glGenFramebuffers method and returns the newly created fbo, or returns -1 if not supported. */ public static int glGenFramebuffers() { if (!framebufferSupported) { return -1; } else { switch (framebufferType) { case 0: return GL30.glGenFramebuffers(); case 1: return ARBFramebufferObject.glGenFramebuffers(); case 2: return EXTFramebufferObject.glGenFramebuffersEXT(); default: return -1; } } }
public static int glGenRenderbuffers() { if (!framebufferSupported) { return -1; } else { switch (framebufferType) { case 0: return GL30.glGenRenderbuffers(); case 1: return ARBFramebufferObject.glGenRenderbuffers(); case 2: return EXTFramebufferObject.glGenRenderbuffersEXT(); default: return -1; } } }
public static void glRenderbufferStorage(int target, int internalFormat, int width, int height) { if (framebufferSupported) { switch (framebufferType) { case 0: GL30.glRenderbufferStorage(target, internalFormat, width, height); break; case 1: ARBFramebufferObject.glRenderbufferStorage(target, internalFormat, width, height); break; case 2: EXTFramebufferObject.glRenderbufferStorageEXT(target, internalFormat, width, height); } } }
public static void glFramebufferRenderbuffer(int target, int attachment, int renderBufferTarget, int renderBuffer) { if (framebufferSupported) { switch (framebufferType) { case 0: GL30.glFramebufferRenderbuffer(target, attachment, renderBufferTarget, renderBuffer); break; case 1: ARBFramebufferObject.glFramebufferRenderbuffer(target, attachment, renderBufferTarget, renderBuffer); break; case 2: EXTFramebufferObject.glFramebufferRenderbufferEXT(target, attachment, renderBufferTarget, renderBuffer); } } }
public static int glCheckFramebufferStatus(int target) { if (!framebufferSupported) { return -1; } else { switch (framebufferType) { case 0: return GL30.glCheckFramebufferStatus(target); case 1: return ARBFramebufferObject.glCheckFramebufferStatus(target); case 2: return EXTFramebufferObject.glCheckFramebufferStatusEXT(target); default: return -1; } } }
public static void glFramebufferTexture2D(int target, int attachment, int textarget, int texture, int level) { if (framebufferSupported) { switch (framebufferType) { case 0: GL30.glFramebufferTexture2D(target, attachment, textarget, texture, level); break; case 1: ARBFramebufferObject.glFramebufferTexture2D(target, attachment, textarget, texture, level); break; case 2: EXTFramebufferObject.glFramebufferTexture2DEXT(target, attachment, textarget, texture, level); } } }
public static void glBindFramebuffer(int target, int framebufferIn) { if (framebufferSupported) { switch (framebufferType) { case BASE: GL30.glBindFramebuffer(target, framebufferIn); break; case ARB: ARBFramebufferObject.glBindFramebuffer(target, framebufferIn); break; case EXT: EXTFramebufferObject.glBindFramebufferEXT(target, framebufferIn); } } }
public static void glBindRenderbuffer(int target, int renderbuffer) { if (framebufferSupported) { switch (framebufferType) { case BASE: GL30.glBindRenderbuffer(target, renderbuffer); break; case ARB: ARBFramebufferObject.glBindRenderbuffer(target, renderbuffer); break; case EXT: EXTFramebufferObject.glBindRenderbufferEXT(target, renderbuffer); } } }
public static void glDeleteRenderbuffers(int renderbuffer) { if (framebufferSupported) { switch (framebufferType) { case BASE: GL30.glDeleteRenderbuffers(renderbuffer); break; case ARB: ARBFramebufferObject.glDeleteRenderbuffers(renderbuffer); break; case EXT: EXTFramebufferObject.glDeleteRenderbuffersEXT(renderbuffer); } } }
public static void glDeleteFramebuffers(int framebufferIn) { if (framebufferSupported) { switch (framebufferType) { case BASE: GL30.glDeleteFramebuffers(framebufferIn); break; case ARB: ARBFramebufferObject.glDeleteFramebuffers(framebufferIn); break; case EXT: EXTFramebufferObject.glDeleteFramebuffersEXT(framebufferIn); } } }
/** * Calls the appropriate glGenFramebuffers method and returns the newly created fbo, or returns -1 if not supported. */ public static int glGenFramebuffers() { if (!framebufferSupported) { return -1; } else { switch (framebufferType) { case BASE: return GL30.glGenFramebuffers(); case ARB: return ARBFramebufferObject.glGenFramebuffers(); case EXT: return EXTFramebufferObject.glGenFramebuffersEXT(); default: return -1; } } }
public static int glGenRenderbuffers() { if (!framebufferSupported) { return -1; } else { switch (framebufferType) { case BASE: return GL30.glGenRenderbuffers(); case ARB: return ARBFramebufferObject.glGenRenderbuffers(); case EXT: return EXTFramebufferObject.glGenRenderbuffersEXT(); default: return -1; } } }
public static void glRenderbufferStorage(int target, int internalFormat, int width, int height) { if (framebufferSupported) { switch (framebufferType) { case BASE: GL30.glRenderbufferStorage(target, internalFormat, width, height); break; case ARB: ARBFramebufferObject.glRenderbufferStorage(target, internalFormat, width, height); break; case EXT: EXTFramebufferObject.glRenderbufferStorageEXT(target, internalFormat, width, height); } } }
public static void glFramebufferRenderbuffer(int target, int attachment, int renderBufferTarget, int renderBuffer) { if (framebufferSupported) { switch (framebufferType) { case BASE: GL30.glFramebufferRenderbuffer(target, attachment, renderBufferTarget, renderBuffer); break; case ARB: ARBFramebufferObject.glFramebufferRenderbuffer(target, attachment, renderBufferTarget, renderBuffer); break; case EXT: EXTFramebufferObject.glFramebufferRenderbufferEXT(target, attachment, renderBufferTarget, renderBuffer); } } }
public static int glCheckFramebufferStatus(int target) { if (!framebufferSupported) { return -1; } else { switch (framebufferType) { case BASE: return GL30.glCheckFramebufferStatus(target); case ARB: return ARBFramebufferObject.glCheckFramebufferStatus(target); case EXT: return EXTFramebufferObject.glCheckFramebufferStatusEXT(target); default: return -1; } } }
public static void glFramebufferTexture2D(int target, int attachment, int textarget, int texture, int level) { if (framebufferSupported) { switch (framebufferType) { case BASE: GL30.glFramebufferTexture2D(target, attachment, textarget, texture, level); break; case ARB: ARBFramebufferObject.glFramebufferTexture2D(target, attachment, textarget, texture, level); break; case EXT: EXTFramebufferObject.glFramebufferTexture2DEXT(target, attachment, textarget, texture, level); } } }