From ac2c47e72bacdd13b546465f69521e244f54908b Mon Sep 17 00:00:00 2001 From: the_fiddler Date: Mon, 11 May 2009 13:20:35 +0000 Subject: [PATCH] Added ColorAttachment[0-15] tokens to DrawBuffersEnum (page 182 of the 3.1 specs). --- Source/Bind/Specifications/GL2/enumext.spec | 21 +++++++++++++++++++++ Source/OpenTK/Graphics/GL/GLEnums.cs | 16 ++++++++++++++++ 2 files changed, 37 insertions(+) diff --git a/Source/Bind/Specifications/GL2/enumext.spec b/Source/Bind/Specifications/GL2/enumext.spec index 8465e829..473781d2 100644 --- a/Source/Bind/Specifications/GL2/enumext.spec +++ b/Source/Bind/Specifications/GL2/enumext.spec @@ -6029,6 +6029,7 @@ DrawBuffersEnum enum: use DrawBufferMode AUX2 use DrawBufferMode AUX3 + GetPName enum: MAX_DRAW_BUFFERS = 0x8824 DRAW_BUFFER0 = 0x8825 @@ -6297,6 +6298,26 @@ FramebufferAttachment enum: use ARB_framebuffer_object STENCIL_ATTACHMENT use ARB_framebuffer_object DEPTH_STENCIL_ATTACHMENT +# These tokens are only valid when the current FramebufferBinding is non-zero +# See page 182 of the 3.1 specs. +DrawBuffersEnum enum: + use ARB_framebuffer_object COLOR_ATTACHMENT0 + use ARB_framebuffer_object COLOR_ATTACHMENT1 + use ARB_framebuffer_object COLOR_ATTACHMENT2 + use ARB_framebuffer_object COLOR_ATTACHMENT3 + use ARB_framebuffer_object COLOR_ATTACHMENT4 + use ARB_framebuffer_object COLOR_ATTACHMENT5 + use ARB_framebuffer_object COLOR_ATTACHMENT6 + use ARB_framebuffer_object COLOR_ATTACHMENT7 + use ARB_framebuffer_object COLOR_ATTACHMENT8 + use ARB_framebuffer_object COLOR_ATTACHMENT9 + use ARB_framebuffer_object COLOR_ATTACHMENT10 + use ARB_framebuffer_object COLOR_ATTACHMENT11 + use ARB_framebuffer_object COLOR_ATTACHMENT12 + use ARB_framebuffer_object COLOR_ATTACHMENT13 + use ARB_framebuffer_object COLOR_ATTACHMENT14 + use ARB_framebuffer_object COLOR_ATTACHMENT15 + FramebufferAttachmentObjectType enum: NONE = 0 use ARB_framebuffer_object FRAMEBUFFER_DEFAULT diff --git a/Source/OpenTK/Graphics/GL/GLEnums.cs b/Source/OpenTK/Graphics/GL/GLEnums.cs index 8af6706c..af26abbc 100644 --- a/Source/OpenTK/Graphics/GL/GLEnums.cs +++ b/Source/OpenTK/Graphics/GL/GLEnums.cs @@ -9870,6 +9870,22 @@ namespace OpenTK.Graphics Aux1 = ((int)0X040a), Aux2 = ((int)0X040b), Aux3 = ((int)0X040c), + ColorAttachment0 = ((int)0X8ce0), + ColorAttachment1 = ((int)0X8ce1), + ColorAttachment2 = ((int)0X8ce2), + ColorAttachment3 = ((int)0X8ce3), + ColorAttachment4 = ((int)0X8ce4), + ColorAttachment5 = ((int)0X8ce5), + ColorAttachment6 = ((int)0X8ce6), + ColorAttachment7 = ((int)0X8ce7), + ColorAttachment8 = ((int)0X8ce8), + ColorAttachment9 = ((int)0X8ce9), + ColorAttachment10 = ((int)0X8cea), + ColorAttachment11 = ((int)0X8ceb), + ColorAttachment12 = ((int)0X8cec), + ColorAttachment13 = ((int)0X8ced), + ColorAttachment14 = ((int)0X8cee), + ColorAttachment15 = ((int)0X8cef), } public enum PointSpriteCoordOriginParameter