示例#1
0
        public Sprite2(Texture texture)
        {
            Vertices = new List<Vertex>();
            for (int i = 0; i < 6; i++ )
            {
                Vertices.Add(new Vertex());
            }

            SetPosition(new Vector(0, 0, 0), 1, 1);
            SetUVs(new Point(0, 0), new Point(1, 1));
            SetColor(new Color(1, 1, 1, 1));
            SetScale(1);

            this.Texture = texture;
        }
示例#2
0
 public MyriadPro(Texture texture)
     : base(texture)
 {
 }
示例#3
0
 public Face(Texture texture)
     : base(texture)
 {
 }
示例#4
0
 public Font(Texture.Texture texture, Dictionary<char, CharacterData> characters)
 {
     this._texture = texture;
     this.Characters = characters;
 }
示例#5
0
 public Font(Texture.Texture texture, string filePath)
 {
     this._texture = texture;
     this.FilePath = filePath;
     Characters = Parse(filePath);
 }