sgsrules's picture

where is GL_EXT_draw_buffers2?

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


Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
Tal's picture

You can always use FBO and it's not double-buffered.

sgsrules's picture

No offense, but please don't reply if you don't know what you're talking about.

the Fiddler's picture

It exists in GL.Ext. Make sure you are using OpenTK 1.0rc1.

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:

GL.Ext.EnableIndexed((ExtDrawBuffers2)All.Blend, 1);
sgsrules's picture

Will the following do the same thing?


the Fiddler's picture

Honestly, I do not know. It looks likely, assuming this extension was promoted to core in OpenGL 3.1 or 3.2.

sgsrules's picture

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.