added some of the texture and framebuffer API