I want to use GL_EXT_draw_buffers2 to be able to turn off blending on certain render targets but i can't find it in opentk. i've checked GL.EXT
You can always use FBO and it's not double-buffered.
No offense, but please don't reply if you don't know what you're talking about.
It exists in GL.Ext. Make sure you are using OpenTK 1.0rc1.
GL.Ext
The only caveat is that the ExtDrawBuffers2 enum does not provide any tokens, so you will have to cast from the All enum, i.e:
ExtDrawBuffers2
All
GL.Ext.EnableIndexed((ExtDrawBuffers2)All.Blend, 1);
Will the following do the same thing?
GL.Enable(IndexedEnableCap.Blend,1);
Honestly, I do not know. It looks likely, assuming this extension was promoted to core in OpenGL 3.1 or 3.2.
Yeah it look like that is indeed the case glEnableIndexedEXT got promoted to glEnablei. Opentk accesses it via an overloaded GL.Enable();
Anyhow thanks for pointing me in the right direction Fiddler.
Comments
Re: where is GL_EXT_draw_buffers2?
You can always use FBO and it's not double-buffered.
Re: where is GL_EXT_draw_buffers2?
No offense, but please don't reply if you don't know what you're talking about.
Re: where is GL_EXT_draw_buffers2?
It exists in
GL.Ext. Make sure you are using OpenTK 1.0rc1.The only caveat is that the
ExtDrawBuffers2enum does not provide any tokens, so you will have to cast from theAllenum, i.e:Re: where is GL_EXT_draw_buffers2?
Will the following do the same thing?
GL.Enable(IndexedEnableCap.Blend,1);Re: where is GL_EXT_draw_buffers2?
Honestly, I do not know. It looks likely, assuming this extension was promoted to core in OpenGL 3.1 or 3.2.
Re: where is GL_EXT_draw_buffers2?
Yeah it look like that is indeed the case glEnableIndexedEXT got promoted to glEnablei. Opentk accesses it via an overloaded GL.Enable();
Anyhow thanks for pointing me in the right direction Fiddler.