Article | 70001027 |
Type | Wish |
Product | Engine |
Version | 7010 |
Date Added | 3/13/2017 12:00:00 AM |
Fixed | 7.7011.0.1 (3/13/2017 12:00:00 AM) |
Submitted by | Josef Gargitter |
Summary
In some virtual machines there are some OpenGL problems with the "drivers" that these machines uses. So the OpenGL is not working properly in these.
Solution
A new method EnsureOpenGLContext of vdDocument.GlobalRenderProperties is exported in version 7011.0.1 that tries to create and initialize the OpenGL context window. Developers that use VMs should add this call in the form load or initialization of the VDF control. As VDF components use hardware acceleration of the OpenGL we strongly recommend to run the VDF-powered 3D applications in physical machines that have good OpenGL support. This method is exported also in the wrapper component in 7.7011.0.2 version, and can be used like (VB6):
... Public WithEvents doc As VectorDraw_Professional.vdDocument ... Private Sub Command1_Click() ... Set doc = VDraw1.ActiveDocument.WrapperObject Dim ensure As Boolean ensure = doc.GlobalRenderProperties.EnsureOpenGLContext .... End Sub