WebGLU 是否具有 WebGL 的所有功能?
“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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
根据源文件,
$W.GL
是:因此,是的。
$W.GL
将包含与标准 WebGL 上下文相同的所有功能,因为它是一个 WebGL 上下文。According to the source file,
$W.GL
is:As such, yes.
$W.GL
will contain all the same functions as a standard WebGL context because it is a WebGL context.