Mercurial > games > semicongine
diff semiconginev2/text/textbox.nim @ 1238:03634915bbdb
add: tests for updating texts, does not pass validation atm
author | sam <sam@basx.dev> |
---|---|
date | Sun, 21 Jul 2024 11:31:11 +0700 |
parents | 176383220123 |
children | 69489a678141 |
line wrap: on
line diff
--- a/semiconginev2/text/textbox.nim Sun Jul 21 00:03:48 2024 +0700 +++ b/semiconginev2/text/textbox.nim Sun Jul 21 11:31:11 2024 +0700 @@ -97,6 +97,8 @@ textbox.position.data[vertexOffset + 1] = NewVec3f() textbox.position.data[vertexOffset + 2] = NewVec3f() textbox.position.data[vertexOffset + 3] = NewVec3f() + UpdateGPUBuffer(textbox.position, flush = true) + UpdateGPUBuffer(textbox.uv, flush = true) textbox.lastRenderedText = textbox.processedText func text*(textbox: Textbox): seq[Rune] =