Callbacks which Blitz3D and BlitzPlus can't do?
Blitz3D Forums/Blitz3D Programming/Callbacks which Blitz3D and BlitzPlus can't do?
| ||
Hi all, Some posts say "callbacks which Blitz3D and BlitzPlus can't do". What is callbacks? Is it very important to programming? Thanks in advance. Sammy :) |
| ||
Callbacks are ordinary functions that you can pass to an API for example. One use might be a physics api. ;) Instead of repeatedly querying the api if a collision has occured the api will instead call that function when it happens. |
| ||
they usually are used when a function needs to be notified that that something has happened or that some code has finished running, and has provided the caller with whatever data it needs to continue... ... at least that's what i think it does :) --Mike |