@blooper.gg/toodle / textures/types / TextureWithMetadata
Type Alias: TextureWithMetadata
TextureWithMetadata =
object
Defined in: textures/types.ts:68
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:71
crop offset from center in texel units
originalSize
originalSize:
Size
Defined in: textures/types.ts:73
original size in texel units before cropping
texture
texture:
GPUTexture
Defined in: textures/types.ts:69