From 33058f2b292b3a581333bdfb21b8f671898c5060 Mon Sep 17 00:00:00 2001 From: Peter Bengtsson Date: Tue, 8 Dec 2020 14:40:17 -0500 Subject: initial commit --- files/zh-cn/web/api/webglframebuffer/index.html | 61 +++++++++++++++++++++++++ 1 file changed, 61 insertions(+) create mode 100644 files/zh-cn/web/api/webglframebuffer/index.html (limited to 'files/zh-cn/web/api/webglframebuffer') diff --git a/files/zh-cn/web/api/webglframebuffer/index.html b/files/zh-cn/web/api/webglframebuffer/index.html new file mode 100644 index 0000000000..089d3a952f --- /dev/null +++ b/files/zh-cn/web/api/webglframebuffer/index.html @@ -0,0 +1,61 @@ +--- +title: WebGLFramebuffer +slug: Web/API/WebGLFramebuffer +translation_of: Web/API/WebGLFramebuffer +--- +
{{APIRef("WebGL")}}
+ +

WebGLFramebuffer 接口时 WebGL API 的一部分,它提供了一个缓冲区的集合,这些缓冲区可以作为一个整体用作渲染操作的目标缓冲区。

+ +

摘要

+ +

WebGLFramebuffer 对象的内容不能直接访问,因此该对象没有定义任何用于操作其自身内容的方法和属性。需要使用 WebGLFramebuffer 对象时,请使用 {{domxref("WebGLRenderingContext")}} 对象的以下方法:

+ + + +

示例

+ +

创建一个帧缓冲

+ +
var canvas = document.getElementById('canvas');
+var gl = canvas.getContext('webgl');
+var buffer = gl.createFramebuffer();
+
+ +

说明

+ + + + + + + + + + + + + + +
说明状态备注
{{SpecName('WebGL', "#5.5", "WebGLFramebuffer")}}{{Spec2('WebGL')}}Initial definition.
+ +

浏览器兼容性

+ + + +

{{Compat("api.WebGLFramebuffer")}}

+ +

参见

+ + -- cgit v1.2.3-54-g00ecf