语法
WebGLFramebuffer gl.createFramebuffer();
参数
None.
返回值
样例
创建一个帧缓冲区
var canvas = document.getElementById('canvas');
var gl = canvas.getContext('webgl');
var framebuffer = gl.createFramebuffer();
说明
Specification | Status | Comment |
---|---|---|
WebGL 1.0 createFramebuffer |
Recommendation | 初始定义. |
OpenGL ES 2.0 glGenFramebuffers |
Standard | OpenGL API手册(类似). |
浏览器兼容性
BCD tables only load in the browser
The compatibility table in this page is generated from structured data. If you'd like to contribute to the data, please check out https://github.com/mdn/browser-compat-data and send us a pull request.