Gambas Documentation - /comp/gb.opengl/gl/genframebuffersext

/comp/gb.opengl/gl/genframebuffersext

# Gl.GenFramebuffersEXT (gb.opengl)

Static Function GenFramebuffersEXT ( Count As Integer ) As Integer[]

Generate framebuffer object names.

### Parameters

n

  Specifies the number of framebuffer object names to generate.

ids

  Specifies an array in which the generated framebuffer object names are stored.

### Description

Gl.GenFramebuffers returns n framebuffer object names in ids. There is no guarantee that the names form a contiguous set of integers; however, it is guaranteed that none of the returned names was in use immediately before the call to Gl.GenFramebuffers.

Framebuffer object names returned by a call to Gl.GenFramebuffers are not returned by subsequent calls, unless they are first deleted with Gl.DeleteFramebuffers.

The names returned in ids are marked as used, for the purposes of Gl.GenFramebuffers only, but they acquire state and type only when they are first bound.

### Errors

Gl.INVALID_VALUE is generated if n is negative.

### See also

Gl.BindFramebuffer, Gl.DeleteFramebuffers

See original documentation on OpenGL website