Package org.open2jam.render.lwjgl

Examples of org.open2jam.render.lwjgl.TrueTypeFont.drawString()


        TrueTypeFont trueTypeFont = new TrueTypeFont(font, false);

        int code;
        do{
            Display.update();
            trueTypeFont.drawString(10, 18, "Press a KEY for " + place, 1, -1);
            trueTypeFont.drawString(10, 34, "Last assign was " + Keyboard.getKeyName(lastkey), 1, -1);
            trueTypeFont.drawString(10, 50, "Press ESC or close to cancel", 1, -1);
            Keyboard.next();
            if(Display.isCloseRequested() || Keyboard.getEventKey() == Keyboard.KEY_ESCAPE)
                code = lastkey;
View Full Code Here


        int code;
        do{
            Display.update();
            trueTypeFont.drawString(10, 18, "Press a KEY for " + place, 1, -1);
            trueTypeFont.drawString(10, 34, "Last assign was " + Keyboard.getKeyName(lastkey), 1, -1);
            trueTypeFont.drawString(10, 50, "Press ESC or close to cancel", 1, -1);
            Keyboard.next();
            if(Display.isCloseRequested() || Keyboard.getEventKey() == Keyboard.KEY_ESCAPE)
                code = lastkey;
            else
View Full Code Here

        int code;
        do{
            Display.update();
            trueTypeFont.drawString(10, 18, "Press a KEY for " + place, 1, -1);
            trueTypeFont.drawString(10, 34, "Last assign was " + Keyboard.getKeyName(lastkey), 1, -1);
            trueTypeFont.drawString(10, 50, "Press ESC or close to cancel", 1, -1);
            Keyboard.next();
            if(Display.isCloseRequested() || Keyboard.getEventKey() == Keyboard.KEY_ESCAPE)
                code = lastkey;
            else
                code = Keyboard.getEventKey();
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.