mirror of
				https://github.com/ocornut/imgui.git
				synced 2025-10-26 12:27:30 +00:00 
			
		
		
		
	Examples: Setting up style before bindings, so in complex binding (vulkan/dx12) it isn't miles away from the context creation.
This commit is contained in:
		| @@ -80,14 +80,14 @@ int main(int, char**) | ||||
|     ImGuiIO& io = ImGui::GetIO(); (void)io; | ||||
|     //io.ConfigFlags |= ImGuiConfigFlags_NavEnableKeyboard;  // Enable Keyboard Controls | ||||
|  | ||||
|     // Setup Dear ImGui style | ||||
|     ImGui::StyleColorsDark(); | ||||
|     //ImGui::StyleColorsClassic(); | ||||
|  | ||||
|     // Setup Platform/Renderer bindings | ||||
|     ImGui_ImplSDL2_InitForOpenGL(window, gl_context); | ||||
|     ImGui_ImplOpenGL3_Init(glsl_version); | ||||
|  | ||||
|     // Setup Style | ||||
|     ImGui::StyleColorsDark(); | ||||
|     //ImGui::StyleColorsClassic(); | ||||
|  | ||||
|     // Load Fonts | ||||
|     // - If no fonts are loaded, dear imgui will use the default font. You can also load multiple fonts and use ImGui::PushFont()/PopFont() to select them.  | ||||
|     // - AddFontFromFileTTF() will return the ImFont* so you can store it if you need to select the font among multiple.  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 omar
					omar