Method GL.GLSLUtils.RenderBuffer()->create()
- Method
create
GL.GLSLUtils.RenderBuffer GL.GLSLUtils.RenderBuffer(intw,inth,inttype,booldepth,boolmipmap,boolalpha,int|voidinternal_format,int|voidformat)- Description
Create a new render buffer, with the size given by
wandh, the texture target will betype(generally speaking GL_TEXTURE_2D or GL_TEXTURE_RECTANGLE_ARB, the latter is needed if the size is not a power of two. This is not checked by the create function)depthmipmapandalphaspecifies if the corresponding extra buffers should be created.mipmapis not supported for GL_TEXTURE_RECTANGLE_ARBIf
worhis 0, the actual texture creation is postponed until resize is called. The buffer will not be valid before it has a size.If
internal_formatandformatare specified they are used to override the defaults (GL_RGB[A]16F_ARB and GL_RGB[A] respectively)Setting these also makes the buffer ignore the
alphaparamenter.The
mipmapparameter depends on the existance of the glGenerateMipmapEXT extension.