PDA

View Full Version : OpenGL Question (VisualBasic!!)



08-18-2001, 07:08 AM
Hello,

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

mikael_aronsson
08-19-2001, 02: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.... ?

Mikael

Pat
08-20-2001, 11:56 AM
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.