Another tip, since push_back actually sped up your application - means that you haven't reserved the vector space before. Which essentially means that every time you hit the capacity limit, you re-allocate the vector, copy the contents into the new buffer, and starts pushing. This will happen 10-12 times if you fill your screen with text. If you reserve your vector up front (which you probably should, since you probably already know the text length already) you will just allocate once, and not do massive waste of copying over to re-allocated buffers. Also, after having reserved the vector, there is also a slight chance that emplace_back might increase your speed too, instead of push_back.
Your videos are top quality. I've been trying to find more videos like yours. I was looking through your source code for flower, and I was wondering if you watch Casey Muratori or have followed his Handmade Hero series? You seem to have similar technique and style to how Casey writes code.
I guess the thing you need to do first is to enable WinApi to display your array of pixels onto the screen. Or you can use wgl winapi functions to create opengl context (which are standard - you should already have them, for example wglCreateContext - google it). And then after that you will need to load a font - i mean load font information and convert it into bitmaps - which are arrays of pixels. So that then you can render them on the screen. Yeah, completely understand your feelings about this. However when making content for RU-vid the is 0 chance to make useful content for everyone. I cannot make 10 hour video which will explain everything. Just had hope that this video will help someone in SOME way.
@@fusion5329 It does. I'm trying to get you to wake up and realize you do not have the necessary skills to write your own font renderer when you can't even learn Win32's documentation on your own. Font/glyph rendering is a well known engineering challenge that some of the smartest people on this planet have failed at perfecting on even the most modern of OSes. You don't know what you don't know. Using FreeType is not cheating; it's just being non-delusional and recognizing your skill level. Even Apple of all fucking companies is using it for iOS and God knows Apple is allergic to 3rd party anything. It's just that hard and you should start with something far simpler.