[][src]Enum golem::GolemError

pub enum GolemError {
    ShaderCompilationError(String),
    ContextError(String),
    NoSuchUniform(String),
    NotCurrentProgram,
    MipMapsUnavailable,
}

The library's error conditions

Variants

ShaderCompilationError(String)

The OpenGL Shader compilation failed, with the given error message

This may be during vertex-time, fragment-time, or link-time

ContextError(String)

Some general error bubbling up from the GL context

NoSuchUniform(String)

An attempt was made to bind to an illegal uniform

NotCurrentProgram

An operation was performed on a shader that wasn't bound

Shader operations include setting uniforms and drawing

MipMapsUnavailable

A texture filter requiring mipmaps was used when mipmaps were unavailable

Mipmaps are only available for minification, and only for power-of-two sized textures

Trait Implementations

impl Debug for GolemError[src]

impl From<String> for GolemError[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.