Skip to content
This repository was archived by the owner on Jul 8, 2022. It is now read-only.

Commit 0135254

Browse files
Add ThreadLocal to Bitmap.transformMat
1 parent 44d9182 commit 0135254

File tree

1 file changed

+2
-0
lines changed
  • korvi/src/commonMain/kotlin/com/soywiz/korvi

1 file changed

+2
-0
lines changed

korvi/src/commonMain/kotlin/com/soywiz/korvi/Korvi.kt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,12 @@ import com.soywiz.korma.geom.*
1313
import com.soywiz.korvi.internal.*
1414
import kotlinx.coroutines.Job
1515
import kotlin.coroutines.coroutineContext
16+
import kotlin.native.concurrent.*
1617

1718
/** Associated transformation matrix that can be used by other engines. Experimental. Might be defined later as an extrinsic function where required. */
1819
@KorimExperimental
1920
@Deprecated("Not used in korge anymore. Use BmpCoords.transformed(Matrix3D) to get texture coordinates transformed")
21+
@ThreadLocal
2022
var Bitmap.transformMat: Matrix3D by Extra.Property { Matrix3D() }
2123

2224
// Simple function to be used from swift, js or java if required

0 commit comments

Comments
 (0)