use of com.badlogic.gdx.graphics.g2d.BitmapFont in project libgdx by libgdx.
the class FramebufferToTextureTest method create.
@Override
public void create() {
texture = new Texture(Gdx.files.internal("data/badlogic.jpg"), true);
texture.setFilter(TextureFilter.MipMap, TextureFilter.Linear);
ObjLoader objLoader = new ObjLoader();
mesh = objLoader.loadModel(Gdx.files.internal("data/cube.obj"));
mesh.materials.get(0).set(new TextureAttribute(TextureAttribute.Diffuse, texture));
modelInstance = new ModelInstance(mesh);
modelBatch = new ModelBatch();
cam = new PerspectiveCamera(67, Gdx.graphics.getWidth(), Gdx.graphics.getHeight());
cam.position.set(3, 3, 3);
cam.direction.set(-1, -1, -1);
batch = new SpriteBatch();
font = new BitmapFont();
}
use of com.badlogic.gdx.graphics.g2d.BitmapFont in project libgdx by libgdx.
the class FullscreenTest method create.
@Override
public void create() {
batch = new SpriteBatch();
font = new BitmapFont();
tex = new Texture(Gdx.files.internal("data/badlogic.jpg"));
DisplayMode[] modes = Gdx.graphics.getDisplayModes();
for (DisplayMode mode : modes) {
System.out.println(mode);
}
Gdx.app.log("FullscreenTest", Gdx.graphics.getBufferFormat().toString());
}
use of com.badlogic.gdx.graphics.g2d.BitmapFont in project libgdx by libgdx.
the class GLProfilerErrorTest method create.
@Override
public void create() {
batch = new SpriteBatch();
font = new BitmapFont();
Gdx.input.setInputProcessor(this);
}
use of com.badlogic.gdx.graphics.g2d.BitmapFont in project libgdx by libgdx.
the class DpiTest method create.
@Override
public void create() {
font = new BitmapFont();
batch = new SpriteBatch();
}
use of com.badlogic.gdx.graphics.g2d.BitmapFont in project libgdx by libgdx.
the class ColorTest method create.
@Override
public void create() {
stage = new Stage(new ScreenViewport());
Gdx.input.setInputProcessor(stage);
Skin skin = new Skin(Gdx.files.internal("data/uiskin.json"));
skin.add("default", new BitmapFont(Gdx.files.internal("data/arial-32.fnt"), false));
Table root = new Table();
stage.addActor(root);
root.setFillParent(true);
Table column1 = new Table(skin);
column1.add("WHITE", "default", Color.WHITE).row();
column1.add("LIGHT_GRAY", "default", Color.LIGHT_GRAY).row();
column1.add("GRAY", "default", Color.GRAY).row();
column1.add("DARK_GRAY", "default", Color.DARK_GRAY).row();
column1.add("BLUE", "default", Color.BLUE).row();
column1.add("NAVY", "default", Color.NAVY).row();
column1.add("ROYAL", "default", Color.ROYAL).row();
column1.add("SLATE", "default", Color.SLATE).row();
column1.add("SKY", "default", Color.SKY).row();
column1.add("CYAN", "default", Color.CYAN).row();
column1.add("TEAL", "default", Color.TEAL).row();
Table column2 = new Table(skin);
column2.add("GREEN", "default", Color.GREEN).row();
column2.add("CHARTREUSE", "default", Color.CHARTREUSE).row();
column2.add("LIME", "default", Color.LIME).row();
column2.add("FOREST", "default", Color.FOREST).row();
column2.add("OLIVE", "default", Color.OLIVE).row();
column2.add("YELLOW", "default", Color.YELLOW).row();
column2.add("GOLD", "default", Color.GOLD).row();
column2.add("GOLDENROD", "default", Color.GOLDENROD).row();
column2.add("ORANGE", "default", Color.ORANGE).row();
column2.add("BROWN", "default", Color.BROWN).row();
column2.add("TAN", "default", Color.TAN).row();
column2.add("FIREBRICK", "default", Color.FIREBRICK).row();
Table column3 = new Table(skin);
column3.add("RED", "default", Color.RED).row();
column3.add("SCARLET", "default", Color.SCARLET).row();
column3.add("CORAL", "default", Color.CORAL).row();
column3.add("SALMON", "default", Color.SALMON).row();
column3.add("PINK", "default", Color.PINK).row();
column3.add("MAGENTA", "default", Color.MAGENTA).row();
column3.add("PURPLE", "default", Color.PURPLE).row();
column3.add("VIOLET", "default", Color.VIOLET).row();
column3.add("MAROON", "default", Color.MAROON).row();
root.add(column1);
root.add(column2);
root.add(column3);
}
Aggregations