2

我在互联网上搜索时发现了用于 3d 游戏浏览器的 webgl 和 opengl es。但是我不明白这两种api有什么区别。

4

1 回答 1

5

WebGL is based on OpenGL-ES, but with the difference that it is written with a HTML5 Canvas being the container for a GL context. Also it defines a new set of JavaScript functions available through a GL context enabled Canvas DOM.

OpenGL-ES is a specification for a plattform independent rendering API. The browser and HTML5 canvas is a plattform, and WebGL is a derivation of OpenGL-ES-2 for this plattform.

于 2012-11-21T10:41:22.280 回答