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; } }