Deprecated: str_replace(): Passing null to parameter #1 ($search) of type array|string is deprecated in /var/www/vhosts/gamedevstudiogame.com/httpdocs/classes/client.php on line 124

Deprecated: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in /var/www/vhosts/gamedevstudiogame.com/httpdocs/classes/client.php on line 124
Game dev studio

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)