# Class cocos.gl_framebuffer_object.FramebufferObject

Wrapper for framebuffer objects. See

http://oss.sgi.com/projects/ogl-sample/registry/EXT/framebuffer_object.txt

API is not very OO, should be improved.

## Methods

| __init__(self) Create a new framebuffer object
| bind(self) Set FBO as current rendering target
| unbind(self) Set default framebuffer as current rendering target
| texture2d(self, texture) Map currently bound framebuffer (not necessarily self) to texture
| check_status(self) Check that currently set framebuffer is ready for rendering
| __del__(self) Delete the framebuffer from the GPU memory