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