View Full Version : OpenGL Question (VisualBasic!!)

08-18-2001, 08:08 AM

it is possible to render an OpenGL-Scene into a Picture-Box instead of a Form?

Thanx. http://www.opengl.org/discussion_boards/ubb/smile.gif

08-19-2001, 03:41 AM
Hi !

I don't think so, you need a DIB section buffer to do that, and the picture in VB is a DDB I think, but you can always render to your own image or pbuffer and then copy it to the picture I think.

But maybe there is some VB guru out there that nows a way to do it.... ?


08-20-2001, 12:56 PM
I would assume the answer to this question is yes, but I'm not positive.

Personally, I've created an ActiveX control that draws to a VB UserControl. I've wrapped up all of the necessary code to create/destroy the OpenGL rendering context and I can simply add this control to whatever project I need it. Maybe this would be a better approach for you as well.