mirror of
				https://github.com/Drezil/imgui.git
				synced 2025-10-30 20:51:06 +01:00 
			
		
		
		
	Renamed AddArcFast() parameter 'tris' to 'filled'
This commit is contained in:
		| @@ -7751,7 +7751,7 @@ void ImDrawList::AddLine(const ImVec2& a, const ImVec2& b, ImU32 col, float thic | |||||||
|     AddVtxLine(a, b, col, thickness); |     AddVtxLine(a, b, col, thickness); | ||||||
| } | } | ||||||
|  |  | ||||||
| void ImDrawList::AddArcFast(const ImVec2& center, float radius, ImU32 col, int a_min, int a_max, bool tris, const ImVec2& third_point_offset) | void ImDrawList::AddArcFast(const ImVec2& center, float radius, ImU32 col, int a_min, int a_max, bool filled, const ImVec2& third_point_offset) | ||||||
| { | { | ||||||
|     if ((col >> 24) == 0) |     if ((col >> 24) == 0) | ||||||
|         return; |         return; | ||||||
| @@ -7770,7 +7770,7 @@ void ImDrawList::AddArcFast(const ImVec2& center, float radius, ImU32 col, int a | |||||||
|         circle_vtx_builds = true; |         circle_vtx_builds = true; | ||||||
|     } |     } | ||||||
|      |      | ||||||
|     if (tris) |     if (filled) | ||||||
|     { |     { | ||||||
|         ReserveVertices((unsigned int)(a_max-a_min) * 3); |         ReserveVertices((unsigned int)(a_max-a_min) * 3); | ||||||
|         for (int a0 = a_min; a0 < a_max; a0++) |         for (int a0 = a_min; a0 < a_max; a0++) | ||||||
|   | |||||||
							
								
								
									
										2
									
								
								imgui.h
									
									
									
									
									
								
							
							
						
						
									
										2
									
								
								imgui.h
									
									
									
									
									
								
							| @@ -913,7 +913,7 @@ struct ImDrawList | |||||||
|     IMGUI_API void  AddTriangleFilled(const ImVec2& a, const ImVec2& b, const ImVec2& c, ImU32 col); |     IMGUI_API void  AddTriangleFilled(const ImVec2& a, const ImVec2& b, const ImVec2& c, ImU32 col); | ||||||
|     IMGUI_API void  AddCircle(const ImVec2& centre, float radius, ImU32 col, int num_segments = 12); |     IMGUI_API void  AddCircle(const ImVec2& centre, float radius, ImU32 col, int num_segments = 12); | ||||||
|     IMGUI_API void  AddCircleFilled(const ImVec2& centre, float radius, ImU32 col, int num_segments = 12); |     IMGUI_API void  AddCircleFilled(const ImVec2& centre, float radius, ImU32 col, int num_segments = 12); | ||||||
|     IMGUI_API void  AddArcFast(const ImVec2& center, float radius, ImU32 col, int a_min_12, int a_max_12, bool tris = false, const ImVec2& third_point_offset = ImVec2(0,0)); // Angles in 0..12 range |     IMGUI_API void  AddArcFast(const ImVec2& center, float radius, ImU32 col, int a_min_12, int a_max_12, bool filled = false, const ImVec2& third_point_offset = ImVec2(0,0)); // Angles in 0..12 range | ||||||
|     IMGUI_API void  AddText(const ImFont* font, float font_size, const ImVec2& pos, ImU32 col, const char* text_begin, const char* text_end = NULL, float wrap_width = 0.0f, const ImVec2* cpu_clip_max = NULL); |     IMGUI_API void  AddText(const ImFont* font, float font_size, const ImVec2& pos, ImU32 col, const char* text_begin, const char* text_end = NULL, float wrap_width = 0.0f, const ImVec2* cpu_clip_max = NULL); | ||||||
|     IMGUI_API void  AddImage(ImTextureID user_texture_id, const ImVec2& a, const ImVec2& b, const ImVec2& uv0, const ImVec2& uv1, ImU32 col = 0xFFFFFFFF); |     IMGUI_API void  AddImage(ImTextureID user_texture_id, const ImVec2& a, const ImVec2& b, const ImVec2& uv0, const ImVec2& uv1, ImU32 col = 0xFFFFFFFF); | ||||||
|  |  | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user