@babylonjs/core
Version:
Getting started? Play directly with the Babylon.js API using our [playground](https://playground.babylonjs.com/). It also contains a lot of samples to learn how to use it.
44 lines (43 loc) • 990 B
TypeScript
import type { Vector2 } from "../../../Maths/math.vector.js";
/**
* Defines the basic options interface of a TexturePacker Frame
*/
export interface ITexturePackerFrame {
/**
* The frame ID
*/
id: number;
/**
* The frames Scale
*/
scale: Vector2;
/**
* The Frames offset
*/
offset: Vector2;
}
/**
* This is a support class for frame Data on texture packer sets.
*/
export declare class TexturePackerFrame implements ITexturePackerFrame {
/**
* The frame ID
*/
id: number;
/**
* The frames Scale
*/
scale: Vector2;
/**
* The Frames offset
*/
offset: Vector2;
/**
* Initializes a texture package frame.
* @param id The numerical frame identifier
* @param scale Scalar Vector2 for UV frame
* @param offset Vector2 for the frame position in UV units.
* @returns TexturePackerFrame
*/
constructor(id: number, scale: Vector2, offset: Vector2);
}