{"id":22750184,"url":"https://github.com/terenstare/sortviz","last_synced_at":"2025-04-12T23:24:31.772Z","repository":{"id":216944312,"uuid":"742621903","full_name":"TerensTare/sortviz","owner":"TerensTare","description":"A sorting visualizer written in C++20","archived":false,"fork":false,"pushed_at":"2024-01-13T09:41:47.000Z","size":8,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-26T17:40:45.698Z","etag":null,"topics":["cpp","cpp20","sdl2","sorting-algorithms","visualization"],"latest_commit_sha":null,"homepage":"","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/TerensTare.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,"governance":null,"roadmap":null,"authors":null}},"created_at":"2024-01-12T22:20:25.000Z","updated_at":"2024-03-10T05:16:15.000Z","dependencies_parsed_at":"2024-01-13T20:31:28.817Z","dependency_job_id":"6dd95530-6a77-4865-b686-548298be8db3","html_url":"https://github.com/TerensTare/sortviz","commit_stats":null,"previous_names":["terenstare/sortviz"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TerensTare%2Fsortviz","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TerensTare%2Fsortviz/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TerensTare%2Fsortviz/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TerensTare%2Fsortviz/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/TerensTare","download_url":"https://codeload.github.com/TerensTare/sortviz/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248644670,"owners_count":21138607,"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","sdl2","sorting-algorithms","visualization"],"created_at":"2024-12-11T04:12:50.133Z","updated_at":"2025-04-12T23:24:31.744Z","avatar_url":"https://github.com/TerensTare.png","language":"C++","readme":"\n# SortViz - A sorting algorithm visualizer written in C++20\n\nThis repo contains a program that demonstrates how common sorting algorithms work step by step.\n\n\n## Building and running\n\nTo build and run the repo, you need a C++ compiler that supports C++20, [cmake](https://cmake.org/) (\u003e= 3.25) and [vcpkg](https://github.com/microsoft/vcpkg) to manage the dependencies. On Linux [ninja](https://ninja-build.org/) is needed to configure the project with CMake. Please refer to the corresponding documentation on how to obtain these dependencies.\n\n\n### 1. Installing the dependencies\n\nThe project uses SDL2 for rendering the data being sorted and ImGui to provide a simple control panel within the application. To install these packages, run the following command:\n\n```sh\n# Replace {arch} and {os} with what you want to target.\n# Run `vcpkg help triplets` for a list of available options.\n# Remember the arch for later steps.\n# Also run this from a folder outside of the project, as vcpkg won't allow you\n# to run the command from there.\nvcpkg install sdl2 imgui imgui[sdl2-binding] imgui[sdl2-renderer-binding] --triplet={arch}-{os}\n```\n\n### 2. Configuring with CMake\n\nCMake needs to configure the project first before building, which can be done with the following command:\n\n```sh\n# Presets are of format {gen}-{arch}, where {gen} and {arch} are as following:\n# {gen} - vs2019, vs2022 and ninja\n# {arch} - x86, arm64, x64\n# eg. to use Visual Studio 2022 to build in x64 mode, run `cmake --preset vs2022-x64`\n# Also, for macOS there is the preset xcode (so command would be `cmake --preset xcode`).\n# If you are using an IDE/editor, it should automatically list the compatible presets for you.\n# Remember to match the arch with the one you installed the vcpkg packages for.\ncmake --preset {my-preset}\n```\n\n### 3. Building the project\n\nTo build the project, run the following command:\n\n```sh\n# See `CMakePresets.json` for a list of available presets.\n# If you are using an IDE/editor, it should automatically list the compatible ones.\n# Remember to match the arch with the one you installed vcpkg packages for.\ncmake --build . --preset {my-preset}\n```\n\nThe project should then be built and you should see where the executable file is located.\n\n\n## License\n\nThe code is licensed under the [MIT license](./LICENSE).\n\n## Contributing\n\nPlease open an issue if you notice a bug or have an idea for the project. Thank you!","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fterenstare%2Fsortviz","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fterenstare%2Fsortviz","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fterenstare%2Fsortviz/lists"}