Re: Performer class

New Message Reply Date view Thread view Subject view Author view

Sylvain Mayer (mayer++at++cae.ca)
Mon, 01 Nov 1999 16:39:57 -0500


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.

Performer is an API, not an application.

You have to make the C++ classes that will end up being your application and
that will look and behave like you want (reference to the classes you're talking
about).

As for the sample application (perfly, aqua, etc), again, they don't exist to
show us how to design and code in C++, they are there to show us how to use the
Performer C++ API (which is a totally different thing).

regards, Sylvain
________________________________________
Sylvain Mayer, 3D Graphics Developer
Graphics Simulation Technology
Display Eng. & Special Projects
CAE Electronics Ltd. (http://www.cae.ca)
mailto:mayer++at++cae.ca
Tel: (514) 341-6780 Ext: 3065
Fax: (514) 734-5618

*** For the latest Vis-Sim related info check out: http://www.vis-sim.org


New Message Reply Date view Thread view Subject view Author view

This archive was generated by hypermail 2.0b2 on Mon Nov 01 1999 - 13:43:17 PST

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