1.0.21 • Published 12 months ago
texture-manager v1.0.21
texture-manager
Rearrange and store textures for use in WebGL
Setup
Directly in web page
Include the scripts in html as follow:
<script src="https://unpkg.com/texture-manager/public/texture-manager.js"></script>
Through NPM
Add to package.json
:
"dependencies": {
...
"texture-manager": "^1.0.0",
...
}
Use Browserify to make classes available in browser
In package.json
:
"scripts": {
...
"browserify": "browserify browserify/main.js -s dok-lib -o public/gen/compact.js",
...
},
In browserify/main.js
:
const { TextureManager, TextureUtils, SlotAllocator } = require('texture-manager');
module.exports = {
TextureManager,
TexureUtils,
SlotAllocator
};
Components
TextureManager
Description
TextureManager packs textures in WebGL for use as sprite atlas.
Usage
Work in progress
Demo
1.0.21
12 months ago
1.0.19
1 year ago
1.0.18
1 year ago
1.0.17
1 year ago
1.0.16
1 year ago
1.0.20
1 year ago
1.0.15
1 year ago
1.0.14
1 year ago
1.0.13
1 year ago
1.0.12
1 year ago
1.0.9
2 years ago
1.0.8
2 years ago
1.0.7
2 years ago
1.0.6
2 years ago
1.0.5
2 years ago
1.0.11
2 years ago
1.0.10
2 years ago
1.0.4
2 years ago
1.0.3
2 years ago
1.0.2
2 years ago
1.0.1
2 years ago