shader cleanup; a config key for higher bits per pixel on graphics

This commit is contained in:
minjaesong
2022-03-25 15:49:43 +09:00
parent af542e43a9
commit 327e000a54
17 changed files with 39 additions and 193 deletions

View File

@@ -579,17 +579,17 @@ class UIItemPlayerCells(
val bodypartImages = props.bodypartJoints.keys.associate { partname ->
fileGetter(partname).let { file ->
if (file == null) {
printdbg(this, " Partname $partname points to a null file!")
// printdbg(this, " Partname $partname points to a null file!")
partname to null
}
else {
try {
printdbg(this, " Partname $partname successfully retrieved")
// printdbg(this, " Partname $partname successfully retrieved")
val bytes = file.readAllBytes()
partname to Pixmap(bytes, 0, bytes.size)
}
catch (e: GdxRuntimeException) {
printdbg(this, " Partname $partname failed to load: ${e.message}")
// printdbg(this, " Partname $partname failed to load: ${e.message}")
partname to null
}
}