class IsdkSceneObjectPool(scene: Scene, meshFactory: () -> SceneMesh, namePrefix: String)
IsdkSceneObjectPool
(
scene
, meshFactory
, namePrefix
)
|
Signature
constructor(scene: Scene, meshFactory: () -> SceneMesh, namePrefix: String) Parameters Returns |
borrow
()
|
Borrows a SceneObject from the pool. If all SceneObjects are in use, a new one is created.
Signature
fun borrow(): SceneObject |
destroy
()
|
Destroys all SceneObjects in the pool.
Signature
fun destroy() |
getBorrowedCount
()
|
Returns the count of currently borrowed SceneObjects.
Signature
fun getBorrowedCount(): Int Returns
Int
|
reset
()
|
Resets the pool by making all borrowed SceneObjects invisible and resetting the used count.
Signature
fun reset() |