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.
-
42:08
The Why Files
2 days agoLincoln Conspiracy: a Diary, a Mummy and The Escape of John Wilkes Booth
18.9K31 -
24:42
James Klüg
3 days agoAnti-Trump Protester HITS Grandma Thinking She’s With Us
81510 -
2:18:46
Tucker Carlson
9 hours agoTucker Carlson Interviews Nick Fuentes
122K565 -
2:06:42
FreshandFit
10 hours agoCharleston White Addresses The Backlash From His Charlie Kirk Comments
337K76 -
1:34:52
Badlands Media
15 hours agoBaseless Conspiracies Ep. 156: The ADL Files – Spies, Lies & the Leo Frank Legacy
84K37 -
2:04:29
Inverted World Live
10 hours ago700 Scientists and Faith Leaders Warn About Super-Intelligent AI, "Time is Running Out" | Ep. 130
83.7K13 -
2:50:47
TimcastIRL
9 hours agoFOOD STAMPS OVER, Ending Nov 1, Food RIOTS May Spark Trump INSURRECTION ACT | Timcast IRL
230K132 -
4:46:23
Drew Hernandez
19 hours agoCANDACE OWENS CALLS CHARLIE KIRK STAFF INTO QUESTION?
45.8K48 -
47:03
Barry Cunningham
11 hours agoPRESIDENT TRUMP MEETS WITH THE PRIME MINISTER OF JAPAN!! AND MORE NEWS!
62K32 -
1:18:29
Flyover Conservatives
1 day agoThe Dollar Devaluation Playbook: Gold, Bitcoin… and the “Genius Act” - Andy Schectman | FOC Show
53.6K5