Test sprite from script
This commit is contained in:
Vendored
+28
@@ -0,0 +1,28 @@
|
||||
/**
|
||||
* Copyright (c) 2026 Dominic Masters
|
||||
*
|
||||
* This software is released under the MIT License.
|
||||
* https://opensource.org/licenses/MIT
|
||||
*/
|
||||
|
||||
/**
|
||||
* A loaded texture asset. Holds a lock on the underlying asset entry —
|
||||
* the lock is released automatically when the object is garbage collected.
|
||||
*/
|
||||
interface Texture {
|
||||
/** Pixel width of the texture. */
|
||||
readonly width: number;
|
||||
/** Pixel height of the texture. */
|
||||
readonly height: number;
|
||||
toString(): string;
|
||||
}
|
||||
|
||||
interface TextureConstructor {
|
||||
/** RGBA 32-bit format (4 channels × 8 bits). */
|
||||
readonly FORMAT_RGBA: number;
|
||||
/** Paletted format. */
|
||||
readonly FORMAT_PALETTE: number;
|
||||
new(): never;
|
||||
}
|
||||
|
||||
declare var Texture: TextureConstructor;
|
||||
Reference in New Issue
Block a user