Registry / utility / piston-texture

piston-texture

JSON →
library0.9.0rscratesunverified

A generic library for textures.

# Cargo.toml [dependencies] piston-texture = "0.9.0"
INSTALL
IMPORT
SIG · PISTON-TEXTURE
P
piston-texture
utilityrustv0.9.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Texture
use piston_texture::Texture;

Loads a texture from an image file.

use piston_texture::Texture; fn main() { let texture = Texture::from_path("image.png").unwrap(); println!("Texture loaded: {}x{}", texture.get_width(), texture.get_height()); }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.9.0latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
5 hits · last 30 days
node
4
Amazon
1
Resources
piston-texture — cargo add piston-texture · libregistry