Exemplo n.º 1
0
        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);
        }
Exemplo n.º 2
0
 internal void AddSprite(MyVertexFormatSpritePositionTextureRotationColor sprite)
 {
     MySpritesRenderer.StackTop().m_instances.Add(sprite);
     Count ++;
 }
Exemplo n.º 3
0
        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);
        }