コード例 #1
0
        public static SpriteVertexSave FromSpriteVertex(SpriteVertex spriteVertex)
        {
            SpriteVertexSave svs = new SpriteVertexSave();
            svs.TextureU = spriteVertex.TextureCoordinate.X;
            svs.TextureV = spriteVertex.TextureCoordinate.Y;

            return svs;
        }
コード例 #2
0
        internal SpriteVertex(SpriteVertex vertex)
        {
            Position          = vertex.Position;
            TextureCoordinate = vertex.TextureCoordinate;
            Scale             = vertex.Scale;
            ScaleVelocity     = vertex.ScaleVelocity;

            Color     = vertex.Color;
            ColorRate = vertex.ColorRate;
        }
コード例 #3
0
ファイル: SpriteVertex.cs プロジェクト: vchelaru/FlatRedBall
        internal SpriteVertex(SpriteVertex vertex)
        {
            Position = vertex.Position;
            TextureCoordinate = vertex.TextureCoordinate;
            Scale = vertex.Scale;
            ScaleVelocity = vertex.ScaleVelocity;

            Color = vertex.Color;
            ColorRate = vertex.ColorRate;
        }