WebGLU 是否具有 WebGL 的所有功能?

发布于 2024-12-28 20:42:06 字数 421 浏览 2 评论 0原文

WebGLU 既是一组低级实用程序,也是一个用于开发基于 WebGL 的应用程序的高级引擎。 ..通过公开原始 GL 对象以及许多用于使用它和 WebGL API 的低级函数。”

这是否意味着 WebGLU 具有与 WebGL 相同的功能(甚至更多)?查看代码,我看到 WebGLU 使用 WebGL 的clearColor,如下所示:

$W.GL.clearColor(R, G, B, A);

那么,如果我想使用一个 WebGL 函数 foo(),我可以通过 WebGLU 通过执行

$W.GL.foo()

或类似的操作来使用它吗?是这样的吗?

"WebGLU is both a set of low-level utilities and a high-level engine for developing WebGL based applications ... by exposing the raw GL object and also many lower-level functions for working with it and the WebGL API."

Does this mean that WebGLU has the same functions as WebGL (plus more)? Looking at the code, I see for example that WebGL's clearColor is used by WebGLU like so:

$W.GL.clearColor(R, G, B, A);

So, if there is a WebGL function foo() that I want to use, can I use it via WebGLU by just doing

$W.GL.foo()

or something similar? Is that how this works?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

谁人与我共长歌 2025-01-04 20:42:06

根据源文件,$W.GL 是:

/** The raw WebGL object for low level work. */

因此,是的。 $W.GL 将包含与标准 WebGL 上下文相同的所有功能,因为它是一个 WebGL 上下文。

According to the source file, $W.GL is:

/** The raw WebGL object for low level work. */

As such, yes. $W.GL will contain all the same functions as a standard WebGL context because it is a WebGL context.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文