Пример #1
0
 /**
  * Sets the current text colour.
  *
  * @param col Text colour
  */
 public void setColour(Colour col) {
   Check.notNull(col);
   this.col = col;
 }
Пример #2
0
 /**
  * Constructor.
  *
  * @param font Font properties
  */
 public TextBuilder(TextureFont font) {
   Check.notNull(font);
   this.font = font;
   builder = new MeshBuilder(MeshLayout.create(Primitive.TRIANGLES, "+VC0", false));
   builder.allocate(256); // TODO
 }