Reactor.BillboardParticleEmitter.LoadContent C# (CSharp) Method

LoadContent() public method

public LoadContent ( ) : void
return void
        public void LoadContent()
        {
            m_vDec = new VertexDeclaration(BillboardParticleElement.VertexElements);

            shader = REngine.Instance._resourceContent.Load<Effect>("Billboard");

            myLastpos = targetPos;
        }

Usage Example

 internal void CreateEmitter(CONST_REACTOR_PARTICLETYPE type)
 {
     _type = type;
     if (type == CONST_REACTOR_PARTICLETYPE.Billboard)
     {
         _emitter = new BillboardParticleEmitter();
         _emitter.LoadContent();
     }
     else if (type == CONST_REACTOR_PARTICLETYPE.Point)
     {
         _psystem = new PointParticleSystem(REngine.Instance._game);
         _psystem.Initialize();
     }
 }