为渲染缓冲区对象的图像分配显存空间,包括格式和维度大小。
void glRenderbufferStorage( GLenum target,
GLenum internalformat,
GLsizei width,
GLsizei height);
target
Specifies a binding target of the allocation for glRenderbufferStorage function. Must be GL_RENDERBUFFER.
指定渲染缓冲区对象的操作类型,必须是GL_RENDERBUFFER。
internalformat
Specifies the internal format to use for the renderbuffer object's image.
指定渲染缓冲区对象的图像的内部格式。都有哪些?GL_DEPTH24_STENCIL8、GL_RGBA、GL_DEPTH_COMPONENT24
width
Specifies the width of the renderbuffer, in pixels.
指定渲染缓冲区对象的图像的宽度方向像素数
height
Specifies the height of the renderbuffer, in pixels.
指定渲染缓冲区对象的图像的高度方向像素数