varollo.asepriteimporter.mg.drawframecounter - Varollo/aseprite-importer GitHub Wiki

< Back


DrawFrameCounter

Namespace: Varollo.AsepriteImporter.MG

Counter used by a AsepriteAnimator.
Count changes during the method, Counts Draw calls.

public class DrawFrameCounter : DrawCounterBase, IAnimationCounter, Microsoft.Xna.Framework.IGameComponent, Microsoft.Xna.Framework.IDrawable

Inheritance ObjectDrawCounterBaseDrawFrameCounter
Implements IAnimationCounter, IGameComponent, IDrawable

Properties

DrawOrder

public int DrawOrder { get; }

Property Value

Int32

Visible

public bool Visible { get; }

Property Value

Boolean

Constructors

DrawFrameCounter(Game, Int32)

public DrawFrameCounter(Game game, int drawOrder)

Parameters

game Game

drawOrder Int32

DrawFrameCounter(GameComponentCollection, Int32)

public DrawFrameCounter(GameComponentCollection components, int drawOrder)

Parameters

components GameComponentCollection

drawOrder Int32

Methods

Count(GameTime)

protected double Count(GameTime gameTime)

Parameters

gameTime GameTime

Returns

Double

Events

DrawOrderChanged

public event EventHandler<EventArgs> DrawOrderChanged;

VisibleChanged

public event EventHandler<EventArgs> VisibleChanged;

< Back

⚠️ **GitHub.com Fallback** ⚠️