View Full Version : OpenGL Question (VisualBasic!!)
it is possible to render an OpenGL-Scene into a Picture-Box instead of a Form?
08-19-2001, 03:41 AM
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.... ?
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.
Powered by vBulletin® Version 4.2.3 Copyright © 2017 vBulletin Solutions, Inc. All rights reserved.