textCoords.add( (float)charInfo.getStartX() / (float)fontTexture.getWidth()); textCoords.add(0.0f); indices.add(i*VERTICES_PER_QUAD); textCoords.add((float)charInfo.getStartX() / (float)fontTexture.getWidth()); textCoords.add(1.0f); indices.add(i*VERTICES_PER_QUAD + 1); textCoords.add((float)(charInfo.getStartX() + charInfo.getWidth() )/ (float)fontTexture.getWidth()); textCoords.add(1.0f); indices.add(i*VERTICES_PER_QUAD + 2); textCoords.add((float)(charInfo.getStartX() + charInfo.getWidth() )/ (float)fontTexture.getWidth()); textCoords.add(0.0f); indices.add(i*VERTICES_PER_QUAD + 3);
textCoords.add( (float)charInfo.getStartX() / (float)fontTexture.getWidth()); textCoords.add(0.0f); indices.add(i*VERTICES_PER_QUAD); textCoords.add((float)charInfo.getStartX() / (float)fontTexture.getWidth()); textCoords.add(1.0f); indices.add(i*VERTICES_PER_QUAD + 1); textCoords.add((float)(charInfo.getStartX() + charInfo.getWidth() )/ (float)fontTexture.getWidth()); textCoords.add(1.0f); indices.add(i*VERTICES_PER_QUAD + 2); textCoords.add((float)(charInfo.getStartX() + charInfo.getWidth() )/ (float)fontTexture.getWidth()); textCoords.add(0.0f); indices.add(i*VERTICES_PER_QUAD + 3);
textCoords.add( (float)charInfo.getStartX() / (float)fontTexture.getWidth()); textCoords.add(0.0f); indices.add(i*VERTICES_PER_QUAD); textCoords.add((float)charInfo.getStartX() / (float)fontTexture.getWidth()); textCoords.add(1.0f); indices.add(i*VERTICES_PER_QUAD + 1); textCoords.add((float)(charInfo.getStartX() + charInfo.getWidth() )/ (float)fontTexture.getWidth()); textCoords.add(1.0f); indices.add(i*VERTICES_PER_QUAD + 2); textCoords.add((float)(charInfo.getStartX() + charInfo.getWidth() )/ (float)fontTexture.getWidth()); textCoords.add(0.0f); indices.add(i*VERTICES_PER_QUAD + 3);
textCoords.add( (float)charInfo.getStartX() / (float)fontTexture.getWidth()); textCoords.add(0.0f); indices.add(i*VERTICES_PER_QUAD); textCoords.add((float)charInfo.getStartX() / (float)fontTexture.getWidth()); textCoords.add(1.0f); indices.add(i*VERTICES_PER_QUAD + 1); textCoords.add((float)(charInfo.getStartX() + charInfo.getWidth() )/ (float)fontTexture.getWidth()); textCoords.add(1.0f); indices.add(i*VERTICES_PER_QUAD + 2); textCoords.add((float)(charInfo.getStartX() + charInfo.getWidth() )/ (float)fontTexture.getWidth()); textCoords.add(0.0f); indices.add(i*VERTICES_PER_QUAD + 3);
textCoords.add( (float)charInfo.getStartX() / (float)fontTexture.getWidth()); textCoords.add(0.0f); indices.add(i*VERTICES_PER_QUAD); textCoords.add((float)charInfo.getStartX() / (float)fontTexture.getWidth()); textCoords.add(1.0f); indices.add(i*VERTICES_PER_QUAD + 1); textCoords.add((float)(charInfo.getStartX() + charInfo.getWidth() )/ (float)fontTexture.getWidth()); textCoords.add(1.0f); indices.add(i*VERTICES_PER_QUAD + 2); textCoords.add((float)(charInfo.getStartX() + charInfo.getWidth() )/ (float)fontTexture.getWidth()); textCoords.add(0.0f); indices.add(i*VERTICES_PER_QUAD + 3);
textCoords.add( (float)charInfo.getStartX() / (float)fontTexture.getWidth()); textCoords.add(0.0f); indices.add(i*VERTICES_PER_QUAD); textCoords.add((float)charInfo.getStartX() / (float)fontTexture.getWidth()); textCoords.add(1.0f); indices.add(i*VERTICES_PER_QUAD + 1); textCoords.add((float)(charInfo.getStartX() + charInfo.getWidth() )/ (float)fontTexture.getWidth()); textCoords.add(1.0f); indices.add(i*VERTICES_PER_QUAD + 2); textCoords.add((float)(charInfo.getStartX() + charInfo.getWidth() )/ (float)fontTexture.getWidth()); textCoords.add(0.0f); indices.add(i*VERTICES_PER_QUAD + 3);
textCoords.add( (float)charInfo.getStartX() / (float)fontTexture.getWidth()); textCoords.add(0.0f); indices.add(i*VERTICES_PER_QUAD); textCoords.add((float)charInfo.getStartX() / (float)fontTexture.getWidth()); textCoords.add(1.0f); indices.add(i*VERTICES_PER_QUAD + 1); textCoords.add((float)(charInfo.getStartX() + charInfo.getWidth() )/ (float)fontTexture.getWidth()); textCoords.add(1.0f); indices.add(i*VERTICES_PER_QUAD + 2); textCoords.add((float)(charInfo.getStartX() + charInfo.getWidth() )/ (float)fontTexture.getWidth()); textCoords.add(0.0f); indices.add(i*VERTICES_PER_QUAD + 3);
textCoords.add( (float)charInfo.getStartX() / (float)fontTexture.getWidth()); textCoords.add(0.0f); indices.add(i*VERTICES_PER_QUAD); textCoords.add((float)charInfo.getStartX() / (float)fontTexture.getWidth()); textCoords.add(1.0f); indices.add(i*VERTICES_PER_QUAD + 1); textCoords.add((float)(charInfo.getStartX() + charInfo.getWidth() )/ (float)fontTexture.getWidth()); textCoords.add(1.0f); indices.add(i*VERTICES_PER_QUAD + 2); textCoords.add((float)(charInfo.getStartX() + charInfo.getWidth() )/ (float)fontTexture.getWidth()); textCoords.add(0.0f); indices.add(i*VERTICES_PER_QUAD + 3);
textCoords.add( (float)charInfo.getStartX() / (float)fontTexture.getWidth()); textCoords.add(0.0f); indices.add(i*VERTICES_PER_QUAD); textCoords.add((float)charInfo.getStartX() / (float)fontTexture.getWidth()); textCoords.add(1.0f); indices.add(i*VERTICES_PER_QUAD + 1); textCoords.add((float)(charInfo.getStartX() + charInfo.getWidth() )/ (float)fontTexture.getWidth()); textCoords.add(1.0f); indices.add(i*VERTICES_PER_QUAD + 2); textCoords.add((float)(charInfo.getStartX() + charInfo.getWidth() )/ (float)fontTexture.getWidth()); textCoords.add(0.0f); indices.add(i*VERTICES_PER_QUAD + 3);
textCoords.add( (float)charInfo.getStartX() / (float)fontTexture.getWidth()); textCoords.add(0.0f); indices.add(i*VERTICES_PER_QUAD); textCoords.add((float)charInfo.getStartX() / (float)fontTexture.getWidth()); textCoords.add(1.0f); indices.add(i*VERTICES_PER_QUAD + 1); textCoords.add((float)(charInfo.getStartX() + charInfo.getWidth() )/ (float)fontTexture.getWidth()); textCoords.add(1.0f); indices.add(i*VERTICES_PER_QUAD + 2); textCoords.add((float)(charInfo.getStartX() + charInfo.getWidth() )/ (float)fontTexture.getWidth()); textCoords.add(0.0f); indices.add(i*VERTICES_PER_QUAD + 3);
textCoords.add( (float)charInfo.getStartX() / (float)fontTexture.getWidth()); textCoords.add(0.0f); indices.add(i*VERTICES_PER_QUAD); textCoords.add((float)charInfo.getStartX() / (float)fontTexture.getWidth()); textCoords.add(1.0f); indices.add(i*VERTICES_PER_QUAD + 1); textCoords.add((float)(charInfo.getStartX() + charInfo.getWidth() )/ (float)fontTexture.getWidth()); textCoords.add(1.0f); indices.add(i*VERTICES_PER_QUAD + 2); textCoords.add((float)(charInfo.getStartX() + charInfo.getWidth() )/ (float)fontTexture.getWidth()); textCoords.add(0.0f); indices.add(i*VERTICES_PER_QUAD + 3);
textCoords.add( (float)charInfo.getStartX() / (float)fontTexture.getWidth()); textCoords.add(0.0f); indices.add(i*VERTICES_PER_QUAD); textCoords.add((float)charInfo.getStartX() / (float)fontTexture.getWidth()); textCoords.add(1.0f); indices.add(i*VERTICES_PER_QUAD + 1); textCoords.add((float)(charInfo.getStartX() + charInfo.getWidth() )/ (float)fontTexture.getWidth()); textCoords.add(1.0f); indices.add(i*VERTICES_PER_QUAD + 2); textCoords.add((float)(charInfo.getStartX() + charInfo.getWidth() )/ (float)fontTexture.getWidth()); textCoords.add(0.0f); indices.add(i*VERTICES_PER_QUAD + 3);
textCoords.add( (float)charInfo.getStartX() / (float)fontTexture.getWidth()); textCoords.add(0.0f); indices.add(i*VERTICES_PER_QUAD); textCoords.add((float)charInfo.getStartX() / (float)fontTexture.getWidth()); textCoords.add(1.0f); indices.add(i*VERTICES_PER_QUAD + 1); textCoords.add((float)(charInfo.getStartX() + charInfo.getWidth() )/ (float)fontTexture.getWidth()); textCoords.add(1.0f); indices.add(i*VERTICES_PER_QUAD + 2); textCoords.add((float)(charInfo.getStartX() + charInfo.getWidth() )/ (float)fontTexture.getWidth()); textCoords.add(0.0f); indices.add(i*VERTICES_PER_QUAD + 3);
textCoords.add( (float)charInfo.getStartX() / (float)fontTexture.getWidth()); textCoords.add(0.0f); indices.add(i*VERTICES_PER_QUAD); textCoords.add((float)charInfo.getStartX() / (float)fontTexture.getWidth()); textCoords.add(1.0f); indices.add(i*VERTICES_PER_QUAD + 1); textCoords.add((float)(charInfo.getStartX() + charInfo.getWidth() )/ (float)fontTexture.getWidth()); textCoords.add(1.0f); indices.add(i*VERTICES_PER_QUAD + 2); textCoords.add((float)(charInfo.getStartX() + charInfo.getWidth() )/ (float)fontTexture.getWidth()); textCoords.add(0.0f); indices.add(i*VERTICES_PER_QUAD + 3);
textCoords.add( (float)charInfo.getStartX() / (float)fontTexture.getWidth()); textCoords.add(0.0f); indices.add(i*VERTICES_PER_QUAD); textCoords.add((float)charInfo.getStartX() / (float)fontTexture.getWidth()); textCoords.add(1.0f); indices.add(i*VERTICES_PER_QUAD + 1); textCoords.add((float)(charInfo.getStartX() + charInfo.getWidth() )/ (float)fontTexture.getWidth()); textCoords.add(1.0f); indices.add(i*VERTICES_PER_QUAD + 2); textCoords.add((float)(charInfo.getStartX() + charInfo.getWidth() )/ (float)fontTexture.getWidth()); textCoords.add(0.0f); indices.add(i*VERTICES_PER_QUAD + 3);
textCoords.add( (float)charInfo.getStartX() / (float)fontTexture.getWidth()); textCoords.add(0.0f); indices.add(i*VERTICES_PER_QUAD); textCoords.add((float)charInfo.getStartX() / (float)fontTexture.getWidth()); textCoords.add(1.0f); indices.add(i*VERTICES_PER_QUAD + 1); textCoords.add((float)(charInfo.getStartX() + charInfo.getWidth() )/ (float)fontTexture.getWidth()); textCoords.add(1.0f); indices.add(i*VERTICES_PER_QUAD + 2); textCoords.add((float)(charInfo.getStartX() + charInfo.getWidth() )/ (float)fontTexture.getWidth()); textCoords.add(0.0f); indices.add(i*VERTICES_PER_QUAD + 3);
textCoords.add( (float)charInfo.getStartX() / (float)fontTexture.getWidth()); textCoords.add(0.0f); indices.add(i*VERTICES_PER_QUAD); textCoords.add((float)charInfo.getStartX() / (float)fontTexture.getWidth()); textCoords.add(1.0f); indices.add(i*VERTICES_PER_QUAD + 1); textCoords.add((float)(charInfo.getStartX() + charInfo.getWidth() )/ (float)fontTexture.getWidth()); textCoords.add(1.0f); indices.add(i*VERTICES_PER_QUAD + 2); textCoords.add((float)(charInfo.getStartX() + charInfo.getWidth() )/ (float)fontTexture.getWidth()); textCoords.add(0.0f); indices.add(i*VERTICES_PER_QUAD + 3);
textCoords.add( (float)charInfo.getStartX() / (float)fontTexture.getWidth()); textCoords.add(0.0f); indices.add(i*VERTICES_PER_QUAD); textCoords.add((float)charInfo.getStartX() / (float)fontTexture.getWidth()); textCoords.add(1.0f); indices.add(i*VERTICES_PER_QUAD + 1); textCoords.add((float)(charInfo.getStartX() + charInfo.getWidth() )/ (float)fontTexture.getWidth()); textCoords.add(1.0f); indices.add(i*VERTICES_PER_QUAD + 2); textCoords.add((float)(charInfo.getStartX() + charInfo.getWidth() )/ (float)fontTexture.getWidth()); textCoords.add(0.0f); indices.add(i*VERTICES_PER_QUAD + 3);
textCoords.add( (float)charInfo.getStartX() / (float)fontTexture.getWidth()); textCoords.add(0.0f); indices.add(i*VERTICES_PER_QUAD); textCoords.add((float)charInfo.getStartX() / (float)fontTexture.getWidth()); textCoords.add(1.0f); indices.add(i*VERTICES_PER_QUAD + 1); textCoords.add((float)(charInfo.getStartX() + charInfo.getWidth() )/ (float)fontTexture.getWidth()); textCoords.add(1.0f); indices.add(i*VERTICES_PER_QUAD + 2); textCoords.add((float)(charInfo.getStartX() + charInfo.getWidth() )/ (float)fontTexture.getWidth()); textCoords.add(0.0f); indices.add(i*VERTICES_PER_QUAD + 3);
textCoords.add( (float)charInfo.getStartX() / (float)fontTexture.getWidth()); textCoords.add(0.0f); indices.add(i*VERTICES_PER_QUAD); textCoords.add((float)charInfo.getStartX() / (float)fontTexture.getWidth()); textCoords.add(1.0f); indices.add(i*VERTICES_PER_QUAD + 1); textCoords.add((float)(charInfo.getStartX() + charInfo.getWidth() )/ (float)fontTexture.getWidth()); textCoords.add(1.0f); indices.add(i*VERTICES_PER_QUAD + 2); textCoords.add((float)(charInfo.getStartX() + charInfo.getWidth() )/ (float)fontTexture.getWidth()); textCoords.add(0.0f); indices.add(i*VERTICES_PER_QUAD + 3);