ANd how do i use it correctly now? ssems i got my first problem with the garbage collector
Got a message that WrapperDelegateParticle did a callback(or however i have to translate it o.O), and it needs to be guranteed that objects are still available..etc. A bit tired and fully translating the germantext(wow ms c# really has long messages :D) is a bit to much now.
currently i have those 3 Methods for testing:
Code:
private static void ParticleLineEvent(IntPtr AP)
{
PARTICLE P = PARTICLE.createFromPointer(AP);
P.lifespan = 0;
}
private static void ParticleLine(IntPtr AP)
{
PARTICLE P = PARTICLE.createFromPointer(AP);
P.lifespan = 1;
P.event_ = ParticleLineEvent;
}
public static void DrawLine3DEx(Vector AFrom, Vector ATo, Color AColor, int AAlpha, int ASize)
{
PARTICLE.effect(ParticleLine, 1, AFrom, (Vector) ATo.vec_sub(AFrom));
}
runs well for some frames, then it jumps out of the program into engine_frame
MY Website with news of my projects: (for example my current Muliplayer Bomberman, GenesisPrecompiler for LiteC and TileMaster, an easy to use Tile editor) Sparetime-Development