Performer class

New Message Reply Date view Thread view Subject view Author view

Anthony Bavuso (a.t.bavuso++at++larc.nasa.gov)
Mon, 1 Nov 1999 15:58:06 -0500


Greetings,

I am just beginning to learn the depths of performer. I have been going
though some of the example programs, namely perfly and dorbie's aqua and I
have noticed that all startup performer basically using C and not taking
advantage of any C++ syntax when they are both C++ programs.
Why in the example programs is there not a Performer class? Ideally you'd
like to have something like this:
void main()
{
Performer myPerformer;
FlightSim myFlightSim(&myPerformer);
}

Where both the Performer and FlightSim classes have their own execution
threads. The Performer class would take care of all initialization and
access to the scene graph.
Is there a good reason not to have a Performer class? I am thinking that
maybe some of the callbacks might be a problem to include as class members.
Has anyone on this list successfully written a Performer class? And could
someone explain why such a design was not used in the example programs,
specifically in aqua?
Thanks.


New Message Reply Date view Thread view Subject view Author view

This archive was generated by hypermail 2.0b2 on Mon Nov 01 1999 - 12:51:41 PST

This message has been cleansed for anti-spam protection. Replace '++at++' in any mail addresses with the '@' symbol.