TerraForge3D  2.3.1
3D Terrain And Landscape Generator

◆ ShowDownloadedTexturesSettings()

void TextureStore::ShowDownloadedTexturesSettings ( )
private

Definition at line 410 of file TextureStore.cpp.

411{
412 ImGui::Columns(4, NULL);
413 float width = ImGui::GetContentRegionAvail().x;
414
415 if(width <= 5)
416 {
417 width = 50;
418 }
419
420 ImGui::PushStyleColor(ImGuiCol_ChildBg, ImVec4(0.5f, 0.5f, 0.5f, 0.7f));
421
422 for(int i=0; i<downloadedTextureStoreItems.size(); i++)
423 {
424 TextureStoreItem &item = textureStoreItems[downloadedTextureStoreItems[i]];
425 ImGui::PushID(i);
426 ImGui::BeginChild("##texture_thumb", ImVec2(width, 300), true);
427 ImGui::Image((ImTextureID)item.texThumbnail->GetRendererID(), ImVec2(width, 120));
428 ImGui::Text(item.name.c_str());
429
430 if(ImGui::Button("Delete##DTS"))
431 {
432 DeleteTexture(downloadedTextureStoreItems[i]);
433 }
434
435 //ImGui::Text("Downloads : %d", item.download_count);
436 //ImGui::Text("Authors :");
437 //for(auto author : item.authours)
438 //{
439 // ImGui::BulletText(author.c_str());
440 //}
441 ImGui::EndChild();
442 ImGui::PopID();
443 ImGui::NextColumn();
444 }
445
446 ImGui::PopStyleColor();
447 ImGui::Columns(1);
448}