public TexturedPolygonRenderer(string assetURL, float scale = 1f)
        {
            _image = new ImageRenderer(assetURL);
            _scale = scale;

            AddNode(_image);
        }
        public InfiniteSprite(string url)
        {
            _url = url;
            _color = Color.White;

            AddNode(_image = new ImageRenderer(_url));
        }
        public override void Setup()
        {
            image = new ImageRenderer(_url);
            AddNode(image);

            base.Setup();
        }
        public PrimitiveRenderer()
        {
            if (_lineImage == null)
            {
                _lineImage = new ImageRenderer("linetexture");
                AddNode(_lineImage);
            }

            _lines = new Queue<Line>();
        }
Example #5
0
 public Sprite(Texture2D texture)
 {
     Image = new ImageRenderer(texture);
 }
Example #6
0
 public Sprite(string url, bool fromStream = false)
 {
     Image = new ImageRenderer(url, (fromStream) ? ImageRendererLoadMode.Steam : ImageRendererLoadMode.Content);
 }
 public TextureGiftWrapRenderer()
 {
     AddNode(_texture = new ImageRenderer("band"));
 }
        public WaterFall()
        {
            AddNode(_waterImage = new ImageRenderer("Scene//Levels//Images//waterfall_distort"));

            XCount = 1;
            YCount = 2;

            Speed = 10;

            //Width = 241;
            //Height = 48;

            ScaleX = 1;
            ScaleY = 1;
        }