|
|
@ -73,16 +73,21 @@ int main(int, char**)
|
|
|
|
|
|
|
|
|
|
|
|
// Setup ImGui binding
|
|
|
|
// Setup ImGui binding
|
|
|
|
ImGui_ImplDX9_Init(hwnd, g_pd3dDevice);
|
|
|
|
ImGui_ImplDX9_Init(hwnd, g_pd3dDevice);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// Load Fonts
|
|
|
|
|
|
|
|
// (see extra_fonts/README.txt for more details)
|
|
|
|
//ImGuiIO& io = ImGui::GetIO();
|
|
|
|
//ImGuiIO& io = ImGui::GetIO();
|
|
|
|
//io.Fonts->AddFontDefault();
|
|
|
|
//io.Fonts->AddFontDefault();
|
|
|
|
//io.Fonts->AddFontFromFileTTF("../../extra_fonts/DroidSans.ttf", 16.0f);
|
|
|
|
//io.Fonts->AddFontFromFileTTF("../../extra_fonts/DroidSans.ttf", 16.0f);
|
|
|
|
//io.Fonts->AddFontFromFileTTF("../../extra_fonts/Karla-Regular.ttf", 16.0f);
|
|
|
|
|
|
|
|
//io.Fonts->AddFontFromFileTTF("../../extra_fonts/ProggyClean.ttf", 13.0f);
|
|
|
|
//io.Fonts->AddFontFromFileTTF("../../extra_fonts/ProggyClean.ttf", 13.0f);
|
|
|
|
//io.Fonts->AddFontFromFileTTF("../../extra_fonts/ProggyTiny.ttf", 10.0f);
|
|
|
|
//io.Fonts->AddFontFromFileTTF("../../extra_fonts/ProggyTiny.ttf", 10.0f);
|
|
|
|
//io.Fonts->AddFontFromFileTTF("c:\\Windows\\Fonts\\ArialUni.ttf", 18.0f, NULL, io.Fonts->GetGlyphRangesJapanese());
|
|
|
|
//io.Fonts->AddFontFromFileTTF("c:\\Windows\\Fonts\\ArialUni.ttf", 18.0f, NULL, io.Fonts->GetGlyphRangesJapanese());
|
|
|
|
|
|
|
|
|
|
|
|
ShowWindow(hwnd, SW_SHOWDEFAULT);
|
|
|
|
// Merge glyphs from multiple fonts into one (e.g. combine default font with another with Chinese glyphs, or add icons)
|
|
|
|
UpdateWindow(hwnd);
|
|
|
|
//ImWchar icons_ranges[] = { 0xf000, 0xf3ff, 0 };
|
|
|
|
|
|
|
|
//ImFontConfig icons_config; icons_config.MergeMode = true; icons_config.PixelSnapH = true;
|
|
|
|
|
|
|
|
//io.Fonts->AddFontFromFileTTF("../../extra_fonts/DroidSans.ttf", 18.0f);
|
|
|
|
|
|
|
|
//io.Fonts->AddFontFromFileTTF("../../extra_fonts/fontawesome-webfont.ttf", 18.0f, &icons_config, icons_ranges);
|
|
|
|
|
|
|
|
|
|
|
|
bool show_test_window = true;
|
|
|
|
bool show_test_window = true;
|
|
|
|
bool show_another_window = false;
|
|
|
|
bool show_another_window = false;
|
|
|
@ -91,6 +96,8 @@ int main(int, char**)
|
|
|
|
// Main loop
|
|
|
|
// Main loop
|
|
|
|
MSG msg;
|
|
|
|
MSG msg;
|
|
|
|
ZeroMemory(&msg, sizeof(msg));
|
|
|
|
ZeroMemory(&msg, sizeof(msg));
|
|
|
|
|
|
|
|
ShowWindow(hwnd, SW_SHOWDEFAULT);
|
|
|
|
|
|
|
|
UpdateWindow(hwnd);
|
|
|
|
while (msg.message != WM_QUIT)
|
|
|
|
while (msg.message != WM_QUIT)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
if (PeekMessage(&msg, NULL, 0U, 0U, PM_REMOVE))
|
|
|
|
if (PeekMessage(&msg, NULL, 0U, 0U, PM_REMOVE))
|
|
|
|