apple m chips support wip

This commit is contained in:
minjaesong
2023-02-28 04:36:11 +09:00
parent 66356fc0c9
commit 6f4d9180dc
7 changed files with 151 additions and 2 deletions

View File

@@ -9,7 +9,7 @@ import com.badlogic.gdx.graphics.g2d.TextureRegion
*
* Created by minjaesong on 2021-12-13.
*/
class FlippingSpriteBatch : SpriteBatch() {
class FlippingSpriteBatch(size: Int = 1000) : SpriteBatch(size, if (App.isAppleM) MacosGL32Shaders.createSpriteBatchShader() else null) {
/**
* This function draws the flipped version of the image by giving flipped uv-coord to the SpriteBatch