ScriptSpot

Forum topic · General Scripting

registerRedrawViewsCallback.. Why do you need it?

By Herbie · 2010-09-25

Description

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 (1)

Graph · 2010-09-25

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.