[add] 숄더뷰 카메라 추가
This commit is contained in:
@@ -130,16 +130,21 @@ HRESULT CMainApp::Ready_IMGUI()
|
||||
ImGui_ImplWin32_Init(g_hWnd);
|
||||
ImGui_ImplDX11_Init(m_pDevice, m_pContext);
|
||||
|
||||
string strFontTag = "../Bin/Resources/Fonts/SHOWG.TTF";
|
||||
|
||||
//string strFontTag = "C:\\Windows\\Fonts\\malgun.ttf";
|
||||
string strFontTag = "../Bin/Resources/Fonts/malgunsl.TTF";
|
||||
ImFontConfig cfg;
|
||||
cfg.OversampleH = 2; // 가독성 향상
|
||||
cfg.OversampleV = 2;
|
||||
cfg.PixelSnapH = true;
|
||||
ifstream ifile;
|
||||
|
||||
ifile.open(strFontTag);
|
||||
if (ifile)
|
||||
{
|
||||
font = io.Fonts->AddFontFromFileTTF(strFontTag.c_str(), 10.f, NULL, io.Fonts->GetGlyphRangesKorean());
|
||||
font = io.Fonts->AddFontFromFileTTF(strFontTag.c_str(), 16.f, NULL, io.Fonts->GetGlyphRangesKorean());
|
||||
}
|
||||
IM_ASSERT(font != NULL);
|
||||
io.FontDefault = font;
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user