{"id":16985421,"url":"https://github.com/kooparse/texture-packer","last_synced_at":"2025-10-29T07:49:28.554Z","repository":{"id":78350569,"uuid":"442178762","full_name":"kooparse/texture-packer","owner":"kooparse","description":"A dynamic texture packer using a naive packer algorithm. ","archived":false,"fork":false,"pushed_at":"2023-03-05T11:34:25.000Z","size":3,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-19T19:42:05.962Z","etag":null,"topics":["gamedev","zig"],"latest_commit_sha":null,"homepage":"","language":"Zig","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/kooparse.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,"zenodo":null}},"created_at":"2021-12-27T14:12:02.000Z","updated_at":"2021-12-27T21:29:25.000Z","dependencies_parsed_at":null,"dependency_job_id":"fabc15d4-0cb1-4ce2-9f21-6bd80f0f391f","html_url":"https://github.com/kooparse/texture-packer","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/kooparse/texture-packer","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kooparse%2Ftexture-packer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kooparse%2Ftexture-packer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kooparse%2Ftexture-packer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kooparse%2Ftexture-packer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kooparse","download_url":"https://codeload.github.com/kooparse/texture-packer/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kooparse%2Ftexture-packer/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":281584986,"owners_count":26526171,"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","status":"online","status_checked_at":"2025-10-29T02:00:06.901Z","response_time":59,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["gamedev","zig"],"created_at":"2024-10-14T02:43:25.343Z","updated_at":"2025-10-29T07:49:28.549Z","avatar_url":"https://github.com/kooparse.png","language":"Zig","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Texture Packer\n\nPack given bitmaps into a single one.\n\nNote: This library uses a naive rectangle packing algorithm. It's absolutely\nnot the most efficient one, but implementation complexity is very low.\n\nExample:\n```\nconst Packer = TexturePacker(u8, 20, 50);\nvar packer = Packer{};\n\nconst rect = std.mem.zeroes([10 * 10]u8);\n\nconst a = try packer.pushBitmap(10, 10, \u0026rect);\ntry expectEqual(a.x, 0);\ntry expectEqual(a.y, 0);\n\nconst b = try packer.pushBitmap(10, 10, \u0026rect);\ntry expectEqual(b.x, 10);\ntry expectEqual(b.y, 0);\n\nconst c = try packer.pushBitmap(10, 10, \u0026rect);\ntry expectEqual(c.x, 0);\ntry expectEqual(c.y, 10);\n\n// All packed bitmaps are stored there. \nconst result = packer.bitmap;\n```\n\nA good resource about packing algorithms: \n[Exploring rectangle packing algorithms by David Colson](https://www.david-colson.com/2020/03/10/exploring-rect-packing.html)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkooparse%2Ftexture-packer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkooparse%2Ftexture-packer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkooparse%2Ftexture-packer/lists"}