commonMain.ru.casperix.opengl.renderer.impl.DeviceGraphicData.kt Maven / Gradle / Ivy
package ru.casperix.opengl.renderer.impl
import ru.casperix.misc.Disposable
import ru.casperix.opengl.renderer.DeviceGeometryBuffer
import ru.casperix.opengl.renderer.shader.ShaderController
import ru.casperix.renderer.vector.VectorGraphic
class DeviceGraphicData(
val graphic: VectorGraphic,
val shader: ShaderController,
val buffer: DeviceGeometryBuffer,
) : Disposable {
var isDisposed = false; private set
override fun dispose() {
isDisposed = true
buffer.dispose()
}
}