Draw into Buffer (instade rendering on windows/control)
Hi all.
I'm new in OpenGL/ Tao developing.
I have an application which displays image and drawing same simple drawing(Lines ,Shape ,etc.) on it(Using Graphics).
In this point of development i want to draw some complicated drawing (VRML base) , therefor i decided to use the Toa (OpenGl) to draw those complicated drawing.
My problem is that i want to draw those complicated drawing (using Tao)into same buffer( which will be like a new layer on my picture). I'll use this buffer and the native Graphics capabilities to draw it over my picture.
I didn't find any way to perform it.
Did someone already draw into buffer using Tao/OpenGL?
Is the only way to use Tao/OpenGl is to draw to window/control?
Best regards , Leon.

If I understand correctly,
If I understand correctly, you want to draw into a Graphics object directly? I'm afraid you cannot do that. You *can* use OpenGL inside a System.Windows.Forms.Control (check Tao.Platform.Windows.SimpleOpenGLControl), but you cannot mix System.Drawing with Tao.OpenGl.
What you could do, is render through OpenGL to an offscreen/invisible buffer, then readback the data of that buffer into a System.Drawing.Bitmap, which can be used with System.Drawing.Graphics. This readback operation can be quite slow, but depending on the size of the OpenGL viewport, it might work.
------
OpenTK