From 950f22bd450e8d6d815ff953c8e78d046d5ef9f8 Mon Sep 17 00:00:00 2001 From: Laurent Carlier Date: Sun, 7 Aug 2011 16:32:54 +0000 Subject: [PATCH] [GB.OPENGL] * NEW: Add all constants for GL_EXT_framebufferobject extension git-svn-id: svn://localhost/gambas/trunk@3985 867c0c6c-44f3-4631-809d-bfa615b0a4ec --- gb.opengl/src/GL.c | 53 +++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 52 insertions(+), 1 deletion(-) diff --git a/gb.opengl/src/GL.c b/gb.opengl/src/GL.c index 52d64d423..5ee40e4f0 100644 --- a/gb.opengl/src/GL.c +++ b/gb.opengl/src/GL.c @@ -290,7 +290,58 @@ GB_DESC Cgl[] = GB_STATIC_METHOD("BindFramebufferEXT", NULL, GLBINDFRAMEBUFFERSEXT, "(Target)i(Framebuffer)i"), GB_STATIC_METHOD("CheckFramebufferStatusEXT", "i", GLCHECKFRAMEBUFFERSTATUSEXT, "(Target)i"), - + GB_CONSTANT("GL_FRAMEBUFFER_EXT", "i", GL_FRAMEBUFFER_EXT), + GB_CONSTANT("GL_RENDERBUFFER_EXT", "i", GL_RENDERBUFFER_EXT), + GB_CONSTANT("GL_STENCIL_INDEX1_EXT", "i", GL_STENCIL_INDEX1_EXT), + GB_CONSTANT("GL_STENCIL_INDEX4_EXT", "i", GL_STENCIL_INDEX4_EXT), + GB_CONSTANT("GL_STENCIL_INDEX8_EXT", "i", GL_STENCIL_INDEX8_EXT), + GB_CONSTANT("GL_STENCIL_INDEX16_EXT", "i", GL_STENCIL_INDEX16_EXT), + GB_CONSTANT("GL_RENDERBUFFER_WIDTH_EXT", "i", GL_RENDERBUFFER_WIDTH_EXT), + GB_CONSTANT("GL_RENDERBUFFER_HEIGHT_EXT", "i", GL_RENDERBUFFER_HEIGHT_EXT), + GB_CONSTANT("GL_RENDERBUFFER_INTERNAL_FORMAT_EXT", "i", GL_RENDERBUFFER_INTERNAL_FORMAT_EXT), + GB_CONSTANT("GL_RENDERBUFFER_RED_SIZE_EXT", "i", GL_RENDERBUFFER_RED_SIZE_EXT), + GB_CONSTANT("GL_RENDERBUFFER_GREEN_SIZE_EXT", "i", GL_RENDERBUFFER_GREEN_SIZE_EXT), + GB_CONSTANT("GL_RENDERBUFFER_BLUE_SIZE_EXT", "i", GL_RENDERBUFFER_BLUE_SIZE_EXT), + GB_CONSTANT("GL_RENDERBUFFER_ALPHA_SIZE_EXT", "i", GL_RENDERBUFFER_ALPHA_SIZE_EXT), + GB_CONSTANT("GL_RENDERBUFFER_DEPTH_SIZE_EXT", "i", GL_RENDERBUFFER_DEPTH_SIZE_EXT), + GB_CONSTANT("GL_RENDERBUFFER_STENCIL_SIZE_EXT", "i", GL_RENDERBUFFER_STENCIL_SIZE_EXT), + GB_CONSTANT("GL_FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE_EXT", "i", GL_FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE_EXT), + GB_CONSTANT("GL_FRAMEBUFFER_ATTACHMENT_OBJECT_NAME_EXT", "i", GL_FRAMEBUFFER_ATTACHMENT_OBJECT_NAME_EXT), + GB_CONSTANT("GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL_EXT", "i", GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL_EXT), + GB_CONSTANT("GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE_EXT", "i", GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE_EXT), + GB_CONSTANT("GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_3D_ZOFFSET_EXT", "i", GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_3D_ZOFFSET_EXT), + GB_CONSTANT("GL_COLOR_ATTACHMENT0_EXT", "i", GL_COLOR_ATTACHMENT0_EXT), + GB_CONSTANT("GL_COLOR_ATTACHMENT1_EXT", "i", GL_COLOR_ATTACHMENT1_EXT), + GB_CONSTANT("GL_COLOR_ATTACHMENT2_EXT", "i", GL_COLOR_ATTACHMENT2_EXT), + GB_CONSTANT("GL_COLOR_ATTACHMENT3_EXT", "i", GL_COLOR_ATTACHMENT3_EXT), + GB_CONSTANT("GL_COLOR_ATTACHMENT4_EXT", "i", GL_COLOR_ATTACHMENT4_EXT), + GB_CONSTANT("GL_COLOR_ATTACHMENT5_EXT", "i", GL_COLOR_ATTACHMENT5_EXT), + GB_CONSTANT("GL_COLOR_ATTACHMENT6_EXT", "i", GL_COLOR_ATTACHMENT6_EXT), + GB_CONSTANT("GL_COLOR_ATTACHMENT7_EXT", "i", GL_COLOR_ATTACHMENT7_EXT), + GB_CONSTANT("GL_COLOR_ATTACHMENT8_EXT", "i", GL_COLOR_ATTACHMENT8_EXT), + GB_CONSTANT("GL_COLOR_ATTACHMENT9_EXT", "i", GL_COLOR_ATTACHMENT9_EXT), + GB_CONSTANT("GL_COLOR_ATTACHMENT10_EXT", "i", GL_COLOR_ATTACHMENT10_EXT), + GB_CONSTANT("GL_COLOR_ATTACHMENT11_EXT", "i", GL_COLOR_ATTACHMENT11_EXT), + GB_CONSTANT("GL_COLOR_ATTACHMENT12_EXT", "i", GL_COLOR_ATTACHMENT12_EXT), + GB_CONSTANT("GL_COLOR_ATTACHMENT13_EXT", "i", GL_COLOR_ATTACHMENT13_EXT), + GB_CONSTANT("GL_COLOR_ATTACHMENT14_EXT", "i", GL_COLOR_ATTACHMENT14_EXT), + GB_CONSTANT("GL_COLOR_ATTACHMENT15_EXT", "i", GL_COLOR_ATTACHMENT15_EXT), + GB_CONSTANT("GL_DEPTH_ATTACHMENT_EXT", "i", GL_DEPTH_ATTACHMENT_EXT), + GB_CONSTANT("GL_STENCIL_ATTACHMENT_EXT", "i", GL_STENCIL_ATTACHMENT_EXT), + GB_CONSTANT("GL_FRAMEBUFFER_COMPLETE_EXT", "i", GL_FRAMEBUFFER_COMPLETE_EXT), + GB_CONSTANT("GL_FRAMEBUFFER_INCOMPLETE_ATTACHMENT_EXT", "i", GL_FRAMEBUFFER_INCOMPLETE_ATTACHMENT_EXT), + GB_CONSTANT("GL_FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT_EXT", "i", GL_FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT_EXT), + GB_CONSTANT("GL_FRAMEBUFFER_INCOMPLETE_DIMENSIONS_EXT", "i", GL_FRAMEBUFFER_INCOMPLETE_DIMENSIONS_EXT), + GB_CONSTANT("GL_FRAMEBUFFER_INCOMPLETE_FORMATS_EXT", "i", GL_FRAMEBUFFER_INCOMPLETE_FORMATS_EXT), + GB_CONSTANT("GL_FRAMEBUFFER_INCOMPLETE_DRAW_BUFFER_EXT", "i", GL_FRAMEBUFFER_INCOMPLETE_DRAW_BUFFER_EXT), + GB_CONSTANT("GL_FRAMEBUFFER_INCOMPLETE_READ_BUFFER_EXT", "i", GL_FRAMEBUFFER_INCOMPLETE_READ_BUFFER_EXT), + GB_CONSTANT("GL_FRAMEBUFFER_UNSUPPORTED_EXT", "i", GL_FRAMEBUFFER_UNSUPPORTED_EXT), + GB_CONSTANT("GL_FRAMEBUFFER_BINDING_EXT", "i", GL_FRAMEBUFFER_BINDING_EXT), + GB_CONSTANT("GL_RENDERBUFFER_BINDING_EXT", "i", GL_RENDERBUFFER_BINDING_EXT), + GB_CONSTANT("GL_MAX_COLOR_ATTACHMENTS_EXT", "i", GL_MAX_COLOR_ATTACHMENTS_EXT), + GB_CONSTANT("GL_MAX_RENDERBUFFER_SIZE_EXT", "i", GL_MAX_RENDERBUFFER_SIZE_EXT), + GB_CONSTANT("GL_INVALID_FRAMEBUFFER_OPERATION_EXT", "i", GL_INVALID_FRAMEBUFFER_OPERATION_EXT), + /********************/ /* opengl constants */ /********************/