pub mod audio;
pub mod console;
pub mod io;
pub mod net;
pub mod window;
mod collections;
mod parsers;
#[cfg(feature = "extras")]
pub mod extras;
use glow::Context;
use std::sync::Arc;
pub type GlState = Arc<Box<Context>>;
#[derive(Debug)]
pub enum FlufflError {
GenericError(String),
FromUtf8ParseError(String),
WindowInitError(String),
IOError(String),
}
impl From<std::io::Error> for FlufflError {
fn from(err: std::io::Error) -> Self {
FlufflError::IOError(err.to_string())
}
}
impl From<std::string::FromUtf8Error> for FlufflError {
fn from(err: std::string::FromUtf8Error) -> Self {
Self::FromUtf8ParseError(err.to_string())
}
}