Search in sources :

Example 16 with AssetDescriptor

use of com.badlogic.gdx.assets.AssetDescriptor in project ProjektGG by eskalon.

the class LoadingScreen method HANDWRITTEN_FONT_20_PATH.

public final AssetDescriptor<BitmapFont> HANDWRITTEN_FONT_20_PATH() {
    FreeTypeFontLoaderParameter font = new FreeTypeFontLoaderParameter();
    font.fontFileName = "fonts/ReenieBeanie/ReenieBeanie.ttf";
    font.fontParameters.size = 20;
    return new AssetDescriptor<BitmapFont>("handwrittenFont20.ttf", BitmapFont.class, font);
}
Also used : FreeTypeFontLoaderParameter(com.badlogic.gdx.graphics.g2d.freetype.FreetypeFontLoader.FreeTypeFontLoaderParameter) AssetDescriptor(com.badlogic.gdx.assets.AssetDescriptor)

Example 17 with AssetDescriptor

use of com.badlogic.gdx.assets.AssetDescriptor in project ProjektGG by eskalon.

the class LoadingScreen method MAIN_FONT_19_PATH.

// Assets for the UI skin
public final AssetDescriptor<BitmapFont> MAIN_FONT_19_PATH() {
    FreeTypeFontLoaderParameter font = new FreeTypeFontLoaderParameter();
    font.fontFileName = "fonts/AlemdraSC/AlmendraSC-Regular.ttf";
    font.fontParameters.size = 19;
    return new AssetDescriptor<BitmapFont>("mainFont19.ttf", BitmapFont.class, font);
}
Also used : FreeTypeFontLoaderParameter(com.badlogic.gdx.graphics.g2d.freetype.FreetypeFontLoader.FreeTypeFontLoaderParameter) AssetDescriptor(com.badlogic.gdx.assets.AssetDescriptor)

Example 18 with AssetDescriptor

use of com.badlogic.gdx.assets.AssetDescriptor in project ProjektGG by eskalon.

the class LoadingScreen method LETTER_FONT_20_PATH.

public final AssetDescriptor<BitmapFont> LETTER_FONT_20_PATH() {
    FreeTypeFontLoaderParameter font = new FreeTypeFontLoaderParameter();
    font.fontFileName = "fonts/Fredericka_the_Great/FrederickatheGreat-Regular.ttf";
    font.fontParameters.size = 20;
    return new AssetDescriptor<BitmapFont>("letterFont20.ttf", BitmapFont.class, font);
}
Also used : FreeTypeFontLoaderParameter(com.badlogic.gdx.graphics.g2d.freetype.FreetypeFontLoader.FreeTypeFontLoaderParameter) AssetDescriptor(com.badlogic.gdx.assets.AssetDescriptor)

Aggregations

AssetDescriptor (com.badlogic.gdx.assets.AssetDescriptor)18 Array (com.badlogic.gdx.utils.Array)10 FileHandle (com.badlogic.gdx.files.FileHandle)5 Texture (com.badlogic.gdx.graphics.Texture)4 TextureAtlas (com.badlogic.gdx.graphics.g2d.TextureAtlas)4 FreeTypeFontLoaderParameter (com.badlogic.gdx.graphics.g2d.freetype.FreetypeFontLoader.FreeTypeFontLoaderParameter)4 SaveData (com.badlogic.gdx.graphics.g3d.particles.ResourceData.SaveData)3 GdxRuntimeException (com.badlogic.gdx.utils.GdxRuntimeException)3 IntArray (com.badlogic.gdx.utils.IntArray)3 ObjectMap (com.badlogic.gdx.utils.ObjectMap)3 IOException (java.io.IOException)3 TextureLoader (com.badlogic.gdx.assets.loaders.TextureLoader)2 TextureParameter (com.badlogic.gdx.assets.loaders.TextureLoader.TextureParameter)2 Model (com.badlogic.gdx.graphics.g3d.Model)2 ModelData (com.badlogic.gdx.graphics.g3d.model.data.ModelData)2 ModelMaterial (com.badlogic.gdx.graphics.g3d.model.data.ModelMaterial)2 ModelTexture (com.badlogic.gdx.graphics.g3d.model.data.ModelTexture)2 AssetErrorListener (com.badlogic.gdx.assets.AssetErrorListener)1 AssetManager (com.badlogic.gdx.assets.AssetManager)1 InternalFileHandleResolver (com.badlogic.gdx.assets.loaders.resolvers.InternalFileHandleResolver)1