Cascade.ParticleManager.Draw C# (CSharp) Method

Draw() public method

public Draw ( GraphicsDevice GraphicsDevice, GraphicsDeviceManager graphics, SpriteBatch spriteBatch, RenderTarget2D defaultRenderTarget, float width, float height ) : void
GraphicsDevice GraphicsDevice
graphics GraphicsDeviceManager
spriteBatch Microsoft.Xna.Framework.Graphics.SpriteBatch
defaultRenderTarget Microsoft.Xna.Framework.Graphics.RenderTarget2D
width float
height float
return void
        public void Draw(GraphicsDevice GraphicsDevice, GraphicsDeviceManager graphics, SpriteBatch spriteBatch, RenderTarget2D defaultRenderTarget, float width, float height)
        {
            
            //GraphicsDevice.SetVertexBuffer(new VertexBuffer(
            //GraphicsDevice.DrawIndexedPrimitives(PrimitiveType.TriangleList, 0, 0, numVertices, 0, primitiveCount);
            //GraphicsDevice.DrawUserPrimitives<CascadeVertex>(PrimitiveType.TriangleList, Vertices, 0, primitiveCount);
            foreach (var p in particles)
            {
                p.Draw(GraphicsDevice, graphics, spriteBatch, defaultRenderTarget, width, height);
            }
        }
    }