OnPreRender() Method??

If you are a new Irrlicht Engine user, and have a newbie-question, this is the forum for you. You may also post general programming questions here.
Post Reply
AbsoluteCPP
Posts: 8
Joined: Fri Aug 27, 2010 3:41 pm
Location: Multan, Pakistan

OnPreRender() Method??

Post by AbsoluteCPP »

I am searching "OnPreRender()" method, where it actually defines and implemented but unable to find.

Please help me,
I have read the documentation for the
class irr::scene::IAnimatedMeshSceneNode;
class irr::scene::ISceneNode;

but still not found that..
Can't Be Tamed
Iyad
Posts: 140
Joined: Sat Mar 07, 2009 1:18 am
Location: Montreal, Canada

Post by Iyad »

http://www.irrlicht3d.org/wiki/index.ph ... PostRender

They changed OnPreRender for OnPostRender...
#include <Iyad.h>
Acki
Posts: 3496
Joined: Tue Jun 29, 2004 12:04 am
Location: Nobody's Place (Venlo NL)
Contact:

Post by Acki »

look for OnRegisterSceneNode() !!! ;)
while(!asleep) sheep++;
IrrExtensions:Image
http://abusoft.g0dsoft.com
try Stendhal a MORPG written in Java
AbsoluteCPP
Posts: 8
Joined: Fri Aug 27, 2010 3:41 pm
Location: Multan, Pakistan

Post by AbsoluteCPP »

Code: Select all

virtual void irr::scene::ISceneNode::OnAnimate  ( u32  timeMs  )  [inline, virtual] 

OnAnimate() is called just before rendering the whole scene. 

Nodes may calculate or store animations here, and may do other useful things, depending on what they are. Also, OnAnimate() should be called for all child scene nodes here. This method will be called once per frame, independent of whether the scene node is visible or not. 
and

Code: Select all

virtual void irr::scene::ISceneNode::OnRegisterSceneNode  (   )  [inline, virtual] 

This method is called just before the rendering process of the whole scene. 

Nodes may register themselves in the render pipeline during this call, precalculate the geometry which should be renderered, and prevent their children from being able to register themselves if they are clipped by simply not calling their OnRegisterSceneNode method. If you are implementing your own scene node, you should overwrite this method with an implementation code looking like this: 
'OnRegisterSceneNode' is the method that called once before a frame starts to render, am i right??
In fact i want to handle those nodes that are currently visible..
Can't Be Tamed
Post Reply