2005-02-15 11:05:36 +00:00
|
|
|
/* MACHINE GENERATED FILE, DO NOT EDIT */
|
|
|
|
|
|
2005-01-18 20:57:32 +00:00
|
|
|
package org.lwjgl.opengl;
|
|
|
|
|
|
|
|
|
|
import org.lwjgl.LWJGLException;
|
2005-02-15 11:05:36 +00:00
|
|
|
import org.lwjgl.BufferChecks;
|
|
|
|
|
import java.nio.*;
|
2005-01-18 20:57:32 +00:00
|
|
|
|
|
|
|
|
public final class EXTFramebufferObject {
|
|
|
|
|
/**
|
2005-02-15 11:05:36 +00:00
|
|
|
* Returned by GetError():
|
2005-01-18 20:57:32 +00:00
|
|
|
*/
|
2005-02-15 11:05:36 +00:00
|
|
|
public static final int GL_INVALID_FRAMEBUFFER_OPERATION_EXT = 0x506;
|
|
|
|
|
public static final int GL_MAX_RENDERBUFFER_SIZE_EXT = 0x84e8;
|
|
|
|
|
public static final int GL_MAX_COLOR_ATTACHMENTS_EXT = 0x8cdf;
|
|
|
|
|
public static final int GL_RENDERBUFFER_BINDING_EXT = 0x8ca7;
|
2005-01-18 20:57:32 +00:00
|
|
|
/**
|
|
|
|
|
* Accepted by GetIntegerv():
|
|
|
|
|
*/
|
2005-02-15 11:05:36 +00:00
|
|
|
public static final int GL_FRAMEBUFFER_BINDING_EXT = 0x8ca6;
|
|
|
|
|
public static final int GL_FRAMEBUFFER_STATUS_ERROR_EXT = 0x8cde;
|
|
|
|
|
public static final int GL_FRAMEBUFFER_UNSUPPORTED_EXT = 0x8cdd;
|
|
|
|
|
public static final int GL_FRAMEBUFFER_INCOMPLETE_READ_BUFFER_EXT = 0x8cdc;
|
|
|
|
|
public static final int GL_FRAMEBUFFER_INCOMPLETE_DRAW_BUFFER_EXT = 0x8cdb;
|
|
|
|
|
public static final int GL_FRAMEBUFFER_INCOMPLETE_FORMATS_EXT = 0x8cda;
|
|
|
|
|
public static final int GL_FRAMEBUFFER_INCOMPLETE_DIMENSIONS_EXT = 0x8cd9;
|
|
|
|
|
public static final int GL_FRAMEBUFFER_INCOMPLETE_DUPLICATE_ATTACHMENT_EXT = 0x8cd8;
|
|
|
|
|
public static final int GL_FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT_EXT = 0x8cd7;
|
|
|
|
|
public static final int GL_FRAMEBUFFER_INCOMPLETE_ATTACHMENT_EXT = 0x8cd6;
|
2005-01-18 20:57:32 +00:00
|
|
|
/**
|
2005-02-15 11:05:36 +00:00
|
|
|
* Returned by CheckFramebufferStatusEXT():
|
2005-01-18 20:57:32 +00:00
|
|
|
*/
|
2005-02-15 11:05:36 +00:00
|
|
|
public static final int GL_FRAMEBUFFER_COMPLETE_EXT = 0x8cd5;
|
|
|
|
|
public static final int GL_STENCIL_ATTACHMENT_EXT = 0x8d20;
|
|
|
|
|
public static final int GL_DEPTH_ATTACHMENT_EXT = 0x8d00;
|
|
|
|
|
public static final int GL_COLOR_ATTACHMENT15_EXT = 0x8cef;
|
|
|
|
|
public static final int GL_COLOR_ATTACHMENT14_EXT = 0x8cee;
|
|
|
|
|
public static final int GL_COLOR_ATTACHMENT13_EXT = 0x8ced;
|
|
|
|
|
public static final int GL_COLOR_ATTACHMENT12_EXT = 0x8cec;
|
|
|
|
|
public static final int GL_COLOR_ATTACHMENT11_EXT = 0x8ceb;
|
|
|
|
|
public static final int GL_COLOR_ATTACHMENT10_EXT = 0x8cea;
|
|
|
|
|
public static final int GL_COLOR_ATTACHMENT9_EXT = 0x8ce9;
|
|
|
|
|
public static final int GL_COLOR_ATTACHMENT8_EXT = 0x8ce8;
|
|
|
|
|
public static final int GL_COLOR_ATTACHMENT7_EXT = 0x8ce7;
|
|
|
|
|
public static final int GL_COLOR_ATTACHMENT6_EXT = 0x8ce6;
|
|
|
|
|
public static final int GL_COLOR_ATTACHMENT5_EXT = 0x8ce5;
|
|
|
|
|
public static final int GL_COLOR_ATTACHMENT4_EXT = 0x8ce4;
|
|
|
|
|
public static final int GL_COLOR_ATTACHMENT3_EXT = 0x8ce3;
|
|
|
|
|
public static final int GL_COLOR_ATTACHMENT2_EXT = 0x8ce2;
|
|
|
|
|
public static final int GL_COLOR_ATTACHMENT1_EXT = 0x8ce1;
|
|
|
|
|
public static final int GL_COLOR_ATTACHMENT0_EXT = 0x8ce0;
|
|
|
|
|
public static final int GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_3D_ZOFFSET_EXT = 0x8cd4;
|
|
|
|
|
public static final int GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE_EXT = 0x8cd3;
|
|
|
|
|
public static final int GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL_EXT = 0x8cd2;
|
|
|
|
|
public static final int GL_FRAMEBUFFER_ATTACHMENT_OBJECT_NAME_EXT = 0x8cd1;
|
|
|
|
|
public static final int GL_FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE_EXT = 0x8cd0;
|
|
|
|
|
public static final int GL_RENDERBUFFER_INTERNAL_FORMAT_EXT = 0x8d44;
|
|
|
|
|
public static final int GL_RENDERBUFFER_HEIGHT_EXT = 0x8d43;
|
|
|
|
|
public static final int GL_RENDERBUFFER_WIDTH_EXT = 0x8d42;
|
|
|
|
|
public static final int GL_STENCIL_INDEX16_EXT = 0x8d49;
|
|
|
|
|
public static final int GL_STENCIL_INDEX8_EXT = 0x8d48;
|
|
|
|
|
public static final int GL_STENCIL_INDEX4_EXT = 0x8d47;
|
|
|
|
|
public static final int GL_STENCIL_INDEX1_EXT = 0x8d46;
|
|
|
|
|
public static final int GL_STENCIL_INDEX_EXT = 0x8d45;
|
|
|
|
|
public static final int GL_RENDERBUFFER_EXT = 0x8d41;
|
|
|
|
|
public static final int GL_FRAMEBUFFER_EXT = 0x8d40;
|
2005-01-18 20:57:32 +00:00
|
|
|
|
|
|
|
|
private EXTFramebufferObject() {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
static native void initNativeStubs() throws LWJGLException;
|
|
|
|
|
|
2005-02-15 11:05:36 +00:00
|
|
|
public static native void glGenerateMipmapEXT(int target);
|
2005-01-18 20:57:32 +00:00
|
|
|
|
2005-02-15 11:05:36 +00:00
|
|
|
public static void glGetFramebufferAttachmentParameterEXT(int target, int attachment, int pname, IntBuffer params) {
|
|
|
|
|
BufferChecks.checkBuffer(params, 4);
|
|
|
|
|
nglGetFramebufferAttachmentParameterivEXT(target, attachment, pname, params, params.position());
|
2005-01-18 20:57:32 +00:00
|
|
|
}
|
2005-02-15 11:05:36 +00:00
|
|
|
private static native void nglGetFramebufferAttachmentParameterivEXT(int target, int attachment, int pname, IntBuffer params, int params_position);
|
2005-01-18 20:57:32 +00:00
|
|
|
|
2005-02-15 11:05:36 +00:00
|
|
|
public static native void glFramebufferRenderbufferEXT(int target, int attachment, int renderbuffertarget, int renderbuffer);
|
2005-01-18 20:57:32 +00:00
|
|
|
|
2005-02-15 11:05:36 +00:00
|
|
|
public static native void glFramebufferTexture3DEXT(int target, int attachment, int textarget, int texture, int level, int zoffset);
|
2005-01-18 20:57:32 +00:00
|
|
|
|
2005-02-15 11:05:36 +00:00
|
|
|
public static native void glFramebufferTexture2DEXT(int target, int attachment, int textarget, int texture, int level);
|
2005-01-18 20:57:32 +00:00
|
|
|
|
2005-02-15 11:05:36 +00:00
|
|
|
public static native void glFramebufferTexture1DEXT(int target, int attachment, int textarget, int texture, int level);
|
2005-01-18 20:57:32 +00:00
|
|
|
|
2005-02-15 11:05:36 +00:00
|
|
|
public static native int glCheckFramebufferStatusEXT(int target);
|
2005-01-18 20:57:32 +00:00
|
|
|
|
2005-02-15 11:05:36 +00:00
|
|
|
public static void glGenFramebuffersEXT(IntBuffer framebuffers) {
|
2005-01-18 20:57:32 +00:00
|
|
|
BufferChecks.checkDirect(framebuffers);
|
2005-02-15 11:05:36 +00:00
|
|
|
nglGenFramebuffersEXT((framebuffers.remaining()), framebuffers, framebuffers.position());
|
2005-01-18 20:57:32 +00:00
|
|
|
}
|
2005-02-15 11:05:36 +00:00
|
|
|
private static native void nglGenFramebuffersEXT(int n, IntBuffer framebuffers, int framebuffers_position);
|
2005-01-18 20:57:32 +00:00
|
|
|
|
2005-02-15 11:05:36 +00:00
|
|
|
public static void glDeleteFramebuffersEXT(IntBuffer framebuffers) {
|
2005-01-18 20:57:32 +00:00
|
|
|
BufferChecks.checkDirect(framebuffers);
|
2005-02-15 11:05:36 +00:00
|
|
|
nglDeleteFramebuffersEXT((framebuffers.remaining()), framebuffers, framebuffers.position());
|
2005-01-18 20:57:32 +00:00
|
|
|
}
|
2005-02-15 11:05:36 +00:00
|
|
|
private static native void nglDeleteFramebuffersEXT(int n, IntBuffer framebuffers, int framebuffers_position);
|
2005-01-18 20:57:32 +00:00
|
|
|
|
2005-02-15 11:05:36 +00:00
|
|
|
public static native void glBindFramebufferEXT(int target, int framebuffer);
|
2005-01-18 20:57:32 +00:00
|
|
|
|
2005-02-15 11:05:36 +00:00
|
|
|
public static native boolean glIsFramebufferEXT(int framebuffer);
|
2005-01-18 20:57:32 +00:00
|
|
|
|
2005-02-15 11:05:36 +00:00
|
|
|
public static void glGetRenderbufferParameterEXT(int target, int pname, IntBuffer params) {
|
|
|
|
|
BufferChecks.checkBuffer(params, 4);
|
|
|
|
|
nglGetRenderbufferParameterivEXT(target, pname, params, params.position());
|
|
|
|
|
}
|
|
|
|
|
private static native void nglGetRenderbufferParameterivEXT(int target, int pname, IntBuffer params, int params_position);
|
2005-01-18 20:57:32 +00:00
|
|
|
|
2005-02-15 11:05:36 +00:00
|
|
|
public static native void glRenderbufferStorageEXT(int target, int internalformat, int width, int height);
|
2005-01-18 20:57:32 +00:00
|
|
|
|
2005-02-15 11:05:36 +00:00
|
|
|
public static void glGenRenderbuffersEXT(IntBuffer renderbuffers) {
|
|
|
|
|
BufferChecks.checkDirect(renderbuffers);
|
|
|
|
|
nglGenRenderbuffersEXT((renderbuffers.remaining()), renderbuffers, renderbuffers.position());
|
|
|
|
|
}
|
|
|
|
|
private static native void nglGenRenderbuffersEXT(int n, IntBuffer renderbuffers, int renderbuffers_position);
|
2005-01-18 20:57:32 +00:00
|
|
|
|
2005-02-15 11:05:36 +00:00
|
|
|
public static void glDeleteRenderbuffersEXT(IntBuffer renderbuffers) {
|
|
|
|
|
BufferChecks.checkDirect(renderbuffers);
|
|
|
|
|
nglDeleteRenderbuffersEXT((renderbuffers.remaining()), renderbuffers, renderbuffers.position());
|
2005-01-18 20:57:32 +00:00
|
|
|
}
|
2005-02-15 11:05:36 +00:00
|
|
|
private static native void nglDeleteRenderbuffersEXT(int n, IntBuffer renderbuffers, int renderbuffers_position);
|
2005-01-18 20:57:32 +00:00
|
|
|
|
2005-02-15 11:05:36 +00:00
|
|
|
public static native void glBindRenderbufferEXT(int target, int renderbuffer);
|
2005-01-18 20:57:32 +00:00
|
|
|
|
2005-02-15 11:05:36 +00:00
|
|
|
public static native boolean glIsRenderbufferEXT(int renderbuffer);
|
|
|
|
|
}
|