« Return to Thread: what is renderTick?

Re: what is renderTick?

by Ralph Hauwert :: Rate this Message:

Reply to Author | View in Thread

Actually, it's like this.

BasicView supports startRendering(); stopRendering(); and  
renderSingle();

These functions make sure rendering is handled, and in turn make sure  
the onRenderTick(event:Event); function is called.
To add your own functionality to the basic rendering loop, or even  
remove the normal render calls do this :

override protected function onRenderTick(event:Event):void
{
        //Your functionality.
        super.onRenderTick(event);
}

So it's not a matter of copy paste, it's trying to help developers not  
having to do that kind of basic setup stuff.

Ralph.

On 24 jul 2008, at 11:36, Makc wrote:

> the idea behind the "renderTick" is that there is some sort of clock
> ticking and scene gets redrawn every time it ticks, no matter how much
> changes had actually happened. the "renderTick" is therefor probably
> "timer" or "enterFrame" event handler function name, and has no other
> meaning than demonstrating people copy-pasting skills.
>
> On 7/24/08, gordee <gordee@...> wrote:
>>
>> Hi,
>>
>>
>> Can anyone give me an explanation of renderTick? I have seen it in  
>> peoples
>> script a few times now. What are the pros and cons etc?
>> --
>> View this message in context: http://www.nabble.com/what-is-renderTick--tp18627628p18627628.html
>> Sent from the Papervision3D mailing list archive at Nabble.com.
>>
>>
>> _______________________________________________
>> Papervision3D mailing list
>> Papervision3D@...
>> http://osflash.org/mailman/listinfo/papervision3d_osflash.org
>>
>
> _______________________________________________
> Papervision3D mailing list
> Papervision3D@...
> http://osflash.org/mailman/listinfo/papervision3d_osflash.org


_______________________________________________
Papervision3D mailing list
Papervision3D@...
http://osflash.org/mailman/listinfo/papervision3d_osflash.org

 « Return to Thread: what is renderTick?

LightInTheBox - Buy quality products at wholesale price!