Vitone's picture

Single- or Double-Buffered Mode

How can I set single- or double-buffered mode of rendering with OpenTK library?
I have tried GL. Flush() method, but clean screen I get.


Comments

Comment viewing options

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

OpenTK only supports double-buffered modes. You will have to render to the backbuffer (this is the default) and use SwapBuffers to present the scene.

For various reasons, modern operating systems do not support single buffering.

Vitone's picture
the Fiddler wrote:

You will have to render to the backbuffer (this is the default)

Can I render the frontbuffer without rendering backbuffer, or set backbuffer as default?

Thanks.

the Fiddler's picture

It is possible, however Windows Vista (and newer OSes) will respond by disabling Aero. Users won't like this at all.

Before you move forward with your design, why do you need to render to the frontbuffer?

To answer your question, you need to use DrawBuffer.