mirror of
				https://github.com/ocornut/imgui.git
				synced 2025-10-26 12:27:30 +00:00 
			
		
		
		
	Examples: comments.
This commit is contained in:
		| @@ -73,16 +73,21 @@ int main(int, char**) | ||||
|  | ||||
|     // Setup ImGui binding | ||||
|     ImGui_ImplDX9_Init(hwnd, g_pd3dDevice); | ||||
|  | ||||
|     // Load Fonts | ||||
|     // (see extra_fonts/README.txt for more details) | ||||
|     //ImGuiIO& io = ImGui::GetIO(); | ||||
|     //io.Fonts->AddFontDefault(); | ||||
|     //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/ProggyTiny.ttf", 10.0f); | ||||
|     //io.Fonts->AddFontFromFileTTF("c:\\Windows\\Fonts\\ArialUni.ttf", 18.0f, NULL, io.Fonts->GetGlyphRangesJapanese()); | ||||
|  | ||||
|     ShowWindow(hwnd, SW_SHOWDEFAULT); | ||||
|     UpdateWindow(hwnd); | ||||
|     // Merge glyphs from multiple fonts into one (e.g. combine default font with another with Chinese glyphs, or add icons) | ||||
|     //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_another_window = false; | ||||
| @@ -91,6 +96,8 @@ int main(int, char**) | ||||
|     // Main loop | ||||
|     MSG msg; | ||||
|     ZeroMemory(&msg, sizeof(msg)); | ||||
|     ShowWindow(hwnd, SW_SHOWDEFAULT); | ||||
|     UpdateWindow(hwnd); | ||||
|     while (msg.message != WM_QUIT) | ||||
|     { | ||||
|         if (PeekMessage(&msg, NULL, 0U, 0U, PM_REMOVE)) | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 ocornut
					ocornut