1.0.21 • Published 2 years 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
2 years ago
1.0.19
2 years ago
1.0.18
2 years ago
1.0.17
2 years ago
1.0.16
2 years ago
1.0.20
2 years ago
1.0.15
2 years ago
1.0.14
2 years ago
1.0.13
2 years ago
1.0.12
2 years ago
1.0.9
3 years ago
1.0.8
3 years ago
1.0.7
3 years ago
1.0.6
3 years ago
1.0.5
3 years ago
1.0.11
3 years ago
1.0.10
3 years ago
1.0.4
3 years ago
1.0.3
3 years ago
1.0.2
3 years ago
1.0.1
3 years ago