public static void Remove(SpriteNode pSpriteBatchNode) { SpriteNodeMan pSpriteNodeMan = pSpriteBatchNode.pBackSpriteNodeMan; Debug.Assert(pSpriteNodeMan != null); pSpriteNodeMan.Remove(pSpriteBatchNode); }
public static void Remove(SpriteNode pSpriteBatchNode) { Debug.Assert(pSpriteBatchNode != null); SpriteNodeMan pSpriteNodeMan = pSpriteBatchNode.GetSBNodeMan(); Debug.Assert(pSpriteNodeMan != null); pSpriteNodeMan.Remove(pSpriteBatchNode); }
public void Set(SpriteBase pNode, SpriteNodeMan _pSpriteNodeMan) { this.pSpriteBase = pNode; // Set the back pointer // Allows easier deletion in the future this.pSpriteBase.SetSpriteNode(this); this.pBackSpriteNodeMan = _pSpriteNodeMan; }
public void Set(SpriteBase pNode, SpriteNodeMan _pSpriteNodeMan) { Debug.Assert(pNode != null); this.pSpriteBase = pNode; // Set the back pointer // Allows easier deletion in the future Debug.Assert(pSpriteBase != null); this.pSpriteBase.SetSpriteNode(this); Debug.Assert(_pSpriteNodeMan != null); this.pBackSpriteNodeMan = _pSpriteNodeMan; }
public static void Draw() { SpriteBatch pSpriteBatch = (SpriteBatch)SpriteBatchMan.pActiveSBMan.baseGetActive(); while (pSpriteBatch != null) { if (pSpriteBatch.bRenderEnabled == true) { SpriteNodeMan pSBNodeMan = pSpriteBatch.GetSpriteNodeMan(); Debug.Assert(pSBNodeMan != null); pSBNodeMan.Draw(); } pSpriteBatch = (SpriteBatch)pSpriteBatch.pNext; } }
public static void Draw() { Debug.Assert(pMan != null); // walk through the list and render SpriteBatch pSpriteBatch = (SpriteBatch)pMan.poActive; while (pSpriteBatch != null) { SpriteNodeMan pSBNodeMan = pSpriteBatch.GetSpriteNodeMan(); Debug.Assert(pSBNodeMan != null); // Kick the can pSBNodeMan.Draw(); pSpriteBatch = (SpriteBatch)pSpriteBatch.pNext; } }
public static void Draw() { //SpriteBatchMan pMan = SpriteBatchMan.privGetInstance(); SpriteBatchMan pMan = SpriteBatchMan.pActiveSBMan; Debug.Assert(pMan != null); SpriteBatch pSpriteBatch = (SpriteBatch)pMan.baseGetActive(); while (pSpriteBatch != null) { SpriteNodeMan pSBNodeMan = pSpriteBatch.GetSBNodeMan(); Debug.Assert(pSBNodeMan != null); if (pSpriteBatch.drawSprite == true) { pSBNodeMan.Draw(); } pSpriteBatch = (SpriteBatch)pSpriteBatch.pNext; } }
public SpriteNode() : base() { this.pSpriteBase = null; this.pBackSpriteNodeMan = null; }
public void Wash() { this.pSpriteBase = null; this.pBackSpriteNodeMan = null; }