removing global flipY key

This commit is contained in:
minjaesong
2021-12-13 02:52:45 +09:00
parent e59db6954a
commit 05d34d563d
3 changed files with 4 additions and 9 deletions

View File

@@ -110,8 +110,6 @@ class PixmapRegionPack(
// todo globalFlipY ?
/*return*/region
}
}
@@ -152,8 +150,6 @@ class PixmapRegionPack(
// todo globalFlipY ?
/*return*/region
}
}

View File

@@ -89,7 +89,7 @@ internal typealias Hash = Long
*
* @param noShadow Self-explanatory
* @param flipY If you have Y-down coord system implemented on your GDX (e.g. legacy codebase), set this to ```true```
* so that the shadow won't be upside-down. For glyph getting upside-down, set ```TextureRegionPack.globalFlipY = true```.
* so that the shadow won't be upside-down.
*
* Created by minjaesong on 2017-06-15.
*/

View File

@@ -51,8 +51,7 @@ class TextureRegionPack(
this(Texture(fileHandle), tileW, tileH, hGap, vGap, hFrame, vFrame, xySwapped, flipX, flipY)
companion object {
/** Intented for Y-down coord system, typically fon Non-GDX codebase */
var globalFlipY = false
}
val regions: Array<TextureRegion>
@@ -72,7 +71,7 @@ class TextureRegionPack(
region.setRegion(texture)
region.setRegion(rx, ry, tileW, tileH)
region.flip(flipX, if (flipY) !globalFlipY else globalFlipY)
region.flip(flipX, flipY)
/*return*/region
}
@@ -86,7 +85,7 @@ class TextureRegionPack(
region.setRegion(texture)
region.setRegion(rx, ry, tileW, tileH)
region.flip(flipX, if (flipY) !globalFlipY else globalFlipY)
region.flip(flipX, flipY)
/*return*/region
}