Is there some kind of WebGL manual that lists all the functions etc. ? I tried Google but found nothing.
相关问题
- Is there a way to report errors in Apple documenta
- debugging webgl in chrome
- SecurityError for same-origin image texImage2D
- What are VertexIndices in webgl?
- Is clipping done automatically in Three.js?
相关文章
- Add XML documentation / comments to properties/fie
- HelpInsight documentation in Delphi 2007
- How to get OpenGL version using Javascript?
- Why do I need to define a precision value in webgl
- How do I document a constructor for a class using
- How to change one texture image of a 3d model(maya
- Why do my three.js examples not load properly?
- Facebook Android SDK request parameters: where fin
You should use Giles Thomas' guide: http://www.learningwebgl.com -- This is how I got started.
There is no manual for WebGL, but the official specification serves as one. To use it as such, you have to understand the following:
WebGL is a JavaScript interface for browsers to OpenGL ES 2.0, which is a graphics API for embedded systems.* Therefore, the WebGL specification doesn't provide the full description of its interfaces. Instead, it refers to the OpenGL ES 2.0 specification and specifies only the differences between the two.
The interfaces that collectively make up the WebGL API are defined in Section 5 of the specification. You can get an overview of them in the table of contents. Sections 5.14.1 and onwards list the attributes and methods of the WebGL context, which is the information that you are most likely interested in. Next to each method signature, there is a link to the corresponding OpenGL ES 2.0 manual entry, where you can find detailed information about them. When using the OpenGL ES 2.0 manual, you have to keep in mind that there are some minor differences between the two APIs. Fortunately, these differences are specified right below the signatures for each method individually and they are summarised in Section 6 of the specification.
*In this regard, a browser can be thought of as an embedded system within a general purpose computer.
Personally I prefer these ones but then I'm biased because I wrote them. Unlike the other tutorials they don't gloss over anything and don't assume you know 3D math already. They also aren't based on OpenGL tutorials that are 20 years out of date and not really appropriate for WebGL.
There is also the official manual — the WebGL specification:
https://www.khronos.org/registry/webgl/specs/1.0/
This tutorial could help you a lot as it did in my case.
http://www.webglacademy.com/
Here you could start from level 0. After completing this tutorial you could use Three.js library to enhance your WebGl content.
https://threejs.org/examples/
WebGL Cheat Sheet
WebGL Quick Reference Card