Enum glitter::types::GLError
[−]
[src]
pub enum GLError { InvalidEnum, InvalidValue, InvalidOperation, InvalidFramebufferOperation, OutOfMemory, FramebufferError(GLFramebufferError), Message(String), }
The various possible OpenGL errors.
Variants
InvalidEnum
Indicates that an unexpected enum value was passed to a function.
InvalidValue
Indicates that a function was passed an argument with a value that had an unexpected value (such as passing a negative value to a function that only expects positive arguments).
InvalidOperation
Indicates that a particular operation was attempted that is not allowed, often resulting from an unexpected pairing of arguments.
InvalidFramebufferOperation
Indicates that a particular operation attempted to use a framebuffer that is not framebuffer-complete.
OutOfMemory
Indicates that the OpenGL driver could not allocate enough memory to satisfy a request.
FramebufferError(GLFramebufferError)
Indicates a framebuffer-related error.
Message(String)
Indicates an error with a message attached (such as a message from an info log, or an error message originating from glitter).
Trait Implementations
impl Debug for GLError
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl Display for GLError
[src]
fn fmt(&self, f: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl Error for GLError
[src]
fn description(&self) -> &str
[src]
A short description of the error. Read more
fn cause(&self) -> Option<&Error>
[src]
The lower-level cause of this error, if any. Read more
impl From<GLFramebufferError> for GLError
[src]
fn from(e: GLFramebufferError) -> GLError
[src]
Performs the conversion.