{"id":21653574,"url":"https://github.com/karnkaul/dibs","last_synced_at":"2025-03-20T04:31:55.712Z","repository":{"id":45096497,"uuid":"443395608","full_name":"karnkaul/dibs","owner":"karnkaul","description":"Dear ImGui BootStrap using GLFW, Vulkan, and C++20","archived":false,"fork":false,"pushed_at":"2022-06-18T05:48:54.000Z","size":67,"stargazers_count":2,"open_issues_count":3,"forks_count":1,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-01-25T06:11:20.291Z","etag":null,"topics":["cpp","cpp20","cpp20-library","glfw","gui","vulkan"],"latest_commit_sha":null,"homepage":"","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/karnkaul.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-12-31T17:28:11.000Z","updated_at":"2023-01-11T18:18:55.000Z","dependencies_parsed_at":"2022-09-02T22:40:42.680Z","dependency_job_id":null,"html_url":"https://github.com/karnkaul/dibs","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/karnkaul%2Fdibs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/karnkaul%2Fdibs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/karnkaul%2Fdibs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/karnkaul%2Fdibs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/karnkaul","download_url":"https://codeload.github.com/karnkaul/dibs/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244551922,"owners_count":20470951,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cpp","cpp20","cpp20-library","glfw","gui","vulkan"],"created_at":"2024-11-25T08:19:22.776Z","updated_at":"2025-03-20T04:31:55.695Z","avatar_url":"https://github.com/karnkaul.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Dear ImGui BootStrap (dibs)\n\nA small quick-start library that provides a GLFW / Vulkan backend for Dear ImGui.\n\n[![Build Status](https://github.com/karnkaul/dibs/actions/workflows/ci.yml/badge.svg)](https://github.com/karnkaul/dibs/actions/workflows/ci.yml)\n\n## Features\n\n- Lightweight wrapper with minimal bloat\n- Create a GLFW window, Vulkan instance, device, and swapchain in one call\n- Start a new frame with a clear colour in one call\n- Reuse a single install across multiple CMake projects\n\n## Usage\n\nAdd project to build tree if building from source, or installed package path to `CMAKE_PREFIX_PATH`, and link to `dibs::dibs`.\n\n```cmake\n# build source\nadd_subdirectory(path/to/dibs)\n\n# imported package\nfind_package(dibs REQUIRED)\n\nadd_executable(foo)\ntarget_link_libraries(foo PRIVATE dibs::dibs)\n```\n\nInclude `dibs/dibs.hpp` and `imgui.h` and create a `dibs::Instance` to initialize `GLFW`, `Vulkan`, `Dear ImGui`, and create a window.\n\nRefer to [the wiki](https://github.com/karnkaul/dibs/wiki) for more information.\n\n### Example\n\nRefer to [example.cpp](examples/example.cpp).\n\n### Misc\n\n1. Do not use branch names with `FetchContent` - as source branches change, target builds / older commits will break\n1. Only one `dibs::Instance` is supported; `Dear ImGui` uses global state and does not directly support multiple windows\n1. `dibs` links to Vulkan (headers) and GLFW publicly; user code can reference those libraries if desired\n    1. However, `dibs.hpp` is designed to be lightweight, and does not include Vulkan / GLFW headers\n    1. To extract such types from `dibs::Instance` (eg `GLFWwindow*`, `vk::CommandBuffer`), use `dibs/bridge.hpp` (not demonstrated)\n\n## External Dependencies\n\n- [Dear ImGui](https://github.com/ocornut/imgui)\n- [glfw](https://github.com/GLFW/glfw)\n- [vk-bootstrap](https://github.com/charles-lunarg/vk-bootstrap)\n- [dyvk](https://github.com/karnkaul/dyvk)\n- [ktl](https://github.com/karnkaul/ktl)\n\n[Original repository](https://github.com/karnkaul/dibs)\n\n[LICENCE](LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkarnkaul%2Fdibs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkarnkaul%2Fdibs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkarnkaul%2Fdibs/lists"}