Frame buffer objects

r_framebuffer_allocate

void *r_framebuffer_allocate(uint *buffers, uint buffer_count, uint depth_buffer, uint target);

Description: Creates a FBO form an array of textures and/or a depth/stencil buffer. All buffers has to be of the same size. it will return -1 if the different texture and depth formats are not renderable or compatible.

r_framebuffer_free

void r_framebuffer_free(void *fbo);

Description: Free a Frame buffer object.

r_framebuffer_bind

void r_framebuffer_bind(void *id);

Description: Binds a frame buffer object

r_framebuffer_id

uint r_framebuffer_id(void *fbo);

Description: extract frame buffer id

r_framebuffer_clear

void r_framebuffer_clear(float red, float green, float blue, float alpha, boolean color, boolean depth_stencil);

Description: Clear the current frame buffer oblect or screenbuffer.