print book without GPU

This commit is contained in:
minjaesong
2024-05-16 01:35:58 +09:00
parent 1aecfc781f
commit 7320a14a4d
8 changed files with 383 additions and 141 deletions

View File

@@ -188,6 +188,18 @@ object Toolkit : Disposable {
}
// draws highly simplified box border
fun drawBoxBorderToPixmap(pixmap: Pixmap, x: Int, y: Int, w: Int, h: Int) {
// top edge
pixmap.fillRectangle(x, y - 1, w, 1)
// bottom edge
pixmap.fillRectangle(x, y + h, w, 1)
// left edge
pixmap.fillRectangle(x - 1, y, 1, h)
// right edge
pixmap.fillRectangle(x + w, y, 1, h)
}
private lateinit var blurtex0: Texture
private lateinit var blurtex1: Texture
private lateinit var blurtex2: Texture