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

WebGL APIWebGLRenderingContext.deleteRenderbuffer() 方法用来删除给定的 {{domxref("WebGLRenderbuffer")}} 对象. 如果渲染缓冲区已被删除,则此方法无效.

+ +

语法

+ +
void gl.deleteRenderbuffer(renderbuffer);
+
+ +

参数

+ +
+
renderbuffer
+
将要删除的{domxref("WebGLRenderbuffer")}} 对象.
+
+ +

返回值

+ +

None.

+ +

示例

+ +

删除一个渲染缓冲区

+ +
var canvas = document.getElementById('canvas');
+var gl = canvas.getContext('webgl');
+var renderbuffer = gl.createRenderbuffer();
+
+// ...
+
+gl.deleteRenderbuffer(renderbuffer);
+ +

说明

+ + + + + + + + + + + + + + + + + + + +
SpecificationStatusComment
{{SpecName('WebGL', "#5.14.7", "deleteRenderbuffer")}}{{Spec2('WebGL')}}初始定义.
{{SpecName('OpenGL ES 2.0', "glDeleteRenderbuffers.xml", "glDeleteRenderbuffers")}}{{Spec2('OpenGL ES 2.0')}}OpenGL API手册(类似).
+ +

浏览器兼容性

+ + + +

{{Compat("api.WebGLRenderingContext.deleteRenderbuffer")}}

+ +

另见

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