Re: [gtkmm] Re: How to do call a function once every 'frame'? And some documentation feedback.



On Sat, 09 Nov 2002 16:20:43 +0100
Dirk Gerrits <dirk gerrits homeip net> wrote:

> I think having read that tutorial section is a DISadvantage here.
Hm. I have difficulties understanding your point of view.
Personally, I knew, when I read the documentation of SignalIdle, from the tutorial that connect() is the method to connect a sigc-slot to a signal and had no problems understanding the wording of the reference.

> > Yet the classes you mentioned are the wrong approach to this problem. 
> > The idle handler is very unreliable and the MainLoop is something 
> > quite different.
> 
> How should I know that?
I didn't mean to blame you for not knowing that :) I just wanted to mention that your thoughts have taken the wrong direction.

> But if I understand correctly, with Glib::signal_timeout() the whole 
> DoFrame function becomes unnecessary:
> 
> Glib::signal_timeout().connect(SigC::slot(&DoComputation), ms_per_tick);
> That's just plain cool! :) Thanks.
The pleasure is mine.
 
Leslie



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]