use of dev.lyze.gdxtinyvg.drawers.TinyVGShapeDrawer in project gdx-TinyVG by lyze237.
the class DepthTest method create.
@Override
public void create() {
drawer = new TinyVGShapeDrawer(new SpriteBatch());
viewport = new FitViewport(100, 100);
profiler = new GLProfiler(Gdx.graphics);
profiler.enable();
}
use of dev.lyze.gdxtinyvg.drawers.TinyVGShapeDrawer in project gdx-TinyVG by lyze237.
the class ExamplesFileLoadingTest method create.
@Override
public void create() {
drawer = new TinyVGShapeDrawer(new SpriteBatch());
viewport = new FitViewport(100, 100);
profiler = new GLProfiler(Gdx.graphics);
profiler.enable();
}
use of dev.lyze.gdxtinyvg.drawers.TinyVGShapeDrawer in project gdx-TinyVG by lyze237.
the class FrameBufferTest method create.
@Override
public void create() {
drawer = new TinyVGShapeDrawer(new SpriteBatch(), new TextureRegion(new Texture("pixel.png")));
viewport = new FitViewport(100, 100);
}
use of dev.lyze.gdxtinyvg.drawers.TinyVGShapeDrawer in project skin-composer by raeleus.
the class Main method create.
@Override
public void create() {
appFolder = Gdx.files.external(".skincomposer/");
skin = new FreeTypeSkin(Gdx.files.internal("skin-composer-ui/skin-composer-ui.json"));
viewport = new ScreenViewport();
// viewport.setUnitsPerPixel(.5f);
var batch = new PolygonSpriteBatch(SPINE_MAX_VERTS);
stage = new Stage(viewport, batch);
Gdx.input.setInputProcessor(stage);
shapeDrawer = new TinyVGShapeDrawer(stage.getBatch(), skin.getRegion("white"));
graphDrawer = new GraphDrawer(shapeDrawer);
tinyVGAssetLoader = new TinyVGAssetLoader();
skeletonRenderer = new SkeletonRenderer();
var skeletonJson = new SkeletonJson(Main.skin.getAtlas());
floppySkeletonData = skeletonJson.readSkeletonData(Gdx.files.internal("spine/floppy.json"));
floppyAnimationStateData = new AnimationStateData(floppySkeletonData);
uiScaleSkeletonData = skeletonJson.readSkeletonData(Gdx.files.internal("spine/uiscale.json"));
uiScaleAnimationStateData = new AnimationStateData(uiScaleSkeletonData);
textraTypistLogoSkeletonData = skeletonJson.readSkeletonData(Gdx.files.internal("spine/TextraTypist Logo.json"));
textraTypistLogoAnimationStateData = new AnimationStateData(textraTypistLogoSkeletonData);
arrowSkeletonData = skeletonJson.readSkeletonData(Gdx.files.internal("spine/arrow-animation.json"));
arrowAnimationStateData = new AnimationStateData(arrowSkeletonData);
cursorNE = Utils.textureRegionToCursor(skin.getRegion("cursor_resize_ne"), 16, 16);
cursorNW = Utils.textureRegionToCursor(skin.getRegion("cursor_resize_nw"), 16, 16);
cursorVertical = Utils.textureRegionToCursor(skin.getRegion("cursor_resize_vertical"), 16, 16);
cursorHorizontal = Utils.textureRegionToCursor(skin.getRegion("cursor_resize_horizontal"), 16, 16);
initDefaults();
populate();
resizeUiScale(projectData.getUiScale());
}
use of dev.lyze.gdxtinyvg.drawers.TinyVGShapeDrawer in project gdx-TinyVG by lyze237.
the class BoundingBoxTests method create.
@Override
public void create() {
drawer = new TinyVGShapeDrawer(new SpriteBatch());
viewport = new FitViewport(100, 100);
}
Aggregations