Enum lux::LuxError
[−]
[src]
pub enum LuxError { WindowError(String), OpenGlError(String), ImageError(ImageError), ShaderError(ShaderError), IoError(IoError), FontNotLoaded(String), DrawError(DrawError), TextureCreationError(TextureCreationError), IndexBufferCreationError, VertexBufferCreationError, }
Any error that Lux might run into.
Variants
WindowError(String)
An error that can occur when creating a window.
OpenGlError(String)
An error that can occur when creating an opengl context.
ImageError(ImageError)
An error related to image decoding.
ShaderError(ShaderError)
An error that can occur when compiling or linking shaders.
IoError(IoError)
An error that can occur when required I/O fails.
FontNotLoaded(String)
An error that can occur when attempting to use a font that hasn't been loaded yet.
DrawError(DrawError)
An error that was produced while submitting a draw call
TextureCreationError(TextureCreationError)
An error occured while creating a texture
IndexBufferCreationError
An error creating an index buffer occured
VertexBufferCreationError
An error creating an vertex buffer occured
Trait Implementations
impl Debug for LuxError
[src]
impl Error for LuxError
[src]
fn description(&self) -> &str
A short description of the error. Read more
fn cause(&self) -> Option<&Error>
1.0.0
The lower-level cause of this error, if any. Read more
impl From<GliumCreationError<CreationError>> for LuxError
[src]
fn from(e: GliumCreationError<CreationError>) -> LuxError
Performs the conversion.
impl From<ProgramCreationError> for LuxError
[src]
fn from(e: ProgramCreationError) -> LuxError
Performs the conversion.
impl From<ProgramChooserCreationError> for LuxError
[src]
fn from(e: ProgramChooserCreationError) -> LuxError
Performs the conversion.
impl From<TextureCreationError> for LuxError
[src]
fn from(e: TextureCreationError) -> LuxError
Performs the conversion.
impl From<IoError> for LuxError
[src]
impl From<DrawError> for LuxError
[src]
impl From<ImageError> for LuxError
[src]
fn from(e: ImageError) -> LuxError
Performs the conversion.
impl From<BufferCreationError> for LuxError
[src]
fn from(_: BufferCreationError) -> LuxError
Performs the conversion.
impl From<BufferCreationError> for LuxError
[src]
fn from(_: BufferCreationError) -> LuxError
Performs the conversion.