{"id":19441549,"url":"https://github.com/antix-development/texturecache","last_synced_at":"2026-05-17T07:40:45.888Z","repository":{"id":91497785,"uuid":"98286648","full_name":"Antix-Development/TextureCache","owner":"Antix-Development","description":"A simple cache of reusable textures for Gideros","archived":false,"fork":false,"pushed_at":"2017-07-25T09:19:03.000Z","size":17,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-25T07:46:13.251Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Lua","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Antix-Development.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":"2017-07-25T09:02:28.000Z","updated_at":"2020-11-24T20:16:53.000Z","dependencies_parsed_at":null,"dependency_job_id":"1e1f95b7-6fa7-49e3-b674-db92a7021ee3","html_url":"https://github.com/Antix-Development/TextureCache","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Antix-Development/TextureCache","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Antix-Development%2FTextureCache","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Antix-Development%2FTextureCache/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Antix-Development%2FTextureCache/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Antix-Development%2FTextureCache/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Antix-Development","download_url":"https://codeload.github.com/Antix-Development/TextureCache/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Antix-Development%2FTextureCache/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33131170,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-17T06:27:06.342Z","status":"ssl_error","status_checked_at":"2026-05-17T06:26:59.432Z","response_time":107,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":[],"created_at":"2024-11-10T15:36:11.701Z","updated_at":"2026-05-17T07:40:45.872Z","avatar_url":"https://github.com/Antix-Development.png","language":"Lua","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Texture Cache\n\nA simple cache of reusable textures.\n\nWhen you are using a lot of images, you usually combine them into a Texture Atlas. Whilst this works for small projects what if your game had thousands of different inventory items, some of which would share images but most would have unique ones. This is where using a Texture Atlas stops being viable because the Atlas file would be so large that it is unlikely that a mobile device would support its dimensions, and even if it could, it would probably not have enough texture memory to load it anyway. So we have to resort to loading images manually as required which seems logical because at any one time we will only require a handful of images to be loaded into texture memory.\n\nTextureCache helps manage the loading of textures and stops duplicate textures being loaded into texture memory.\n\nThe way TextureCache works is pretty simple. Just call getTexture(name) where name is the name of the texture file you want to load. If TextureCache has previously loaded the texture it will return it's internal instance of it, otherwise it will load the texture, add it to it's cache of textures and then return that instance.\n\nWhen you are finished using the cache just call reset() and all cached textures will be flushed and if there are no references to any of the cached textures, their texture memory will be released for re use.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fantix-development%2Ftexturecache","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fantix-development%2Ftexturecache","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fantix-development%2Ftexturecache/lists"}