SpaceRun.ParticleSystem.Render C# (CSharp) Method

Render() public method

public Render ( GraphicsDeviceManager graphics, Matrix cameraViewMatrix, Matrix cameraProjectionMatrix ) : void
graphics GraphicsDeviceManager
cameraViewMatrix Matrix
cameraProjectionMatrix Matrix
return void
        public override void Render(GraphicsDeviceManager graphics, Matrix cameraViewMatrix, Matrix cameraProjectionMatrix)
        {
            Entity camera = EntityManager.get().cameraEntity;

            SpriteBatch spriteBatch = new SpriteBatch(graphics.GraphicsDevice);
            spriteBatch.Begin();

            foreach (Particle p in particles)
            {
                p.Render(graphics, cameraViewMatrix, cameraProjectionMatrix, this, camera);
            }

            spriteBatch.End();
        }