| 1 | module sgl |
| 2 | |
| 3 | // SglError is C.sgl_error_t |
| 4 | pub enum SglError { |
| 5 | no_error = C.SGL_NO_ERROR // 0 |
| 6 | vertices_full = C.SGL_ERROR_VERTICES_FULL |
| 7 | uniforms_full = C.SGL_ERROR_UNIFORMS_FULL |
| 8 | commands_full = C.SGL_ERROR_COMMANDS_FULL |
| 9 | stack_overflow = C.SGL_ERROR_STACK_OVERFLOW |
| 10 | stack_underflow = C.SGL_ERROR_STACK_UNDERFLOW |
| 11 | no_context = C.SGL_ERROR_NO_CONTEXT |
| 12 | } |
| 13 |