static void AddSingleSprite(ShaderResourceView textureSrv, MyVertexFormatSpritePositionTextureRotationColor sprite) { if (StackTop().m_internalBatch.Texture != textureSrv && StackTop().m_internalBatch.Count > 0) { FlushInternalBatch(); } StackTop().m_internalBatch.Texture = textureSrv; StackTop().m_internalBatch.AddSprite(sprite); }
internal void AddSprite(MyVertexFormatSpritePositionTextureRotationColor sprite) { MySpritesRenderer.StackTop().m_instances.Add(sprite); Count ++; }
static void AddSingleSprite(ISrvBindable textureSrv, MyVertexFormatSpritePositionTextureRotationColor sprite) { if (StackTop.m_internalBatch.Texture != textureSrv && StackTop.m_internalBatch.Count > 0) { FlushInternalBatch(); } StackTop.m_internalBatch.Texture = textureSrv; StackTop.m_internalBatch.AddSprite(sprite); }