Esempio n. 1
0
 public ImageSprite(Emugen.OpenTK.Texture texture, Emugen.Image.Primitive.Rect rect, Emugen.Image.Primitive.Color color, Emugen.OpenTK.View.IView view = null)
 {
     if (view == null)
     {
         this.view = Window.Instance.defaultOrthoView;
     }
     else
     {
         this.view = view;
     }
     this.Rect    = rect;
     this.Color   = color;
     this.texture = texture;
 }
Esempio n. 2
0
        public TextSprite(string text, Font efont, Emugen.Image.Primitive.Vector2D position, Type type = Type.Separation, Emugen.OpenTK.View.IView view = null, int fadeTimer = -1, int fadeTimerAdd = 100)
        {
            //this.position = position;
            this.Rect         = new Rect(position, new Vector2D(0, 0));
            this.fadeTimer    = fadeTimer;
            this.fadeTimerAdd = fadeTimerAdd;
            Color             = new Color(1, 1, 1, 1);

            switch (type)
            {
            case Type.Separation:
                _TextSprite_Separation(text, efont, position, view, fadeTimer, fadeTimerAdd);
                break;

            case Type.Lump:
                break;
            }
        }