* - Primitive system rewrite, start of converting old code to use the newer system. * - Tweaks to the primitive manager to match the old one. - Finished porting old uses of the primitives to the new ones. - Improved XML documentation on the newer ones. * Delete en-US.hjson * Remove cosmic shiv auto-entry * - Indentation fixes. * - Remove interface access modifiers
21 lines
637 B
C#
21 lines
637 B
C#
using Microsoft.Xna.Framework.Graphics;
|
|
|
|
namespace CalamityMod.Graphics.Primitives
|
|
{
|
|
/// <summary>
|
|
/// Use to sucessfully render primitives with pixelation with an NPC or Projectile.
|
|
/// </summary>
|
|
public interface IPixelatedPrimitiveRenderer
|
|
{
|
|
/// <summary>
|
|
/// The layer to render the primitive(s) to.
|
|
/// </summary>
|
|
PixelationPrimitiveLayer LayerToRenderTo => PixelationPrimitiveLayer.BeforeProjectiles;
|
|
|
|
/// <summary>
|
|
/// Render primitives that use pixelation here.
|
|
/// </summary>
|
|
void RenderPixelatedPrimitives(SpriteBatch spriteBatch);
|
|
}
|
|
}
|