【问题标题】:How to enable WebGL support in Delphi 10.1 webbrowser component?如何在 Delphi 10.1 webbrowser 组件中启用 WebGL 支持?
【发布时间】:2019-04-17 06:59:46
【问题描述】:

我们需要在我们的 delphi 10.1 应用程序中播放 3D 查看器。为此,我们使用 Delphi TWebBrowser 组件来模拟浏览器。但是 Delphi 中的 TWebBrowser 不支持 WebGL。有什么办法可以解决这个问题吗?

【问题讨论】:

  • 您应该清楚您使用的是 VCL 还是 FMX,因为 TWebBrowser 对于每个人来说完全不同。

标签: delphi webgl delphi-10.1-berlin twebbrowser


【解决方案1】:

您可以使用 Chromium Embedded Framework (CEF),而不是封装 Internet Explorer 的 TWebBrowser 组件。
但是为了记住这一点,您必须为您的应用提供额外的 DLL。

请参阅here vor V3 或 here 了解 V4。

【讨论】:

  • 即如果OP使用的是VCL,则没有指定。
  • CEF4Delphi 具有 VCL 和 FMX 组件,可以嵌入带有 WebGL 的 Chromium 浏览器,但仅限于 Windows。 thedh 应该澄清他/她的应用程序是否在 Windows 或其他平台上运行。
猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2012-12-09
相关资源
最近更新 更多