Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/neopallium/bevy_jpeg2k

Bevy asset loader for JPEG 2000
https://github.com/neopallium/bevy_jpeg2k

Last synced: about 1 month ago
JSON representation

Bevy asset loader for JPEG 2000

Awesome Lists containing this project

README

        

# bevy_jpeg2k

JPEG 2000 image loader for [Bevy](https://bevyengine.org/).

# Versions

- Bevy 0.14: `bevy_jpeg2k = "0.14"`
- Bevy 0.13: `bevy_jpeg2k = "0.13"`
- Bevy 0.12: `bevy_jpeg2k = "0.12"`
- Bevy 0.11: `bevy_jpeg2k = "0.11"`
- Bevy 0.10: `bevy_jpeg2k = "0.10"`
- Bevy 0.9: `bevy_jpeg2k = "0.9"`
- Bevy 0.8: `bevy_jpeg2k = "0.8"`
- Bevy 0.7: `bevy_jpeg2k = "0.7"`
- Bevy 0.6: `bevy_jpeg2k = "0.6"`
- Bevy 0.5: `bevy_jpeg2k = "0.5"`

# Example

```rust
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,
) {
// Load j2k, jp2, j2c, images.
let image_handle: Handle = asset_server.load("example.j2k");
//
}

```