dunge 0.3.0-rc

Simple and portable 3d render library
Documentation
pub mod bind;
pub mod color;
mod context;
mod draw;
mod format;
pub mod group;
mod init;
pub mod instance;
pub mod layer;
pub mod mesh;
mod shader;
mod state;
pub mod texture;
pub mod uniform;
pub mod vertex;

#[cfg(feature = "winit")]
mod el;
#[cfg(feature = "winit")]
mod element;
#[cfg(feature = "winit")]
mod time;
#[cfg(feature = "winit")]
mod update;
#[cfg(feature = "winit")]
pub mod window;

pub mod prelude {
    //! The dunge prelude.

    pub use crate::{
        context::Context, shader::Shader, sl, types, Frame, Group, Instance, Options, Vertex,
    };

    #[cfg(feature = "winit")]
    pub use crate::el::{Control, KeyCode, Then};
}

pub use {
    crate::{
        context::{Context, FailedMakeContext},
        draw::{draw, Draw},
        format::Format,
        init::context,
        state::{AsTarget, Frame, Options, RenderBuffer, Target},
    },
    dunge_macros::{Group, Instance, Vertex},
    dunge_shader::{group::Group, instance::Instance, sl, types, vertex::Vertex},
    glam,
};

#[cfg(all(feature = "winit", not(target_arch = "wasm32")))]
pub use crate::init::window;

#[cfg(all(feature = "winit", target_arch = "wasm32"))]
pub use crate::init::from_element;

#[cfg(feature = "winit")]
pub use crate::{
    el::{Control, Flow, Key, KeyCode, LoopError, MouseButton, SmolStr, Then},
    update::{update, update_with, Update},
};