Exemplo n.º 1
0
 /// <summary>
 /// Gets information needed to render an instance of this glyph using the origin as the top-left corner of the layout
 /// rectangle.
 /// </summary>
 public void GetRenderInfo(double Size, out Texture Texture, out Rectangle Source, out Rectangle Destination)
 {
     Sheet sheet = this.Sheet;
     Texture = sheet.Texture;
     Source = this.Source;
     Destination = Rectangle.FromOffsetSize(
         -this.LayoutOffset * Size,
         this.Source.Size * sheet.Scale * Size);
 }
Exemplo n.º 2
0
 public BindTextureProcedure(Texture Texture)
 {
     this.Texture = Texture;
 }