{"id":13805352,"url":"https://github.com/nsauzede/vsdl2","last_synced_at":"2026-01-19T09:04:01.888Z","repository":{"id":48196602,"uuid":"206834663","full_name":"nsauzede/vsdl2","owner":"nsauzede","description":"🎬 SDL2 V module -- libSDL2 wrapper","archived":false,"fork":false,"pushed_at":"2024-02-01T11:07:43.000Z","size":1249,"stargazers_count":45,"open_issues_count":3,"forks_count":6,"subscribers_count":6,"default_branch":"master","last_synced_at":"2024-11-18T21:47:21.660Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"V","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/nsauzede.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,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-09-06T16:34:41.000Z","updated_at":"2024-08-27T19:04:13.000Z","dependencies_parsed_at":"2024-05-03T03:01:42.941Z","dependency_job_id":"24c6019b-c9e5-4e79-8a54-ec26bb6ef317","html_url":"https://github.com/nsauzede/vsdl2","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/nsauzede%2Fvsdl2","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nsauzede%2Fvsdl2/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nsauzede%2Fvsdl2/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nsauzede%2Fvsdl2/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nsauzede","download_url":"https://codeload.github.com/nsauzede/vsdl2/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254012968,"owners_count":21999346,"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-08-04T01:01:00.348Z","updated_at":"2026-01-19T09:04:01.880Z","avatar_url":"https://github.com/nsauzede.png","language":"V","funding_links":[],"categories":["Libraries"],"sub_categories":["Graphics"],"readme":"# vsdl2\nSDL2 V module -- libSDL2 wrapper\n\n*IMPORTANT\nvsdl2 has been integrated in V `vlib/sdl` [here](https://github.com/vlang/v/tree/master/vlib/sdl).\nNot sure what will become of this legacy SDL PoC..*\n\nIn fact, the `sdl` component of upstrean vlang seems to have moved [there](https://github.com/vlang/sdl) and be pretty much out of date.\nThus, I'll continue maintaining my initial SDL2 work here, as time permits..\n\n\nCurrent APIs available/tested in examples :\n- basic graphics (2D drawing)\n- [Image](image/README.md)\n- TTF font (text rendering)\n- input handling (keyboard/joystick events)\n- sounds (WAV mixing)\n- music (MOD mixing)\n- more to come.. (networking ?)\n\n# Support\nvsdl2 is supported on :\n- linux (major distros)\n- MacOS (brew)\n- windows (msys2/mingw64 only for now)\n\n# Installation\n`v install nsauzede.vsdl2`\n\n# Examples\n\n[tVintris](https://github.com/nsauzede/vsdl2/tree/master/examples/tvintris)\n\n![tVintris screenshot](https://github.com/nsauzede/vsdl2/blob/master/examples/tvintris/tvintris.png)\n\nOnce you have installed nsauzede.vsdl2 (see above), you can run the example yourself like this :\nOn linux:\n```\nv run ~/.vmodules/nsauzede/vsdl2/examples/tvintris/tvintris.v\n```\nOn Windows (MSYS2):\n```\nv run /c/Users/${USER}/.vmodules/nsauzede/vsdl2/examples/tvintris/tvintris.v\n```\n\n# Dependencies\n\n## Linux\nFedora :\n`$ sudo dnf install SDL2-devel SDL2_ttf-devel SDL2_mixer-devel SDL2_image-devel`\n\nUbuntu :\n`$ sudo apt install libsdl2-ttf-dev libsdl2-mixer-dev libsdl2-image-dev`\n\nClearLinux :\n`$ sudo swupd bundle-add devpkg-SDL2_ttf devpkg-SDL2_mixer devpkg-SDL2_image`\n\n## MacOS\nBrew :\n`$ brew install sdl2 sdl2_gfx sdl2_ttf sdl2_mixer sdl2_image sdl2_net`\n\n## Windows\nWindows (MSYS2) :\n`$ pacman -S mingw-w64-x86_64-SDL2_ttf mingw-w64-x86_64-SDL2_mixer mingw-w64-x86_64-SDL2_image`\n\n# Contributions\n\nThanks to spytheman and adlesh for their contributions to vsdl2\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnsauzede%2Fvsdl2","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnsauzede%2Fvsdl2","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnsauzede%2Fvsdl2/lists"}