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