#region CPL License
/*
Nuclex Framework
Copyright (C) 2002-2009 Nuclex Development Labs
This library is free software; you can redistribute it and/or
modify it under the terms of the IBM Common Public License as
published by the IBM Corporation; either version 1.0 of the
License, or (at your option) any later version.
This library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
IBM Common Public License for more details.
You should have received a copy of the IBM Common Public
License along with this library
*/
#endregion
using System;
using System.Collections.Generic;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;
using Nuclex.Graphics.Batching;
namespace Nuclex.Graphics.SpecialEffects.Particles.HighLevel {
/// Provides services for rendering and updating particle systems
public interface IParticleSystemService {
/// Adds a particle system to be processed by the manager
///
/// Type of particles being stored in the particle system
///
///
/// Type of vertices that will be generated from the particles
///
///
/// Particle system that will be added to the manager
///
/// Method used to detect dead particles
///
/// Particle renderer that will turn the particles into vertices and send
/// them to a primitive batch for rendering
///
void AddParticleSystem(
ParticleSystem particleSystem,
ParticleSystem.PrunePredicate pruneDelegate,
IParticleRenderer renderer
)
where ParticleType : struct
where VertexType : struct, IVertexType;
/// Removes a particle system from the manager
///
/// Type of particles being stored in the particle system
///
///
/// Particle system that will be removed from the manager
///
void RemoveParticleSystem(
ParticleSystem particleSystem
) where ParticleType : struct, IVertexType;
}
} // namespace Nuclex.Graphics.SpecialEffects.Particles.HighLevel