H3DU.FrameBufferInfo
H3DU.FrameBufferInfo(width, height)
Describes a frame buffer. In the HTML 3D Library, each frame buffer consists of a texture of a given size and a renderbuffer of the same size to use as the depth buffer.
Parameters
width
(Type: number)
Width to use for the frame buffer. Throws an error if this value is less than 0. The width will be set to this value rounded up.height
(Type: number)
Height to use for the frame buffer. Throws an error if this value is less than 0. The height will be set to this value rounded up.
Methods
- getHeight
Gets the height to use for the frame buffer. - getWidth
Gets the width to use for the frame buffer. - resize
Changes the width and height of this frame buffer information object.
H3DU.FrameBufferInfo#getHeight()
Gets the height to use for the frame buffer.
Return Value
Return value. (Type: number)
H3DU.FrameBufferInfo#getWidth()
Gets the width to use for the frame buffer.
Return Value
Return value. (Type: number)
H3DU.FrameBufferInfo#resize(width, height)
Changes the width and height of this frame buffer information object.
Parameters
width
(Type: number)
New width to use for the frame buffer. Throws an error if this value is less than 0. The width will be set to this value rounded up.height
(Type: number)
New height to use for the frame buffer. Throws an error if this value is less than 0. The height will be set to this value rounded up.
Return Value
This object. (Type: H3DU.FrameBufferInfo)