forgot to implement - woops!
This commit is contained in:
parent
25c08c807a
commit
ec6896ba63
|
@ -452,6 +452,12 @@ namespace Blarg.GameFramework.Graphics
|
||||||
{
|
{
|
||||||
if (!_hasBegunRendering)
|
if (!_hasBegunRendering)
|
||||||
throw new InvalidOperationException();
|
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)
|
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)
|
||||||
|
|
Reference in a new issue