{"id":18001726,"url":"https://github.com/xtreme8000/libvxl","last_synced_at":"2026-03-07T17:33:03.768Z","repository":{"id":48169124,"uuid":"136498610","full_name":"xtreme8000/libvxl","owner":"xtreme8000","description":"provides fast in-memory vxl access","archived":false,"fork":false,"pushed_at":"2024-09-25T15:11:11.000Z","size":61,"stargazers_count":16,"open_issues_count":2,"forks_count":3,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-06-12T22:33:50.264Z","etag":null,"topics":["ace-of-spades","aos","fast","inmemory","library","map","rle","voxel","voxlap","vxl"],"latest_commit_sha":null,"homepage":"","language":"C","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/xtreme8000.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,"zenodo":null}},"created_at":"2018-06-07T15:41:40.000Z","updated_at":"2025-04-09T10:13:00.000Z","dependencies_parsed_at":"2025-06-12T22:33:44.776Z","dependency_job_id":"db5c7322-f603-4ad3-9649-4af92db4c273","html_url":"https://github.com/xtreme8000/libvxl","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/xtreme8000/libvxl","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xtreme8000%2Flibvxl","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xtreme8000%2Flibvxl/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xtreme8000%2Flibvxl/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xtreme8000%2Flibvxl/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/xtreme8000","download_url":"https://codeload.github.com/xtreme8000/libvxl/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xtreme8000%2Flibvxl/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30223385,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-07T17:00:40.062Z","status":"ssl_error","status_checked_at":"2026-03-07T17:00:39.026Z","response_time":53,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: 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":["ace-of-spades","aos","fast","inmemory","library","map","rle","voxel","voxlap","vxl"],"created_at":"2024-10-29T23:18:42.513Z","updated_at":"2026-03-07T17:33:03.735Z","avatar_url":"https://github.com/xtreme8000.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"## libvxl\n\n* read n' write Ace of Spades map files **easily** and **fast**\n* compressed internal format derived from .vxl\n* supports enhanced features for special cases:\n  * floating block detection\n  * get top layer block, useful for map overviews\n\nAll functions use voxlap's coordinate system:\n\n![coordsys](docs/coordsys.gif)\n\n## Example\n\n```C\n//create map from v pointer\nstruct libvxl_map m;\nlibvxl_create(\u0026m,512,512,64,v);\n\n//get color at position (x,y,z)\nint col = libvxl_map_get(\u0026m,x,y,z);\n\n//check if block is solid at (x,y,z)\nint solid = libvxl_map_issolid(\u0026m,x,y,z);\n\n//free map after use\nlibvxl_free(\u0026m);\n```\n\n## API functions\n\n```C\n//Load a map from memory or create an empty one\nvoid libvxl_create(struct libvxl_map* map, int w, int h, int d, const void* data);\n//Write a map to disk, uses libvxl_write() internally\nvoid libvxl_writefile(struct libvxl_map* map, char* name);\n//Compress the map back to vxl format and save it in out, the total byte size will be written to size\nvoid libvxl_write(struct libvxl_map* map, void* out, int* size);\n//Tells if a block is solid at location [x,y,z]\nint libvxl_map_issolid(struct libvxl_map* map, int x, int y, int z);\n//Tells if a block is visible on the surface, meaning it is exposed to air\nint libvxl_map_onsurface(struct libvxl_map* map, int x, int y, int z);\n//Read block color\nint libvxl_map_get(struct libvxl_map* map, int x, int y, int z);\n//Read color of topmost block (as seen from above at Z=0)\nvoid libvxl_map_gettop(struct libvxl_map* map, int x, int y, int* result);\n//Set block at location [x,y,z] to a new color\nvoid libvxl_map_set(struct libvxl_map* map, int x, int y, int z, int color);\n//Set location [x,y,z] to air, will destroy any block at this position\nvoid libvxl_map_setair(struct libvxl_map* map, int x, int y, int z);\n//Free a map from memory\nvoid libvxl_free(struct libvxl_map* map);\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxtreme8000%2Flibvxl","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fxtreme8000%2Flibvxl","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxtreme8000%2Flibvxl/lists"}