16 lines
385 B
Rust
16 lines
385 B
Rust
//! OpenGL renderer errors and submodule.
|
|
|
|
use egui_glow::PainterError;
|
|
use thiserror::Error;
|
|
|
|
pub mod renderer;
|
|
|
|
/// Errors from OpenGL context or painter initialization.
|
|
#[derive(Error, Debug)]
|
|
pub enum OpenGlError {
|
|
#[error("Failed to get baseview's GL context")]
|
|
NoContext,
|
|
#[error("Error occured when initializing painter: \n {0}")]
|
|
CreatePainter(PainterError),
|
|
}
|