Angus Dorbie (dorbie++at++sgi.com)
Mon, 01 Nov 1999 13:10:09 -0800
It is simply not object oriented or good programming practice to wrap
everything up in a monolithic C++ class (in my opinion) and that appears
to be what you want to see.
My aqua sample does use C++ syntax, it has it's own classes where
appropriate, the 'pov' class for example, and it creates C++ objects and
calls their methods.
Cheers,Angus.
Anthony Bavuso wrote:
>
> 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.
>
> -----------------------------------------------------------------------
> List Archives, FAQ, FTP: http://www.sgi.com/software/performer/
> Submissions: info-performer++at++sgi.com
> Admin. requests: info-performer-request++at++sgi.com
-- "Success is the ability to go from one failure to another with no loss of enthusiasm." - Winston Churchill.Performer + OpenGL examples and tutors: http://www.dorbie.com/
This archive was generated by hypermail 2.0b2 on Mon Nov 01 1999 - 13:10:16 PST