Crates.io | bevy_jpeg2k |
lib.rs | bevy_jpeg2k |
version | 0.14.1 |
source | src |
created_at | 2022-01-09 10:27:35.617415 |
updated_at | 2024-07-06 13:18:02.544695 |
description | JPEG 2000 image loader for Bevy. |
homepage | https://github.com/Neopallium/bevy_jpeg2k |
repository | https://github.com/Neopallium/bevy_jpeg2k |
max_upload_size | |
id | 510755 |
size | 249,941 |
JPEG 2000 image loader for Bevy.
bevy_jpeg2k = "0.14"
bevy_jpeg2k = "0.13"
bevy_jpeg2k = "0.12"
bevy_jpeg2k = "0.11"
bevy_jpeg2k = "0.10"
bevy_jpeg2k = "0.9"
bevy_jpeg2k = "0.8"
bevy_jpeg2k = "0.7"
bevy_jpeg2k = "0.6"
bevy_jpeg2k = "0.5"
use bevy::prelude::*;
use bevy_jpeg2k::*;
fn main() {
App::new()
.add_plugins(DefaultPlugins)
// Load the Jpeg 2000 asset loader plugin.
.add_plugins(Jpeg2KPlugin)
.add_systems(Startup, setup)
.run();
}
fn setup(
asset_server: Res<AssetServer>,
) {
// Load j2k, jp2, j2c, images.
let image_handle: Handle<Image> = asset_server.load("example.j2k");
// <Use the image handle>
}