Classes

Concepts

Libraries

Objects

contractor »

conversationAnswerData »

engineStatData »

issueData »

playerPlatformSpecialistData »

projectReviewConclusion »

projectReviewRemark »

randomEventData »

statusIcon »

setDrawCallback

Description

Set the callback to use for when rendering this framebuffer.

Arguments

1 function callback

the function to call when drawing this framebuffer. Returning false or nil will prevent the standard rendering behavior of framebuffer objects.

Example

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)