2022-01-03 14:05:24 +01:00
|
|
|
module sgl
|
|
|
|
|
2022-01-05 17:23:14 +01:00
|
|
|
// SglError is C.sgl_error_t
|
2022-01-03 14:05:24 +01:00
|
|
|
pub enum SglError {
|
|
|
|
no_error = C.SGL_NO_ERROR // 0
|
|
|
|
vertices_full = C.SGL_ERROR_VERTICES_FULL
|
|
|
|
uniforms_full = C.SGL_ERROR_UNIFORMS_FULL
|
|
|
|
commands_full = C.SGL_ERROR_COMMANDS_FULL
|
|
|
|
stack_overflow = C.SGL_ERROR_STACK_OVERFLOW
|
|
|
|
stack_underfloat = C.SGL_ERROR_STACK_UNDERFLOW
|
|
|
|
no_context = C.SGL_ERROR_NO_CONTEXT
|
|
|
|
}
|