mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-03-03 06:09:09 +08:00
Fixed examples resizing.
This commit is contained in:
parent
7f6abc8c00
commit
556afc3514
@ -31,7 +31,6 @@
|
|||||||
package com.esotericsoftware.spine;
|
package com.esotericsoftware.spine;
|
||||||
|
|
||||||
import com.esotericsoftware.spine.attachments.Attachment;
|
import com.esotericsoftware.spine.attachments.Attachment;
|
||||||
import com.esotericsoftware.spine.attachments.MeshAttachment;
|
|
||||||
|
|
||||||
import com.badlogic.gdx.graphics.Color;
|
import com.badlogic.gdx.graphics.Color;
|
||||||
import com.badlogic.gdx.math.MathUtils;
|
import com.badlogic.gdx.math.MathUtils;
|
||||||
|
|||||||
@ -87,7 +87,7 @@ public class SimpleTest1 extends ApplicationAdapter {
|
|||||||
// Configure the camera, SpriteBatch, and SkeletonRendererDebug.
|
// Configure the camera, SpriteBatch, and SkeletonRendererDebug.
|
||||||
camera.update();
|
camera.update();
|
||||||
batch.getProjectionMatrix().set(camera.combined);
|
batch.getProjectionMatrix().set(camera.combined);
|
||||||
debugRenderer.getShapeRenderer().getProjectionMatrix().set(camera.combined);
|
debugRenderer.getShapeRenderer().setProjectionMatrix(camera.combined);
|
||||||
|
|
||||||
batch.begin();
|
batch.begin();
|
||||||
renderer.draw(batch, skeleton); // Draw the skeleton images.
|
renderer.draw(batch, skeleton); // Draw the skeleton images.
|
||||||
|
|||||||
@ -140,7 +140,7 @@ public class SimpleTest2 extends ApplicationAdapter {
|
|||||||
// Configure the camera, SpriteBatch, and SkeletonRendererDebug.
|
// Configure the camera, SpriteBatch, and SkeletonRendererDebug.
|
||||||
camera.update();
|
camera.update();
|
||||||
batch.getProjectionMatrix().set(camera.combined);
|
batch.getProjectionMatrix().set(camera.combined);
|
||||||
debugRenderer.getShapeRenderer().getProjectionMatrix().set(camera.combined);
|
debugRenderer.getShapeRenderer().setProjectionMatrix(camera.combined);
|
||||||
|
|
||||||
batch.begin();
|
batch.begin();
|
||||||
renderer.draw(batch, skeleton); // Draw the skeleton images.
|
renderer.draw(batch, skeleton); // Draw the skeleton images.
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user