fixd a bug where HUD will draw on top of console window

This commit is contained in:
minjaesong
2019-08-19 02:05:00 +09:00
parent 89746c3b6e
commit 9e775d9d57
5 changed files with 15 additions and 8 deletions

View File

@@ -1114,12 +1114,14 @@ public class AppLoader implements ApplicationListener {
public static void printdbgerr(Object obj, Object message) {
if (IS_DEVELOPMENT_BUILD) {
System.err.println("[" + obj.getClass().getSimpleName() + "] " + message.toString());
String out = (obj instanceof String) ? (String) obj : obj.getClass().getSimpleName();
System.err.println("[" + out + "] " + message.toString());
}
}
public static void printmsg(Object obj, Object message) {
System.out.println("[" + obj.getClass().getSimpleName() + "] " + message.toString());
String out = (obj instanceof String) ? (String) obj : obj.getClass().getSimpleName();
System.out.println("[" + out + "] " + message.toString());
}
public static ShaderProgram loadShader(String vert, String frag) {