Hi, I'm working on learning Direct2D and having a bit of a tough time with all the different types of text in C++. I am able to draw text on the screen, but the way I'm doing it seems terribly inefficient. I'm hoping for a suggest on how to improve this, or maybe how to understand handling text better.
// take string and convert
std::string inText = "Hi";
std::wstring wText = converter.from_bytes(inText);
const wchar_t* text = wText.c_str();
This lets me draw "Hi" on the screen (text), but 4 lines seems like too much just to set up a small word.