Frame buffer objects

r_framebuffer_allocate

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

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(uint fbo);

Description: Free a Frame buffer object.

r_framebuffer_bind

void r_framebuffer_bind(uint id);

Description: Binds a frame buffer object

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.