Пример #1
0
        protected override void ApplyDrawNode(DrawNode node)
        {
            SpriteDrawNode n = node as SpriteDrawNode;

            n.ScreenSpaceDrawQuad = ScreenSpaceDrawQuad;
            n.Texture             = Texture;
            n.WrapTexture         = WrapTexture;
            n.Game = Game;

            base.ApplyDrawNode(node);
        }
Пример #2
0
        protected override void ApplyDrawNode(DrawNode node)
        {
            SpriteDrawNode n = (SpriteDrawNode)node;

            n.ScreenSpaceDrawQuad  = ScreenSpaceDrawQuad;
            n.DrawRectangle        = DrawRectangle;
            n.Texture              = Texture;
            n.WrapTexture          = WrapTexture;
            n.InflationAmount      = inflationAmount;
            n.TextureShader        = textureShader;
            n.RoundedTextureShader = roundedTextureShader;

            base.ApplyDrawNode(node);
        }