gdxjs-texture-packer
TypeScript icon, indicating that this package has built-in type declarations

0.1.2 • Public • Published

gdxjs-texture-packer

A little utility to pack a texture atlas at runtime. Written in typescript, used for gdxjs.

Installation

$ npm install gdxjs-texture-packer

Usage

import { packRuntimeAtlas } from "./gdxjs-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);

Readme

Keywords

none

Package Sidebar

Install

npm i gdxjs-texture-packer

Weekly Downloads

0

Version

0.1.2

License

none

Unpacked Size

5.5 kB

Total Files

4

Last publish

Collaborators

  • implicit-invocation