Page 1 of 1

Posted: Thu Oct 05, 2006 8:18 pm
by rikyoh
Hi,

i am trying to make my own particle emitter. I copied the code from the PointEmitter cpp and h files and only changed the name of the class. Now I get an error because he doesn't know of class or namespace "os::", and if i try to include "os.h", I get fatal error "file not found"....

Can somebody help me?

Bye,
Riky

Posted: Thu Oct 05, 2006 11:29 pm
by hybrid
The os.h file is not part of the include directory, but in source/Irrlicht.
And please do not recycle old threads if your problem is rather different than what has been discussed there.

Posted: Fri Oct 06, 2006 5:03 pm
by rikyoh
hybrid wrote:The os.h file is not part of the include directory, but in source/Irrlicht.
Yes. I had a closer look at the code now and learned that I will not need os:: to implement an emitter, its only needed for a Randomizer class there.

But another question: the emitter must implement a method for returning its type, which is element of an enumeration. How do I add an element to that enumeration for my own type without modifying the irrlicht-sources? Is this possible in c++?
hybrid wrote: And please do not recycle old threads if your problem is rather different than what has been discussed there.
Sorry for that. They where talking about deriving a own class from IParticleEmitter, so i thought it is better to reply than start a new thread.

Bye Riky