ATNASGDWNGTH
ATNASGDWNGTH

Reputation: 876

what are the difference of between glGenBuffers and glGenFramebuffers and glGenRenderbuffers

the description of them in http://www.khronos.org/opengles/sdk/docs/man/ are almost same. The only difference is the name

Upvotes: 7

Views: 3344

Answers (2)

rivaldo4t
rivaldo4t

Reputation: 165

glGenBuffers creates regular buffers for vertex data, etc.

glGenFrameBuffers creates a framebuffer object primarily used as render targets for offscreen rendering.

glGenRenderBuffers creates a renderbuffer object that are specifically used with framebuffer objects for any depth-testing required.

Upvotes: 8

Michael Dautermann
Michael Dautermann

Reputation: 89509

There's a difference between plain old buffers and frame buffers and render buffers (used in offscreen rendering). The overall functionality of those "glGen__" functions is the same, but they just generate different kinds of buffer object names.

Upvotes: -2

Related Questions