{"id":23611209,"url":"https://github.com/jacklehamster/texture-manager","last_synced_at":"2025-11-06T04:30:34.222Z","repository":{"id":65560479,"uuid":"457683177","full_name":"jacklehamster/texture-manager","owner":"jacklehamster","description":"Rearrange and store textures for use in WebGL","archived":false,"fork":false,"pushed_at":"2023-05-26T21:03:42.000Z","size":99,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-01-28T20:19:46.652Z","etag":null,"topics":["texture-pack","webgl","webgl2"],"latest_commit_sha":null,"homepage":"https://jacklehamster.github.io/texture-manager/","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jacklehamster.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":"SECURITY.md","support":null}},"created_at":"2022-02-10T07:57:55.000Z","updated_at":"2022-02-12T21:37:48.000Z","dependencies_parsed_at":"2023-02-16T07:20:29.196Z","dependency_job_id":null,"html_url":"https://github.com/jacklehamster/texture-manager","commit_stats":null,"previous_names":[],"tags_count":18,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jacklehamster%2Ftexture-manager","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jacklehamster%2Ftexture-manager/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jacklehamster%2Ftexture-manager/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jacklehamster%2Ftexture-manager/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jacklehamster","download_url":"https://codeload.github.com/jacklehamster/texture-manager/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239483471,"owners_count":19646424,"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":["texture-pack","webgl","webgl2"],"created_at":"2024-12-27T16:13:40.808Z","updated_at":"2025-11-06T04:30:34.151Z","avatar_url":"https://github.com/jacklehamster.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# texture-manager\nRearrange and store textures for use in WebGL\n\n[![CodeQL](https://github.com/jacklehamster/texture-manager/actions/workflows/codeql-analysis.yml/badge.svg)](https://github.com/jacklehamster/texture-manager/actions/workflows/codeql-analysis.yml)\n\n[![pages-build-deployment](https://github.com/jacklehamster/texture-manager/actions/workflows/pages/pages-build-deployment/badge.svg)](https://github.com/jacklehamster/texture-manager/actions/workflows/pages/pages-build-deployment)\n\n\n## Setup\n\n### Directly in web page\n\nInclude the scripts in html as follow:\n```\n\u003cscript src=\"https://unpkg.com/texture-manager/public/texture-manager.js\"\u003e\u003c/script\u003e\n```\n\n\n### Through NPM\n\n\nAdd to `package.json`:\n```\n  \"dependencies\": {\n  \t...\n    \"texture-manager\": \"^1.0.0\",\n    ...\n  }\n```\n\n\nUse Browserify to make classes available in browser\n\nIn `package.json`:\n```\n  \"scripts\": {\n  \t...\n    \"browserify\": \"browserify browserify/main.js -s dok-lib -o public/gen/compact.js\",\n    ...\n  },\n```\n\nIn `browserify/main.js`:\n```\nconst { TextureManager, TextureUtils, SlotAllocator } = require('texture-manager');\nmodule.exports = {\n  TextureManager,\n  TexureUtils,\n  SlotAllocator\n};\n```\n\n## Components\n\n### TextureManager\n\n#### Description\nTextureManager packs textures in WebGL for use as sprite atlas.\n\n#### Usage\n\n*Work in progress*\n\n\n### Demo\n\n[demo](https://jacklehamster.github.io/texture-manager/)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjacklehamster%2Ftexture-manager","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjacklehamster%2Ftexture-manager","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjacklehamster%2Ftexture-manager/lists"}