Search in sources :

Example 1 with GUIText

use of com.chrisali.javaflightsim.lwjgl.interfaces.text.GUIText in project j6dof-flight-sim by chris-ali.

the class FontRenderer method render.

public void render(Map<FontType, List<GUIText>> texts) {
    prepare();
    for (FontType font : texts.keySet()) {
        GL13.glActiveTexture(GL13.GL_TEXTURE0);
        GL11.glBindTexture(GL11.GL_TEXTURE_2D, font.getTextureAtlas());
        for (GUIText text : texts.get(font)) renderText(text);
    }
    endRendering();
}
Also used : GUIText(com.chrisali.javaflightsim.lwjgl.interfaces.text.GUIText) FontType(com.chrisali.javaflightsim.lwjgl.interfaces.text.FontType)

Aggregations

FontType (com.chrisali.javaflightsim.lwjgl.interfaces.text.FontType)1 GUIText (com.chrisali.javaflightsim.lwjgl.interfaces.text.GUIText)1