8 ID3DX10Font*
pFont =
nullptr;
19 sprintf_s(err, 256,
"Font::OnD3D10CreateDevice AddFontResourceExA: %s",
pathAndFilename.c_str());
22 int fontsAdded = AddFontResourceExA(
pathAndFilename.c_str(), FR_PRIVATE,
nullptr);
25 sprintf_s(err, 256,
"Font::OnD3D10CreateDevice AddFontResourceExA: %s",
pathAndFilename.c_str());
30 if (FAILED(hr = D3DX10CreateFontA(pDevice,
height,
width, FW_LIGHT, 1,
false, DEFAULT_CHARSET,
31 OUT_TT_ONLY_PRECIS, DEFAULT_QUALITY, FIXED_PITCH | FF_DONTCARE,
34 sprintf_s(err, 256,
"Font::OnD3D10CreateDevice D3DX10CreateFont failed: %s",
name.c_str());
void OnD3D10CreateDevice(Logger *pLogger, ID3D10Device *pDevice)
void Log(const char *msg, Level level=Info, int errorCode=0)
These have to be in this order.
std::string pathAndFilename