Exemple #1
0
        public Snapshot()
        {
            Size           = new Cog.Vector2(256f, 96f);
            Sprite         = SpriteComponent.RegisterOn(this, Program.Pixel);
            Sprite.Origin  = new Vector2(0f, 0f);
            Sprite.Color   = Program.Foreground;
            Sprite.Color.A = 0;
            Sprite.Scale   = Size;

            RegisterEvent <UpdateEvent>(0, Update);
        }
Exemple #2
0
        public Snapshot()
        {
            Size = new Cog.Vector2(256f, 96f);
            Sprite = SpriteComponent.RegisterOn(this, Program.Pixel);
            Sprite.Origin = new Vector2(0f, 0f);
            Sprite.Color = Program.Foreground;
            Sprite.Color.A = 0;
            Sprite.Scale = Size;

            RegisterEvent<UpdateEvent>(0, Update);
        }