new properties in apploader: aspectRatio

This commit is contained in:
minjaesong
2020-06-21 13:56:50 +09:00
parent 5b05a84684
commit 671882014e
7 changed files with 56 additions and 36 deletions

View File

@@ -243,6 +243,7 @@ public class AppLoader implements ApplicationListener {
public static int halfScreenH = 0;
public static float halfScreenWf = 0f;
public static float halfScreenHf = 0f;
public static float aspectRatio = 0f;
public static Texture textureWhiteSquare;
public static Texture textureWhiteCircle;
@@ -680,6 +681,8 @@ public class AppLoader implements ApplicationListener {
halfScreenWf = (float) halfScreenW;
halfScreenHf = (float) halfScreenH;
aspectRatio = screenWf / screenHf;
updateFullscreenQuad(screenW, screenH);
printdbg(this, "Resize end");