{"id":23428371,"url":"https://github.com/visualgmq/toy2d","last_synced_at":"2025-04-12T20:20:53.462Z","repository":{"id":65221984,"uuid":"502922492","full_name":"VisualGMQ/toy2d","owner":"VisualGMQ","description":"A toy 2D renderder based on Vulkan","archived":false,"fork":false,"pushed_at":"2023-05-10T09:57:46.000Z","size":223,"stargazers_count":111,"open_issues_count":0,"forks_count":24,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-26T14:38:39.651Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/VisualGMQ.png","metadata":{"files":{"readme":"ReadMe.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-06-13T11:13:31.000Z","updated_at":"2025-03-25T16:41:58.000Z","dependencies_parsed_at":"2024-12-23T07:12:20.369Z","dependency_job_id":"c062033c-0707-4a7b-b429-db1ce04bee4a","html_url":"https://github.com/VisualGMQ/toy2d","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/VisualGMQ%2Ftoy2d","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/VisualGMQ%2Ftoy2d/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/VisualGMQ%2Ftoy2d/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/VisualGMQ%2Ftoy2d/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/VisualGMQ","download_url":"https://codeload.github.com/VisualGMQ/toy2d/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248626345,"owners_count":21135646,"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":[],"created_at":"2024-12-23T07:12:15.056Z","updated_at":"2025-04-12T20:20:53.363Z","avatar_url":"https://github.com/VisualGMQ.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# toy2D\r\n\r\nToy2d是一个模仿`SDL2_Renderer`功能的2D玩具渲染器，是我在学习Vulkan过程中编写的。\r\n\r\n我把我的学习过程录制成视频放在[B站](https://space.bilibili.com/256768793/channel/collectiondetail?sid=404887)了，有兴趣的可以看看。每个视频对应一个分支，可前往不同分支获得不同阶段的代码。\r\n\r\n主分支是最终代码。\r\n\r\n## 编译\r\n\r\n工程使用CMake。需要预先安装好VulkanSDK\r\n\r\nLinux和MacOSX下安装好SDL2，然后运行\r\n\r\n```cmake\r\ncmake -S . -B cmake-build\r\ncmake --build cmake-build\r\n```\r\n\r\nWindows下我只使用VS编译了（其他平台未测试）。下载[编译好的SDL2文件](https://github.com/libsdl-org/SDL/releases/tag/release-2.26.5), 然后再CMake的时候指定SDL2路径：\r\n\r\n```text\r\nSDL2_ROOT = \u003cyour dir to SDL2\u003e/SDL2-2.0.22-VC\r\n```\r\n\r\n然后编译\r\n\r\n```cmake\r\ncmake -S . -B cmake-build\r\ncmake --build cmake-build\r\n```\r\n\r\n产生`sandbox`可执行文件。请在工程根目录下运行（便于找到资源文件）。\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvisualgmq%2Ftoy2d","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvisualgmq%2Ftoy2d","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvisualgmq%2Ftoy2d/lists"}