Esempio n. 1
0
 /// <summary>
 /// Creates a new Resource.
 /// </summary>
 /// <param name="fontFamily">The FontFamily.</param>
 /// <param name="size">The Size.</param>
 /// <param name="accessoire">The TextAccessoire.</param>
 /// <returns>IFont.</returns>
 public IFont CreateResource(string fontFamily, float size, TextAccessoire accessoire)
 {
     return new OpenGLFont(fontFamily, size, accessoire);
 }
Esempio n. 2
0
 /// <summary>
 /// Initializes a new OpenGLFont class.
 /// </summary>
 /// <param name="fontFamily">The FontFamily.</param>
 /// <param name="size">The Size.</param>
 /// <param name="accessoire">The TextAccessoire.</param>
 public OpenGLFont(string fontFamily, float size, TextAccessoire accessoire)
 {
     FontFamily = fontFamily;
     Size = size;
     Accessoire = accessoire;
 }
Esempio n. 3
0
 /// <summary>
 /// Initializes a new Font class.
 /// </summary>
 /// <param name="fontFamily">The FontFamily.</param>
 /// <param name="size">The Size.</param>
 /// <param name="accessoire">The TextAccessoire.</param>
 public Font(string fontFamily, float size, TextAccessoire accessoire)
 {
     Instance = SGL.SpriteBatch.Renderer.CreateResource(fontFamily, size, accessoire);
 }