mirror of
https://github.com/curioustorvald/Terrarum-sans-bitmap.git
synced 2026-03-07 11:51:50 +09:00
removing global flipY key
This commit is contained in:
@@ -110,8 +110,6 @@ class PixmapRegionPack(
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
// todo globalFlipY ?
|
|
||||||
|
|
||||||
/*return*/region
|
/*return*/region
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -152,8 +150,6 @@ class PixmapRegionPack(
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
// todo globalFlipY ?
|
|
||||||
|
|
||||||
/*return*/region
|
/*return*/region
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -89,7 +89,7 @@ internal typealias Hash = Long
|
|||||||
*
|
*
|
||||||
* @param noShadow Self-explanatory
|
* @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```
|
* @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.
|
* Created by minjaesong on 2017-06-15.
|
||||||
*/
|
*/
|
||||||
|
|||||||
@@ -51,8 +51,7 @@ class TextureRegionPack(
|
|||||||
this(Texture(fileHandle), tileW, tileH, hGap, vGap, hFrame, vFrame, xySwapped, flipX, flipY)
|
this(Texture(fileHandle), tileW, tileH, hGap, vGap, hFrame, vFrame, xySwapped, flipX, flipY)
|
||||||
|
|
||||||
companion object {
|
companion object {
|
||||||
/** Intented for Y-down coord system, typically fon Non-GDX codebase */
|
|
||||||
var globalFlipY = false
|
|
||||||
}
|
}
|
||||||
|
|
||||||
val regions: Array<TextureRegion>
|
val regions: Array<TextureRegion>
|
||||||
@@ -72,7 +71,7 @@ class TextureRegionPack(
|
|||||||
region.setRegion(texture)
|
region.setRegion(texture)
|
||||||
region.setRegion(rx, ry, tileW, tileH)
|
region.setRegion(rx, ry, tileW, tileH)
|
||||||
|
|
||||||
region.flip(flipX, if (flipY) !globalFlipY else globalFlipY)
|
region.flip(flipX, flipY)
|
||||||
|
|
||||||
/*return*/region
|
/*return*/region
|
||||||
}
|
}
|
||||||
@@ -86,7 +85,7 @@ class TextureRegionPack(
|
|||||||
region.setRegion(texture)
|
region.setRegion(texture)
|
||||||
region.setRegion(rx, ry, tileW, tileH)
|
region.setRegion(rx, ry, tileW, tileH)
|
||||||
|
|
||||||
region.flip(flipX, if (flipY) !globalFlipY else globalFlipY)
|
region.flip(flipX, flipY)
|
||||||
|
|
||||||
/*return*/region
|
/*return*/region
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user