Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mikolalysenko/gl-tile-map
WebGL tile map/texture atlas
https://github.com/mikolalysenko/gl-tile-map
Last synced: about 2 months ago
JSON representation
WebGL tile map/texture atlas
- Host: GitHub
- URL: https://github.com/mikolalysenko/gl-tile-map
- Owner: mikolalysenko
- License: mit
- Created: 2013-07-02T16:44:29.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2014-04-08T13:06:09.000Z (over 10 years ago)
- Last Synced: 2024-10-20T14:27:56.601Z (2 months ago)
- Language: JavaScript
- Size: 152 KB
- Stars: 6
- Watchers: 4
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
gl-tile-map
===========
Generates a WebGL texture atlas for a tile map.## Install
npm install gl-tile-map
### `require("gl-tile-map")(gl, tiles[, pad])`
Generates a tilemap as atexture object.* `gl` is a webgl context
* `tiles` is a 5 dimensional ndarray of tiles.
* `pad` is an optional flag that if set pads each tile by a factor of 1/2 along each dimension.**Returns** A `gl-texture2d` object encoding the atlas
# Credits
(c) 2013 Mikola Lysenko. MIT License