Set the callback to use for when rendering this framebuffer.
Set the callback to use for when rendering this framebuffer.
1 function callback
the function to call when drawing this framebuffer. Returning false or nil will prevent the standard rendering behavior of framebuffer objects.
frameBufferInstance:setDrawCallback(function(self, x, y)) -- self refers to the instance of the frameBuffer print("rendering the frame buffer at X/Y coords", x, y) return true end)