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

An error that can occur when creating a window.

An error that can occur when creating an opengl context.

An error related to image decoding.

An error that can occur when compiling or linking shaders.

An error that can occur when required I/O fails.

An error that can occur when attempting to use a font that hasn't been loaded yet.

An error that was produced while submitting a draw call

An error occured while creating a texture

An error creating an index buffer occured

An error creating an vertex buffer occured

Trait Implementations

impl Debug for LuxError
[src]

Formats the value using the given formatter.

impl Error for LuxError
[src]

A short description of the error. Read more

The lower-level cause of this error, if any. Read more

impl From<GliumCreationError<CreationError>> for LuxError
[src]

Performs the conversion.

impl From<ProgramCreationError> for LuxError
[src]

Performs the conversion.

impl From<ProgramChooserCreationError> for LuxError
[src]

Performs the conversion.

impl From<TextureCreationError> for LuxError
[src]

Performs the conversion.

impl From<IoError> for LuxError
[src]

Performs the conversion.

impl From<DrawError> for LuxError
[src]

Performs the conversion.

impl From<ImageError> for LuxError
[src]

Performs the conversion.

impl From<BufferCreationError> for LuxError
[src]

Performs the conversion.

impl From<BufferCreationError> for LuxError
[src]

Performs the conversion.

impl Display for LuxError
[src]

Formats the value using the given formatter. Read more