Skip to content

smokku/bevy_miniquad

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
src
 
 
 
 
 
 
 
 

Bevy engine + miniquad renderer

This is a plugin for Bevy engine that replaces default windowing and rendering plugins with miniquad based one.

Usage

Add to your Cargo.toml:

[dependencies]
bevy = { version = "*", default-features = false, path = "../bevy" }
bevy_miniquad = { git = "https://github.com/smokku/bevy_miniquad.git" }

You need to implement your own render function and add it as a resource:

App::build()
    .add_default_plugins()
    .add_resource::<DrawFn>(Arc::new(Box::new(draw)))
    .add_plugin(MiniquadPlugin)

This plugin exposes Window resource with window dimensions and cursor position.

features

log-impl

This plugin exposes log module with API compatible with log crate, which works under every miniquad supported platform. See blobs example.