Implementing own particle emitter

If you are a new Irrlicht Engine user, and have a newbie-question, this is the forum for you. You may also post general programming questions here.
Post Reply
rikyoh
Posts: 14
Joined: Fri Sep 08, 2006 1:02 pm

Post 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
hybrid
Admin
Posts: 14143
Joined: Wed Apr 19, 2006 9:20 pm
Location: Oldenburg(Oldb), Germany
Contact:

Post 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.
rikyoh
Posts: 14
Joined: Fri Sep 08, 2006 1:02 pm

Post 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
Post Reply