registerRedrawViewsCallback.. Why do you need it?

So I came across a script Anubis did for a user here.. and I have no idea why you would need it.. I mean, what is the difference between using it and not?

Why and when would you need to use registerRedrawViewsCallback and unregisterRedrawViewsCallback?

Comments

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
Graph's picture

registerRedrawViewsCallback r

registerRedrawViewsCallback
registers a function to be called every tim the (any) viewport is redrawn
in this particular case i have no clue why to use it but when using gw methods (draw stuff on viewport) or making custom visibility/viewCulling stuff you need it.

Raphael 'Insanto' Steves
http://Graph.Net84.Net

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.