Refactor BufferedImage logic with WebGL support, update DisplayView for GPU-based rendering, transition timing functions to Double, optimize MTMCClock frame logic, and add dynamic control for update state in ControlView.

This commit is contained in:
2025-08-23 15:51:47 +02:00
parent 11b069ddc5
commit f14f316e38
12 changed files with 208 additions and 17 deletions

View File

@@ -3,7 +3,7 @@ package mtmc.emulator
import kotlin.math.min
class MTMCDisplay(private val computer: MonTanaMiniComputer) {
val buffer: BufferedImage = createCanvasImage(COLS, ROWS)
val buffer: BufferedImage = createGLImage(COLS, ROWS)
private var currentColor: DisplayColor? = null
private var graphics: Array<BufferedImage> = arrayOf()
private var byteArray: ByteArray = ByteArray(0)