Package com.thecherno.cherno.engine.interfaces

Examples of com.thecherno.cherno.engine.interfaces.RenderBuffer


  public void drawString(final String text, final int x, final int y, final Color color) {
    drawString(text, x, y, font, color);
  }

  public void drawString(final String text, final int x, final int y, final Font font, final Color color) {
    buffer.add(new RenderBuffer() {
      public void render(Graphics graphics) {
        int[] rgb = color.getRGB();
        graphics.setFont(font);
        graphics.setColor(new java.awt.Color(rgb[0], rgb[1], rgb[2]));
        graphics.drawString(text, x, y);
View Full Code Here

TOP

Related Classes of com.thecherno.cherno.engine.interfaces.RenderBuffer

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.