forked from nkronlage/JavaScripture
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathwebglframebuffer.jsdoc
More file actions
27 lines (19 loc) · 835 Bytes
/
Copy pathwebglframebuffer.jsdoc
File metadata and controls
27 lines (19 loc) · 835 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
WebGLFramebuffer : Object
**WebGLFrameBuffer** describes an intermediate offscreen drawing surface.
The actual content of the surface is stored in a either a
%%WebGLRenderbuffer|**WebGLRenderbuffer**%% or
%%WebGLTexture|**WebGLTexture**%%.
**WebGLFrameBuffer**s are created with
%%WebGLRenderingContext#createFramebuffer|**createFramebuffer()**%%.
Use %%#framebufferTexture2D|**framebufferTexture2D()**%% to associate
the framebuffer with a
**WebGLTexture** that can be used in
subsequent drawing operations.
Use
%%#framebufferRenderbuffer|**framebufferRenderbuffer()**%% to associate
the framebuffer with a
**WebGLRenderingBuffer** if you do not
need to draw the offscreen surface since the graphics
hardware can optimize the render buffer for that case.
Spec:
http://www.khronos.org/registry/webgl/specs/latest/#5.5