forgot to implement - woops!

This commit is contained in:
Gered 2013-08-31 20:49:21 -04:00
parent 25c08c807a
commit ec6896ba63

View file

@ -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)