Premium Only Content
No Game Engine Game Dev: Word Sleuth 030B: TextEdit Cursor and long word wrapping
Streamed on 2024-08-13 (https://www.twitch.tv/thediscouragerofhesitancy)
Game Engines are for sissies!
Sorry the stream cut short; my internet died. There is a part A.
I finally finished tracking down all the bookkeeping for cursor position with different text alignments. With that out of the way, I added a callback for Text to signal when the cursor positions have been updated and a small change to TextEdit to skip over windows end of line (\n\r) in a single key stroke.
With that out of the way, we added clipping to the cursor so it won't render outside the TextEdit area. This required a refactor that I wanted to do anyway. Instead of passing View-Projection matrix * localTransform down to child elements for rendering, we instead pass only the View-Projection matrix down to children and rely on worldTransform to apply all parent transforms. In the worst case this shouldn't be worse than what we had before, and in the general case it should be more efficient. Then it was similar shader work to what we did with Text clipping.
Next, I reworked my Makefile so we don't produce precompiled headers. I think the precompiled headers were causing more trouble in my build process then they were at saving time. We'll let this cook for a while, but I suspect we won't have to clean before building as often.
Lastly, I started on long word wrapping. This adds yet more bookkeeping to be done with counting characters and quads in the VertexBuffer and cursor positions. We got close, but there is still one open issue with the implementation that we'll wrap up next time.
-
LIVE
vivafrei
3 hours agoDoug Ford's Tour of Shame! Ed Markey's Self Own! Biden's Autopen Scandal is BAD! AND MORE!
8,560 watching -
LIVE
Dr Disrespect
7 hours ago🔴LIVE - DR DISRESPECT - BATTLEFIELD 6 - REDSEC LAUNCH - BATTLE ROYALE
1,849 watching -
1:08:34
DeVory Darkins
3 hours agoDHS announces Major SHAKE UP as Air Traffic Controllers drop ULTIMATUM for Congress
122K80 -
LIVE
StoneMountain64
6 hours agoBattlefield REDSEC Battle Royale GAMEPLAY & 1st Impressions (Free to Play LAUNCH DAY)
279 watching -
3:23:22
The Confessionals
4 hours agoThey Crossed Realms Doing Soul Retrievals (and paid the price)
1991 -
LIVE
Badlands Media
13 hours agoGeopolitics with Ghost Ep. 52 - October 28, 2025
1,296 watching -
LIVE
VapinGamers
4 hours agoTools of the Trade - EP09 The One About Comedy with Lou Perez - !rumbot !music
28 watching -
1:10:07
Sean Unpaved
4 hours agoFreddie's Epic Midnight Walk-Off, Saturday's Coaching Carnage, & NFL Weekend 8 Recap
21.5K -
9:57
Neil McCoy-Ward
5 hours agoI Walked Into Something I Shouldn’t Have (London)
3.1K10 -
LIVE
SOLTEKGG
5 hours ago🔴LIVE - BATTLEROYALE - BF6 Giveaway
56 watching