But when I tried to implement the effect to my game, it crashed. I bug-checked it and it seems there is a problem with texture-loading function.
Strangely, that doesn't happen, when I compile the HGE example with the SDK.
Here is my code
- Code: Select all
if(hge->System_Initiate())
{
MP=new MP_Manager();
MP->Initialization(MAGIC_INTERPOLATION_DEFAULT, MAGIC_NOLOOP, MAGIC_CHANGE_EMITTER_AND_PARTICLES , 0);
MP->LoadEmittersFromFile("data/firefings.ptc");
MP->LoadTextures("data/textures",1024,1024,1,0.1f);
MP->CloseFiles();
MP->Stop();
As I said, the ptc file loads right but the texture folder doesn't. What should I do before loading the textures?
Thank you.