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
Dr Disrespect
7 hours ago🔴LIVE - DR DISRESPECT - IMPOSSIBLE 5 CHICKEN DINNER CHALLENGE - FEAT. VISS
1,251 watching -
LIVE
The Jimmy Dore Show
38 minutes agoTrump Administration Sends Accused Pedo BACK TO ISRAEL! Ukrainians Now OVERWHELMINGLY Oppose War!
4,427 watching -
DVR
TheCrucible
2 hours agoThe Extravaganza! Ep. 24 (8/20/25)
14.3K1 -
1:18:42
Kim Iversen
2 hours agoUFO Base Area 51 Catches Fire… Is It a Massive Cover-Up?!
5.04K29 -
1:51:18
Redacted News
2 hours ago"There will be consequences!!!" Trump issues big threat to Putin ahead of peace summit | Redacted
66.6K43 -
53:14
Candace Show Podcast
2 hours agoThe MOST MORAL Blackmail In The World | Candace EP 231
18.8K80 -
1:11:28
vivafrei
4 hours agoMatt Taibbi Getting "Westfalled"? Kathy Hochul Fighting for Illegals! Mamdani Minority Report & MORE
70K28 -
2:03:39
Pop Culture Crisis
4 hours agoWTF Happened to Miley Cyrus? HARRY POTTER Set Images, Sydney Sweeney Hater EXPOSED | Ep. 901
18.4K18 -
10:17
MattMorseTV
4 hours ago $5.37 earnedTrump's DOJ just DROPPED a NUKE.
23.8K31 -
11:07
Politibrawl
12 days agoRepublican rising star DESTROYS theatrical Democrat in front of the entire world
66.7K30