0.2.11 • Published 7 months ago

gdxts-texture-packer v0.2.11

Weekly downloads
-
License
-
Repository
-
Last release
7 months ago

gdxts-texture-packer

A little utility to pack a TextureAtlas at runtime. Written in typescript, used for gdxts.

Installation

$ npm install gdxts-texture-packer

Usage

import { packRuntimeAtlas } from "./gdxts-texture-packer";

...

const regionsToPack: TextureRegion[] = [];

regionsToPack.push(...originalAtlas.findRegions('name_of_regions_1'));
regionsToPack.push(...originalAtlas.findRegions('name_of_regions_2'));

const runtimeAtlas = packRuntimeAtlas(gl, regionsToPack);
0.2.11

7 months ago

0.2.10

8 months ago

0.2.1

8 months ago

0.2.0

8 months ago

0.1.8

8 months ago

0.2.9

8 months ago

0.2.2

8 months ago

0.2.5

8 months ago

0.1.6

8 months ago

0.1.1

8 months ago

0.1.4

8 months ago

0.1.0

1 year ago