@bloopjs/toodle / textures/types / TextureWithMetadata
Type Alias: TextureWithMetadata
TextureWithMetadata =
object
Defined in: textures/types.ts:71
A TextureWithMetadata is a texture that has been loaded into the gpu.
It contains the gpu texture data and a cropOffset and originalSize for use with cropped textures.
Properties
cropOffset
cropOffset:
Vec2
Defined in: textures/types.ts:74
crop offset from center in texel units
originalSize
originalSize:
Size
Defined in: textures/types.ts:76
original size in texel units before cropping
texture
texture:
GPUTexture
Defined in: textures/types.ts:72