From ec6896ba635862557aca6a924c3a2b3060f0325d Mon Sep 17 00:00:00 2001 From: gered Date: Sat, 31 Aug 2013 20:49:21 -0400 Subject: [PATCH] forgot to implement - woops! --- Blarg.GameFramework/Graphics/BillboardSpriteBatch.cs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Blarg.GameFramework/Graphics/BillboardSpriteBatch.cs b/Blarg.GameFramework/Graphics/BillboardSpriteBatch.cs index 66c2fe0..32f902d 100644 --- a/Blarg.GameFramework/Graphics/BillboardSpriteBatch.cs +++ b/Blarg.GameFramework/Graphics/BillboardSpriteBatch.cs @@ -452,6 +452,12 @@ namespace Blarg.GameFramework.Graphics { if (!_hasBegunRendering) throw new InvalidOperationException(); + + if (GetRemainingSpriteSpaces() < 1) + AddMoreSpriteSpace(ResizeSpriteIncrement); + + SetSpriteInfo(_currentSpritePointer, type, ref transform, texture, ref offset, width, height, texCoordLeft, texCoordTop, texCoordRight, texCoordBottom, ref color); + ++_currentSpritePointer; } private void SetSpriteInfo(int spriteIndex, BillboardSpriteType type, ref Matrix4x4 transform, Texture texture, ref Vector3 offset, float width, float height, float texCoordLeft, float texCoordTop, float texCoordRight, float texCoordBottom, ref Color color)