/* Generated by Cython 0.29.34 */

/* BEGIN: Cython Metadata
{
    "distutils": {
        "define_macros": [
            [
                "CGL_EXCLUDE_AUDIO",
                null
            ],
            [
                "CGL_EXCLUDE_NETWORKING",
                null
            ],
            [
                "CGL_LOGGING_ENABLED",
                null
            ]
        ],
        "depends": [
            "include\\cgl.h"
        ],
        "include_dirs": [
            "include",
            "include/glad/include",
            "include/glfw/include",
            "include/freetype/include"
        ],
        "libraries": [
            "cgl",
            "glfw3",
            "glad",
            "freetype",
            "user32",
            "Gdi32",
            "Shell32"
        ],
        "library_dirs": [
            "lib"
        ],
        "name": "cgl",
        "sources": [
            "cgl_wrapper.pyx"
        ]
    },
    "module_name": "cgl"
}
END: Cython Metadata */

#ifndef PY_SSIZE_T_CLEAN
#define PY_SSIZE_T_CLEAN
#endif /* PY_SSIZE_T_CLEAN */
#include "Python.h"
#ifndef Py_PYTHON_H
    #error Python headers needed to compile C extensions, please install development version of Python.
#elif PY_VERSION_HEX < 0x02060000 || (0x03000000 <= PY_VERSION_HEX && PY_VERSION_HEX < 0x03030000)
    #error Cython requires Python 2.6+ or Python 3.3+.
#else
#define CYTHON_ABI "0_29_34"
#define CYTHON_HEX_VERSION 0x001D22F0
#define CYTHON_FUTURE_DIVISION 0
#include <stddef.h>
#ifndef offsetof
  #define offsetof(type, member) ( (size_t) & ((type*)0) -> member )
#endif
#if !defined(WIN32) && !defined(MS_WINDOWS)
  #ifndef __stdcall
    #define __stdcall
  #endif
  #ifndef __cdecl
    #define __cdecl
  #endif
  #ifndef __fastcall
    #define __fastcall
  #endif
#endif
#ifndef DL_IMPORT
  #define DL_IMPORT(t) t
#endif
#ifndef DL_EXPORT
  #define DL_EXPORT(t) t
#endif
#define __PYX_COMMA ,
#ifndef HAVE_LONG_LONG
  #if PY_VERSION_HEX >= 0x02070000
    #define HAVE_LONG_LONG
  #endif
#endif
#ifndef PY_LONG_LONG
  #define PY_LONG_LONG LONG_LONG
#endif
#ifndef Py_HUGE_VAL
  #define Py_HUGE_VAL HUGE_VAL
#endif
#ifdef PYPY_VERSION
  #define CYTHON_COMPILING_IN_PYPY 1
  #define CYTHON_COMPILING_IN_PYSTON 0
  #define CYTHON_COMPILING_IN_CPYTHON 0
  #define CYTHON_COMPILING_IN_NOGIL 0
  #undef CYTHON_USE_TYPE_SLOTS
  #define CYTHON_USE_TYPE_SLOTS 0
  #undef CYTHON_USE_PYTYPE_LOOKUP
  #define CYTHON_USE_PYTYPE_LOOKUP 0
  #if PY_VERSION_HEX < 0x03050000
    #undef CYTHON_USE_ASYNC_SLOTS
    #define CYTHON_USE_ASYNC_SLOTS 0
  #elif !defined(CYTHON_USE_ASYNC_SLOTS)
    #define CYTHON_USE_ASYNC_SLOTS 1
  #endif
  #undef CYTHON_USE_PYLIST_INTERNALS
  #define CYTHON_USE_PYLIST_INTERNALS 0
  #undef CYTHON_USE_UNICODE_INTERNALS
  #define CYTHON_USE_UNICODE_INTERNALS 0
  #undef CYTHON_USE_UNICODE_WRITER
  #define CYTHON_USE_UNICODE_WRITER 0
  #undef CYTHON_USE_PYLONG_INTERNALS
  #define CYTHON_USE_PYLONG_INTERNALS 0
  #undef CYTHON_AVOID_BORROWED_REFS
  #define CYTHON_AVOID_BORROWED_REFS 1
  #undef CYTHON_ASSUME_SAFE_MACROS
  #define CYTHON_ASSUME_SAFE_MACROS 0
  #undef CYTHON_UNPACK_METHODS
  #define CYTHON_UNPACK_METHODS 0
  #undef CYTHON_FAST_THREAD_STATE
  #define CYTHON_FAST_THREAD_STATE 0
  #undef CYTHON_FAST_PYCALL
  #define CYTHON_FAST_PYCALL 0
  #undef CYTHON_PEP489_MULTI_PHASE_INIT
  #define CYTHON_PEP489_MULTI_PHASE_INIT 0
  #undef CYTHON_USE_TP_FINALIZE
  #define CYTHON_USE_TP_FINALIZE 0
  #undef CYTHON_USE_DICT_VERSIONS
  #define CYTHON_USE_DICT_VERSIONS 0
  #undef CYTHON_USE_EXC_INFO_STACK
  #define CYTHON_USE_EXC_INFO_STACK 0
  #ifndef CYTHON_UPDATE_DESCRIPTOR_DOC
    #define CYTHON_UPDATE_DESCRIPTOR_DOC 0
  #endif
#elif defined(PYSTON_VERSION)
  #define CYTHON_COMPILING_IN_PYPY 0
  #define CYTHON_COMPILING_IN_PYSTON 1
  #define CYTHON_COMPILING_IN_CPYTHON 0
  #define CYTHON_COMPILING_IN_NOGIL 0
  #ifndef CYTHON_USE_TYPE_SLOTS
    #define CYTHON_USE_TYPE_SLOTS 1
  #endif
  #undef CYTHON_USE_PYTYPE_LOOKUP
  #define CYTHON_USE_PYTYPE_LOOKUP 0
  #undef CYTHON_USE_ASYNC_SLOTS
  #define CYTHON_USE_ASYNC_SLOTS 0
  #undef CYTHON_USE_PYLIST_INTERNALS
  #define CYTHON_USE_PYLIST_INTERNALS 0
  #ifndef CYTHON_USE_UNICODE_INTERNALS
    #define CYTHON_USE_UNICODE_INTERNALS 1
  #endif
  #undef CYTHON_USE_UNICODE_WRITER
  #define CYTHON_USE_UNICODE_WRITER 0
  #undef CYTHON_USE_PYLONG_INTERNALS
  #define CYTHON_USE_PYLONG_INTERNALS 0
  #ifndef CYTHON_AVOID_BORROWED_REFS
    #define CYTHON_AVOID_BORROWED_REFS 0
  #endif
  #ifndef CYTHON_ASSUME_SAFE_MACROS
    #define CYTHON_ASSUME_SAFE_MACROS 1
  #endif
  #ifndef CYTHON_UNPACK_METHODS
    #define CYTHON_UNPACK_METHODS 1
  #endif
  #undef CYTHON_FAST_THREAD_STATE
  #define CYTHON_FAST_THREAD_STATE 0
  #undef CYTHON_FAST_PYCALL
  #define CYTHON_FAST_PYCALL 0
  #undef CYTHON_PEP489_MULTI_PHASE_INIT
  #define CYTHON_PEP489_MULTI_PHASE_INIT 0
  #undef CYTHON_USE_TP_FINALIZE
  #define CYTHON_USE_TP_FINALIZE 0
  #undef CYTHON_USE_DICT_VERSIONS
  #define CYTHON_USE_DICT_VERSIONS 0
  #undef CYTHON_USE_EXC_INFO_STACK
  #define CYTHON_USE_EXC_INFO_STACK 0
  #ifndef CYTHON_UPDATE_DESCRIPTOR_DOC
    #define CYTHON_UPDATE_DESCRIPTOR_DOC 0
  #endif
#elif defined(PY_NOGIL)
  #define CYTHON_COMPILING_IN_PYPY 0
  #define CYTHON_COMPILING_IN_PYSTON 0
  #define CYTHON_COMPILING_IN_CPYTHON 0
  #define CYTHON_COMPILING_IN_NOGIL 1
  #ifndef CYTHON_USE_TYPE_SLOTS
    #define CYTHON_USE_TYPE_SLOTS 1
  #endif
  #undef CYTHON_USE_PYTYPE_LOOKUP
  #define CYTHON_USE_PYTYPE_LOOKUP 0
  #ifndef CYTHON_USE_ASYNC_SLOTS
    #define CYTHON_USE_ASYNC_SLOTS 1
  #endif
  #undef CYTHON_USE_PYLIST_INTERNALS
  #define CYTHON_USE_PYLIST_INTERNALS 0
  #ifndef CYTHON_USE_UNICODE_INTERNALS
    #define CYTHON_USE_UNICODE_INTERNALS 1
  #endif
  #undef CYTHON_USE_UNICODE_WRITER
  #define CYTHON_USE_UNICODE_WRITER 0
  #undef CYTHON_USE_PYLONG_INTERNALS
  #define CYTHON_USE_PYLONG_INTERNALS 0
  #ifndef CYTHON_AVOID_BORROWED_REFS
    #define CYTHON_AVOID_BORROWED_REFS 0
  #endif
  #ifndef CYTHON_ASSUME_SAFE_MACROS
    #define CYTHON_ASSUME_SAFE_MACROS 1
  #endif
  #ifndef CYTHON_UNPACK_METHODS
    #define CYTHON_UNPACK_METHODS 1
  #endif
  #undef CYTHON_FAST_THREAD_STATE
  #define CYTHON_FAST_THREAD_STATE 0
  #undef CYTHON_FAST_PYCALL
  #define CYTHON_FAST_PYCALL 0
  #ifndef CYTHON_PEP489_MULTI_PHASE_INIT
    #define CYTHON_PEP489_MULTI_PHASE_INIT 1
  #endif
  #ifndef CYTHON_USE_TP_FINALIZE
    #define CYTHON_USE_TP_FINALIZE 1
  #endif
  #undef CYTHON_USE_DICT_VERSIONS
  #define CYTHON_USE_DICT_VERSIONS 0
  #undef CYTHON_USE_EXC_INFO_STACK
  #define CYTHON_USE_EXC_INFO_STACK 0
#else
  #define CYTHON_COMPILING_IN_PYPY 0
  #define CYTHON_COMPILING_IN_PYSTON 0
  #define CYTHON_COMPILING_IN_CPYTHON 1
  #define CYTHON_COMPILING_IN_NOGIL 0
  #ifndef CYTHON_USE_TYPE_SLOTS
    #define CYTHON_USE_TYPE_SLOTS 1
  #endif
  #if PY_VERSION_HEX < 0x02070000
    #undef CYTHON_USE_PYTYPE_LOOKUP
    #define CYTHON_USE_PYTYPE_LOOKUP 0
  #elif !defined(CYTHON_USE_PYTYPE_LOOKUP)
    #define CYTHON_USE_PYTYPE_LOOKUP 1
  #endif
  #if PY_MAJOR_VERSION < 3
    #undef CYTHON_USE_ASYNC_SLOTS
    #define CYTHON_USE_ASYNC_SLOTS 0
  #elif !defined(CYTHON_USE_ASYNC_SLOTS)
    #define CYTHON_USE_ASYNC_SLOTS 1
  #endif
  #if PY_VERSION_HEX < 0x02070000
    #undef CYTHON_USE_PYLONG_INTERNALS
    #define CYTHON_USE_PYLONG_INTERNALS 0
  #elif !defined(CYTHON_USE_PYLONG_INTERNALS)
    #define CYTHON_USE_PYLONG_INTERNALS (PY_VERSION_HEX < 0x030C00A5)
  #endif
  #ifndef CYTHON_USE_PYLIST_INTERNALS
    #define CYTHON_USE_PYLIST_INTERNALS 1
  #endif
  #ifndef CYTHON_USE_UNICODE_INTERNALS
    #define CYTHON_USE_UNICODE_INTERNALS 1
  #endif
  #if PY_VERSION_HEX < 0x030300F0 || PY_VERSION_HEX >= 0x030B00A2
    #undef CYTHON_USE_UNICODE_WRITER
    #define CYTHON_USE_UNICODE_WRITER 0
  #elif !defined(CYTHON_USE_UNICODE_WRITER)
    #define CYTHON_USE_UNICODE_WRITER 1
  #endif
  #ifndef CYTHON_AVOID_BORROWED_REFS
    #define CYTHON_AVOID_BORROWED_REFS 0
  #endif
  #ifndef CYTHON_ASSUME_SAFE_MACROS
    #define CYTHON_ASSUME_SAFE_MACROS 1
  #endif
  #ifndef CYTHON_UNPACK_METHODS
    #define CYTHON_UNPACK_METHODS 1
  #endif
  #if PY_VERSION_HEX >= 0x030B00A4
    #undef CYTHON_FAST_THREAD_STATE
    #define CYTHON_FAST_THREAD_STATE 0
  #elif !defined(CYTHON_FAST_THREAD_STATE)
    #define CYTHON_FAST_THREAD_STATE 1
  #endif
  #ifndef CYTHON_FAST_PYCALL
    #define CYTHON_FAST_PYCALL (PY_VERSION_HEX < 0x030A0000)
  #endif
  #ifndef CYTHON_PEP489_MULTI_PHASE_INIT
    #define CYTHON_PEP489_MULTI_PHASE_INIT (PY_VERSION_HEX >= 0x03050000)
  #endif
  #ifndef CYTHON_USE_TP_FINALIZE
    #define CYTHON_USE_TP_FINALIZE (PY_VERSION_HEX >= 0x030400a1)
  #endif
  #ifndef CYTHON_USE_DICT_VERSIONS
    #define CYTHON_USE_DICT_VERSIONS ((PY_VERSION_HEX >= 0x030600B1) && (PY_VERSION_HEX < 0x030C00A5))
  #endif
  #if PY_VERSION_HEX >= 0x030B00A4
    #undef CYTHON_USE_EXC_INFO_STACK
    #define CYTHON_USE_EXC_INFO_STACK 0
  #elif !defined(CYTHON_USE_EXC_INFO_STACK)
    #define CYTHON_USE_EXC_INFO_STACK (PY_VERSION_HEX >= 0x030700A3)
  #endif
  #ifndef CYTHON_UPDATE_DESCRIPTOR_DOC
    #define CYTHON_UPDATE_DESCRIPTOR_DOC 1
  #endif
#endif
#if !defined(CYTHON_FAST_PYCCALL)
#define CYTHON_FAST_PYCCALL  (CYTHON_FAST_PYCALL && PY_VERSION_HEX >= 0x030600B1)
#endif
#if CYTHON_USE_PYLONG_INTERNALS
  #if PY_MAJOR_VERSION < 3
    #include "longintrepr.h"
  #endif
  #undef SHIFT
  #undef BASE
  #undef MASK
  #ifdef SIZEOF_VOID_P
    enum { __pyx_check_sizeof_voidp = 1 / (int)(SIZEOF_VOID_P == sizeof(void*)) };
  #endif
#endif
#ifndef __has_attribute
  #define __has_attribute(x) 0
#endif
#ifndef __has_cpp_attribute
  #define __has_cpp_attribute(x) 0
#endif
#ifndef CYTHON_RESTRICT
  #if defined(__GNUC__)
    #define CYTHON_RESTRICT __restrict__
  #elif defined(_MSC_VER) && _MSC_VER >= 1400
    #define CYTHON_RESTRICT __restrict
  #elif defined (__STDC_VERSION__) && __STDC_VERSION__ >= 199901L
    #define CYTHON_RESTRICT restrict
  #else
    #define CYTHON_RESTRICT
  #endif
#endif
#ifndef CYTHON_UNUSED
# if defined(__GNUC__)
#   if !(defined(__cplusplus)) || (__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4))
#     define CYTHON_UNUSED __attribute__ ((__unused__))
#   else
#     define CYTHON_UNUSED
#   endif
# elif defined(__ICC) || (defined(__INTEL_COMPILER) && !defined(_MSC_VER))
#   define CYTHON_UNUSED __attribute__ ((__unused__))
# else
#   define CYTHON_UNUSED
# endif
#endif
#ifndef CYTHON_MAYBE_UNUSED_VAR
#  if defined(__cplusplus)
     template<class T> void CYTHON_MAYBE_UNUSED_VAR( const T& ) { }
#  else
#    define CYTHON_MAYBE_UNUSED_VAR(x) (void)(x)
#  endif
#endif
#ifndef CYTHON_NCP_UNUSED
# if CYTHON_COMPILING_IN_CPYTHON
#  define CYTHON_NCP_UNUSED
# else
#  define CYTHON_NCP_UNUSED CYTHON_UNUSED
# endif
#endif
#define __Pyx_void_to_None(void_result) ((void)(void_result), Py_INCREF(Py_None), Py_None)
#ifdef _MSC_VER
    #ifndef _MSC_STDINT_H_
        #if _MSC_VER < 1300
           typedef unsigned char     uint8_t;
           typedef unsigned int      uint32_t;
        #else
           typedef unsigned __int8   uint8_t;
           typedef unsigned __int32  uint32_t;
        #endif
    #endif
#else
   #include <stdint.h>
#endif
#ifndef CYTHON_FALLTHROUGH
  #if defined(__cplusplus) && __cplusplus >= 201103L
    #if __has_cpp_attribute(fallthrough)
      #define CYTHON_FALLTHROUGH [[fallthrough]]
    #elif __has_cpp_attribute(clang::fallthrough)
      #define CYTHON_FALLTHROUGH [[clang::fallthrough]]
    #elif __has_cpp_attribute(gnu::fallthrough)
      #define CYTHON_FALLTHROUGH [[gnu::fallthrough]]
    #endif
  #endif
  #ifndef CYTHON_FALLTHROUGH
    #if __has_attribute(fallthrough)
      #define CYTHON_FALLTHROUGH __attribute__((fallthrough))
    #else
      #define CYTHON_FALLTHROUGH
    #endif
  #endif
  #if defined(__clang__ ) && defined(__apple_build_version__)
    #if __apple_build_version__ < 7000000
      #undef  CYTHON_FALLTHROUGH
      #define CYTHON_FALLTHROUGH
    #endif
  #endif
#endif

#ifndef CYTHON_INLINE
  #if defined(__clang__)
    #define CYTHON_INLINE __inline__ __attribute__ ((__unused__))
  #elif defined(__GNUC__)
    #define CYTHON_INLINE __inline__
  #elif defined(_MSC_VER)
    #define CYTHON_INLINE __inline
  #elif defined (__STDC_VERSION__) && __STDC_VERSION__ >= 199901L
    #define CYTHON_INLINE inline
  #else
    #define CYTHON_INLINE
  #endif
#endif

#if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX < 0x02070600 && !defined(Py_OptimizeFlag)
  #define Py_OptimizeFlag 0
#endif
#define __PYX_BUILD_PY_SSIZE_T "n"
#define CYTHON_FORMAT_SSIZE_T "z"
#if PY_MAJOR_VERSION < 3
  #define __Pyx_BUILTIN_MODULE_NAME "__builtin__"
  #define __Pyx_PyCode_New(a, k, l, s, f, code, c, n, v, fv, cell, fn, name, fline, lnos)\
          PyCode_New(a+k, l, s, f, code, c, n, v, fv, cell, fn, name, fline, lnos)
  #define __Pyx_DefaultClassType PyClass_Type
#else
  #define __Pyx_BUILTIN_MODULE_NAME "builtins"
  #define __Pyx_DefaultClassType PyType_Type
#if PY_VERSION_HEX >= 0x030B00A1
    static CYTHON_INLINE PyCodeObject* __Pyx_PyCode_New(int a, int k, int l, int s, int f,
                                                    PyObject *code, PyObject *c, PyObject* n, PyObject *v,
                                                    PyObject *fv, PyObject *cell, PyObject* fn,
                                                    PyObject *name, int fline, PyObject *lnos) {
        PyObject *kwds=NULL, *argcount=NULL, *posonlyargcount=NULL, *kwonlyargcount=NULL;
        PyObject *nlocals=NULL, *stacksize=NULL, *flags=NULL, *replace=NULL, *call_result=NULL, *empty=NULL;
        const char *fn_cstr=NULL;
        const char *name_cstr=NULL;
        PyCodeObject* co=NULL;
        PyObject *type, *value, *traceback;
        PyErr_Fetch(&type, &value, &traceback);
        if (!(kwds=PyDict_New())) goto end;
        if (!(argcount=PyLong_FromLong(a))) goto end;
        if (PyDict_SetItemString(kwds, "co_argcount", argcount) != 0) goto end;
        if (!(posonlyargcount=PyLong_FromLong(0))) goto end;
        if (PyDict_SetItemString(kwds, "co_posonlyargcount", posonlyargcount) != 0) goto end;
        if (!(kwonlyargcount=PyLong_FromLong(k))) goto end;
        if (PyDict_SetItemString(kwds, "co_kwonlyargcount", kwonlyargcount) != 0) goto end;
        if (!(nlocals=PyLong_FromLong(l))) goto end;
        if (PyDict_SetItemString(kwds, "co_nlocals", nlocals) != 0) goto end;
        if (!(stacksize=PyLong_FromLong(s))) goto end;
        if (PyDict_SetItemString(kwds, "co_stacksize", stacksize) != 0) goto end;
        if (!(flags=PyLong_FromLong(f))) goto end;
        if (PyDict_SetItemString(kwds, "co_flags", flags) != 0) goto end;
        if (PyDict_SetItemString(kwds, "co_code", code) != 0) goto end;
        if (PyDict_SetItemString(kwds, "co_consts", c) != 0) goto end;
        if (PyDict_SetItemString(kwds, "co_names", n) != 0) goto end;
        if (PyDict_SetItemString(kwds, "co_varnames", v) != 0) goto end;
        if (PyDict_SetItemString(kwds, "co_freevars", fv) != 0) goto end;
        if (PyDict_SetItemString(kwds, "co_cellvars", cell) != 0) goto end;
        if (PyDict_SetItemString(kwds, "co_linetable", lnos) != 0) goto end;
        if (!(fn_cstr=PyUnicode_AsUTF8AndSize(fn, NULL))) goto end;
        if (!(name_cstr=PyUnicode_AsUTF8AndSize(name, NULL))) goto end;
        if (!(co = PyCode_NewEmpty(fn_cstr, name_cstr, fline))) goto end;
        if (!(replace = PyObject_GetAttrString((PyObject*)co, "replace"))) goto cleanup_code_too;
        if (!(empty = PyTuple_New(0))) goto cleanup_code_too; // unfortunately __pyx_empty_tuple isn't available here
        if (!(call_result = PyObject_Call(replace, empty, kwds))) goto cleanup_code_too;
        Py_XDECREF((PyObject*)co);
        co = (PyCodeObject*)call_result;
        call_result = NULL;
        if (0) {
            cleanup_code_too:
            Py_XDECREF((PyObject*)co);
            co = NULL;
        }
        end:
        Py_XDECREF(kwds);
        Py_XDECREF(argcount);
        Py_XDECREF(posonlyargcount);
        Py_XDECREF(kwonlyargcount);
        Py_XDECREF(nlocals);
        Py_XDECREF(stacksize);
        Py_XDECREF(replace);
        Py_XDECREF(call_result);
        Py_XDECREF(empty);
        if (type) {
            PyErr_Restore(type, value, traceback);
        }
        return co;
    }
#else
  #define __Pyx_PyCode_New(a, k, l, s, f, code, c, n, v, fv, cell, fn, name, fline, lnos)\
          PyCode_New(a, k, l, s, f, code, c, n, v, fv, cell, fn, name, fline, lnos)
#endif
  #define __Pyx_DefaultClassType PyType_Type
#endif
#ifndef Py_TPFLAGS_CHECKTYPES
  #define Py_TPFLAGS_CHECKTYPES 0
#endif
#ifndef Py_TPFLAGS_HAVE_INDEX
  #define Py_TPFLAGS_HAVE_INDEX 0
#endif
#ifndef Py_TPFLAGS_HAVE_NEWBUFFER
  #define Py_TPFLAGS_HAVE_NEWBUFFER 0
#endif
#ifndef Py_TPFLAGS_HAVE_FINALIZE
  #define Py_TPFLAGS_HAVE_FINALIZE 0
#endif
#ifndef METH_STACKLESS
  #define METH_STACKLESS 0
#endif
#if PY_VERSION_HEX <= 0x030700A3 || !defined(METH_FASTCALL)
  #ifndef METH_FASTCALL
     #define METH_FASTCALL 0x80
  #endif
  typedef PyObject *(*__Pyx_PyCFunctionFast) (PyObject *self, PyObject *const *args, Py_ssize_t nargs);
  typedef PyObject *(*__Pyx_PyCFunctionFastWithKeywords) (PyObject *self, PyObject *const *args,
                                                          Py_ssize_t nargs, PyObject *kwnames);
#else
  #define __Pyx_PyCFunctionFast _PyCFunctionFast
  #define __Pyx_PyCFunctionFastWithKeywords _PyCFunctionFastWithKeywords
#endif
#if CYTHON_FAST_PYCCALL
#define __Pyx_PyFastCFunction_Check(func)\
    ((PyCFunction_Check(func) && (METH_FASTCALL == (PyCFunction_GET_FLAGS(func) & ~(METH_CLASS | METH_STATIC | METH_COEXIST | METH_KEYWORDS | METH_STACKLESS)))))
#else
#define __Pyx_PyFastCFunction_Check(func) 0
#endif
#if CYTHON_COMPILING_IN_PYPY && !defined(PyObject_Malloc)
  #define PyObject_Malloc(s)   PyMem_Malloc(s)
  #define PyObject_Free(p)     PyMem_Free(p)
  #define PyObject_Realloc(p)  PyMem_Realloc(p)
#endif
#if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX < 0x030400A1
  #define PyMem_RawMalloc(n)           PyMem_Malloc(n)
  #define PyMem_RawRealloc(p, n)       PyMem_Realloc(p, n)
  #define PyMem_RawFree(p)             PyMem_Free(p)
#endif
#if CYTHON_COMPILING_IN_PYSTON
  #define __Pyx_PyCode_HasFreeVars(co)  PyCode_HasFreeVars(co)
  #define __Pyx_PyFrame_SetLineNumber(frame, lineno) PyFrame_SetLineNumber(frame, lineno)
#else
  #define __Pyx_PyCode_HasFreeVars(co)  (PyCode_GetNumFree(co) > 0)
  #define __Pyx_PyFrame_SetLineNumber(frame, lineno)  (frame)->f_lineno = (lineno)
#endif
#if !CYTHON_FAST_THREAD_STATE || PY_VERSION_HEX < 0x02070000
  #define __Pyx_PyThreadState_Current PyThreadState_GET()
#elif PY_VERSION_HEX >= 0x03060000
  #define __Pyx_PyThreadState_Current _PyThreadState_UncheckedGet()
#elif PY_VERSION_HEX >= 0x03000000
  #define __Pyx_PyThreadState_Current PyThreadState_GET()
#else
  #define __Pyx_PyThreadState_Current _PyThreadState_Current
#endif
#if PY_VERSION_HEX < 0x030700A2 && !defined(PyThread_tss_create) && !defined(Py_tss_NEEDS_INIT)
#include "pythread.h"
#define Py_tss_NEEDS_INIT 0
typedef int Py_tss_t;
static CYTHON_INLINE int PyThread_tss_create(Py_tss_t *key) {
  *key = PyThread_create_key();
  return 0;
}
static CYTHON_INLINE Py_tss_t * PyThread_tss_alloc(void) {
  Py_tss_t *key = (Py_tss_t *)PyObject_Malloc(sizeof(Py_tss_t));
  *key = Py_tss_NEEDS_INIT;
  return key;
}
static CYTHON_INLINE void PyThread_tss_free(Py_tss_t *key) {
  PyObject_Free(key);
}
static CYTHON_INLINE int PyThread_tss_is_created(Py_tss_t *key) {
  return *key != Py_tss_NEEDS_INIT;
}
static CYTHON_INLINE void PyThread_tss_delete(Py_tss_t *key) {
  PyThread_delete_key(*key);
  *key = Py_tss_NEEDS_INIT;
}
static CYTHON_INLINE int PyThread_tss_set(Py_tss_t *key, void *value) {
  return PyThread_set_key_value(*key, value);
}
static CYTHON_INLINE void * PyThread_tss_get(Py_tss_t *key) {
  return PyThread_get_key_value(*key);
}
#endif
#if CYTHON_COMPILING_IN_CPYTHON || defined(_PyDict_NewPresized)
#define __Pyx_PyDict_NewPresized(n)  ((n <= 8) ? PyDict_New() : _PyDict_NewPresized(n))
#else
#define __Pyx_PyDict_NewPresized(n)  PyDict_New()
#endif
#if PY_MAJOR_VERSION >= 3 || CYTHON_FUTURE_DIVISION
  #define __Pyx_PyNumber_Divide(x,y)         PyNumber_TrueDivide(x,y)
  #define __Pyx_PyNumber_InPlaceDivide(x,y)  PyNumber_InPlaceTrueDivide(x,y)
#else
  #define __Pyx_PyNumber_Divide(x,y)         PyNumber_Divide(x,y)
  #define __Pyx_PyNumber_InPlaceDivide(x,y)  PyNumber_InPlaceDivide(x,y)
#endif
#if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030500A1 && CYTHON_USE_UNICODE_INTERNALS
#define __Pyx_PyDict_GetItemStr(dict, name)  _PyDict_GetItem_KnownHash(dict, name, ((PyASCIIObject *) name)->hash)
#else
#define __Pyx_PyDict_GetItemStr(dict, name)  PyDict_GetItem(dict, name)
#endif
#if PY_VERSION_HEX > 0x03030000 && defined(PyUnicode_KIND)
  #define CYTHON_PEP393_ENABLED 1
  #if PY_VERSION_HEX >= 0x030C0000
    #define __Pyx_PyUnicode_READY(op)       (0)
  #else
    #define __Pyx_PyUnicode_READY(op)       (likely(PyUnicode_IS_READY(op)) ?\
                                                0 : _PyUnicode_Ready((PyObject *)(op)))
  #endif
  #define __Pyx_PyUnicode_GET_LENGTH(u)   PyUnicode_GET_LENGTH(u)
  #define __Pyx_PyUnicode_READ_CHAR(u, i) PyUnicode_READ_CHAR(u, i)
  #define __Pyx_PyUnicode_MAX_CHAR_VALUE(u)   PyUnicode_MAX_CHAR_VALUE(u)
  #define __Pyx_PyUnicode_KIND(u)         PyUnicode_KIND(u)
  #define __Pyx_PyUnicode_DATA(u)         PyUnicode_DATA(u)
  #define __Pyx_PyUnicode_READ(k, d, i)   PyUnicode_READ(k, d, i)
  #define __Pyx_PyUnicode_WRITE(k, d, i, ch)  PyUnicode_WRITE(k, d, i, ch)
  #if PY_VERSION_HEX >= 0x030C0000
    #define __Pyx_PyUnicode_IS_TRUE(u)      (0 != PyUnicode_GET_LENGTH(u))
  #else
    #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x03090000
    #define __Pyx_PyUnicode_IS_TRUE(u)      (0 != (likely(PyUnicode_IS_READY(u)) ? PyUnicode_GET_LENGTH(u) : ((PyCompactUnicodeObject *)(u))->wstr_length))
    #else
    #define __Pyx_PyUnicode_IS_TRUE(u)      (0 != (likely(PyUnicode_IS_READY(u)) ? PyUnicode_GET_LENGTH(u) : PyUnicode_GET_SIZE(u)))
    #endif
  #endif
#else
  #define CYTHON_PEP393_ENABLED 0
  #define PyUnicode_1BYTE_KIND  1
  #define PyUnicode_2BYTE_KIND  2
  #define PyUnicode_4BYTE_KIND  4
  #define __Pyx_PyUnicode_READY(op)       (0)
  #define __Pyx_PyUnicode_GET_LENGTH(u)   PyUnicode_GET_SIZE(u)
  #define __Pyx_PyUnicode_READ_CHAR(u, i) ((Py_UCS4)(PyUnicode_AS_UNICODE(u)[i]))
  #define __Pyx_PyUnicode_MAX_CHAR_VALUE(u)   ((sizeof(Py_UNICODE) == 2) ? 65535 : 1114111)
  #define __Pyx_PyUnicode_KIND(u)         (sizeof(Py_UNICODE))
  #define __Pyx_PyUnicode_DATA(u)         ((void*)PyUnicode_AS_UNICODE(u))
  #define __Pyx_PyUnicode_READ(k, d, i)   ((void)(k), (Py_UCS4)(((Py_UNICODE*)d)[i]))
  #define __Pyx_PyUnicode_WRITE(k, d, i, ch)  (((void)(k)), ((Py_UNICODE*)d)[i] = ch)
  #define __Pyx_PyUnicode_IS_TRUE(u)      (0 != PyUnicode_GET_SIZE(u))
#endif
#if CYTHON_COMPILING_IN_PYPY
  #define __Pyx_PyUnicode_Concat(a, b)      PyNumber_Add(a, b)
  #define __Pyx_PyUnicode_ConcatSafe(a, b)  PyNumber_Add(a, b)
#else
  #define __Pyx_PyUnicode_Concat(a, b)      PyUnicode_Concat(a, b)
  #define __Pyx_PyUnicode_ConcatSafe(a, b)  ((unlikely((a) == Py_None) || unlikely((b) == Py_None)) ?\
      PyNumber_Add(a, b) : __Pyx_PyUnicode_Concat(a, b))
#endif
#if CYTHON_COMPILING_IN_PYPY && !defined(PyUnicode_Contains)
  #define PyUnicode_Contains(u, s)  PySequence_Contains(u, s)
#endif
#if CYTHON_COMPILING_IN_PYPY && !defined(PyByteArray_Check)
  #define PyByteArray_Check(obj)  PyObject_TypeCheck(obj, &PyByteArray_Type)
#endif
#if CYTHON_COMPILING_IN_PYPY && !defined(PyObject_Format)
  #define PyObject_Format(obj, fmt)  PyObject_CallMethod(obj, "__format__", "O", fmt)
#endif
#define __Pyx_PyString_FormatSafe(a, b)   ((unlikely((a) == Py_None || (PyString_Check(b) && !PyString_CheckExact(b)))) ? PyNumber_Remainder(a, b) : __Pyx_PyString_Format(a, b))
#define __Pyx_PyUnicode_FormatSafe(a, b)  ((unlikely((a) == Py_None || (PyUnicode_Check(b) && !PyUnicode_CheckExact(b)))) ? PyNumber_Remainder(a, b) : PyUnicode_Format(a, b))
#if PY_MAJOR_VERSION >= 3
  #define __Pyx_PyString_Format(a, b)  PyUnicode_Format(a, b)
#else
  #define __Pyx_PyString_Format(a, b)  PyString_Format(a, b)
#endif
#if PY_MAJOR_VERSION < 3 && !defined(PyObject_ASCII)
  #define PyObject_ASCII(o)            PyObject_Repr(o)
#endif
#if PY_MAJOR_VERSION >= 3
  #define PyBaseString_Type            PyUnicode_Type
  #define PyStringObject               PyUnicodeObject
  #define PyString_Type                PyUnicode_Type
  #define PyString_Check               PyUnicode_Check
  #define PyString_CheckExact          PyUnicode_CheckExact
#ifndef PyObject_Unicode
  #define PyObject_Unicode             PyObject_Str
#endif
#endif
#if PY_MAJOR_VERSION >= 3
  #define __Pyx_PyBaseString_Check(obj) PyUnicode_Check(obj)
  #define __Pyx_PyBaseString_CheckExact(obj) PyUnicode_CheckExact(obj)
#else
  #define __Pyx_PyBaseString_Check(obj) (PyString_Check(obj) || PyUnicode_Check(obj))
  #define __Pyx_PyBaseString_CheckExact(obj) (PyString_CheckExact(obj) || PyUnicode_CheckExact(obj))
#endif
#ifndef PySet_CheckExact
  #define PySet_CheckExact(obj)        (Py_TYPE(obj) == &PySet_Type)
#endif
#if PY_VERSION_HEX >= 0x030900A4
  #define __Pyx_SET_REFCNT(obj, refcnt) Py_SET_REFCNT(obj, refcnt)
  #define __Pyx_SET_SIZE(obj, size) Py_SET_SIZE(obj, size)
#else
  #define __Pyx_SET_REFCNT(obj, refcnt) Py_REFCNT(obj) = (refcnt)
  #define __Pyx_SET_SIZE(obj, size) Py_SIZE(obj) = (size)
#endif
#if CYTHON_ASSUME_SAFE_MACROS
  #define __Pyx_PySequence_SIZE(seq)  Py_SIZE(seq)
#else
  #define __Pyx_PySequence_SIZE(seq)  PySequence_Size(seq)
#endif
#if PY_MAJOR_VERSION >= 3
  #define PyIntObject                  PyLongObject
  #define PyInt_Type                   PyLong_Type
  #define PyInt_Check(op)              PyLong_Check(op)
  #define PyInt_CheckExact(op)         PyLong_CheckExact(op)
  #define PyInt_FromString             PyLong_FromString
  #define PyInt_FromUnicode            PyLong_FromUnicode
  #define PyInt_FromLong               PyLong_FromLong
  #define PyInt_FromSize_t             PyLong_FromSize_t
  #define PyInt_FromSsize_t            PyLong_FromSsize_t
  #define PyInt_AsLong                 PyLong_AsLong
  #define PyInt_AS_LONG                PyLong_AS_LONG
  #define PyInt_AsSsize_t              PyLong_AsSsize_t
  #define PyInt_AsUnsignedLongMask     PyLong_AsUnsignedLongMask
  #define PyInt_AsUnsignedLongLongMask PyLong_AsUnsignedLongLongMask
  #define PyNumber_Int                 PyNumber_Long
#endif
#if PY_MAJOR_VERSION >= 3
  #define PyBoolObject                 PyLongObject
#endif
#if PY_MAJOR_VERSION >= 3 && CYTHON_COMPILING_IN_PYPY
  #ifndef PyUnicode_InternFromString
    #define PyUnicode_InternFromString(s) PyUnicode_FromString(s)
  #endif
#endif
#if PY_VERSION_HEX < 0x030200A4
  typedef long Py_hash_t;
  #define __Pyx_PyInt_FromHash_t PyInt_FromLong
  #define __Pyx_PyInt_AsHash_t   __Pyx_PyIndex_AsHash_t
#else
  #define __Pyx_PyInt_FromHash_t PyInt_FromSsize_t
  #define __Pyx_PyInt_AsHash_t   __Pyx_PyIndex_AsSsize_t
#endif
#if PY_MAJOR_VERSION >= 3
  #define __Pyx_PyMethod_New(func, self, klass) ((self) ? ((void)(klass), PyMethod_New(func, self)) : __Pyx_NewRef(func))
#else
  #define __Pyx_PyMethod_New(func, self, klass) PyMethod_New(func, self, klass)
#endif
#if CYTHON_USE_ASYNC_SLOTS
  #if PY_VERSION_HEX >= 0x030500B1
    #define __Pyx_PyAsyncMethodsStruct PyAsyncMethods
    #define __Pyx_PyType_AsAsync(obj) (Py_TYPE(obj)->tp_as_async)
  #else
    #define __Pyx_PyType_AsAsync(obj) ((__Pyx_PyAsyncMethodsStruct*) (Py_TYPE(obj)->tp_reserved))
  #endif
#else
  #define __Pyx_PyType_AsAsync(obj) NULL
#endif
#ifndef __Pyx_PyAsyncMethodsStruct
    typedef struct {
        unaryfunc am_await;
        unaryfunc am_aiter;
        unaryfunc am_anext;
    } __Pyx_PyAsyncMethodsStruct;
#endif

#if defined(_WIN32) || defined(WIN32) || defined(MS_WINDOWS)
  #if !defined(_USE_MATH_DEFINES)
    #define _USE_MATH_DEFINES
  #endif
#endif
#include <math.h>
#ifdef NAN
#define __PYX_NAN() ((float) NAN)
#else
static CYTHON_INLINE float __PYX_NAN() {
  float value;
  memset(&value, 0xFF, sizeof(value));
  return value;
}
#endif
#if defined(__CYGWIN__) && defined(_LDBL_EQ_DBL)
#define __Pyx_truncl trunc
#else
#define __Pyx_truncl truncl
#endif

#define __PYX_MARK_ERR_POS(f_index, lineno) \
    { __pyx_filename = __pyx_f[f_index]; (void)__pyx_filename; __pyx_lineno = lineno; (void)__pyx_lineno; __pyx_clineno = __LINE__; (void)__pyx_clineno; }
#define __PYX_ERR(f_index, lineno, Ln_error) \
    { __PYX_MARK_ERR_POS(f_index, lineno) goto Ln_error; }

#ifndef __PYX_EXTERN_C
  #ifdef __cplusplus
    #define __PYX_EXTERN_C extern "C"
  #else
    #define __PYX_EXTERN_C extern
  #endif
#endif

#define __PYX_HAVE__cgl
#define __PYX_HAVE_API__cgl
/* Early includes */
#include <stdint.h>
#include <string.h>
#include <stdlib.h>
#include <math.h>
#include "cgl.h"
#ifdef _OPENMP
#include <omp.h>
#endif /* _OPENMP */

#if defined(PYREX_WITHOUT_ASSERTIONS) && !defined(CYTHON_WITHOUT_ASSERTIONS)
#define CYTHON_WITHOUT_ASSERTIONS
#endif

typedef struct {PyObject **p; const char *s; const Py_ssize_t n; const char* encoding;
                const char is_unicode; const char is_str; const char intern; } __Pyx_StringTabEntry;

#define __PYX_DEFAULT_STRING_ENCODING_IS_ASCII 0
#define __PYX_DEFAULT_STRING_ENCODING_IS_UTF8 0
#define __PYX_DEFAULT_STRING_ENCODING_IS_DEFAULT (PY_MAJOR_VERSION >= 3 && __PYX_DEFAULT_STRING_ENCODING_IS_UTF8)
#define __PYX_DEFAULT_STRING_ENCODING ""
#define __Pyx_PyObject_FromString __Pyx_PyBytes_FromString
#define __Pyx_PyObject_FromStringAndSize __Pyx_PyBytes_FromStringAndSize
#define __Pyx_uchar_cast(c) ((unsigned char)c)
#define __Pyx_long_cast(x) ((long)x)
#define __Pyx_fits_Py_ssize_t(v, type, is_signed)  (\
    (sizeof(type) < sizeof(Py_ssize_t))  ||\
    (sizeof(type) > sizeof(Py_ssize_t) &&\
          likely(v < (type)PY_SSIZE_T_MAX ||\
                 v == (type)PY_SSIZE_T_MAX)  &&\
          (!is_signed || likely(v > (type)PY_SSIZE_T_MIN ||\
                                v == (type)PY_SSIZE_T_MIN)))  ||\
    (sizeof(type) == sizeof(Py_ssize_t) &&\
          (is_signed || likely(v < (type)PY_SSIZE_T_MAX ||\
                               v == (type)PY_SSIZE_T_MAX)))  )
static CYTHON_INLINE int __Pyx_is_valid_index(Py_ssize_t i, Py_ssize_t limit) {
    return (size_t) i < (size_t) limit;
}
#if defined (__cplusplus) && __cplusplus >= 201103L
    #include <cstdlib>
    #define __Pyx_sst_abs(value) std::abs(value)
#elif SIZEOF_INT >= SIZEOF_SIZE_T
    #define __Pyx_sst_abs(value) abs(value)
#elif SIZEOF_LONG >= SIZEOF_SIZE_T
    #define __Pyx_sst_abs(value) labs(value)
#elif defined (_MSC_VER)
    #define __Pyx_sst_abs(value) ((Py_ssize_t)_abs64(value))
#elif defined (__STDC_VERSION__) && __STDC_VERSION__ >= 199901L
    #define __Pyx_sst_abs(value) llabs(value)
#elif defined (__GNUC__)
    #define __Pyx_sst_abs(value) __builtin_llabs(value)
#else
    #define __Pyx_sst_abs(value) ((value<0) ? -value : value)
#endif
static CYTHON_INLINE const char* __Pyx_PyObject_AsString(PyObject*);
static CYTHON_INLINE const char* __Pyx_PyObject_AsStringAndSize(PyObject*, Py_ssize_t* length);
#define __Pyx_PyByteArray_FromString(s) PyByteArray_FromStringAndSize((const char*)s, strlen((const char*)s))
#define __Pyx_PyByteArray_FromStringAndSize(s, l) PyByteArray_FromStringAndSize((const char*)s, l)
#define __Pyx_PyBytes_FromString        PyBytes_FromString
#define __Pyx_PyBytes_FromStringAndSize PyBytes_FromStringAndSize
static CYTHON_INLINE PyObject* __Pyx_PyUnicode_FromString(const char*);
#if PY_MAJOR_VERSION < 3
    #define __Pyx_PyStr_FromString        __Pyx_PyBytes_FromString
    #define __Pyx_PyStr_FromStringAndSize __Pyx_PyBytes_FromStringAndSize
#else
    #define __Pyx_PyStr_FromString        __Pyx_PyUnicode_FromString
    #define __Pyx_PyStr_FromStringAndSize __Pyx_PyUnicode_FromStringAndSize
#endif
#define __Pyx_PyBytes_AsWritableString(s)     ((char*) PyBytes_AS_STRING(s))
#define __Pyx_PyBytes_AsWritableSString(s)    ((signed char*) PyBytes_AS_STRING(s))
#define __Pyx_PyBytes_AsWritableUString(s)    ((unsigned char*) PyBytes_AS_STRING(s))
#define __Pyx_PyBytes_AsString(s)     ((const char*) PyBytes_AS_STRING(s))
#define __Pyx_PyBytes_AsSString(s)    ((const signed char*) PyBytes_AS_STRING(s))
#define __Pyx_PyBytes_AsUString(s)    ((const unsigned char*) PyBytes_AS_STRING(s))
#define __Pyx_PyObject_AsWritableString(s)    ((char*) __Pyx_PyObject_AsString(s))
#define __Pyx_PyObject_AsWritableSString(s)    ((signed char*) __Pyx_PyObject_AsString(s))
#define __Pyx_PyObject_AsWritableUString(s)    ((unsigned char*) __Pyx_PyObject_AsString(s))
#define __Pyx_PyObject_AsSString(s)    ((const signed char*) __Pyx_PyObject_AsString(s))
#define __Pyx_PyObject_AsUString(s)    ((const unsigned char*) __Pyx_PyObject_AsString(s))
#define __Pyx_PyObject_FromCString(s)  __Pyx_PyObject_FromString((const char*)s)
#define __Pyx_PyBytes_FromCString(s)   __Pyx_PyBytes_FromString((const char*)s)
#define __Pyx_PyByteArray_FromCString(s)   __Pyx_PyByteArray_FromString((const char*)s)
#define __Pyx_PyStr_FromCString(s)     __Pyx_PyStr_FromString((const char*)s)
#define __Pyx_PyUnicode_FromCString(s) __Pyx_PyUnicode_FromString((const char*)s)
static CYTHON_INLINE size_t __Pyx_Py_UNICODE_strlen(const Py_UNICODE *u) {
    const Py_UNICODE *u_end = u;
    while (*u_end++) ;
    return (size_t)(u_end - u - 1);
}
#define __Pyx_PyUnicode_FromUnicode(u)       PyUnicode_FromUnicode(u, __Pyx_Py_UNICODE_strlen(u))
#define __Pyx_PyUnicode_FromUnicodeAndLength PyUnicode_FromUnicode
#define __Pyx_PyUnicode_AsUnicode            PyUnicode_AsUnicode
#define __Pyx_NewRef(obj) (Py_INCREF(obj), obj)
#define __Pyx_Owned_Py_None(b) __Pyx_NewRef(Py_None)
static CYTHON_INLINE PyObject * __Pyx_PyBool_FromLong(long b);
static CYTHON_INLINE int __Pyx_PyObject_IsTrue(PyObject*);
static CYTHON_INLINE int __Pyx_PyObject_IsTrueAndDecref(PyObject*);
static CYTHON_INLINE PyObject* __Pyx_PyNumber_IntOrLong(PyObject* x);
#define __Pyx_PySequence_Tuple(obj)\
    (likely(PyTuple_CheckExact(obj)) ? __Pyx_NewRef(obj) : PySequence_Tuple(obj))
static CYTHON_INLINE Py_ssize_t __Pyx_PyIndex_AsSsize_t(PyObject*);
static CYTHON_INLINE PyObject * __Pyx_PyInt_FromSize_t(size_t);
static CYTHON_INLINE Py_hash_t __Pyx_PyIndex_AsHash_t(PyObject*);
#if CYTHON_ASSUME_SAFE_MACROS
#define __pyx_PyFloat_AsDouble(x) (PyFloat_CheckExact(x) ? PyFloat_AS_DOUBLE(x) : PyFloat_AsDouble(x))
#else
#define __pyx_PyFloat_AsDouble(x) PyFloat_AsDouble(x)
#endif
#define __pyx_PyFloat_AsFloat(x) ((float) __pyx_PyFloat_AsDouble(x))
#if PY_MAJOR_VERSION >= 3
#define __Pyx_PyNumber_Int(x) (PyLong_CheckExact(x) ? __Pyx_NewRef(x) : PyNumber_Long(x))
#else
#define __Pyx_PyNumber_Int(x) (PyInt_CheckExact(x) ? __Pyx_NewRef(x) : PyNumber_Int(x))
#endif
#define __Pyx_PyNumber_Float(x) (PyFloat_CheckExact(x) ? __Pyx_NewRef(x) : PyNumber_Float(x))
#if PY_MAJOR_VERSION < 3 && __PYX_DEFAULT_STRING_ENCODING_IS_ASCII
static int __Pyx_sys_getdefaultencoding_not_ascii;
static int __Pyx_init_sys_getdefaultencoding_params(void) {
    PyObject* sys;
    PyObject* default_encoding = NULL;
    PyObject* ascii_chars_u = NULL;
    PyObject* ascii_chars_b = NULL;
    const char* default_encoding_c;
    sys = PyImport_ImportModule("sys");
    if (!sys) goto bad;
    default_encoding = PyObject_CallMethod(sys, (char*) "getdefaultencoding", NULL);
    Py_DECREF(sys);
    if (!default_encoding) goto bad;
    default_encoding_c = PyBytes_AsString(default_encoding);
    if (!default_encoding_c) goto bad;
    if (strcmp(default_encoding_c, "ascii") == 0) {
        __Pyx_sys_getdefaultencoding_not_ascii = 0;
    } else {
        char ascii_chars[128];
        int c;
        for (c = 0; c < 128; c++) {
            ascii_chars[c] = c;
        }
        __Pyx_sys_getdefaultencoding_not_ascii = 1;
        ascii_chars_u = PyUnicode_DecodeASCII(ascii_chars, 128, NULL);
        if (!ascii_chars_u) goto bad;
        ascii_chars_b = PyUnicode_AsEncodedString(ascii_chars_u, default_encoding_c, NULL);
        if (!ascii_chars_b || !PyBytes_Check(ascii_chars_b) || memcmp(ascii_chars, PyBytes_AS_STRING(ascii_chars_b), 128) != 0) {
            PyErr_Format(
                PyExc_ValueError,
                "This module compiled with c_string_encoding=ascii, but default encoding '%.200s' is not a superset of ascii.",
                default_encoding_c);
            goto bad;
        }
        Py_DECREF(ascii_chars_u);
        Py_DECREF(ascii_chars_b);
    }
    Py_DECREF(default_encoding);
    return 0;
bad:
    Py_XDECREF(default_encoding);
    Py_XDECREF(ascii_chars_u);
    Py_XDECREF(ascii_chars_b);
    return -1;
}
#endif
#if __PYX_DEFAULT_STRING_ENCODING_IS_DEFAULT && PY_MAJOR_VERSION >= 3
#define __Pyx_PyUnicode_FromStringAndSize(c_str, size) PyUnicode_DecodeUTF8(c_str, size, NULL)
#else
#define __Pyx_PyUnicode_FromStringAndSize(c_str, size) PyUnicode_Decode(c_str, size, __PYX_DEFAULT_STRING_ENCODING, NULL)
#if __PYX_DEFAULT_STRING_ENCODING_IS_DEFAULT
static char* __PYX_DEFAULT_STRING_ENCODING;
static int __Pyx_init_sys_getdefaultencoding_params(void) {
    PyObject* sys;
    PyObject* default_encoding = NULL;
    char* default_encoding_c;
    sys = PyImport_ImportModule("sys");
    if (!sys) goto bad;
    default_encoding = PyObject_CallMethod(sys, (char*) (const char*) "getdefaultencoding", NULL);
    Py_DECREF(sys);
    if (!default_encoding) goto bad;
    default_encoding_c = PyBytes_AsString(default_encoding);
    if (!default_encoding_c) goto bad;
    __PYX_DEFAULT_STRING_ENCODING = (char*) malloc(strlen(default_encoding_c) + 1);
    if (!__PYX_DEFAULT_STRING_ENCODING) goto bad;
    strcpy(__PYX_DEFAULT_STRING_ENCODING, default_encoding_c);
    Py_DECREF(default_encoding);
    return 0;
bad:
    Py_XDECREF(default_encoding);
    return -1;
}
#endif
#endif


/* Test for GCC > 2.95 */
#if defined(__GNUC__)     && (__GNUC__ > 2 || (__GNUC__ == 2 && (__GNUC_MINOR__ > 95)))
  #define likely(x)   __builtin_expect(!!(x), 1)
  #define unlikely(x) __builtin_expect(!!(x), 0)
#else /* !__GNUC__ or GCC < 2.95 */
  #define likely(x)   (x)
  #define unlikely(x) (x)
#endif /* __GNUC__ */
static CYTHON_INLINE void __Pyx_pretend_to_initialize(void* ptr) { (void)ptr; }

static PyObject *__pyx_m = NULL;
static PyObject *__pyx_d;
static PyObject *__pyx_b;
static PyObject *__pyx_cython_runtime = NULL;
static PyObject *__pyx_empty_tuple;
static PyObject *__pyx_empty_bytes;
static PyObject *__pyx_empty_unicode;
static int __pyx_lineno;
static int __pyx_clineno = 0;
static const char * __pyx_cfilenm= __FILE__;
static const char *__pyx_filename;


static const char *__pyx_f[] = {
  "cgl_wrapper.pyx",
  "stringsource",
};
/* NoFastGil.proto */
#define __Pyx_PyGILState_Ensure PyGILState_Ensure
#define __Pyx_PyGILState_Release PyGILState_Release
#define __Pyx_FastGIL_Remember()
#define __Pyx_FastGIL_Forget()
#define __Pyx_FastGilFuncInit()

/* ForceInitThreads.proto */
#ifndef __PYX_FORCE_INIT_THREADS
  #define __PYX_FORCE_INIT_THREADS 0
#endif


/*--- Type declarations ---*/
struct __pyx_obj_3cgl_vec2;
struct __pyx_obj_3cgl_vec3;
struct __pyx_obj_3cgl_vec4;
struct __pyx_obj_3cgl_ivec4;
struct __pyx_obj_3cgl_mat4;
struct __pyx_obj_3cgl_transform;
struct __pyx_obj_3cgl_window;
struct __pyx_obj_3cgl_image;
struct __pyx_obj_3cgl_mesh_vertex;
struct __pyx_obj_3cgl_mesh_cpu;

/* "cgl_wrapper.pyx":502
 *     return CGL_float_cubic_lerp(a, b, c, d, t)
 * 
 * cdef class vec2:             # <<<<<<<<<<<<<<
 *     cdef CGL_vec2 c_vec2
 * 
 */
struct __pyx_obj_3cgl_vec2 {
  PyObject_HEAD
  struct CGL_vec2 c_vec2;
};


/* "cgl_wrapper.pyx":597
 * 
 * 
 * cdef class vec3:             # <<<<<<<<<<<<<<
 *     cdef CGL_vec3 c_vec3
 * 
 */
struct __pyx_obj_3cgl_vec3 {
  PyObject_HEAD
  struct CGL_vec3 c_vec3;
};


/* "cgl_wrapper.pyx":708
 *     return vec3(obj.x, obj.y, obj.z)
 * 
 * cdef class vec4:             # <<<<<<<<<<<<<<
 *     cdef CGL_vec4 c_vec4
 * 
 */
struct __pyx_obj_3cgl_vec4 {
  PyObject_HEAD
  struct CGL_vec4 c_vec4;
};


/* "cgl_wrapper.pyx":818
 *     return vec4(obj.x, obj.y, obj.z, obj.w)
 * 
 * cdef class ivec4:             # <<<<<<<<<<<<<<
 *     cdef CGL_ivec4 c_ivec4
 * 
 */
struct __pyx_obj_3cgl_ivec4 {
  PyObject_HEAD
  struct CGL_ivec4 c_ivec4;
};


/* "cgl_wrapper.pyx":881
 *             raise AttributeError()
 * 
 * cdef class mat4:             # <<<<<<<<<<<<<<
 *     cdef CGL_mat4 c_mat4
 * 
 */
struct __pyx_obj_3cgl_mat4 {
  PyObject_HEAD
  struct __pyx_vtabstruct_3cgl_mat4 *__pyx_vtab;
  struct CGL_mat4 c_mat4;
};


/* "cgl_wrapper.pyx":1049
 * 
 * 
 * cdef class transform:             # <<<<<<<<<<<<<<
 *     cdef CGL_transform c_transform
 * 
 */
struct __pyx_obj_3cgl_transform {
  PyObject_HEAD
  struct CGL_transform c_transform;
};


/* "cgl_wrapper.pyx":1306
 *     window_object.drag_n_drop_callback(window_object, path_list)
 * 
 * cdef class window:             # <<<<<<<<<<<<<<
 *     cdef CGL_window* c_window
 *     cdef bool is_decorated
 */
struct __pyx_obj_3cgl_window {
  PyObject_HEAD
  struct CGL_window *c_window;
  bool is_decorated;
  bool has_been_destroyed;
  PyObject *title;
  PyObject *key_callback;
  PyObject *mouse_button_callback;
  PyObject *mouse_position_callback;
  PyObject *mouse_scroll_callback;
  PyObject *framebuffer_size_callback;
  PyObject *close_callback;
  PyObject *drag_n_drop_callback;
};


/* "cgl_wrapper.pyx":1491
 *         return f"window({self.width}, {self.height}, {self.title})"
 * 
 * cdef class image:             # <<<<<<<<<<<<<<
 *     cdef CGL_image c_image
 *     cdef object image_data
 */
struct __pyx_obj_3cgl_image {
  PyObject_HEAD
  struct CGL_image c_image;
  PyObject *image_data;
};


/* "cgl_wrapper.pyx":1528
 *         self.c_image.data = <void*>self.image_data
 * 
 * cdef class mesh_vertex:             # <<<<<<<<<<<<<<
 *     cdef CGL_mesh_vertex c_vertex
 * 
 */
struct __pyx_obj_3cgl_mesh_vertex {
  PyObject_HEAD
  struct CGL_mesh_vertex c_vertex;
};


/* "cgl_wrapper.pyx":1602
 * 
 * 
 * cdef class mesh_cpu:             # <<<<<<<<<<<<<<
 *     cdef CGL_mesh_cpu* c_mesh
 * 
 */
struct __pyx_obj_3cgl_mesh_cpu {
  PyObject_HEAD
  struct CGL_mesh_cpu *c_mesh;
};



/* "cgl_wrapper.pyx":881
 *             raise AttributeError()
 * 
 * cdef class mat4:             # <<<<<<<<<<<<<<
 *     cdef CGL_mat4 c_mat4
 * 
 */

struct __pyx_vtabstruct_3cgl_mat4 {
  PyObject *(*set_c_mat4)(struct __pyx_obj_3cgl_mat4 *, struct CGL_mat4);
};
static struct __pyx_vtabstruct_3cgl_mat4 *__pyx_vtabptr_3cgl_mat4;

/* --- Runtime support code (head) --- */
/* Refnanny.proto */
#ifndef CYTHON_REFNANNY
  #define CYTHON_REFNANNY 0
#endif
#if CYTHON_REFNANNY
  typedef struct {
    void (*INCREF)(void*, PyObject*, int);
    void (*DECREF)(void*, PyObject*, int);
    void (*GOTREF)(void*, PyObject*, int);
    void (*GIVEREF)(void*, PyObject*, int);
    void* (*SetupContext)(const char*, int, const char*);
    void (*FinishContext)(void**);
  } __Pyx_RefNannyAPIStruct;
  static __Pyx_RefNannyAPIStruct *__Pyx_RefNanny = NULL;
  static __Pyx_RefNannyAPIStruct *__Pyx_RefNannyImportAPI(const char *modname);
  #define __Pyx_RefNannyDeclarations void *__pyx_refnanny = NULL;
#ifdef WITH_THREAD
  #define __Pyx_RefNannySetupContext(name, acquire_gil)\
          if (acquire_gil) {\
              PyGILState_STATE __pyx_gilstate_save = PyGILState_Ensure();\
              __pyx_refnanny = __Pyx_RefNanny->SetupContext((name), __LINE__, __FILE__);\
              PyGILState_Release(__pyx_gilstate_save);\
          } else {\
              __pyx_refnanny = __Pyx_RefNanny->SetupContext((name), __LINE__, __FILE__);\
          }
#else
  #define __Pyx_RefNannySetupContext(name, acquire_gil)\
          __pyx_refnanny = __Pyx_RefNanny->SetupContext((name), __LINE__, __FILE__)
#endif
  #define __Pyx_RefNannyFinishContext()\
          __Pyx_RefNanny->FinishContext(&__pyx_refnanny)
  #define __Pyx_INCREF(r)  __Pyx_RefNanny->INCREF(__pyx_refnanny, (PyObject *)(r), __LINE__)
  #define __Pyx_DECREF(r)  __Pyx_RefNanny->DECREF(__pyx_refnanny, (PyObject *)(r), __LINE__)
  #define __Pyx_GOTREF(r)  __Pyx_RefNanny->GOTREF(__pyx_refnanny, (PyObject *)(r), __LINE__)
  #define __Pyx_GIVEREF(r) __Pyx_RefNanny->GIVEREF(__pyx_refnanny, (PyObject *)(r), __LINE__)
  #define __Pyx_XINCREF(r)  do { if((r) != NULL) {__Pyx_INCREF(r); }} while(0)
  #define __Pyx_XDECREF(r)  do { if((r) != NULL) {__Pyx_DECREF(r); }} while(0)
  #define __Pyx_XGOTREF(r)  do { if((r) != NULL) {__Pyx_GOTREF(r); }} while(0)
  #define __Pyx_XGIVEREF(r) do { if((r) != NULL) {__Pyx_GIVEREF(r);}} while(0)
#else
  #define __Pyx_RefNannyDeclarations
  #define __Pyx_RefNannySetupContext(name, acquire_gil)
  #define __Pyx_RefNannyFinishContext()
  #define __Pyx_INCREF(r) Py_INCREF(r)
  #define __Pyx_DECREF(r) Py_DECREF(r)
  #define __Pyx_GOTREF(r)
  #define __Pyx_GIVEREF(r)
  #define __Pyx_XINCREF(r) Py_XINCREF(r)
  #define __Pyx_XDECREF(r) Py_XDECREF(r)
  #define __Pyx_XGOTREF(r)
  #define __Pyx_XGIVEREF(r)
#endif
#define __Pyx_XDECREF_SET(r, v) do {\
        PyObject *tmp = (PyObject *) r;\
        r = v; __Pyx_XDECREF(tmp);\
    } while (0)
#define __Pyx_DECREF_SET(r, v) do {\
        PyObject *tmp = (PyObject *) r;\
        r = v; __Pyx_DECREF(tmp);\
    } while (0)
#define __Pyx_CLEAR(r)    do { PyObject* tmp = ((PyObject*)(r)); r = NULL; __Pyx_DECREF(tmp);} while(0)
#define __Pyx_XCLEAR(r)   do { if((r) != NULL) {PyObject* tmp = ((PyObject*)(r)); r = NULL; __Pyx_DECREF(tmp);}} while(0)

/* PyObjectGetAttrStr.proto */
#if CYTHON_USE_TYPE_SLOTS
static CYTHON_INLINE PyObject* __Pyx_PyObject_GetAttrStr(PyObject* obj, PyObject* attr_name);
#else
#define __Pyx_PyObject_GetAttrStr(o,n) PyObject_GetAttr(o,n)
#endif

/* GetBuiltinName.proto */
static PyObject *__Pyx_GetBuiltinName(PyObject *name);

/* ArgTypeTest.proto */
#define __Pyx_ArgTypeTest(obj, type, none_allowed, name, exact)\
    ((likely((Py_TYPE(obj) == type) | (none_allowed && (obj == Py_None)))) ? 1 :\
        __Pyx__ArgTypeTest(obj, type, name, exact))
static int __Pyx__ArgTypeTest(PyObject *obj, PyTypeObject *type, const char *name, int exact);

/* PyObjectCall.proto */
#if CYTHON_COMPILING_IN_CPYTHON
static CYTHON_INLINE PyObject* __Pyx_PyObject_Call(PyObject *func, PyObject *arg, PyObject *kw);
#else
#define __Pyx_PyObject_Call(func, arg, kw) PyObject_Call(func, arg, kw)
#endif

/* UnpackUnboundCMethod.proto */
typedef struct {
    PyObject *type;
    PyObject **method_name;
    PyCFunction func;
    PyObject *method;
    int flag;
} __Pyx_CachedCFunction;

/* CallUnboundCMethod0.proto */
static PyObject* __Pyx__CallUnboundCMethod0(__Pyx_CachedCFunction* cfunc, PyObject* self);
#if CYTHON_COMPILING_IN_CPYTHON
#define __Pyx_CallUnboundCMethod0(cfunc, self)\
    (likely((cfunc)->func) ?\
        (likely((cfunc)->flag == METH_NOARGS) ?  (*((cfunc)->func))(self, NULL) :\
         (PY_VERSION_HEX >= 0x030600B1 && likely((cfunc)->flag == METH_FASTCALL) ?\
            (PY_VERSION_HEX >= 0x030700A0 ?\
                (*(__Pyx_PyCFunctionFast)(void*)(PyCFunction)(cfunc)->func)(self, &__pyx_empty_tuple, 0) :\
                (*(__Pyx_PyCFunctionFastWithKeywords)(void*)(PyCFunction)(cfunc)->func)(self, &__pyx_empty_tuple, 0, NULL)) :\
          (PY_VERSION_HEX >= 0x030700A0 && (cfunc)->flag == (METH_FASTCALL | METH_KEYWORDS) ?\
            (*(__Pyx_PyCFunctionFastWithKeywords)(void*)(PyCFunction)(cfunc)->func)(self, &__pyx_empty_tuple, 0, NULL) :\
            (likely((cfunc)->flag == (METH_VARARGS | METH_KEYWORDS)) ?  ((*(PyCFunctionWithKeywords)(void*)(PyCFunction)(cfunc)->func)(self, __pyx_empty_tuple, NULL)) :\
               ((cfunc)->flag == METH_VARARGS ?  (*((cfunc)->func))(self, __pyx_empty_tuple) :\
               __Pyx__CallUnboundCMethod0(cfunc, self)))))) :\
        __Pyx__CallUnboundCMethod0(cfunc, self))
#else
#define __Pyx_CallUnboundCMethod0(cfunc, self)  __Pyx__CallUnboundCMethod0(cfunc, self)
#endif

/* PyDictVersioning.proto */
#if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_TYPE_SLOTS
#define __PYX_DICT_VERSION_INIT  ((PY_UINT64_T) -1)
#define __PYX_GET_DICT_VERSION(dict)  (((PyDictObject*)(dict))->ma_version_tag)
#define __PYX_UPDATE_DICT_CACHE(dict, value, cache_var, version_var)\
    (version_var) = __PYX_GET_DICT_VERSION(dict);\
    (cache_var) = (value);
#define __PYX_PY_DICT_LOOKUP_IF_MODIFIED(VAR, DICT, LOOKUP) {\
    static PY_UINT64_T __pyx_dict_version = 0;\
    static PyObject *__pyx_dict_cached_value = NULL;\
    if (likely(__PYX_GET_DICT_VERSION(DICT) == __pyx_dict_version)) {\
        (VAR) = __pyx_dict_cached_value;\
    } else {\
        (VAR) = __pyx_dict_cached_value = (LOOKUP);\
        __pyx_dict_version = __PYX_GET_DICT_VERSION(DICT);\
    }\
}
static CYTHON_INLINE PY_UINT64_T __Pyx_get_tp_dict_version(PyObject *obj);
static CYTHON_INLINE PY_UINT64_T __Pyx_get_object_dict_version(PyObject *obj);
static CYTHON_INLINE int __Pyx_object_dict_version_matches(PyObject* obj, PY_UINT64_T tp_dict_version, PY_UINT64_T obj_dict_version);
#else
#define __PYX_GET_DICT_VERSION(dict)  (0)
#define __PYX_UPDATE_DICT_CACHE(dict, value, cache_var, version_var)
#define __PYX_PY_DICT_LOOKUP_IF_MODIFIED(VAR, DICT, LOOKUP)  (VAR) = (LOOKUP);
#endif

/* GetModuleGlobalName.proto */
#if CYTHON_USE_DICT_VERSIONS
#define __Pyx_GetModuleGlobalName(var, name)  do {\
    static PY_UINT64_T __pyx_dict_version = 0;\
    static PyObject *__pyx_dict_cached_value = NULL;\
    (var) = (likely(__pyx_dict_version == __PYX_GET_DICT_VERSION(__pyx_d))) ?\
        (likely(__pyx_dict_cached_value) ? __Pyx_NewRef(__pyx_dict_cached_value) : __Pyx_GetBuiltinName(name)) :\
        __Pyx__GetModuleGlobalName(name, &__pyx_dict_version, &__pyx_dict_cached_value);\
} while(0)
#define __Pyx_GetModuleGlobalNameUncached(var, name)  do {\
    PY_UINT64_T __pyx_dict_version;\
    PyObject *__pyx_dict_cached_value;\
    (var) = __Pyx__GetModuleGlobalName(name, &__pyx_dict_version, &__pyx_dict_cached_value);\
} while(0)
static PyObject *__Pyx__GetModuleGlobalName(PyObject *name, PY_UINT64_T *dict_version, PyObject **dict_cached_value);
#else
#define __Pyx_GetModuleGlobalName(var, name)  (var) = __Pyx__GetModuleGlobalName(name)
#define __Pyx_GetModuleGlobalNameUncached(var, name)  (var) = __Pyx__GetModuleGlobalName(name)
static CYTHON_INLINE PyObject *__Pyx__GetModuleGlobalName(PyObject *name);
#endif

/* PyCFunctionFastCall.proto */
#if CYTHON_FAST_PYCCALL
static CYTHON_INLINE PyObject *__Pyx_PyCFunction_FastCall(PyObject *func, PyObject **args, Py_ssize_t nargs);
#else
#define __Pyx_PyCFunction_FastCall(func, args, nargs)  (assert(0), NULL)
#endif

/* PyFunctionFastCall.proto */
#if CYTHON_FAST_PYCALL
#define __Pyx_PyFunction_FastCall(func, args, nargs)\
    __Pyx_PyFunction_FastCallDict((func), (args), (nargs), NULL)
#if 1 || PY_VERSION_HEX < 0x030600B1
static PyObject *__Pyx_PyFunction_FastCallDict(PyObject *func, PyObject **args, Py_ssize_t nargs, PyObject *kwargs);
#else
#define __Pyx_PyFunction_FastCallDict(func, args, nargs, kwargs) _PyFunction_FastCallDict(func, args, nargs, kwargs)
#endif
#define __Pyx_BUILD_ASSERT_EXPR(cond)\
    (sizeof(char [1 - 2*!(cond)]) - 1)
#ifndef Py_MEMBER_SIZE
#define Py_MEMBER_SIZE(type, member) sizeof(((type *)0)->member)
#endif
#if CYTHON_FAST_PYCALL
  static size_t __pyx_pyframe_localsplus_offset = 0;
  #include "frameobject.h"
#if PY_VERSION_HEX >= 0x030b00a6
  #ifndef Py_BUILD_CORE
    #define Py_BUILD_CORE 1
  #endif
  #include "internal/pycore_frame.h"
#endif
  #define __Pxy_PyFrame_Initialize_Offsets()\
    ((void)__Pyx_BUILD_ASSERT_EXPR(sizeof(PyFrameObject) == offsetof(PyFrameObject, f_localsplus) + Py_MEMBER_SIZE(PyFrameObject, f_localsplus)),\
     (void)(__pyx_pyframe_localsplus_offset = ((size_t)PyFrame_Type.tp_basicsize) - Py_MEMBER_SIZE(PyFrameObject, f_localsplus)))
  #define __Pyx_PyFrame_GetLocalsplus(frame)\
    (assert(__pyx_pyframe_localsplus_offset), (PyObject **)(((char *)(frame)) + __pyx_pyframe_localsplus_offset))
#endif // CYTHON_FAST_PYCALL
#endif

/* PyObjectCall2Args.proto */
static CYTHON_UNUSED PyObject* __Pyx_PyObject_Call2Args(PyObject* function, PyObject* arg1, PyObject* arg2);

/* PyObjectCallMethO.proto */
#if CYTHON_COMPILING_IN_CPYTHON
static CYTHON_INLINE PyObject* __Pyx_PyObject_CallMethO(PyObject *func, PyObject *arg);
#endif

/* PyObjectCallOneArg.proto */
static CYTHON_INLINE PyObject* __Pyx_PyObject_CallOneArg(PyObject *func, PyObject *arg);

/* RaiseArgTupleInvalid.proto */
static void __Pyx_RaiseArgtupleInvalid(const char* func_name, int exact,
    Py_ssize_t num_min, Py_ssize_t num_max, Py_ssize_t num_found);

/* RaiseDoubleKeywords.proto */
static void __Pyx_RaiseDoubleKeywordsError(const char* func_name, PyObject* kw_name);

/* ParseKeywords.proto */
static int __Pyx_ParseOptionalKeywords(PyObject *kwds, PyObject **argnames[],\
    PyObject *kwds2, PyObject *values[], Py_ssize_t num_pos_args,\
    const char* function_name);

/* IncludeStringH.proto */
#include <string.h>

/* decode_c_string_utf16.proto */
static CYTHON_INLINE PyObject *__Pyx_PyUnicode_DecodeUTF16(const char *s, Py_ssize_t size, const char *errors) {
    int byteorder = 0;
    return PyUnicode_DecodeUTF16(s, size, errors, &byteorder);
}
static CYTHON_INLINE PyObject *__Pyx_PyUnicode_DecodeUTF16LE(const char *s, Py_ssize_t size, const char *errors) {
    int byteorder = -1;
    return PyUnicode_DecodeUTF16(s, size, errors, &byteorder);
}
static CYTHON_INLINE PyObject *__Pyx_PyUnicode_DecodeUTF16BE(const char *s, Py_ssize_t size, const char *errors) {
    int byteorder = 1;
    return PyUnicode_DecodeUTF16(s, size, errors, &byteorder);
}

/* decode_c_string.proto */
static CYTHON_INLINE PyObject* __Pyx_decode_c_string(
         const char* cstring, Py_ssize_t start, Py_ssize_t stop,
         const char* encoding, const char* errors,
         PyObject* (*decode_func)(const char *s, Py_ssize_t size, const char *errors));

/* GetItemInt.proto */
#define __Pyx_GetItemInt(o, i, type, is_signed, to_py_func, is_list, wraparound, boundscheck)\
    (__Pyx_fits_Py_ssize_t(i, type, is_signed) ?\
    __Pyx_GetItemInt_Fast(o, (Py_ssize_t)i, is_list, wraparound, boundscheck) :\
    (is_list ? (PyErr_SetString(PyExc_IndexError, "list index out of range"), (PyObject*)NULL) :\
               __Pyx_GetItemInt_Generic(o, to_py_func(i))))
#define __Pyx_GetItemInt_List(o, i, type, is_signed, to_py_func, is_list, wraparound, boundscheck)\
    (__Pyx_fits_Py_ssize_t(i, type, is_signed) ?\
    __Pyx_GetItemInt_List_Fast(o, (Py_ssize_t)i, wraparound, boundscheck) :\
    (PyErr_SetString(PyExc_IndexError, "list index out of range"), (PyObject*)NULL))
static CYTHON_INLINE PyObject *__Pyx_GetItemInt_List_Fast(PyObject *o, Py_ssize_t i,
                                                              int wraparound, int boundscheck);
#define __Pyx_GetItemInt_Tuple(o, i, type, is_signed, to_py_func, is_list, wraparound, boundscheck)\
    (__Pyx_fits_Py_ssize_t(i, type, is_signed) ?\
    __Pyx_GetItemInt_Tuple_Fast(o, (Py_ssize_t)i, wraparound, boundscheck) :\
    (PyErr_SetString(PyExc_IndexError, "tuple index out of range"), (PyObject*)NULL))
static CYTHON_INLINE PyObject *__Pyx_GetItemInt_Tuple_Fast(PyObject *o, Py_ssize_t i,
                                                              int wraparound, int boundscheck);
static PyObject *__Pyx_GetItemInt_Generic(PyObject *o, PyObject* j);
static CYTHON_INLINE PyObject *__Pyx_GetItemInt_Fast(PyObject *o, Py_ssize_t i,
                                                     int is_list, int wraparound, int boundscheck);

/* PyObjectCallNoArg.proto */
#if CYTHON_COMPILING_IN_CPYTHON
static CYTHON_INLINE PyObject* __Pyx_PyObject_CallNoArg(PyObject *func);
#else
#define __Pyx_PyObject_CallNoArg(func) __Pyx_PyObject_Call(func, __pyx_empty_tuple, NULL)
#endif

/* PyThreadStateGet.proto */
#if CYTHON_FAST_THREAD_STATE
#define __Pyx_PyThreadState_declare  PyThreadState *__pyx_tstate;
#define __Pyx_PyThreadState_assign  __pyx_tstate = __Pyx_PyThreadState_Current;
#define __Pyx_PyErr_Occurred()  __pyx_tstate->curexc_type
#else
#define __Pyx_PyThreadState_declare
#define __Pyx_PyThreadState_assign
#define __Pyx_PyErr_Occurred()  PyErr_Occurred()
#endif

/* PyErrFetchRestore.proto */
#if CYTHON_FAST_THREAD_STATE
#define __Pyx_PyErr_Clear() __Pyx_ErrRestore(NULL, NULL, NULL)
#define __Pyx_ErrRestoreWithState(type, value, tb)  __Pyx_ErrRestoreInState(PyThreadState_GET(), type, value, tb)
#define __Pyx_ErrFetchWithState(type, value, tb)    __Pyx_ErrFetchInState(PyThreadState_GET(), type, value, tb)
#define __Pyx_ErrRestore(type, value, tb)  __Pyx_ErrRestoreInState(__pyx_tstate, type, value, tb)
#define __Pyx_ErrFetch(type, value, tb)    __Pyx_ErrFetchInState(__pyx_tstate, type, value, tb)
static CYTHON_INLINE void __Pyx_ErrRestoreInState(PyThreadState *tstate, PyObject *type, PyObject *value, PyObject *tb);
static CYTHON_INLINE void __Pyx_ErrFetchInState(PyThreadState *tstate, PyObject **type, PyObject **value, PyObject **tb);
#if CYTHON_COMPILING_IN_CPYTHON
#define __Pyx_PyErr_SetNone(exc) (Py_INCREF(exc), __Pyx_ErrRestore((exc), NULL, NULL))
#else
#define __Pyx_PyErr_SetNone(exc) PyErr_SetNone(exc)
#endif
#else
#define __Pyx_PyErr_Clear() PyErr_Clear()
#define __Pyx_PyErr_SetNone(exc) PyErr_SetNone(exc)
#define __Pyx_ErrRestoreWithState(type, value, tb)  PyErr_Restore(type, value, tb)
#define __Pyx_ErrFetchWithState(type, value, tb)  PyErr_Fetch(type, value, tb)
#define __Pyx_ErrRestoreInState(tstate, type, value, tb)  PyErr_Restore(type, value, tb)
#define __Pyx_ErrFetchInState(tstate, type, value, tb)  PyErr_Fetch(type, value, tb)
#define __Pyx_ErrRestore(type, value, tb)  PyErr_Restore(type, value, tb)
#define __Pyx_ErrFetch(type, value, tb)  PyErr_Fetch(type, value, tb)
#endif

/* RaiseException.proto */
static void __Pyx_Raise(PyObject *type, PyObject *value, PyObject *tb, PyObject *cause);

/* PyFloatBinop.proto */
#if !CYTHON_COMPILING_IN_PYPY
static PyObject* __Pyx_PyFloat_DivideObjC(PyObject *op1, PyObject *op2, double floatval, int inplace, int zerodivision_check);
#else
#define __Pyx_PyFloat_DivideObjC(op1, op2, floatval, inplace, zerodivision_check)\
    ((inplace ? __Pyx_PyNumber_InPlaceDivide(op1, op2) : __Pyx_PyNumber_Divide(op1, op2)))
    #endif

/* PyFloatBinop.proto */
#if !CYTHON_COMPILING_IN_PYPY
static PyObject* __Pyx_PyFloat_DivideCObj(PyObject *op1, PyObject *op2, double floatval, int inplace, int zerodivision_check);
#else
#define __Pyx_PyFloat_DivideCObj(op1, op2, floatval, inplace, zerodivision_check)\
    ((inplace ? __Pyx_PyNumber_InPlaceDivide(op1, op2) : __Pyx_PyNumber_Divide(op1, op2)))
    #endif

/* PyObjectFormatSimple.proto */
#if CYTHON_COMPILING_IN_PYPY
    #define __Pyx_PyObject_FormatSimple(s, f) (\
        likely(PyUnicode_CheckExact(s)) ? (Py_INCREF(s), s) :\
        PyObject_Format(s, f))
#elif PY_MAJOR_VERSION < 3
    #define __Pyx_PyObject_FormatSimple(s, f) (\
        likely(PyUnicode_CheckExact(s)) ? (Py_INCREF(s), s) :\
        likely(PyString_CheckExact(s)) ? PyUnicode_FromEncodedObject(s, NULL, "strict") :\
        PyObject_Format(s, f))
#elif CYTHON_USE_TYPE_SLOTS
    #define __Pyx_PyObject_FormatSimple(s, f) (\
        likely(PyUnicode_CheckExact(s)) ? (Py_INCREF(s), s) :\
        likely(PyLong_CheckExact(s)) ? PyLong_Type.tp_str(s) :\
        likely(PyFloat_CheckExact(s)) ? PyFloat_Type.tp_str(s) :\
        PyObject_Format(s, f))
#else
    #define __Pyx_PyObject_FormatSimple(s, f) (\
        likely(PyUnicode_CheckExact(s)) ? (Py_INCREF(s), s) :\
        PyObject_Format(s, f))
#endif

/* JoinPyUnicode.proto */
static PyObject* __Pyx_PyUnicode_Join(PyObject* value_tuple, Py_ssize_t value_count, Py_ssize_t result_ulength,
                                      Py_UCS4 max_char);

/* PyIntCompare.proto */
static CYTHON_INLINE PyObject* __Pyx_PyInt_EqObjC(PyObject *op1, PyObject *op2, long intval, long inplace);

/* BytesEquals.proto */
static CYTHON_INLINE int __Pyx_PyBytes_Equals(PyObject* s1, PyObject* s2, int equals);

/* UnicodeEquals.proto */
static CYTHON_INLINE int __Pyx_PyUnicode_Equals(PyObject* s1, PyObject* s2, int equals);

/* StrEquals.proto */
#if PY_MAJOR_VERSION >= 3
#define __Pyx_PyString_Equals __Pyx_PyUnicode_Equals
#else
#define __Pyx_PyString_Equals __Pyx_PyBytes_Equals
#endif

/* KeywordStringCheck.proto */
static int __Pyx_CheckKeywordStrings(PyObject *kwdict, const char* function_name, int kw_allowed);

/* WriteUnraisableException.proto */
static void __Pyx_WriteUnraisable(const char *name, int clineno,
                                  int lineno, const char *filename,
                                  int full_traceback, int nogil);

/* ListAppend.proto */
#if CYTHON_USE_PYLIST_INTERNALS && CYTHON_ASSUME_SAFE_MACROS
static CYTHON_INLINE int __Pyx_PyList_Append(PyObject* list, PyObject* x) {
    PyListObject* L = (PyListObject*) list;
    Py_ssize_t len = Py_SIZE(list);
    if (likely(L->allocated > len) & likely(len > (L->allocated >> 1))) {
        Py_INCREF(x);
        PyList_SET_ITEM(list, len, x);
        __Pyx_SET_SIZE(list, len + 1);
        return 0;
    }
    return PyList_Append(list, x);
}
#else
#define __Pyx_PyList_Append(L,x) PyList_Append(L,x)
#endif

/* CallUnboundCMethod1.proto */
static PyObject* __Pyx__CallUnboundCMethod1(__Pyx_CachedCFunction* cfunc, PyObject* self, PyObject* arg);
#if CYTHON_COMPILING_IN_CPYTHON
static CYTHON_INLINE PyObject* __Pyx_CallUnboundCMethod1(__Pyx_CachedCFunction* cfunc, PyObject* self, PyObject* arg);
#else
#define __Pyx_CallUnboundCMethod1(cfunc, self, arg)  __Pyx__CallUnboundCMethod1(cfunc, self, arg)
#endif

/* ListCompAppend.proto */
#if CYTHON_USE_PYLIST_INTERNALS && CYTHON_ASSUME_SAFE_MACROS
static CYTHON_INLINE int __Pyx_ListComp_Append(PyObject* list, PyObject* x) {
    PyListObject* L = (PyListObject*) list;
    Py_ssize_t len = Py_SIZE(list);
    if (likely(L->allocated > len)) {
        Py_INCREF(x);
        PyList_SET_ITEM(list, len, x);
        __Pyx_SET_SIZE(list, len + 1);
        return 0;
    }
    return PyList_Append(list, x);
}
#else
#define __Pyx_ListComp_Append(L,x) PyList_Append(L,x)
#endif

/* ObjectGetItem.proto */
#if CYTHON_USE_TYPE_SLOTS
static CYTHON_INLINE PyObject *__Pyx_PyObject_GetItem(PyObject *obj, PyObject* key);
#else
#define __Pyx_PyObject_GetItem(obj, key)  PyObject_GetItem(obj, key)
#endif

/* DictGetItem.proto */
#if PY_MAJOR_VERSION >= 3 && !CYTHON_COMPILING_IN_PYPY
static PyObject *__Pyx_PyDict_GetItem(PyObject *d, PyObject* key);
#define __Pyx_PyObject_Dict_GetItem(obj, name)\
    (likely(PyDict_CheckExact(obj)) ?\
     __Pyx_PyDict_GetItem(obj, name) : PyObject_GetItem(obj, name))
#else
#define __Pyx_PyDict_GetItem(d, key) PyObject_GetItem(d, key)
#define __Pyx_PyObject_Dict_GetItem(obj, name)  PyObject_GetItem(obj, name)
#endif

/* GetTopmostException.proto */
#if CYTHON_USE_EXC_INFO_STACK
static _PyErr_StackItem * __Pyx_PyErr_GetTopmostException(PyThreadState *tstate);
#endif

/* SaveResetException.proto */
#if CYTHON_FAST_THREAD_STATE
#define __Pyx_ExceptionSave(type, value, tb)  __Pyx__ExceptionSave(__pyx_tstate, type, value, tb)
static CYTHON_INLINE void __Pyx__ExceptionSave(PyThreadState *tstate, PyObject **type, PyObject **value, PyObject **tb);
#define __Pyx_ExceptionReset(type, value, tb)  __Pyx__ExceptionReset(__pyx_tstate, type, value, tb)
static CYTHON_INLINE void __Pyx__ExceptionReset(PyThreadState *tstate, PyObject *type, PyObject *value, PyObject *tb);
#else
#define __Pyx_ExceptionSave(type, value, tb)   PyErr_GetExcInfo(type, value, tb)
#define __Pyx_ExceptionReset(type, value, tb)  PyErr_SetExcInfo(type, value, tb)
#endif

/* PyErrExceptionMatches.proto */
#if CYTHON_FAST_THREAD_STATE
#define __Pyx_PyErr_ExceptionMatches(err) __Pyx_PyErr_ExceptionMatchesInState(__pyx_tstate, err)
static CYTHON_INLINE int __Pyx_PyErr_ExceptionMatchesInState(PyThreadState* tstate, PyObject* err);
#else
#define __Pyx_PyErr_ExceptionMatches(err)  PyErr_ExceptionMatches(err)
#endif

/* GetException.proto */
#if CYTHON_FAST_THREAD_STATE
#define __Pyx_GetException(type, value, tb)  __Pyx__GetException(__pyx_tstate, type, value, tb)
static int __Pyx__GetException(PyThreadState *tstate, PyObject **type, PyObject **value, PyObject **tb);
#else
static int __Pyx_GetException(PyObject **type, PyObject **value, PyObject **tb);
#endif

/* PyObject_GenericGetAttrNoDict.proto */
#if CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP && PY_VERSION_HEX < 0x03070000
static CYTHON_INLINE PyObject* __Pyx_PyObject_GenericGetAttrNoDict(PyObject* obj, PyObject* attr_name);
#else
#define __Pyx_PyObject_GenericGetAttrNoDict PyObject_GenericGetAttr
#endif

/* PyObject_GenericGetAttr.proto */
#if CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP && PY_VERSION_HEX < 0x03070000
static PyObject* __Pyx_PyObject_GenericGetAttr(PyObject* obj, PyObject* attr_name);
#else
#define __Pyx_PyObject_GenericGetAttr PyObject_GenericGetAttr
#endif

/* PyObjectGetAttrStrNoError.proto */
static CYTHON_INLINE PyObject* __Pyx_PyObject_GetAttrStrNoError(PyObject* obj, PyObject* attr_name);

/* SetupReduce.proto */
static int __Pyx_setup_reduce(PyObject* type_obj);

/* SetVTable.proto */
static int __Pyx_SetVtable(PyObject *dict, void *vtable);

/* Import.proto */
static PyObject *__Pyx_Import(PyObject *name, PyObject *from_list, int level);

/* ImportFrom.proto */
static PyObject* __Pyx_ImportFrom(PyObject* module, PyObject* name);

/* CLineInTraceback.proto */
#ifdef CYTHON_CLINE_IN_TRACEBACK
#define __Pyx_CLineForTraceback(tstate, c_line)  (((CYTHON_CLINE_IN_TRACEBACK)) ? c_line : 0)
#else
static int __Pyx_CLineForTraceback(PyThreadState *tstate, int c_line);
#endif

/* CodeObjectCache.proto */
typedef struct {
    PyCodeObject* code_object;
    int code_line;
} __Pyx_CodeObjectCacheEntry;
struct __Pyx_CodeObjectCache {
    int count;
    int max_count;
    __Pyx_CodeObjectCacheEntry* entries;
};
static struct __Pyx_CodeObjectCache __pyx_code_cache = {0,0,NULL};
static int __pyx_bisect_code_objects(__Pyx_CodeObjectCacheEntry* entries, int count, int code_line);
static PyCodeObject *__pyx_find_code_object(int code_line);
static void __pyx_insert_code_object(int code_line, PyCodeObject* code_object);

/* AddTraceback.proto */
static void __Pyx_AddTraceback(const char *funcname, int c_line,
                               int py_line, const char *filename);

/* GCCDiagnostics.proto */
#if defined(__GNUC__) && (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 6))
#define __Pyx_HAS_GCC_DIAGNOSTIC
#endif

static PyObject* __pyx_convert__to_py_struct__CGL_vec2(struct CGL_vec2 s);
static PyObject* __pyx_convert__to_py_struct__CGL_vec3(struct CGL_vec3 s);
static PyObject* __pyx_convert__to_py_struct__CGL_vec4(struct CGL_vec4 s);
static PyObject* __pyx_convert__to_py_struct__CGL_mat4(struct CGL_mat4 s);
static PyObject* __pyx_convert__to_py_struct__CGL_ivec4(struct CGL_ivec4 s);
static PyObject* __pyx_convert__to_py_struct__CGL_mesh_vertex(struct CGL_mesh_vertex s);
/* CIntFromPy.proto */
static CYTHON_INLINE uint64_t __Pyx_PyInt_As_uint64_t(PyObject *);

/* CIntToPy.proto */
static CYTHON_INLINE PyObject* __Pyx_PyInt_From_uint64_t(uint64_t value);

/* CIntFromPy.proto */
static CYTHON_INLINE CGL_int __Pyx_PyInt_As_CGL_int(PyObject *);

/* CIntToPy.proto */
static CYTHON_INLINE PyObject* __Pyx_PyInt_From_CGL_int(CGL_int value);

/* CIntToPy.proto */
static CYTHON_INLINE PyObject* __Pyx_PyInt_From_CGL_ulong(CGL_ulong value);

/* CIntFromPy.proto */
static CYTHON_INLINE CGL_uint __Pyx_PyInt_As_CGL_uint(PyObject *);

/* CIntToPy.proto */
static CYTHON_INLINE PyObject* __Pyx_PyInt_From_CGL_uint(CGL_uint value);

/* CIntFromPy.proto */
static CYTHON_INLINE uint8_t __Pyx_PyInt_As_uint8_t(PyObject *);

/* CIntToPy.proto */
static CYTHON_INLINE PyObject* __Pyx_PyInt_From_long(long value);

/* CIntFromPy.proto */
static CYTHON_INLINE CGL_byte __Pyx_PyInt_As_CGL_byte(PyObject *);

/* CIntToPy.proto */
static CYTHON_INLINE PyObject* __Pyx_PyInt_From_uint32_t(uint32_t value);

/* CIntToPy.proto */
static CYTHON_INLINE PyObject* __Pyx_PyInt_From_int(int value);

/* CIntFromPy.proto */
static CYTHON_INLINE int __Pyx_PyInt_As_int(PyObject *);

/* CIntFromPy.proto */
static CYTHON_INLINE size_t __Pyx_PyInt_As_size_t(PyObject *);

/* CIntFromPy.proto */
static CYTHON_INLINE long __Pyx_PyInt_As_long(PyObject *);

/* FastTypeChecks.proto */
#if CYTHON_COMPILING_IN_CPYTHON
#define __Pyx_TypeCheck(obj, type) __Pyx_IsSubtype(Py_TYPE(obj), (PyTypeObject *)type)
static CYTHON_INLINE int __Pyx_IsSubtype(PyTypeObject *a, PyTypeObject *b);
static CYTHON_INLINE int __Pyx_PyErr_GivenExceptionMatches(PyObject *err, PyObject *type);
static CYTHON_INLINE int __Pyx_PyErr_GivenExceptionMatches2(PyObject *err, PyObject *type1, PyObject *type2);
#else
#define __Pyx_TypeCheck(obj, type) PyObject_TypeCheck(obj, (PyTypeObject *)type)
#define __Pyx_PyErr_GivenExceptionMatches(err, type) PyErr_GivenExceptionMatches(err, type)
#define __Pyx_PyErr_GivenExceptionMatches2(err, type1, type2) (PyErr_GivenExceptionMatches(err, type1) || PyErr_GivenExceptionMatches(err, type2))
#endif
#define __Pyx_PyException_Check(obj) __Pyx_TypeCheck(obj, PyExc_Exception)

/* CheckBinaryVersion.proto */
static int __Pyx_check_binary_version(void);

/* InitStrings.proto */
static int __Pyx_InitStrings(__Pyx_StringTabEntry *t);

static PyObject *__pyx_f_3cgl_4mat4_set_c_mat4(struct __pyx_obj_3cgl_mat4 *__pyx_v_self, struct CGL_mat4 __pyx_v_c_mat4); /* proto*/

/* Module declarations from 'libcpp' */

/* Module declarations from 'libc.stdint' */

/* Module declarations from 'libc.string' */

/* Module declarations from 'libc.stdlib' */

/* Module declarations from 'libc.math' */

/* Module declarations from 'cgl' */
static PyTypeObject *__pyx_ptype_3cgl_vec2 = 0;
static PyTypeObject *__pyx_ptype_3cgl_vec3 = 0;
static PyTypeObject *__pyx_ptype_3cgl_vec4 = 0;
static PyTypeObject *__pyx_ptype_3cgl_ivec4 = 0;
static PyTypeObject *__pyx_ptype_3cgl_mat4 = 0;
static PyTypeObject *__pyx_ptype_3cgl_transform = 0;
static PyTypeObject *__pyx_ptype_3cgl_window = 0;
static PyTypeObject *__pyx_ptype_3cgl_image = 0;
static PyTypeObject *__pyx_ptype_3cgl_mesh_vertex = 0;
static PyTypeObject *__pyx_ptype_3cgl_mesh_cpu = 0;
static void __pyx_f_3cgl___pass_through_window_close_callback(struct CGL_window *); /*proto*/
static void __pyx_f_3cgl___pass_through_window_key_callback(struct CGL_window *, int, int, int, int); /*proto*/
static void __pyx_f_3cgl___pass_through_window_mouse_button_callback(struct CGL_window *, int, int, int); /*proto*/
static void __pyx_f_3cgl___pass_through_window_mouse_position_callback(struct CGL_window *, double, double); /*proto*/
static void __pyx_f_3cgl___pass_through_window_mouse_scroll_callback(struct CGL_window *, double, double); /*proto*/
static void __pyx_f_3cgl___pass_through_window_framebuffer_size_callback(struct CGL_window *, int, int); /*proto*/
static void __pyx_f_3cgl___pass_through_window_drag_n_drop_callback(struct CGL_window *, char const **, int); /*proto*/
static struct CGL_vec2 __pyx_convert__from_py_struct__CGL_vec2(PyObject *); /*proto*/
static struct CGL_vec3 __pyx_convert__from_py_struct__CGL_vec3(PyObject *); /*proto*/
static struct CGL_vec4 __pyx_convert__from_py_struct__CGL_vec4(PyObject *); /*proto*/
static CYTHON_INLINE PyObject *__Pyx_carray_to_py_CGL_float(CGL_float *, Py_ssize_t); /*proto*/
static CYTHON_INLINE PyObject *__Pyx_carray_to_tuple_CGL_float(CGL_float *, Py_ssize_t); /*proto*/
static struct CGL_ivec4 __pyx_convert__from_py_struct__CGL_ivec4(PyObject *); /*proto*/
static struct CGL_mesh_vertex __pyx_convert__from_py_struct__CGL_mesh_vertex(PyObject *); /*proto*/
#define __Pyx_MODULE_NAME "cgl"
extern int __pyx_module_is_main_cgl;
int __pyx_module_is_main_cgl = 0;

/* Implementation of 'cgl' */
static PyObject *__pyx_builtin_MemoryError;
static PyObject *__pyx_builtin_range;
static PyObject *__pyx_builtin_ValueError;
static PyObject *__pyx_builtin_IndexError;
static PyObject *__pyx_builtin_AttributeError;
static PyObject *__pyx_builtin_TypeError;
static PyObject *__pyx_builtin_RuntimeError;
static PyObject *__pyx_builtin_KeyError;
static const char __pyx_k_[] = "#";
static const char __pyx_k_E[] = "E";
static const char __pyx_k_a[] = "a";
static const char __pyx_k_b[] = "b";
static const char __pyx_k_c[] = "c";
static const char __pyx_k_d[] = "d";
static const char __pyx_k_i[] = "i";
static const char __pyx_k_l[] = "l";
static const char __pyx_k_m[] = "m";
static const char __pyx_k_n[] = "n";
static const char __pyx_k_t[] = "t";
static const char __pyx_k_u[] = "u";
static const char __pyx_k_v[] = "v";
static const char __pyx_k_w[] = "w";
static const char __pyx_k_x[] = "x";
static const char __pyx_k_y[] = "y";
static const char __pyx_k_z[] = "z";
static const char __pyx_k_PI[] = "PI";
static const char __pyx_k__2[] = "_";
static const char __pyx_k__3[] = ", ";
static const char __pyx_k__4[] = ")";
static const char __pyx_k_up[] = "up";
static const char __pyx_k__13[] = "    ";
static const char __pyx_k__14[] = "\n";
static const char __pyx_k_cgl[] = "cgl";
static const char __pyx_k_deg[] = "deg";
static const char __pyx_k_eye[] = "eye";
static const char __pyx_k_far[] = "far";
static const char __pyx_k_fov[] = "fov";
static const char __pyx_k_obj[] = "obj";
static const char __pyx_k_pop[] = "pop";
static const char __pyx_k_ptr[] = "ptr";
static const char __pyx_k_rad[] = "rad";
static const char __pyx_k_top[] = "top";
static const char __pyx_k_PI_2[] = "PI_2";
static const char __pyx_k_axis[] = "axis";
static const char __pyx_k_copy[] = "copy";
static const char __pyx_k_data[] = "data";
static const char __pyx_k_free[] = "free";
static const char __pyx_k_init[] = "init";
static const char __pyx_k_left[] = "left";
static const char __pyx_k_main[] = "__main__";
static const char __pyx_k_mat4[] = "mat4";
static const char __pyx_k_name[] = "__name__";
static const char __pyx_k_near[] = "near";
static const char __pyx_k_open[] = "open";
static const char __pyx_k_path[] = "path";
static const char __pyx_k_seed[] = "seed";
static const char __pyx_k_size[] = "size";
static const char __pyx_k_test[] = "__test__";
static const char __pyx_k_vec2[] = "vec2(";
static const char __pyx_k_vec3[] = "vec3(";
static const char __pyx_k_vec4[] = "vec4(";
static const char __pyx_k_Image[] = "Image";
static const char __pyx_k_KEY_0[] = "KEY_0";
static const char __pyx_k_KEY_1[] = "KEY_1";
static const char __pyx_k_KEY_2[] = "KEY_2";
static const char __pyx_k_KEY_3[] = "KEY_3";
static const char __pyx_k_KEY_4[] = "KEY_4";
static const char __pyx_k_KEY_5[] = "KEY_5";
static const char __pyx_k_KEY_6[] = "KEY_6";
static const char __pyx_k_KEY_7[] = "KEY_7";
static const char __pyx_k_KEY_8[] = "KEY_8";
static const char __pyx_k_KEY_9[] = "KEY_9";
static const char __pyx_k_KEY_A[] = "KEY_A";
static const char __pyx_k_KEY_B[] = "KEY_B";
static const char __pyx_k_KEY_C[] = "KEY_C";
static const char __pyx_k_KEY_D[] = "KEY_D";
static const char __pyx_k_KEY_E[] = "KEY_E";
static const char __pyx_k_KEY_F[] = "KEY_F";
static const char __pyx_k_KEY_G[] = "KEY_G";
static const char __pyx_k_KEY_H[] = "KEY_H";
static const char __pyx_k_KEY_I[] = "KEY_I";
static const char __pyx_k_KEY_J[] = "KEY_J";
static const char __pyx_k_KEY_K[] = "KEY_K";
static const char __pyx_k_KEY_L[] = "KEY_L";
static const char __pyx_k_KEY_M[] = "KEY_M";
static const char __pyx_k_KEY_N[] = "KEY_N";
static const char __pyx_k_KEY_O[] = "KEY_O";
static const char __pyx_k_KEY_P[] = "KEY_P";
static const char __pyx_k_KEY_Q[] = "KEY_Q";
static const char __pyx_k_KEY_R[] = "KEY_R";
static const char __pyx_k_KEY_S[] = "KEY_S";
static const char __pyx_k_KEY_T[] = "KEY_T";
static const char __pyx_k_KEY_U[] = "KEY_U";
static const char __pyx_k_KEY_V[] = "KEY_V";
static const char __pyx_k_KEY_W[] = "KEY_W";
static const char __pyx_k_KEY_X[] = "KEY_X";
static const char __pyx_k_KEY_Y[] = "KEY_Y";
static const char __pyx_k_KEY_Z[] = "KEY_Z";
static const char __pyx_k_PRESS[] = "PRESS";
static const char __pyx_k_SQRT2[] = "SQRT2";
static const char __pyx_k_SQRT3[] = "SQRT3";
static const char __pyx_k_SQRT5[] = "SQRT5";
static const char __pyx_k_SQRT6[] = "SQRT6";
static const char __pyx_k_SQRT7[] = "SQRT7";
static const char __pyx_k_SQRT8[] = "SQRT8";
static const char __pyx_k_angle[] = "angle";
static const char __pyx_k_color[] = "color";
static const char __pyx_k_image[] = "image(";
static const char __pyx_k_ivec4[] = "ivec4(";
static const char __pyx_k_l_obj[] = "l_obj";
static const char __pyx_k_level[] = "level";
static const char __pyx_k_range[] = "range";
static const char __pyx_k_right[] = "right";
static const char __pyx_k_scale[] = "scale";
static const char __pyx_k_theta[] = "theta";
static const char __pyx_k_title[] = "title";
static const char __pyx_k_u_obj[] = "u_obj";
static const char __pyx_k_utf_8[] = "utf-8";
static const char __pyx_k_width[] = "width";
static const char __pyx_k_KEY_F1[] = "KEY_F1";
static const char __pyx_k_KEY_F2[] = "KEY_F2";
static const char __pyx_k_KEY_F3[] = "KEY_F3";
static const char __pyx_k_KEY_F4[] = "KEY_F4";
static const char __pyx_k_KEY_F5[] = "KEY_F5";
static const char __pyx_k_KEY_F6[] = "KEY_F6";
static const char __pyx_k_KEY_F7[] = "KEY_F7";
static const char __pyx_k_KEY_F8[] = "KEY_F8";
static const char __pyx_k_KEY_F9[] = "KEY_F9";
static const char __pyx_k_KEY_UP[] = "KEY_UP";
static const char __pyx_k_REPEAT[] = "REPEAT";
static const char __pyx_k_TWO_PI[] = "TWO_PI";
static const char __pyx_k_aspect[] = "aspect";
static const char __pyx_k_bottom[] = "bottom";
static const char __pyx_k_buffer[] = "buffer";
static const char __pyx_k_c_mesh[] = "c_mesh";
static const char __pyx_k_encode[] = "encode";
static const char __pyx_k_format[] = "format";
static const char __pyx_k_get_id[] = "get_id";
static const char __pyx_k_height[] = "height";
static const char __pyx_k_import[] = "__import__";
static const char __pyx_k_length[] = "length";
static const char __pyx_k_mat4x4[] = "mat4x4(\n";
static const char __pyx_k_normal[] = "normal";
static const char __pyx_k_prefix[] = "prefix";
static const char __pyx_k_reduce[] = "__reduce__";
static const char __pyx_k_result[] = "result";
static const char __pyx_k_suffix[] = "suffix";
static const char __pyx_k_target[] = "target";
static const char __pyx_k_typing[] = "typing";
static const char __pyx_k_vec2_2[] = "vec2";
static const char __pyx_k_vec3_2[] = "vec3";
static const char __pyx_k_vec4_2[] = "vec4";
static const char __pyx_k_window[] = "window(";
static const char __pyx_k_KEY_END[] = "KEY_END";
static const char __pyx_k_KEY_F10[] = "KEY_F10";
static const char __pyx_k_KEY_F11[] = "KEY_F11";
static const char __pyx_k_KEY_F12[] = "KEY_F12";
static const char __pyx_k_KEY_F13[] = "KEY_F13";
static const char __pyx_k_KEY_F14[] = "KEY_F14";
static const char __pyx_k_KEY_F15[] = "KEY_F15";
static const char __pyx_k_KEY_F16[] = "KEY_F16";
static const char __pyx_k_KEY_F17[] = "KEY_F17";
static const char __pyx_k_KEY_F18[] = "KEY_F18";
static const char __pyx_k_KEY_F19[] = "KEY_F19";
static const char __pyx_k_KEY_F20[] = "KEY_F20";
static const char __pyx_k_KEY_F21[] = "KEY_F21";
static const char __pyx_k_KEY_F22[] = "KEY_F22";
static const char __pyx_k_KEY_F23[] = "KEY_F23";
static const char __pyx_k_KEY_F24[] = "KEY_F24";
static const char __pyx_k_KEY_F25[] = "KEY_F25";
static const char __pyx_k_KEY_TAB[] = "KEY_TAB";
static const char __pyx_k_RELEASE[] = "RELEASE";
static const char __pyx_k_destroy[] = "destroy";
static const char __pyx_k_image_2[] = "image";
static const char __pyx_k_ivec4_2[] = "ivec4";
static const char __pyx_k_scale_2[] = ", scale=";
static const char __pyx_k_tobytes[] = "tobytes";
static const char __pyx_k_CGL_TRUE[] = "CGL_TRUE";
static const char __pyx_k_Callable[] = "Callable";
static const char __pyx_k_KEY_DOWN[] = "KEY_DOWN";
static const char __pyx_k_KEY_HOME[] = "KEY_HOME";
static const char __pyx_k_KEY_KP_0[] = "KEY_KP_0";
static const char __pyx_k_KEY_KP_1[] = "KEY_KP_1";
static const char __pyx_k_KEY_KP_2[] = "KEY_KP_2";
static const char __pyx_k_KEY_KP_3[] = "KEY_KP_3";
static const char __pyx_k_KEY_KP_4[] = "KEY_KP_4";
static const char __pyx_k_KEY_KP_5[] = "KEY_KP_5";
static const char __pyx_k_KEY_KP_6[] = "KEY_KP_6";
static const char __pyx_k_KEY_KP_7[] = "KEY_KP_7";
static const char __pyx_k_KEY_KP_8[] = "KEY_KP_8";
static const char __pyx_k_KEY_KP_9[] = "KEY_KP_9";
static const char __pyx_k_KEY_LEFT[] = "KEY_LEFT";
static const char __pyx_k_KEY_MENU[] = "KEY_MENU";
static const char __pyx_k_KeyError[] = "KeyError";
static const char __pyx_k_bone_ids[] = "bone_ids";
static const char __pyx_k_c_vertex[] = "c_vertex";
static const char __pyx_k_channels[] = "channels";
static const char __pyx_k_deepcopy[] = "deepcopy";
static const char __pyx_k_get_size[] = "get_size";
static const char __pyx_k_getstate[] = "__getstate__";
static const char __pyx_k_log_info[] = "log_info";
static const char __pyx_k_log_warn[] = "log_warn";
static const char __pyx_k_mat4_det[] = "mat4_det";
static const char __pyx_k_mat4_mul[] = "mat4_mul";
static const char __pyx_k_mesh_cpu[] = "mesh_cpu(";
static const char __pyx_k_position[] = "position";
static const char __pyx_k_progress[] = "progress";
static const char __pyx_k_rotation[] = "rotation";
static const char __pyx_k_setstate[] = "__setstate__";
static const char __pyx_k_shutdown[] = "shutdown";
static const char __pyx_k_window_2[] = "window";
static const char __pyx_k_CGL_FALSE[] = "CGL_FALSE";
static const char __pyx_k_KEY_COMMA[] = "KEY_COMMA";
static const char __pyx_k_KEY_ENTER[] = "KEY_ENTER";
static const char __pyx_k_KEY_EQUAL[] = "KEY_EQUAL";
static const char __pyx_k_KEY_MINUS[] = "KEY_MINUS";
static const char __pyx_k_KEY_PAUSE[] = "KEY_PAUSE";
static const char __pyx_k_KEY_RIGHT[] = "KEY_RIGHT";
static const char __pyx_k_KEY_SLASH[] = "KEY_SLASH";
static const char __pyx_k_KEY_SPACE[] = "KEY_SPACE";
static const char __pyx_k_PIL_Image[] = "PIL.Image";
static const char __pyx_k_TypeError[] = "TypeError";
static const char __pyx_k_decorated[] = "decorated";
static const char __pyx_k_log_error[] = "log_error";
static const char __pyx_k_log_trace[] = "log_trace";
static const char __pyx_k_mat4_lerp[] = "mat4_lerp";
static const char __pyx_k_mat4_rank[] = "mat4_rank";
static const char __pyx_k_mat4_zero[] = "mat4_zero";
static const char __pyx_k_reduce_ex[] = "__reduce_ex__";
static const char __pyx_k_transform[] = "transform";
static const char __pyx_k_CGL_Window[] = "CGL Window";
static const char __pyx_k_IndexError[] = "IndexError";
static const char __pyx_k_KEY_DELETE[] = "KEY_DELETE";
static const char __pyx_k_KEY_ESCAPE[] = "KEY_ESCAPE";
static const char __pyx_k_KEY_INSERT[] = "KEY_INSERT";
static const char __pyx_k_KEY_KP_ADD[] = "KEY_KP_ADD";
static const char __pyx_k_KEY_PERIOD[] = "KEY_PERIOD";
static const char __pyx_k_ValueError[] = "ValueError";
static const char __pyx_k_deg_to_rad[] = "deg_to_rad";
static const char __pyx_k_float_lerp[] = "float_lerp";
static const char __pyx_k_log_format[] = "log_format";
static const char __pyx_k_logger_log[] = "logger_log";
static const char __pyx_k_mat4_scale[] = "mat4_scale";
static const char __pyx_k_mat4_trace[] = "mat4_trace";
static const char __pyx_k_mesh_cpu_2[] = "mesh_cpu";
static const char __pyx_k_printf_red[] = "printf_red";
static const char __pyx_k_pyx_vtable[] = "__pyx_vtable__";
static const char __pyx_k_rad_to_deg[] = "rad_to_deg";
static const char __pyx_k_rotation_2[] = ", rotation=";
static const char __pyx_k_utils_relu[] = "utils_relu";
static const char __pyx_k_utils_step[] = "utils_step";
static const char __pyx_k_utils_tanh[] = "utils_tanh";
static const char __pyx_k_KEY_PAGE_UP[] = "KEY_PAGE_UP";
static const char __pyx_k_KEY_UNKNOWN[] = "KEY_UNKNOWN";
static const char __pyx_k_KEY_WORLD_1[] = "KEY_WORLD_1";
static const char __pyx_k_KEY_WORLD_2[] = "KEY_WORLD_2";
static const char __pyx_k_MemoryError[] = "MemoryError";
static const char __pyx_k_index_count[] = "index_count";
static const char __pyx_k_logger_init[] = "logger_init";
static const char __pyx_k_mesh_vertex[] = "mesh_vertex(";
static const char __pyx_k_printf_blue[] = "printf_blue";
static const char __pyx_k_printf_gray[] = "printf_gray";
static const char __pyx_k_utils_crc32[] = "utils_crc32";
static const char __pyx_k_utils_crc64[] = "utils_crc64";
static const char __pyx_k_utils_rot13[] = "utils_rot13";
static const char __pyx_k_utils_sleep[] = "utils_sleep";
static const char __pyx_k_KEY_KP_ENTER[] = "KEY_KP_ENTER";
static const char __pyx_k_KEY_KP_EQUAL[] = "KEY_KP_EQUAL";
static const char __pyx_k_KEY_LEFT_ALT[] = "KEY_LEFT_ALT";
static const char __pyx_k_KEY_NUM_LOCK[] = "KEY_NUM_LOCK";
static const char __pyx_k_RuntimeError[] = "RuntimeError";
static const char __pyx_k_WINDOW_TABLE[] = "__WINDOW_TABLE";
static const char __pyx_k_bone_wieghts[] = "bone_wieghts";
static const char __pyx_k_get_position[] = "get_position";
static const char __pyx_k_key_callback[] = "key_callback";
static const char __pyx_k_log_internal[] = "log_internal";
static const char __pyx_k_logger_flush[] = "logger_flush";
static const char __pyx_k_mat4_adjoint[] = "mat4_adjoint";
static const char __pyx_k_mat4_inverse[] = "mat4_inverse";
static const char __pyx_k_mat4_look_at[] = "mat4_look_at";
static const char __pyx_k_milliseconds[] = "milliseconds";
static const char __pyx_k_printf_green[] = "printf_green";
static const char __pyx_k_utils_rand31[] = "utils_rand31";
static const char __pyx_k_vec3_reflect[] = "vec3_reflect";
static const char __pyx_k_vertex_count[] = "vertex_count";
static const char __pyx_k_KEY_BACKSLASH[] = "KEY_BACKSLASH";
static const char __pyx_k_KEY_BACKSPACE[] = "KEY_BACKSPACE";
static const char __pyx_k_KEY_CAPS_LOCK[] = "KEY_CAPS_LOCK";
static const char __pyx_k_KEY_KP_DIVIDE[] = "KEY_KP_DIVIDE";
static const char __pyx_k_KEY_PAGE_DOWN[] = "KEY_PAGE_DOWN";
static const char __pyx_k_KEY_RIGHT_ALT[] = "KEY_RIGHT_ALT";
static const char __pyx_k_KEY_SEMICOLON[] = "KEY_SEMICOLON";
static const char __pyx_k_complete_char[] = "complete_char";
static const char __pyx_k_mat4_identity[] = "mat4_identity";
static const char __pyx_k_mat4_mul_vec4[] = "mat4_mul_vec4";
static const char __pyx_k_mat4_rotate_x[] = "mat4_rotate_x";
static const char __pyx_k_mat4_rotate_y[] = "mat4_rotate_y";
static const char __pyx_k_mat4_rotate_z[] = "mat4_rotate_z";
static const char __pyx_k_mesh_vertex_2[] = "mesh_vertex";
static const char __pyx_k_probabilities[] = "probabilities";
static const char __pyx_k_reduce_cython[] = "__reduce_cython__";
static const char __pyx_k_utils_sigmoid[] = "utils_sigmoid";
static const char __pyx_k_utils_srand31[] = "utils_srand31";
static const char __pyx_k_AttributeError[] = "AttributeError";
static const char __pyx_k_KEY_APOSTROPHE[] = "KEY_APOSTROPHE";
static const char __pyx_k_KEY_KP_DECIMAL[] = "KEY_KP_DECIMAL";
static const char __pyx_k_KEY_LEFT_SHIFT[] = "KEY_LEFT_SHIFT";
static const char __pyx_k_KEY_LEFT_SUPER[] = "KEY_LEFT_SUPER";
static const char __pyx_k_LOG_LEVEL_INFO[] = "LOG_LEVEL_INFO";
static const char __pyx_k_LOG_LEVEL_WARN[] = "LOG_LEVEL_WARN";
static const char __pyx_k_MOUSE_BUTTON_1[] = "MOUSE_BUTTON_1";
static const char __pyx_k_MOUSE_BUTTON_2[] = "MOUSE_BUTTON_2";
static const char __pyx_k_MOUSE_BUTTON_3[] = "MOUSE_BUTTON_3";
static const char __pyx_k_MOUSE_BUTTON_4[] = "MOUSE_BUTTON_4";
static const char __pyx_k_MOUSE_BUTTON_5[] = "MOUSE_BUTTON_5";
static const char __pyx_k_MOUSE_BUTTON_6[] = "MOUSE_BUTTON_6";
static const char __pyx_k_MOUSE_BUTTON_7[] = "MOUSE_BUTTON_7";
static const char __pyx_k_MOUSE_BUTTON_8[] = "MOUSE_BUTTON_8";
static const char __pyx_k_close_callback[] = "close_callback";
static const char __pyx_k_length_squared[] = "length_squared";
static const char __pyx_k_mat4_det_by_lu[] = "mat4_det_by_lu";
static const char __pyx_k_mat4_translate[] = "mat4_translate";
static const char __pyx_k_mat4_transpose[] = "mat4_transpose";
static const char __pyx_k_utils_get_time[] = "utils_get_time";
static const char __pyx_k_utils_xorshf96[] = "utils_xorshf96";
static const char __pyx_k_KEY_KP_MULTIPLY[] = "KEY_KP_MULTIPLY";
static const char __pyx_k_KEY_KP_SUBTRACT[] = "KEY_KP_SUBTRACT";
static const char __pyx_k_KEY_RIGHT_SHIFT[] = "KEY_RIGHT_SHIFT";
static const char __pyx_k_KEY_RIGHT_SUPER[] = "KEY_RIGHT_SUPER";
static const char __pyx_k_KEY_SCROLL_LOCK[] = "KEY_SCROLL_LOCK";
static const char __pyx_k_LOG_LEVEL_ERROR[] = "LOG_LEVEL_ERROR";
static const char __pyx_k_LOG_LEVEL_TRACE[] = "LOG_LEVEL_TRACE";
static const char __pyx_k_c_probabilities[] = "c_probabilities";
static const char __pyx_k_cgl_wrapper_pyx[] = "cgl_wrapper.pyx";
static const char __pyx_k_incomplete_char[] = "incomplete_char";
static const char __pyx_k_logger_shutdown[] = "logger_shutdown";
static const char __pyx_k_mat4_gauss_elim[] = "mat4_gauss_elim";
static const char __pyx_k_setstate_cython[] = "__setstate_cython__";
static const char __pyx_k_utils_fast_rand[] = "utils_fast_rand";
static const char __pyx_k_utils_read_file[] = "utils_read_file";
static const char __pyx_k_KEY_GRAVE_ACCENT[] = "KEY_GRAVE_ACCENT";
static const char __pyx_k_KEY_LEFT_BRACKET[] = "KEY_LEFT_BRACKET";
static const char __pyx_k_KEY_LEFT_CONTROL[] = "KEY_LEFT_CONTROL";
static const char __pyx_k_KEY_PRINT_SCREEN[] = "KEY_PRINT_SCREEN";
static const char __pyx_k_float_cubic_lerp[] = "float_cubic_lerp";
static const char __pyx_k_index_count_used[] = "index_count_used";
static const char __pyx_k_mat4_perspective[] = "mat4_perspective";
static const char __pyx_k_utils_fast_srand[] = "utils_fast_srand";
static const char __pyx_k_utils_relu_leaky[] = "utils_relu_leaky";
static const char __pyx_k_utils_write_file[] = "utils_write_file";
static const char __pyx_k_CONSOLE_COLOR_RED[] = "CONSOLE_COLOR_RED";
static const char __pyx_k_KEY_RIGHT_BRACKET[] = "KEY_RIGHT_BRACKET";
static const char __pyx_k_KEY_RIGHT_CONTROL[] = "KEY_RIGHT_CONTROL";
static const char __pyx_k_MOUSE_BUTTON_LAST[] = "MOUSE_BUTTON_LAST";
static const char __pyx_k_MOUSE_BUTTON_LEFT[] = "MOUSE_BUTTON_LEFT";
static const char __pyx_k_console_set_color[] = "console_set_color";
static const char __pyx_k_mat4_decompose_lu[] = "mat4_decompose_lu";
static const char __pyx_k_mat4_det_by_gauss[] = "mat4_det_by_gauss";
static const char __pyx_k_mat4_orthographic[] = "mat4_orthographic";
static const char __pyx_k_utils_append_file[] = "utils_append_file";
static const char __pyx_k_utils_relu_smooth[] = "utils_relu_smooth";
static const char __pyx_k_vertex_count_used[] = "vertex_count_used";
static const char __pyx_k_CONSOLE_COLOR_BLUE[] = "CONSOLE_COLOR_BLUE";
static const char __pyx_k_CONSOLE_COLOR_GRAY[] = "CONSOLE_COLOR_GRAY";
static const char __pyx_k_LOG_LEVEL_INTERNAL[] = "LOG_LEVEL_INTERNAL";
static const char __pyx_k_MOUSE_BUTTON_RIGHT[] = "MOUSE_BUTTON_RIGHT";
static const char __pyx_k_cline_in_traceback[] = "cline_in_traceback";
static const char __pyx_k_transform_position[] = "transform(position=";
static const char __pyx_k_CONSOLE_COLOR_GREEN[] = "CONSOLE_COLOR_GREEN";
static const char __pyx_k_CONSOLE_COLOR_RESET[] = "CONSOLE_COLOR_RESET";
static const char __pyx_k_MOUSE_BUTTON_MIDDLE[] = "MOUSE_BUTTON_MIDDLE";
static const char __pyx_k_texture_coordinates[] = "texture_coordinates";
static const char __pyx_k_utils_get_file_size[] = "utils_get_file_size";
static const char __pyx_k_utils_get_timestamp[] = "utils_get_timestamp";
static const char __pyx_k_utils_is_big_endian[] = "utils_is_big_endian";
static const char __pyx_k_utils_reverse_bytes[] = "utils_reverse_bytes";
static const char __pyx_k_vec2_triple_product[] = "vec2_triple_product";
static const char __pyx_k_vec3_triple_product[] = "vec3_triple_product";
static const char __pyx_k_vec4_triple_product[] = "vec4_triple_product";
static const char __pyx_k_LOGGER_MAX_LOG_FILES[] = "LOGGER_MAX_LOG_FILES";
static const char __pyx_k_console_progress_bar[] = "console_progress_bar";
static const char __pyx_k_drag_n_drop_callback[] = "drag_n_drop_callback";
static const char __pyx_k_float_quadratic_lerp[] = "float_quadratic_lerp";
static const char __pyx_k_mouse_button_callback[] = "mouse_button_callback";
static const char __pyx_k_mouse_scroll_callback[] = "mouse_scroll_callback";
static const char __pyx_k_utils_relu_derivative[] = "utils_relu_derivative";
static const char __pyx_k_utils_step_derivative[] = "utils_step_derivative";
static const char __pyx_k_utils_super_fast_hash[] = "utils_super_fast_hash";
static const char __pyx_k_utils_tanh_derivative[] = "utils_tanh_derivative";
static const char __pyx_k_LOGGER_LOG_BUFFER_SIZE[] = "LOGGER_LOG_BUFFER_SIZE";
static const char __pyx_k_enable_console_logging[] = "enable_console_logging";
static const char __pyx_k_logger_attach_log_file[] = "logger_attach_log_file";
static const char __pyx_k_logger_detach_log_file[] = "logger_detach_log_file";
static const char __pyx_k_mat4_rotate_about_axis[] = "mat4_rotate_about_axis";
static const char __pyx_k_utils_is_little_endian[] = "utils_is_little_endian";
static const char __pyx_k_vec3_rotate_about_axis[] = "vec3_rotate_about_axis";
static const char __pyx_k_Failed_to_create_window[] = "Failed to create window";
static const char __pyx_k_mouse_position_callback[] = "mouse_position_callback";
static const char __pyx_k_utils_sigmoid_derivative[] = "utils_sigmoid_derivative";
static const char __pyx_k_framebuffer_size_callback[] = "framebuffer_size_callback";
static const char __pyx_k_utils_big_endian_to_current[] = "utils_big_endian_to_current";
static const char __pyx_k_utils_relu_leaky_derivative[] = "utils_relu_leaky_derivative";
static const char __pyx_k_utils_relu_smooth_derivative[] = "utils_relu_smooth_derivative";
static const char __pyx_k_logger_enable_console_logging[] = "logger_enable_console_logging";
static const char __pyx_k_logger_disable_console_logging[] = "logger_disable_console_logging";
static const char __pyx_k_utils_little_endian_to_current[] = "utils_little_endian_to_current";
static const char __pyx_k_Pickling_of_struct_members_such[] = "Pickling of struct members such as self.c_vec2 must be explicitly requested with @auto_pickle(True)";
static const char __pyx_k_self_c_mesh_cannot_be_converted[] = "self.c_mesh cannot be converted to a Python object for pickling";
static const char __pyx_k_No_value_specified_for_struct_at[] = "No value specified for struct attribute 'x'";
static const char __pyx_k_The_number_of_indices_is_greater[] = "The number of indices is greater than the maximum number of indices";
static const char __pyx_k_no_default___reduce___due_to_non[] = "no default __reduce__ due to non-trivial __cinit__";
static const char __pyx_k_self_c_image_cannot_be_converted[] = "self.c_image cannot be converted to a Python object for pickling";
static const char __pyx_k_self_c_window_cannot_be_converte[] = "self.c_window cannot be converted to a Python object for pickling";
static const char __pyx_k_utils_get_random_with_probabilit[] = "utils_get_random_with_probability";
static const char __pyx_k_Pickling_of_struct_members_such_2[] = "Pickling of struct members such as self.c_vec3 must be explicitly requested with @auto_pickle(True)";
static const char __pyx_k_Pickling_of_struct_members_such_3[] = "Pickling of struct members such as self.c_vec4 must be explicitly requested with @auto_pickle(True)";
static const char __pyx_k_Pickling_of_struct_members_such_4[] = "Pickling of struct members such as self.c_ivec4 must be explicitly requested with @auto_pickle(True)";
static const char __pyx_k_Pickling_of_struct_members_such_5[] = "Pickling of struct members such as self.c_mat4 must be explicitly requested with @auto_pickle(True)";
static const char __pyx_k_Pickling_of_struct_members_such_6[] = "Pickling of struct members such as self.c_vertex must be explicitly requested with @auto_pickle(True)";
static const char __pyx_k_No_value_specified_for_struct_at_2[] = "No value specified for struct attribute 'y'";
static const char __pyx_k_No_value_specified_for_struct_at_3[] = "No value specified for struct attribute 'z'";
static const char __pyx_k_No_value_specified_for_struct_at_4[] = "No value specified for struct attribute 'w'";
static const char __pyx_k_No_value_specified_for_struct_at_5[] = "No value specified for struct attribute 'position'";
static const char __pyx_k_No_value_specified_for_struct_at_6[] = "No value specified for struct attribute 'normal'";
static const char __pyx_k_No_value_specified_for_struct_at_7[] = "No value specified for struct attribute 'texture_coordinates'";
static const char __pyx_k_No_value_specified_for_struct_at_8[] = "No value specified for struct attribute 'bone_wieghts'";
static const char __pyx_k_No_value_specified_for_struct_at_9[] = "No value specified for struct attribute 'bone_ids'";
static PyObject *__pyx_kp_s_;
static PyObject *__pyx_n_s_AttributeError;
static PyObject *__pyx_n_s_CGL_FALSE;
static PyObject *__pyx_n_s_CGL_TRUE;
static PyObject *__pyx_kp_s_CGL_Window;
static PyObject *__pyx_n_s_CONSOLE_COLOR_BLUE;
static PyObject *__pyx_n_s_CONSOLE_COLOR_GRAY;
static PyObject *__pyx_n_s_CONSOLE_COLOR_GREEN;
static PyObject *__pyx_n_s_CONSOLE_COLOR_RED;
static PyObject *__pyx_n_s_CONSOLE_COLOR_RESET;
static PyObject *__pyx_n_s_Callable;
static PyObject *__pyx_n_s_E;
static PyObject *__pyx_kp_s_Failed_to_create_window;
static PyObject *__pyx_n_s_Image;
static PyObject *__pyx_n_s_IndexError;
static PyObject *__pyx_n_s_KEY_0;
static PyObject *__pyx_n_s_KEY_1;
static PyObject *__pyx_n_s_KEY_2;
static PyObject *__pyx_n_s_KEY_3;
static PyObject *__pyx_n_s_KEY_4;
static PyObject *__pyx_n_s_KEY_5;
static PyObject *__pyx_n_s_KEY_6;
static PyObject *__pyx_n_s_KEY_7;
static PyObject *__pyx_n_s_KEY_8;
static PyObject *__pyx_n_s_KEY_9;
static PyObject *__pyx_n_s_KEY_A;
static PyObject *__pyx_n_s_KEY_APOSTROPHE;
static PyObject *__pyx_n_s_KEY_B;
static PyObject *__pyx_n_s_KEY_BACKSLASH;
static PyObject *__pyx_n_s_KEY_BACKSPACE;
static PyObject *__pyx_n_s_KEY_C;
static PyObject *__pyx_n_s_KEY_CAPS_LOCK;
static PyObject *__pyx_n_s_KEY_COMMA;
static PyObject *__pyx_n_s_KEY_D;
static PyObject *__pyx_n_s_KEY_DELETE;
static PyObject *__pyx_n_s_KEY_DOWN;
static PyObject *__pyx_n_s_KEY_E;
static PyObject *__pyx_n_s_KEY_END;
static PyObject *__pyx_n_s_KEY_ENTER;
static PyObject *__pyx_n_s_KEY_EQUAL;
static PyObject *__pyx_n_s_KEY_ESCAPE;
static PyObject *__pyx_n_s_KEY_F;
static PyObject *__pyx_n_s_KEY_F1;
static PyObject *__pyx_n_s_KEY_F10;
static PyObject *__pyx_n_s_KEY_F11;
static PyObject *__pyx_n_s_KEY_F12;
static PyObject *__pyx_n_s_KEY_F13;
static PyObject *__pyx_n_s_KEY_F14;
static PyObject *__pyx_n_s_KEY_F15;
static PyObject *__pyx_n_s_KEY_F16;
static PyObject *__pyx_n_s_KEY_F17;
static PyObject *__pyx_n_s_KEY_F18;
static PyObject *__pyx_n_s_KEY_F19;
static PyObject *__pyx_n_s_KEY_F2;
static PyObject *__pyx_n_s_KEY_F20;
static PyObject *__pyx_n_s_KEY_F21;
static PyObject *__pyx_n_s_KEY_F22;
static PyObject *__pyx_n_s_KEY_F23;
static PyObject *__pyx_n_s_KEY_F24;
static PyObject *__pyx_n_s_KEY_F25;
static PyObject *__pyx_n_s_KEY_F3;
static PyObject *__pyx_n_s_KEY_F4;
static PyObject *__pyx_n_s_KEY_F5;
static PyObject *__pyx_n_s_KEY_F6;
static PyObject *__pyx_n_s_KEY_F7;
static PyObject *__pyx_n_s_KEY_F8;
static PyObject *__pyx_n_s_KEY_F9;
static PyObject *__pyx_n_s_KEY_G;
static PyObject *__pyx_n_s_KEY_GRAVE_ACCENT;
static PyObject *__pyx_n_s_KEY_H;
static PyObject *__pyx_n_s_KEY_HOME;
static PyObject *__pyx_n_s_KEY_I;
static PyObject *__pyx_n_s_KEY_INSERT;
static PyObject *__pyx_n_s_KEY_J;
static PyObject *__pyx_n_s_KEY_K;
static PyObject *__pyx_n_s_KEY_KP_0;
static PyObject *__pyx_n_s_KEY_KP_1;
static PyObject *__pyx_n_s_KEY_KP_2;
static PyObject *__pyx_n_s_KEY_KP_3;
static PyObject *__pyx_n_s_KEY_KP_4;
static PyObject *__pyx_n_s_KEY_KP_5;
static PyObject *__pyx_n_s_KEY_KP_6;
static PyObject *__pyx_n_s_KEY_KP_7;
static PyObject *__pyx_n_s_KEY_KP_8;
static PyObject *__pyx_n_s_KEY_KP_9;
static PyObject *__pyx_n_s_KEY_KP_ADD;
static PyObject *__pyx_n_s_KEY_KP_DECIMAL;
static PyObject *__pyx_n_s_KEY_KP_DIVIDE;
static PyObject *__pyx_n_s_KEY_KP_ENTER;
static PyObject *__pyx_n_s_KEY_KP_EQUAL;
static PyObject *__pyx_n_s_KEY_KP_MULTIPLY;
static PyObject *__pyx_n_s_KEY_KP_SUBTRACT;
static PyObject *__pyx_n_s_KEY_L;
static PyObject *__pyx_n_s_KEY_LEFT;
static PyObject *__pyx_n_s_KEY_LEFT_ALT;
static PyObject *__pyx_n_s_KEY_LEFT_BRACKET;
static PyObject *__pyx_n_s_KEY_LEFT_CONTROL;
static PyObject *__pyx_n_s_KEY_LEFT_SHIFT;
static PyObject *__pyx_n_s_KEY_LEFT_SUPER;
static PyObject *__pyx_n_s_KEY_M;
static PyObject *__pyx_n_s_KEY_MENU;
static PyObject *__pyx_n_s_KEY_MINUS;
static PyObject *__pyx_n_s_KEY_N;
static PyObject *__pyx_n_s_KEY_NUM_LOCK;
static PyObject *__pyx_n_s_KEY_O;
static PyObject *__pyx_n_s_KEY_P;
static PyObject *__pyx_n_s_KEY_PAGE_DOWN;
static PyObject *__pyx_n_s_KEY_PAGE_UP;
static PyObject *__pyx_n_s_KEY_PAUSE;
static PyObject *__pyx_n_s_KEY_PERIOD;
static PyObject *__pyx_n_s_KEY_PRINT_SCREEN;
static PyObject *__pyx_n_s_KEY_Q;
static PyObject *__pyx_n_s_KEY_R;
static PyObject *__pyx_n_s_KEY_RIGHT;
static PyObject *__pyx_n_s_KEY_RIGHT_ALT;
static PyObject *__pyx_n_s_KEY_RIGHT_BRACKET;
static PyObject *__pyx_n_s_KEY_RIGHT_CONTROL;
static PyObject *__pyx_n_s_KEY_RIGHT_SHIFT;
static PyObject *__pyx_n_s_KEY_RIGHT_SUPER;
static PyObject *__pyx_n_s_KEY_S;
static PyObject *__pyx_n_s_KEY_SCROLL_LOCK;
static PyObject *__pyx_n_s_KEY_SEMICOLON;
static PyObject *__pyx_n_s_KEY_SLASH;
static PyObject *__pyx_n_s_KEY_SPACE;
static PyObject *__pyx_n_s_KEY_T;
static PyObject *__pyx_n_s_KEY_TAB;
static PyObject *__pyx_n_s_KEY_U;
static PyObject *__pyx_n_s_KEY_UNKNOWN;
static PyObject *__pyx_n_s_KEY_UP;
static PyObject *__pyx_n_s_KEY_V;
static PyObject *__pyx_n_s_KEY_W;
static PyObject *__pyx_n_s_KEY_WORLD_1;
static PyObject *__pyx_n_s_KEY_WORLD_2;
static PyObject *__pyx_n_s_KEY_X;
static PyObject *__pyx_n_s_KEY_Y;
static PyObject *__pyx_n_s_KEY_Z;
static PyObject *__pyx_n_s_KeyError;
static PyObject *__pyx_n_s_LOGGER_LOG_BUFFER_SIZE;
static PyObject *__pyx_n_s_LOGGER_MAX_LOG_FILES;
static PyObject *__pyx_n_s_LOG_LEVEL_ERROR;
static PyObject *__pyx_n_s_LOG_LEVEL_INFO;
static PyObject *__pyx_n_s_LOG_LEVEL_INTERNAL;
static PyObject *__pyx_n_s_LOG_LEVEL_TRACE;
static PyObject *__pyx_n_s_LOG_LEVEL_WARN;
static PyObject *__pyx_n_s_MOUSE_BUTTON_1;
static PyObject *__pyx_n_s_MOUSE_BUTTON_2;
static PyObject *__pyx_n_s_MOUSE_BUTTON_3;
static PyObject *__pyx_n_s_MOUSE_BUTTON_4;
static PyObject *__pyx_n_s_MOUSE_BUTTON_5;
static PyObject *__pyx_n_s_MOUSE_BUTTON_6;
static PyObject *__pyx_n_s_MOUSE_BUTTON_7;
static PyObject *__pyx_n_s_MOUSE_BUTTON_8;
static PyObject *__pyx_n_s_MOUSE_BUTTON_LAST;
static PyObject *__pyx_n_s_MOUSE_BUTTON_LEFT;
static PyObject *__pyx_n_s_MOUSE_BUTTON_MIDDLE;
static PyObject *__pyx_n_s_MOUSE_BUTTON_RIGHT;
static PyObject *__pyx_n_s_MemoryError;
static PyObject *__pyx_kp_s_No_value_specified_for_struct_at;
static PyObject *__pyx_kp_s_No_value_specified_for_struct_at_2;
static PyObject *__pyx_kp_s_No_value_specified_for_struct_at_3;
static PyObject *__pyx_kp_s_No_value_specified_for_struct_at_4;
static PyObject *__pyx_kp_s_No_value_specified_for_struct_at_5;
static PyObject *__pyx_kp_s_No_value_specified_for_struct_at_6;
static PyObject *__pyx_kp_s_No_value_specified_for_struct_at_7;
static PyObject *__pyx_kp_s_No_value_specified_for_struct_at_8;
static PyObject *__pyx_kp_s_No_value_specified_for_struct_at_9;
static PyObject *__pyx_n_s_PI;
static PyObject *__pyx_n_s_PIL_Image;
static PyObject *__pyx_n_s_PI_2;
static PyObject *__pyx_n_s_PRESS;
static PyObject *__pyx_kp_s_Pickling_of_struct_members_such;
static PyObject *__pyx_kp_s_Pickling_of_struct_members_such_2;
static PyObject *__pyx_kp_s_Pickling_of_struct_members_such_3;
static PyObject *__pyx_kp_s_Pickling_of_struct_members_such_4;
static PyObject *__pyx_kp_s_Pickling_of_struct_members_such_5;
static PyObject *__pyx_kp_s_Pickling_of_struct_members_such_6;
static PyObject *__pyx_n_s_RELEASE;
static PyObject *__pyx_n_s_REPEAT;
static PyObject *__pyx_n_s_RuntimeError;
static PyObject *__pyx_n_s_SQRT2;
static PyObject *__pyx_n_s_SQRT3;
static PyObject *__pyx_n_s_SQRT5;
static PyObject *__pyx_n_s_SQRT6;
static PyObject *__pyx_n_s_SQRT7;
static PyObject *__pyx_n_s_SQRT8;
static PyObject *__pyx_n_s_TWO_PI;
static PyObject *__pyx_kp_s_The_number_of_indices_is_greater;
static PyObject *__pyx_n_s_TypeError;
static PyObject *__pyx_n_s_ValueError;
static PyObject *__pyx_n_s_WINDOW_TABLE;
static PyObject *__pyx_kp_s__13;
static PyObject *__pyx_kp_s__14;
static PyObject *__pyx_n_s__2;
static PyObject *__pyx_kp_u__3;
static PyObject *__pyx_kp_s__4;
static PyObject *__pyx_kp_u__4;
static PyObject *__pyx_n_s_a;
static PyObject *__pyx_n_s_angle;
static PyObject *__pyx_n_s_aspect;
static PyObject *__pyx_n_s_axis;
static PyObject *__pyx_n_s_b;
static PyObject *__pyx_n_s_bone_ids;
static PyObject *__pyx_n_s_bone_wieghts;
static PyObject *__pyx_n_s_bottom;
static PyObject *__pyx_n_s_buffer;
static PyObject *__pyx_n_s_c;
static PyObject *__pyx_n_s_c_mesh;
static PyObject *__pyx_n_s_c_probabilities;
static PyObject *__pyx_n_s_c_vertex;
static PyObject *__pyx_n_s_cgl;
static PyObject *__pyx_kp_s_cgl_wrapper_pyx;
static PyObject *__pyx_n_s_channels;
static PyObject *__pyx_n_s_cline_in_traceback;
static PyObject *__pyx_n_s_close_callback;
static PyObject *__pyx_n_s_color;
static PyObject *__pyx_n_s_complete_char;
static PyObject *__pyx_n_s_console_progress_bar;
static PyObject *__pyx_n_s_console_set_color;
static PyObject *__pyx_n_s_copy;
static PyObject *__pyx_n_s_d;
static PyObject *__pyx_n_s_data;
static PyObject *__pyx_n_s_decorated;
static PyObject *__pyx_n_s_deepcopy;
static PyObject *__pyx_n_s_deg;
static PyObject *__pyx_n_s_deg_to_rad;
static PyObject *__pyx_n_s_destroy;
static PyObject *__pyx_n_s_drag_n_drop_callback;
static PyObject *__pyx_n_s_enable_console_logging;
static PyObject *__pyx_n_s_encode;
static PyObject *__pyx_n_s_eye;
static PyObject *__pyx_n_s_far;
static PyObject *__pyx_n_s_float_cubic_lerp;
static PyObject *__pyx_n_s_float_lerp;
static PyObject *__pyx_n_s_float_quadratic_lerp;
static PyObject *__pyx_n_s_format;
static PyObject *__pyx_n_s_fov;
static PyObject *__pyx_n_s_framebuffer_size_callback;
static PyObject *__pyx_n_s_free;
static PyObject *__pyx_n_s_get_id;
static PyObject *__pyx_n_s_get_position;
static PyObject *__pyx_n_s_get_size;
static PyObject *__pyx_n_s_getstate;
static PyObject *__pyx_n_s_height;
static PyObject *__pyx_n_s_i;
static PyObject *__pyx_kp_u_image;
static PyObject *__pyx_n_s_image_2;
static PyObject *__pyx_n_s_import;
static PyObject *__pyx_n_s_incomplete_char;
static PyObject *__pyx_n_s_index_count;
static PyObject *__pyx_n_s_index_count_used;
static PyObject *__pyx_n_s_init;
static PyObject *__pyx_kp_u_ivec4;
static PyObject *__pyx_n_s_ivec4_2;
static PyObject *__pyx_n_s_key_callback;
static PyObject *__pyx_n_s_l;
static PyObject *__pyx_n_s_l_obj;
static PyObject *__pyx_n_s_left;
static PyObject *__pyx_n_s_length;
static PyObject *__pyx_n_s_length_squared;
static PyObject *__pyx_n_s_level;
static PyObject *__pyx_n_s_log_error;
static PyObject *__pyx_n_s_log_format;
static PyObject *__pyx_n_s_log_info;
static PyObject *__pyx_n_s_log_internal;
static PyObject *__pyx_n_s_log_trace;
static PyObject *__pyx_n_s_log_warn;
static PyObject *__pyx_n_s_logger_attach_log_file;
static PyObject *__pyx_n_s_logger_detach_log_file;
static PyObject *__pyx_n_s_logger_disable_console_logging;
static PyObject *__pyx_n_s_logger_enable_console_logging;
static PyObject *__pyx_n_s_logger_flush;
static PyObject *__pyx_n_s_logger_init;
static PyObject *__pyx_n_s_logger_log;
static PyObject *__pyx_n_s_logger_shutdown;
static PyObject *__pyx_n_s_m;
static PyObject *__pyx_n_s_main;
static PyObject *__pyx_n_s_mat4;
static PyObject *__pyx_n_s_mat4_adjoint;
static PyObject *__pyx_n_s_mat4_decompose_lu;
static PyObject *__pyx_n_s_mat4_det;
static PyObject *__pyx_n_s_mat4_det_by_gauss;
static PyObject *__pyx_n_s_mat4_det_by_lu;
static PyObject *__pyx_n_s_mat4_gauss_elim;
static PyObject *__pyx_n_s_mat4_identity;
static PyObject *__pyx_n_s_mat4_inverse;
static PyObject *__pyx_n_s_mat4_lerp;
static PyObject *__pyx_n_s_mat4_look_at;
static PyObject *__pyx_n_s_mat4_mul;
static PyObject *__pyx_n_s_mat4_mul_vec4;
static PyObject *__pyx_n_s_mat4_orthographic;
static PyObject *__pyx_n_s_mat4_perspective;
static PyObject *__pyx_n_s_mat4_rank;
static PyObject *__pyx_n_s_mat4_rotate_about_axis;
static PyObject *__pyx_n_s_mat4_rotate_x;
static PyObject *__pyx_n_s_mat4_rotate_y;
static PyObject *__pyx_n_s_mat4_rotate_z;
static PyObject *__pyx_n_s_mat4_scale;
static PyObject *__pyx_n_s_mat4_trace;
static PyObject *__pyx_n_s_mat4_translate;
static PyObject *__pyx_n_s_mat4_transpose;
static PyObject *__pyx_n_s_mat4_zero;
static PyObject *__pyx_kp_s_mat4x4;
static PyObject *__pyx_kp_u_mesh_cpu;
static PyObject *__pyx_n_s_mesh_cpu_2;
static PyObject *__pyx_kp_u_mesh_vertex;
static PyObject *__pyx_n_s_mesh_vertex_2;
static PyObject *__pyx_n_s_milliseconds;
static PyObject *__pyx_n_s_mouse_button_callback;
static PyObject *__pyx_n_s_mouse_position_callback;
static PyObject *__pyx_n_s_mouse_scroll_callback;
static PyObject *__pyx_n_s_n;
static PyObject *__pyx_n_s_name;
static PyObject *__pyx_n_s_near;
static PyObject *__pyx_kp_s_no_default___reduce___due_to_non;
static PyObject *__pyx_n_s_normal;
static PyObject *__pyx_n_s_obj;
static PyObject *__pyx_n_s_open;
static PyObject *__pyx_n_s_path;
static PyObject *__pyx_n_s_pop;
static PyObject *__pyx_n_s_position;
static PyObject *__pyx_n_s_prefix;
static PyObject *__pyx_n_s_printf_blue;
static PyObject *__pyx_n_s_printf_gray;
static PyObject *__pyx_n_s_printf_green;
static PyObject *__pyx_n_s_printf_red;
static PyObject *__pyx_n_s_probabilities;
static PyObject *__pyx_n_s_progress;
static PyObject *__pyx_n_s_ptr;
static PyObject *__pyx_n_s_pyx_vtable;
static PyObject *__pyx_n_s_rad;
static PyObject *__pyx_n_s_rad_to_deg;
static PyObject *__pyx_n_s_range;
static PyObject *__pyx_n_s_reduce;
static PyObject *__pyx_n_s_reduce_cython;
static PyObject *__pyx_n_s_reduce_ex;
static PyObject *__pyx_n_s_result;
static PyObject *__pyx_n_s_right;
static PyObject *__pyx_n_s_rotation;
static PyObject *__pyx_kp_u_rotation_2;
static PyObject *__pyx_n_s_scale;
static PyObject *__pyx_kp_u_scale_2;
static PyObject *__pyx_n_s_seed;
static PyObject *__pyx_kp_s_self_c_image_cannot_be_converted;
static PyObject *__pyx_kp_s_self_c_mesh_cannot_be_converted;
static PyObject *__pyx_kp_s_self_c_window_cannot_be_converte;
static PyObject *__pyx_n_s_setstate;
static PyObject *__pyx_n_s_setstate_cython;
static PyObject *__pyx_n_s_shutdown;
static PyObject *__pyx_n_s_size;
static PyObject *__pyx_n_s_suffix;
static PyObject *__pyx_n_s_t;
static PyObject *__pyx_n_s_target;
static PyObject *__pyx_n_s_test;
static PyObject *__pyx_n_s_texture_coordinates;
static PyObject *__pyx_n_s_theta;
static PyObject *__pyx_n_s_title;
static PyObject *__pyx_n_s_tobytes;
static PyObject *__pyx_n_s_top;
static PyObject *__pyx_n_s_transform;
static PyObject *__pyx_kp_u_transform_position;
static PyObject *__pyx_n_s_typing;
static PyObject *__pyx_n_s_u;
static PyObject *__pyx_n_s_u_obj;
static PyObject *__pyx_n_s_up;
static PyObject *__pyx_kp_s_utf_8;
static PyObject *__pyx_n_s_utils_append_file;
static PyObject *__pyx_n_s_utils_big_endian_to_current;
static PyObject *__pyx_n_s_utils_crc32;
static PyObject *__pyx_n_s_utils_crc64;
static PyObject *__pyx_n_s_utils_fast_rand;
static PyObject *__pyx_n_s_utils_fast_srand;
static PyObject *__pyx_n_s_utils_get_file_size;
static PyObject *__pyx_n_s_utils_get_random_with_probabilit;
static PyObject *__pyx_n_s_utils_get_time;
static PyObject *__pyx_n_s_utils_get_timestamp;
static PyObject *__pyx_n_s_utils_is_big_endian;
static PyObject *__pyx_n_s_utils_is_little_endian;
static PyObject *__pyx_n_s_utils_little_endian_to_current;
static PyObject *__pyx_n_s_utils_rand31;
static PyObject *__pyx_n_s_utils_read_file;
static PyObject *__pyx_n_s_utils_relu;
static PyObject *__pyx_n_s_utils_relu_derivative;
static PyObject *__pyx_n_s_utils_relu_leaky;
static PyObject *__pyx_n_s_utils_relu_leaky_derivative;
static PyObject *__pyx_n_s_utils_relu_smooth;
static PyObject *__pyx_n_s_utils_relu_smooth_derivative;
static PyObject *__pyx_n_s_utils_reverse_bytes;
static PyObject *__pyx_n_s_utils_rot13;
static PyObject *__pyx_n_s_utils_sigmoid;
static PyObject *__pyx_n_s_utils_sigmoid_derivative;
static PyObject *__pyx_n_s_utils_sleep;
static PyObject *__pyx_n_s_utils_srand31;
static PyObject *__pyx_n_s_utils_step;
static PyObject *__pyx_n_s_utils_step_derivative;
static PyObject *__pyx_n_s_utils_super_fast_hash;
static PyObject *__pyx_n_s_utils_tanh;
static PyObject *__pyx_n_s_utils_tanh_derivative;
static PyObject *__pyx_n_s_utils_write_file;
static PyObject *__pyx_n_s_utils_xorshf96;
static PyObject *__pyx_n_s_v;
static PyObject *__pyx_kp_u_vec2;
static PyObject *__pyx_n_s_vec2_2;
static PyObject *__pyx_n_s_vec2_triple_product;
static PyObject *__pyx_kp_u_vec3;
static PyObject *__pyx_n_s_vec3_2;
static PyObject *__pyx_n_s_vec3_reflect;
static PyObject *__pyx_n_s_vec3_rotate_about_axis;
static PyObject *__pyx_n_s_vec3_triple_product;
static PyObject *__pyx_kp_u_vec4;
static PyObject *__pyx_n_s_vec4_2;
static PyObject *__pyx_n_s_vec4_triple_product;
static PyObject *__pyx_n_s_vertex_count;
static PyObject *__pyx_n_s_vertex_count_used;
static PyObject *__pyx_n_s_w;
static PyObject *__pyx_n_s_width;
static PyObject *__pyx_kp_u_window;
static PyObject *__pyx_n_s_window_2;
static PyObject *__pyx_n_s_x;
static PyObject *__pyx_n_s_y;
static PyObject *__pyx_n_s_z;
static PyObject *__pyx_pf_3cgl_free(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_ptr); /* proto */
static PyObject *__pyx_pf_3cgl_2init(CYTHON_UNUSED PyObject *__pyx_self); /* proto */
static PyObject *__pyx_pf_3cgl_4shutdown(CYTHON_UNUSED PyObject *__pyx_self); /* proto */
static PyObject *__pyx_pf_3cgl_6utils_sleep(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_milliseconds); /* proto */
static PyObject *__pyx_pf_3cgl_8utils_read_file(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_path); /* proto */
static PyObject *__pyx_pf_3cgl_10utils_get_file_size(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_path); /* proto */
static PyObject *__pyx_pf_3cgl_12utils_append_file(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_path, PyObject *__pyx_v_data); /* proto */
static PyObject *__pyx_pf_3cgl_14utils_write_file(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_path, PyObject *__pyx_v_data); /* proto */
static PyObject *__pyx_pf_3cgl_16utils_get_time(CYTHON_UNUSED PyObject *__pyx_self); /* proto */
static PyObject *__pyx_pf_3cgl_18utils_get_timestamp(CYTHON_UNUSED PyObject *__pyx_self); /* proto */
static PyObject *__pyx_pf_3cgl_20utils_is_little_endian(CYTHON_UNUSED PyObject *__pyx_self); /* proto */
static PyObject *__pyx_pf_3cgl_22utils_is_big_endian(CYTHON_UNUSED PyObject *__pyx_self); /* proto */
static PyObject *__pyx_pf_3cgl_24utils_get_random_with_probability(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_probabilities); /* proto */
static PyObject *__pyx_pf_3cgl_26utils_reverse_bytes(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_data); /* proto */
static PyObject *__pyx_pf_3cgl_28utils_little_endian_to_current(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_data); /* proto */
static PyObject *__pyx_pf_3cgl_30utils_big_endian_to_current(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_data); /* proto */
static PyObject *__pyx_pf_3cgl_32utils_fast_srand(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_seed); /* proto */
static PyObject *__pyx_pf_3cgl_34utils_fast_rand(CYTHON_UNUSED PyObject *__pyx_self); /* proto */
static PyObject *__pyx_pf_3cgl_36utils_xorshf96(CYTHON_UNUSED PyObject *__pyx_self); /* proto */
static PyObject *__pyx_pf_3cgl_38utils_srand31(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_seed); /* proto */
static PyObject *__pyx_pf_3cgl_40utils_rand31(CYTHON_UNUSED PyObject *__pyx_self); /* proto */
static PyObject *__pyx_pf_3cgl_42utils_sigmoid(CYTHON_UNUSED PyObject *__pyx_self, double __pyx_v_x); /* proto */
static PyObject *__pyx_pf_3cgl_44utils_sigmoid_derivative(CYTHON_UNUSED PyObject *__pyx_self, double __pyx_v_x); /* proto */
static PyObject *__pyx_pf_3cgl_46utils_relu(CYTHON_UNUSED PyObject *__pyx_self, double __pyx_v_x); /* proto */
static PyObject *__pyx_pf_3cgl_48utils_relu_derivative(CYTHON_UNUSED PyObject *__pyx_self, double __pyx_v_x); /* proto */
static PyObject *__pyx_pf_3cgl_50utils_tanh(CYTHON_UNUSED PyObject *__pyx_self, double __pyx_v_x); /* proto */
static PyObject *__pyx_pf_3cgl_52utils_tanh_derivative(CYTHON_UNUSED PyObject *__pyx_self, double __pyx_v_x); /* proto */
static PyObject *__pyx_pf_3cgl_54utils_step(CYTHON_UNUSED PyObject *__pyx_self, double __pyx_v_x); /* proto */
static PyObject *__pyx_pf_3cgl_56utils_step_derivative(CYTHON_UNUSED PyObject *__pyx_self, double __pyx_v_x); /* proto */
static PyObject *__pyx_pf_3cgl_58utils_relu_leaky(CYTHON_UNUSED PyObject *__pyx_self, double __pyx_v_x); /* proto */
static PyObject *__pyx_pf_3cgl_60utils_relu_leaky_derivative(CYTHON_UNUSED PyObject *__pyx_self, double __pyx_v_x); /* proto */
static PyObject *__pyx_pf_3cgl_62utils_relu_smooth(CYTHON_UNUSED PyObject *__pyx_self, double __pyx_v_x); /* proto */
static PyObject *__pyx_pf_3cgl_64utils_relu_smooth_derivative(CYTHON_UNUSED PyObject *__pyx_self, double __pyx_v_x); /* proto */
static PyObject *__pyx_pf_3cgl_66console_set_color(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_color); /* proto */
static PyObject *__pyx_pf_3cgl_68printf_red(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_format); /* proto */
static PyObject *__pyx_pf_3cgl_70printf_green(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_format); /* proto */
static PyObject *__pyx_pf_3cgl_72printf_gray(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_format); /* proto */
static PyObject *__pyx_pf_3cgl_74printf_blue(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_format); /* proto */
static PyObject *__pyx_pf_3cgl_76console_progress_bar(CYTHON_UNUSED PyObject *__pyx_self, double __pyx_v_progress, PyObject *__pyx_v_width, PyObject *__pyx_v_prefix, PyObject *__pyx_v_suffix, PyObject *__pyx_v_complete_char, PyObject *__pyx_v_incomplete_char); /* proto */
static PyObject *__pyx_pf_3cgl_78logger_init(CYTHON_UNUSED PyObject *__pyx_self, bool __pyx_v_enable_console_logging); /* proto */
static PyObject *__pyx_pf_3cgl_80logger_shutdown(CYTHON_UNUSED PyObject *__pyx_self); /* proto */
static PyObject *__pyx_pf_3cgl_82logger_attach_log_file(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_path); /* proto */
static PyObject *__pyx_pf_3cgl_84logger_detach_log_file(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_path); /* proto */
static PyObject *__pyx_pf_3cgl_86logger_flush(CYTHON_UNUSED PyObject *__pyx_self); /* proto */
static PyObject *__pyx_pf_3cgl_88logger_disable_console_logging(CYTHON_UNUSED PyObject *__pyx_self); /* proto */
static PyObject *__pyx_pf_3cgl_90logger_enable_console_logging(CYTHON_UNUSED PyObject *__pyx_self); /* proto */
static PyObject *__pyx_pf_3cgl_92logger_log(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_level, PyObject *__pyx_v_log_format); /* proto */
static PyObject *__pyx_pf_3cgl_94log_trace(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_log_format); /* proto */
static PyObject *__pyx_pf_3cgl_96log_info(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_log_format); /* proto */
static PyObject *__pyx_pf_3cgl_98log_warn(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_log_format); /* proto */
static PyObject *__pyx_pf_3cgl_100log_error(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_log_format); /* proto */
static PyObject *__pyx_pf_3cgl_102log_internal(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_log_format); /* proto */
static PyObject *__pyx_pf_3cgl_104utils_crc32(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_data); /* proto */
static PyObject *__pyx_pf_3cgl_106utils_crc64(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_data); /* proto */
static PyObject *__pyx_pf_3cgl_108utils_rot13(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_data); /* proto */
static PyObject *__pyx_pf_3cgl_110utils_super_fast_hash(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_data); /* proto */
static PyObject *__pyx_pf_3cgl_112deg_to_rad(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_deg); /* proto */
static PyObject *__pyx_pf_3cgl_114rad_to_deg(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_rad); /* proto */
static PyObject *__pyx_pf_3cgl_116float_lerp(CYTHON_UNUSED PyObject *__pyx_self, double __pyx_v_a, double __pyx_v_b, double __pyx_v_t); /* proto */
static PyObject *__pyx_pf_3cgl_118float_quadratic_lerp(CYTHON_UNUSED PyObject *__pyx_self, double __pyx_v_a, double __pyx_v_b, double __pyx_v_c, double __pyx_v_t); /* proto */
static PyObject *__pyx_pf_3cgl_120float_cubic_lerp(CYTHON_UNUSED PyObject *__pyx_self, double __pyx_v_a, double __pyx_v_b, double __pyx_v_c, double __pyx_v_d, double __pyx_v_t); /* proto */
static int __pyx_pf_3cgl_4vec2___init__(struct __pyx_obj_3cgl_vec2 *__pyx_v_self, double __pyx_v_x, double __pyx_v_y); /* proto */
static PyObject *__pyx_pf_3cgl_4vec2_2__repr__(struct __pyx_obj_3cgl_vec2 *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_3cgl_4vec2_4__str__(struct __pyx_obj_3cgl_vec2 *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_3cgl_4vec2_6__bytes__(struct __pyx_obj_3cgl_vec2 *__pyx_v_self); /* proto */
static Py_ssize_t __pyx_pf_3cgl_4vec2_8__len__(CYTHON_UNUSED struct __pyx_obj_3cgl_vec2 *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_3cgl_4vec2_10__getitem__(struct __pyx_obj_3cgl_vec2 *__pyx_v_self, PyObject *__pyx_v_index); /* proto */
static int __pyx_pf_3cgl_4vec2_12__setitem__(struct __pyx_obj_3cgl_vec2 *__pyx_v_self, PyObject *__pyx_v_index, PyObject *__pyx_v_value); /* proto */
static PyObject *__pyx_pf_3cgl_4vec2_14__eq__(struct __pyx_obj_3cgl_vec2 *__pyx_v_self, struct __pyx_obj_3cgl_vec2 *__pyx_v_other); /* proto */
static PyObject *__pyx_pf_3cgl_4vec2_16__ne__(struct __pyx_obj_3cgl_vec2 *__pyx_v_self, struct __pyx_obj_3cgl_vec2 *__pyx_v_other); /* proto */
static Py_hash_t __pyx_pf_3cgl_4vec2_18__hash__(struct __pyx_obj_3cgl_vec2 *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_3cgl_4vec2_20__getattr__(struct __pyx_obj_3cgl_vec2 *__pyx_v_self, PyObject *__pyx_v_name); /* proto */
static int __pyx_pf_3cgl_4vec2_22__setattr__(struct __pyx_obj_3cgl_vec2 *__pyx_v_self, PyObject *__pyx_v_name, PyObject *__pyx_v_value); /* proto */
static PyObject *__pyx_pf_3cgl_4vec2_24__add__(PyObject *__pyx_v_self, struct __pyx_obj_3cgl_vec2 *__pyx_v_other); /* proto */
static PyObject *__pyx_pf_3cgl_4vec2_26__sub__(PyObject *__pyx_v_self, struct __pyx_obj_3cgl_vec2 *__pyx_v_other); /* proto */
static PyObject *__pyx_pf_3cgl_4vec2_28__mul__(PyObject *__pyx_v_self, struct __pyx_obj_3cgl_vec2 *__pyx_v_other); /* proto */
static PyObject *__pyx_pf_3cgl_4vec2_30__truediv__(PyObject *__pyx_v_self, struct __pyx_obj_3cgl_vec2 *__pyx_v_other); /* proto */
static PyObject *__pyx_pf_3cgl_4vec2_32__floordiv__(PyObject *__pyx_v_self, struct __pyx_obj_3cgl_vec2 *__pyx_v_other); /* proto */
static PyObject *__pyx_pf_3cgl_4vec2_34dot(struct __pyx_obj_3cgl_vec2 *__pyx_v_self, struct __pyx_obj_3cgl_vec2 *__pyx_v_other); /* proto */
static PyObject *__pyx_pf_3cgl_4vec2_36cross(struct __pyx_obj_3cgl_vec2 *__pyx_v_self, struct __pyx_obj_3cgl_vec2 *__pyx_v_other); /* proto */
static PyObject *__pyx_pf_3cgl_4vec2_38length(struct __pyx_obj_3cgl_vec2 *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_3cgl_4vec2_40length_squared(struct __pyx_obj_3cgl_vec2 *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_3cgl_4vec2_42normalized(struct __pyx_obj_3cgl_vec2 *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_3cgl_4vec2_44__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_3cgl_vec2 *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_3cgl_4vec2_46__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_3cgl_vec2 *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state); /* proto */
static struct __pyx_obj_3cgl_vec2 *__pyx_pf_3cgl_122vec2_triple_product(CYTHON_UNUSED PyObject *__pyx_self, struct __pyx_obj_3cgl_vec2 *__pyx_v_a, struct __pyx_obj_3cgl_vec2 *__pyx_v_b, struct __pyx_obj_3cgl_vec2 *__pyx_v_c); /* proto */
static int __pyx_pf_3cgl_4vec3___init__(struct __pyx_obj_3cgl_vec3 *__pyx_v_self, double __pyx_v_x, double __pyx_v_y, double __pyx_v_z); /* proto */
static PyObject *__pyx_pf_3cgl_4vec3_2__repr__(struct __pyx_obj_3cgl_vec3 *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_3cgl_4vec3_4__str__(struct __pyx_obj_3cgl_vec3 *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_3cgl_4vec3_6__bytes__(struct __pyx_obj_3cgl_vec3 *__pyx_v_self); /* proto */
static Py_ssize_t __pyx_pf_3cgl_4vec3_8__len__(CYTHON_UNUSED struct __pyx_obj_3cgl_vec3 *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_3cgl_4vec3_10__getitem__(struct __pyx_obj_3cgl_vec3 *__pyx_v_self, PyObject *__pyx_v_index); /* proto */
static int __pyx_pf_3cgl_4vec3_12__setitem__(struct __pyx_obj_3cgl_vec3 *__pyx_v_self, PyObject *__pyx_v_index, PyObject *__pyx_v_value); /* proto */
static PyObject *__pyx_pf_3cgl_4vec3_14__eq__(struct __pyx_obj_3cgl_vec3 *__pyx_v_self, struct __pyx_obj_3cgl_vec3 *__pyx_v_other); /* proto */
static PyObject *__pyx_pf_3cgl_4vec3_16__ne__(struct __pyx_obj_3cgl_vec3 *__pyx_v_self, struct __pyx_obj_3cgl_vec3 *__pyx_v_other); /* proto */
static Py_hash_t __pyx_pf_3cgl_4vec3_18__hash__(struct __pyx_obj_3cgl_vec3 *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_3cgl_4vec3_20__getattr__(struct __pyx_obj_3cgl_vec3 *__pyx_v_self, PyObject *__pyx_v_name); /* proto */
static int __pyx_pf_3cgl_4vec3_22__setattr__(struct __pyx_obj_3cgl_vec3 *__pyx_v_self, PyObject *__pyx_v_name, PyObject *__pyx_v_value); /* proto */
static PyObject *__pyx_pf_3cgl_4vec3_24__add__(PyObject *__pyx_v_self, struct __pyx_obj_3cgl_vec3 *__pyx_v_other); /* proto */
static PyObject *__pyx_pf_3cgl_4vec3_26__sub__(PyObject *__pyx_v_self, struct __pyx_obj_3cgl_vec3 *__pyx_v_other); /* proto */
static PyObject *__pyx_pf_3cgl_4vec3_28__mul__(PyObject *__pyx_v_self, struct __pyx_obj_3cgl_vec3 *__pyx_v_other); /* proto */
static PyObject *__pyx_pf_3cgl_4vec3_30__truediv__(PyObject *__pyx_v_self, struct __pyx_obj_3cgl_vec3 *__pyx_v_other); /* proto */
static PyObject *__pyx_pf_3cgl_4vec3_32__floordiv__(PyObject *__pyx_v_self, struct __pyx_obj_3cgl_vec3 *__pyx_v_other); /* proto */
static PyObject *__pyx_pf_3cgl_4vec3_34dot(struct __pyx_obj_3cgl_vec3 *__pyx_v_self, struct __pyx_obj_3cgl_vec3 *__pyx_v_other); /* proto */
static PyObject *__pyx_pf_3cgl_4vec3_36cross(struct __pyx_obj_3cgl_vec3 *__pyx_v_self, struct __pyx_obj_3cgl_vec3 *__pyx_v_other); /* proto */
static PyObject *__pyx_pf_3cgl_4vec3_38length(struct __pyx_obj_3cgl_vec3 *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_3cgl_4vec3_40length_squared(struct __pyx_obj_3cgl_vec3 *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_3cgl_4vec3_42normalized(struct __pyx_obj_3cgl_vec3 *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_3cgl_4vec3_44__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_3cgl_vec3 *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_3cgl_4vec3_46__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_3cgl_vec3 *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state); /* proto */
static struct __pyx_obj_3cgl_vec3 *__pyx_pf_3cgl_124vec3_reflect(CYTHON_UNUSED PyObject *__pyx_self, struct __pyx_obj_3cgl_vec3 *__pyx_v_a, struct __pyx_obj_3cgl_vec3 *__pyx_v_n); /* proto */
static struct __pyx_obj_3cgl_vec3 *__pyx_pf_3cgl_126vec3_rotate_about_axis(CYTHON_UNUSED PyObject *__pyx_self, struct __pyx_obj_3cgl_vec3 *__pyx_v_v, struct __pyx_obj_3cgl_vec3 *__pyx_v_axis, double __pyx_v_theta); /* proto */
static struct __pyx_obj_3cgl_vec3 *__pyx_pf_3cgl_128vec3_triple_product(CYTHON_UNUSED PyObject *__pyx_self, struct __pyx_obj_3cgl_vec3 *__pyx_v_a, struct __pyx_obj_3cgl_vec3 *__pyx_v_b, struct __pyx_obj_3cgl_vec3 *__pyx_v_c); /* proto */
static int __pyx_pf_3cgl_4vec4___init__(struct __pyx_obj_3cgl_vec4 *__pyx_v_self, double __pyx_v_x, double __pyx_v_y, double __pyx_v_z, double __pyx_v_w); /* proto */
static PyObject *__pyx_pf_3cgl_4vec4_2__repr__(struct __pyx_obj_3cgl_vec4 *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_3cgl_4vec4_4__str__(struct __pyx_obj_3cgl_vec4 *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_3cgl_4vec4_6__bytes__(struct __pyx_obj_3cgl_vec4 *__pyx_v_self); /* proto */
static Py_ssize_t __pyx_pf_3cgl_4vec4_8__len__(CYTHON_UNUSED struct __pyx_obj_3cgl_vec4 *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_3cgl_4vec4_10__getitem__(struct __pyx_obj_3cgl_vec4 *__pyx_v_self, PyObject *__pyx_v_index); /* proto */
static int __pyx_pf_3cgl_4vec4_12__setitem__(struct __pyx_obj_3cgl_vec4 *__pyx_v_self, PyObject *__pyx_v_index, PyObject *__pyx_v_value); /* proto */
static PyObject *__pyx_pf_3cgl_4vec4_14__eq__(struct __pyx_obj_3cgl_vec4 *__pyx_v_self, struct __pyx_obj_3cgl_vec4 *__pyx_v_other); /* proto */
static PyObject *__pyx_pf_3cgl_4vec4_16__ne__(struct __pyx_obj_3cgl_vec4 *__pyx_v_self, struct __pyx_obj_3cgl_vec4 *__pyx_v_other); /* proto */
static Py_hash_t __pyx_pf_3cgl_4vec4_18__hash__(struct __pyx_obj_3cgl_vec4 *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_3cgl_4vec4_20__getattr__(struct __pyx_obj_3cgl_vec4 *__pyx_v_self, PyObject *__pyx_v_name); /* proto */
static int __pyx_pf_3cgl_4vec4_22__setattr__(struct __pyx_obj_3cgl_vec4 *__pyx_v_self, PyObject *__pyx_v_name, PyObject *__pyx_v_value); /* proto */
static PyObject *__pyx_pf_3cgl_4vec4_24__add__(PyObject *__pyx_v_self, struct __pyx_obj_3cgl_vec4 *__pyx_v_other); /* proto */
static PyObject *__pyx_pf_3cgl_4vec4_26__sub__(PyObject *__pyx_v_self, struct __pyx_obj_3cgl_vec4 *__pyx_v_other); /* proto */
static PyObject *__pyx_pf_3cgl_4vec4_28__mul__(PyObject *__pyx_v_self, struct __pyx_obj_3cgl_vec4 *__pyx_v_other); /* proto */
static PyObject *__pyx_pf_3cgl_4vec4_30__truediv__(PyObject *__pyx_v_self, struct __pyx_obj_3cgl_vec4 *__pyx_v_other); /* proto */
static PyObject *__pyx_pf_3cgl_4vec4_32__floordiv__(PyObject *__pyx_v_self, struct __pyx_obj_3cgl_vec3 *__pyx_v_other); /* proto */
static PyObject *__pyx_pf_3cgl_4vec4_34dot(struct __pyx_obj_3cgl_vec4 *__pyx_v_self, struct __pyx_obj_3cgl_vec3 *__pyx_v_other); /* proto */
static PyObject *__pyx_pf_3cgl_4vec4_36cross(struct __pyx_obj_3cgl_vec4 *__pyx_v_self, struct __pyx_obj_3cgl_vec3 *__pyx_v_other); /* proto */
static PyObject *__pyx_pf_3cgl_4vec4_38length(struct __pyx_obj_3cgl_vec4 *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_3cgl_4vec4_40length_squared(struct __pyx_obj_3cgl_vec4 *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_3cgl_4vec4_42normalized(struct __pyx_obj_3cgl_vec4 *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_3cgl_4vec4_44__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_3cgl_vec4 *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_3cgl_4vec4_46__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_3cgl_vec4 *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state); /* proto */
static struct __pyx_obj_3cgl_vec4 *__pyx_pf_3cgl_130vec4_triple_product(CYTHON_UNUSED PyObject *__pyx_self, struct __pyx_obj_3cgl_vec4 *__pyx_v_a, struct __pyx_obj_3cgl_vec4 *__pyx_v_b, struct __pyx_obj_3cgl_vec4 *__pyx_v_c); /* proto */
static int __pyx_pf_3cgl_5ivec4___init__(struct __pyx_obj_3cgl_ivec4 *__pyx_v_self, PyObject *__pyx_v_x, PyObject *__pyx_v_y, PyObject *__pyx_v_z, PyObject *__pyx_v_w); /* proto */
static PyObject *__pyx_pf_3cgl_5ivec4_2__repr__(struct __pyx_obj_3cgl_ivec4 *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_3cgl_5ivec4_4__str__(struct __pyx_obj_3cgl_ivec4 *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_3cgl_5ivec4_6__getitem__(struct __pyx_obj_3cgl_ivec4 *__pyx_v_self, PyObject *__pyx_v_index); /* proto */
static int __pyx_pf_3cgl_5ivec4_8__setitem__(struct __pyx_obj_3cgl_ivec4 *__pyx_v_self, PyObject *__pyx_v_index, PyObject *__pyx_v_value); /* proto */
static Py_hash_t __pyx_pf_3cgl_5ivec4_10__hash__(struct __pyx_obj_3cgl_ivec4 *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_3cgl_5ivec4_12__getattr__(struct __pyx_obj_3cgl_ivec4 *__pyx_v_self, PyObject *__pyx_v_name); /* proto */
static int __pyx_pf_3cgl_5ivec4_14__setattr__(struct __pyx_obj_3cgl_ivec4 *__pyx_v_self, PyObject *__pyx_v_name, PyObject *__pyx_v_value); /* proto */
static PyObject *__pyx_pf_3cgl_5ivec4_16__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_3cgl_ivec4 *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_3cgl_5ivec4_18__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_3cgl_ivec4 *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state); /* proto */
static int __pyx_pf_3cgl_4mat4___init__(struct __pyx_obj_3cgl_mat4 *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_3cgl_4mat4_2__repr__(struct __pyx_obj_3cgl_mat4 *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_3cgl_4mat4_4__str__(struct __pyx_obj_3cgl_mat4 *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_3cgl_4mat4_6__mul__(PyObject *__pyx_v_self, struct __pyx_obj_3cgl_mat4 *__pyx_v_other); /* proto */
static Py_hash_t __pyx_pf_3cgl_4mat4_8__hash__(struct __pyx_obj_3cgl_mat4 *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_3cgl_4mat4_10__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_3cgl_mat4 *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_3cgl_4mat4_12__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_3cgl_mat4 *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state); /* proto */
static struct __pyx_obj_3cgl_mat4 *__pyx_pf_3cgl_132mat4_mul(CYTHON_UNUSED PyObject *__pyx_self, struct __pyx_obj_3cgl_mat4 *__pyx_v_a, struct __pyx_obj_3cgl_mat4 *__pyx_v_b); /* proto */
static PyObject *__pyx_pf_3cgl_134mat4_det(CYTHON_UNUSED PyObject *__pyx_self, struct __pyx_obj_3cgl_mat4 *__pyx_v_m); /* proto */
static PyObject *__pyx_pf_3cgl_136mat4_det_by_lu(CYTHON_UNUSED PyObject *__pyx_self, struct __pyx_obj_3cgl_mat4 *__pyx_v_m); /* proto */
static PyObject *__pyx_pf_3cgl_138mat4_det_by_gauss(CYTHON_UNUSED PyObject *__pyx_self, struct __pyx_obj_3cgl_mat4 *__pyx_v_m); /* proto */
static struct __pyx_obj_3cgl_vec4 *__pyx_pf_3cgl_140mat4_mul_vec4(CYTHON_UNUSED PyObject *__pyx_self, struct __pyx_obj_3cgl_mat4 *__pyx_v_m, struct __pyx_obj_3cgl_vec4 *__pyx_v_v); /* proto */
static struct __pyx_obj_3cgl_mat4 *__pyx_pf_3cgl_142mat4_inverse(CYTHON_UNUSED PyObject *__pyx_self, struct __pyx_obj_3cgl_mat4 *__pyx_v_m); /* proto */
static struct __pyx_obj_3cgl_mat4 *__pyx_pf_3cgl_144mat4_transpose(CYTHON_UNUSED PyObject *__pyx_self, struct __pyx_obj_3cgl_mat4 *__pyx_v_m); /* proto */
static struct __pyx_obj_3cgl_mat4 *__pyx_pf_3cgl_146mat4_adjoint(CYTHON_UNUSED PyObject *__pyx_self, struct __pyx_obj_3cgl_mat4 *__pyx_v_m); /* proto */
static struct __pyx_obj_3cgl_mat4 *__pyx_pf_3cgl_148mat4_gauss_elim(CYTHON_UNUSED PyObject *__pyx_self, struct __pyx_obj_3cgl_mat4 *__pyx_v_m); /* proto */
static PyObject *__pyx_pf_3cgl_150mat4_rank(CYTHON_UNUSED PyObject *__pyx_self, struct __pyx_obj_3cgl_mat4 *__pyx_v_m); /* proto */
static PyObject *__pyx_pf_3cgl_152mat4_trace(CYTHON_UNUSED PyObject *__pyx_self, struct __pyx_obj_3cgl_mat4 *__pyx_v_m); /* proto */
static struct __pyx_obj_3cgl_mat4 *__pyx_pf_3cgl_154mat4_rotate_about_axis(CYTHON_UNUSED PyObject *__pyx_self, struct __pyx_obj_3cgl_vec3 *__pyx_v_axis, double __pyx_v_angle); /* proto */
static struct __pyx_obj_3cgl_mat4 *__pyx_pf_3cgl_156mat4_look_at(CYTHON_UNUSED PyObject *__pyx_self, struct __pyx_obj_3cgl_vec3 *__pyx_v_eye, struct __pyx_obj_3cgl_vec3 *__pyx_v_target, struct __pyx_obj_3cgl_vec3 *__pyx_v_up); /* proto */
static struct __pyx_obj_3cgl_mat4 *__pyx_pf_3cgl_158mat4_lerp(CYTHON_UNUSED PyObject *__pyx_self, struct __pyx_obj_3cgl_mat4 *__pyx_v_a, struct __pyx_obj_3cgl_mat4 *__pyx_v_b, double __pyx_v_t); /* proto */
static PyObject *__pyx_pf_3cgl_160mat4_decompose_lu(CYTHON_UNUSED PyObject *__pyx_self, struct __pyx_obj_3cgl_mat4 *__pyx_v_m, struct __pyx_obj_3cgl_mat4 *__pyx_v_l, struct __pyx_obj_3cgl_mat4 *__pyx_v_u); /* proto */
static struct __pyx_obj_3cgl_mat4 *__pyx_pf_3cgl_162mat4_perspective(CYTHON_UNUSED PyObject *__pyx_self, double __pyx_v_fov, double __pyx_v_aspect, double __pyx_v_near, double __pyx_v_far); /* proto */
static struct __pyx_obj_3cgl_mat4 *__pyx_pf_3cgl_164mat4_orthographic(CYTHON_UNUSED PyObject *__pyx_self, double __pyx_v_left, double __pyx_v_right, double __pyx_v_bottom, double __pyx_v_top, double __pyx_v_near, double __pyx_v_far); /* proto */
static struct __pyx_obj_3cgl_mat4 *__pyx_pf_3cgl_166mat4_zero(CYTHON_UNUSED PyObject *__pyx_self); /* proto */
static struct __pyx_obj_3cgl_mat4 *__pyx_pf_3cgl_168mat4_identity(CYTHON_UNUSED PyObject *__pyx_self); /* proto */
static struct __pyx_obj_3cgl_mat4 *__pyx_pf_3cgl_170mat4_scale(CYTHON_UNUSED PyObject *__pyx_self, double __pyx_v_x, double __pyx_v_y, double __pyx_v_z); /* proto */
static struct __pyx_obj_3cgl_mat4 *__pyx_pf_3cgl_172mat4_translate(CYTHON_UNUSED PyObject *__pyx_self, double __pyx_v_x, double __pyx_v_y, double __pyx_v_z); /* proto */
static struct __pyx_obj_3cgl_mat4 *__pyx_pf_3cgl_174mat4_rotate_x(CYTHON_UNUSED PyObject *__pyx_self, double __pyx_v_angle); /* proto */
static struct __pyx_obj_3cgl_mat4 *__pyx_pf_3cgl_176mat4_rotate_y(CYTHON_UNUSED PyObject *__pyx_self, double __pyx_v_angle); /* proto */
static struct __pyx_obj_3cgl_mat4 *__pyx_pf_3cgl_178mat4_rotate_z(CYTHON_UNUSED PyObject *__pyx_self, double __pyx_v_angle); /* proto */
static PyObject *__pyx_pf_3cgl_9transform_8position___get__(struct __pyx_obj_3cgl_transform *__pyx_v_self); /* proto */
static int __pyx_pf_3cgl_9transform_8position_2__set__(struct __pyx_obj_3cgl_transform *__pyx_v_self, struct __pyx_obj_3cgl_vec3 *__pyx_v_value); /* proto */
static PyObject *__pyx_pf_3cgl_9transform_8rotation___get__(struct __pyx_obj_3cgl_transform *__pyx_v_self); /* proto */
static int __pyx_pf_3cgl_9transform_8rotation_2__set__(struct __pyx_obj_3cgl_transform *__pyx_v_self, struct __pyx_obj_3cgl_vec3 *__pyx_v_value); /* proto */
static PyObject *__pyx_pf_3cgl_9transform_5scale___get__(struct __pyx_obj_3cgl_transform *__pyx_v_self); /* proto */
static int __pyx_pf_3cgl_9transform_5scale_2__set__(struct __pyx_obj_3cgl_transform *__pyx_v_self, struct __pyx_obj_3cgl_vec3 *__pyx_v_value); /* proto */
static PyObject *__pyx_pf_3cgl_9transform_6matrix___get__(struct __pyx_obj_3cgl_transform *__pyx_v_self); /* proto */
static int __pyx_pf_3cgl_9transform_6matrix_2__set__(struct __pyx_obj_3cgl_transform *__pyx_v_self, struct __pyx_obj_3cgl_mat4 *__pyx_v_value); /* proto */
static int __pyx_pf_3cgl_9transform___cinit__(struct __pyx_obj_3cgl_transform *__pyx_v_self); /* proto */
static int __pyx_pf_3cgl_9transform_2__init__(struct __pyx_obj_3cgl_transform *__pyx_v_self, struct __pyx_obj_3cgl_vec3 *__pyx_v_position, struct __pyx_obj_3cgl_vec3 *__pyx_v_rotation, struct __pyx_obj_3cgl_vec3 *__pyx_v_scale); /* proto */
static Py_hash_t __pyx_pf_3cgl_9transform_4__hash__(struct __pyx_obj_3cgl_transform *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_3cgl_9transform_6__repr__(struct __pyx_obj_3cgl_transform *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_3cgl_9transform_8__eq__(struct __pyx_obj_3cgl_transform *__pyx_v_self, PyObject *__pyx_v_other); /* proto */
static PyObject *__pyx_pf_3cgl_9transform_10__str__(struct __pyx_obj_3cgl_transform *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_3cgl_9transform_12load_matrix(struct __pyx_obj_3cgl_transform *__pyx_v_self, struct __pyx_obj_3cgl_mat4 *__pyx_v_m); /* proto */
static PyObject *__pyx_pf_3cgl_9transform_14set_parent(struct __pyx_obj_3cgl_transform *__pyx_v_self, struct __pyx_obj_3cgl_transform *__pyx_v_parent); /* proto */
static PyObject *__pyx_pf_3cgl_9transform_16update(struct __pyx_obj_3cgl_transform *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_3cgl_9transform_18__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_3cgl_transform *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_3cgl_9transform_20__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_3cgl_transform *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state); /* proto */
static PyObject *__pyx_pf_3cgl_6window_14close_callback___get__(struct __pyx_obj_3cgl_window *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_3cgl_6window_12key_callback___get__(struct __pyx_obj_3cgl_window *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_3cgl_6window_21mouse_button_callback___get__(struct __pyx_obj_3cgl_window *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_3cgl_6window_23mouse_position_callback___get__(struct __pyx_obj_3cgl_window *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_3cgl_6window_21mouse_scroll_callback___get__(struct __pyx_obj_3cgl_window *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_3cgl_6window_25framebuffer_size_callback___get__(struct __pyx_obj_3cgl_window *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_3cgl_6window_20drag_n_drop_callback___get__(struct __pyx_obj_3cgl_window *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_3cgl_6window_5width___get__(struct __pyx_obj_3cgl_window *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_3cgl_6window_6height___get__(struct __pyx_obj_3cgl_window *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_3cgl_6window_1x___get__(struct __pyx_obj_3cgl_window *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_3cgl_6window_1y___get__(struct __pyx_obj_3cgl_window *__pyx_v_self); /* proto */
static int __pyx_pf_3cgl_6window___init__(struct __pyx_obj_3cgl_window *__pyx_v_self, PyObject *__pyx_v_width, PyObject *__pyx_v_height, PyObject *__pyx_v_title, bool __pyx_v_decorated); /* proto */
static void __pyx_pf_3cgl_6window_2__dealloc__(struct __pyx_obj_3cgl_window *__pyx_v_self); /* proto */
static Py_hash_t __pyx_pf_3cgl_6window_4__hash__(struct __pyx_obj_3cgl_window *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_3cgl_6window_6destroy(struct __pyx_obj_3cgl_window *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_3cgl_6window_8get_id(struct __pyx_obj_3cgl_window *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_3cgl_6window_10poll_events(struct __pyx_obj_3cgl_window *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_3cgl_6window_12should_close(struct __pyx_obj_3cgl_window *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_3cgl_6window_14swap_buffers(struct __pyx_obj_3cgl_window *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_3cgl_6window_16set_title(struct __pyx_obj_3cgl_window *__pyx_v_self, PyObject *__pyx_v_title); /* proto */
static PyObject *__pyx_pf_3cgl_6window_18set_size(struct __pyx_obj_3cgl_window *__pyx_v_self, PyObject *__pyx_v_width, PyObject *__pyx_v_height); /* proto */
static PyObject *__pyx_pf_3cgl_6window_20set_position(struct __pyx_obj_3cgl_window *__pyx_v_self, PyObject *__pyx_v_x, PyObject *__pyx_v_y); /* proto */
static PyObject *__pyx_pf_3cgl_6window_22set_hidden(struct __pyx_obj_3cgl_window *__pyx_v_self, bool __pyx_v_hidden); /* proto */
static PyObject *__pyx_pf_3cgl_6window_24set_user_data(struct __pyx_obj_3cgl_window *__pyx_v_self, PyObject *__pyx_v_data); /* proto */
static PyObject *__pyx_pf_3cgl_6window_26get_user_data(struct __pyx_obj_3cgl_window *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_3cgl_6window_28get_size(struct __pyx_obj_3cgl_window *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_3cgl_6window_30set_close_callback(struct __pyx_obj_3cgl_window *__pyx_v_self, PyObject *__pyx_v_callback); /* proto */
static PyObject *__pyx_pf_3cgl_6window_32set_key_callback(struct __pyx_obj_3cgl_window *__pyx_v_self, PyObject *__pyx_v_callback); /* proto */
static PyObject *__pyx_pf_3cgl_6window_34set_mouse_button_callback(struct __pyx_obj_3cgl_window *__pyx_v_self, PyObject *__pyx_v_callback); /* proto */
static PyObject *__pyx_pf_3cgl_6window_36set_mouse_position_callback(struct __pyx_obj_3cgl_window *__pyx_v_self, PyObject *__pyx_v_callback); /* proto */
static PyObject *__pyx_pf_3cgl_6window_38set_mouse_scroll_callback(struct __pyx_obj_3cgl_window *__pyx_v_self, PyObject *__pyx_v_callback); /* proto */
static PyObject *__pyx_pf_3cgl_6window_40set_framebuffer_size_callback(struct __pyx_obj_3cgl_window *__pyx_v_self, PyObject *__pyx_v_callback); /* proto */
static PyObject *__pyx_pf_3cgl_6window_42set_drag_n_drop_callback(struct __pyx_obj_3cgl_window *__pyx_v_self, PyObject *__pyx_v_callback); /* proto */
static PyObject *__pyx_pf_3cgl_6window_44get_position(struct __pyx_obj_3cgl_window *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_3cgl_6window_46get_framebuffer_size(struct __pyx_obj_3cgl_window *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_3cgl_6window_48resecure_callbaks(struct __pyx_obj_3cgl_window *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_3cgl_6window_50make_context_current(struct __pyx_obj_3cgl_window *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_3cgl_6window_52get_glfw_handle(struct __pyx_obj_3cgl_window *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_3cgl_6window_54get_key(struct __pyx_obj_3cgl_window *__pyx_v_self, PyObject *__pyx_v_key); /* proto */
static PyObject *__pyx_pf_3cgl_6window_56is_key_presswd(struct __pyx_obj_3cgl_window *__pyx_v_self, PyObject *__pyx_v_key); /* proto */
static PyObject *__pyx_pf_3cgl_6window_58get_mouse_button(struct __pyx_obj_3cgl_window *__pyx_v_self, PyObject *__pyx_v_button); /* proto */
static PyObject *__pyx_pf_3cgl_6window_60get_cursor_pos(struct __pyx_obj_3cgl_window *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_3cgl_6window_62__repr__(struct __pyx_obj_3cgl_window *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_3cgl_6window_64__str__(struct __pyx_obj_3cgl_window *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_3cgl_6window_66__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_3cgl_window *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_3cgl_6window_68__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_3cgl_window *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state); /* proto */
static PyObject *__pyx_pf_3cgl_5image_5width___get__(struct __pyx_obj_3cgl_image *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_3cgl_5image_6height___get__(struct __pyx_obj_3cgl_image *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_3cgl_5image_8channels___get__(struct __pyx_obj_3cgl_image *__pyx_v_self); /* proto */
static int __pyx_pf_3cgl_5image___init__(struct __pyx_obj_3cgl_image *__pyx_v_self); /* proto */
static Py_hash_t __pyx_pf_3cgl_5image_2__hash__(struct __pyx_obj_3cgl_image *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_3cgl_5image_4__repr__(struct __pyx_obj_3cgl_image *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_3cgl_5image_6__str__(struct __pyx_obj_3cgl_image *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_3cgl_5image_8load_image(struct __pyx_obj_3cgl_image *__pyx_v_self, PyObject *__pyx_v_path); /* proto */
static PyObject *__pyx_pf_3cgl_5image_10__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_3cgl_image *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_3cgl_5image_12__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_3cgl_image *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state); /* proto */
static PyObject *__pyx_pf_3cgl_11mesh_vertex_8position___get__(struct __pyx_obj_3cgl_mesh_vertex *__pyx_v_self); /* proto */
static int __pyx_pf_3cgl_11mesh_vertex_8position_2__set__(struct __pyx_obj_3cgl_mesh_vertex *__pyx_v_self, struct __pyx_obj_3cgl_vec4 *__pyx_v_value); /* proto */
static PyObject *__pyx_pf_3cgl_11mesh_vertex_6normal___get__(struct __pyx_obj_3cgl_mesh_vertex *__pyx_v_self); /* proto */
static int __pyx_pf_3cgl_11mesh_vertex_6normal_2__set__(struct __pyx_obj_3cgl_mesh_vertex *__pyx_v_self, struct __pyx_obj_3cgl_vec4 *__pyx_v_value); /* proto */
static PyObject *__pyx_pf_3cgl_11mesh_vertex_19texture_coordinates___get__(struct __pyx_obj_3cgl_mesh_vertex *__pyx_v_self); /* proto */
static int __pyx_pf_3cgl_11mesh_vertex_19texture_coordinates_2__set__(struct __pyx_obj_3cgl_mesh_vertex *__pyx_v_self, struct __pyx_obj_3cgl_vec4 *__pyx_v_value); /* proto */
static PyObject *__pyx_pf_3cgl_11mesh_vertex_12bone_wieghts___get__(struct __pyx_obj_3cgl_mesh_vertex *__pyx_v_self); /* proto */
static int __pyx_pf_3cgl_11mesh_vertex_12bone_wieghts_2__set__(struct __pyx_obj_3cgl_mesh_vertex *__pyx_v_self, struct __pyx_obj_3cgl_vec4 *__pyx_v_value); /* proto */
static PyObject *__pyx_pf_3cgl_11mesh_vertex_8bone_ids___get__(struct __pyx_obj_3cgl_mesh_vertex *__pyx_v_self); /* proto */
static int __pyx_pf_3cgl_11mesh_vertex_8bone_ids_2__set__(struct __pyx_obj_3cgl_mesh_vertex *__pyx_v_self, struct __pyx_obj_3cgl_ivec4 *__pyx_v_value); /* proto */
static int __pyx_pf_3cgl_11mesh_vertex___init__(struct __pyx_obj_3cgl_mesh_vertex *__pyx_v_self, PyObject *__pyx_v_c_vertex); /* proto */
static Py_hash_t __pyx_pf_3cgl_11mesh_vertex_2__hash__(struct __pyx_obj_3cgl_mesh_vertex *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_3cgl_11mesh_vertex_4__repr__(struct __pyx_obj_3cgl_mesh_vertex *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_3cgl_11mesh_vertex_6__str__(struct __pyx_obj_3cgl_mesh_vertex *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_3cgl_11mesh_vertex_8__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_3cgl_mesh_vertex *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_3cgl_11mesh_vertex_10__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_3cgl_mesh_vertex *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state); /* proto */
static PyObject *__pyx_pf_3cgl_8mesh_cpu_11index_count___get__(struct __pyx_obj_3cgl_mesh_cpu *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_3cgl_8mesh_cpu_16index_count_used___get__(struct __pyx_obj_3cgl_mesh_cpu *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_3cgl_8mesh_cpu_7indices___get__(struct __pyx_obj_3cgl_mesh_cpu *__pyx_v_self); /* proto */
static int __pyx_pf_3cgl_8mesh_cpu_7indices_2__set__(struct __pyx_obj_3cgl_mesh_cpu *__pyx_v_self, PyObject *__pyx_v_value); /* proto */
static PyObject *__pyx_pf_3cgl_8mesh_cpu_12vertex_count___get__(struct __pyx_obj_3cgl_mesh_cpu *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_3cgl_8mesh_cpu_17vertex_count_used___get__(struct __pyx_obj_3cgl_mesh_cpu *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_3cgl_8mesh_cpu_8vertices___get__(struct __pyx_obj_3cgl_mesh_cpu *__pyx_v_self); /* proto */
static int __pyx_pf_3cgl_8mesh_cpu___init__(struct __pyx_obj_3cgl_mesh_cpu *__pyx_v_self, PyObject *__pyx_v_c_mesh); /* proto */
static Py_hash_t __pyx_pf_3cgl_8mesh_cpu_2__hash__(struct __pyx_obj_3cgl_mesh_cpu *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_3cgl_8mesh_cpu_4__repr__(struct __pyx_obj_3cgl_mesh_cpu *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_3cgl_8mesh_cpu_6__str__(struct __pyx_obj_3cgl_mesh_cpu *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_3cgl_8mesh_cpu_8__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_3cgl_mesh_cpu *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_3cgl_8mesh_cpu_10__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_3cgl_mesh_cpu *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state); /* proto */
static PyObject *__pyx_tp_new_3cgl_vec2(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_3cgl_vec3(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_3cgl_vec4(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_3cgl_ivec4(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_3cgl_mat4(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_3cgl_transform(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_3cgl_window(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_3cgl_image(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_3cgl_mesh_vertex(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_3cgl_mesh_cpu(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static __Pyx_CachedCFunction __pyx_umethod_PyString_Type_encode = {0, &__pyx_n_s_encode, 0, 0, 0};
static PyObject *__pyx_float_0_0;
static PyObject *__pyx_float_1_0;
static PyObject *__pyx_float_180_0;
static PyObject *__pyx_float_1_41421356237309504880;
static PyObject *__pyx_float_1_57079632679489661923;
static PyObject *__pyx_float_1_73205080756887729352;
static PyObject *__pyx_float_2_23606797749978969640;
static PyObject *__pyx_float_2_44948974278317809820;
static PyObject *__pyx_float_2_64575131106459059050;
static PyObject *__pyx_float_2_71828182845904523536;
static PyObject *__pyx_float_2_82842712474619009760;
static PyObject *__pyx_float_3_14159265358979323846;
static PyObject *__pyx_float_6_28318530717958647692;
static PyObject *__pyx_int_0;
static PyObject *__pyx_int_1;
static PyObject *__pyx_int_2;
static PyObject *__pyx_int_3;
static PyObject *__pyx_int_4;
static PyObject *__pyx_int_5;
static PyObject *__pyx_int_6;
static PyObject *__pyx_int_7;
static PyObject *__pyx_int_32;
static PyObject *__pyx_int_39;
static PyObject *__pyx_int_44;
static PyObject *__pyx_int_45;
static PyObject *__pyx_int_46;
static PyObject *__pyx_int_47;
static PyObject *__pyx_int_48;
static PyObject *__pyx_int_49;
static PyObject *__pyx_int_50;
static PyObject *__pyx_int_51;
static PyObject *__pyx_int_52;
static PyObject *__pyx_int_53;
static PyObject *__pyx_int_54;
static PyObject *__pyx_int_55;
static PyObject *__pyx_int_56;
static PyObject *__pyx_int_57;
static PyObject *__pyx_int_59;
static PyObject *__pyx_int_61;
static PyObject *__pyx_int_65;
static PyObject *__pyx_int_66;
static PyObject *__pyx_int_67;
static PyObject *__pyx_int_68;
static PyObject *__pyx_int_69;
static PyObject *__pyx_int_70;
static PyObject *__pyx_int_71;
static PyObject *__pyx_int_72;
static PyObject *__pyx_int_73;
static PyObject *__pyx_int_74;
static PyObject *__pyx_int_75;
static PyObject *__pyx_int_76;
static PyObject *__pyx_int_77;
static PyObject *__pyx_int_78;
static PyObject *__pyx_int_79;
static PyObject *__pyx_int_80;
static PyObject *__pyx_int_81;
static PyObject *__pyx_int_82;
static PyObject *__pyx_int_83;
static PyObject *__pyx_int_84;
static PyObject *__pyx_int_85;
static PyObject *__pyx_int_86;
static PyObject *__pyx_int_87;
static PyObject *__pyx_int_88;
static PyObject *__pyx_int_89;
static PyObject *__pyx_int_90;
static PyObject *__pyx_int_91;
static PyObject *__pyx_int_92;
static PyObject *__pyx_int_93;
static PyObject *__pyx_int_96;
static PyObject *__pyx_int_161;
static PyObject *__pyx_int_162;
static PyObject *__pyx_int_256;
static PyObject *__pyx_int_257;
static PyObject *__pyx_int_258;
static PyObject *__pyx_int_259;
static PyObject *__pyx_int_260;
static PyObject *__pyx_int_261;
static PyObject *__pyx_int_262;
static PyObject *__pyx_int_263;
static PyObject *__pyx_int_264;
static PyObject *__pyx_int_265;
static PyObject *__pyx_int_266;
static PyObject *__pyx_int_267;
static PyObject *__pyx_int_268;
static PyObject *__pyx_int_269;
static PyObject *__pyx_int_280;
static PyObject *__pyx_int_281;
static PyObject *__pyx_int_282;
static PyObject *__pyx_int_283;
static PyObject *__pyx_int_284;
static PyObject *__pyx_int_290;
static PyObject *__pyx_int_291;
static PyObject *__pyx_int_292;
static PyObject *__pyx_int_293;
static PyObject *__pyx_int_294;
static PyObject *__pyx_int_295;
static PyObject *__pyx_int_296;
static PyObject *__pyx_int_297;
static PyObject *__pyx_int_298;
static PyObject *__pyx_int_299;
static PyObject *__pyx_int_300;
static PyObject *__pyx_int_301;
static PyObject *__pyx_int_302;
static PyObject *__pyx_int_303;
static PyObject *__pyx_int_304;
static PyObject *__pyx_int_305;
static PyObject *__pyx_int_306;
static PyObject *__pyx_int_307;
static PyObject *__pyx_int_308;
static PyObject *__pyx_int_309;
static PyObject *__pyx_int_310;
static PyObject *__pyx_int_311;
static PyObject *__pyx_int_312;
static PyObject *__pyx_int_313;
static PyObject *__pyx_int_314;
static PyObject *__pyx_int_320;
static PyObject *__pyx_int_321;
static PyObject *__pyx_int_322;
static PyObject *__pyx_int_323;
static PyObject *__pyx_int_324;
static PyObject *__pyx_int_325;
static PyObject *__pyx_int_326;
static PyObject *__pyx_int_327;
static PyObject *__pyx_int_328;
static PyObject *__pyx_int_329;
static PyObject *__pyx_int_330;
static PyObject *__pyx_int_331;
static PyObject *__pyx_int_332;
static PyObject *__pyx_int_333;
static PyObject *__pyx_int_334;
static PyObject *__pyx_int_335;
static PyObject *__pyx_int_336;
static PyObject *__pyx_int_340;
static PyObject *__pyx_int_341;
static PyObject *__pyx_int_342;
static PyObject *__pyx_int_343;
static PyObject *__pyx_int_344;
static PyObject *__pyx_int_345;
static PyObject *__pyx_int_346;
static PyObject *__pyx_int_347;
static PyObject *__pyx_int_348;
static PyObject *__pyx_int_4096;
static PyObject *__pyx_int_neg_1;
static PyObject *__pyx_tuple__5;
static PyObject *__pyx_tuple__6;
static PyObject *__pyx_tuple__7;
static PyObject *__pyx_tuple__8;
static PyObject *__pyx_tuple__9;
static PyObject *__pyx_tuple__10;
static PyObject *__pyx_tuple__11;
static PyObject *__pyx_tuple__12;
static PyObject *__pyx_tuple__15;
static PyObject *__pyx_tuple__16;
static PyObject *__pyx_tuple__17;
static PyObject *__pyx_tuple__18;
static PyObject *__pyx_tuple__19;
static PyObject *__pyx_tuple__20;
static PyObject *__pyx_tuple__21;
static PyObject *__pyx_tuple__22;
static PyObject *__pyx_tuple__23;
static PyObject *__pyx_tuple__24;
static PyObject *__pyx_tuple__25;
static PyObject *__pyx_tuple__26;
static PyObject *__pyx_tuple__27;
static PyObject *__pyx_tuple__28;
static PyObject *__pyx_tuple__29;
static PyObject *__pyx_tuple__30;
static PyObject *__pyx_tuple__31;
static PyObject *__pyx_tuple__32;
static PyObject *__pyx_tuple__33;
static PyObject *__pyx_tuple__34;
static PyObject *__pyx_tuple__35;
static PyObject *__pyx_tuple__36;
static PyObject *__pyx_tuple__37;
static PyObject *__pyx_tuple__38;
static PyObject *__pyx_tuple__39;
static PyObject *__pyx_tuple__43;
static PyObject *__pyx_tuple__45;
static PyObject *__pyx_tuple__47;
static PyObject *__pyx_tuple__49;
static PyObject *__pyx_tuple__51;
static PyObject *__pyx_tuple__54;
static PyObject *__pyx_tuple__58;
static PyObject *__pyx_tuple__60;
static PyObject *__pyx_tuple__62;
static PyObject *__pyx_tuple__64;
static PyObject *__pyx_tuple__66;
static PyObject *__pyx_tuple__70;
static PyObject *__pyx_tuple__73;
static PyObject *__pyx_tuple__75;
static PyObject *__pyx_tuple__77;
static PyObject *__pyx_tuple__79;
static PyObject *__pyx_tuple__81;
static PyObject *__pyx_tuple__83;
static PyObject *__pyx_tuple__85;
static PyObject *__pyx_tuple__87;
static PyObject *__pyx_tuple__89;
static PyObject *__pyx_tuple__91;
static PyObject *__pyx_tuple__93;
static PyObject *__pyx_tuple__95;
static PyObject *__pyx_tuple__97;
static PyObject *__pyx_tuple__99;
static PyObject *__pyx_tuple__101;
static PyObject *__pyx_tuple__103;
static PyObject *__pyx_tuple__105;
static PyObject *__pyx_tuple__107;
static PyObject *__pyx_tuple__109;
static PyObject *__pyx_tuple__112;
static PyObject *__pyx_tuple__114;
static PyObject *__pyx_tuple__119;
static PyObject *__pyx_tuple__121;
static PyObject *__pyx_tuple__123;
static PyObject *__pyx_tuple__125;
static PyObject *__pyx_tuple__127;
static PyObject *__pyx_tuple__129;
static PyObject *__pyx_tuple__131;
static PyObject *__pyx_tuple__133;
static PyObject *__pyx_tuple__135;
static PyObject *__pyx_tuple__137;
static PyObject *__pyx_tuple__139;
static PyObject *__pyx_tuple__141;
static PyObject *__pyx_tuple__143;
static PyObject *__pyx_tuple__145;
static PyObject *__pyx_tuple__147;
static PyObject *__pyx_tuple__149;
static PyObject *__pyx_tuple__151;
static PyObject *__pyx_tuple__153;
static PyObject *__pyx_tuple__155;
static PyObject *__pyx_tuple__157;
static PyObject *__pyx_tuple__159;
static PyObject *__pyx_tuple__161;
static PyObject *__pyx_tuple__163;
static PyObject *__pyx_tuple__165;
static PyObject *__pyx_tuple__167;
static PyObject *__pyx_tuple__169;
static PyObject *__pyx_tuple__171;
static PyObject *__pyx_tuple__173;
static PyObject *__pyx_tuple__175;
static PyObject *__pyx_tuple__177;
static PyObject *__pyx_tuple__179;
static PyObject *__pyx_tuple__181;
static PyObject *__pyx_tuple__183;
static PyObject *__pyx_tuple__185;
static PyObject *__pyx_tuple__187;
static PyObject *__pyx_tuple__189;
static PyObject *__pyx_tuple__191;
static PyObject *__pyx_tuple__193;
static PyObject *__pyx_tuple__195;
static PyObject *__pyx_tuple__197;
static PyObject *__pyx_tuple__199;
static PyObject *__pyx_tuple__201;
static PyObject *__pyx_tuple__203;
static PyObject *__pyx_tuple__205;
static PyObject *__pyx_codeobj__40;
static PyObject *__pyx_codeobj__41;
static PyObject *__pyx_codeobj__42;
static PyObject *__pyx_codeobj__44;
static PyObject *__pyx_codeobj__46;
static PyObject *__pyx_codeobj__48;
static PyObject *__pyx_codeobj__50;
static PyObject *__pyx_codeobj__52;
static PyObject *__pyx_codeobj__53;
static PyObject *__pyx_codeobj__55;
static PyObject *__pyx_codeobj__56;
static PyObject *__pyx_codeobj__57;
static PyObject *__pyx_codeobj__59;
static PyObject *__pyx_codeobj__61;
static PyObject *__pyx_codeobj__63;
static PyObject *__pyx_codeobj__65;
static PyObject *__pyx_codeobj__67;
static PyObject *__pyx_codeobj__68;
static PyObject *__pyx_codeobj__69;
static PyObject *__pyx_codeobj__71;
static PyObject *__pyx_codeobj__72;
static PyObject *__pyx_codeobj__74;
static PyObject *__pyx_codeobj__76;
static PyObject *__pyx_codeobj__78;
static PyObject *__pyx_codeobj__80;
static PyObject *__pyx_codeobj__82;
static PyObject *__pyx_codeobj__84;
static PyObject *__pyx_codeobj__86;
static PyObject *__pyx_codeobj__88;
static PyObject *__pyx_codeobj__90;
static PyObject *__pyx_codeobj__92;
static PyObject *__pyx_codeobj__94;
static PyObject *__pyx_codeobj__96;
static PyObject *__pyx_codeobj__98;
static PyObject *__pyx_codeobj__100;
static PyObject *__pyx_codeobj__102;
static PyObject *__pyx_codeobj__104;
static PyObject *__pyx_codeobj__106;
static PyObject *__pyx_codeobj__108;
static PyObject *__pyx_codeobj__110;
static PyObject *__pyx_codeobj__111;
static PyObject *__pyx_codeobj__113;
static PyObject *__pyx_codeobj__115;
static PyObject *__pyx_codeobj__116;
static PyObject *__pyx_codeobj__117;
static PyObject *__pyx_codeobj__118;
static PyObject *__pyx_codeobj__120;
static PyObject *__pyx_codeobj__122;
static PyObject *__pyx_codeobj__124;
static PyObject *__pyx_codeobj__126;
static PyObject *__pyx_codeobj__128;
static PyObject *__pyx_codeobj__130;
static PyObject *__pyx_codeobj__132;
static PyObject *__pyx_codeobj__134;
static PyObject *__pyx_codeobj__136;
static PyObject *__pyx_codeobj__138;
static PyObject *__pyx_codeobj__140;
static PyObject *__pyx_codeobj__142;
static PyObject *__pyx_codeobj__144;
static PyObject *__pyx_codeobj__146;
static PyObject *__pyx_codeobj__148;
static PyObject *__pyx_codeobj__150;
static PyObject *__pyx_codeobj__152;
static PyObject *__pyx_codeobj__154;
static PyObject *__pyx_codeobj__156;
static PyObject *__pyx_codeobj__158;
static PyObject *__pyx_codeobj__160;
static PyObject *__pyx_codeobj__162;
static PyObject *__pyx_codeobj__164;
static PyObject *__pyx_codeobj__166;
static PyObject *__pyx_codeobj__168;
static PyObject *__pyx_codeobj__170;
static PyObject *__pyx_codeobj__172;
static PyObject *__pyx_codeobj__174;
static PyObject *__pyx_codeobj__176;
static PyObject *__pyx_codeobj__178;
static PyObject *__pyx_codeobj__180;
static PyObject *__pyx_codeobj__182;
static PyObject *__pyx_codeobj__184;
static PyObject *__pyx_codeobj__186;
static PyObject *__pyx_codeobj__188;
static PyObject *__pyx_codeobj__190;
static PyObject *__pyx_codeobj__192;
static PyObject *__pyx_codeobj__194;
static PyObject *__pyx_codeobj__196;
static PyObject *__pyx_codeobj__198;
static PyObject *__pyx_codeobj__200;
static PyObject *__pyx_codeobj__202;
static PyObject *__pyx_codeobj__204;
static PyObject *__pyx_codeobj__206;
/* Late includes */

/* "cgl_wrapper.pyx":269
 * CGL_FALSE = 0
 * 
 * def free(ptr):             # <<<<<<<<<<<<<<
 *     stdlib.free(<void*>ptr)
 * 
 */

/* Python wrapper */
static PyObject *__pyx_pw_3cgl_1free(PyObject *__pyx_self, PyObject *__pyx_v_ptr); /*proto*/
static PyMethodDef __pyx_mdef_3cgl_1free = {"free", (PyCFunction)__pyx_pw_3cgl_1free, METH_O, 0};
static PyObject *__pyx_pw_3cgl_1free(PyObject *__pyx_self, PyObject *__pyx_v_ptr) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("free (wrapper)", 0);
  __pyx_r = __pyx_pf_3cgl_free(__pyx_self, ((PyObject *)__pyx_v_ptr));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_3cgl_free(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_ptr) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("free", 0);

  /* "cgl_wrapper.pyx":270
 * 
 * def free(ptr):
 *     stdlib.free(<void*>ptr)             # <<<<<<<<<<<<<<
 * 
 * def init() -> bool:
 */
  free(((void *)__pyx_v_ptr));

  /* "cgl_wrapper.pyx":269
 * CGL_FALSE = 0
 * 
 * def free(ptr):             # <<<<<<<<<<<<<<
 *     stdlib.free(<void*>ptr)
 * 
 */

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cgl_wrapper.pyx":272
 *     stdlib.free(<void*>ptr)
 * 
 * def init() -> bool:             # <<<<<<<<<<<<<<
 *     return CGL_init()
 * 
 */

/* Python wrapper */
static PyObject *__pyx_pw_3cgl_3init(PyObject *__pyx_self, CYTHON_UNUSED PyObject *unused); /*proto*/
static PyMethodDef __pyx_mdef_3cgl_3init = {"init", (PyCFunction)__pyx_pw_3cgl_3init, METH_NOARGS, 0};
static PyObject *__pyx_pw_3cgl_3init(PyObject *__pyx_self, CYTHON_UNUSED PyObject *unused) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("init (wrapper)", 0);
  __pyx_r = __pyx_pf_3cgl_2init(__pyx_self);

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_3cgl_2init(CYTHON_UNUSED PyObject *__pyx_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("init", 0);

  /* "cgl_wrapper.pyx":273
 * 
 * def init() -> bool:
 *     return CGL_init()             # <<<<<<<<<<<<<<
 * 
 * def shutdown():
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyBool_FromLong(CGL_init()); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 273, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cgl_wrapper.pyx":272
 *     stdlib.free(<void*>ptr)
 * 
 * def init() -> bool:             # <<<<<<<<<<<<<<
 *     return CGL_init()
 * 
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cgl.init", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cgl_wrapper.pyx":275
 *     return CGL_init()
 * 
 * def shutdown():             # <<<<<<<<<<<<<<
 *     CGL_shutdown()
 * 
 */

/* Python wrapper */
static PyObject *__pyx_pw_3cgl_5shutdown(PyObject *__pyx_self, CYTHON_UNUSED PyObject *unused); /*proto*/
static PyMethodDef __pyx_mdef_3cgl_5shutdown = {"shutdown", (PyCFunction)__pyx_pw_3cgl_5shutdown, METH_NOARGS, 0};
static PyObject *__pyx_pw_3cgl_5shutdown(PyObject *__pyx_self, CYTHON_UNUSED PyObject *unused) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("shutdown (wrapper)", 0);
  __pyx_r = __pyx_pf_3cgl_4shutdown(__pyx_self);

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_3cgl_4shutdown(CYTHON_UNUSED PyObject *__pyx_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("shutdown", 0);

  /* "cgl_wrapper.pyx":276
 * 
 * def shutdown():
 *     CGL_shutdown()             # <<<<<<<<<<<<<<
 * 
 * def utils_sleep(milliseconds: int):
 */
  CGL_shutdown();

  /* "cgl_wrapper.pyx":275
 *     return CGL_init()
 * 
 * def shutdown():             # <<<<<<<<<<<<<<
 *     CGL_shutdown()
 * 
 */

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cgl_wrapper.pyx":278
 *     CGL_shutdown()
 * 
 * def utils_sleep(milliseconds: int):             # <<<<<<<<<<<<<<
 *     CGL_utils_sleep(milliseconds)
 * 
 */

/* Python wrapper */
static PyObject *__pyx_pw_3cgl_7utils_sleep(PyObject *__pyx_self, PyObject *__pyx_v_milliseconds); /*proto*/
static PyMethodDef __pyx_mdef_3cgl_7utils_sleep = {"utils_sleep", (PyCFunction)__pyx_pw_3cgl_7utils_sleep, METH_O, 0};
static PyObject *__pyx_pw_3cgl_7utils_sleep(PyObject *__pyx_self, PyObject *__pyx_v_milliseconds) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("utils_sleep (wrapper)", 0);
  __pyx_r = __pyx_pf_3cgl_6utils_sleep(__pyx_self, ((PyObject *)__pyx_v_milliseconds));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_3cgl_6utils_sleep(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_milliseconds) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  CGL_sizei __pyx_t_1;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("utils_sleep", 0);

  /* "cgl_wrapper.pyx":279
 * 
 * def utils_sleep(milliseconds: int):
 *     CGL_utils_sleep(milliseconds)             # <<<<<<<<<<<<<<
 * 
 * def utils_read_file(path: str) -> bytes:
 */
  __pyx_t_1 = __Pyx_PyInt_As_uint64_t(__pyx_v_milliseconds); if (unlikely((__pyx_t_1 == ((CGL_sizei)-1)) && PyErr_Occurred())) __PYX_ERR(0, 279, __pyx_L1_error)
  CGL_utils_sleep(__pyx_t_1);

  /* "cgl_wrapper.pyx":278
 *     CGL_shutdown()
 * 
 * def utils_sleep(milliseconds: int):             # <<<<<<<<<<<<<<
 *     CGL_utils_sleep(milliseconds)
 * 
 */

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_AddTraceback("cgl.utils_sleep", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cgl_wrapper.pyx":281
 *     CGL_utils_sleep(milliseconds)
 * 
 * def utils_read_file(path: str) -> bytes:             # <<<<<<<<<<<<<<
 *     cdef CGL_sizei size
 *     cdef CGL_byte* data = CGL_utils_read_file(path.encode(), &size)
 */

/* Python wrapper */
static PyObject *__pyx_pw_3cgl_9utils_read_file(PyObject *__pyx_self, PyObject *__pyx_v_path); /*proto*/
static PyMethodDef __pyx_mdef_3cgl_9utils_read_file = {"utils_read_file", (PyCFunction)__pyx_pw_3cgl_9utils_read_file, METH_O, 0};
static PyObject *__pyx_pw_3cgl_9utils_read_file(PyObject *__pyx_self, PyObject *__pyx_v_path) {
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("utils_read_file (wrapper)", 0);
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_path), (&PyString_Type), 1, "path", 1))) __PYX_ERR(0, 281, __pyx_L1_error)
  __pyx_r = __pyx_pf_3cgl_8utils_read_file(__pyx_self, ((PyObject*)__pyx_v_path));

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_3cgl_8utils_read_file(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_path) {
  CGL_sizei __pyx_v_size;
  CGL_byte *__pyx_v_data;
  PyObject *__pyx_v_result = NULL;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  char const *__pyx_t_2;
  int __pyx_t_3;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("utils_read_file", 0);

  /* "cgl_wrapper.pyx":283
 * def utils_read_file(path: str) -> bytes:
 *     cdef CGL_sizei size
 *     cdef CGL_byte* data = CGL_utils_read_file(path.encode(), &size)             # <<<<<<<<<<<<<<
 *     if data is NULL:
 *         raise MemoryError()
 */
  __pyx_t_1 = __Pyx_CallUnboundCMethod0(&__pyx_umethod_PyString_Type_encode, __pyx_v_path); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 283, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = __Pyx_PyObject_AsString(__pyx_t_1); if (unlikely((!__pyx_t_2) && PyErr_Occurred())) __PYX_ERR(0, 283, __pyx_L1_error)
  __pyx_v_data = CGL_utils_read_file(__pyx_t_2, (&__pyx_v_size));
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "cgl_wrapper.pyx":284
 *     cdef CGL_sizei size
 *     cdef CGL_byte* data = CGL_utils_read_file(path.encode(), &size)
 *     if data is NULL:             # <<<<<<<<<<<<<<
 *         raise MemoryError()
 *     result = copy.deepcopy(data[:size])
 */
  __pyx_t_3 = ((__pyx_v_data == NULL) != 0);
  if (unlikely(__pyx_t_3)) {

    /* "cgl_wrapper.pyx":285
 *     cdef CGL_byte* data = CGL_utils_read_file(path.encode(), &size)
 *     if data is NULL:
 *         raise MemoryError()             # <<<<<<<<<<<<<<
 *     result = copy.deepcopy(data[:size])
 *     with nogil:
 */
    PyErr_NoMemory(); __PYX_ERR(0, 285, __pyx_L1_error)

    /* "cgl_wrapper.pyx":284
 *     cdef CGL_sizei size
 *     cdef CGL_byte* data = CGL_utils_read_file(path.encode(), &size)
 *     if data is NULL:             # <<<<<<<<<<<<<<
 *         raise MemoryError()
 *     result = copy.deepcopy(data[:size])
 */
  }

  /* "cgl_wrapper.pyx":286
 *     if data is NULL:
 *         raise MemoryError()
 *     result = copy.deepcopy(data[:size])             # <<<<<<<<<<<<<<
 *     with nogil:
 *         stdlib.free(data)
 */
  __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_n_s_copy); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 286, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_n_s_deepcopy); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 286, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __pyx_t_4 = __Pyx_PyBytes_FromStringAndSize(__pyx_v_data + 0, __pyx_v_size - 0); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 286, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_6 = NULL;
  if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_5))) {
    __pyx_t_6 = PyMethod_GET_SELF(__pyx_t_5);
    if (likely(__pyx_t_6)) {
      PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_5);
      __Pyx_INCREF(__pyx_t_6);
      __Pyx_INCREF(function);
      __Pyx_DECREF_SET(__pyx_t_5, function);
    }
  }
  __pyx_t_1 = (__pyx_t_6) ? __Pyx_PyObject_Call2Args(__pyx_t_5, __pyx_t_6, __pyx_t_4) : __Pyx_PyObject_CallOneArg(__pyx_t_5, __pyx_t_4);
  __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 286, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
  __pyx_v_result = __pyx_t_1;
  __pyx_t_1 = 0;

  /* "cgl_wrapper.pyx":287
 *         raise MemoryError()
 *     result = copy.deepcopy(data[:size])
 *     with nogil:             # <<<<<<<<<<<<<<
 *         stdlib.free(data)
 *     return result
 */
  {
      #ifdef WITH_THREAD
      PyThreadState *_save;
      Py_UNBLOCK_THREADS
      __Pyx_FastGIL_Remember();
      #endif
      /*try:*/ {

        /* "cgl_wrapper.pyx":288
 *     result = copy.deepcopy(data[:size])
 *     with nogil:
 *         stdlib.free(data)             # <<<<<<<<<<<<<<
 *     return result
 * 
 */
        free(__pyx_v_data);
      }

      /* "cgl_wrapper.pyx":287
 *         raise MemoryError()
 *     result = copy.deepcopy(data[:size])
 *     with nogil:             # <<<<<<<<<<<<<<
 *         stdlib.free(data)
 *     return result
 */
      /*finally:*/ {
        /*normal exit:*/{
          #ifdef WITH_THREAD
          __Pyx_FastGIL_Forget();
          Py_BLOCK_THREADS
          #endif
          goto __pyx_L6;
        }
        __pyx_L6:;
      }
  }

  /* "cgl_wrapper.pyx":289
 *     with nogil:
 *         stdlib.free(data)
 *     return result             # <<<<<<<<<<<<<<
 * 
 * def utils_get_file_size(path: str) -> int:
 */
  __Pyx_XDECREF(__pyx_r);
  if (!(likely(PyBytes_CheckExact(__pyx_v_result))||((__pyx_v_result) == Py_None)||((void)PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "bytes", Py_TYPE(__pyx_v_result)->tp_name), 0))) __PYX_ERR(0, 289, __pyx_L1_error)
  __Pyx_INCREF(__pyx_v_result);
  __pyx_r = ((PyObject*)__pyx_v_result);
  goto __pyx_L0;

  /* "cgl_wrapper.pyx":281
 *     CGL_utils_sleep(milliseconds)
 * 
 * def utils_read_file(path: str) -> bytes:             # <<<<<<<<<<<<<<
 *     cdef CGL_sizei size
 *     cdef CGL_byte* data = CGL_utils_read_file(path.encode(), &size)
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_AddTraceback("cgl.utils_read_file", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_result);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cgl_wrapper.pyx":291
 *     return result
 * 
 * def utils_get_file_size(path: str) -> int:             # <<<<<<<<<<<<<<
 *     return CGL_utils_get_file_size(path.encode())
 * 
 */

/* Python wrapper */
static PyObject *__pyx_pw_3cgl_11utils_get_file_size(PyObject *__pyx_self, PyObject *__pyx_v_path); /*proto*/
static PyMethodDef __pyx_mdef_3cgl_11utils_get_file_size = {"utils_get_file_size", (PyCFunction)__pyx_pw_3cgl_11utils_get_file_size, METH_O, 0};
static PyObject *__pyx_pw_3cgl_11utils_get_file_size(PyObject *__pyx_self, PyObject *__pyx_v_path) {
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("utils_get_file_size (wrapper)", 0);
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_path), (&PyString_Type), 1, "path", 1))) __PYX_ERR(0, 291, __pyx_L1_error)
  __pyx_r = __pyx_pf_3cgl_10utils_get_file_size(__pyx_self, ((PyObject*)__pyx_v_path));

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_3cgl_10utils_get_file_size(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_path) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  CGL_byte const *__pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("utils_get_file_size", 0);

  /* "cgl_wrapper.pyx":292
 * 
 * def utils_get_file_size(path: str) -> int:
 *     return CGL_utils_get_file_size(path.encode())             # <<<<<<<<<<<<<<
 * 
 * def utils_append_file(path: str, data: bytes) -> bool:
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_CallUnboundCMethod0(&__pyx_umethod_PyString_Type_encode, __pyx_v_path); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 292, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = __Pyx_PyObject_AsString(__pyx_t_1); if (unlikely((!__pyx_t_2) && PyErr_Occurred())) __PYX_ERR(0, 292, __pyx_L1_error)
  __pyx_t_3 = __Pyx_PyInt_From_uint64_t(CGL_utils_get_file_size(__pyx_t_2)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 292, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_r = __pyx_t_3;
  __pyx_t_3 = 0;
  goto __pyx_L0;

  /* "cgl_wrapper.pyx":291
 *     return result
 * 
 * def utils_get_file_size(path: str) -> int:             # <<<<<<<<<<<<<<
 *     return CGL_utils_get_file_size(path.encode())
 * 
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_AddTraceback("cgl.utils_get_file_size", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cgl_wrapper.pyx":294
 *     return CGL_utils_get_file_size(path.encode())
 * 
 * def utils_append_file(path: str, data: bytes) -> bool:             # <<<<<<<<<<<<<<
 *     return CGL_utils_append_file(path.encode(), data, len(data))
 * 
 */

/* Python wrapper */
static PyObject *__pyx_pw_3cgl_13utils_append_file(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static PyMethodDef __pyx_mdef_3cgl_13utils_append_file = {"utils_append_file", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_3cgl_13utils_append_file, METH_VARARGS|METH_KEYWORDS, 0};
static PyObject *__pyx_pw_3cgl_13utils_append_file(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  PyObject *__pyx_v_path = 0;
  PyObject *__pyx_v_data = 0;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("utils_append_file (wrapper)", 0);
  {
    static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_path,&__pyx_n_s_data,0};
    PyObject* values[2] = {0,0};
    if (unlikely(__pyx_kwds)) {
      Py_ssize_t kw_args;
      const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
      switch (pos_args) {
        case  2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
        CYTHON_FALLTHROUGH;
        case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      kw_args = PyDict_Size(__pyx_kwds);
      switch (pos_args) {
        case  0:
        if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_path)) != 0)) kw_args--;
        else goto __pyx_L5_argtuple_error;
        CYTHON_FALLTHROUGH;
        case  1:
        if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_data)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("utils_append_file", 1, 2, 2, 1); __PYX_ERR(0, 294, __pyx_L3_error)
        }
      }
      if (unlikely(kw_args > 0)) {
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "utils_append_file") < 0)) __PYX_ERR(0, 294, __pyx_L3_error)
      }
    } else if (PyTuple_GET_SIZE(__pyx_args) != 2) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
      values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
    }
    __pyx_v_path = ((PyObject*)values[0]);
    __pyx_v_data = ((PyObject*)values[1]);
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("utils_append_file", 1, 2, 2, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 294, __pyx_L3_error)
  __pyx_L3_error:;
  __Pyx_AddTraceback("cgl.utils_append_file", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_path), (&PyString_Type), 1, "path", 1))) __PYX_ERR(0, 294, __pyx_L1_error)
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_data), (&PyBytes_Type), 1, "data", 1))) __PYX_ERR(0, 294, __pyx_L1_error)
  __pyx_r = __pyx_pf_3cgl_12utils_append_file(__pyx_self, __pyx_v_path, __pyx_v_data);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_3cgl_12utils_append_file(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_path, PyObject *__pyx_v_data) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  CGL_byte const *__pyx_t_2;
  CGL_byte const *__pyx_t_3;
  Py_ssize_t __pyx_t_4;
  PyObject *__pyx_t_5 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("utils_append_file", 0);

  /* "cgl_wrapper.pyx":295
 * 
 * def utils_append_file(path: str, data: bytes) -> bool:
 *     return CGL_utils_append_file(path.encode(), data, len(data))             # <<<<<<<<<<<<<<
 * 
 * def utils_write_file(path : str, data : bytes) -> bool:
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_CallUnboundCMethod0(&__pyx_umethod_PyString_Type_encode, __pyx_v_path); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 295, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = __Pyx_PyObject_AsString(__pyx_t_1); if (unlikely((!__pyx_t_2) && PyErr_Occurred())) __PYX_ERR(0, 295, __pyx_L1_error)
  if (unlikely(__pyx_v_data == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "expected bytes, NoneType found");
    __PYX_ERR(0, 295, __pyx_L1_error)
  }
  __pyx_t_3 = __Pyx_PyBytes_AsString(__pyx_v_data); if (unlikely((!__pyx_t_3) && PyErr_Occurred())) __PYX_ERR(0, 295, __pyx_L1_error)
  if (unlikely(__pyx_v_data == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "object of type 'NoneType' has no len()");
    __PYX_ERR(0, 295, __pyx_L1_error)
  }
  __pyx_t_4 = PyBytes_GET_SIZE(__pyx_v_data); if (unlikely(__pyx_t_4 == ((Py_ssize_t)-1))) __PYX_ERR(0, 295, __pyx_L1_error)
  __pyx_t_5 = __Pyx_PyBool_FromLong(CGL_utils_append_file(__pyx_t_2, __pyx_t_3, __pyx_t_4)); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 295, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_r = __pyx_t_5;
  __pyx_t_5 = 0;
  goto __pyx_L0;

  /* "cgl_wrapper.pyx":294
 *     return CGL_utils_get_file_size(path.encode())
 * 
 * def utils_append_file(path: str, data: bytes) -> bool:             # <<<<<<<<<<<<<<
 *     return CGL_utils_append_file(path.encode(), data, len(data))
 * 
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("cgl.utils_append_file", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cgl_wrapper.pyx":297
 *     return CGL_utils_append_file(path.encode(), data, len(data))
 * 
 * def utils_write_file(path : str, data : bytes) -> bool:             # <<<<<<<<<<<<<<
 *     return CGL_utils_write_file(path.encode(), data, len(data))
 * 
 */

/* Python wrapper */
static PyObject *__pyx_pw_3cgl_15utils_write_file(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static PyMethodDef __pyx_mdef_3cgl_15utils_write_file = {"utils_write_file", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_3cgl_15utils_write_file, METH_VARARGS|METH_KEYWORDS, 0};
static PyObject *__pyx_pw_3cgl_15utils_write_file(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  PyObject *__pyx_v_path = 0;
  PyObject *__pyx_v_data = 0;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("utils_write_file (wrapper)", 0);
  {
    static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_path,&__pyx_n_s_data,0};
    PyObject* values[2] = {0,0};
    if (unlikely(__pyx_kwds)) {
      Py_ssize_t kw_args;
      const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
      switch (pos_args) {
        case  2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
        CYTHON_FALLTHROUGH;
        case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      kw_args = PyDict_Size(__pyx_kwds);
      switch (pos_args) {
        case  0:
        if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_path)) != 0)) kw_args--;
        else goto __pyx_L5_argtuple_error;
        CYTHON_FALLTHROUGH;
        case  1:
        if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_data)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("utils_write_file", 1, 2, 2, 1); __PYX_ERR(0, 297, __pyx_L3_error)
        }
      }
      if (unlikely(kw_args > 0)) {
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "utils_write_file") < 0)) __PYX_ERR(0, 297, __pyx_L3_error)
      }
    } else if (PyTuple_GET_SIZE(__pyx_args) != 2) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
      values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
    }
    __pyx_v_path = ((PyObject*)values[0]);
    __pyx_v_data = ((PyObject*)values[1]);
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("utils_write_file", 1, 2, 2, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 297, __pyx_L3_error)
  __pyx_L3_error:;
  __Pyx_AddTraceback("cgl.utils_write_file", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_path), (&PyString_Type), 1, "path", 1))) __PYX_ERR(0, 297, __pyx_L1_error)
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_data), (&PyBytes_Type), 1, "data", 1))) __PYX_ERR(0, 297, __pyx_L1_error)
  __pyx_r = __pyx_pf_3cgl_14utils_write_file(__pyx_self, __pyx_v_path, __pyx_v_data);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_3cgl_14utils_write_file(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_path, PyObject *__pyx_v_data) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  CGL_byte const *__pyx_t_2;
  CGL_byte const *__pyx_t_3;
  Py_ssize_t __pyx_t_4;
  PyObject *__pyx_t_5 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("utils_write_file", 0);

  /* "cgl_wrapper.pyx":298
 * 
 * def utils_write_file(path : str, data : bytes) -> bool:
 *     return CGL_utils_write_file(path.encode(), data, len(data))             # <<<<<<<<<<<<<<
 * 
 * def utils_get_time() -> float:
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_CallUnboundCMethod0(&__pyx_umethod_PyString_Type_encode, __pyx_v_path); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 298, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = __Pyx_PyObject_AsString(__pyx_t_1); if (unlikely((!__pyx_t_2) && PyErr_Occurred())) __PYX_ERR(0, 298, __pyx_L1_error)
  if (unlikely(__pyx_v_data == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "expected bytes, NoneType found");
    __PYX_ERR(0, 298, __pyx_L1_error)
  }
  __pyx_t_3 = __Pyx_PyBytes_AsString(__pyx_v_data); if (unlikely((!__pyx_t_3) && PyErr_Occurred())) __PYX_ERR(0, 298, __pyx_L1_error)
  if (unlikely(__pyx_v_data == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "object of type 'NoneType' has no len()");
    __PYX_ERR(0, 298, __pyx_L1_error)
  }
  __pyx_t_4 = PyBytes_GET_SIZE(__pyx_v_data); if (unlikely(__pyx_t_4 == ((Py_ssize_t)-1))) __PYX_ERR(0, 298, __pyx_L1_error)
  __pyx_t_5 = __Pyx_PyBool_FromLong(CGL_utils_write_file(__pyx_t_2, __pyx_t_3, __pyx_t_4)); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 298, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_r = __pyx_t_5;
  __pyx_t_5 = 0;
  goto __pyx_L0;

  /* "cgl_wrapper.pyx":297
 *     return CGL_utils_append_file(path.encode(), data, len(data))
 * 
 * def utils_write_file(path : str, data : bytes) -> bool:             # <<<<<<<<<<<<<<
 *     return CGL_utils_write_file(path.encode(), data, len(data))
 * 
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("cgl.utils_write_file", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cgl_wrapper.pyx":300
 *     return CGL_utils_write_file(path.encode(), data, len(data))
 * 
 * def utils_get_time() -> float:             # <<<<<<<<<<<<<<
 *     return CGL_utils_get_time()
 * 
 */

/* Python wrapper */
static PyObject *__pyx_pw_3cgl_17utils_get_time(PyObject *__pyx_self, CYTHON_UNUSED PyObject *unused); /*proto*/
static PyMethodDef __pyx_mdef_3cgl_17utils_get_time = {"utils_get_time", (PyCFunction)__pyx_pw_3cgl_17utils_get_time, METH_NOARGS, 0};
static PyObject *__pyx_pw_3cgl_17utils_get_time(PyObject *__pyx_self, CYTHON_UNUSED PyObject *unused) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("utils_get_time (wrapper)", 0);
  __pyx_r = __pyx_pf_3cgl_16utils_get_time(__pyx_self);

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_3cgl_16utils_get_time(CYTHON_UNUSED PyObject *__pyx_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("utils_get_time", 0);

  /* "cgl_wrapper.pyx":301
 * 
 * def utils_get_time() -> float:
 *     return CGL_utils_get_time()             # <<<<<<<<<<<<<<
 * 
 * def utils_get_timestamp() -> str:
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = PyFloat_FromDouble(CGL_utils_get_time()); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 301, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cgl_wrapper.pyx":300
 *     return CGL_utils_write_file(path.encode(), data, len(data))
 * 
 * def utils_get_time() -> float:             # <<<<<<<<<<<<<<
 *     return CGL_utils_get_time()
 * 
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cgl.utils_get_time", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cgl_wrapper.pyx":303
 *     return CGL_utils_get_time()
 * 
 * def utils_get_timestamp() -> str:             # <<<<<<<<<<<<<<
 *     cdef CGL_byte buffer[128]
 *     CGL_utils_get_timestamp(buffer)
 */

/* Python wrapper */
static PyObject *__pyx_pw_3cgl_19utils_get_timestamp(PyObject *__pyx_self, CYTHON_UNUSED PyObject *unused); /*proto*/
static PyMethodDef __pyx_mdef_3cgl_19utils_get_timestamp = {"utils_get_timestamp", (PyCFunction)__pyx_pw_3cgl_19utils_get_timestamp, METH_NOARGS, 0};
static PyObject *__pyx_pw_3cgl_19utils_get_timestamp(PyObject *__pyx_self, CYTHON_UNUSED PyObject *unused) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("utils_get_timestamp (wrapper)", 0);
  __pyx_r = __pyx_pf_3cgl_18utils_get_timestamp(__pyx_self);

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_3cgl_18utils_get_timestamp(CYTHON_UNUSED PyObject *__pyx_self) {
  CGL_byte __pyx_v_buffer[0x80];
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("utils_get_timestamp", 0);

  /* "cgl_wrapper.pyx":305
 * def utils_get_timestamp() -> str:
 *     cdef CGL_byte buffer[128]
 *     CGL_utils_get_timestamp(buffer)             # <<<<<<<<<<<<<<
 *     return buffer.decode()
 * 
 */
  CGL_utils_get_timestamp(__pyx_v_buffer);

  /* "cgl_wrapper.pyx":306
 *     cdef CGL_byte buffer[128]
 *     CGL_utils_get_timestamp(buffer)
 *     return buffer.decode()             # <<<<<<<<<<<<<<
 * 
 * def utils_is_little_endian() -> bool:
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_decode_c_string(__pyx_v_buffer, 0, strlen(__pyx_v_buffer), NULL, NULL, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 306, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  if (!(likely(PyString_CheckExact(__pyx_t_1))||((void)PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "str", Py_TYPE(__pyx_t_1)->tp_name), 0))) __PYX_ERR(0, 306, __pyx_L1_error)
  __pyx_r = ((PyObject*)__pyx_t_1);
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cgl_wrapper.pyx":303
 *     return CGL_utils_get_time()
 * 
 * def utils_get_timestamp() -> str:             # <<<<<<<<<<<<<<
 *     cdef CGL_byte buffer[128]
 *     CGL_utils_get_timestamp(buffer)
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cgl.utils_get_timestamp", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cgl_wrapper.pyx":308
 *     return buffer.decode()
 * 
 * def utils_is_little_endian() -> bool:             # <<<<<<<<<<<<<<
 *     return CGL_utils_is_little_endian()
 * 
 */

/* Python wrapper */
static PyObject *__pyx_pw_3cgl_21utils_is_little_endian(PyObject *__pyx_self, CYTHON_UNUSED PyObject *unused); /*proto*/
static PyMethodDef __pyx_mdef_3cgl_21utils_is_little_endian = {"utils_is_little_endian", (PyCFunction)__pyx_pw_3cgl_21utils_is_little_endian, METH_NOARGS, 0};
static PyObject *__pyx_pw_3cgl_21utils_is_little_endian(PyObject *__pyx_self, CYTHON_UNUSED PyObject *unused) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("utils_is_little_endian (wrapper)", 0);
  __pyx_r = __pyx_pf_3cgl_20utils_is_little_endian(__pyx_self);

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_3cgl_20utils_is_little_endian(CYTHON_UNUSED PyObject *__pyx_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("utils_is_little_endian", 0);

  /* "cgl_wrapper.pyx":309
 * 
 * def utils_is_little_endian() -> bool:
 *     return CGL_utils_is_little_endian()             # <<<<<<<<<<<<<<
 * 
 * def utils_is_big_endian() -> bool:
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyBool_FromLong(CGL_utils_is_little_endian()); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 309, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cgl_wrapper.pyx":308
 *     return buffer.decode()
 * 
 * def utils_is_little_endian() -> bool:             # <<<<<<<<<<<<<<
 *     return CGL_utils_is_little_endian()
 * 
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cgl.utils_is_little_endian", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cgl_wrapper.pyx":311
 *     return CGL_utils_is_little_endian()
 * 
 * def utils_is_big_endian() -> bool:             # <<<<<<<<<<<<<<
 *     return not CGL_utils_is_little_endian()
 * 
 */

/* Python wrapper */
static PyObject *__pyx_pw_3cgl_23utils_is_big_endian(PyObject *__pyx_self, CYTHON_UNUSED PyObject *unused); /*proto*/
static PyMethodDef __pyx_mdef_3cgl_23utils_is_big_endian = {"utils_is_big_endian", (PyCFunction)__pyx_pw_3cgl_23utils_is_big_endian, METH_NOARGS, 0};
static PyObject *__pyx_pw_3cgl_23utils_is_big_endian(PyObject *__pyx_self, CYTHON_UNUSED PyObject *unused) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("utils_is_big_endian (wrapper)", 0);
  __pyx_r = __pyx_pf_3cgl_22utils_is_big_endian(__pyx_self);

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_3cgl_22utils_is_big_endian(CYTHON_UNUSED PyObject *__pyx_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("utils_is_big_endian", 0);

  /* "cgl_wrapper.pyx":312
 * 
 * def utils_is_big_endian() -> bool:
 *     return not CGL_utils_is_little_endian()             # <<<<<<<<<<<<<<
 * 
 * def utils_get_random_with_probability(probabilities) -> int:
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyBool_FromLong((!(CGL_utils_is_little_endian() != 0))); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 312, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cgl_wrapper.pyx":311
 *     return CGL_utils_is_little_endian()
 * 
 * def utils_is_big_endian() -> bool:             # <<<<<<<<<<<<<<
 *     return not CGL_utils_is_little_endian()
 * 
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cgl.utils_is_big_endian", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cgl_wrapper.pyx":314
 *     return not CGL_utils_is_little_endian()
 * 
 * def utils_get_random_with_probability(probabilities) -> int:             # <<<<<<<<<<<<<<
 *     cdef CGL_float* c_probabilities
 *     c_probabilities = <CGL_float*>stdlib.malloc(len(probabilities) * sizeof(CGL_float))
 */

/* Python wrapper */
static PyObject *__pyx_pw_3cgl_25utils_get_random_with_probability(PyObject *__pyx_self, PyObject *__pyx_v_probabilities); /*proto*/
static PyMethodDef __pyx_mdef_3cgl_25utils_get_random_with_probability = {"utils_get_random_with_probability", (PyCFunction)__pyx_pw_3cgl_25utils_get_random_with_probability, METH_O, 0};
static PyObject *__pyx_pw_3cgl_25utils_get_random_with_probability(PyObject *__pyx_self, PyObject *__pyx_v_probabilities) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("utils_get_random_with_probability (wrapper)", 0);
  __pyx_r = __pyx_pf_3cgl_24utils_get_random_with_probability(__pyx_self, ((PyObject *)__pyx_v_probabilities));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_3cgl_24utils_get_random_with_probability(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_probabilities) {
  CGL_float *__pyx_v_c_probabilities;
  Py_ssize_t __pyx_v_i;
  CGL_sizei __pyx_v_result;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  Py_ssize_t __pyx_t_1;
  int __pyx_t_2;
  Py_ssize_t __pyx_t_3;
  Py_ssize_t __pyx_t_4;
  PyObject *__pyx_t_5 = NULL;
  CGL_float __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("utils_get_random_with_probability", 0);

  /* "cgl_wrapper.pyx":316
 * def utils_get_random_with_probability(probabilities) -> int:
 *     cdef CGL_float* c_probabilities
 *     c_probabilities = <CGL_float*>stdlib.malloc(len(probabilities) * sizeof(CGL_float))             # <<<<<<<<<<<<<<
 *     if c_probabilities is NULL:
 *         raise MemoryError()
 */
  __pyx_t_1 = PyObject_Length(__pyx_v_probabilities); if (unlikely(__pyx_t_1 == ((Py_ssize_t)-1))) __PYX_ERR(0, 316, __pyx_L1_error)
  __pyx_v_c_probabilities = ((CGL_float *)malloc((__pyx_t_1 * (sizeof(CGL_float)))));

  /* "cgl_wrapper.pyx":317
 *     cdef CGL_float* c_probabilities
 *     c_probabilities = <CGL_float*>stdlib.malloc(len(probabilities) * sizeof(CGL_float))
 *     if c_probabilities is NULL:             # <<<<<<<<<<<<<<
 *         raise MemoryError()
 *     for i in range(len(probabilities)):
 */
  __pyx_t_2 = ((__pyx_v_c_probabilities == NULL) != 0);
  if (unlikely(__pyx_t_2)) {

    /* "cgl_wrapper.pyx":318
 *     c_probabilities = <CGL_float*>stdlib.malloc(len(probabilities) * sizeof(CGL_float))
 *     if c_probabilities is NULL:
 *         raise MemoryError()             # <<<<<<<<<<<<<<
 *     for i in range(len(probabilities)):
 *         c_probabilities[i] = probabilities[i]
 */
    PyErr_NoMemory(); __PYX_ERR(0, 318, __pyx_L1_error)

    /* "cgl_wrapper.pyx":317
 *     cdef CGL_float* c_probabilities
 *     c_probabilities = <CGL_float*>stdlib.malloc(len(probabilities) * sizeof(CGL_float))
 *     if c_probabilities is NULL:             # <<<<<<<<<<<<<<
 *         raise MemoryError()
 *     for i in range(len(probabilities)):
 */
  }

  /* "cgl_wrapper.pyx":319
 *     if c_probabilities is NULL:
 *         raise MemoryError()
 *     for i in range(len(probabilities)):             # <<<<<<<<<<<<<<
 *         c_probabilities[i] = probabilities[i]
 *     result = CGL_utils_get_random_with_probability(c_probabilities, len(probabilities))
 */
  __pyx_t_1 = PyObject_Length(__pyx_v_probabilities); if (unlikely(__pyx_t_1 == ((Py_ssize_t)-1))) __PYX_ERR(0, 319, __pyx_L1_error)
  __pyx_t_3 = __pyx_t_1;
  for (__pyx_t_4 = 0; __pyx_t_4 < __pyx_t_3; __pyx_t_4+=1) {
    __pyx_v_i = __pyx_t_4;

    /* "cgl_wrapper.pyx":320
 *         raise MemoryError()
 *     for i in range(len(probabilities)):
 *         c_probabilities[i] = probabilities[i]             # <<<<<<<<<<<<<<
 *     result = CGL_utils_get_random_with_probability(c_probabilities, len(probabilities))
 *     with nogil:
 */
    __pyx_t_5 = __Pyx_GetItemInt(__pyx_v_probabilities, __pyx_v_i, Py_ssize_t, 1, PyInt_FromSsize_t, 0, 1, 1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 320, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __pyx_t_6 = __pyx_PyFloat_AsFloat(__pyx_t_5); if (unlikely((__pyx_t_6 == ((CGL_float)-1)) && PyErr_Occurred())) __PYX_ERR(0, 320, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    (__pyx_v_c_probabilities[__pyx_v_i]) = __pyx_t_6;
  }

  /* "cgl_wrapper.pyx":321
 *     for i in range(len(probabilities)):
 *         c_probabilities[i] = probabilities[i]
 *     result = CGL_utils_get_random_with_probability(c_probabilities, len(probabilities))             # <<<<<<<<<<<<<<
 *     with nogil:
 *         stdlib.free(c_probabilities)
 */
  __pyx_t_1 = PyObject_Length(__pyx_v_probabilities); if (unlikely(__pyx_t_1 == ((Py_ssize_t)-1))) __PYX_ERR(0, 321, __pyx_L1_error)
  __pyx_v_result = CGL_utils_get_random_with_probability(__pyx_v_c_probabilities, __pyx_t_1);

  /* "cgl_wrapper.pyx":322
 *         c_probabilities[i] = probabilities[i]
 *     result = CGL_utils_get_random_with_probability(c_probabilities, len(probabilities))
 *     with nogil:             # <<<<<<<<<<<<<<
 *         stdlib.free(c_probabilities)
 *     return result
 */
  {
      #ifdef WITH_THREAD
      PyThreadState *_save;
      Py_UNBLOCK_THREADS
      __Pyx_FastGIL_Remember();
      #endif
      /*try:*/ {

        /* "cgl_wrapper.pyx":323
 *     result = CGL_utils_get_random_with_probability(c_probabilities, len(probabilities))
 *     with nogil:
 *         stdlib.free(c_probabilities)             # <<<<<<<<<<<<<<
 *     return result
 * 
 */
        free(__pyx_v_c_probabilities);
      }

      /* "cgl_wrapper.pyx":322
 *         c_probabilities[i] = probabilities[i]
 *     result = CGL_utils_get_random_with_probability(c_probabilities, len(probabilities))
 *     with nogil:             # <<<<<<<<<<<<<<
 *         stdlib.free(c_probabilities)
 *     return result
 */
      /*finally:*/ {
        /*normal exit:*/{
          #ifdef WITH_THREAD
          __Pyx_FastGIL_Forget();
          Py_BLOCK_THREADS
          #endif
          goto __pyx_L8;
        }
        __pyx_L8:;
      }
  }

  /* "cgl_wrapper.pyx":324
 *     with nogil:
 *         stdlib.free(c_probabilities)
 *     return result             # <<<<<<<<<<<<<<
 * 
 * def utils_reverse_bytes(data: bytes):
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_5 = __Pyx_PyInt_From_uint64_t(__pyx_v_result); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 324, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __pyx_r = __pyx_t_5;
  __pyx_t_5 = 0;
  goto __pyx_L0;

  /* "cgl_wrapper.pyx":314
 *     return not CGL_utils_is_little_endian()
 * 
 * def utils_get_random_with_probability(probabilities) -> int:             # <<<<<<<<<<<<<<
 *     cdef CGL_float* c_probabilities
 *     c_probabilities = <CGL_float*>stdlib.malloc(len(probabilities) * sizeof(CGL_float))
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("cgl.utils_get_random_with_probability", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cgl_wrapper.pyx":326
 *     return result
 * 
 * def utils_reverse_bytes(data: bytes):             # <<<<<<<<<<<<<<
 *     CGL_utils_reverse_bytes(<void*>data, len(data))
 * 
 */

/* Python wrapper */
static PyObject *__pyx_pw_3cgl_27utils_reverse_bytes(PyObject *__pyx_self, PyObject *__pyx_v_data); /*proto*/
static PyMethodDef __pyx_mdef_3cgl_27utils_reverse_bytes = {"utils_reverse_bytes", (PyCFunction)__pyx_pw_3cgl_27utils_reverse_bytes, METH_O, 0};
static PyObject *__pyx_pw_3cgl_27utils_reverse_bytes(PyObject *__pyx_self, PyObject *__pyx_v_data) {
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("utils_reverse_bytes (wrapper)", 0);
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_data), (&PyBytes_Type), 1, "data", 1))) __PYX_ERR(0, 326, __pyx_L1_error)
  __pyx_r = __pyx_pf_3cgl_26utils_reverse_bytes(__pyx_self, ((PyObject*)__pyx_v_data));

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_3cgl_26utils_reverse_bytes(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_data) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  Py_ssize_t __pyx_t_1;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("utils_reverse_bytes", 0);

  /* "cgl_wrapper.pyx":327
 * 
 * def utils_reverse_bytes(data: bytes):
 *     CGL_utils_reverse_bytes(<void*>data, len(data))             # <<<<<<<<<<<<<<
 * 
 * def utils_little_endian_to_current(data : bytes):
 */
  if (unlikely(__pyx_v_data == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "object of type 'NoneType' has no len()");
    __PYX_ERR(0, 327, __pyx_L1_error)
  }
  __pyx_t_1 = PyBytes_GET_SIZE(__pyx_v_data); if (unlikely(__pyx_t_1 == ((Py_ssize_t)-1))) __PYX_ERR(0, 327, __pyx_L1_error)
  CGL_utils_reverse_bytes(((void *)__pyx_v_data), __pyx_t_1);

  /* "cgl_wrapper.pyx":326
 *     return result
 * 
 * def utils_reverse_bytes(data: bytes):             # <<<<<<<<<<<<<<
 *     CGL_utils_reverse_bytes(<void*>data, len(data))
 * 
 */

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_AddTraceback("cgl.utils_reverse_bytes", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cgl_wrapper.pyx":329
 *     CGL_utils_reverse_bytes(<void*>data, len(data))
 * 
 * def utils_little_endian_to_current(data : bytes):             # <<<<<<<<<<<<<<
 *     CGL_utils_little_endian_to_current(<void*>data, len(data))
 * 
 */

/* Python wrapper */
static PyObject *__pyx_pw_3cgl_29utils_little_endian_to_current(PyObject *__pyx_self, PyObject *__pyx_v_data); /*proto*/
static PyMethodDef __pyx_mdef_3cgl_29utils_little_endian_to_current = {"utils_little_endian_to_current", (PyCFunction)__pyx_pw_3cgl_29utils_little_endian_to_current, METH_O, 0};
static PyObject *__pyx_pw_3cgl_29utils_little_endian_to_current(PyObject *__pyx_self, PyObject *__pyx_v_data) {
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("utils_little_endian_to_current (wrapper)", 0);
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_data), (&PyBytes_Type), 1, "data", 1))) __PYX_ERR(0, 329, __pyx_L1_error)
  __pyx_r = __pyx_pf_3cgl_28utils_little_endian_to_current(__pyx_self, ((PyObject*)__pyx_v_data));

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_3cgl_28utils_little_endian_to_current(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_data) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  Py_ssize_t __pyx_t_1;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("utils_little_endian_to_current", 0);

  /* "cgl_wrapper.pyx":330
 * 
 * def utils_little_endian_to_current(data : bytes):
 *     CGL_utils_little_endian_to_current(<void*>data, len(data))             # <<<<<<<<<<<<<<
 * 
 * def utils_big_endian_to_current(data : bytes):
 */
  if (unlikely(__pyx_v_data == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "object of type 'NoneType' has no len()");
    __PYX_ERR(0, 330, __pyx_L1_error)
  }
  __pyx_t_1 = PyBytes_GET_SIZE(__pyx_v_data); if (unlikely(__pyx_t_1 == ((Py_ssize_t)-1))) __PYX_ERR(0, 330, __pyx_L1_error)
  CGL_utils_little_endian_to_current(((void *)__pyx_v_data), __pyx_t_1);

  /* "cgl_wrapper.pyx":329
 *     CGL_utils_reverse_bytes(<void*>data, len(data))
 * 
 * def utils_little_endian_to_current(data : bytes):             # <<<<<<<<<<<<<<
 *     CGL_utils_little_endian_to_current(<void*>data, len(data))
 * 
 */

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_AddTraceback("cgl.utils_little_endian_to_current", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cgl_wrapper.pyx":332
 *     CGL_utils_little_endian_to_current(<void*>data, len(data))
 * 
 * def utils_big_endian_to_current(data : bytes):             # <<<<<<<<<<<<<<
 *     CGL_utils_big_endian_to_current(<void*>data, len(data))
 * 
 */

/* Python wrapper */
static PyObject *__pyx_pw_3cgl_31utils_big_endian_to_current(PyObject *__pyx_self, PyObject *__pyx_v_data); /*proto*/
static PyMethodDef __pyx_mdef_3cgl_31utils_big_endian_to_current = {"utils_big_endian_to_current", (PyCFunction)__pyx_pw_3cgl_31utils_big_endian_to_current, METH_O, 0};
static PyObject *__pyx_pw_3cgl_31utils_big_endian_to_current(PyObject *__pyx_self, PyObject *__pyx_v_data) {
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("utils_big_endian_to_current (wrapper)", 0);
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_data), (&PyBytes_Type), 1, "data", 1))) __PYX_ERR(0, 332, __pyx_L1_error)
  __pyx_r = __pyx_pf_3cgl_30utils_big_endian_to_current(__pyx_self, ((PyObject*)__pyx_v_data));

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_3cgl_30utils_big_endian_to_current(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_data) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  Py_ssize_t __pyx_t_1;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("utils_big_endian_to_current", 0);

  /* "cgl_wrapper.pyx":333
 * 
 * def utils_big_endian_to_current(data : bytes):
 *     CGL_utils_big_endian_to_current(<void*>data, len(data))             # <<<<<<<<<<<<<<
 * 
 * def utils_fast_srand(seed: int):
 */
  if (unlikely(__pyx_v_data == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "object of type 'NoneType' has no len()");
    __PYX_ERR(0, 333, __pyx_L1_error)
  }
  __pyx_t_1 = PyBytes_GET_SIZE(__pyx_v_data); if (unlikely(__pyx_t_1 == ((Py_ssize_t)-1))) __PYX_ERR(0, 333, __pyx_L1_error)
  CGL_utils_big_endian_to_current(((void *)__pyx_v_data), __pyx_t_1);

  /* "cgl_wrapper.pyx":332
 *     CGL_utils_little_endian_to_current(<void*>data, len(data))
 * 
 * def utils_big_endian_to_current(data : bytes):             # <<<<<<<<<<<<<<
 *     CGL_utils_big_endian_to_current(<void*>data, len(data))
 * 
 */

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_AddTraceback("cgl.utils_big_endian_to_current", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cgl_wrapper.pyx":335
 *     CGL_utils_big_endian_to_current(<void*>data, len(data))
 * 
 * def utils_fast_srand(seed: int):             # <<<<<<<<<<<<<<
 *     CGL_utils_fast_srand(seed)
 * 
 */

/* Python wrapper */
static PyObject *__pyx_pw_3cgl_33utils_fast_srand(PyObject *__pyx_self, PyObject *__pyx_v_seed); /*proto*/
static PyMethodDef __pyx_mdef_3cgl_33utils_fast_srand = {"utils_fast_srand", (PyCFunction)__pyx_pw_3cgl_33utils_fast_srand, METH_O, 0};
static PyObject *__pyx_pw_3cgl_33utils_fast_srand(PyObject *__pyx_self, PyObject *__pyx_v_seed) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("utils_fast_srand (wrapper)", 0);
  __pyx_r = __pyx_pf_3cgl_32utils_fast_srand(__pyx_self, ((PyObject *)__pyx_v_seed));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_3cgl_32utils_fast_srand(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_seed) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  CGL_int __pyx_t_1;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("utils_fast_srand", 0);

  /* "cgl_wrapper.pyx":336
 * 
 * def utils_fast_srand(seed: int):
 *     CGL_utils_fast_srand(seed)             # <<<<<<<<<<<<<<
 * 
 * def utils_fast_rand() -> int:
 */
  __pyx_t_1 = __Pyx_PyInt_As_CGL_int(__pyx_v_seed); if (unlikely((__pyx_t_1 == ((CGL_int)-1)) && PyErr_Occurred())) __PYX_ERR(0, 336, __pyx_L1_error)
  CGL_utils_fast_srand(__pyx_t_1);

  /* "cgl_wrapper.pyx":335
 *     CGL_utils_big_endian_to_current(<void*>data, len(data))
 * 
 * def utils_fast_srand(seed: int):             # <<<<<<<<<<<<<<
 *     CGL_utils_fast_srand(seed)
 * 
 */

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_AddTraceback("cgl.utils_fast_srand", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cgl_wrapper.pyx":338
 *     CGL_utils_fast_srand(seed)
 * 
 * def utils_fast_rand() -> int:             # <<<<<<<<<<<<<<
 *     return CGL_utils_fast_rand()
 * 
 */

/* Python wrapper */
static PyObject *__pyx_pw_3cgl_35utils_fast_rand(PyObject *__pyx_self, CYTHON_UNUSED PyObject *unused); /*proto*/
static PyMethodDef __pyx_mdef_3cgl_35utils_fast_rand = {"utils_fast_rand", (PyCFunction)__pyx_pw_3cgl_35utils_fast_rand, METH_NOARGS, 0};
static PyObject *__pyx_pw_3cgl_35utils_fast_rand(PyObject *__pyx_self, CYTHON_UNUSED PyObject *unused) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("utils_fast_rand (wrapper)", 0);
  __pyx_r = __pyx_pf_3cgl_34utils_fast_rand(__pyx_self);

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_3cgl_34utils_fast_rand(CYTHON_UNUSED PyObject *__pyx_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("utils_fast_rand", 0);

  /* "cgl_wrapper.pyx":339
 * 
 * def utils_fast_rand() -> int:
 *     return CGL_utils_fast_rand()             # <<<<<<<<<<<<<<
 * 
 * def utils_xorshf96() -> int:
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyInt_From_CGL_int(CGL_utils_fast_rand()); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 339, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cgl_wrapper.pyx":338
 *     CGL_utils_fast_srand(seed)
 * 
 * def utils_fast_rand() -> int:             # <<<<<<<<<<<<<<
 *     return CGL_utils_fast_rand()
 * 
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cgl.utils_fast_rand", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cgl_wrapper.pyx":341
 *     return CGL_utils_fast_rand()
 * 
 * def utils_xorshf96() -> int:             # <<<<<<<<<<<<<<
 *     return CGL_utils_xorshf96()
 * 
 */

/* Python wrapper */
static PyObject *__pyx_pw_3cgl_37utils_xorshf96(PyObject *__pyx_self, CYTHON_UNUSED PyObject *unused); /*proto*/
static PyMethodDef __pyx_mdef_3cgl_37utils_xorshf96 = {"utils_xorshf96", (PyCFunction)__pyx_pw_3cgl_37utils_xorshf96, METH_NOARGS, 0};
static PyObject *__pyx_pw_3cgl_37utils_xorshf96(PyObject *__pyx_self, CYTHON_UNUSED PyObject *unused) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("utils_xorshf96 (wrapper)", 0);
  __pyx_r = __pyx_pf_3cgl_36utils_xorshf96(__pyx_self);

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_3cgl_36utils_xorshf96(CYTHON_UNUSED PyObject *__pyx_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("utils_xorshf96", 0);

  /* "cgl_wrapper.pyx":342
 * 
 * def utils_xorshf96() -> int:
 *     return CGL_utils_xorshf96()             # <<<<<<<<<<<<<<
 * 
 * def utils_srand31(seed: int):
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyInt_From_CGL_ulong(CGL_utils_xorshf96()); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 342, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cgl_wrapper.pyx":341
 *     return CGL_utils_fast_rand()
 * 
 * def utils_xorshf96() -> int:             # <<<<<<<<<<<<<<
 *     return CGL_utils_xorshf96()
 * 
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cgl.utils_xorshf96", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cgl_wrapper.pyx":344
 *     return CGL_utils_xorshf96()
 * 
 * def utils_srand31(seed: int):             # <<<<<<<<<<<<<<
 *     CGL_utils_srand31(seed)
 * 
 */

/* Python wrapper */
static PyObject *__pyx_pw_3cgl_39utils_srand31(PyObject *__pyx_self, PyObject *__pyx_v_seed); /*proto*/
static PyMethodDef __pyx_mdef_3cgl_39utils_srand31 = {"utils_srand31", (PyCFunction)__pyx_pw_3cgl_39utils_srand31, METH_O, 0};
static PyObject *__pyx_pw_3cgl_39utils_srand31(PyObject *__pyx_self, PyObject *__pyx_v_seed) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("utils_srand31 (wrapper)", 0);
  __pyx_r = __pyx_pf_3cgl_38utils_srand31(__pyx_self, ((PyObject *)__pyx_v_seed));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_3cgl_38utils_srand31(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_seed) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  CGL_uint __pyx_t_1;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("utils_srand31", 0);

  /* "cgl_wrapper.pyx":345
 * 
 * def utils_srand31(seed: int):
 *     CGL_utils_srand31(seed)             # <<<<<<<<<<<<<<
 * 
 * def utils_rand31() -> int:
 */
  __pyx_t_1 = __Pyx_PyInt_As_CGL_uint(__pyx_v_seed); if (unlikely((__pyx_t_1 == ((CGL_uint)-1)) && PyErr_Occurred())) __PYX_ERR(0, 345, __pyx_L1_error)
  CGL_utils_srand31(__pyx_t_1);

  /* "cgl_wrapper.pyx":344
 *     return CGL_utils_xorshf96()
 * 
 * def utils_srand31(seed: int):             # <<<<<<<<<<<<<<
 *     CGL_utils_srand31(seed)
 * 
 */

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_AddTraceback("cgl.utils_srand31", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cgl_wrapper.pyx":347
 *     CGL_utils_srand31(seed)
 * 
 * def utils_rand31() -> int:             # <<<<<<<<<<<<<<
 *     return CGL_utils_rand31()
 * 
 */

/* Python wrapper */
static PyObject *__pyx_pw_3cgl_41utils_rand31(PyObject *__pyx_self, CYTHON_UNUSED PyObject *unused); /*proto*/
static PyMethodDef __pyx_mdef_3cgl_41utils_rand31 = {"utils_rand31", (PyCFunction)__pyx_pw_3cgl_41utils_rand31, METH_NOARGS, 0};
static PyObject *__pyx_pw_3cgl_41utils_rand31(PyObject *__pyx_self, CYTHON_UNUSED PyObject *unused) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("utils_rand31 (wrapper)", 0);
  __pyx_r = __pyx_pf_3cgl_40utils_rand31(__pyx_self);

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_3cgl_40utils_rand31(CYTHON_UNUSED PyObject *__pyx_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("utils_rand31", 0);

  /* "cgl_wrapper.pyx":348
 * 
 * def utils_rand31() -> int:
 *     return CGL_utils_rand31()             # <<<<<<<<<<<<<<
 * 
 * def utils_sigmoid(x: float) -> float:
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyInt_From_CGL_uint(CGL_utils_rand31()); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 348, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cgl_wrapper.pyx":347
 *     CGL_utils_srand31(seed)
 * 
 * def utils_rand31() -> int:             # <<<<<<<<<<<<<<
 *     return CGL_utils_rand31()
 * 
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cgl.utils_rand31", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cgl_wrapper.pyx":350
 *     return CGL_utils_rand31()
 * 
 * def utils_sigmoid(x: float) -> float:             # <<<<<<<<<<<<<<
 *     CGL_utils_sigmoid(x)
 * 
 */

/* Python wrapper */
static PyObject *__pyx_pw_3cgl_43utils_sigmoid(PyObject *__pyx_self, PyObject *__pyx_arg_x); /*proto*/
static PyMethodDef __pyx_mdef_3cgl_43utils_sigmoid = {"utils_sigmoid", (PyCFunction)__pyx_pw_3cgl_43utils_sigmoid, METH_O, 0};
static PyObject *__pyx_pw_3cgl_43utils_sigmoid(PyObject *__pyx_self, PyObject *__pyx_arg_x) {
  double __pyx_v_x;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("utils_sigmoid (wrapper)", 0);
  assert(__pyx_arg_x); {
    __pyx_v_x = __pyx_PyFloat_AsDouble(__pyx_arg_x); if (unlikely((__pyx_v_x == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 350, __pyx_L3_error)
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  __Pyx_AddTraceback("cgl.utils_sigmoid", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_3cgl_42utils_sigmoid(__pyx_self, ((double)__pyx_v_x));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_3cgl_42utils_sigmoid(CYTHON_UNUSED PyObject *__pyx_self, double __pyx_v_x) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("utils_sigmoid", 0);

  /* "cgl_wrapper.pyx":351
 * 
 * def utils_sigmoid(x: float) -> float:
 *     CGL_utils_sigmoid(x)             # <<<<<<<<<<<<<<
 * 
 * def utils_sigmoid_derivative(x: float) -> float:
 */
  (void)(CGL_utils_sigmoid(__pyx_v_x));

  /* "cgl_wrapper.pyx":350
 *     return CGL_utils_rand31()
 * 
 * def utils_sigmoid(x: float) -> float:             # <<<<<<<<<<<<<<
 *     CGL_utils_sigmoid(x)
 * 
 */

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cgl_wrapper.pyx":353
 *     CGL_utils_sigmoid(x)
 * 
 * def utils_sigmoid_derivative(x: float) -> float:             # <<<<<<<<<<<<<<
 *     CGL_utils_sigmoid_derivative(x)
 * 
 */

/* Python wrapper */
static PyObject *__pyx_pw_3cgl_45utils_sigmoid_derivative(PyObject *__pyx_self, PyObject *__pyx_arg_x); /*proto*/
static PyMethodDef __pyx_mdef_3cgl_45utils_sigmoid_derivative = {"utils_sigmoid_derivative", (PyCFunction)__pyx_pw_3cgl_45utils_sigmoid_derivative, METH_O, 0};
static PyObject *__pyx_pw_3cgl_45utils_sigmoid_derivative(PyObject *__pyx_self, PyObject *__pyx_arg_x) {
  double __pyx_v_x;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("utils_sigmoid_derivative (wrapper)", 0);
  assert(__pyx_arg_x); {
    __pyx_v_x = __pyx_PyFloat_AsDouble(__pyx_arg_x); if (unlikely((__pyx_v_x == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 353, __pyx_L3_error)
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  __Pyx_AddTraceback("cgl.utils_sigmoid_derivative", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_3cgl_44utils_sigmoid_derivative(__pyx_self, ((double)__pyx_v_x));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_3cgl_44utils_sigmoid_derivative(CYTHON_UNUSED PyObject *__pyx_self, double __pyx_v_x) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("utils_sigmoid_derivative", 0);

  /* "cgl_wrapper.pyx":354
 * 
 * def utils_sigmoid_derivative(x: float) -> float:
 *     CGL_utils_sigmoid_derivative(x)             # <<<<<<<<<<<<<<
 * 
 * def utils_relu(x: float) -> float:
 */
  (void)(CGL_utils_sigmoid_derivative(__pyx_v_x));

  /* "cgl_wrapper.pyx":353
 *     CGL_utils_sigmoid(x)
 * 
 * def utils_sigmoid_derivative(x: float) -> float:             # <<<<<<<<<<<<<<
 *     CGL_utils_sigmoid_derivative(x)
 * 
 */

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cgl_wrapper.pyx":356
 *     CGL_utils_sigmoid_derivative(x)
 * 
 * def utils_relu(x: float) -> float:             # <<<<<<<<<<<<<<
 *     CGL_utils_relu(x)
 * 
 */

/* Python wrapper */
static PyObject *__pyx_pw_3cgl_47utils_relu(PyObject *__pyx_self, PyObject *__pyx_arg_x); /*proto*/
static PyMethodDef __pyx_mdef_3cgl_47utils_relu = {"utils_relu", (PyCFunction)__pyx_pw_3cgl_47utils_relu, METH_O, 0};
static PyObject *__pyx_pw_3cgl_47utils_relu(PyObject *__pyx_self, PyObject *__pyx_arg_x) {
  double __pyx_v_x;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("utils_relu (wrapper)", 0);
  assert(__pyx_arg_x); {
    __pyx_v_x = __pyx_PyFloat_AsDouble(__pyx_arg_x); if (unlikely((__pyx_v_x == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 356, __pyx_L3_error)
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  __Pyx_AddTraceback("cgl.utils_relu", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_3cgl_46utils_relu(__pyx_self, ((double)__pyx_v_x));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_3cgl_46utils_relu(CYTHON_UNUSED PyObject *__pyx_self, double __pyx_v_x) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("utils_relu", 0);

  /* "cgl_wrapper.pyx":357
 * 
 * def utils_relu(x: float) -> float:
 *     CGL_utils_relu(x)             # <<<<<<<<<<<<<<
 * 
 * def utils_relu_derivative(x: float) -> float:
 */
  (void)(CGL_utils_relu(__pyx_v_x));

  /* "cgl_wrapper.pyx":356
 *     CGL_utils_sigmoid_derivative(x)
 * 
 * def utils_relu(x: float) -> float:             # <<<<<<<<<<<<<<
 *     CGL_utils_relu(x)
 * 
 */

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cgl_wrapper.pyx":359
 *     CGL_utils_relu(x)
 * 
 * def utils_relu_derivative(x: float) -> float:             # <<<<<<<<<<<<<<
 *     CGL_utils_relu_derivative(x)
 * 
 */

/* Python wrapper */
static PyObject *__pyx_pw_3cgl_49utils_relu_derivative(PyObject *__pyx_self, PyObject *__pyx_arg_x); /*proto*/
static PyMethodDef __pyx_mdef_3cgl_49utils_relu_derivative = {"utils_relu_derivative", (PyCFunction)__pyx_pw_3cgl_49utils_relu_derivative, METH_O, 0};
static PyObject *__pyx_pw_3cgl_49utils_relu_derivative(PyObject *__pyx_self, PyObject *__pyx_arg_x) {
  double __pyx_v_x;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("utils_relu_derivative (wrapper)", 0);
  assert(__pyx_arg_x); {
    __pyx_v_x = __pyx_PyFloat_AsDouble(__pyx_arg_x); if (unlikely((__pyx_v_x == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 359, __pyx_L3_error)
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  __Pyx_AddTraceback("cgl.utils_relu_derivative", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_3cgl_48utils_relu_derivative(__pyx_self, ((double)__pyx_v_x));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_3cgl_48utils_relu_derivative(CYTHON_UNUSED PyObject *__pyx_self, double __pyx_v_x) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("utils_relu_derivative", 0);

  /* "cgl_wrapper.pyx":360
 * 
 * def utils_relu_derivative(x: float) -> float:
 *     CGL_utils_relu_derivative(x)             # <<<<<<<<<<<<<<
 * 
 * def utils_tanh(x: float) -> float:
 */
  (void)(CGL_utils_relu_derivative(__pyx_v_x));

  /* "cgl_wrapper.pyx":359
 *     CGL_utils_relu(x)
 * 
 * def utils_relu_derivative(x: float) -> float:             # <<<<<<<<<<<<<<
 *     CGL_utils_relu_derivative(x)
 * 
 */

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cgl_wrapper.pyx":362
 *     CGL_utils_relu_derivative(x)
 * 
 * def utils_tanh(x: float) -> float:             # <<<<<<<<<<<<<<
 *     CGL_utils_tanh(x)
 * 
 */

/* Python wrapper */
static PyObject *__pyx_pw_3cgl_51utils_tanh(PyObject *__pyx_self, PyObject *__pyx_arg_x); /*proto*/
static PyMethodDef __pyx_mdef_3cgl_51utils_tanh = {"utils_tanh", (PyCFunction)__pyx_pw_3cgl_51utils_tanh, METH_O, 0};
static PyObject *__pyx_pw_3cgl_51utils_tanh(PyObject *__pyx_self, PyObject *__pyx_arg_x) {
  double __pyx_v_x;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("utils_tanh (wrapper)", 0);
  assert(__pyx_arg_x); {
    __pyx_v_x = __pyx_PyFloat_AsDouble(__pyx_arg_x); if (unlikely((__pyx_v_x == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 362, __pyx_L3_error)
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  __Pyx_AddTraceback("cgl.utils_tanh", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_3cgl_50utils_tanh(__pyx_self, ((double)__pyx_v_x));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_3cgl_50utils_tanh(CYTHON_UNUSED PyObject *__pyx_self, double __pyx_v_x) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("utils_tanh", 0);

  /* "cgl_wrapper.pyx":363
 * 
 * def utils_tanh(x: float) -> float:
 *     CGL_utils_tanh(x)             # <<<<<<<<<<<<<<
 * 
 * def utils_tanh_derivative(x: float) -> float:
 */
  (void)(CGL_utils_tanh(__pyx_v_x));

  /* "cgl_wrapper.pyx":362
 *     CGL_utils_relu_derivative(x)
 * 
 * def utils_tanh(x: float) -> float:             # <<<<<<<<<<<<<<
 *     CGL_utils_tanh(x)
 * 
 */

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cgl_wrapper.pyx":365
 *     CGL_utils_tanh(x)
 * 
 * def utils_tanh_derivative(x: float) -> float:             # <<<<<<<<<<<<<<
 *     CGL_utils_tanh_derivative(x)
 * 
 */

/* Python wrapper */
static PyObject *__pyx_pw_3cgl_53utils_tanh_derivative(PyObject *__pyx_self, PyObject *__pyx_arg_x); /*proto*/
static PyMethodDef __pyx_mdef_3cgl_53utils_tanh_derivative = {"utils_tanh_derivative", (PyCFunction)__pyx_pw_3cgl_53utils_tanh_derivative, METH_O, 0};
static PyObject *__pyx_pw_3cgl_53utils_tanh_derivative(PyObject *__pyx_self, PyObject *__pyx_arg_x) {
  double __pyx_v_x;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("utils_tanh_derivative (wrapper)", 0);
  assert(__pyx_arg_x); {
    __pyx_v_x = __pyx_PyFloat_AsDouble(__pyx_arg_x); if (unlikely((__pyx_v_x == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 365, __pyx_L3_error)
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  __Pyx_AddTraceback("cgl.utils_tanh_derivative", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_3cgl_52utils_tanh_derivative(__pyx_self, ((double)__pyx_v_x));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_3cgl_52utils_tanh_derivative(CYTHON_UNUSED PyObject *__pyx_self, double __pyx_v_x) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("utils_tanh_derivative", 0);

  /* "cgl_wrapper.pyx":366
 * 
 * def utils_tanh_derivative(x: float) -> float:
 *     CGL_utils_tanh_derivative(x)             # <<<<<<<<<<<<<<
 * 
 * def utils_step(x: float) -> float:
 */
  (void)(CGL_utils_tanh_derivative(__pyx_v_x));

  /* "cgl_wrapper.pyx":365
 *     CGL_utils_tanh(x)
 * 
 * def utils_tanh_derivative(x: float) -> float:             # <<<<<<<<<<<<<<
 *     CGL_utils_tanh_derivative(x)
 * 
 */

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cgl_wrapper.pyx":368
 *     CGL_utils_tanh_derivative(x)
 * 
 * def utils_step(x: float) -> float:             # <<<<<<<<<<<<<<
 *     CGL_utils_step(x)
 * 
 */

/* Python wrapper */
static PyObject *__pyx_pw_3cgl_55utils_step(PyObject *__pyx_self, PyObject *__pyx_arg_x); /*proto*/
static PyMethodDef __pyx_mdef_3cgl_55utils_step = {"utils_step", (PyCFunction)__pyx_pw_3cgl_55utils_step, METH_O, 0};
static PyObject *__pyx_pw_3cgl_55utils_step(PyObject *__pyx_self, PyObject *__pyx_arg_x) {
  double __pyx_v_x;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("utils_step (wrapper)", 0);
  assert(__pyx_arg_x); {
    __pyx_v_x = __pyx_PyFloat_AsDouble(__pyx_arg_x); if (unlikely((__pyx_v_x == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 368, __pyx_L3_error)
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  __Pyx_AddTraceback("cgl.utils_step", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_3cgl_54utils_step(__pyx_self, ((double)__pyx_v_x));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_3cgl_54utils_step(CYTHON_UNUSED PyObject *__pyx_self, double __pyx_v_x) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("utils_step", 0);

  /* "cgl_wrapper.pyx":369
 * 
 * def utils_step(x: float) -> float:
 *     CGL_utils_step(x)             # <<<<<<<<<<<<<<
 * 
 * def utils_step_derivative(x: float) -> float:
 */
  (void)(CGL_utils_step(__pyx_v_x));

  /* "cgl_wrapper.pyx":368
 *     CGL_utils_tanh_derivative(x)
 * 
 * def utils_step(x: float) -> float:             # <<<<<<<<<<<<<<
 *     CGL_utils_step(x)
 * 
 */

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cgl_wrapper.pyx":371
 *     CGL_utils_step(x)
 * 
 * def utils_step_derivative(x: float) -> float:             # <<<<<<<<<<<<<<
 *     CGL_utils_step_derivative(x)
 * 
 */

/* Python wrapper */
static PyObject *__pyx_pw_3cgl_57utils_step_derivative(PyObject *__pyx_self, PyObject *__pyx_arg_x); /*proto*/
static PyMethodDef __pyx_mdef_3cgl_57utils_step_derivative = {"utils_step_derivative", (PyCFunction)__pyx_pw_3cgl_57utils_step_derivative, METH_O, 0};
static PyObject *__pyx_pw_3cgl_57utils_step_derivative(PyObject *__pyx_self, PyObject *__pyx_arg_x) {
  double __pyx_v_x;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("utils_step_derivative (wrapper)", 0);
  assert(__pyx_arg_x); {
    __pyx_v_x = __pyx_PyFloat_AsDouble(__pyx_arg_x); if (unlikely((__pyx_v_x == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 371, __pyx_L3_error)
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  __Pyx_AddTraceback("cgl.utils_step_derivative", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_3cgl_56utils_step_derivative(__pyx_self, ((double)__pyx_v_x));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_3cgl_56utils_step_derivative(CYTHON_UNUSED PyObject *__pyx_self, double __pyx_v_x) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("utils_step_derivative", 0);

  /* "cgl_wrapper.pyx":372
 * 
 * def utils_step_derivative(x: float) -> float:
 *     CGL_utils_step_derivative(x)             # <<<<<<<<<<<<<<
 * 
 * def utils_relu_leaky(x: float) -> float:
 */
  (void)(CGL_utils_step_derivative(__pyx_v_x));

  /* "cgl_wrapper.pyx":371
 *     CGL_utils_step(x)
 * 
 * def utils_step_derivative(x: float) -> float:             # <<<<<<<<<<<<<<
 *     CGL_utils_step_derivative(x)
 * 
 */

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cgl_wrapper.pyx":374
 *     CGL_utils_step_derivative(x)
 * 
 * def utils_relu_leaky(x: float) -> float:             # <<<<<<<<<<<<<<
 *     CGL_utils_relu_leaky(x)
 * 
 */

/* Python wrapper */
static PyObject *__pyx_pw_3cgl_59utils_relu_leaky(PyObject *__pyx_self, PyObject *__pyx_arg_x); /*proto*/
static PyMethodDef __pyx_mdef_3cgl_59utils_relu_leaky = {"utils_relu_leaky", (PyCFunction)__pyx_pw_3cgl_59utils_relu_leaky, METH_O, 0};
static PyObject *__pyx_pw_3cgl_59utils_relu_leaky(PyObject *__pyx_self, PyObject *__pyx_arg_x) {
  double __pyx_v_x;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("utils_relu_leaky (wrapper)", 0);
  assert(__pyx_arg_x); {
    __pyx_v_x = __pyx_PyFloat_AsDouble(__pyx_arg_x); if (unlikely((__pyx_v_x == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 374, __pyx_L3_error)
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  __Pyx_AddTraceback("cgl.utils_relu_leaky", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_3cgl_58utils_relu_leaky(__pyx_self, ((double)__pyx_v_x));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_3cgl_58utils_relu_leaky(CYTHON_UNUSED PyObject *__pyx_self, double __pyx_v_x) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("utils_relu_leaky", 0);

  /* "cgl_wrapper.pyx":375
 * 
 * def utils_relu_leaky(x: float) -> float:
 *     CGL_utils_relu_leaky(x)             # <<<<<<<<<<<<<<
 * 
 * def utils_relu_leaky_derivative(x: float) -> float:
 */
  (void)(CGL_utils_relu_leaky(__pyx_v_x));

  /* "cgl_wrapper.pyx":374
 *     CGL_utils_step_derivative(x)
 * 
 * def utils_relu_leaky(x: float) -> float:             # <<<<<<<<<<<<<<
 *     CGL_utils_relu_leaky(x)
 * 
 */

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cgl_wrapper.pyx":377
 *     CGL_utils_relu_leaky(x)
 * 
 * def utils_relu_leaky_derivative(x: float) -> float:             # <<<<<<<<<<<<<<
 *     CGL_utils_relu_leaky_derivative(x)
 * 
 */

/* Python wrapper */
static PyObject *__pyx_pw_3cgl_61utils_relu_leaky_derivative(PyObject *__pyx_self, PyObject *__pyx_arg_x); /*proto*/
static PyMethodDef __pyx_mdef_3cgl_61utils_relu_leaky_derivative = {"utils_relu_leaky_derivative", (PyCFunction)__pyx_pw_3cgl_61utils_relu_leaky_derivative, METH_O, 0};
static PyObject *__pyx_pw_3cgl_61utils_relu_leaky_derivative(PyObject *__pyx_self, PyObject *__pyx_arg_x) {
  double __pyx_v_x;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("utils_relu_leaky_derivative (wrapper)", 0);
  assert(__pyx_arg_x); {
    __pyx_v_x = __pyx_PyFloat_AsDouble(__pyx_arg_x); if (unlikely((__pyx_v_x == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 377, __pyx_L3_error)
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  __Pyx_AddTraceback("cgl.utils_relu_leaky_derivative", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_3cgl_60utils_relu_leaky_derivative(__pyx_self, ((double)__pyx_v_x));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_3cgl_60utils_relu_leaky_derivative(CYTHON_UNUSED PyObject *__pyx_self, double __pyx_v_x) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("utils_relu_leaky_derivative", 0);

  /* "cgl_wrapper.pyx":378
 * 
 * def utils_relu_leaky_derivative(x: float) -> float:
 *     CGL_utils_relu_leaky_derivative(x)             # <<<<<<<<<<<<<<
 * 
 * def utils_relu_smooth(x: float) -> float:
 */
  (void)(CGL_utils_relu_leaky_derivative(__pyx_v_x));

  /* "cgl_wrapper.pyx":377
 *     CGL_utils_relu_leaky(x)
 * 
 * def utils_relu_leaky_derivative(x: float) -> float:             # <<<<<<<<<<<<<<
 *     CGL_utils_relu_leaky_derivative(x)
 * 
 */

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cgl_wrapper.pyx":380
 *     CGL_utils_relu_leaky_derivative(x)
 * 
 * def utils_relu_smooth(x: float) -> float:             # <<<<<<<<<<<<<<
 *     CGL_utils_relu_smooth(x)
 * 
 */

/* Python wrapper */
static PyObject *__pyx_pw_3cgl_63utils_relu_smooth(PyObject *__pyx_self, PyObject *__pyx_arg_x); /*proto*/
static PyMethodDef __pyx_mdef_3cgl_63utils_relu_smooth = {"utils_relu_smooth", (PyCFunction)__pyx_pw_3cgl_63utils_relu_smooth, METH_O, 0};
static PyObject *__pyx_pw_3cgl_63utils_relu_smooth(PyObject *__pyx_self, PyObject *__pyx_arg_x) {
  double __pyx_v_x;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("utils_relu_smooth (wrapper)", 0);
  assert(__pyx_arg_x); {
    __pyx_v_x = __pyx_PyFloat_AsDouble(__pyx_arg_x); if (unlikely((__pyx_v_x == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 380, __pyx_L3_error)
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  __Pyx_AddTraceback("cgl.utils_relu_smooth", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_3cgl_62utils_relu_smooth(__pyx_self, ((double)__pyx_v_x));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_3cgl_62utils_relu_smooth(CYTHON_UNUSED PyObject *__pyx_self, double __pyx_v_x) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("utils_relu_smooth", 0);

  /* "cgl_wrapper.pyx":381
 * 
 * def utils_relu_smooth(x: float) -> float:
 *     CGL_utils_relu_smooth(x)             # <<<<<<<<<<<<<<
 * 
 * def utils_relu_smooth_derivative(x: float) -> float:
 */
  (void)(CGL_utils_relu_smooth(__pyx_v_x));

  /* "cgl_wrapper.pyx":380
 *     CGL_utils_relu_leaky_derivative(x)
 * 
 * def utils_relu_smooth(x: float) -> float:             # <<<<<<<<<<<<<<
 *     CGL_utils_relu_smooth(x)
 * 
 */

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cgl_wrapper.pyx":383
 *     CGL_utils_relu_smooth(x)
 * 
 * def utils_relu_smooth_derivative(x: float) -> float:             # <<<<<<<<<<<<<<
 *     CGL_utils_relu_smooth_derivative(x)
 * 
 */

/* Python wrapper */
static PyObject *__pyx_pw_3cgl_65utils_relu_smooth_derivative(PyObject *__pyx_self, PyObject *__pyx_arg_x); /*proto*/
static PyMethodDef __pyx_mdef_3cgl_65utils_relu_smooth_derivative = {"utils_relu_smooth_derivative", (PyCFunction)__pyx_pw_3cgl_65utils_relu_smooth_derivative, METH_O, 0};
static PyObject *__pyx_pw_3cgl_65utils_relu_smooth_derivative(PyObject *__pyx_self, PyObject *__pyx_arg_x) {
  double __pyx_v_x;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("utils_relu_smooth_derivative (wrapper)", 0);
  assert(__pyx_arg_x); {
    __pyx_v_x = __pyx_PyFloat_AsDouble(__pyx_arg_x); if (unlikely((__pyx_v_x == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 383, __pyx_L3_error)
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  __Pyx_AddTraceback("cgl.utils_relu_smooth_derivative", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_3cgl_64utils_relu_smooth_derivative(__pyx_self, ((double)__pyx_v_x));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_3cgl_64utils_relu_smooth_derivative(CYTHON_UNUSED PyObject *__pyx_self, double __pyx_v_x) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("utils_relu_smooth_derivative", 0);

  /* "cgl_wrapper.pyx":384
 * 
 * def utils_relu_smooth_derivative(x: float) -> float:
 *     CGL_utils_relu_smooth_derivative(x)             # <<<<<<<<<<<<<<
 * 
 * 
 */
  (void)(CGL_utils_relu_smooth_derivative(__pyx_v_x));

  /* "cgl_wrapper.pyx":383
 *     CGL_utils_relu_smooth(x)
 * 
 * def utils_relu_smooth_derivative(x: float) -> float:             # <<<<<<<<<<<<<<
 *     CGL_utils_relu_smooth_derivative(x)
 * 
 */

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cgl_wrapper.pyx":393
 * CONSOLE_COLOR_BLUE = 4
 * 
 * def console_set_color(color: int):             # <<<<<<<<<<<<<<
 *     if color < 0 or color > 4:
 *         raise ValueError()
 */

/* Python wrapper */
static PyObject *__pyx_pw_3cgl_67console_set_color(PyObject *__pyx_self, PyObject *__pyx_v_color); /*proto*/
static PyMethodDef __pyx_mdef_3cgl_67console_set_color = {"console_set_color", (PyCFunction)__pyx_pw_3cgl_67console_set_color, METH_O, 0};
static PyObject *__pyx_pw_3cgl_67console_set_color(PyObject *__pyx_self, PyObject *__pyx_v_color) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("console_set_color (wrapper)", 0);
  __pyx_r = __pyx_pf_3cgl_66console_set_color(__pyx_self, ((PyObject *)__pyx_v_color));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_3cgl_66console_set_color(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_color) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  int __pyx_t_3;
  uint8_t __pyx_t_4;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("console_set_color", 0);

  /* "cgl_wrapper.pyx":394
 * 
 * def console_set_color(color: int):
 *     if color < 0 or color > 4:             # <<<<<<<<<<<<<<
 *         raise ValueError()
 *     CGL_console_set_color(color)
 */
  __pyx_t_2 = PyObject_RichCompare(__pyx_v_color, __pyx_int_0, Py_LT); __Pyx_XGOTREF(__pyx_t_2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 394, __pyx_L1_error)
  __pyx_t_3 = __Pyx_PyObject_IsTrue(__pyx_t_2); if (unlikely(__pyx_t_3 < 0)) __PYX_ERR(0, 394, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  if (!__pyx_t_3) {
  } else {
    __pyx_t_1 = __pyx_t_3;
    goto __pyx_L4_bool_binop_done;
  }
  __pyx_t_2 = PyObject_RichCompare(__pyx_v_color, __pyx_int_4, Py_GT); __Pyx_XGOTREF(__pyx_t_2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 394, __pyx_L1_error)
  __pyx_t_3 = __Pyx_PyObject_IsTrue(__pyx_t_2); if (unlikely(__pyx_t_3 < 0)) __PYX_ERR(0, 394, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_t_1 = __pyx_t_3;
  __pyx_L4_bool_binop_done:;
  if (unlikely(__pyx_t_1)) {

    /* "cgl_wrapper.pyx":395
 * def console_set_color(color: int):
 *     if color < 0 or color > 4:
 *         raise ValueError()             # <<<<<<<<<<<<<<
 *     CGL_console_set_color(color)
 * 
 */
    __pyx_t_2 = __Pyx_PyObject_CallNoArg(__pyx_builtin_ValueError); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 395, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 395, __pyx_L1_error)

    /* "cgl_wrapper.pyx":394
 * 
 * def console_set_color(color: int):
 *     if color < 0 or color > 4:             # <<<<<<<<<<<<<<
 *         raise ValueError()
 *     CGL_console_set_color(color)
 */
  }

  /* "cgl_wrapper.pyx":396
 *     if color < 0 or color > 4:
 *         raise ValueError()
 *     CGL_console_set_color(color)             # <<<<<<<<<<<<<<
 * 
 * def printf_red(format: str):
 */
  __pyx_t_4 = __Pyx_PyInt_As_uint8_t(__pyx_v_color); if (unlikely((__pyx_t_4 == ((uint8_t)-1)) && PyErr_Occurred())) __PYX_ERR(0, 396, __pyx_L1_error)
  CGL_console_set_color(__pyx_t_4);

  /* "cgl_wrapper.pyx":393
 * CONSOLE_COLOR_BLUE = 4
 * 
 * def console_set_color(color: int):             # <<<<<<<<<<<<<<
 *     if color < 0 or color > 4:
 *         raise ValueError()
 */

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("cgl.console_set_color", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cgl_wrapper.pyx":398
 *     CGL_console_set_color(color)
 * 
 * def printf_red(format: str):             # <<<<<<<<<<<<<<
 *     CGL_printf_red(format.encode())
 * 
 */

/* Python wrapper */
static PyObject *__pyx_pw_3cgl_69printf_red(PyObject *__pyx_self, PyObject *__pyx_v_format); /*proto*/
static PyMethodDef __pyx_mdef_3cgl_69printf_red = {"printf_red", (PyCFunction)__pyx_pw_3cgl_69printf_red, METH_O, 0};
static PyObject *__pyx_pw_3cgl_69printf_red(PyObject *__pyx_self, PyObject *__pyx_v_format) {
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("printf_red (wrapper)", 0);
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_format), (&PyString_Type), 1, "format", 1))) __PYX_ERR(0, 398, __pyx_L1_error)
  __pyx_r = __pyx_pf_3cgl_68printf_red(__pyx_self, ((PyObject*)__pyx_v_format));

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_3cgl_68printf_red(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_format) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  char const *__pyx_t_2;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("printf_red", 0);

  /* "cgl_wrapper.pyx":399
 * 
 * def printf_red(format: str):
 *     CGL_printf_red(format.encode())             # <<<<<<<<<<<<<<
 * 
 * def printf_green(format: str):
 */
  __pyx_t_1 = __Pyx_CallUnboundCMethod0(&__pyx_umethod_PyString_Type_encode, __pyx_v_format); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 399, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = __Pyx_PyObject_AsString(__pyx_t_1); if (unlikely((!__pyx_t_2) && PyErr_Occurred())) __PYX_ERR(0, 399, __pyx_L1_error)
  CGL_printf_red(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "cgl_wrapper.pyx":398
 *     CGL_console_set_color(color)
 * 
 * def printf_red(format: str):             # <<<<<<<<<<<<<<
 *     CGL_printf_red(format.encode())
 * 
 */

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cgl.printf_red", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cgl_wrapper.pyx":401
 *     CGL_printf_red(format.encode())
 * 
 * def printf_green(format: str):             # <<<<<<<<<<<<<<
 *     CGL_printf_green(format.encode())
 * 
 */

/* Python wrapper */
static PyObject *__pyx_pw_3cgl_71printf_green(PyObject *__pyx_self, PyObject *__pyx_v_format); /*proto*/
static PyMethodDef __pyx_mdef_3cgl_71printf_green = {"printf_green", (PyCFunction)__pyx_pw_3cgl_71printf_green, METH_O, 0};
static PyObject *__pyx_pw_3cgl_71printf_green(PyObject *__pyx_self, PyObject *__pyx_v_format) {
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("printf_green (wrapper)", 0);
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_format), (&PyString_Type), 1, "format", 1))) __PYX_ERR(0, 401, __pyx_L1_error)
  __pyx_r = __pyx_pf_3cgl_70printf_green(__pyx_self, ((PyObject*)__pyx_v_format));

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_3cgl_70printf_green(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_format) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  char const *__pyx_t_2;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("printf_green", 0);

  /* "cgl_wrapper.pyx":402
 * 
 * def printf_green(format: str):
 *     CGL_printf_green(format.encode())             # <<<<<<<<<<<<<<
 * 
 * def printf_gray(format: str):
 */
  __pyx_t_1 = __Pyx_CallUnboundCMethod0(&__pyx_umethod_PyString_Type_encode, __pyx_v_format); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 402, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = __Pyx_PyObject_AsString(__pyx_t_1); if (unlikely((!__pyx_t_2) && PyErr_Occurred())) __PYX_ERR(0, 402, __pyx_L1_error)
  CGL_printf_green(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "cgl_wrapper.pyx":401
 *     CGL_printf_red(format.encode())
 * 
 * def printf_green(format: str):             # <<<<<<<<<<<<<<
 *     CGL_printf_green(format.encode())
 * 
 */

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cgl.printf_green", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cgl_wrapper.pyx":404
 *     CGL_printf_green(format.encode())
 * 
 * def printf_gray(format: str):             # <<<<<<<<<<<<<<
 *     CGL_printf_gray(format.encode())
 * 
 */

/* Python wrapper */
static PyObject *__pyx_pw_3cgl_73printf_gray(PyObject *__pyx_self, PyObject *__pyx_v_format); /*proto*/
static PyMethodDef __pyx_mdef_3cgl_73printf_gray = {"printf_gray", (PyCFunction)__pyx_pw_3cgl_73printf_gray, METH_O, 0};
static PyObject *__pyx_pw_3cgl_73printf_gray(PyObject *__pyx_self, PyObject *__pyx_v_format) {
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("printf_gray (wrapper)", 0);
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_format), (&PyString_Type), 1, "format", 1))) __PYX_ERR(0, 404, __pyx_L1_error)
  __pyx_r = __pyx_pf_3cgl_72printf_gray(__pyx_self, ((PyObject*)__pyx_v_format));

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_3cgl_72printf_gray(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_format) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  char const *__pyx_t_2;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("printf_gray", 0);

  /* "cgl_wrapper.pyx":405
 * 
 * def printf_gray(format: str):
 *     CGL_printf_gray(format.encode())             # <<<<<<<<<<<<<<
 * 
 * def printf_blue(format: str):
 */
  __pyx_t_1 = __Pyx_CallUnboundCMethod0(&__pyx_umethod_PyString_Type_encode, __pyx_v_format); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 405, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = __Pyx_PyObject_AsString(__pyx_t_1); if (unlikely((!__pyx_t_2) && PyErr_Occurred())) __PYX_ERR(0, 405, __pyx_L1_error)
  CGL_printf_gray(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "cgl_wrapper.pyx":404
 *     CGL_printf_green(format.encode())
 * 
 * def printf_gray(format: str):             # <<<<<<<<<<<<<<
 *     CGL_printf_gray(format.encode())
 * 
 */

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cgl.printf_gray", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cgl_wrapper.pyx":407
 *     CGL_printf_gray(format.encode())
 * 
 * def printf_blue(format: str):             # <<<<<<<<<<<<<<
 *     CGL_printf_blue(format.encode())
 * 
 */

/* Python wrapper */
static PyObject *__pyx_pw_3cgl_75printf_blue(PyObject *__pyx_self, PyObject *__pyx_v_format); /*proto*/
static PyMethodDef __pyx_mdef_3cgl_75printf_blue = {"printf_blue", (PyCFunction)__pyx_pw_3cgl_75printf_blue, METH_O, 0};
static PyObject *__pyx_pw_3cgl_75printf_blue(PyObject *__pyx_self, PyObject *__pyx_v_format) {
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("printf_blue (wrapper)", 0);
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_format), (&PyString_Type), 1, "format", 1))) __PYX_ERR(0, 407, __pyx_L1_error)
  __pyx_r = __pyx_pf_3cgl_74printf_blue(__pyx_self, ((PyObject*)__pyx_v_format));

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_3cgl_74printf_blue(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_format) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  char const *__pyx_t_2;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("printf_blue", 0);

  /* "cgl_wrapper.pyx":408
 * 
 * def printf_blue(format: str):
 *     CGL_printf_blue(format.encode())             # <<<<<<<<<<<<<<
 * 
 * def console_progress_bar(progress: float, width: int, prefix: str, suffix: str, complete_char: str = "#", incomplete_char: str = "_"):
 */
  __pyx_t_1 = __Pyx_CallUnboundCMethod0(&__pyx_umethod_PyString_Type_encode, __pyx_v_format); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 408, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = __Pyx_PyObject_AsString(__pyx_t_1); if (unlikely((!__pyx_t_2) && PyErr_Occurred())) __PYX_ERR(0, 408, __pyx_L1_error)
  CGL_printf_blue(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "cgl_wrapper.pyx":407
 *     CGL_printf_gray(format.encode())
 * 
 * def printf_blue(format: str):             # <<<<<<<<<<<<<<
 *     CGL_printf_blue(format.encode())
 * 
 */

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cgl.printf_blue", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cgl_wrapper.pyx":410
 *     CGL_printf_blue(format.encode())
 * 
 * def console_progress_bar(progress: float, width: int, prefix: str, suffix: str, complete_char: str = "#", incomplete_char: str = "_"):             # <<<<<<<<<<<<<<
 *     CGL_console_progress_bar(progress, width, prefix.encode(), suffix.encode(), complete_char[0], incomplete_char[0])
 * 
 */

/* Python wrapper */
static PyObject *__pyx_pw_3cgl_77console_progress_bar(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static PyMethodDef __pyx_mdef_3cgl_77console_progress_bar = {"console_progress_bar", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_3cgl_77console_progress_bar, METH_VARARGS|METH_KEYWORDS, 0};
static PyObject *__pyx_pw_3cgl_77console_progress_bar(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  double __pyx_v_progress;
  PyObject *__pyx_v_width = 0;
  PyObject *__pyx_v_prefix = 0;
  PyObject *__pyx_v_suffix = 0;
  PyObject *__pyx_v_complete_char = 0;
  PyObject *__pyx_v_incomplete_char = 0;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("console_progress_bar (wrapper)", 0);
  {
    static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_progress,&__pyx_n_s_width,&__pyx_n_s_prefix,&__pyx_n_s_suffix,&__pyx_n_s_complete_char,&__pyx_n_s_incomplete_char,0};
    PyObject* values[6] = {0,0,0,0,0,0};
    values[4] = ((PyObject*)__pyx_kp_s_);
    values[5] = ((PyObject*)__pyx_n_s__2);
    if (unlikely(__pyx_kwds)) {
      Py_ssize_t kw_args;
      const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
      switch (pos_args) {
        case  6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
        CYTHON_FALLTHROUGH;
        case  5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
        CYTHON_FALLTHROUGH;
        case  4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
        CYTHON_FALLTHROUGH;
        case  3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
        CYTHON_FALLTHROUGH;
        case  2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
        CYTHON_FALLTHROUGH;
        case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      kw_args = PyDict_Size(__pyx_kwds);
      switch (pos_args) {
        case  0:
        if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_progress)) != 0)) kw_args--;
        else goto __pyx_L5_argtuple_error;
        CYTHON_FALLTHROUGH;
        case  1:
        if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_width)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("console_progress_bar", 0, 4, 6, 1); __PYX_ERR(0, 410, __pyx_L3_error)
        }
        CYTHON_FALLTHROUGH;
        case  2:
        if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_prefix)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("console_progress_bar", 0, 4, 6, 2); __PYX_ERR(0, 410, __pyx_L3_error)
        }
        CYTHON_FALLTHROUGH;
        case  3:
        if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_suffix)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("console_progress_bar", 0, 4, 6, 3); __PYX_ERR(0, 410, __pyx_L3_error)
        }
        CYTHON_FALLTHROUGH;
        case  4:
        if (kw_args > 0) {
          PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_complete_char);
          if (value) { values[4] = value; kw_args--; }
        }
        CYTHON_FALLTHROUGH;
        case  5:
        if (kw_args > 0) {
          PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_incomplete_char);
          if (value) { values[5] = value; kw_args--; }
        }
      }
      if (unlikely(kw_args > 0)) {
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "console_progress_bar") < 0)) __PYX_ERR(0, 410, __pyx_L3_error)
      }
    } else {
      switch (PyTuple_GET_SIZE(__pyx_args)) {
        case  6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
        CYTHON_FALLTHROUGH;
        case  5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
        CYTHON_FALLTHROUGH;
        case  4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
        values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
        values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
        values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        break;
        default: goto __pyx_L5_argtuple_error;
      }
    }
    __pyx_v_progress = __pyx_PyFloat_AsDouble(values[0]); if (unlikely((__pyx_v_progress == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 410, __pyx_L3_error)
    __pyx_v_width = values[1];
    __pyx_v_prefix = ((PyObject*)values[2]);
    __pyx_v_suffix = ((PyObject*)values[3]);
    __pyx_v_complete_char = ((PyObject*)values[4]);
    __pyx_v_incomplete_char = ((PyObject*)values[5]);
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("console_progress_bar", 0, 4, 6, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 410, __pyx_L3_error)
  __pyx_L3_error:;
  __Pyx_AddTraceback("cgl.console_progress_bar", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_prefix), (&PyString_Type), 1, "prefix", 1))) __PYX_ERR(0, 410, __pyx_L1_error)
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_suffix), (&PyString_Type), 1, "suffix", 1))) __PYX_ERR(0, 410, __pyx_L1_error)
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_complete_char), (&PyString_Type), 1, "complete_char", 1))) __PYX_ERR(0, 410, __pyx_L1_error)
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_incomplete_char), (&PyString_Type), 1, "incomplete_char", 1))) __PYX_ERR(0, 410, __pyx_L1_error)
  __pyx_r = __pyx_pf_3cgl_76console_progress_bar(__pyx_self, __pyx_v_progress, __pyx_v_width, __pyx_v_prefix, __pyx_v_suffix, __pyx_v_complete_char, __pyx_v_incomplete_char);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_3cgl_76console_progress_bar(CYTHON_UNUSED PyObject *__pyx_self, double __pyx_v_progress, PyObject *__pyx_v_width, PyObject *__pyx_v_prefix, PyObject *__pyx_v_suffix, PyObject *__pyx_v_complete_char, PyObject *__pyx_v_incomplete_char) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  CGL_int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  CGL_byte *__pyx_t_3;
  PyObject *__pyx_t_4 = NULL;
  CGL_byte *__pyx_t_5;
  PyObject *__pyx_t_6 = NULL;
  CGL_byte __pyx_t_7;
  CGL_byte __pyx_t_8;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("console_progress_bar", 0);

  /* "cgl_wrapper.pyx":411
 * 
 * def console_progress_bar(progress: float, width: int, prefix: str, suffix: str, complete_char: str = "#", incomplete_char: str = "_"):
 *     CGL_console_progress_bar(progress, width, prefix.encode(), suffix.encode(), complete_char[0], incomplete_char[0])             # <<<<<<<<<<<<<<
 * 
 * LOG_LEVEL_TRACE        = 0
 */
  __pyx_t_1 = __Pyx_PyInt_As_CGL_int(__pyx_v_width); if (unlikely((__pyx_t_1 == ((CGL_int)-1)) && PyErr_Occurred())) __PYX_ERR(0, 411, __pyx_L1_error)
  __pyx_t_2 = __Pyx_CallUnboundCMethod0(&__pyx_umethod_PyString_Type_encode, __pyx_v_prefix); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 411, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = __Pyx_PyObject_AsWritableString(__pyx_t_2); if (unlikely((!__pyx_t_3) && PyErr_Occurred())) __PYX_ERR(0, 411, __pyx_L1_error)
  __pyx_t_4 = __Pyx_CallUnboundCMethod0(&__pyx_umethod_PyString_Type_encode, __pyx_v_suffix); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 411, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_5 = __Pyx_PyObject_AsWritableString(__pyx_t_4); if (unlikely((!__pyx_t_5) && PyErr_Occurred())) __PYX_ERR(0, 411, __pyx_L1_error)
  __pyx_t_6 = __Pyx_GetItemInt(__pyx_v_complete_char, 0, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 411, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __pyx_t_7 = __Pyx_PyInt_As_CGL_byte(__pyx_t_6); if (unlikely((__pyx_t_7 == ((CGL_byte)-1)) && PyErr_Occurred())) __PYX_ERR(0, 411, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
  __pyx_t_6 = __Pyx_GetItemInt(__pyx_v_incomplete_char, 0, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 411, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __pyx_t_8 = __Pyx_PyInt_As_CGL_byte(__pyx_t_6); if (unlikely((__pyx_t_8 == ((CGL_byte)-1)) && PyErr_Occurred())) __PYX_ERR(0, 411, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
  CGL_console_progress_bar(__pyx_v_progress, __pyx_t_1, __pyx_t_3, __pyx_t_5, __pyx_t_7, __pyx_t_8);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cgl_wrapper.pyx":410
 *     CGL_printf_blue(format.encode())
 * 
 * def console_progress_bar(progress: float, width: int, prefix: str, suffix: str, complete_char: str = "#", incomplete_char: str = "_"):             # <<<<<<<<<<<<<<
 *     CGL_console_progress_bar(progress, width, prefix.encode(), suffix.encode(), complete_char[0], incomplete_char[0])
 * 
 */

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_AddTraceback("cgl.console_progress_bar", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cgl_wrapper.pyx":422
 * 
 * 
 * def logger_init(enable_console_logging: bool):             # <<<<<<<<<<<<<<
 *     CGL_logger_init(enable_console_logging)
 * 
 */

/* Python wrapper */
static PyObject *__pyx_pw_3cgl_79logger_init(PyObject *__pyx_self, PyObject *__pyx_arg_enable_console_logging); /*proto*/
static PyMethodDef __pyx_mdef_3cgl_79logger_init = {"logger_init", (PyCFunction)__pyx_pw_3cgl_79logger_init, METH_O, 0};
static PyObject *__pyx_pw_3cgl_79logger_init(PyObject *__pyx_self, PyObject *__pyx_arg_enable_console_logging) {
  bool __pyx_v_enable_console_logging;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("logger_init (wrapper)", 0);
  assert(__pyx_arg_enable_console_logging); {
    __pyx_v_enable_console_logging = __Pyx_PyObject_IsTrue(__pyx_arg_enable_console_logging); if (unlikely((__pyx_v_enable_console_logging == ((bool)-1)) && PyErr_Occurred())) __PYX_ERR(0, 422, __pyx_L3_error)
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  __Pyx_AddTraceback("cgl.logger_init", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_3cgl_78logger_init(__pyx_self, ((bool)__pyx_v_enable_console_logging));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_3cgl_78logger_init(CYTHON_UNUSED PyObject *__pyx_self, bool __pyx_v_enable_console_logging) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("logger_init", 0);

  /* "cgl_wrapper.pyx":423
 * 
 * def logger_init(enable_console_logging: bool):
 *     CGL_logger_init(enable_console_logging)             # <<<<<<<<<<<<<<
 * 
 * def logger_shutdown():
 */
  CGL_logger_init(__pyx_v_enable_console_logging);

  /* "cgl_wrapper.pyx":422
 * 
 * 
 * def logger_init(enable_console_logging: bool):             # <<<<<<<<<<<<<<
 *     CGL_logger_init(enable_console_logging)
 * 
 */

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cgl_wrapper.pyx":425
 *     CGL_logger_init(enable_console_logging)
 * 
 * def logger_shutdown():             # <<<<<<<<<<<<<<
 *     CGL_logger_shutdown()
 * 
 */

/* Python wrapper */
static PyObject *__pyx_pw_3cgl_81logger_shutdown(PyObject *__pyx_self, CYTHON_UNUSED PyObject *unused); /*proto*/
static PyMethodDef __pyx_mdef_3cgl_81logger_shutdown = {"logger_shutdown", (PyCFunction)__pyx_pw_3cgl_81logger_shutdown, METH_NOARGS, 0};
static PyObject *__pyx_pw_3cgl_81logger_shutdown(PyObject *__pyx_self, CYTHON_UNUSED PyObject *unused) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("logger_shutdown (wrapper)", 0);
  __pyx_r = __pyx_pf_3cgl_80logger_shutdown(__pyx_self);

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_3cgl_80logger_shutdown(CYTHON_UNUSED PyObject *__pyx_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("logger_shutdown", 0);

  /* "cgl_wrapper.pyx":426
 * 
 * def logger_shutdown():
 *     CGL_logger_shutdown()             # <<<<<<<<<<<<<<
 * 
 * def logger_attach_log_file(path: str) -> bool:
 */
  CGL_logger_shutdown();

  /* "cgl_wrapper.pyx":425
 *     CGL_logger_init(enable_console_logging)
 * 
 * def logger_shutdown():             # <<<<<<<<<<<<<<
 *     CGL_logger_shutdown()
 * 
 */

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cgl_wrapper.pyx":428
 *     CGL_logger_shutdown()
 * 
 * def logger_attach_log_file(path: str) -> bool:             # <<<<<<<<<<<<<<
 *     return CGL_logger_attach_log_file(path.encode())
 * 
 */

/* Python wrapper */
static PyObject *__pyx_pw_3cgl_83logger_attach_log_file(PyObject *__pyx_self, PyObject *__pyx_v_path); /*proto*/
static PyMethodDef __pyx_mdef_3cgl_83logger_attach_log_file = {"logger_attach_log_file", (PyCFunction)__pyx_pw_3cgl_83logger_attach_log_file, METH_O, 0};
static PyObject *__pyx_pw_3cgl_83logger_attach_log_file(PyObject *__pyx_self, PyObject *__pyx_v_path) {
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("logger_attach_log_file (wrapper)", 0);
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_path), (&PyString_Type), 1, "path", 1))) __PYX_ERR(0, 428, __pyx_L1_error)
  __pyx_r = __pyx_pf_3cgl_82logger_attach_log_file(__pyx_self, ((PyObject*)__pyx_v_path));

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_3cgl_82logger_attach_log_file(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_path) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  char const *__pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("logger_attach_log_file", 0);

  /* "cgl_wrapper.pyx":429
 * 
 * def logger_attach_log_file(path: str) -> bool:
 *     return CGL_logger_attach_log_file(path.encode())             # <<<<<<<<<<<<<<
 * 
 * def logger_detach_log_file(path: str) -> bool:
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_CallUnboundCMethod0(&__pyx_umethod_PyString_Type_encode, __pyx_v_path); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 429, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = __Pyx_PyObject_AsString(__pyx_t_1); if (unlikely((!__pyx_t_2) && PyErr_Occurred())) __PYX_ERR(0, 429, __pyx_L1_error)
  __pyx_t_3 = __Pyx_PyBool_FromLong(CGL_logger_attach_log_file(__pyx_t_2)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 429, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_r = __pyx_t_3;
  __pyx_t_3 = 0;
  goto __pyx_L0;

  /* "cgl_wrapper.pyx":428
 *     CGL_logger_shutdown()
 * 
 * def logger_attach_log_file(path: str) -> bool:             # <<<<<<<<<<<<<<
 *     return CGL_logger_attach_log_file(path.encode())
 * 
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_AddTraceback("cgl.logger_attach_log_file", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cgl_wrapper.pyx":431
 *     return CGL_logger_attach_log_file(path.encode())
 * 
 * def logger_detach_log_file(path: str) -> bool:             # <<<<<<<<<<<<<<
 *     return CGL_logger_detach_log_file(path.encode())
 * 
 */

/* Python wrapper */
static PyObject *__pyx_pw_3cgl_85logger_detach_log_file(PyObject *__pyx_self, PyObject *__pyx_v_path); /*proto*/
static PyMethodDef __pyx_mdef_3cgl_85logger_detach_log_file = {"logger_detach_log_file", (PyCFunction)__pyx_pw_3cgl_85logger_detach_log_file, METH_O, 0};
static PyObject *__pyx_pw_3cgl_85logger_detach_log_file(PyObject *__pyx_self, PyObject *__pyx_v_path) {
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("logger_detach_log_file (wrapper)", 0);
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_path), (&PyString_Type), 1, "path", 1))) __PYX_ERR(0, 431, __pyx_L1_error)
  __pyx_r = __pyx_pf_3cgl_84logger_detach_log_file(__pyx_self, ((PyObject*)__pyx_v_path));

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_3cgl_84logger_detach_log_file(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_path) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  char const *__pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("logger_detach_log_file", 0);

  /* "cgl_wrapper.pyx":432
 * 
 * def logger_detach_log_file(path: str) -> bool:
 *     return CGL_logger_detach_log_file(path.encode())             # <<<<<<<<<<<<<<
 * 
 * def logger_flush():
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_CallUnboundCMethod0(&__pyx_umethod_PyString_Type_encode, __pyx_v_path); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 432, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = __Pyx_PyObject_AsString(__pyx_t_1); if (unlikely((!__pyx_t_2) && PyErr_Occurred())) __PYX_ERR(0, 432, __pyx_L1_error)
  __pyx_t_3 = __Pyx_PyBool_FromLong(CGL_logger_detach_log_file(__pyx_t_2)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 432, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_r = __pyx_t_3;
  __pyx_t_3 = 0;
  goto __pyx_L0;

  /* "cgl_wrapper.pyx":431
 *     return CGL_logger_attach_log_file(path.encode())
 * 
 * def logger_detach_log_file(path: str) -> bool:             # <<<<<<<<<<<<<<
 *     return CGL_logger_detach_log_file(path.encode())
 * 
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_AddTraceback("cgl.logger_detach_log_file", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cgl_wrapper.pyx":434
 *     return CGL_logger_detach_log_file(path.encode())
 * 
 * def logger_flush():             # <<<<<<<<<<<<<<
 *     CGL_logger_flush()
 * 
 */

/* Python wrapper */
static PyObject *__pyx_pw_3cgl_87logger_flush(PyObject *__pyx_self, CYTHON_UNUSED PyObject *unused); /*proto*/
static PyMethodDef __pyx_mdef_3cgl_87logger_flush = {"logger_flush", (PyCFunction)__pyx_pw_3cgl_87logger_flush, METH_NOARGS, 0};
static PyObject *__pyx_pw_3cgl_87logger_flush(PyObject *__pyx_self, CYTHON_UNUSED PyObject *unused) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("logger_flush (wrapper)", 0);
  __pyx_r = __pyx_pf_3cgl_86logger_flush(__pyx_self);

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_3cgl_86logger_flush(CYTHON_UNUSED PyObject *__pyx_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("logger_flush", 0);

  /* "cgl_wrapper.pyx":435
 * 
 * def logger_flush():
 *     CGL_logger_flush()             # <<<<<<<<<<<<<<
 * 
 * def logger_disable_console_logging():
 */
  CGL_logger_flush();

  /* "cgl_wrapper.pyx":434
 *     return CGL_logger_detach_log_file(path.encode())
 * 
 * def logger_flush():             # <<<<<<<<<<<<<<
 *     CGL_logger_flush()
 * 
 */

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cgl_wrapper.pyx":437
 *     CGL_logger_flush()
 * 
 * def logger_disable_console_logging():             # <<<<<<<<<<<<<<
 *     CGL_logger_disable_console_logging()
 * 
 */

/* Python wrapper */
static PyObject *__pyx_pw_3cgl_89logger_disable_console_logging(PyObject *__pyx_self, CYTHON_UNUSED PyObject *unused); /*proto*/
static PyMethodDef __pyx_mdef_3cgl_89logger_disable_console_logging = {"logger_disable_console_logging", (PyCFunction)__pyx_pw_3cgl_89logger_disable_console_logging, METH_NOARGS, 0};
static PyObject *__pyx_pw_3cgl_89logger_disable_console_logging(PyObject *__pyx_self, CYTHON_UNUSED PyObject *unused) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("logger_disable_console_logging (wrapper)", 0);
  __pyx_r = __pyx_pf_3cgl_88logger_disable_console_logging(__pyx_self);

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_3cgl_88logger_disable_console_logging(CYTHON_UNUSED PyObject *__pyx_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("logger_disable_console_logging", 0);

  /* "cgl_wrapper.pyx":438
 * 
 * def logger_disable_console_logging():
 *     CGL_logger_disable_console_logging()             # <<<<<<<<<<<<<<
 * 
 * def logger_enable_console_logging():
 */
  CGL_logger_disable_console_logging();

  /* "cgl_wrapper.pyx":437
 *     CGL_logger_flush()
 * 
 * def logger_disable_console_logging():             # <<<<<<<<<<<<<<
 *     CGL_logger_disable_console_logging()
 * 
 */

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cgl_wrapper.pyx":440
 *     CGL_logger_disable_console_logging()
 * 
 * def logger_enable_console_logging():             # <<<<<<<<<<<<<<
 *     CGL_logger_enable_console_logging()
 * 
 */

/* Python wrapper */
static PyObject *__pyx_pw_3cgl_91logger_enable_console_logging(PyObject *__pyx_self, CYTHON_UNUSED PyObject *unused); /*proto*/
static PyMethodDef __pyx_mdef_3cgl_91logger_enable_console_logging = {"logger_enable_console_logging", (PyCFunction)__pyx_pw_3cgl_91logger_enable_console_logging, METH_NOARGS, 0};
static PyObject *__pyx_pw_3cgl_91logger_enable_console_logging(PyObject *__pyx_self, CYTHON_UNUSED PyObject *unused) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("logger_enable_console_logging (wrapper)", 0);
  __pyx_r = __pyx_pf_3cgl_90logger_enable_console_logging(__pyx_self);

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_3cgl_90logger_enable_console_logging(CYTHON_UNUSED PyObject *__pyx_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("logger_enable_console_logging", 0);

  /* "cgl_wrapper.pyx":441
 * 
 * def logger_enable_console_logging():
 *     CGL_logger_enable_console_logging()             # <<<<<<<<<<<<<<
 * 
 * def logger_log(level: int, log_format: str):
 */
  CGL_logger_enable_console_logging();

  /* "cgl_wrapper.pyx":440
 *     CGL_logger_disable_console_logging()
 * 
 * def logger_enable_console_logging():             # <<<<<<<<<<<<<<
 *     CGL_logger_enable_console_logging()
 * 
 */

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cgl_wrapper.pyx":443
 *     CGL_logger_enable_console_logging()
 * 
 * def logger_log(level: int, log_format: str):             # <<<<<<<<<<<<<<
 *     CGL_logger_log(level, log_format.encode())
 * 
 */

/* Python wrapper */
static PyObject *__pyx_pw_3cgl_93logger_log(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static PyMethodDef __pyx_mdef_3cgl_93logger_log = {"logger_log", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_3cgl_93logger_log, METH_VARARGS|METH_KEYWORDS, 0};
static PyObject *__pyx_pw_3cgl_93logger_log(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  PyObject *__pyx_v_level = 0;
  PyObject *__pyx_v_log_format = 0;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("logger_log (wrapper)", 0);
  {
    static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_level,&__pyx_n_s_log_format,0};
    PyObject* values[2] = {0,0};
    if (unlikely(__pyx_kwds)) {
      Py_ssize_t kw_args;
      const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
      switch (pos_args) {
        case  2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
        CYTHON_FALLTHROUGH;
        case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      kw_args = PyDict_Size(__pyx_kwds);
      switch (pos_args) {
        case  0:
        if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_level)) != 0)) kw_args--;
        else goto __pyx_L5_argtuple_error;
        CYTHON_FALLTHROUGH;
        case  1:
        if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_log_format)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("logger_log", 1, 2, 2, 1); __PYX_ERR(0, 443, __pyx_L3_error)
        }
      }
      if (unlikely(kw_args > 0)) {
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "logger_log") < 0)) __PYX_ERR(0, 443, __pyx_L3_error)
      }
    } else if (PyTuple_GET_SIZE(__pyx_args) != 2) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
      values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
    }
    __pyx_v_level = values[0];
    __pyx_v_log_format = ((PyObject*)values[1]);
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("logger_log", 1, 2, 2, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 443, __pyx_L3_error)
  __pyx_L3_error:;
  __Pyx_AddTraceback("cgl.logger_log", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_log_format), (&PyString_Type), 1, "log_format", 1))) __PYX_ERR(0, 443, __pyx_L1_error)
  __pyx_r = __pyx_pf_3cgl_92logger_log(__pyx_self, __pyx_v_level, __pyx_v_log_format);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_3cgl_92logger_log(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_level, PyObject *__pyx_v_log_format) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  CGL_int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  char const *__pyx_t_3;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("logger_log", 0);

  /* "cgl_wrapper.pyx":444
 * 
 * def logger_log(level: int, log_format: str):
 *     CGL_logger_log(level, log_format.encode())             # <<<<<<<<<<<<<<
 * 
 * def log_trace(log_format: str):
 */
  __pyx_t_1 = __Pyx_PyInt_As_CGL_int(__pyx_v_level); if (unlikely((__pyx_t_1 == ((CGL_int)-1)) && PyErr_Occurred())) __PYX_ERR(0, 444, __pyx_L1_error)
  __pyx_t_2 = __Pyx_CallUnboundCMethod0(&__pyx_umethod_PyString_Type_encode, __pyx_v_log_format); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 444, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = __Pyx_PyObject_AsString(__pyx_t_2); if (unlikely((!__pyx_t_3) && PyErr_Occurred())) __PYX_ERR(0, 444, __pyx_L1_error)
  CGL_logger_log(__pyx_t_1, __pyx_t_3);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "cgl_wrapper.pyx":443
 *     CGL_logger_enable_console_logging()
 * 
 * def logger_log(level: int, log_format: str):             # <<<<<<<<<<<<<<
 *     CGL_logger_log(level, log_format.encode())
 * 
 */

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("cgl.logger_log", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cgl_wrapper.pyx":446
 *     CGL_logger_log(level, log_format.encode())
 * 
 * def log_trace(log_format: str):             # <<<<<<<<<<<<<<
 *     CGL_logger_log(LOG_LEVEL_TRACE, log_format.encode())
 * 
 */

/* Python wrapper */
static PyObject *__pyx_pw_3cgl_95log_trace(PyObject *__pyx_self, PyObject *__pyx_v_log_format); /*proto*/
static PyMethodDef __pyx_mdef_3cgl_95log_trace = {"log_trace", (PyCFunction)__pyx_pw_3cgl_95log_trace, METH_O, 0};
static PyObject *__pyx_pw_3cgl_95log_trace(PyObject *__pyx_self, PyObject *__pyx_v_log_format) {
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("log_trace (wrapper)", 0);
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_log_format), (&PyString_Type), 1, "log_format", 1))) __PYX_ERR(0, 446, __pyx_L1_error)
  __pyx_r = __pyx_pf_3cgl_94log_trace(__pyx_self, ((PyObject*)__pyx_v_log_format));

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_3cgl_94log_trace(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_log_format) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  CGL_int __pyx_t_2;
  char const *__pyx_t_3;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("log_trace", 0);

  /* "cgl_wrapper.pyx":447
 * 
 * def log_trace(log_format: str):
 *     CGL_logger_log(LOG_LEVEL_TRACE, log_format.encode())             # <<<<<<<<<<<<<<
 * 
 * def log_info(log_format: str):
 */
  __Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_n_s_LOG_LEVEL_TRACE); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 447, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = __Pyx_PyInt_As_CGL_int(__pyx_t_1); if (unlikely((__pyx_t_2 == ((CGL_int)-1)) && PyErr_Occurred())) __PYX_ERR(0, 447, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_1 = __Pyx_CallUnboundCMethod0(&__pyx_umethod_PyString_Type_encode, __pyx_v_log_format); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 447, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_3 = __Pyx_PyObject_AsString(__pyx_t_1); if (unlikely((!__pyx_t_3) && PyErr_Occurred())) __PYX_ERR(0, 447, __pyx_L1_error)
  CGL_logger_log(__pyx_t_2, __pyx_t_3);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "cgl_wrapper.pyx":446
 *     CGL_logger_log(level, log_format.encode())
 * 
 * def log_trace(log_format: str):             # <<<<<<<<<<<<<<
 *     CGL_logger_log(LOG_LEVEL_TRACE, log_format.encode())
 * 
 */

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cgl.log_trace", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cgl_wrapper.pyx":449
 *     CGL_logger_log(LOG_LEVEL_TRACE, log_format.encode())
 * 
 * def log_info(log_format: str):             # <<<<<<<<<<<<<<
 *     CGL_logger_log(LOG_LEVEL_INFO, log_format.encode())
 * 
 */

/* Python wrapper */
static PyObject *__pyx_pw_3cgl_97log_info(PyObject *__pyx_self, PyObject *__pyx_v_log_format); /*proto*/
static PyMethodDef __pyx_mdef_3cgl_97log_info = {"log_info", (PyCFunction)__pyx_pw_3cgl_97log_info, METH_O, 0};
static PyObject *__pyx_pw_3cgl_97log_info(PyObject *__pyx_self, PyObject *__pyx_v_log_format) {
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("log_info (wrapper)", 0);
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_log_format), (&PyString_Type), 1, "log_format", 1))) __PYX_ERR(0, 449, __pyx_L1_error)
  __pyx_r = __pyx_pf_3cgl_96log_info(__pyx_self, ((PyObject*)__pyx_v_log_format));

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_3cgl_96log_info(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_log_format) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  CGL_int __pyx_t_2;
  char const *__pyx_t_3;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("log_info", 0);

  /* "cgl_wrapper.pyx":450
 * 
 * def log_info(log_format: str):
 *     CGL_logger_log(LOG_LEVEL_INFO, log_format.encode())             # <<<<<<<<<<<<<<
 * 
 * def log_warn(log_format: str):
 */
  __Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_n_s_LOG_LEVEL_INFO); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 450, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = __Pyx_PyInt_As_CGL_int(__pyx_t_1); if (unlikely((__pyx_t_2 == ((CGL_int)-1)) && PyErr_Occurred())) __PYX_ERR(0, 450, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_1 = __Pyx_CallUnboundCMethod0(&__pyx_umethod_PyString_Type_encode, __pyx_v_log_format); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 450, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_3 = __Pyx_PyObject_AsString(__pyx_t_1); if (unlikely((!__pyx_t_3) && PyErr_Occurred())) __PYX_ERR(0, 450, __pyx_L1_error)
  CGL_logger_log(__pyx_t_2, __pyx_t_3);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "cgl_wrapper.pyx":449
 *     CGL_logger_log(LOG_LEVEL_TRACE, log_format.encode())
 * 
 * def log_info(log_format: str):             # <<<<<<<<<<<<<<
 *     CGL_logger_log(LOG_LEVEL_INFO, log_format.encode())
 * 
 */

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cgl.log_info", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cgl_wrapper.pyx":452
 *     CGL_logger_log(LOG_LEVEL_INFO, log_format.encode())
 * 
 * def log_warn(log_format: str):             # <<<<<<<<<<<<<<
 *     CGL_logger_log(LOG_LEVEL_WARN, log_format.encode())
 * 
 */

/* Python wrapper */
static PyObject *__pyx_pw_3cgl_99log_warn(PyObject *__pyx_self, PyObject *__pyx_v_log_format); /*proto*/
static PyMethodDef __pyx_mdef_3cgl_99log_warn = {"log_warn", (PyCFunction)__pyx_pw_3cgl_99log_warn, METH_O, 0};
static PyObject *__pyx_pw_3cgl_99log_warn(PyObject *__pyx_self, PyObject *__pyx_v_log_format) {
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("log_warn (wrapper)", 0);
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_log_format), (&PyString_Type), 1, "log_format", 1))) __PYX_ERR(0, 452, __pyx_L1_error)
  __pyx_r = __pyx_pf_3cgl_98log_warn(__pyx_self, ((PyObject*)__pyx_v_log_format));

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_3cgl_98log_warn(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_log_format) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  CGL_int __pyx_t_2;
  char const *__pyx_t_3;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("log_warn", 0);

  /* "cgl_wrapper.pyx":453
 * 
 * def log_warn(log_format: str):
 *     CGL_logger_log(LOG_LEVEL_WARN, log_format.encode())             # <<<<<<<<<<<<<<
 * 
 * def log_error(log_format: str):
 */
  __Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_n_s_LOG_LEVEL_WARN); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 453, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = __Pyx_PyInt_As_CGL_int(__pyx_t_1); if (unlikely((__pyx_t_2 == ((CGL_int)-1)) && PyErr_Occurred())) __PYX_ERR(0, 453, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_1 = __Pyx_CallUnboundCMethod0(&__pyx_umethod_PyString_Type_encode, __pyx_v_log_format); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 453, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_3 = __Pyx_PyObject_AsString(__pyx_t_1); if (unlikely((!__pyx_t_3) && PyErr_Occurred())) __PYX_ERR(0, 453, __pyx_L1_error)
  CGL_logger_log(__pyx_t_2, __pyx_t_3);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "cgl_wrapper.pyx":452
 *     CGL_logger_log(LOG_LEVEL_INFO, log_format.encode())
 * 
 * def log_warn(log_format: str):             # <<<<<<<<<<<<<<
 *     CGL_logger_log(LOG_LEVEL_WARN, log_format.encode())
 * 
 */

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cgl.log_warn", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cgl_wrapper.pyx":455
 *     CGL_logger_log(LOG_LEVEL_WARN, log_format.encode())
 * 
 * def log_error(log_format: str):             # <<<<<<<<<<<<<<
 *     CGL_logger_log(LOG_LEVEL_ERROR, log_format.encode())
 * 
 */

/* Python wrapper */
static PyObject *__pyx_pw_3cgl_101log_error(PyObject *__pyx_self, PyObject *__pyx_v_log_format); /*proto*/
static PyMethodDef __pyx_mdef_3cgl_101log_error = {"log_error", (PyCFunction)__pyx_pw_3cgl_101log_error, METH_O, 0};
static PyObject *__pyx_pw_3cgl_101log_error(PyObject *__pyx_self, PyObject *__pyx_v_log_format) {
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("log_error (wrapper)", 0);
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_log_format), (&PyString_Type), 1, "log_format", 1))) __PYX_ERR(0, 455, __pyx_L1_error)
  __pyx_r = __pyx_pf_3cgl_100log_error(__pyx_self, ((PyObject*)__pyx_v_log_format));

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_3cgl_100log_error(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_log_format) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  CGL_int __pyx_t_2;
  char const *__pyx_t_3;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("log_error", 0);

  /* "cgl_wrapper.pyx":456
 * 
 * def log_error(log_format: str):
 *     CGL_logger_log(LOG_LEVEL_ERROR, log_format.encode())             # <<<<<<<<<<<<<<
 * 
 * def log_internal(log_format: str):
 */
  __Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_n_s_LOG_LEVEL_ERROR); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 456, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = __Pyx_PyInt_As_CGL_int(__pyx_t_1); if (unlikely((__pyx_t_2 == ((CGL_int)-1)) && PyErr_Occurred())) __PYX_ERR(0, 456, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_1 = __Pyx_CallUnboundCMethod0(&__pyx_umethod_PyString_Type_encode, __pyx_v_log_format); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 456, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_3 = __Pyx_PyObject_AsString(__pyx_t_1); if (unlikely((!__pyx_t_3) && PyErr_Occurred())) __PYX_ERR(0, 456, __pyx_L1_error)
  CGL_logger_log(__pyx_t_2, __pyx_t_3);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "cgl_wrapper.pyx":455
 *     CGL_logger_log(LOG_LEVEL_WARN, log_format.encode())
 * 
 * def log_error(log_format: str):             # <<<<<<<<<<<<<<
 *     CGL_logger_log(LOG_LEVEL_ERROR, log_format.encode())
 * 
 */

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cgl.log_error", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cgl_wrapper.pyx":458
 *     CGL_logger_log(LOG_LEVEL_ERROR, log_format.encode())
 * 
 * def log_internal(log_format: str):             # <<<<<<<<<<<<<<
 *     CGL_logger_log(LOG_LEVEL_INTERNAL, log_format.encode())
 * 
 */

/* Python wrapper */
static PyObject *__pyx_pw_3cgl_103log_internal(PyObject *__pyx_self, PyObject *__pyx_v_log_format); /*proto*/
static PyMethodDef __pyx_mdef_3cgl_103log_internal = {"log_internal", (PyCFunction)__pyx_pw_3cgl_103log_internal, METH_O, 0};
static PyObject *__pyx_pw_3cgl_103log_internal(PyObject *__pyx_self, PyObject *__pyx_v_log_format) {
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("log_internal (wrapper)", 0);
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_log_format), (&PyString_Type), 1, "log_format", 1))) __PYX_ERR(0, 458, __pyx_L1_error)
  __pyx_r = __pyx_pf_3cgl_102log_internal(__pyx_self, ((PyObject*)__pyx_v_log_format));

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_3cgl_102log_internal(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_log_format) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  CGL_int __pyx_t_2;
  char const *__pyx_t_3;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("log_internal", 0);

  /* "cgl_wrapper.pyx":459
 * 
 * def log_internal(log_format: str):
 *     CGL_logger_log(LOG_LEVEL_INTERNAL, log_format.encode())             # <<<<<<<<<<<<<<
 * 
 * def utils_crc32(data: bytes) -> int:
 */
  __Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_n_s_LOG_LEVEL_INTERNAL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 459, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = __Pyx_PyInt_As_CGL_int(__pyx_t_1); if (unlikely((__pyx_t_2 == ((CGL_int)-1)) && PyErr_Occurred())) __PYX_ERR(0, 459, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_1 = __Pyx_CallUnboundCMethod0(&__pyx_umethod_PyString_Type_encode, __pyx_v_log_format); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 459, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_3 = __Pyx_PyObject_AsString(__pyx_t_1); if (unlikely((!__pyx_t_3) && PyErr_Occurred())) __PYX_ERR(0, 459, __pyx_L1_error)
  CGL_logger_log(__pyx_t_2, __pyx_t_3);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "cgl_wrapper.pyx":458
 *     CGL_logger_log(LOG_LEVEL_ERROR, log_format.encode())
 * 
 * def log_internal(log_format: str):             # <<<<<<<<<<<<<<
 *     CGL_logger_log(LOG_LEVEL_INTERNAL, log_format.encode())
 * 
 */

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cgl.log_internal", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cgl_wrapper.pyx":461
 *     CGL_logger_log(LOG_LEVEL_INTERNAL, log_format.encode())
 * 
 * def utils_crc32(data: bytes) -> int:             # <<<<<<<<<<<<<<
 *     return CGL_utils_crc32(<void*>data, len(data))
 * 
 */

/* Python wrapper */
static PyObject *__pyx_pw_3cgl_105utils_crc32(PyObject *__pyx_self, PyObject *__pyx_v_data); /*proto*/
static PyMethodDef __pyx_mdef_3cgl_105utils_crc32 = {"utils_crc32", (PyCFunction)__pyx_pw_3cgl_105utils_crc32, METH_O, 0};
static PyObject *__pyx_pw_3cgl_105utils_crc32(PyObject *__pyx_self, PyObject *__pyx_v_data) {
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("utils_crc32 (wrapper)", 0);
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_data), (&PyBytes_Type), 1, "data", 1))) __PYX_ERR(0, 461, __pyx_L1_error)
  __pyx_r = __pyx_pf_3cgl_104utils_crc32(__pyx_self, ((PyObject*)__pyx_v_data));

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_3cgl_104utils_crc32(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_data) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  Py_ssize_t __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("utils_crc32", 0);

  /* "cgl_wrapper.pyx":462
 * 
 * def utils_crc32(data: bytes) -> int:
 *     return CGL_utils_crc32(<void*>data, len(data))             # <<<<<<<<<<<<<<
 * 
 * def utils_crc64(data: bytes) -> int:
 */
  __Pyx_XDECREF(__pyx_r);
  if (unlikely(__pyx_v_data == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "object of type 'NoneType' has no len()");
    __PYX_ERR(0, 462, __pyx_L1_error)
  }
  __pyx_t_1 = PyBytes_GET_SIZE(__pyx_v_data); if (unlikely(__pyx_t_1 == ((Py_ssize_t)-1))) __PYX_ERR(0, 462, __pyx_L1_error)
  __pyx_t_2 = __Pyx_PyInt_From_uint32_t(CGL_utils_crc32(((void *)__pyx_v_data), __pyx_t_1)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 462, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_r = __pyx_t_2;
  __pyx_t_2 = 0;
  goto __pyx_L0;

  /* "cgl_wrapper.pyx":461
 *     CGL_logger_log(LOG_LEVEL_INTERNAL, log_format.encode())
 * 
 * def utils_crc32(data: bytes) -> int:             # <<<<<<<<<<<<<<
 *     return CGL_utils_crc32(<void*>data, len(data))
 * 
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("cgl.utils_crc32", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cgl_wrapper.pyx":464
 *     return CGL_utils_crc32(<void*>data, len(data))
 * 
 * def utils_crc64(data: bytes) -> int:             # <<<<<<<<<<<<<<
 *     return CGL_utils_crc64(<void*>data, len(data))
 * 
 */

/* Python wrapper */
static PyObject *__pyx_pw_3cgl_107utils_crc64(PyObject *__pyx_self, PyObject *__pyx_v_data); /*proto*/
static PyMethodDef __pyx_mdef_3cgl_107utils_crc64 = {"utils_crc64", (PyCFunction)__pyx_pw_3cgl_107utils_crc64, METH_O, 0};
static PyObject *__pyx_pw_3cgl_107utils_crc64(PyObject *__pyx_self, PyObject *__pyx_v_data) {
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("utils_crc64 (wrapper)", 0);
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_data), (&PyBytes_Type), 1, "data", 1))) __PYX_ERR(0, 464, __pyx_L1_error)
  __pyx_r = __pyx_pf_3cgl_106utils_crc64(__pyx_self, ((PyObject*)__pyx_v_data));

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_3cgl_106utils_crc64(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_data) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  Py_ssize_t __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("utils_crc64", 0);

  /* "cgl_wrapper.pyx":465
 * 
 * def utils_crc64(data: bytes) -> int:
 *     return CGL_utils_crc64(<void*>data, len(data))             # <<<<<<<<<<<<<<
 * 
 * def utils_rot13(data: bytes) -> bytes:
 */
  __Pyx_XDECREF(__pyx_r);
  if (unlikely(__pyx_v_data == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "object of type 'NoneType' has no len()");
    __PYX_ERR(0, 465, __pyx_L1_error)
  }
  __pyx_t_1 = PyBytes_GET_SIZE(__pyx_v_data); if (unlikely(__pyx_t_1 == ((Py_ssize_t)-1))) __PYX_ERR(0, 465, __pyx_L1_error)
  __pyx_t_2 = __Pyx_PyInt_From_uint64_t(CGL_utils_crc64(((void *)__pyx_v_data), __pyx_t_1)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 465, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_r = __pyx_t_2;
  __pyx_t_2 = 0;
  goto __pyx_L0;

  /* "cgl_wrapper.pyx":464
 *     return CGL_utils_crc32(<void*>data, len(data))
 * 
 * def utils_crc64(data: bytes) -> int:             # <<<<<<<<<<<<<<
 *     return CGL_utils_crc64(<void*>data, len(data))
 * 
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("cgl.utils_crc64", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cgl_wrapper.pyx":467
 *     return CGL_utils_crc64(<void*>data, len(data))
 * 
 * def utils_rot13(data: bytes) -> bytes:             # <<<<<<<<<<<<<<
 *     result = bytes(len(data))
 *     CGL_utils_rot13(<char*>data, <char*>result)
 */

/* Python wrapper */
static PyObject *__pyx_pw_3cgl_109utils_rot13(PyObject *__pyx_self, PyObject *__pyx_v_data); /*proto*/
static PyMethodDef __pyx_mdef_3cgl_109utils_rot13 = {"utils_rot13", (PyCFunction)__pyx_pw_3cgl_109utils_rot13, METH_O, 0};
static PyObject *__pyx_pw_3cgl_109utils_rot13(PyObject *__pyx_self, PyObject *__pyx_v_data) {
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("utils_rot13 (wrapper)", 0);
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_data), (&PyBytes_Type), 1, "data", 1))) __PYX_ERR(0, 467, __pyx_L1_error)
  __pyx_r = __pyx_pf_3cgl_108utils_rot13(__pyx_self, ((PyObject*)__pyx_v_data));

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_3cgl_108utils_rot13(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_data) {
  PyObject *__pyx_v_result = NULL;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  Py_ssize_t __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  char *__pyx_t_4;
  char *__pyx_t_5;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("utils_rot13", 0);

  /* "cgl_wrapper.pyx":468
 * 
 * def utils_rot13(data: bytes) -> bytes:
 *     result = bytes(len(data))             # <<<<<<<<<<<<<<
 *     CGL_utils_rot13(<char*>data, <char*>result)
 *     return result
 */
  if (unlikely(__pyx_v_data == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "object of type 'NoneType' has no len()");
    __PYX_ERR(0, 468, __pyx_L1_error)
  }
  __pyx_t_1 = PyBytes_GET_SIZE(__pyx_v_data); if (unlikely(__pyx_t_1 == ((Py_ssize_t)-1))) __PYX_ERR(0, 468, __pyx_L1_error)
  __pyx_t_2 = PyInt_FromSsize_t(__pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 468, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = __Pyx_PyObject_CallOneArg(((PyObject *)(&PyBytes_Type)), __pyx_t_2); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 468, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_v_result = ((PyObject*)__pyx_t_3);
  __pyx_t_3 = 0;

  /* "cgl_wrapper.pyx":469
 * def utils_rot13(data: bytes) -> bytes:
 *     result = bytes(len(data))
 *     CGL_utils_rot13(<char*>data, <char*>result)             # <<<<<<<<<<<<<<
 *     return result
 * 
 */
  if (unlikely(__pyx_v_data == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "expected bytes, NoneType found");
    __PYX_ERR(0, 469, __pyx_L1_error)
  }
  __pyx_t_4 = __Pyx_PyBytes_AsWritableString(__pyx_v_data); if (unlikely((!__pyx_t_4) && PyErr_Occurred())) __PYX_ERR(0, 469, __pyx_L1_error)
  __pyx_t_5 = __Pyx_PyBytes_AsWritableString(__pyx_v_result); if (unlikely((!__pyx_t_5) && PyErr_Occurred())) __PYX_ERR(0, 469, __pyx_L1_error)
  CGL_utils_rot13(((char *)__pyx_t_4), ((char *)__pyx_t_5));

  /* "cgl_wrapper.pyx":470
 *     result = bytes(len(data))
 *     CGL_utils_rot13(<char*>data, <char*>result)
 *     return result             # <<<<<<<<<<<<<<
 * 
 * def utils_super_fast_hash(data: bytes) -> int:
 */
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF(__pyx_v_result);
  __pyx_r = __pyx_v_result;
  goto __pyx_L0;

  /* "cgl_wrapper.pyx":467
 *     return CGL_utils_crc64(<void*>data, len(data))
 * 
 * def utils_rot13(data: bytes) -> bytes:             # <<<<<<<<<<<<<<
 *     result = bytes(len(data))
 *     CGL_utils_rot13(<char*>data, <char*>result)
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_AddTraceback("cgl.utils_rot13", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_result);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cgl_wrapper.pyx":472
 *     return result
 * 
 * def utils_super_fast_hash(data: bytes) -> int:             # <<<<<<<<<<<<<<
 *     return CGL_utils_super_fast_hash(<void*>data, len(data))
 * 
 */

/* Python wrapper */
static PyObject *__pyx_pw_3cgl_111utils_super_fast_hash(PyObject *__pyx_self, PyObject *__pyx_v_data); /*proto*/
static PyMethodDef __pyx_mdef_3cgl_111utils_super_fast_hash = {"utils_super_fast_hash", (PyCFunction)__pyx_pw_3cgl_111utils_super_fast_hash, METH_O, 0};
static PyObject *__pyx_pw_3cgl_111utils_super_fast_hash(PyObject *__pyx_self, PyObject *__pyx_v_data) {
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("utils_super_fast_hash (wrapper)", 0);
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_data), (&PyBytes_Type), 1, "data", 1))) __PYX_ERR(0, 472, __pyx_L1_error)
  __pyx_r = __pyx_pf_3cgl_110utils_super_fast_hash(__pyx_self, ((PyObject*)__pyx_v_data));

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_3cgl_110utils_super_fast_hash(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_data) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  Py_ssize_t __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("utils_super_fast_hash", 0);

  /* "cgl_wrapper.pyx":473
 * 
 * def utils_super_fast_hash(data: bytes) -> int:
 *     return CGL_utils_super_fast_hash(<void*>data, len(data))             # <<<<<<<<<<<<<<
 * 
 * 
 */
  __Pyx_XDECREF(__pyx_r);
  if (unlikely(__pyx_v_data == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "object of type 'NoneType' has no len()");
    __PYX_ERR(0, 473, __pyx_L1_error)
  }
  __pyx_t_1 = PyBytes_GET_SIZE(__pyx_v_data); if (unlikely(__pyx_t_1 == ((Py_ssize_t)-1))) __PYX_ERR(0, 473, __pyx_L1_error)
  __pyx_t_2 = __Pyx_PyInt_From_uint32_t(CGL_utils_super_fast_hash(((void *)__pyx_v_data), __pyx_t_1)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 473, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_r = __pyx_t_2;
  __pyx_t_2 = 0;
  goto __pyx_L0;

  /* "cgl_wrapper.pyx":472
 *     return result
 * 
 * def utils_super_fast_hash(data: bytes) -> int:             # <<<<<<<<<<<<<<
 *     return CGL_utils_super_fast_hash(<void*>data, len(data))
 * 
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("cgl.utils_super_fast_hash", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cgl_wrapper.pyx":487
 * SQRT8 = (2.82842712474619009760)
 * 
 * def deg_to_rad(deg):             # <<<<<<<<<<<<<<
 *     return ((deg) * (PI / 180.0))
 * 
 */

/* Python wrapper */
static PyObject *__pyx_pw_3cgl_113deg_to_rad(PyObject *__pyx_self, PyObject *__pyx_v_deg); /*proto*/
static PyMethodDef __pyx_mdef_3cgl_113deg_to_rad = {"deg_to_rad", (PyCFunction)__pyx_pw_3cgl_113deg_to_rad, METH_O, 0};
static PyObject *__pyx_pw_3cgl_113deg_to_rad(PyObject *__pyx_self, PyObject *__pyx_v_deg) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("deg_to_rad (wrapper)", 0);
  __pyx_r = __pyx_pf_3cgl_112deg_to_rad(__pyx_self, ((PyObject *)__pyx_v_deg));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_3cgl_112deg_to_rad(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_deg) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("deg_to_rad", 0);

  /* "cgl_wrapper.pyx":488
 * 
 * def deg_to_rad(deg):
 *     return ((deg) * (PI / 180.0))             # <<<<<<<<<<<<<<
 * 
 * def rad_to_deg(rad):
 */
  __Pyx_XDECREF(__pyx_r);
  __Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_n_s_PI); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 488, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = __Pyx_PyFloat_DivideObjC(__pyx_t_1, __pyx_float_180_0, 180.0, 0, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 488, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_1 = PyNumber_Multiply(__pyx_v_deg, __pyx_t_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 488, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cgl_wrapper.pyx":487
 * SQRT8 = (2.82842712474619009760)
 * 
 * def deg_to_rad(deg):             # <<<<<<<<<<<<<<
 *     return ((deg) * (PI / 180.0))
 * 
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("cgl.deg_to_rad", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cgl_wrapper.pyx":490
 *     return ((deg) * (PI / 180.0))
 * 
 * def rad_to_deg(rad):             # <<<<<<<<<<<<<<
 *     return ((rad) * (180.0 / PI))
 * 
 */

/* Python wrapper */
static PyObject *__pyx_pw_3cgl_115rad_to_deg(PyObject *__pyx_self, PyObject *__pyx_v_rad); /*proto*/
static PyMethodDef __pyx_mdef_3cgl_115rad_to_deg = {"rad_to_deg", (PyCFunction)__pyx_pw_3cgl_115rad_to_deg, METH_O, 0};
static PyObject *__pyx_pw_3cgl_115rad_to_deg(PyObject *__pyx_self, PyObject *__pyx_v_rad) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("rad_to_deg (wrapper)", 0);
  __pyx_r = __pyx_pf_3cgl_114rad_to_deg(__pyx_self, ((PyObject *)__pyx_v_rad));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_3cgl_114rad_to_deg(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_rad) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("rad_to_deg", 0);

  /* "cgl_wrapper.pyx":491
 * 
 * def rad_to_deg(rad):
 *     return ((rad) * (180.0 / PI))             # <<<<<<<<<<<<<<
 * 
 * def float_lerp(a: float, b: float, t: float):
 */
  __Pyx_XDECREF(__pyx_r);
  __Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_n_s_PI); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 491, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = __Pyx_PyFloat_DivideCObj(__pyx_float_180_0, __pyx_t_1, 180.0, 0, 1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 491, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_1 = PyNumber_Multiply(__pyx_v_rad, __pyx_t_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 491, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cgl_wrapper.pyx":490
 *     return ((deg) * (PI / 180.0))
 * 
 * def rad_to_deg(rad):             # <<<<<<<<<<<<<<
 *     return ((rad) * (180.0 / PI))
 * 
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("cgl.rad_to_deg", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cgl_wrapper.pyx":493
 *     return ((rad) * (180.0 / PI))
 * 
 * def float_lerp(a: float, b: float, t: float):             # <<<<<<<<<<<<<<
 *     return ((a) + ((b) - (a)) * (t))
 * 
 */

/* Python wrapper */
static PyObject *__pyx_pw_3cgl_117float_lerp(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static PyMethodDef __pyx_mdef_3cgl_117float_lerp = {"float_lerp", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_3cgl_117float_lerp, METH_VARARGS|METH_KEYWORDS, 0};
static PyObject *__pyx_pw_3cgl_117float_lerp(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  double __pyx_v_a;
  double __pyx_v_b;
  double __pyx_v_t;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("float_lerp (wrapper)", 0);
  {
    static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_a,&__pyx_n_s_b,&__pyx_n_s_t,0};
    PyObject* values[3] = {0,0,0};
    if (unlikely(__pyx_kwds)) {
      Py_ssize_t kw_args;
      const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
      switch (pos_args) {
        case  3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
        CYTHON_FALLTHROUGH;
        case  2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
        CYTHON_FALLTHROUGH;
        case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      kw_args = PyDict_Size(__pyx_kwds);
      switch (pos_args) {
        case  0:
        if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_a)) != 0)) kw_args--;
        else goto __pyx_L5_argtuple_error;
        CYTHON_FALLTHROUGH;
        case  1:
        if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_b)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("float_lerp", 1, 3, 3, 1); __PYX_ERR(0, 493, __pyx_L3_error)
        }
        CYTHON_FALLTHROUGH;
        case  2:
        if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_t)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("float_lerp", 1, 3, 3, 2); __PYX_ERR(0, 493, __pyx_L3_error)
        }
      }
      if (unlikely(kw_args > 0)) {
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "float_lerp") < 0)) __PYX_ERR(0, 493, __pyx_L3_error)
      }
    } else if (PyTuple_GET_SIZE(__pyx_args) != 3) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
      values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
      values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
    }
    __pyx_v_a = __pyx_PyFloat_AsDouble(values[0]); if (unlikely((__pyx_v_a == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 493, __pyx_L3_error)
    __pyx_v_b = __pyx_PyFloat_AsDouble(values[1]); if (unlikely((__pyx_v_b == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 493, __pyx_L3_error)
    __pyx_v_t = __pyx_PyFloat_AsDouble(values[2]); if (unlikely((__pyx_v_t == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 493, __pyx_L3_error)
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("float_lerp", 1, 3, 3, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 493, __pyx_L3_error)
  __pyx_L3_error:;
  __Pyx_AddTraceback("cgl.float_lerp", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_3cgl_116float_lerp(__pyx_self, __pyx_v_a, __pyx_v_b, __pyx_v_t);

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_3cgl_116float_lerp(CYTHON_UNUSED PyObject *__pyx_self, double __pyx_v_a, double __pyx_v_b, double __pyx_v_t) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("float_lerp", 0);

  /* "cgl_wrapper.pyx":494
 * 
 * def float_lerp(a: float, b: float, t: float):
 *     return ((a) + ((b) - (a)) * (t))             # <<<<<<<<<<<<<<
 * 
 * def float_quadratic_lerp(a: float, b: float, c: float, t: float) -> float:
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = PyFloat_FromDouble((__pyx_v_a + ((__pyx_v_b - __pyx_v_a) * __pyx_v_t))); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 494, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cgl_wrapper.pyx":493
 *     return ((rad) * (180.0 / PI))
 * 
 * def float_lerp(a: float, b: float, t: float):             # <<<<<<<<<<<<<<
 *     return ((a) + ((b) - (a)) * (t))
 * 
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cgl.float_lerp", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cgl_wrapper.pyx":496
 *     return ((a) + ((b) - (a)) * (t))
 * 
 * def float_quadratic_lerp(a: float, b: float, c: float, t: float) -> float:             # <<<<<<<<<<<<<<
 *     return CGL_float_quadratic_lerp(a, b, c, t)
 * 
 */

/* Python wrapper */
static PyObject *__pyx_pw_3cgl_119float_quadratic_lerp(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static PyMethodDef __pyx_mdef_3cgl_119float_quadratic_lerp = {"float_quadratic_lerp", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_3cgl_119float_quadratic_lerp, METH_VARARGS|METH_KEYWORDS, 0};
static PyObject *__pyx_pw_3cgl_119float_quadratic_lerp(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  double __pyx_v_a;
  double __pyx_v_b;
  double __pyx_v_c;
  double __pyx_v_t;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("float_quadratic_lerp (wrapper)", 0);
  {
    static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_a,&__pyx_n_s_b,&__pyx_n_s_c,&__pyx_n_s_t,0};
    PyObject* values[4] = {0,0,0,0};
    if (unlikely(__pyx_kwds)) {
      Py_ssize_t kw_args;
      const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
      switch (pos_args) {
        case  4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
        CYTHON_FALLTHROUGH;
        case  3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
        CYTHON_FALLTHROUGH;
        case  2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
        CYTHON_FALLTHROUGH;
        case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      kw_args = PyDict_Size(__pyx_kwds);
      switch (pos_args) {
        case  0:
        if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_a)) != 0)) kw_args--;
        else goto __pyx_L5_argtuple_error;
        CYTHON_FALLTHROUGH;
        case  1:
        if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_b)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("float_quadratic_lerp", 1, 4, 4, 1); __PYX_ERR(0, 496, __pyx_L3_error)
        }
        CYTHON_FALLTHROUGH;
        case  2:
        if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_c)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("float_quadratic_lerp", 1, 4, 4, 2); __PYX_ERR(0, 496, __pyx_L3_error)
        }
        CYTHON_FALLTHROUGH;
        case  3:
        if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_t)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("float_quadratic_lerp", 1, 4, 4, 3); __PYX_ERR(0, 496, __pyx_L3_error)
        }
      }
      if (unlikely(kw_args > 0)) {
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "float_quadratic_lerp") < 0)) __PYX_ERR(0, 496, __pyx_L3_error)
      }
    } else if (PyTuple_GET_SIZE(__pyx_args) != 4) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
      values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
      values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
      values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
    }
    __pyx_v_a = __pyx_PyFloat_AsDouble(values[0]); if (unlikely((__pyx_v_a == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 496, __pyx_L3_error)
    __pyx_v_b = __pyx_PyFloat_AsDouble(values[1]); if (unlikely((__pyx_v_b == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 496, __pyx_L3_error)
    __pyx_v_c = __pyx_PyFloat_AsDouble(values[2]); if (unlikely((__pyx_v_c == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 496, __pyx_L3_error)
    __pyx_v_t = __pyx_PyFloat_AsDouble(values[3]); if (unlikely((__pyx_v_t == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 496, __pyx_L3_error)
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("float_quadratic_lerp", 1, 4, 4, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 496, __pyx_L3_error)
  __pyx_L3_error:;
  __Pyx_AddTraceback("cgl.float_quadratic_lerp", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_3cgl_118float_quadratic_lerp(__pyx_self, __pyx_v_a, __pyx_v_b, __pyx_v_c, __pyx_v_t);

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_3cgl_118float_quadratic_lerp(CYTHON_UNUSED PyObject *__pyx_self, double __pyx_v_a, double __pyx_v_b, double __pyx_v_c, double __pyx_v_t) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("float_quadratic_lerp", 0);

  /* "cgl_wrapper.pyx":497
 * 
 * def float_quadratic_lerp(a: float, b: float, c: float, t: float) -> float:
 *     return CGL_float_quadratic_lerp(a, b, c, t)             # <<<<<<<<<<<<<<
 * 
 * def float_cubic_lerp(a: float, b: float, c: float, d: float, t: float) -> float:
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = PyFloat_FromDouble(CGL_float_quadratic_lerp(__pyx_v_a, __pyx_v_b, __pyx_v_c, __pyx_v_t)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 497, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cgl_wrapper.pyx":496
 *     return ((a) + ((b) - (a)) * (t))
 * 
 * def float_quadratic_lerp(a: float, b: float, c: float, t: float) -> float:             # <<<<<<<<<<<<<<
 *     return CGL_float_quadratic_lerp(a, b, c, t)
 * 
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cgl.float_quadratic_lerp", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cgl_wrapper.pyx":499
 *     return CGL_float_quadratic_lerp(a, b, c, t)
 * 
 * def float_cubic_lerp(a: float, b: float, c: float, d: float, t: float) -> float:             # <<<<<<<<<<<<<<
 *     return CGL_float_cubic_lerp(a, b, c, d, t)
 * 
 */

/* Python wrapper */
static PyObject *__pyx_pw_3cgl_121float_cubic_lerp(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static PyMethodDef __pyx_mdef_3cgl_121float_cubic_lerp = {"float_cubic_lerp", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_3cgl_121float_cubic_lerp, METH_VARARGS|METH_KEYWORDS, 0};
static PyObject *__pyx_pw_3cgl_121float_cubic_lerp(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  double __pyx_v_a;
  double __pyx_v_b;
  double __pyx_v_c;
  double __pyx_v_d;
  double __pyx_v_t;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("float_cubic_lerp (wrapper)", 0);
  {
    static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_a,&__pyx_n_s_b,&__pyx_n_s_c,&__pyx_n_s_d,&__pyx_n_s_t,0};
    PyObject* values[5] = {0,0,0,0,0};
    if (unlikely(__pyx_kwds)) {
      Py_ssize_t kw_args;
      const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
      switch (pos_args) {
        case  5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
        CYTHON_FALLTHROUGH;
        case  4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
        CYTHON_FALLTHROUGH;
        case  3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
        CYTHON_FALLTHROUGH;
        case  2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
        CYTHON_FALLTHROUGH;
        case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      kw_args = PyDict_Size(__pyx_kwds);
      switch (pos_args) {
        case  0:
        if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_a)) != 0)) kw_args--;
        else goto __pyx_L5_argtuple_error;
        CYTHON_FALLTHROUGH;
        case  1:
        if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_b)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("float_cubic_lerp", 1, 5, 5, 1); __PYX_ERR(0, 499, __pyx_L3_error)
        }
        CYTHON_FALLTHROUGH;
        case  2:
        if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_c)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("float_cubic_lerp", 1, 5, 5, 2); __PYX_ERR(0, 499, __pyx_L3_error)
        }
        CYTHON_FALLTHROUGH;
        case  3:
        if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_d)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("float_cubic_lerp", 1, 5, 5, 3); __PYX_ERR(0, 499, __pyx_L3_error)
        }
        CYTHON_FALLTHROUGH;
        case  4:
        if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_t)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("float_cubic_lerp", 1, 5, 5, 4); __PYX_ERR(0, 499, __pyx_L3_error)
        }
      }
      if (unlikely(kw_args > 0)) {
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "float_cubic_lerp") < 0)) __PYX_ERR(0, 499, __pyx_L3_error)
      }
    } else if (PyTuple_GET_SIZE(__pyx_args) != 5) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
      values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
      values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
      values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
      values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
    }
    __pyx_v_a = __pyx_PyFloat_AsDouble(values[0]); if (unlikely((__pyx_v_a == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 499, __pyx_L3_error)
    __pyx_v_b = __pyx_PyFloat_AsDouble(values[1]); if (unlikely((__pyx_v_b == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 499, __pyx_L3_error)
    __pyx_v_c = __pyx_PyFloat_AsDouble(values[2]); if (unlikely((__pyx_v_c == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 499, __pyx_L3_error)
    __pyx_v_d = __pyx_PyFloat_AsDouble(values[3]); if (unlikely((__pyx_v_d == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 499, __pyx_L3_error)
    __pyx_v_t = __pyx_PyFloat_AsDouble(values[4]); if (unlikely((__pyx_v_t == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 499, __pyx_L3_error)
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("float_cubic_lerp", 1, 5, 5, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 499, __pyx_L3_error)
  __pyx_L3_error:;
  __Pyx_AddTraceback("cgl.float_cubic_lerp", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_3cgl_120float_cubic_lerp(__pyx_self, __pyx_v_a, __pyx_v_b, __pyx_v_c, __pyx_v_d, __pyx_v_t);

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_3cgl_120float_cubic_lerp(CYTHON_UNUSED PyObject *__pyx_self, double __pyx_v_a, double __pyx_v_b, double __pyx_v_c, double __pyx_v_d, double __pyx_v_t) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("float_cubic_lerp", 0);

  /* "cgl_wrapper.pyx":500
 * 
 * def float_cubic_lerp(a: float, b: float, c: float, d: float, t: float) -> float:
 *     return CGL_float_cubic_lerp(a, b, c, d, t)             # <<<<<<<<<<<<<<
 * 
 * cdef class vec2:
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = PyFloat_FromDouble(CGL_float_cubic_lerp(__pyx_v_a, __pyx_v_b, __pyx_v_c, __pyx_v_d, __pyx_v_t)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 500, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cgl_wrapper.pyx":499
 *     return CGL_float_quadratic_lerp(a, b, c, t)
 * 
 * def float_cubic_lerp(a: float, b: float, c: float, d: float, t: float) -> float:             # <<<<<<<<<<<<<<
 *     return CGL_float_cubic_lerp(a, b, c, d, t)
 * 
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cgl.float_cubic_lerp", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cgl_wrapper.pyx":505
 *     cdef CGL_vec2 c_vec2
 * 
 *     def __init__(self, x: float = 0.0, y: float = 0.0):             # <<<<<<<<<<<<<<
 *         self.c_vec2 = CGL_vec2(x, y)
 * 
 */

/* Python wrapper */
static int __pyx_pw_3cgl_4vec2_1__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static int __pyx_pw_3cgl_4vec2_1__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  double __pyx_v_x;
  double __pyx_v_y;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__init__ (wrapper)", 0);
  {
    static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_x,&__pyx_n_s_y,0};
    PyObject* values[2] = {0,0};
    if (unlikely(__pyx_kwds)) {
      Py_ssize_t kw_args;
      const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
      switch (pos_args) {
        case  2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
        CYTHON_FALLTHROUGH;
        case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      kw_args = PyDict_Size(__pyx_kwds);
      switch (pos_args) {
        case  0:
        if (kw_args > 0) {
          PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_x);
          if (value) { values[0] = value; kw_args--; }
        }
        CYTHON_FALLTHROUGH;
        case  1:
        if (kw_args > 0) {
          PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_y);
          if (value) { values[1] = value; kw_args--; }
        }
      }
      if (unlikely(kw_args > 0)) {
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "__init__") < 0)) __PYX_ERR(0, 505, __pyx_L3_error)
      }
    } else {
      switch (PyTuple_GET_SIZE(__pyx_args)) {
        case  2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
        CYTHON_FALLTHROUGH;
        case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
    }
    if (values[0]) {
      __pyx_v_x = __pyx_PyFloat_AsDouble(values[0]); if (unlikely((__pyx_v_x == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 505, __pyx_L3_error)
    } else {
      __pyx_v_x = ((double)0.0);
    }
    if (values[1]) {
      __pyx_v_y = __pyx_PyFloat_AsDouble(values[1]); if (unlikely((__pyx_v_y == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 505, __pyx_L3_error)
    } else {
      __pyx_v_y = ((double)0.0);
    }
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__init__", 0, 0, 2, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 505, __pyx_L3_error)
  __pyx_L3_error:;
  __Pyx_AddTraceback("cgl.vec2.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_3cgl_4vec2___init__(((struct __pyx_obj_3cgl_vec2 *)__pyx_v_self), __pyx_v_x, __pyx_v_y);

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_3cgl_4vec2___init__(struct __pyx_obj_3cgl_vec2 *__pyx_v_self, double __pyx_v_x, double __pyx_v_y) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  struct CGL_vec2 __pyx_t_1;
  __Pyx_RefNannySetupContext("__init__", 0);

  /* "cgl_wrapper.pyx":506
 * 
 *     def __init__(self, x: float = 0.0, y: float = 0.0):
 *         self.c_vec2 = CGL_vec2(x, y)             # <<<<<<<<<<<<<<
 * 
 *     def __repr__(self):
 */
  __pyx_t_1.x = __pyx_v_x;
  __pyx_t_1.y = __pyx_v_y;
  __pyx_v_self->c_vec2 = __pyx_t_1;

  /* "cgl_wrapper.pyx":505
 *     cdef CGL_vec2 c_vec2
 * 
 *     def __init__(self, x: float = 0.0, y: float = 0.0):             # <<<<<<<<<<<<<<
 *         self.c_vec2 = CGL_vec2(x, y)
 * 
 */

  /* function exit code */
  __pyx_r = 0;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cgl_wrapper.pyx":508
 *         self.c_vec2 = CGL_vec2(x, y)
 * 
 *     def __repr__(self):             # <<<<<<<<<<<<<<
 *         return f"vec2({self.x}, {self.y})"
 * 
 */

/* Python wrapper */
static PyObject *__pyx_pw_3cgl_4vec2_3__repr__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_3cgl_4vec2_3__repr__(PyObject *__pyx_v_self) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__repr__ (wrapper)", 0);
  __pyx_r = __pyx_pf_3cgl_4vec2_2__repr__(((struct __pyx_obj_3cgl_vec2 *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_3cgl_4vec2_2__repr__(struct __pyx_obj_3cgl_vec2 *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  Py_ssize_t __pyx_t_2;
  Py_UCS4 __pyx_t_3;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__repr__", 0);

  /* "cgl_wrapper.pyx":509
 * 
 *     def __repr__(self):
 *         return f"vec2({self.x}, {self.y})"             # <<<<<<<<<<<<<<
 * 
 *     def __str__(self):
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = PyTuple_New(5); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 509, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = 0;
  __pyx_t_3 = 127;
  __Pyx_INCREF(__pyx_kp_u_vec2);
  __pyx_t_2 += 5;
  __Pyx_GIVEREF(__pyx_kp_u_vec2);
  PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_kp_u_vec2);
  __pyx_t_4 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_x); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 509, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_5 = __Pyx_PyObject_FormatSimple(__pyx_t_4, __pyx_empty_unicode); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 509, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __pyx_t_3 = (__Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_5) > __pyx_t_3) ? __Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_5) : __pyx_t_3;
  __pyx_t_2 += __Pyx_PyUnicode_GET_LENGTH(__pyx_t_5);
  __Pyx_GIVEREF(__pyx_t_5);
  PyTuple_SET_ITEM(__pyx_t_1, 1, __pyx_t_5);
  __pyx_t_5 = 0;
  __Pyx_INCREF(__pyx_kp_u__3);
  __pyx_t_2 += 2;
  __Pyx_GIVEREF(__pyx_kp_u__3);
  PyTuple_SET_ITEM(__pyx_t_1, 2, __pyx_kp_u__3);
  __pyx_t_5 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_y); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 509, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __pyx_t_4 = __Pyx_PyObject_FormatSimple(__pyx_t_5, __pyx_empty_unicode); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 509, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
  __pyx_t_3 = (__Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_4) > __pyx_t_3) ? __Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_4) : __pyx_t_3;
  __pyx_t_2 += __Pyx_PyUnicode_GET_LENGTH(__pyx_t_4);
  __Pyx_GIVEREF(__pyx_t_4);
  PyTuple_SET_ITEM(__pyx_t_1, 3, __pyx_t_4);
  __pyx_t_4 = 0;
  __Pyx_INCREF(__pyx_kp_u__4);
  __pyx_t_2 += 1;
  __Pyx_GIVEREF(__pyx_kp_u__4);
  PyTuple_SET_ITEM(__pyx_t_1, 4, __pyx_kp_u__4);
  __pyx_t_4 = __Pyx_PyUnicode_Join(__pyx_t_1, 5, __pyx_t_2, __pyx_t_3); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 509, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_r = __pyx_t_4;
  __pyx_t_4 = 0;
  goto __pyx_L0;

  /* "cgl_wrapper.pyx":508
 *         self.c_vec2 = CGL_vec2(x, y)
 * 
 *     def __repr__(self):             # <<<<<<<<<<<<<<
 *         return f"vec2({self.x}, {self.y})"
 * 
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("cgl.vec2.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cgl_wrapper.pyx":511
 *         return f"vec2({self.x}, {self.y})"
 * 
 *     def __str__(self):             # <<<<<<<<<<<<<<
 *         return f"vec2({self.x}, {self.y})"
 * 
 */

/* Python wrapper */
static PyObject *__pyx_pw_3cgl_4vec2_5__str__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_3cgl_4vec2_5__str__(PyObject *__pyx_v_self) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__str__ (wrapper)", 0);
  __pyx_r = __pyx_pf_3cgl_4vec2_4__str__(((struct __pyx_obj_3cgl_vec2 *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_3cgl_4vec2_4__str__(struct __pyx_obj_3cgl_vec2 *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  Py_ssize_t __pyx_t_2;
  Py_UCS4 __pyx_t_3;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__str__", 0);

  /* "cgl_wrapper.pyx":512
 * 
 *     def __str__(self):
 *         return f"vec2({self.x}, {self.y})"             # <<<<<<<<<<<<<<
 * 
 *     def __bytes__(self):
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = PyTuple_New(5); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 512, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = 0;
  __pyx_t_3 = 127;
  __Pyx_INCREF(__pyx_kp_u_vec2);
  __pyx_t_2 += 5;
  __Pyx_GIVEREF(__pyx_kp_u_vec2);
  PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_kp_u_vec2);
  __pyx_t_4 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_x); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 512, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_5 = __Pyx_PyObject_FormatSimple(__pyx_t_4, __pyx_empty_unicode); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 512, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __pyx_t_3 = (__Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_5) > __pyx_t_3) ? __Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_5) : __pyx_t_3;
  __pyx_t_2 += __Pyx_PyUnicode_GET_LENGTH(__pyx_t_5);
  __Pyx_GIVEREF(__pyx_t_5);
  PyTuple_SET_ITEM(__pyx_t_1, 1, __pyx_t_5);
  __pyx_t_5 = 0;
  __Pyx_INCREF(__pyx_kp_u__3);
  __pyx_t_2 += 2;
  __Pyx_GIVEREF(__pyx_kp_u__3);
  PyTuple_SET_ITEM(__pyx_t_1, 2, __pyx_kp_u__3);
  __pyx_t_5 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_y); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 512, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __pyx_t_4 = __Pyx_PyObject_FormatSimple(__pyx_t_5, __pyx_empty_unicode); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 512, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
  __pyx_t_3 = (__Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_4) > __pyx_t_3) ? __Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_4) : __pyx_t_3;
  __pyx_t_2 += __Pyx_PyUnicode_GET_LENGTH(__pyx_t_4);
  __Pyx_GIVEREF(__pyx_t_4);
  PyTuple_SET_ITEM(__pyx_t_1, 3, __pyx_t_4);
  __pyx_t_4 = 0;
  __Pyx_INCREF(__pyx_kp_u__4);
  __pyx_t_2 += 1;
  __Pyx_GIVEREF(__pyx_kp_u__4);
  PyTuple_SET_ITEM(__pyx_t_1, 4, __pyx_kp_u__4);
  __pyx_t_4 = __Pyx_PyUnicode_Join(__pyx_t_1, 5, __pyx_t_2, __pyx_t_3); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 512, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_r = __pyx_t_4;
  __pyx_t_4 = 0;
  goto __pyx_L0;

  /* "cgl_wrapper.pyx":511
 *         return f"vec2({self.x}, {self.y})"
 * 
 *     def __str__(self):             # <<<<<<<<<<<<<<
 *         return f"vec2({self.x}, {self.y})"
 * 
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("cgl.vec2.__str__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cgl_wrapper.pyx":514
 *         return f"vec2({self.x}, {self.y})"
 * 
 *     def __bytes__(self):             # <<<<<<<<<<<<<<
 *         return bytes(self.c_vec2)
 * 
 */

/* Python wrapper */
static PyObject *__pyx_pw_3cgl_4vec2_7__bytes__(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/
static PyObject *__pyx_pw_3cgl_4vec2_7__bytes__(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__bytes__ (wrapper)", 0);
  __pyx_r = __pyx_pf_3cgl_4vec2_6__bytes__(((struct __pyx_obj_3cgl_vec2 *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_3cgl_4vec2_6__bytes__(struct __pyx_obj_3cgl_vec2 *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__bytes__", 0);

  /* "cgl_wrapper.pyx":515
 * 
 *     def __bytes__(self):
 *         return bytes(self.c_vec2)             # <<<<<<<<<<<<<<
 * 
 *     def __len__(self):
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __pyx_convert__to_py_struct__CGL_vec2(__pyx_v_self->c_vec2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 515, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = __Pyx_PyObject_CallOneArg(((PyObject *)(&PyBytes_Type)), __pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 515, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_r = __pyx_t_2;
  __pyx_t_2 = 0;
  goto __pyx_L0;

  /* "cgl_wrapper.pyx":514
 *         return f"vec2({self.x}, {self.y})"
 * 
 *     def __bytes__(self):             # <<<<<<<<<<<<<<
 *         return bytes(self.c_vec2)
 * 
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("cgl.vec2.__bytes__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cgl_wrapper.pyx":517
 *         return bytes(self.c_vec2)
 * 
 *     def __len__(self):             # <<<<<<<<<<<<<<
 *         return 2
 * 
 */

/* Python wrapper */
static Py_ssize_t __pyx_pw_3cgl_4vec2_9__len__(PyObject *__pyx_v_self); /*proto*/
static Py_ssize_t __pyx_pw_3cgl_4vec2_9__len__(PyObject *__pyx_v_self) {
  Py_ssize_t __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__len__ (wrapper)", 0);
  __pyx_r = __pyx_pf_3cgl_4vec2_8__len__(((struct __pyx_obj_3cgl_vec2 *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static Py_ssize_t __pyx_pf_3cgl_4vec2_8__len__(CYTHON_UNUSED struct __pyx_obj_3cgl_vec2 *__pyx_v_self) {
  Py_ssize_t __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__len__", 0);

  /* "cgl_wrapper.pyx":518
 * 
 *     def __len__(self):
 *         return 2             # <<<<<<<<<<<<<<
 * 
 *     def __getitem__(self, index: int):
 */
  __pyx_r = 2;
  goto __pyx_L0;

  /* "cgl_wrapper.pyx":517
 *         return bytes(self.c_vec2)
 * 
 *     def __len__(self):             # <<<<<<<<<<<<<<
 *         return 2
 * 
 */

  /* function exit code */
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cgl_wrapper.pyx":520
 *         return 2
 * 
 *     def __getitem__(self, index: int):             # <<<<<<<<<<<<<<
 *         if index == 0:
 *             return self.c_vec2.x
 */

/* Python wrapper */
static PyObject *__pyx_pw_3cgl_4vec2_11__getitem__(PyObject *__pyx_v_self, PyObject *__pyx_v_index); /*proto*/
static PyObject *__pyx_pw_3cgl_4vec2_11__getitem__(PyObject *__pyx_v_self, PyObject *__pyx_v_index) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__getitem__ (wrapper)", 0);
  __pyx_r = __pyx_pf_3cgl_4vec2_10__getitem__(((struct __pyx_obj_3cgl_vec2 *)__pyx_v_self), ((PyObject *)__pyx_v_index));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_3cgl_4vec2_10__getitem__(struct __pyx_obj_3cgl_vec2 *__pyx_v_self, PyObject *__pyx_v_index) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  int __pyx_t_2;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__getitem__", 0);

  /* "cgl_wrapper.pyx":521
 * 
 *     def __getitem__(self, index: int):
 *         if index == 0:             # <<<<<<<<<<<<<<
 *             return self.c_vec2.x
 *         elif index == 1:
 */
  __pyx_t_1 = __Pyx_PyInt_EqObjC(__pyx_v_index, __pyx_int_0, 0, 0); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 521, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely(__pyx_t_2 < 0)) __PYX_ERR(0, 521, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  if (__pyx_t_2) {

    /* "cgl_wrapper.pyx":522
 *     def __getitem__(self, index: int):
 *         if index == 0:
 *             return self.c_vec2.x             # <<<<<<<<<<<<<<
 *         elif index == 1:
 *             return self.c_vec2.y
 */
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_1 = PyFloat_FromDouble(__pyx_v_self->c_vec2.x); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 522, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_r = __pyx_t_1;
    __pyx_t_1 = 0;
    goto __pyx_L0;

    /* "cgl_wrapper.pyx":521
 * 
 *     def __getitem__(self, index: int):
 *         if index == 0:             # <<<<<<<<<<<<<<
 *             return self.c_vec2.x
 *         elif index == 1:
 */
  }

  /* "cgl_wrapper.pyx":523
 *         if index == 0:
 *             return self.c_vec2.x
 *         elif index == 1:             # <<<<<<<<<<<<<<
 *             return self.c_vec2.y
 *         else:
 */
  __pyx_t_1 = __Pyx_PyInt_EqObjC(__pyx_v_index, __pyx_int_1, 1, 0); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 523, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely(__pyx_t_2 < 0)) __PYX_ERR(0, 523, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  if (likely(__pyx_t_2)) {

    /* "cgl_wrapper.pyx":524
 *             return self.c_vec2.x
 *         elif index == 1:
 *             return self.c_vec2.y             # <<<<<<<<<<<<<<
 *         else:
 *             raise IndexError()
 */
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_1 = PyFloat_FromDouble(__pyx_v_self->c_vec2.y); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 524, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_r = __pyx_t_1;
    __pyx_t_1 = 0;
    goto __pyx_L0;

    /* "cgl_wrapper.pyx":523
 *         if index == 0:
 *             return self.c_vec2.x
 *         elif index == 1:             # <<<<<<<<<<<<<<
 *             return self.c_vec2.y
 *         else:
 */
  }

  /* "cgl_wrapper.pyx":526
 *             return self.c_vec2.y
 *         else:
 *             raise IndexError()             # <<<<<<<<<<<<<<
 * 
 *     def __setitem__(self, index: int, value: int):
 */
  /*else*/ {
    __pyx_t_1 = __Pyx_PyObject_CallNoArg(__pyx_builtin_IndexError); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 526, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __Pyx_Raise(__pyx_t_1, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    __PYX_ERR(0, 526, __pyx_L1_error)
  }

  /* "cgl_wrapper.pyx":520
 *         return 2
 * 
 *     def __getitem__(self, index: int):             # <<<<<<<<<<<<<<
 *         if index == 0:
 *             return self.c_vec2.x
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cgl.vec2.__getitem__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cgl_wrapper.pyx":528
 *             raise IndexError()
 * 
 *     def __setitem__(self, index: int, value: int):             # <<<<<<<<<<<<<<
 *         if index == 0:
 *             self.c_vec2.x = value
 */

/* Python wrapper */
static int __pyx_pw_3cgl_4vec2_13__setitem__(PyObject *__pyx_v_self, PyObject *__pyx_v_index, PyObject *__pyx_v_value); /*proto*/
static int __pyx_pw_3cgl_4vec2_13__setitem__(PyObject *__pyx_v_self, PyObject *__pyx_v_index, PyObject *__pyx_v_value) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__setitem__ (wrapper)", 0);
  __pyx_r = __pyx_pf_3cgl_4vec2_12__setitem__(((struct __pyx_obj_3cgl_vec2 *)__pyx_v_self), ((PyObject *)__pyx_v_index), ((PyObject *)__pyx_v_value));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_3cgl_4vec2_12__setitem__(struct __pyx_obj_3cgl_vec2 *__pyx_v_self, PyObject *__pyx_v_index, PyObject *__pyx_v_value) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  int __pyx_t_2;
  CGL_float __pyx_t_3;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__setitem__", 0);

  /* "cgl_wrapper.pyx":529
 * 
 *     def __setitem__(self, index: int, value: int):
 *         if index == 0:             # <<<<<<<<<<<<<<
 *             self.c_vec2.x = value
 *         elif index == 1:
 */
  __pyx_t_1 = __Pyx_PyInt_EqObjC(__pyx_v_index, __pyx_int_0, 0, 0); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 529, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely(__pyx_t_2 < 0)) __PYX_ERR(0, 529, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  if (__pyx_t_2) {

    /* "cgl_wrapper.pyx":530
 *     def __setitem__(self, index: int, value: int):
 *         if index == 0:
 *             self.c_vec2.x = value             # <<<<<<<<<<<<<<
 *         elif index == 1:
 *             self.c_vec2.y = value
 */
    __pyx_t_3 = __pyx_PyFloat_AsFloat(__pyx_v_value); if (unlikely((__pyx_t_3 == ((CGL_float)-1)) && PyErr_Occurred())) __PYX_ERR(0, 530, __pyx_L1_error)
    __pyx_v_self->c_vec2.x = __pyx_t_3;

    /* "cgl_wrapper.pyx":529
 * 
 *     def __setitem__(self, index: int, value: int):
 *         if index == 0:             # <<<<<<<<<<<<<<
 *             self.c_vec2.x = value
 *         elif index == 1:
 */
    goto __pyx_L3;
  }

  /* "cgl_wrapper.pyx":531
 *         if index == 0:
 *             self.c_vec2.x = value
 *         elif index == 1:             # <<<<<<<<<<<<<<
 *             self.c_vec2.y = value
 *         else:
 */
  __pyx_t_1 = __Pyx_PyInt_EqObjC(__pyx_v_index, __pyx_int_1, 1, 0); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 531, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely(__pyx_t_2 < 0)) __PYX_ERR(0, 531, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  if (likely(__pyx_t_2)) {

    /* "cgl_wrapper.pyx":532
 *             self.c_vec2.x = value
 *         elif index == 1:
 *             self.c_vec2.y = value             # <<<<<<<<<<<<<<
 *         else:
 *             raise IndexError()
 */
    __pyx_t_3 = __pyx_PyFloat_AsFloat(__pyx_v_value); if (unlikely((__pyx_t_3 == ((CGL_float)-1)) && PyErr_Occurred())) __PYX_ERR(0, 532, __pyx_L1_error)
    __pyx_v_self->c_vec2.y = __pyx_t_3;

    /* "cgl_wrapper.pyx":531
 *         if index == 0:
 *             self.c_vec2.x = value
 *         elif index == 1:             # <<<<<<<<<<<<<<
 *             self.c_vec2.y = value
 *         else:
 */
    goto __pyx_L3;
  }

  /* "cgl_wrapper.pyx":534
 *             self.c_vec2.y = value
 *         else:
 *             raise IndexError()             # <<<<<<<<<<<<<<
 * 
 *     def __eq__(self, other: vec2):
 */
  /*else*/ {
    __pyx_t_1 = __Pyx_PyObject_CallNoArg(__pyx_builtin_IndexError); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 534, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __Pyx_Raise(__pyx_t_1, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    __PYX_ERR(0, 534, __pyx_L1_error)
  }
  __pyx_L3:;

  /* "cgl_wrapper.pyx":528
 *             raise IndexError()
 * 
 *     def __setitem__(self, index: int, value: int):             # <<<<<<<<<<<<<<
 *         if index == 0:
 *             self.c_vec2.x = value
 */

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cgl.vec2.__setitem__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cgl_wrapper.pyx":536
 *             raise IndexError()
 * 
 *     def __eq__(self, other: vec2):             # <<<<<<<<<<<<<<
 *         return self.c_vec2.x == other.c_vec2.x and self.c_vec2.y == other.c_vec2.y
 * 
 */

/* Python wrapper */
static PyObject *__pyx_pw_3cgl_4vec2_15__eq__(PyObject *__pyx_v_self, PyObject *__pyx_v_other); /*proto*/
static PyObject *__pyx_pw_3cgl_4vec2_15__eq__(PyObject *__pyx_v_self, PyObject *__pyx_v_other) {
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__eq__ (wrapper)", 0);
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_other), __pyx_ptype_3cgl_vec2, 1, "other", 0))) __PYX_ERR(0, 536, __pyx_L1_error)
  __pyx_r = __pyx_pf_3cgl_4vec2_14__eq__(((struct __pyx_obj_3cgl_vec2 *)__pyx_v_self), ((struct __pyx_obj_3cgl_vec2 *)__pyx_v_other));

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_3cgl_4vec2_14__eq__(struct __pyx_obj_3cgl_vec2 *__pyx_v_self, struct __pyx_obj_3cgl_vec2 *__pyx_v_other) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__eq__", 0);

  /* "cgl_wrapper.pyx":537
 * 
 *     def __eq__(self, other: vec2):
 *         return self.c_vec2.x == other.c_vec2.x and self.c_vec2.y == other.c_vec2.y             # <<<<<<<<<<<<<<
 * 
 *     def __ne__(self, other: vec2):
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_2 = (__pyx_v_self->c_vec2.x == __pyx_v_other->c_vec2.x);
  if (__pyx_t_2) {
  } else {
    __pyx_t_3 = __Pyx_PyBool_FromLong(__pyx_t_2); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 537, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_1 = __pyx_t_3;
    __pyx_t_3 = 0;
    goto __pyx_L3_bool_binop_done;
  }
  __pyx_t_2 = (__pyx_v_self->c_vec2.y == __pyx_v_other->c_vec2.y);
  __pyx_t_3 = __Pyx_PyBool_FromLong(__pyx_t_2); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 537, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_1 = __pyx_t_3;
  __pyx_t_3 = 0;
  __pyx_L3_bool_binop_done:;
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cgl_wrapper.pyx":536
 *             raise IndexError()
 * 
 *     def __eq__(self, other: vec2):             # <<<<<<<<<<<<<<
 *         return self.c_vec2.x == other.c_vec2.x and self.c_vec2.y == other.c_vec2.y
 * 
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_AddTraceback("cgl.vec2.__eq__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cgl_wrapper.pyx":539
 *         return self.c_vec2.x == other.c_vec2.x and self.c_vec2.y == other.c_vec2.y
 * 
 *     def __ne__(self, other: vec2):             # <<<<<<<<<<<<<<
 *         return self.c_vec2.x != other.c_vec2.x or self.c_vec2.y != other.c_vec2.y
 * 
 */

/* Python wrapper */
static PyObject *__pyx_pw_3cgl_4vec2_17__ne__(PyObject *__pyx_v_self, PyObject *__pyx_v_other); /*proto*/
static PyObject *__pyx_pw_3cgl_4vec2_17__ne__(PyObject *__pyx_v_self, PyObject *__pyx_v_other) {
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__ne__ (wrapper)", 0);
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_other), __pyx_ptype_3cgl_vec2, 1, "other", 0))) __PYX_ERR(0, 539, __pyx_L1_error)
  __pyx_r = __pyx_pf_3cgl_4vec2_16__ne__(((struct __pyx_obj_3cgl_vec2 *)__pyx_v_self), ((struct __pyx_obj_3cgl_vec2 *)__pyx_v_other));

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_3cgl_4vec2_16__ne__(struct __pyx_obj_3cgl_vec2 *__pyx_v_self, struct __pyx_obj_3cgl_vec2 *__pyx_v_other) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__ne__", 0);

  /* "cgl_wrapper.pyx":540
 * 
 *     def __ne__(self, other: vec2):
 *         return self.c_vec2.x != other.c_vec2.x or self.c_vec2.y != other.c_vec2.y             # <<<<<<<<<<<<<<
 * 
 *     def __hash__(self):
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_2 = (__pyx_v_self->c_vec2.x != __pyx_v_other->c_vec2.x);
  if (!__pyx_t_2) {
  } else {
    __pyx_t_3 = __Pyx_PyBool_FromLong(__pyx_t_2); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 540, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_1 = __pyx_t_3;
    __pyx_t_3 = 0;
    goto __pyx_L3_bool_binop_done;
  }
  __pyx_t_2 = (__pyx_v_self->c_vec2.y != __pyx_v_other->c_vec2.y);
  __pyx_t_3 = __Pyx_PyBool_FromLong(__pyx_t_2); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 540, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_1 = __pyx_t_3;
  __pyx_t_3 = 0;
  __pyx_L3_bool_binop_done:;
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cgl_wrapper.pyx":539
 *         return self.c_vec2.x == other.c_vec2.x and self.c_vec2.y == other.c_vec2.y
 * 
 *     def __ne__(self, other: vec2):             # <<<<<<<<<<<<<<
 *         return self.c_vec2.x != other.c_vec2.x or self.c_vec2.y != other.c_vec2.y
 * 
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_AddTraceback("cgl.vec2.__ne__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cgl_wrapper.pyx":542
 *         return self.c_vec2.x != other.c_vec2.x or self.c_vec2.y != other.c_vec2.y
 * 
 *     def __hash__(self):             # <<<<<<<<<<<<<<
 *         return hash((self.c_vec2.x, self.c_vec2.y))
 * 
 */

/* Python wrapper */
static Py_hash_t __pyx_pw_3cgl_4vec2_19__hash__(PyObject *__pyx_v_self); /*proto*/
static Py_hash_t __pyx_pw_3cgl_4vec2_19__hash__(PyObject *__pyx_v_self) {
  Py_hash_t __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__hash__ (wrapper)", 0);
  __pyx_r = __pyx_pf_3cgl_4vec2_18__hash__(((struct __pyx_obj_3cgl_vec2 *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static Py_hash_t __pyx_pf_3cgl_4vec2_18__hash__(struct __pyx_obj_3cgl_vec2 *__pyx_v_self) {
  Py_hash_t __pyx_r;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  Py_hash_t __pyx_t_4;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__hash__", 0);

  /* "cgl_wrapper.pyx":543
 * 
 *     def __hash__(self):
 *         return hash((self.c_vec2.x, self.c_vec2.y))             # <<<<<<<<<<<<<<
 * 
 *     def __getattr__(self, name: str):
 */
  __pyx_t_1 = PyFloat_FromDouble(__pyx_v_self->c_vec2.x); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 543, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = PyFloat_FromDouble(__pyx_v_self->c_vec2.y); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 543, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = PyTuple_New(2); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 543, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_GIVEREF(__pyx_t_1);
  PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_1);
  __Pyx_GIVEREF(__pyx_t_2);
  PyTuple_SET_ITEM(__pyx_t_3, 1, __pyx_t_2);
  __pyx_t_1 = 0;
  __pyx_t_2 = 0;
  __pyx_t_4 = PyObject_Hash(__pyx_t_3); if (unlikely(__pyx_t_4 == ((Py_hash_t)-1))) __PYX_ERR(0, 543, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __pyx_r = __pyx_t_4;
  goto __pyx_L0;

  /* "cgl_wrapper.pyx":542
 *         return self.c_vec2.x != other.c_vec2.x or self.c_vec2.y != other.c_vec2.y
 * 
 *     def __hash__(self):             # <<<<<<<<<<<<<<
 *         return hash((self.c_vec2.x, self.c_vec2.y))
 * 
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_AddTraceback("cgl.vec2.__hash__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  if (unlikely(__pyx_r == -1) && !PyErr_Occurred()) __pyx_r = -2;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cgl_wrapper.pyx":545
 *         return hash((self.c_vec2.x, self.c_vec2.y))
 * 
 *     def __getattr__(self, name: str):             # <<<<<<<<<<<<<<
 *         if name == "x":
 *             return self.c_vec2.x
 */

/* Python wrapper */
static PyObject *__pyx_pw_3cgl_4vec2_21__getattr__(PyObject *__pyx_v_self, PyObject *__pyx_v_name); /*proto*/
static PyObject *__pyx_pw_3cgl_4vec2_21__getattr__(PyObject *__pyx_v_self, PyObject *__pyx_v_name) {
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__getattr__ (wrapper)", 0);
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_name), (&PyString_Type), 1, "name", 1))) __PYX_ERR(0, 545, __pyx_L1_error)
  __pyx_r = __pyx_pf_3cgl_4vec2_20__getattr__(((struct __pyx_obj_3cgl_vec2 *)__pyx_v_self), ((PyObject*)__pyx_v_name));

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_3cgl_4vec2_20__getattr__(struct __pyx_obj_3cgl_vec2 *__pyx_v_self, PyObject *__pyx_v_name) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__getattr__", 0);

  /* "cgl_wrapper.pyx":546
 * 
 *     def __getattr__(self, name: str):
 *         if name == "x":             # <<<<<<<<<<<<<<
 *             return self.c_vec2.x
 *         elif name == "y":
 */
  __pyx_t_1 = (__Pyx_PyString_Equals(__pyx_v_name, __pyx_n_s_x, Py_EQ)); if (unlikely(__pyx_t_1 < 0)) __PYX_ERR(0, 546, __pyx_L1_error)
  __pyx_t_2 = (__pyx_t_1 != 0);
  if (__pyx_t_2) {

    /* "cgl_wrapper.pyx":547
 *     def __getattr__(self, name: str):
 *         if name == "x":
 *             return self.c_vec2.x             # <<<<<<<<<<<<<<
 *         elif name == "y":
 *             return self.c_vec2.y
 */
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_3 = PyFloat_FromDouble(__pyx_v_self->c_vec2.x); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 547, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_r = __pyx_t_3;
    __pyx_t_3 = 0;
    goto __pyx_L0;

    /* "cgl_wrapper.pyx":546
 * 
 *     def __getattr__(self, name: str):
 *         if name == "x":             # <<<<<<<<<<<<<<
 *             return self.c_vec2.x
 *         elif name == "y":
 */
  }

  /* "cgl_wrapper.pyx":548
 *         if name == "x":
 *             return self.c_vec2.x
 *         elif name == "y":             # <<<<<<<<<<<<<<
 *             return self.c_vec2.y
 *         else:
 */
  __pyx_t_2 = (__Pyx_PyString_Equals(__pyx_v_name, __pyx_n_s_y, Py_EQ)); if (unlikely(__pyx_t_2 < 0)) __PYX_ERR(0, 548, __pyx_L1_error)
  __pyx_t_1 = (__pyx_t_2 != 0);
  if (likely(__pyx_t_1)) {

    /* "cgl_wrapper.pyx":549
 *             return self.c_vec2.x
 *         elif name == "y":
 *             return self.c_vec2.y             # <<<<<<<<<<<<<<
 *         else:
 *             raise AttributeError()
 */
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_3 = PyFloat_FromDouble(__pyx_v_self->c_vec2.y); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 549, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_r = __pyx_t_3;
    __pyx_t_3 = 0;
    goto __pyx_L0;

    /* "cgl_wrapper.pyx":548
 *         if name == "x":
 *             return self.c_vec2.x
 *         elif name == "y":             # <<<<<<<<<<<<<<
 *             return self.c_vec2.y
 *         else:
 */
  }

  /* "cgl_wrapper.pyx":551
 *             return self.c_vec2.y
 *         else:
 *             raise AttributeError()             # <<<<<<<<<<<<<<
 * 
 *     def __setattr__(self, name: str, value):
 */
  /*else*/ {
    __pyx_t_3 = __Pyx_PyObject_CallNoArg(__pyx_builtin_AttributeError); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 551, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_Raise(__pyx_t_3, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __PYX_ERR(0, 551, __pyx_L1_error)
  }

  /* "cgl_wrapper.pyx":545
 *         return hash((self.c_vec2.x, self.c_vec2.y))
 * 
 *     def __getattr__(self, name: str):             # <<<<<<<<<<<<<<
 *         if name == "x":
 *             return self.c_vec2.x
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_AddTraceback("cgl.vec2.__getattr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cgl_wrapper.pyx":553
 *             raise AttributeError()
 * 
 *     def __setattr__(self, name: str, value):             # <<<<<<<<<<<<<<
 *         if name == "x":
 *             self.c_vec2.x = value
 */

/* Python wrapper */
static int __pyx_pw_3cgl_4vec2_23__setattr__(PyObject *__pyx_v_self, PyObject *__pyx_v_name, PyObject *__pyx_v_value); /*proto*/
static int __pyx_pw_3cgl_4vec2_23__setattr__(PyObject *__pyx_v_self, PyObject *__pyx_v_name, PyObject *__pyx_v_value) {
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__setattr__ (wrapper)", 0);
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_name), (&PyString_Type), 1, "name", 1))) __PYX_ERR(0, 553, __pyx_L1_error)
  __pyx_r = __pyx_pf_3cgl_4vec2_22__setattr__(((struct __pyx_obj_3cgl_vec2 *)__pyx_v_self), ((PyObject*)__pyx_v_name), ((PyObject *)__pyx_v_value));

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_3cgl_4vec2_22__setattr__(struct __pyx_obj_3cgl_vec2 *__pyx_v_self, PyObject *__pyx_v_name, PyObject *__pyx_v_value) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  CGL_float __pyx_t_3;
  PyObject *__pyx_t_4 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__setattr__", 0);

  /* "cgl_wrapper.pyx":554
 * 
 *     def __setattr__(self, name: str, value):
 *         if name == "x":             # <<<<<<<<<<<<<<
 *             self.c_vec2.x = value
 *         elif name == "y":
 */
  __pyx_t_1 = (__Pyx_PyString_Equals(__pyx_v_name, __pyx_n_s_x, Py_EQ)); if (unlikely(__pyx_t_1 < 0)) __PYX_ERR(0, 554, __pyx_L1_error)
  __pyx_t_2 = (__pyx_t_1 != 0);
  if (__pyx_t_2) {

    /* "cgl_wrapper.pyx":555
 *     def __setattr__(self, name: str, value):
 *         if name == "x":
 *             self.c_vec2.x = value             # <<<<<<<<<<<<<<
 *         elif name == "y":
 *             self.c_vec2.y = value
 */
    __pyx_t_3 = __pyx_PyFloat_AsFloat(__pyx_v_value); if (unlikely((__pyx_t_3 == ((CGL_float)-1)) && PyErr_Occurred())) __PYX_ERR(0, 555, __pyx_L1_error)
    __pyx_v_self->c_vec2.x = __pyx_t_3;

    /* "cgl_wrapper.pyx":554
 * 
 *     def __setattr__(self, name: str, value):
 *         if name == "x":             # <<<<<<<<<<<<<<
 *             self.c_vec2.x = value
 *         elif name == "y":
 */
    goto __pyx_L3;
  }

  /* "cgl_wrapper.pyx":556
 *         if name == "x":
 *             self.c_vec2.x = value
 *         elif name == "y":             # <<<<<<<<<<<<<<
 *             self.c_vec2.y = value
 *         else:
 */
  __pyx_t_2 = (__Pyx_PyString_Equals(__pyx_v_name, __pyx_n_s_y, Py_EQ)); if (unlikely(__pyx_t_2 < 0)) __PYX_ERR(0, 556, __pyx_L1_error)
  __pyx_t_1 = (__pyx_t_2 != 0);
  if (likely(__pyx_t_1)) {

    /* "cgl_wrapper.pyx":557
 *             self.c_vec2.x = value
 *         elif name == "y":
 *             self.c_vec2.y = value             # <<<<<<<<<<<<<<
 *         else:
 *             raise AttributeError()
 */
    __pyx_t_3 = __pyx_PyFloat_AsFloat(__pyx_v_value); if (unlikely((__pyx_t_3 == ((CGL_float)-1)) && PyErr_Occurred())) __PYX_ERR(0, 557, __pyx_L1_error)
    __pyx_v_self->c_vec2.y = __pyx_t_3;

    /* "cgl_wrapper.pyx":556
 *         if name == "x":
 *             self.c_vec2.x = value
 *         elif name == "y":             # <<<<<<<<<<<<<<
 *             self.c_vec2.y = value
 *         else:
 */
    goto __pyx_L3;
  }

  /* "cgl_wrapper.pyx":559
 *             self.c_vec2.y = value
 *         else:
 *             raise AttributeError()             # <<<<<<<<<<<<<<
 * 
 *     def __add__(self, other: vec2):
 */
  /*else*/ {
    __pyx_t_4 = __Pyx_PyObject_CallNoArg(__pyx_builtin_AttributeError); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 559, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_Raise(__pyx_t_4, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __PYX_ERR(0, 559, __pyx_L1_error)
  }
  __pyx_L3:;

  /* "cgl_wrapper.pyx":553
 *             raise AttributeError()
 * 
 *     def __setattr__(self, name: str, value):             # <<<<<<<<<<<<<<
 *         if name == "x":
 *             self.c_vec2.x = value
 */

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cgl.vec2.__setattr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cgl_wrapper.pyx":561
 *             raise AttributeError()
 * 
 *     def __add__(self, other: vec2):             # <<<<<<<<<<<<<<
 *         return vec2(self.x + other.x, self.y + other.y)
 * 
 */

/* Python wrapper */
static PyObject *__pyx_pw_3cgl_4vec2_25__add__(PyObject *__pyx_v_self, PyObject *__pyx_v_other); /*proto*/
static PyObject *__pyx_pw_3cgl_4vec2_25__add__(PyObject *__pyx_v_self, PyObject *__pyx_v_other) {
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__add__ (wrapper)", 0);
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_other), __pyx_ptype_3cgl_vec2, 1, "other", 0))) __PYX_ERR(0, 561, __pyx_L1_error)
  __pyx_r = __pyx_pf_3cgl_4vec2_24__add__(((PyObject *)__pyx_v_self), ((struct __pyx_obj_3cgl_vec2 *)__pyx_v_other));

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_3cgl_4vec2_24__add__(PyObject *__pyx_v_self, struct __pyx_obj_3cgl_vec2 *__pyx_v_other) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__add__", 0);

  /* "cgl_wrapper.pyx":562
 * 
 *     def __add__(self, other: vec2):
 *         return vec2(self.x + other.x, self.y + other.y)             # <<<<<<<<<<<<<<
 * 
 *     def __sub__(self, other: vec2):
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_x); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 562, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_other), __pyx_n_s_x); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 562, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = PyNumber_Add(__pyx_t_1, __pyx_t_2); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 562, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_y); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 562, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_other), __pyx_n_s_y); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 562, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_4 = PyNumber_Add(__pyx_t_2, __pyx_t_1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 562, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_1 = PyTuple_New(2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 562, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_GIVEREF(__pyx_t_3);
  PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_t_3);
  __Pyx_GIVEREF(__pyx_t_4);
  PyTuple_SET_ITEM(__pyx_t_1, 1, __pyx_t_4);
  __pyx_t_3 = 0;
  __pyx_t_4 = 0;
  __pyx_t_4 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_3cgl_vec2), __pyx_t_1, NULL); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 562, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_r = __pyx_t_4;
  __pyx_t_4 = 0;
  goto __pyx_L0;

  /* "cgl_wrapper.pyx":561
 *             raise AttributeError()
 * 
 *     def __add__(self, other: vec2):             # <<<<<<<<<<<<<<
 *         return vec2(self.x + other.x, self.y + other.y)
 * 
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cgl.vec2.__add__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cgl_wrapper.pyx":564
 *         return vec2(self.x + other.x, self.y + other.y)
 * 
 *     def __sub__(self, other: vec2):             # <<<<<<<<<<<<<<
 *         return vec2(self.x - other.x, self.y - other.y)
 * 
 */

/* Python wrapper */
static PyObject *__pyx_pw_3cgl_4vec2_27__sub__(PyObject *__pyx_v_self, PyObject *__pyx_v_other); /*proto*/
static PyObject *__pyx_pw_3cgl_4vec2_27__sub__(PyObject *__pyx_v_self, PyObject *__pyx_v_other) {
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__sub__ (wrapper)", 0);
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_other), __pyx_ptype_3cgl_vec2, 1, "other", 0))) __PYX_ERR(0, 564, __pyx_L1_error)
  __pyx_r = __pyx_pf_3cgl_4vec2_26__sub__(((PyObject *)__pyx_v_self), ((struct __pyx_obj_3cgl_vec2 *)__pyx_v_other));

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_3cgl_4vec2_26__sub__(PyObject *__pyx_v_self, struct __pyx_obj_3cgl_vec2 *__pyx_v_other) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__sub__", 0);

  /* "cgl_wrapper.pyx":565
 * 
 *     def __sub__(self, other: vec2):
 *         return vec2(self.x - other.x, self.y - other.y)             # <<<<<<<<<<<<<<
 * 
 *     def __mul__(self, other: vec2):
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_x); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 565, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_other), __pyx_n_s_x); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 565, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = PyNumber_Subtract(__pyx_t_1, __pyx_t_2); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 565, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_y); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 565, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_other), __pyx_n_s_y); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 565, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_4 = PyNumber_Subtract(__pyx_t_2, __pyx_t_1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 565, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_1 = PyTuple_New(2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 565, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_GIVEREF(__pyx_t_3);
  PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_t_3);
  __Pyx_GIVEREF(__pyx_t_4);
  PyTuple_SET_ITEM(__pyx_t_1, 1, __pyx_t_4);
  __pyx_t_3 = 0;
  __pyx_t_4 = 0;
  __pyx_t_4 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_3cgl_vec2), __pyx_t_1, NULL); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 565, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_r = __pyx_t_4;
  __pyx_t_4 = 0;
  goto __pyx_L0;

  /* "cgl_wrapper.pyx":564
 *         return vec2(self.x + other.x, self.y + other.y)
 * 
 *     def __sub__(self, other: vec2):             # <<<<<<<<<<<<<<
 *         return vec2(self.x - other.x, self.y - other.y)
 * 
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cgl.vec2.__sub__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cgl_wrapper.pyx":567
 *         return vec2(self.x - other.x, self.y - other.y)
 * 
 *     def __mul__(self, other: vec2):             # <<<<<<<<<<<<<<
 *         return vec2(self.x * other.x, self.y * other.y)
 * 
 */

/* Python wrapper */
static PyObject *__pyx_pw_3cgl_4vec2_29__mul__(PyObject *__pyx_v_self, PyObject *__pyx_v_other); /*proto*/
static PyObject *__pyx_pw_3cgl_4vec2_29__mul__(PyObject *__pyx_v_self, PyObject *__pyx_v_other) {
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__mul__ (wrapper)", 0);
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_other), __pyx_ptype_3cgl_vec2, 1, "other", 0))) __PYX_ERR(0, 567, __pyx_L1_error)
  __pyx_r = __pyx_pf_3cgl_4vec2_28__mul__(((PyObject *)__pyx_v_self), ((struct __pyx_obj_3cgl_vec2 *)__pyx_v_other));

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_3cgl_4vec2_28__mul__(PyObject *__pyx_v_self, struct __pyx_obj_3cgl_vec2 *__pyx_v_other) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__mul__", 0);

  /* "cgl_wrapper.pyx":568
 * 
 *     def __mul__(self, other: vec2):
 *         return vec2(self.x * other.x, self.y * other.y)             # <<<<<<<<<<<<<<
 * 
 *     def __truediv__(self, other: vec2):
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_x); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 568, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_other), __pyx_n_s_x); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 568, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = PyNumber_Multiply(__pyx_t_1, __pyx_t_2); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 568, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_y); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 568, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_other), __pyx_n_s_y); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 568, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_4 = PyNumber_Multiply(__pyx_t_2, __pyx_t_1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 568, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_1 = PyTuple_New(2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 568, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_GIVEREF(__pyx_t_3);
  PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_t_3);
  __Pyx_GIVEREF(__pyx_t_4);
  PyTuple_SET_ITEM(__pyx_t_1, 1, __pyx_t_4);
  __pyx_t_3 = 0;
  __pyx_t_4 = 0;
  __pyx_t_4 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_3cgl_vec2), __pyx_t_1, NULL); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 568, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_r = __pyx_t_4;
  __pyx_t_4 = 0;
  goto __pyx_L0;

  /* "cgl_wrapper.pyx":567
 *         return vec2(self.x - other.x, self.y - other.y)
 * 
 *     def __mul__(self, other: vec2):             # <<<<<<<<<<<<<<
 *         return vec2(self.x * other.x, self.y * other.y)
 * 
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cgl.vec2.__mul__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cgl_wrapper.pyx":570
 *         return vec2(self.x * other.x, self.y * other.y)
 * 
 *     def __truediv__(self, other: vec2):             # <<<<<<<<<<<<<<
 *         return vec2(self.x / other.x, self.y / other.y)
 * 
 */

/* Python wrapper */
static PyObject *__pyx_pw_3cgl_4vec2_31__truediv__(PyObject *__pyx_v_self, PyObject *__pyx_v_other); /*proto*/
static PyObject *__pyx_pw_3cgl_4vec2_31__truediv__(PyObject *__pyx_v_self, PyObject *__pyx_v_other) {
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__truediv__ (wrapper)", 0);
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_other), __pyx_ptype_3cgl_vec2, 1, "other", 0))) __PYX_ERR(0, 570, __pyx_L1_error)
  __pyx_r = __pyx_pf_3cgl_4vec2_30__truediv__(((PyObject *)__pyx_v_self), ((struct __pyx_obj_3cgl_vec2 *)__pyx_v_other));

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_3cgl_4vec2_30__truediv__(PyObject *__pyx_v_self, struct __pyx_obj_3cgl_vec2 *__pyx_v_other) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__truediv__", 0);

  /* "cgl_wrapper.pyx":571
 * 
 *     def __truediv__(self, other: vec2):
 *         return vec2(self.x / other.x, self.y / other.y)             # <<<<<<<<<<<<<<
 * 
 *     def __floordiv__(self, other: vec2):
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_x); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 571, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_other), __pyx_n_s_x); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 571, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = __Pyx_PyNumber_Divide(__pyx_t_1, __pyx_t_2); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 571, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_y); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 571, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_other), __pyx_n_s_y); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 571, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_4 = __Pyx_PyNumber_Divide(__pyx_t_2, __pyx_t_1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 571, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_1 = PyTuple_New(2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 571, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_GIVEREF(__pyx_t_3);
  PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_t_3);
  __Pyx_GIVEREF(__pyx_t_4);
  PyTuple_SET_ITEM(__pyx_t_1, 1, __pyx_t_4);
  __pyx_t_3 = 0;
  __pyx_t_4 = 0;
  __pyx_t_4 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_3cgl_vec2), __pyx_t_1, NULL); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 571, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_r = __pyx_t_4;
  __pyx_t_4 = 0;
  goto __pyx_L0;

  /* "cgl_wrapper.pyx":570
 *         return vec2(self.x * other.x, self.y * other.y)
 * 
 *     def __truediv__(self, other: vec2):             # <<<<<<<<<<<<<<
 *         return vec2(self.x / other.x, self.y / other.y)
 * 
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cgl.vec2.__truediv__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cgl_wrapper.pyx":573
 *         return vec2(self.x / other.x, self.y / other.y)
 * 
 *     def __floordiv__(self, other: vec2):             # <<<<<<<<<<<<<<
 *         return vec2(self.x // other.x, self.y // other.y)
 * 
 */

/* Python wrapper */
static PyObject *__pyx_pw_3cgl_4vec2_33__floordiv__(PyObject *__pyx_v_self, PyObject *__pyx_v_other); /*proto*/
static PyObject *__pyx_pw_3cgl_4vec2_33__floordiv__(PyObject *__pyx_v_self, PyObject *__pyx_v_other) {
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__floordiv__ (wrapper)", 0);
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_other), __pyx_ptype_3cgl_vec2, 1, "other", 0))) __PYX_ERR(0, 573, __pyx_L1_error)
  __pyx_r = __pyx_pf_3cgl_4vec2_32__floordiv__(((PyObject *)__pyx_v_self), ((struct __pyx_obj_3cgl_vec2 *)__pyx_v_other));

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_3cgl_4vec2_32__floordiv__(PyObject *__pyx_v_self, struct __pyx_obj_3cgl_vec2 *__pyx_v_other) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__floordiv__", 0);

  /* "cgl_wrapper.pyx":574
 * 
 *     def __floordiv__(self, other: vec2):
 *         return vec2(self.x // other.x, self.y // other.y)             # <<<<<<<<<<<<<<
 * 
 *     def dot(self, other: vec2):
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_x); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 574, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_other), __pyx_n_s_x); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 574, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = PyNumber_FloorDivide(__pyx_t_1, __pyx_t_2); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 574, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_y); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 574, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_other), __pyx_n_s_y); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 574, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_4 = PyNumber_FloorDivide(__pyx_t_2, __pyx_t_1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 574, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_1 = PyTuple_New(2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 574, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_GIVEREF(__pyx_t_3);
  PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_t_3);
  __Pyx_GIVEREF(__pyx_t_4);
  PyTuple_SET_ITEM(__pyx_t_1, 1, __pyx_t_4);
  __pyx_t_3 = 0;
  __pyx_t_4 = 0;
  __pyx_t_4 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_3cgl_vec2), __pyx_t_1, NULL); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 574, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_r = __pyx_t_4;
  __pyx_t_4 = 0;
  goto __pyx_L0;

  /* "cgl_wrapper.pyx":573
 *         return vec2(self.x / other.x, self.y / other.y)
 * 
 *     def __floordiv__(self, other: vec2):             # <<<<<<<<<<<<<<
 *         return vec2(self.x // other.x, self.y // other.y)
 * 
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cgl.vec2.__floordiv__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cgl_wrapper.pyx":576
 *         return vec2(self.x // other.x, self.y // other.y)
 * 
 *     def dot(self, other: vec2):             # <<<<<<<<<<<<<<
 *         return (self.x * other.x) + (self.y * other.y)
 * 
 */

/* Python wrapper */
static PyObject *__pyx_pw_3cgl_4vec2_35dot(PyObject *__pyx_v_self, PyObject *__pyx_v_other); /*proto*/
static PyObject *__pyx_pw_3cgl_4vec2_35dot(PyObject *__pyx_v_self, PyObject *__pyx_v_other) {
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("dot (wrapper)", 0);
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_other), __pyx_ptype_3cgl_vec2, 1, "other", 0))) __PYX_ERR(0, 576, __pyx_L1_error)
  __pyx_r = __pyx_pf_3cgl_4vec2_34dot(((struct __pyx_obj_3cgl_vec2 *)__pyx_v_self), ((struct __pyx_obj_3cgl_vec2 *)__pyx_v_other));

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_3cgl_4vec2_34dot(struct __pyx_obj_3cgl_vec2 *__pyx_v_self, struct __pyx_obj_3cgl_vec2 *__pyx_v_other) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("dot", 0);

  /* "cgl_wrapper.pyx":577
 * 
 *     def dot(self, other: vec2):
 *         return (self.x * other.x) + (self.y * other.y)             # <<<<<<<<<<<<<<
 * 
 *     def cross(self, other: vec2):
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_x); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 577, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_other), __pyx_n_s_x); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 577, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = PyNumber_Multiply(__pyx_t_1, __pyx_t_2); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 577, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_y); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 577, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_other), __pyx_n_s_y); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 577, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_4 = PyNumber_Multiply(__pyx_t_2, __pyx_t_1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 577, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_1 = PyNumber_Add(__pyx_t_3, __pyx_t_4); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 577, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cgl_wrapper.pyx":576
 *         return vec2(self.x // other.x, self.y // other.y)
 * 
 *     def dot(self, other: vec2):             # <<<<<<<<<<<<<<
 *         return (self.x * other.x) + (self.y * other.y)
 * 
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cgl.vec2.dot", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cgl_wrapper.pyx":579
 *         return (self.x * other.x) + (self.y * other.y)
 * 
 *     def cross(self, other: vec2):             # <<<<<<<<<<<<<<
 *         return (self.x * other.y) - (self.y * other.x)
 * 
 */

/* Python wrapper */
static PyObject *__pyx_pw_3cgl_4vec2_37cross(PyObject *__pyx_v_self, PyObject *__pyx_v_other); /*proto*/
static PyObject *__pyx_pw_3cgl_4vec2_37cross(PyObject *__pyx_v_self, PyObject *__pyx_v_other) {
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("cross (wrapper)", 0);
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_other), __pyx_ptype_3cgl_vec2, 1, "other", 0))) __PYX_ERR(0, 579, __pyx_L1_error)
  __pyx_r = __pyx_pf_3cgl_4vec2_36cross(((struct __pyx_obj_3cgl_vec2 *)__pyx_v_self), ((struct __pyx_obj_3cgl_vec2 *)__pyx_v_other));

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_3cgl_4vec2_36cross(struct __pyx_obj_3cgl_vec2 *__pyx_v_self, struct __pyx_obj_3cgl_vec2 *__pyx_v_other) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("cross", 0);

  /* "cgl_wrapper.pyx":580
 * 
 *     def cross(self, other: vec2):
 *         return (self.x * other.y) - (self.y * other.x)             # <<<<<<<<<<<<<<
 * 
 *     def length(self):
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_x); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 580, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_other), __pyx_n_s_y); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 580, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = PyNumber_Multiply(__pyx_t_1, __pyx_t_2); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 580, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_y); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 580, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_other), __pyx_n_s_x); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 580, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_4 = PyNumber_Multiply(__pyx_t_2, __pyx_t_1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 580, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_1 = PyNumber_Subtract(__pyx_t_3, __pyx_t_4); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 580, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cgl_wrapper.pyx":579
 *         return (self.x * other.x) + (self.y * other.y)
 * 
 *     def cross(self, other: vec2):             # <<<<<<<<<<<<<<
 *         return (self.x * other.y) - (self.y * other.x)
 * 
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cgl.vec2.cross", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cgl_wrapper.pyx":582
 *         return (self.x * other.y) - (self.y * other.x)
 * 
 *     def length(self):             # <<<<<<<<<<<<<<
 *         return math.sqrt((self.x * self.x) + (self.y * self.y))
 * 
 */

/* Python wrapper */
static PyObject *__pyx_pw_3cgl_4vec2_39length(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/
static PyObject *__pyx_pw_3cgl_4vec2_39length(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("length (wrapper)", 0);
  __pyx_r = __pyx_pf_3cgl_4vec2_38length(((struct __pyx_obj_3cgl_vec2 *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_3cgl_4vec2_38length(struct __pyx_obj_3cgl_vec2 *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  double __pyx_t_5;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("length", 0);

  /* "cgl_wrapper.pyx":583
 * 
 *     def length(self):
 *         return math.sqrt((self.x * self.x) + (self.y * self.y))             # <<<<<<<<<<<<<<
 * 
 *     def length_squared(self):
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_x); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 583, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_x); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 583, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = PyNumber_Multiply(__pyx_t_1, __pyx_t_2); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 583, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_y); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 583, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_y); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 583, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_4 = PyNumber_Multiply(__pyx_t_2, __pyx_t_1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 583, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_1 = PyNumber_Add(__pyx_t_3, __pyx_t_4); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 583, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __pyx_t_5 = __pyx_PyFloat_AsDouble(__pyx_t_1); if (unlikely((__pyx_t_5 == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 583, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_1 = PyFloat_FromDouble(sqrt(__pyx_t_5)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 583, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cgl_wrapper.pyx":582
 *         return (self.x * other.y) - (self.y * other.x)
 * 
 *     def length(self):             # <<<<<<<<<<<<<<
 *         return math.sqrt((self.x * self.x) + (self.y * self.y))
 * 
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cgl.vec2.length", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cgl_wrapper.pyx":585
 *         return math.sqrt((self.x * self.x) + (self.y * self.y))
 * 
 *     def length_squared(self):             # <<<<<<<<<<<<<<
 *         return (self.x * self.x) + (self.y * self.y)
 * 
 */

/* Python wrapper */
static PyObject *__pyx_pw_3cgl_4vec2_41length_squared(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/
static PyObject *__pyx_pw_3cgl_4vec2_41length_squared(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("length_squared (wrapper)", 0);
  __pyx_r = __pyx_pf_3cgl_4vec2_40length_squared(((struct __pyx_obj_3cgl_vec2 *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_3cgl_4vec2_40length_squared(struct __pyx_obj_3cgl_vec2 *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("length_squared", 0);

  /* "cgl_wrapper.pyx":586
 * 
 *     def length_squared(self):
 *         return (self.x * self.x) + (self.y * self.y)             # <<<<<<<<<<<<<<
 * 
 *     def normalized(self):
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_x); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 586, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_x); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 586, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = PyNumber_Multiply(__pyx_t_1, __pyx_t_2); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 586, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_y); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 586, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_y); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 586, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_4 = PyNumber_Multiply(__pyx_t_2, __pyx_t_1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 586, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_1 = PyNumber_Add(__pyx_t_3, __pyx_t_4); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 586, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cgl_wrapper.pyx":585
 *         return math.sqrt((self.x * self.x) + (self.y * self.y))
 * 
 *     def length_squared(self):             # <<<<<<<<<<<<<<
 *         return (self.x * self.x) + (self.y * self.y)
 * 
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cgl.vec2.length_squared", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cgl_wrapper.pyx":588
 *         return (self.x * self.x) + (self.y * self.y)
 * 
 *     def normalized(self):             # <<<<<<<<<<<<<<
 *         length = self.length()
 *         return vec2(self.x / length, self.y / length)
 */

/* Python wrapper */
static PyObject *__pyx_pw_3cgl_4vec2_43normalized(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/
static PyObject *__pyx_pw_3cgl_4vec2_43normalized(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("normalized (wrapper)", 0);
  __pyx_r = __pyx_pf_3cgl_4vec2_42normalized(((struct __pyx_obj_3cgl_vec2 *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_3cgl_4vec2_42normalized(struct __pyx_obj_3cgl_vec2 *__pyx_v_self) {
  PyObject *__pyx_v_length = NULL;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("normalized", 0);

  /* "cgl_wrapper.pyx":589
 * 
 *     def normalized(self):
 *         length = self.length()             # <<<<<<<<<<<<<<
 *         return vec2(self.x / length, self.y / length)
 * 
 */
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_length); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 589, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = NULL;
  if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) {
    __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2);
    if (likely(__pyx_t_3)) {
      PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2);
      __Pyx_INCREF(__pyx_t_3);
      __Pyx_INCREF(function);
      __Pyx_DECREF_SET(__pyx_t_2, function);
    }
  }
  __pyx_t_1 = (__pyx_t_3) ? __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_t_3) : __Pyx_PyObject_CallNoArg(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
  if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 589, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_v_length = __pyx_t_1;
  __pyx_t_1 = 0;

  /* "cgl_wrapper.pyx":590
 *     def normalized(self):
 *         length = self.length()
 *         return vec2(self.x / length, self.y / length)             # <<<<<<<<<<<<<<
 * 
 * def vec2_triple_product(a: vec2, b: vec2, c: vec2) -> vec2:
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_x); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 590, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = __Pyx_PyNumber_Divide(__pyx_t_1, __pyx_v_length); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 590, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_y); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 590, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_3 = __Pyx_PyNumber_Divide(__pyx_t_1, __pyx_v_length); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 590, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_1 = PyTuple_New(2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 590, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_GIVEREF(__pyx_t_2);
  PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_3);
  PyTuple_SET_ITEM(__pyx_t_1, 1, __pyx_t_3);
  __pyx_t_2 = 0;
  __pyx_t_3 = 0;
  __pyx_t_3 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_3cgl_vec2), __pyx_t_1, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 590, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_r = __pyx_t_3;
  __pyx_t_3 = 0;
  goto __pyx_L0;

  /* "cgl_wrapper.pyx":588
 *         return (self.x * self.x) + (self.y * self.y)
 * 
 *     def normalized(self):             # <<<<<<<<<<<<<<
 *         length = self.length()
 *         return vec2(self.x / length, self.y / length)
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_AddTraceback("cgl.vec2.normalized", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_length);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError("Pickling of struct members such as self.c_vec2 must be explicitly requested with @auto_pickle(True)")
 * def __setstate_cython__(self, __pyx_state):
 */

/* Python wrapper */
static PyObject *__pyx_pw_3cgl_4vec2_45__reduce_cython__(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/
static PyObject *__pyx_pw_3cgl_4vec2_45__reduce_cython__(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__reduce_cython__ (wrapper)", 0);
  __pyx_r = __pyx_pf_3cgl_4vec2_44__reduce_cython__(((struct __pyx_obj_3cgl_vec2 *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_3cgl_4vec2_44__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_3cgl_vec2 *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__reduce_cython__", 0);

  /* "(tree fragment)":2
 * def __reduce_cython__(self):
 *     raise TypeError("Pickling of struct members such as self.c_vec2 must be explicitly requested with @auto_pickle(True)")             # <<<<<<<<<<<<<<
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError("Pickling of struct members such as self.c_vec2 must be explicitly requested with @auto_pickle(True)")
 */
  __pyx_t_1 = __Pyx_PyObject_Call(__pyx_builtin_TypeError, __pyx_tuple__5, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 2, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_Raise(__pyx_t_1, 0, 0, 0);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __PYX_ERR(1, 2, __pyx_L1_error)

  /* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError("Pickling of struct members such as self.c_vec2 must be explicitly requested with @auto_pickle(True)")
 * def __setstate_cython__(self, __pyx_state):
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cgl.vec2.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError("Pickling of struct members such as self.c_vec2 must be explicitly requested with @auto_pickle(True)")
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError("Pickling of struct members such as self.c_vec2 must be explicitly requested with @auto_pickle(True)")
 */

/* Python wrapper */
static PyObject *__pyx_pw_3cgl_4vec2_47__setstate_cython__(PyObject *__pyx_v_self, PyObject *__pyx_v___pyx_state); /*proto*/
static PyObject *__pyx_pw_3cgl_4vec2_47__setstate_cython__(PyObject *__pyx_v_self, PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__setstate_cython__ (wrapper)", 0);
  __pyx_r = __pyx_pf_3cgl_4vec2_46__setstate_cython__(((struct __pyx_obj_3cgl_vec2 *)__pyx_v_self), ((PyObject *)__pyx_v___pyx_state));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_3cgl_4vec2_46__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_3cgl_vec2 *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__setstate_cython__", 0);

  /* "(tree fragment)":4
 *     raise TypeError("Pickling of struct members such as self.c_vec2 must be explicitly requested with @auto_pickle(True)")
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError("Pickling of struct members such as self.c_vec2 must be explicitly requested with @auto_pickle(True)")             # <<<<<<<<<<<<<<
 */
  __pyx_t_1 = __Pyx_PyObject_Call(__pyx_builtin_TypeError, __pyx_tuple__6, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 4, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_Raise(__pyx_t_1, 0, 0, 0);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __PYX_ERR(1, 4, __pyx_L1_error)

  /* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError("Pickling of struct members such as self.c_vec2 must be explicitly requested with @auto_pickle(True)")
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError("Pickling of struct members such as self.c_vec2 must be explicitly requested with @auto_pickle(True)")
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cgl.vec2.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cgl_wrapper.pyx":592
 *         return vec2(self.x / length, self.y / length)
 * 
 * def vec2_triple_product(a: vec2, b: vec2, c: vec2) -> vec2:             # <<<<<<<<<<<<<<
 *     cdef CGL_vec2 obj = vec2(CGL_vec2_triple_product(a.c_vec2, b.c_vec2, c.c_vec2))
 *     return vec2(obj.x, obj.y)
 */

/* Python wrapper */
static struct __pyx_obj_3cgl_vec2 *__pyx_pw_3cgl_123vec2_triple_product(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static PyMethodDef __pyx_mdef_3cgl_123vec2_triple_product = {"vec2_triple_product", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_3cgl_123vec2_triple_product, METH_VARARGS|METH_KEYWORDS, 0};
static struct __pyx_obj_3cgl_vec2 *__pyx_pw_3cgl_123vec2_triple_product(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  struct __pyx_obj_3cgl_vec2 *__pyx_v_a = 0;
  struct __pyx_obj_3cgl_vec2 *__pyx_v_b = 0;
  struct __pyx_obj_3cgl_vec2 *__pyx_v_c = 0;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  struct __pyx_obj_3cgl_vec2 *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("vec2_triple_product (wrapper)", 0);
  {
    static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_a,&__pyx_n_s_b,&__pyx_n_s_c,0};
    PyObject* values[3] = {0,0,0};
    if (unlikely(__pyx_kwds)) {
      Py_ssize_t kw_args;
      const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
      switch (pos_args) {
        case  3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
        CYTHON_FALLTHROUGH;
        case  2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
        CYTHON_FALLTHROUGH;
        case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      kw_args = PyDict_Size(__pyx_kwds);
      switch (pos_args) {
        case  0:
        if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_a)) != 0)) kw_args--;
        else goto __pyx_L5_argtuple_error;
        CYTHON_FALLTHROUGH;
        case  1:
        if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_b)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("vec2_triple_product", 1, 3, 3, 1); __PYX_ERR(0, 592, __pyx_L3_error)
        }
        CYTHON_FALLTHROUGH;
        case  2:
        if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_c)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("vec2_triple_product", 1, 3, 3, 2); __PYX_ERR(0, 592, __pyx_L3_error)
        }
      }
      if (unlikely(kw_args > 0)) {
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "vec2_triple_product") < 0)) __PYX_ERR(0, 592, __pyx_L3_error)
      }
    } else if (PyTuple_GET_SIZE(__pyx_args) != 3) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
      values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
      values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
    }
    __pyx_v_a = ((struct __pyx_obj_3cgl_vec2 *)values[0]);
    __pyx_v_b = ((struct __pyx_obj_3cgl_vec2 *)values[1]);
    __pyx_v_c = ((struct __pyx_obj_3cgl_vec2 *)values[2]);
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("vec2_triple_product", 1, 3, 3, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 592, __pyx_L3_error)
  __pyx_L3_error:;
  __Pyx_AddTraceback("cgl.vec2_triple_product", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_a), __pyx_ptype_3cgl_vec2, 1, "a", 0))) __PYX_ERR(0, 592, __pyx_L1_error)
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_b), __pyx_ptype_3cgl_vec2, 1, "b", 0))) __PYX_ERR(0, 592, __pyx_L1_error)
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_c), __pyx_ptype_3cgl_vec2, 1, "c", 0))) __PYX_ERR(0, 592, __pyx_L1_error)
  __pyx_r = __pyx_pf_3cgl_122vec2_triple_product(__pyx_self, __pyx_v_a, __pyx_v_b, __pyx_v_c);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static struct __pyx_obj_3cgl_vec2 *__pyx_pf_3cgl_122vec2_triple_product(CYTHON_UNUSED PyObject *__pyx_self, struct __pyx_obj_3cgl_vec2 *__pyx_v_a, struct __pyx_obj_3cgl_vec2 *__pyx_v_b, struct __pyx_obj_3cgl_vec2 *__pyx_v_c) {
  struct CGL_vec2 __pyx_v_obj;
  struct __pyx_obj_3cgl_vec2 *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  struct CGL_vec2 __pyx_t_3;
  PyObject *__pyx_t_4 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("vec2_triple_product", 0);

  /* "cgl_wrapper.pyx":593
 * 
 * def vec2_triple_product(a: vec2, b: vec2, c: vec2) -> vec2:
 *     cdef CGL_vec2 obj = vec2(CGL_vec2_triple_product(a.c_vec2, b.c_vec2, c.c_vec2))             # <<<<<<<<<<<<<<
 *     return vec2(obj.x, obj.y)
 * 
 */
  __pyx_t_1 = __pyx_convert__to_py_struct__CGL_vec2(CGL_vec2_triple_product(__pyx_v_a->c_vec2, __pyx_v_b->c_vec2, __pyx_v_c->c_vec2)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 593, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_3cgl_vec2), __pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 593, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_3 = __pyx_convert__from_py_struct__CGL_vec2(__pyx_t_2); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 593, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_v_obj = __pyx_t_3;

  /* "cgl_wrapper.pyx":594
 * def vec2_triple_product(a: vec2, b: vec2, c: vec2) -> vec2:
 *     cdef CGL_vec2 obj = vec2(CGL_vec2_triple_product(a.c_vec2, b.c_vec2, c.c_vec2))
 *     return vec2(obj.x, obj.y)             # <<<<<<<<<<<<<<
 * 
 * 
 */
  __Pyx_XDECREF(((PyObject *)__pyx_r));
  __pyx_t_2 = PyFloat_FromDouble(__pyx_v_obj.x); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 594, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_1 = PyFloat_FromDouble(__pyx_v_obj.y); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 594, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_4 = PyTuple_New(2); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 594, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_GIVEREF(__pyx_t_2);
  PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_1);
  PyTuple_SET_ITEM(__pyx_t_4, 1, __pyx_t_1);
  __pyx_t_2 = 0;
  __pyx_t_1 = 0;
  __pyx_t_1 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_3cgl_vec2), __pyx_t_4, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 594, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __pyx_r = ((struct __pyx_obj_3cgl_vec2 *)__pyx_t_1);
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cgl_wrapper.pyx":592
 *         return vec2(self.x / length, self.y / length)
 * 
 * def vec2_triple_product(a: vec2, b: vec2, c: vec2) -> vec2:             # <<<<<<<<<<<<<<
 *     cdef CGL_vec2 obj = vec2(CGL_vec2_triple_product(a.c_vec2, b.c_vec2, c.c_vec2))
 *     return vec2(obj.x, obj.y)
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cgl.vec2_triple_product", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF((PyObject *)__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cgl_wrapper.pyx":600
 *     cdef CGL_vec3 c_vec3
 * 
 *     def __init__(self, x: float = 0.0, y: float = 0.0, z: float = 0.0):             # <<<<<<<<<<<<<<
 *         self.c_vec3 = CGL_vec3(x, y, z)
 * 
 */

/* Python wrapper */
static int __pyx_pw_3cgl_4vec3_1__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static int __pyx_pw_3cgl_4vec3_1__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  double __pyx_v_x;
  double __pyx_v_y;
  double __pyx_v_z;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__init__ (wrapper)", 0);
  {
    static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_x,&__pyx_n_s_y,&__pyx_n_s_z,0};
    PyObject* values[3] = {0,0,0};
    if (unlikely(__pyx_kwds)) {
      Py_ssize_t kw_args;
      const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
      switch (pos_args) {
        case  3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
        CYTHON_FALLTHROUGH;
        case  2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
        CYTHON_FALLTHROUGH;
        case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      kw_args = PyDict_Size(__pyx_kwds);
      switch (pos_args) {
        case  0:
        if (kw_args > 0) {
          PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_x);
          if (value) { values[0] = value; kw_args--; }
        }
        CYTHON_FALLTHROUGH;
        case  1:
        if (kw_args > 0) {
          PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_y);
          if (value) { values[1] = value; kw_args--; }
        }
        CYTHON_FALLTHROUGH;
        case  2:
        if (kw_args > 0) {
          PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_z);
          if (value) { values[2] = value; kw_args--; }
        }
      }
      if (unlikely(kw_args > 0)) {
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "__init__") < 0)) __PYX_ERR(0, 600, __pyx_L3_error)
      }
    } else {
      switch (PyTuple_GET_SIZE(__pyx_args)) {
        case  3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
        CYTHON_FALLTHROUGH;
        case  2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
        CYTHON_FALLTHROUGH;
        case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
    }
    if (values[0]) {
      __pyx_v_x = __pyx_PyFloat_AsDouble(values[0]); if (unlikely((__pyx_v_x == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 600, __pyx_L3_error)
    } else {
      __pyx_v_x = ((double)0.0);
    }
    if (values[1]) {
      __pyx_v_y = __pyx_PyFloat_AsDouble(values[1]); if (unlikely((__pyx_v_y == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 600, __pyx_L3_error)
    } else {
      __pyx_v_y = ((double)0.0);
    }
    if (values[2]) {
      __pyx_v_z = __pyx_PyFloat_AsDouble(values[2]); if (unlikely((__pyx_v_z == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 600, __pyx_L3_error)
    } else {
      __pyx_v_z = ((double)0.0);
    }
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__init__", 0, 0, 3, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 600, __pyx_L3_error)
  __pyx_L3_error:;
  __Pyx_AddTraceback("cgl.vec3.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_3cgl_4vec3___init__(((struct __pyx_obj_3cgl_vec3 *)__pyx_v_self), __pyx_v_x, __pyx_v_y, __pyx_v_z);

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_3cgl_4vec3___init__(struct __pyx_obj_3cgl_vec3 *__pyx_v_self, double __pyx_v_x, double __pyx_v_y, double __pyx_v_z) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  struct CGL_vec3 __pyx_t_1;
  __Pyx_RefNannySetupContext("__init__", 0);

  /* "cgl_wrapper.pyx":601
 * 
 *     def __init__(self, x: float = 0.0, y: float = 0.0, z: float = 0.0):
 *         self.c_vec3 = CGL_vec3(x, y, z)             # <<<<<<<<<<<<<<
 * 
 *     def __repr__(self):
 */
  __pyx_t_1.x = __pyx_v_x;
  __pyx_t_1.y = __pyx_v_y;
  __pyx_t_1.z = __pyx_v_z;
  __pyx_v_self->c_vec3 = __pyx_t_1;

  /* "cgl_wrapper.pyx":600
 *     cdef CGL_vec3 c_vec3
 * 
 *     def __init__(self, x: float = 0.0, y: float = 0.0, z: float = 0.0):             # <<<<<<<<<<<<<<
 *         self.c_vec3 = CGL_vec3(x, y, z)
 * 
 */

  /* function exit code */
  __pyx_r = 0;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cgl_wrapper.pyx":603
 *         self.c_vec3 = CGL_vec3(x, y, z)
 * 
 *     def __repr__(self):             # <<<<<<<<<<<<<<
 *         return f"vec3({self.x}, {self.y}, {self.z})"
 * 
 */

/* Python wrapper */
static PyObject *__pyx_pw_3cgl_4vec3_3__repr__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_3cgl_4vec3_3__repr__(PyObject *__pyx_v_self) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__repr__ (wrapper)", 0);
  __pyx_r = __pyx_pf_3cgl_4vec3_2__repr__(((struct __pyx_obj_3cgl_vec3 *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_3cgl_4vec3_2__repr__(struct __pyx_obj_3cgl_vec3 *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  Py_ssize_t __pyx_t_2;
  Py_UCS4 __pyx_t_3;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__repr__", 0);

  /* "cgl_wrapper.pyx":604
 * 
 *     def __repr__(self):
 *         return f"vec3({self.x}, {self.y}, {self.z})"             # <<<<<<<<<<<<<<
 * 
 *     def __str__(self):
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = PyTuple_New(7); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 604, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = 0;
  __pyx_t_3 = 127;
  __Pyx_INCREF(__pyx_kp_u_vec3);
  __pyx_t_2 += 5;
  __Pyx_GIVEREF(__pyx_kp_u_vec3);
  PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_kp_u_vec3);
  __pyx_t_4 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_x); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 604, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_5 = __Pyx_PyObject_FormatSimple(__pyx_t_4, __pyx_empty_unicode); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 604, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __pyx_t_3 = (__Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_5) > __pyx_t_3) ? __Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_5) : __pyx_t_3;
  __pyx_t_2 += __Pyx_PyUnicode_GET_LENGTH(__pyx_t_5);
  __Pyx_GIVEREF(__pyx_t_5);
  PyTuple_SET_ITEM(__pyx_t_1, 1, __pyx_t_5);
  __pyx_t_5 = 0;
  __Pyx_INCREF(__pyx_kp_u__3);
  __pyx_t_2 += 2;
  __Pyx_GIVEREF(__pyx_kp_u__3);
  PyTuple_SET_ITEM(__pyx_t_1, 2, __pyx_kp_u__3);
  __pyx_t_5 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_y); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 604, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __pyx_t_4 = __Pyx_PyObject_FormatSimple(__pyx_t_5, __pyx_empty_unicode); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 604, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
  __pyx_t_3 = (__Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_4) > __pyx_t_3) ? __Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_4) : __pyx_t_3;
  __pyx_t_2 += __Pyx_PyUnicode_GET_LENGTH(__pyx_t_4);
  __Pyx_GIVEREF(__pyx_t_4);
  PyTuple_SET_ITEM(__pyx_t_1, 3, __pyx_t_4);
  __pyx_t_4 = 0;
  __Pyx_INCREF(__pyx_kp_u__3);
  __pyx_t_2 += 2;
  __Pyx_GIVEREF(__pyx_kp_u__3);
  PyTuple_SET_ITEM(__pyx_t_1, 4, __pyx_kp_u__3);
  __pyx_t_4 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_z); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 604, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_5 = __Pyx_PyObject_FormatSimple(__pyx_t_4, __pyx_empty_unicode); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 604, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __pyx_t_3 = (__Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_5) > __pyx_t_3) ? __Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_5) : __pyx_t_3;
  __pyx_t_2 += __Pyx_PyUnicode_GET_LENGTH(__pyx_t_5);
  __Pyx_GIVEREF(__pyx_t_5);
  PyTuple_SET_ITEM(__pyx_t_1, 5, __pyx_t_5);
  __pyx_t_5 = 0;
  __Pyx_INCREF(__pyx_kp_u__4);
  __pyx_t_2 += 1;
  __Pyx_GIVEREF(__pyx_kp_u__4);
  PyTuple_SET_ITEM(__pyx_t_1, 6, __pyx_kp_u__4);
  __pyx_t_5 = __Pyx_PyUnicode_Join(__pyx_t_1, 7, __pyx_t_2, __pyx_t_3); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 604, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_r = __pyx_t_5;
  __pyx_t_5 = 0;
  goto __pyx_L0;

  /* "cgl_wrapper.pyx":603
 *         self.c_vec3 = CGL_vec3(x, y, z)
 * 
 *     def __repr__(self):             # <<<<<<<<<<<<<<
 *         return f"vec3({self.x}, {self.y}, {self.z})"
 * 
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("cgl.vec3.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cgl_wrapper.pyx":606
 *         return f"vec3({self.x}, {self.y}, {self.z})"
 * 
 *     def __str__(self):             # <<<<<<<<<<<<<<
 *         return f"vec3({self.x}, {self.y}, {self.z})"
 * 
 */

/* Python wrapper */
static PyObject *__pyx_pw_3cgl_4vec3_5__str__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_3cgl_4vec3_5__str__(PyObject *__pyx_v_self) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__str__ (wrapper)", 0);
  __pyx_r = __pyx_pf_3cgl_4vec3_4__str__(((struct __pyx_obj_3cgl_vec3 *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_3cgl_4vec3_4__str__(struct __pyx_obj_3cgl_vec3 *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  Py_ssize_t __pyx_t_2;
  Py_UCS4 __pyx_t_3;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__str__", 0);

  /* "cgl_wrapper.pyx":607
 * 
 *     def __str__(self):
 *         return f"vec3({self.x}, {self.y}, {self.z})"             # <<<<<<<<<<<<<<
 * 
 *     def __bytes__(self):
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = PyTuple_New(7); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 607, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = 0;
  __pyx_t_3 = 127;
  __Pyx_INCREF(__pyx_kp_u_vec3);
  __pyx_t_2 += 5;
  __Pyx_GIVEREF(__pyx_kp_u_vec3);
  PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_kp_u_vec3);
  __pyx_t_4 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_x); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 607, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_5 = __Pyx_PyObject_FormatSimple(__pyx_t_4, __pyx_empty_unicode); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 607, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __pyx_t_3 = (__Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_5) > __pyx_t_3) ? __Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_5) : __pyx_t_3;
  __pyx_t_2 += __Pyx_PyUnicode_GET_LENGTH(__pyx_t_5);
  __Pyx_GIVEREF(__pyx_t_5);
  PyTuple_SET_ITEM(__pyx_t_1, 1, __pyx_t_5);
  __pyx_t_5 = 0;
  __Pyx_INCREF(__pyx_kp_u__3);
  __pyx_t_2 += 2;
  __Pyx_GIVEREF(__pyx_kp_u__3);
  PyTuple_SET_ITEM(__pyx_t_1, 2, __pyx_kp_u__3);
  __pyx_t_5 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_y); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 607, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __pyx_t_4 = __Pyx_PyObject_FormatSimple(__pyx_t_5, __pyx_empty_unicode); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 607, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
  __pyx_t_3 = (__Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_4) > __pyx_t_3) ? __Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_4) : __pyx_t_3;
  __pyx_t_2 += __Pyx_PyUnicode_GET_LENGTH(__pyx_t_4);
  __Pyx_GIVEREF(__pyx_t_4);
  PyTuple_SET_ITEM(__pyx_t_1, 3, __pyx_t_4);
  __pyx_t_4 = 0;
  __Pyx_INCREF(__pyx_kp_u__3);
  __pyx_t_2 += 2;
  __Pyx_GIVEREF(__pyx_kp_u__3);
  PyTuple_SET_ITEM(__pyx_t_1, 4, __pyx_kp_u__3);
  __pyx_t_4 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_z); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 607, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_5 = __Pyx_PyObject_FormatSimple(__pyx_t_4, __pyx_empty_unicode); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 607, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __pyx_t_3 = (__Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_5) > __pyx_t_3) ? __Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_5) : __pyx_t_3;
  __pyx_t_2 += __Pyx_PyUnicode_GET_LENGTH(__pyx_t_5);
  __Pyx_GIVEREF(__pyx_t_5);
  PyTuple_SET_ITEM(__pyx_t_1, 5, __pyx_t_5);
  __pyx_t_5 = 0;
  __Pyx_INCREF(__pyx_kp_u__4);
  __pyx_t_2 += 1;
  __Pyx_GIVEREF(__pyx_kp_u__4);
  PyTuple_SET_ITEM(__pyx_t_1, 6, __pyx_kp_u__4);
  __pyx_t_5 = __Pyx_PyUnicode_Join(__pyx_t_1, 7, __pyx_t_2, __pyx_t_3); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 607, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_r = __pyx_t_5;
  __pyx_t_5 = 0;
  goto __pyx_L0;

  /* "cgl_wrapper.pyx":606
 *         return f"vec3({self.x}, {self.y}, {self.z})"
 * 
 *     def __str__(self):             # <<<<<<<<<<<<<<
 *         return f"vec3({self.x}, {self.y}, {self.z})"
 * 
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("cgl.vec3.__str__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cgl_wrapper.pyx":609
 *         return f"vec3({self.x}, {self.y}, {self.z})"
 * 
 *     def __bytes__(self):             # <<<<<<<<<<<<<<
 *         return bytes(self.c_vec3)
 * 
 */

/* Python wrapper */
static PyObject *__pyx_pw_3cgl_4vec3_7__bytes__(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/
static PyObject *__pyx_pw_3cgl_4vec3_7__bytes__(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__bytes__ (wrapper)", 0);
  __pyx_r = __pyx_pf_3cgl_4vec3_6__bytes__(((struct __pyx_obj_3cgl_vec3 *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_3cgl_4vec3_6__bytes__(struct __pyx_obj_3cgl_vec3 *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__bytes__", 0);

  /* "cgl_wrapper.pyx":610
 * 
 *     def __bytes__(self):
 *         return bytes(self.c_vec3)             # <<<<<<<<<<<<<<
 * 
 *     def __len__(self):
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __pyx_convert__to_py_struct__CGL_vec3(__pyx_v_self->c_vec3); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 610, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = __Pyx_PyObject_CallOneArg(((PyObject *)(&PyBytes_Type)), __pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 610, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_r = __pyx_t_2;
  __pyx_t_2 = 0;
  goto __pyx_L0;

  /* "cgl_wrapper.pyx":609
 *         return f"vec3({self.x}, {self.y}, {self.z})"
 * 
 *     def __bytes__(self):             # <<<<<<<<<<<<<<
 *         return bytes(self.c_vec3)
 * 
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("cgl.vec3.__bytes__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cgl_wrapper.pyx":612
 *         return bytes(self.c_vec3)
 * 
 *     def __len__(self):             # <<<<<<<<<<<<<<
 *         return 3
 * 
 */

/* Python wrapper */
static Py_ssize_t __pyx_pw_3cgl_4vec3_9__len__(PyObject *__pyx_v_self); /*proto*/
static Py_ssize_t __pyx_pw_3cgl_4vec3_9__len__(PyObject *__pyx_v_self) {
  Py_ssize_t __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__len__ (wrapper)", 0);
  __pyx_r = __pyx_pf_3cgl_4vec3_8__len__(((struct __pyx_obj_3cgl_vec3 *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static Py_ssize_t __pyx_pf_3cgl_4vec3_8__len__(CYTHON_UNUSED struct __pyx_obj_3cgl_vec3 *__pyx_v_self) {
  Py_ssize_t __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__len__", 0);

  /* "cgl_wrapper.pyx":613
 * 
 *     def __len__(self):
 *         return 3             # <<<<<<<<<<<<<<
 * 
 *     def __getitem__(self, index: int):
 */
  __pyx_r = 3;
  goto __pyx_L0;

  /* "cgl_wrapper.pyx":612
 *         return bytes(self.c_vec3)
 * 
 *     def __len__(self):             # <<<<<<<<<<<<<<
 *         return 3
 * 
 */

  /* function exit code */
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cgl_wrapper.pyx":615
 *         return 3
 * 
 *     def __getitem__(self, index: int):             # <<<<<<<<<<<<<<
 *         if index == 0:
 *             return self.c_vec3.x
 */

/* Python wrapper */
static PyObject *__pyx_pw_3cgl_4vec3_11__getitem__(PyObject *__pyx_v_self, PyObject *__pyx_v_index); /*proto*/
static PyObject *__pyx_pw_3cgl_4vec3_11__getitem__(PyObject *__pyx_v_self, PyObject *__pyx_v_index) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__getitem__ (wrapper)", 0);
  __pyx_r = __pyx_pf_3cgl_4vec3_10__getitem__(((struct __pyx_obj_3cgl_vec3 *)__pyx_v_self), ((PyObject *)__pyx_v_index));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_3cgl_4vec3_10__getitem__(struct __pyx_obj_3cgl_vec3 *__pyx_v_self, PyObject *__pyx_v_index) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  int __pyx_t_2;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__getitem__", 0);

  /* "cgl_wrapper.pyx":616
 * 
 *     def __getitem__(self, index: int):
 *         if index == 0:             # <<<<<<<<<<<<<<
 *             return self.c_vec3.x
 *         elif index == 1:
 */
  __pyx_t_1 = __Pyx_PyInt_EqObjC(__pyx_v_index, __pyx_int_0, 0, 0); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 616, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely(__pyx_t_2 < 0)) __PYX_ERR(0, 616, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  if (__pyx_t_2) {

    /* "cgl_wrapper.pyx":617
 *     def __getitem__(self, index: int):
 *         if index == 0:
 *             return self.c_vec3.x             # <<<<<<<<<<<<<<
 *         elif index == 1:
 *             return self.c_vec3.y
 */
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_1 = PyFloat_FromDouble(__pyx_v_self->c_vec3.x); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 617, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_r = __pyx_t_1;
    __pyx_t_1 = 0;
    goto __pyx_L0;

    /* "cgl_wrapper.pyx":616
 * 
 *     def __getitem__(self, index: int):
 *         if index == 0:             # <<<<<<<<<<<<<<
 *             return self.c_vec3.x
 *         elif index == 1:
 */
  }

  /* "cgl_wrapper.pyx":618
 *         if index == 0:
 *             return self.c_vec3.x
 *         elif index == 1:             # <<<<<<<<<<<<<<
 *             return self.c_vec3.y
 *         elif index == 2:
 */
  __pyx_t_1 = __Pyx_PyInt_EqObjC(__pyx_v_index, __pyx_int_1, 1, 0); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 618, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely(__pyx_t_2 < 0)) __PYX_ERR(0, 618, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  if (__pyx_t_2) {

    /* "cgl_wrapper.pyx":619
 *             return self.c_vec3.x
 *         elif index == 1:
 *             return self.c_vec3.y             # <<<<<<<<<<<<<<
 *         elif index == 2:
 *             return self.c_vec3.z
 */
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_1 = PyFloat_FromDouble(__pyx_v_self->c_vec3.y); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 619, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_r = __pyx_t_1;
    __pyx_t_1 = 0;
    goto __pyx_L0;

    /* "cgl_wrapper.pyx":618
 *         if index == 0:
 *             return self.c_vec3.x
 *         elif index == 1:             # <<<<<<<<<<<<<<
 *             return self.c_vec3.y
 *         elif index == 2:
 */
  }

  /* "cgl_wrapper.pyx":620
 *         elif index == 1:
 *             return self.c_vec3.y
 *         elif index == 2:             # <<<<<<<<<<<<<<
 *             return self.c_vec3.z
 *         else:
 */
  __pyx_t_1 = __Pyx_PyInt_EqObjC(__pyx_v_index, __pyx_int_2, 2, 0); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 620, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely(__pyx_t_2 < 0)) __PYX_ERR(0, 620, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  if (likely(__pyx_t_2)) {

    /* "cgl_wrapper.pyx":621
 *             return self.c_vec3.y
 *         elif index == 2:
 *             return self.c_vec3.z             # <<<<<<<<<<<<<<
 *         else:
 *             raise IndexError()
 */
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_1 = PyFloat_FromDouble(__pyx_v_self->c_vec3.z); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 621, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_r = __pyx_t_1;
    __pyx_t_1 = 0;
    goto __pyx_L0;

    /* "cgl_wrapper.pyx":620
 *         elif index == 1:
 *             return self.c_vec3.y
 *         elif index == 2:             # <<<<<<<<<<<<<<
 *             return self.c_vec3.z
 *         else:
 */
  }

  /* "cgl_wrapper.pyx":623
 *             return self.c_vec3.z
 *         else:
 *             raise IndexError()             # <<<<<<<<<<<<<<
 * 
 *     def __setitem__(self, index: int, value: int):
 */
  /*else*/ {
    __pyx_t_1 = __Pyx_PyObject_CallNoArg(__pyx_builtin_IndexError); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 623, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __Pyx_Raise(__pyx_t_1, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    __PYX_ERR(0, 623, __pyx_L1_error)
  }

  /* "cgl_wrapper.pyx":615
 *         return 3
 * 
 *     def __getitem__(self, index: int):             # <<<<<<<<<<<<<<
 *         if index == 0:
 *             return self.c_vec3.x
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cgl.vec3.__getitem__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cgl_wrapper.pyx":625
 *             raise IndexError()
 * 
 *     def __setitem__(self, index: int, value: int):             # <<<<<<<<<<<<<<
 *         if index == 0:
 *             self.c_vec3.x = value
 */

/* Python wrapper */
static int __pyx_pw_3cgl_4vec3_13__setitem__(PyObject *__pyx_v_self, PyObject *__pyx_v_index, PyObject *__pyx_v_value); /*proto*/
static int __pyx_pw_3cgl_4vec3_13__setitem__(PyObject *__pyx_v_self, PyObject *__pyx_v_index, PyObject *__pyx_v_value) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__setitem__ (wrapper)", 0);
  __pyx_r = __pyx_pf_3cgl_4vec3_12__setitem__(((struct __pyx_obj_3cgl_vec3 *)__pyx_v_self), ((PyObject *)__pyx_v_index), ((PyObject *)__pyx_v_value));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_3cgl_4vec3_12__setitem__(struct __pyx_obj_3cgl_vec3 *__pyx_v_self, PyObject *__pyx_v_index, PyObject *__pyx_v_value) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  int __pyx_t_2;
  CGL_float __pyx_t_3;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__setitem__", 0);

  /* "cgl_wrapper.pyx":626
 * 
 *     def __setitem__(self, index: int, value: int):
 *         if index == 0:             # <<<<<<<<<<<<<<
 *             self.c_vec3.x = value
 *         elif index == 1:
 */
  __pyx_t_1 = __Pyx_PyInt_EqObjC(__pyx_v_index, __pyx_int_0, 0, 0); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 626, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely(__pyx_t_2 < 0)) __PYX_ERR(0, 626, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  if (__pyx_t_2) {

    /* "cgl_wrapper.pyx":627
 *     def __setitem__(self, index: int, value: int):
 *         if index == 0:
 *             self.c_vec3.x = value             # <<<<<<<<<<<<<<
 *         elif index == 1:
 *             self.c_vec3.y = value
 */
    __pyx_t_3 = __pyx_PyFloat_AsFloat(__pyx_v_value); if (unlikely((__pyx_t_3 == ((CGL_float)-1)) && PyErr_Occurred())) __PYX_ERR(0, 627, __pyx_L1_error)
    __pyx_v_self->c_vec3.x = __pyx_t_3;

    /* "cgl_wrapper.pyx":626
 * 
 *     def __setitem__(self, index: int, value: int):
 *         if index == 0:             # <<<<<<<<<<<<<<
 *             self.c_vec3.x = value
 *         elif index == 1:
 */
    goto __pyx_L3;
  }

  /* "cgl_wrapper.pyx":628
 *         if index == 0:
 *             self.c_vec3.x = value
 *         elif index == 1:             # <<<<<<<<<<<<<<
 *             self.c_vec3.y = value
 *         elif index == 2:
 */
  __pyx_t_1 = __Pyx_PyInt_EqObjC(__pyx_v_index, __pyx_int_1, 1, 0); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 628, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely(__pyx_t_2 < 0)) __PYX_ERR(0, 628, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  if (__pyx_t_2) {

    /* "cgl_wrapper.pyx":629
 *             self.c_vec3.x = value
 *         elif index == 1:
 *             self.c_vec3.y = value             # <<<<<<<<<<<<<<
 *         elif index == 2:
 *             self.c_vec3.z = value
 */
    __pyx_t_3 = __pyx_PyFloat_AsFloat(__pyx_v_value); if (unlikely((__pyx_t_3 == ((CGL_float)-1)) && PyErr_Occurred())) __PYX_ERR(0, 629, __pyx_L1_error)
    __pyx_v_self->c_vec3.y = __pyx_t_3;

    /* "cgl_wrapper.pyx":628
 *         if index == 0:
 *             self.c_vec3.x = value
 *         elif index == 1:             # <<<<<<<<<<<<<<
 *             self.c_vec3.y = value
 *         elif index == 2:
 */
    goto __pyx_L3;
  }

  /* "cgl_wrapper.pyx":630
 *         elif index == 1:
 *             self.c_vec3.y = value
 *         elif index == 2:             # <<<<<<<<<<<<<<
 *             self.c_vec3.z = value
 *         else:
 */
  __pyx_t_1 = __Pyx_PyInt_EqObjC(__pyx_v_index, __pyx_int_2, 2, 0); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 630, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely(__pyx_t_2 < 0)) __PYX_ERR(0, 630, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  if (likely(__pyx_t_2)) {

    /* "cgl_wrapper.pyx":631
 *             self.c_vec3.y = value
 *         elif index == 2:
 *             self.c_vec3.z = value             # <<<<<<<<<<<<<<
 *         else:
 *             raise IndexError()
 */
    __pyx_t_3 = __pyx_PyFloat_AsFloat(__pyx_v_value); if (unlikely((__pyx_t_3 == ((CGL_float)-1)) && PyErr_Occurred())) __PYX_ERR(0, 631, __pyx_L1_error)
    __pyx_v_self->c_vec3.z = __pyx_t_3;

    /* "cgl_wrapper.pyx":630
 *         elif index == 1:
 *             self.c_vec3.y = value
 *         elif index == 2:             # <<<<<<<<<<<<<<
 *             self.c_vec3.z = value
 *         else:
 */
    goto __pyx_L3;
  }

  /* "cgl_wrapper.pyx":633
 *             self.c_vec3.z = value
 *         else:
 *             raise IndexError()             # <<<<<<<<<<<<<<
 * 
 *     def __eq__(self, other: vec3):
 */
  /*else*/ {
    __pyx_t_1 = __Pyx_PyObject_CallNoArg(__pyx_builtin_IndexError); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 633, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __Pyx_Raise(__pyx_t_1, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    __PYX_ERR(0, 633, __pyx_L1_error)
  }
  __pyx_L3:;

  /* "cgl_wrapper.pyx":625
 *             raise IndexError()
 * 
 *     def __setitem__(self, index: int, value: int):             # <<<<<<<<<<<<<<
 *         if index == 0:
 *             self.c_vec3.x = value
 */

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cgl.vec3.__setitem__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cgl_wrapper.pyx":635
 *             raise IndexError()
 * 
 *     def __eq__(self, other: vec3):             # <<<<<<<<<<<<<<
 *         return self.c_vec3.x == other.c_vec3.x and self.c_vec3.y == other.c_vec3.y and self.c_vec3.z == other.c_vec3.z
 * 
 */

/* Python wrapper */
static PyObject *__pyx_pw_3cgl_4vec3_15__eq__(PyObject *__pyx_v_self, PyObject *__pyx_v_other); /*proto*/
static PyObject *__pyx_pw_3cgl_4vec3_15__eq__(PyObject *__pyx_v_self, PyObject *__pyx_v_other) {
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__eq__ (wrapper)", 0);
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_other), __pyx_ptype_3cgl_vec3, 1, "other", 0))) __PYX_ERR(0, 635, __pyx_L1_error)
  __pyx_r = __pyx_pf_3cgl_4vec3_14__eq__(((struct __pyx_obj_3cgl_vec3 *)__pyx_v_self), ((struct __pyx_obj_3cgl_vec3 *)__pyx_v_other));

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_3cgl_4vec3_14__eq__(struct __pyx_obj_3cgl_vec3 *__pyx_v_self, struct __pyx_obj_3cgl_vec3 *__pyx_v_other) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__eq__", 0);

  /* "cgl_wrapper.pyx":636
 * 
 *     def __eq__(self, other: vec3):
 *         return self.c_vec3.x == other.c_vec3.x and self.c_vec3.y == other.c_vec3.y and self.c_vec3.z == other.c_vec3.z             # <<<<<<<<<<<<<<
 * 
 *     def __ne__(self, other: vec3):
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_2 = (__pyx_v_self->c_vec3.x == __pyx_v_other->c_vec3.x);
  if (__pyx_t_2) {
  } else {
    __pyx_t_3 = __Pyx_PyBool_FromLong(__pyx_t_2); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 636, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_1 = __pyx_t_3;
    __pyx_t_3 = 0;
    goto __pyx_L3_bool_binop_done;
  }
  __pyx_t_2 = (__pyx_v_self->c_vec3.y == __pyx_v_other->c_vec3.y);
  if (__pyx_t_2) {
  } else {
    __pyx_t_3 = __Pyx_PyBool_FromLong(__pyx_t_2); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 636, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_1 = __pyx_t_3;
    __pyx_t_3 = 0;
    goto __pyx_L3_bool_binop_done;
  }
  __pyx_t_2 = (__pyx_v_self->c_vec3.z == __pyx_v_other->c_vec3.z);
  __pyx_t_3 = __Pyx_PyBool_FromLong(__pyx_t_2); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 636, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_1 = __pyx_t_3;
  __pyx_t_3 = 0;
  __pyx_L3_bool_binop_done:;
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cgl_wrapper.pyx":635
 *             raise IndexError()
 * 
 *     def __eq__(self, other: vec3):             # <<<<<<<<<<<<<<
 *         return self.c_vec3.x == other.c_vec3.x and self.c_vec3.y == other.c_vec3.y and self.c_vec3.z == other.c_vec3.z
 * 
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_AddTraceback("cgl.vec3.__eq__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cgl_wrapper.pyx":638
 *         return self.c_vec3.x == other.c_vec3.x and self.c_vec3.y == other.c_vec3.y and self.c_vec3.z == other.c_vec3.z
 * 
 *     def __ne__(self, other: vec3):             # <<<<<<<<<<<<<<
 *         return self.c_vec3.x != other.c_vec3.x or self.c_vec3.y != other.c_vec3.y or self.c_vec3.z != other.c_vec3.z
 * 
 */

/* Python wrapper */
static PyObject *__pyx_pw_3cgl_4vec3_17__ne__(PyObject *__pyx_v_self, PyObject *__pyx_v_other); /*proto*/
static PyObject *__pyx_pw_3cgl_4vec3_17__ne__(PyObject *__pyx_v_self, PyObject *__pyx_v_other) {
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__ne__ (wrapper)", 0);
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_other), __pyx_ptype_3cgl_vec3, 1, "other", 0))) __PYX_ERR(0, 638, __pyx_L1_error)
  __pyx_r = __pyx_pf_3cgl_4vec3_16__ne__(((struct __pyx_obj_3cgl_vec3 *)__pyx_v_self), ((struct __pyx_obj_3cgl_vec3 *)__pyx_v_other));

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_3cgl_4vec3_16__ne__(struct __pyx_obj_3cgl_vec3 *__pyx_v_self, struct __pyx_obj_3cgl_vec3 *__pyx_v_other) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__ne__", 0);

  /* "cgl_wrapper.pyx":639
 * 
 *     def __ne__(self, other: vec3):
 *         return self.c_vec3.x != other.c_vec3.x or self.c_vec3.y != other.c_vec3.y or self.c_vec3.z != other.c_vec3.z             # <<<<<<<<<<<<<<
 * 
 * 
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_2 = (__pyx_v_self->c_vec3.x != __pyx_v_other->c_vec3.x);
  if (!__pyx_t_2) {
  } else {
    __pyx_t_3 = __Pyx_PyBool_FromLong(__pyx_t_2); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 639, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_1 = __pyx_t_3;
    __pyx_t_3 = 0;
    goto __pyx_L3_bool_binop_done;
  }
  __pyx_t_2 = (__pyx_v_self->c_vec3.y != __pyx_v_other->c_vec3.y);
  if (!__pyx_t_2) {
  } else {
    __pyx_t_3 = __Pyx_PyBool_FromLong(__pyx_t_2); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 639, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_1 = __pyx_t_3;
    __pyx_t_3 = 0;
    goto __pyx_L3_bool_binop_done;
  }
  __pyx_t_2 = (__pyx_v_self->c_vec3.z != __pyx_v_other->c_vec3.z);
  __pyx_t_3 = __Pyx_PyBool_FromLong(__pyx_t_2); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 639, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_1 = __pyx_t_3;
  __pyx_t_3 = 0;
  __pyx_L3_bool_binop_done:;
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cgl_wrapper.pyx":638
 *         return self.c_vec3.x == other.c_vec3.x and self.c_vec3.y == other.c_vec3.y and self.c_vec3.z == other.c_vec3.z
 * 
 *     def __ne__(self, other: vec3):             # <<<<<<<<<<<<<<
 *         return self.c_vec3.x != other.c_vec3.x or self.c_vec3.y != other.c_vec3.y or self.c_vec3.z != other.c_vec3.z
 * 
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_AddTraceback("cgl.vec3.__ne__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cgl_wrapper.pyx":642
 * 
 * 
 *     def __hash__(self):             # <<<<<<<<<<<<<<
 *         return hash((self.c_vec3.x, self.c_vec3.y, self.c_vec3.z))
 * 
 */

/* Python wrapper */
static Py_hash_t __pyx_pw_3cgl_4vec3_19__hash__(PyObject *__pyx_v_self); /*proto*/
static Py_hash_t __pyx_pw_3cgl_4vec3_19__hash__(PyObject *__pyx_v_self) {
  Py_hash_t __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__hash__ (wrapper)", 0);
  __pyx_r = __pyx_pf_3cgl_4vec3_18__hash__(((struct __pyx_obj_3cgl_vec3 *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static Py_hash_t __pyx_pf_3cgl_4vec3_18__hash__(struct __pyx_obj_3cgl_vec3 *__pyx_v_self) {
  Py_hash_t __pyx_r;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  Py_hash_t __pyx_t_5;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__hash__", 0);

  /* "cgl_wrapper.pyx":643
 * 
 *     def __hash__(self):
 *         return hash((self.c_vec3.x, self.c_vec3.y, self.c_vec3.z))             # <<<<<<<<<<<<<<
 * 
 *     def __getattr__(self, name: str):
 */
  __pyx_t_1 = PyFloat_FromDouble(__pyx_v_self->c_vec3.x); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 643, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = PyFloat_FromDouble(__pyx_v_self->c_vec3.y); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 643, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = PyFloat_FromDouble(__pyx_v_self->c_vec3.z); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 643, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = PyTuple_New(3); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 643, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_GIVEREF(__pyx_t_1);
  PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_1);
  __Pyx_GIVEREF(__pyx_t_2);
  PyTuple_SET_ITEM(__pyx_t_4, 1, __pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_3);
  PyTuple_SET_ITEM(__pyx_t_4, 2, __pyx_t_3);
  __pyx_t_1 = 0;
  __pyx_t_2 = 0;
  __pyx_t_3 = 0;
  __pyx_t_5 = PyObject_Hash(__pyx_t_4); if (unlikely(__pyx_t_5 == ((Py_hash_t)-1))) __PYX_ERR(0, 643, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __pyx_r = __pyx_t_5;
  goto __pyx_L0;

  /* "cgl_wrapper.pyx":642
 * 
 * 
 *     def __hash__(self):             # <<<<<<<<<<<<<<
 *         return hash((self.c_vec3.x, self.c_vec3.y, self.c_vec3.z))
 * 
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cgl.vec3.__hash__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  if (unlikely(__pyx_r == -1) && !PyErr_Occurred()) __pyx_r = -2;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cgl_wrapper.pyx":645
 *         return hash((self.c_vec3.x, self.c_vec3.y, self.c_vec3.z))
 * 
 *     def __getattr__(self, name: str):             # <<<<<<<<<<<<<<
 *         if name == "x":
 *             return self.c_vec3.x
 */

/* Python wrapper */
static PyObject *__pyx_pw_3cgl_4vec3_21__getattr__(PyObject *__pyx_v_self, PyObject *__pyx_v_name); /*proto*/
static PyObject *__pyx_pw_3cgl_4vec3_21__getattr__(PyObject *__pyx_v_self, PyObject *__pyx_v_name) {
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__getattr__ (wrapper)", 0);
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_name), (&PyString_Type), 1, "name", 1))) __PYX_ERR(0, 645, __pyx_L1_error)
  __pyx_r = __pyx_pf_3cgl_4vec3_20__getattr__(((struct __pyx_obj_3cgl_vec3 *)__pyx_v_self), ((PyObject*)__pyx_v_name));

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_3cgl_4vec3_20__getattr__(struct __pyx_obj_3cgl_vec3 *__pyx_v_self, PyObject *__pyx_v_name) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__getattr__", 0);

  /* "cgl_wrapper.pyx":646
 * 
 *     def __getattr__(self, name: str):
 *         if name == "x":             # <<<<<<<<<<<<<<
 *             return self.c_vec3.x
 *         elif name == "y":
 */
  __pyx_t_1 = (__Pyx_PyString_Equals(__pyx_v_name, __pyx_n_s_x, Py_EQ)); if (unlikely(__pyx_t_1 < 0)) __PYX_ERR(0, 646, __pyx_L1_error)
  __pyx_t_2 = (__pyx_t_1 != 0);
  if (__pyx_t_2) {

    /* "cgl_wrapper.pyx":647
 *     def __getattr__(self, name: str):
 *         if name == "x":
 *             return self.c_vec3.x             # <<<<<<<<<<<<<<
 *         elif name == "y":
 *             return self.c_vec3.y
 */
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_3 = PyFloat_FromDouble(__pyx_v_self->c_vec3.x); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 647, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_r = __pyx_t_3;
    __pyx_t_3 = 0;
    goto __pyx_L0;

    /* "cgl_wrapper.pyx":646
 * 
 *     def __getattr__(self, name: str):
 *         if name == "x":             # <<<<<<<<<<<<<<
 *             return self.c_vec3.x
 *         elif name == "y":
 */
  }

  /* "cgl_wrapper.pyx":648
 *         if name == "x":
 *             return self.c_vec3.x
 *         elif name == "y":             # <<<<<<<<<<<<<<
 *             return self.c_vec3.y
 *         elif name == "z":
 */
  __pyx_t_2 = (__Pyx_PyString_Equals(__pyx_v_name, __pyx_n_s_y, Py_EQ)); if (unlikely(__pyx_t_2 < 0)) __PYX_ERR(0, 648, __pyx_L1_error)
  __pyx_t_1 = (__pyx_t_2 != 0);
  if (__pyx_t_1) {

    /* "cgl_wrapper.pyx":649
 *             return self.c_vec3.x
 *         elif name == "y":
 *             return self.c_vec3.y             # <<<<<<<<<<<<<<
 *         elif name == "z":
 *             return self.c_vec3.z
 */
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_3 = PyFloat_FromDouble(__pyx_v_self->c_vec3.y); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 649, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_r = __pyx_t_3;
    __pyx_t_3 = 0;
    goto __pyx_L0;

    /* "cgl_wrapper.pyx":648
 *         if name == "x":
 *             return self.c_vec3.x
 *         elif name == "y":             # <<<<<<<<<<<<<<
 *             return self.c_vec3.y
 *         elif name == "z":
 */
  }

  /* "cgl_wrapper.pyx":650
 *         elif name == "y":
 *             return self.c_vec3.y
 *         elif name == "z":             # <<<<<<<<<<<<<<
 *             return self.c_vec3.z
 *         else:
 */
  __pyx_t_1 = (__Pyx_PyString_Equals(__pyx_v_name, __pyx_n_s_z, Py_EQ)); if (unlikely(__pyx_t_1 < 0)) __PYX_ERR(0, 650, __pyx_L1_error)
  __pyx_t_2 = (__pyx_t_1 != 0);
  if (likely(__pyx_t_2)) {

    /* "cgl_wrapper.pyx":651
 *             return self.c_vec3.y
 *         elif name == "z":
 *             return self.c_vec3.z             # <<<<<<<<<<<<<<
 *         else:
 *             raise AttributeError()
 */
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_3 = PyFloat_FromDouble(__pyx_v_self->c_vec3.z); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 651, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_r = __pyx_t_3;
    __pyx_t_3 = 0;
    goto __pyx_L0;

    /* "cgl_wrapper.pyx":650
 *         elif name == "y":
 *             return self.c_vec3.y
 *         elif name == "z":             # <<<<<<<<<<<<<<
 *             return self.c_vec3.z
 *         else:
 */
  }

  /* "cgl_wrapper.pyx":653
 *             return self.c_vec3.z
 *         else:
 *             raise AttributeError()             # <<<<<<<<<<<<<<
 * 
 *     def __setattr__(self, name: str, value):
 */
  /*else*/ {
    __pyx_t_3 = __Pyx_PyObject_CallNoArg(__pyx_builtin_AttributeError); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 653, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_Raise(__pyx_t_3, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __PYX_ERR(0, 653, __pyx_L1_error)
  }

  /* "cgl_wrapper.pyx":645
 *         return hash((self.c_vec3.x, self.c_vec3.y, self.c_vec3.z))
 * 
 *     def __getattr__(self, name: str):             # <<<<<<<<<<<<<<
 *         if name == "x":
 *             return self.c_vec3.x
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_AddTraceback("cgl.vec3.__getattr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cgl_wrapper.pyx":655
 *             raise AttributeError()
 * 
 *     def __setattr__(self, name: str, value):             # <<<<<<<<<<<<<<
 *         if name == "x":
 *             self.c_vec3.x = value
 */

/* Python wrapper */
static int __pyx_pw_3cgl_4vec3_23__setattr__(PyObject *__pyx_v_self, PyObject *__pyx_v_name, PyObject *__pyx_v_value); /*proto*/
static int __pyx_pw_3cgl_4vec3_23__setattr__(PyObject *__pyx_v_self, PyObject *__pyx_v_name, PyObject *__pyx_v_value) {
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__setattr__ (wrapper)", 0);
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_name), (&PyString_Type), 1, "name", 1))) __PYX_ERR(0, 655, __pyx_L1_error)
  __pyx_r = __pyx_pf_3cgl_4vec3_22__setattr__(((struct __pyx_obj_3cgl_vec3 *)__pyx_v_self), ((PyObject*)__pyx_v_name), ((PyObject *)__pyx_v_value));

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_3cgl_4vec3_22__setattr__(struct __pyx_obj_3cgl_vec3 *__pyx_v_self, PyObject *__pyx_v_name, PyObject *__pyx_v_value) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  CGL_float __pyx_t_3;
  PyObject *__pyx_t_4 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__setattr__", 0);

  /* "cgl_wrapper.pyx":656
 * 
 *     def __setattr__(self, name: str, value):
 *         if name == "x":             # <<<<<<<<<<<<<<
 *             self.c_vec3.x = value
 *         elif name == "y":
 */
  __pyx_t_1 = (__Pyx_PyString_Equals(__pyx_v_name, __pyx_n_s_x, Py_EQ)); if (unlikely(__pyx_t_1 < 0)) __PYX_ERR(0, 656, __pyx_L1_error)
  __pyx_t_2 = (__pyx_t_1 != 0);
  if (__pyx_t_2) {

    /* "cgl_wrapper.pyx":657
 *     def __setattr__(self, name: str, value):
 *         if name == "x":
 *             self.c_vec3.x = value             # <<<<<<<<<<<<<<
 *         elif name == "y":
 *             self.c_vec3.y = value
 */
    __pyx_t_3 = __pyx_PyFloat_AsFloat(__pyx_v_value); if (unlikely((__pyx_t_3 == ((CGL_float)-1)) && PyErr_Occurred())) __PYX_ERR(0, 657, __pyx_L1_error)
    __pyx_v_self->c_vec3.x = __pyx_t_3;

    /* "cgl_wrapper.pyx":656
 * 
 *     def __setattr__(self, name: str, value):
 *         if name == "x":             # <<<<<<<<<<<<<<
 *             self.c_vec3.x = value
 *         elif name == "y":
 */
    goto __pyx_L3;
  }

  /* "cgl_wrapper.pyx":658
 *         if name == "x":
 *             self.c_vec3.x = value
 *         elif name == "y":             # <<<<<<<<<<<<<<
 *             self.c_vec3.y = value
 *         elif name == "z":
 */
  __pyx_t_2 = (__Pyx_PyString_Equals(__pyx_v_name, __pyx_n_s_y, Py_EQ)); if (unlikely(__pyx_t_2 < 0)) __PYX_ERR(0, 658, __pyx_L1_error)
  __pyx_t_1 = (__pyx_t_2 != 0);
  if (__pyx_t_1) {

    /* "cgl_wrapper.pyx":659
 *             self.c_vec3.x = value
 *         elif name == "y":
 *             self.c_vec3.y = value             # <<<<<<<<<<<<<<
 *         elif name == "z":
 *             self.c_vec3.z = value
 */
    __pyx_t_3 = __pyx_PyFloat_AsFloat(__pyx_v_value); if (unlikely((__pyx_t_3 == ((CGL_float)-1)) && PyErr_Occurred())) __PYX_ERR(0, 659, __pyx_L1_error)
    __pyx_v_self->c_vec3.y = __pyx_t_3;

    /* "cgl_wrapper.pyx":658
 *         if name == "x":
 *             self.c_vec3.x = value
 *         elif name == "y":             # <<<<<<<<<<<<<<
 *             self.c_vec3.y = value
 *         elif name == "z":
 */
    goto __pyx_L3;
  }

  /* "cgl_wrapper.pyx":660
 *         elif name == "y":
 *             self.c_vec3.y = value
 *         elif name == "z":             # <<<<<<<<<<<<<<
 *             self.c_vec3.z = value
 *         else:
 */
  __pyx_t_1 = (__Pyx_PyString_Equals(__pyx_v_name, __pyx_n_s_z, Py_EQ)); if (unlikely(__pyx_t_1 < 0)) __PYX_ERR(0, 660, __pyx_L1_error)
  __pyx_t_2 = (__pyx_t_1 != 0);
  if (likely(__pyx_t_2)) {

    /* "cgl_wrapper.pyx":661
 *             self.c_vec3.y = value
 *         elif name == "z":
 *             self.c_vec3.z = value             # <<<<<<<<<<<<<<
 *         else:
 *             raise AttributeError()
 */
    __pyx_t_3 = __pyx_PyFloat_AsFloat(__pyx_v_value); if (unlikely((__pyx_t_3 == ((CGL_float)-1)) && PyErr_Occurred())) __PYX_ERR(0, 661, __pyx_L1_error)
    __pyx_v_self->c_vec3.z = __pyx_t_3;

    /* "cgl_wrapper.pyx":660
 *         elif name == "y":
 *             self.c_vec3.y = value
 *         elif name == "z":             # <<<<<<<<<<<<<<
 *             self.c_vec3.z = value
 *         else:
 */
    goto __pyx_L3;
  }

  /* "cgl_wrapper.pyx":663
 *             self.c_vec3.z = value
 *         else:
 *             raise AttributeError()             # <<<<<<<<<<<<<<
 * 
 *     def __add__(self, other: vec3):
 */
  /*else*/ {
    __pyx_t_4 = __Pyx_PyObject_CallNoArg(__pyx_builtin_AttributeError); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 663, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_Raise(__pyx_t_4, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __PYX_ERR(0, 663, __pyx_L1_error)
  }
  __pyx_L3:;

  /* "cgl_wrapper.pyx":655
 *             raise AttributeError()
 * 
 *     def __setattr__(self, name: str, value):             # <<<<<<<<<<<<<<
 *         if name == "x":
 *             self.c_vec3.x = value
 */

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cgl.vec3.__setattr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cgl_wrapper.pyx":665
 *             raise AttributeError()
 * 
 *     def __add__(self, other: vec3):             # <<<<<<<<<<<<<<
 *         return vec3(self.x + other.x, self.y + other.y, self.z + other.z)
 * 
 */

/* Python wrapper */
static PyObject *__pyx_pw_3cgl_4vec3_25__add__(PyObject *__pyx_v_self, PyObject *__pyx_v_other); /*proto*/
static PyObject *__pyx_pw_3cgl_4vec3_25__add__(PyObject *__pyx_v_self, PyObject *__pyx_v_other) {
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__add__ (wrapper)", 0);
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_other), __pyx_ptype_3cgl_vec3, 1, "other", 0))) __PYX_ERR(0, 665, __pyx_L1_error)
  __pyx_r = __pyx_pf_3cgl_4vec3_24__add__(((PyObject *)__pyx_v_self), ((struct __pyx_obj_3cgl_vec3 *)__pyx_v_other));

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_3cgl_4vec3_24__add__(PyObject *__pyx_v_self, struct __pyx_obj_3cgl_vec3 *__pyx_v_other) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__add__", 0);

  /* "cgl_wrapper.pyx":666
 * 
 *     def __add__(self, other: vec3):
 *         return vec3(self.x + other.x, self.y + other.y, self.z + other.z)             # <<<<<<<<<<<<<<
 * 
 *     def __sub__(self, other: vec3):
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_x); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 666, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_other), __pyx_n_s_x); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 666, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = PyNumber_Add(__pyx_t_1, __pyx_t_2); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 666, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_y); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 666, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_other), __pyx_n_s_y); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 666, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_4 = PyNumber_Add(__pyx_t_2, __pyx_t_1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 666, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_z); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 666, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_other), __pyx_n_s_z); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 666, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_5 = PyNumber_Add(__pyx_t_1, __pyx_t_2); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 666, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_t_2 = PyTuple_New(3); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 666, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_3);
  PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_3);
  __Pyx_GIVEREF(__pyx_t_4);
  PyTuple_SET_ITEM(__pyx_t_2, 1, __pyx_t_4);
  __Pyx_GIVEREF(__pyx_t_5);
  PyTuple_SET_ITEM(__pyx_t_2, 2, __pyx_t_5);
  __pyx_t_3 = 0;
  __pyx_t_4 = 0;
  __pyx_t_5 = 0;
  __pyx_t_5 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_3cgl_vec3), __pyx_t_2, NULL); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 666, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_r = __pyx_t_5;
  __pyx_t_5 = 0;
  goto __pyx_L0;

  /* "cgl_wrapper.pyx":665
 *             raise AttributeError()
 * 
 *     def __add__(self, other: vec3):             # <<<<<<<<<<<<<<
 *         return vec3(self.x + other.x, self.y + other.y, self.z + other.z)
 * 
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("cgl.vec3.__add__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cgl_wrapper.pyx":668
 *         return vec3(self.x + other.x, self.y + other.y, self.z + other.z)
 * 
 *     def __sub__(self, other: vec3):             # <<<<<<<<<<<<<<
 *         return vec3(self.x - other.x, self.y - other.y, self.z - other.z)
 * 
 */

/* Python wrapper */
static PyObject *__pyx_pw_3cgl_4vec3_27__sub__(PyObject *__pyx_v_self, PyObject *__pyx_v_other); /*proto*/
static PyObject *__pyx_pw_3cgl_4vec3_27__sub__(PyObject *__pyx_v_self, PyObject *__pyx_v_other) {
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__sub__ (wrapper)", 0);
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_other), __pyx_ptype_3cgl_vec3, 1, "other", 0))) __PYX_ERR(0, 668, __pyx_L1_error)
  __pyx_r = __pyx_pf_3cgl_4vec3_26__sub__(((PyObject *)__pyx_v_self), ((struct __pyx_obj_3cgl_vec3 *)__pyx_v_other));

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_3cgl_4vec3_26__sub__(PyObject *__pyx_v_self, struct __pyx_obj_3cgl_vec3 *__pyx_v_other) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__sub__", 0);

  /* "cgl_wrapper.pyx":669
 * 
 *     def __sub__(self, other: vec3):
 *         return vec3(self.x - other.x, self.y - other.y, self.z - other.z)             # <<<<<<<<<<<<<<
 * 
 *     def __mul__(self, other: vec3):
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_x); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 669, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_other), __pyx_n_s_x); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 669, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = PyNumber_Subtract(__pyx_t_1, __pyx_t_2); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 669, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_y); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 669, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_other), __pyx_n_s_y); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 669, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_4 = PyNumber_Subtract(__pyx_t_2, __pyx_t_1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 669, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_z); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 669, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_other), __pyx_n_s_z); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 669, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_5 = PyNumber_Subtract(__pyx_t_1, __pyx_t_2); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 669, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_t_2 = PyTuple_New(3); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 669, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_3);
  PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_3);
  __Pyx_GIVEREF(__pyx_t_4);
  PyTuple_SET_ITEM(__pyx_t_2, 1, __pyx_t_4);
  __Pyx_GIVEREF(__pyx_t_5);
  PyTuple_SET_ITEM(__pyx_t_2, 2, __pyx_t_5);
  __pyx_t_3 = 0;
  __pyx_t_4 = 0;
  __pyx_t_5 = 0;
  __pyx_t_5 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_3cgl_vec3), __pyx_t_2, NULL); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 669, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_r = __pyx_t_5;
  __pyx_t_5 = 0;
  goto __pyx_L0;

  /* "cgl_wrapper.pyx":668
 *         return vec3(self.x + other.x, self.y + other.y, self.z + other.z)
 * 
 *     def __sub__(self, other: vec3):             # <<<<<<<<<<<<<<
 *         return vec3(self.x - other.x, self.y - other.y, self.z - other.z)
 * 
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("cgl.vec3.__sub__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cgl_wrapper.pyx":671
 *         return vec3(self.x - other.x, self.y - other.y, self.z - other.z)
 * 
 *     def __mul__(self, other: vec3):             # <<<<<<<<<<<<<<
 *         return vec3(self.x * other.x, self.y * other.y, self.z * other.z)
 * 
 */

/* Python wrapper */
static PyObject *__pyx_pw_3cgl_4vec3_29__mul__(PyObject *__pyx_v_self, PyObject *__pyx_v_other); /*proto*/
static PyObject *__pyx_pw_3cgl_4vec3_29__mul__(PyObject *__pyx_v_self, PyObject *__pyx_v_other) {
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__mul__ (wrapper)", 0);
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_other), __pyx_ptype_3cgl_vec3, 1, "other", 0))) __PYX_ERR(0, 671, __pyx_L1_error)
  __pyx_r = __pyx_pf_3cgl_4vec3_28__mul__(((PyObject *)__pyx_v_self), ((struct __pyx_obj_3cgl_vec3 *)__pyx_v_other));

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_3cgl_4vec3_28__mul__(PyObject *__pyx_v_self, struct __pyx_obj_3cgl_vec3 *__pyx_v_other) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__mul__", 0);

  /* "cgl_wrapper.pyx":672
 * 
 *     def __mul__(self, other: vec3):
 *         return vec3(self.x * other.x, self.y * other.y, self.z * other.z)             # <<<<<<<<<<<<<<
 * 
 *     def __truediv__(self, other: vec3):
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_x); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 672, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_other), __pyx_n_s_x); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 672, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = PyNumber_Multiply(__pyx_t_1, __pyx_t_2); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 672, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_y); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 672, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_other), __pyx_n_s_y); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 672, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_4 = PyNumber_Multiply(__pyx_t_2, __pyx_t_1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 672, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_z); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 672, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_other), __pyx_n_s_z); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 672, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_5 = PyNumber_Multiply(__pyx_t_1, __pyx_t_2); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 672, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_t_2 = PyTuple_New(3); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 672, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_3);
  PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_3);
  __Pyx_GIVEREF(__pyx_t_4);
  PyTuple_SET_ITEM(__pyx_t_2, 1, __pyx_t_4);
  __Pyx_GIVEREF(__pyx_t_5);
  PyTuple_SET_ITEM(__pyx_t_2, 2, __pyx_t_5);
  __pyx_t_3 = 0;
  __pyx_t_4 = 0;
  __pyx_t_5 = 0;
  __pyx_t_5 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_3cgl_vec3), __pyx_t_2, NULL); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 672, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_r = __pyx_t_5;
  __pyx_t_5 = 0;
  goto __pyx_L0;

  /* "cgl_wrapper.pyx":671
 *         return vec3(self.x - other.x, self.y - other.y, self.z - other.z)
 * 
 *     def __mul__(self, other: vec3):             # <<<<<<<<<<<<<<
 *         return vec3(self.x * other.x, self.y * other.y, self.z * other.z)
 * 
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("cgl.vec3.__mul__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cgl_wrapper.pyx":674
 *         return vec3(self.x * other.x, self.y * other.y, self.z * other.z)
 * 
 *     def __truediv__(self, other: vec3):             # <<<<<<<<<<<<<<
 *         return vec3(self.x / other.x, self.y / other.y, self.z / other.z)
 * 
 */

/* Python wrapper */
static PyObject *__pyx_pw_3cgl_4vec3_31__truediv__(PyObject *__pyx_v_self, PyObject *__pyx_v_other); /*proto*/
static PyObject *__pyx_pw_3cgl_4vec3_31__truediv__(PyObject *__pyx_v_self, PyObject *__pyx_v_other) {
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__truediv__ (wrapper)", 0);
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_other), __pyx_ptype_3cgl_vec3, 1, "other", 0))) __PYX_ERR(0, 674, __pyx_L1_error)
  __pyx_r = __pyx_pf_3cgl_4vec3_30__truediv__(((PyObject *)__pyx_v_self), ((struct __pyx_obj_3cgl_vec3 *)__pyx_v_other));

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_3cgl_4vec3_30__truediv__(PyObject *__pyx_v_self, struct __pyx_obj_3cgl_vec3 *__pyx_v_other) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__truediv__", 0);

  /* "cgl_wrapper.pyx":675
 * 
 *     def __truediv__(self, other: vec3):
 *         return vec3(self.x / other.x, self.y / other.y, self.z / other.z)             # <<<<<<<<<<<<<<
 * 
 *     def __floordiv__(self, other: vec3):
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_x); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 675, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_other), __pyx_n_s_x); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 675, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = __Pyx_PyNumber_Divide(__pyx_t_1, __pyx_t_2); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 675, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_y); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 675, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_other), __pyx_n_s_y); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 675, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_4 = __Pyx_PyNumber_Divide(__pyx_t_2, __pyx_t_1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 675, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_z); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 675, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_other), __pyx_n_s_z); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 675, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_5 = __Pyx_PyNumber_Divide(__pyx_t_1, __pyx_t_2); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 675, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_t_2 = PyTuple_New(3); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 675, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_3);
  PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_3);
  __Pyx_GIVEREF(__pyx_t_4);
  PyTuple_SET_ITEM(__pyx_t_2, 1, __pyx_t_4);
  __Pyx_GIVEREF(__pyx_t_5);
  PyTuple_SET_ITEM(__pyx_t_2, 2, __pyx_t_5);
  __pyx_t_3 = 0;
  __pyx_t_4 = 0;
  __pyx_t_5 = 0;
  __pyx_t_5 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_3cgl_vec3), __pyx_t_2, NULL); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 675, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_r = __pyx_t_5;
  __pyx_t_5 = 0;
  goto __pyx_L0;

  /* "cgl_wrapper.pyx":674
 *         return vec3(self.x * other.x, self.y * other.y, self.z * other.z)
 * 
 *     def __truediv__(self, other: vec3):             # <<<<<<<<<<<<<<
 *         return vec3(self.x / other.x, self.y / other.y, self.z / other.z)
 * 
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("cgl.vec3.__truediv__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cgl_wrapper.pyx":677
 *         return vec3(self.x / other.x, self.y / other.y, self.z / other.z)
 * 
 *     def __floordiv__(self, other: vec3):             # <<<<<<<<<<<<<<
 *         return vec3(self.x // other.x, self.y // other.y, self.z // other.z)
 * 
 */

/* Python wrapper */
static PyObject *__pyx_pw_3cgl_4vec3_33__floordiv__(PyObject *__pyx_v_self, PyObject *__pyx_v_other); /*proto*/
static PyObject *__pyx_pw_3cgl_4vec3_33__floordiv__(PyObject *__pyx_v_self, PyObject *__pyx_v_other) {
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__floordiv__ (wrapper)", 0);
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_other), __pyx_ptype_3cgl_vec3, 1, "other", 0))) __PYX_ERR(0, 677, __pyx_L1_error)
  __pyx_r = __pyx_pf_3cgl_4vec3_32__floordiv__(((PyObject *)__pyx_v_self), ((struct __pyx_obj_3cgl_vec3 *)__pyx_v_other));

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_3cgl_4vec3_32__floordiv__(PyObject *__pyx_v_self, struct __pyx_obj_3cgl_vec3 *__pyx_v_other) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__floordiv__", 0);

  /* "cgl_wrapper.pyx":678
 * 
 *     def __floordiv__(self, other: vec3):
 *         return vec3(self.x // other.x, self.y // other.y, self.z // other.z)             # <<<<<<<<<<<<<<
 * 
 *     def dot(self, other: vec3):
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_x); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 678, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_other), __pyx_n_s_x); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 678, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = PyNumber_FloorDivide(__pyx_t_1, __pyx_t_2); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 678, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_y); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 678, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_other), __pyx_n_s_y); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 678, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_4 = PyNumber_FloorDivide(__pyx_t_2, __pyx_t_1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 678, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_z); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 678, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_other), __pyx_n_s_z); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 678, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_5 = PyNumber_FloorDivide(__pyx_t_1, __pyx_t_2); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 678, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_t_2 = PyTuple_New(3); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 678, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_3);
  PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_3);
  __Pyx_GIVEREF(__pyx_t_4);
  PyTuple_SET_ITEM(__pyx_t_2, 1, __pyx_t_4);
  __Pyx_GIVEREF(__pyx_t_5);
  PyTuple_SET_ITEM(__pyx_t_2, 2, __pyx_t_5);
  __pyx_t_3 = 0;
  __pyx_t_4 = 0;
  __pyx_t_5 = 0;
  __pyx_t_5 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_3cgl_vec3), __pyx_t_2, NULL); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 678, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_r = __pyx_t_5;
  __pyx_t_5 = 0;
  goto __pyx_L0;

  /* "cgl_wrapper.pyx":677
 *         return vec3(self.x / other.x, self.y / other.y, self.z / other.z)
 * 
 *     def __floordiv__(self, other: vec3):             # <<<<<<<<<<<<<<
 *         return vec3(self.x // other.x, self.y // other.y, self.z // other.z)
 * 
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("cgl.vec3.__floordiv__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cgl_wrapper.pyx":680
 *         return vec3(self.x // other.x, self.y // other.y, self.z // other.z)
 * 
 *     def dot(self, other: vec3):             # <<<<<<<<<<<<<<
 *         return (self.x * other.x) + (self.y * other.y) + (self.z * other.z)
 * 
 */

/* Python wrapper */
static PyObject *__pyx_pw_3cgl_4vec3_35dot(PyObject *__pyx_v_self, PyObject *__pyx_v_other); /*proto*/
static PyObject *__pyx_pw_3cgl_4vec3_35dot(PyObject *__pyx_v_self, PyObject *__pyx_v_other) {
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("dot (wrapper)", 0);
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_other), __pyx_ptype_3cgl_vec3, 1, "other", 0))) __PYX_ERR(0, 680, __pyx_L1_error)
  __pyx_r = __pyx_pf_3cgl_4vec3_34dot(((struct __pyx_obj_3cgl_vec3 *)__pyx_v_self), ((struct __pyx_obj_3cgl_vec3 *)__pyx_v_other));

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_3cgl_4vec3_34dot(struct __pyx_obj_3cgl_vec3 *__pyx_v_self, struct __pyx_obj_3cgl_vec3 *__pyx_v_other) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("dot", 0);

  /* "cgl_wrapper.pyx":681
 * 
 *     def dot(self, other: vec3):
 *         return (self.x * other.x) + (self.y * other.y) + (self.z * other.z)             # <<<<<<<<<<<<<<
 * 
 *     def cross(self, other: vec3):
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_x); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 681, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_other), __pyx_n_s_x); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 681, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = PyNumber_Multiply(__pyx_t_1, __pyx_t_2); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 681, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_y); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 681, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_other), __pyx_n_s_y); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 681, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_4 = PyNumber_Multiply(__pyx_t_2, __pyx_t_1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 681, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_1 = PyNumber_Add(__pyx_t_3, __pyx_t_4); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 681, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __pyx_t_4 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_z); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 681, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_3 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_other), __pyx_n_s_z); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 681, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_2 = PyNumber_Multiply(__pyx_t_4, __pyx_t_3); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 681, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __pyx_t_3 = PyNumber_Add(__pyx_t_1, __pyx_t_2); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 681, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_r = __pyx_t_3;
  __pyx_t_3 = 0;
  goto __pyx_L0;

  /* "cgl_wrapper.pyx":680
 *         return vec3(self.x // other.x, self.y // other.y, self.z // other.z)
 * 
 *     def dot(self, other: vec3):             # <<<<<<<<<<<<<<
 *         return (self.x * other.x) + (self.y * other.y) + (self.z * other.z)
 * 
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cgl.vec3.dot", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cgl_wrapper.pyx":683
 *         return (self.x * other.x) + (self.y * other.y) + (self.z * other.z)
 * 
 *     def cross(self, other: vec3):             # <<<<<<<<<<<<<<
 *         return vec3((self.y * other.z) - (self.z * other.y), (self.z * other.x) - (self.x * other.z), (self.x * other.y) - (self.y * other.x))
 * 
 */

/* Python wrapper */
static PyObject *__pyx_pw_3cgl_4vec3_37cross(PyObject *__pyx_v_self, PyObject *__pyx_v_other); /*proto*/
static PyObject *__pyx_pw_3cgl_4vec3_37cross(PyObject *__pyx_v_self, PyObject *__pyx_v_other) {
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("cross (wrapper)", 0);
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_other), __pyx_ptype_3cgl_vec3, 1, "other", 0))) __PYX_ERR(0, 683, __pyx_L1_error)
  __pyx_r = __pyx_pf_3cgl_4vec3_36cross(((struct __pyx_obj_3cgl_vec3 *)__pyx_v_self), ((struct __pyx_obj_3cgl_vec3 *)__pyx_v_other));

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_3cgl_4vec3_36cross(struct __pyx_obj_3cgl_vec3 *__pyx_v_self, struct __pyx_obj_3cgl_vec3 *__pyx_v_other) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("cross", 0);

  /* "cgl_wrapper.pyx":684
 * 
 *     def cross(self, other: vec3):
 *         return vec3((self.y * other.z) - (self.z * other.y), (self.z * other.x) - (self.x * other.z), (self.x * other.y) - (self.y * other.x))             # <<<<<<<<<<<<<<
 * 
 *     def length(self):
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_y); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 684, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_other), __pyx_n_s_z); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 684, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = PyNumber_Multiply(__pyx_t_1, __pyx_t_2); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 684, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_z); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 684, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_other), __pyx_n_s_y); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 684, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_4 = PyNumber_Multiply(__pyx_t_2, __pyx_t_1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 684, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_1 = PyNumber_Subtract(__pyx_t_3, __pyx_t_4); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 684, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __pyx_t_4 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_z); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 684, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_3 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_other), __pyx_n_s_x); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 684, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_2 = PyNumber_Multiply(__pyx_t_4, __pyx_t_3); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 684, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __pyx_t_3 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_x); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 684, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_other), __pyx_n_s_z); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 684, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_5 = PyNumber_Multiply(__pyx_t_3, __pyx_t_4); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 684, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __pyx_t_4 = PyNumber_Subtract(__pyx_t_2, __pyx_t_5); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 684, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
  __pyx_t_5 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_x); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 684, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_other), __pyx_n_s_y); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 684, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = PyNumber_Multiply(__pyx_t_5, __pyx_t_2); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 684, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_y); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 684, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_5 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_other), __pyx_n_s_x); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 684, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __pyx_t_6 = PyNumber_Multiply(__pyx_t_2, __pyx_t_5); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 684, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
  __pyx_t_5 = PyNumber_Subtract(__pyx_t_3, __pyx_t_6); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 684, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
  __pyx_t_6 = PyTuple_New(3); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 684, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __Pyx_GIVEREF(__pyx_t_1);
  PyTuple_SET_ITEM(__pyx_t_6, 0, __pyx_t_1);
  __Pyx_GIVEREF(__pyx_t_4);
  PyTuple_SET_ITEM(__pyx_t_6, 1, __pyx_t_4);
  __Pyx_GIVEREF(__pyx_t_5);
  PyTuple_SET_ITEM(__pyx_t_6, 2, __pyx_t_5);
  __pyx_t_1 = 0;
  __pyx_t_4 = 0;
  __pyx_t_5 = 0;
  __pyx_t_5 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_3cgl_vec3), __pyx_t_6, NULL); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 684, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
  __pyx_r = __pyx_t_5;
  __pyx_t_5 = 0;
  goto __pyx_L0;

  /* "cgl_wrapper.pyx":683
 *         return (self.x * other.x) + (self.y * other.y) + (self.z * other.z)
 * 
 *     def cross(self, other: vec3):             # <<<<<<<<<<<<<<
 *         return vec3((self.y * other.z) - (self.z * other.y), (self.z * other.x) - (self.x * other.z), (self.x * other.y) - (self.y * other.x))
 * 
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_AddTraceback("cgl.vec3.cross", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cgl_wrapper.pyx":686
 *         return vec3((self.y * other.z) - (self.z * other.y), (self.z * other.x) - (self.x * other.z), (self.x * other.y) - (self.y * other.x))
 * 
 *     def length(self):             # <<<<<<<<<<<<<<
 *         return math.sqrt((self.x * self.x) + (self.y * self.y) + (self.z * self.z))
 * 
 */

/* Python wrapper */
static PyObject *__pyx_pw_3cgl_4vec3_39length(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/
static PyObject *__pyx_pw_3cgl_4vec3_39length(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("length (wrapper)", 0);
  __pyx_r = __pyx_pf_3cgl_4vec3_38length(((struct __pyx_obj_3cgl_vec3 *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_3cgl_4vec3_38length(struct __pyx_obj_3cgl_vec3 *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  double __pyx_t_5;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("length", 0);

  /* "cgl_wrapper.pyx":687
 * 
 *     def length(self):
 *         return math.sqrt((self.x * self.x) + (self.y * self.y) + (self.z * self.z))             # <<<<<<<<<<<<<<
 * 
 *     def length_squared(self):
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_x); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 687, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_x); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 687, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = PyNumber_Multiply(__pyx_t_1, __pyx_t_2); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 687, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_y); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 687, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_y); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 687, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_4 = PyNumber_Multiply(__pyx_t_2, __pyx_t_1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 687, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_1 = PyNumber_Add(__pyx_t_3, __pyx_t_4); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 687, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __pyx_t_4 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_z); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 687, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_3 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_z); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 687, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_2 = PyNumber_Multiply(__pyx_t_4, __pyx_t_3); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 687, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __pyx_t_3 = PyNumber_Add(__pyx_t_1, __pyx_t_2); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 687, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_t_5 = __pyx_PyFloat_AsDouble(__pyx_t_3); if (unlikely((__pyx_t_5 == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 687, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __pyx_t_3 = PyFloat_FromDouble(sqrt(__pyx_t_5)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 687, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_r = __pyx_t_3;
  __pyx_t_3 = 0;
  goto __pyx_L0;

  /* "cgl_wrapper.pyx":686
 *         return vec3((self.y * other.z) - (self.z * other.y), (self.z * other.x) - (self.x * other.z), (self.x * other.y) - (self.y * other.x))
 * 
 *     def length(self):             # <<<<<<<<<<<<<<
 *         return math.sqrt((self.x * self.x) + (self.y * self.y) + (self.z * self.z))
 * 
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cgl.vec3.length", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cgl_wrapper.pyx":689
 *         return math.sqrt((self.x * self.x) + (self.y * self.y) + (self.z * self.z))
 * 
 *     def length_squared(self):             # <<<<<<<<<<<<<<
 *         return (self.x * self.x) + (self.y * self.y) + (self.z * self.z)
 * 
 */

/* Python wrapper */
static PyObject *__pyx_pw_3cgl_4vec3_41length_squared(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/
static PyObject *__pyx_pw_3cgl_4vec3_41length_squared(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("length_squared (wrapper)", 0);
  __pyx_r = __pyx_pf_3cgl_4vec3_40length_squared(((struct __pyx_obj_3cgl_vec3 *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_3cgl_4vec3_40length_squared(struct __pyx_obj_3cgl_vec3 *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("length_squared", 0);

  /* "cgl_wrapper.pyx":690
 * 
 *     def length_squared(self):
 *         return (self.x * self.x) + (self.y * self.y) + (self.z * self.z)             # <<<<<<<<<<<<<<
 * 
 *     def normalized(self):
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_x); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 690, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_x); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 690, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = PyNumber_Multiply(__pyx_t_1, __pyx_t_2); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 690, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_y); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 690, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_y); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 690, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_4 = PyNumber_Multiply(__pyx_t_2, __pyx_t_1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 690, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_1 = PyNumber_Add(__pyx_t_3, __pyx_t_4); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 690, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __pyx_t_4 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_z); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 690, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_3 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_z); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 690, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_2 = PyNumber_Multiply(__pyx_t_4, __pyx_t_3); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 690, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __pyx_t_3 = PyNumber_Add(__pyx_t_1, __pyx_t_2); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 690, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_r = __pyx_t_3;
  __pyx_t_3 = 0;
  goto __pyx_L0;

  /* "cgl_wrapper.pyx":689
 *         return math.sqrt((self.x * self.x) + (self.y * self.y) + (self.z * self.z))
 * 
 *     def length_squared(self):             # <<<<<<<<<<<<<<
 *         return (self.x * self.x) + (self.y * self.y) + (self.z * self.z)
 * 
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cgl.vec3.length_squared", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cgl_wrapper.pyx":692
 *         return (self.x * self.x) + (self.y * self.y) + (self.z * self.z)
 * 
 *     def normalized(self):             # <<<<<<<<<<<<<<
 *         cdef float length = self.length()
 *         return vec3(self.x / length, self.y / length, self.z / length)
 */

/* Python wrapper */
static PyObject *__pyx_pw_3cgl_4vec3_43normalized(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/
static PyObject *__pyx_pw_3cgl_4vec3_43normalized(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("normalized (wrapper)", 0);
  __pyx_r = __pyx_pf_3cgl_4vec3_42normalized(((struct __pyx_obj_3cgl_vec3 *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_3cgl_4vec3_42normalized(struct __pyx_obj_3cgl_vec3 *__pyx_v_self) {
  float __pyx_v_length;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  float __pyx_t_4;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("normalized", 0);

  /* "cgl_wrapper.pyx":693
 * 
 *     def normalized(self):
 *         cdef float length = self.length()             # <<<<<<<<<<<<<<
 *         return vec3(self.x / length, self.y / length, self.z / length)
 * 
 */
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_length); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 693, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = NULL;
  if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) {
    __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2);
    if (likely(__pyx_t_3)) {
      PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2);
      __Pyx_INCREF(__pyx_t_3);
      __Pyx_INCREF(function);
      __Pyx_DECREF_SET(__pyx_t_2, function);
    }
  }
  __pyx_t_1 = (__pyx_t_3) ? __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_t_3) : __Pyx_PyObject_CallNoArg(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
  if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 693, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_t_4 = __pyx_PyFloat_AsFloat(__pyx_t_1); if (unlikely((__pyx_t_4 == (float)-1) && PyErr_Occurred())) __PYX_ERR(0, 693, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_v_length = __pyx_t_4;

  /* "cgl_wrapper.pyx":694
 *     def normalized(self):
 *         cdef float length = self.length()
 *         return vec3(self.x / length, self.y / length, self.z / length)             # <<<<<<<<<<<<<<
 * 
 * def vec3_reflect(a: vec3, n: vec3) -> vec3:
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_x); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 694, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = PyFloat_FromDouble(__pyx_v_length); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 694, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = __Pyx_PyNumber_Divide(__pyx_t_1, __pyx_t_2); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 694, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_y); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 694, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_1 = PyFloat_FromDouble(__pyx_v_length); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 694, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_5 = __Pyx_PyNumber_Divide(__pyx_t_2, __pyx_t_1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 694, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_z); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 694, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = PyFloat_FromDouble(__pyx_v_length); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 694, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_6 = __Pyx_PyNumber_Divide(__pyx_t_1, __pyx_t_2); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 694, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_t_2 = PyTuple_New(3); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 694, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_3);
  PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_3);
  __Pyx_GIVEREF(__pyx_t_5);
  PyTuple_SET_ITEM(__pyx_t_2, 1, __pyx_t_5);
  __Pyx_GIVEREF(__pyx_t_6);
  PyTuple_SET_ITEM(__pyx_t_2, 2, __pyx_t_6);
  __pyx_t_3 = 0;
  __pyx_t_5 = 0;
  __pyx_t_6 = 0;
  __pyx_t_6 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_3cgl_vec3), __pyx_t_2, NULL); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 694, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_r = __pyx_t_6;
  __pyx_t_6 = 0;
  goto __pyx_L0;

  /* "cgl_wrapper.pyx":692
 *         return (self.x * self.x) + (self.y * self.y) + (self.z * self.z)
 * 
 *     def normalized(self):             # <<<<<<<<<<<<<<
 *         cdef float length = self.length()
 *         return vec3(self.x / length, self.y / length, self.z / length)
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_AddTraceback("cgl.vec3.normalized", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError("Pickling of struct members such as self.c_vec3 must be explicitly requested with @auto_pickle(True)")
 * def __setstate_cython__(self, __pyx_state):
 */

/* Python wrapper */
static PyObject *__pyx_pw_3cgl_4vec3_45__reduce_cython__(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/
static PyObject *__pyx_pw_3cgl_4vec3_45__reduce_cython__(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__reduce_cython__ (wrapper)", 0);
  __pyx_r = __pyx_pf_3cgl_4vec3_44__reduce_cython__(((struct __pyx_obj_3cgl_vec3 *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_3cgl_4vec3_44__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_3cgl_vec3 *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__reduce_cython__", 0);

  /* "(tree fragment)":2
 * def __reduce_cython__(self):
 *     raise TypeError("Pickling of struct members such as self.c_vec3 must be explicitly requested with @auto_pickle(True)")             # <<<<<<<<<<<<<<
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError("Pickling of struct members such as self.c_vec3 must be explicitly requested with @auto_pickle(True)")
 */
  __pyx_t_1 = __Pyx_PyObject_Call(__pyx_builtin_TypeError, __pyx_tuple__7, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 2, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_Raise(__pyx_t_1, 0, 0, 0);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __PYX_ERR(1, 2, __pyx_L1_error)

  /* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError("Pickling of struct members such as self.c_vec3 must be explicitly requested with @auto_pickle(True)")
 * def __setstate_cython__(self, __pyx_state):
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cgl.vec3.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError("Pickling of struct members such as self.c_vec3 must be explicitly requested with @auto_pickle(True)")
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError("Pickling of struct members such as self.c_vec3 must be explicitly requested with @auto_pickle(True)")
 */

/* Python wrapper */
static PyObject *__pyx_pw_3cgl_4vec3_47__setstate_cython__(PyObject *__pyx_v_self, PyObject *__pyx_v___pyx_state); /*proto*/
static PyObject *__pyx_pw_3cgl_4vec3_47__setstate_cython__(PyObject *__pyx_v_self, PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__setstate_cython__ (wrapper)", 0);
  __pyx_r = __pyx_pf_3cgl_4vec3_46__setstate_cython__(((struct __pyx_obj_3cgl_vec3 *)__pyx_v_self), ((PyObject *)__pyx_v___pyx_state));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_3cgl_4vec3_46__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_3cgl_vec3 *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__setstate_cython__", 0);

  /* "(tree fragment)":4
 *     raise TypeError("Pickling of struct members such as self.c_vec3 must be explicitly requested with @auto_pickle(True)")
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError("Pickling of struct members such as self.c_vec3 must be explicitly requested with @auto_pickle(True)")             # <<<<<<<<<<<<<<
 */
  __pyx_t_1 = __Pyx_PyObject_Call(__pyx_builtin_TypeError, __pyx_tuple__8, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 4, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_Raise(__pyx_t_1, 0, 0, 0);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __PYX_ERR(1, 4, __pyx_L1_error)

  /* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError("Pickling of struct members such as self.c_vec3 must be explicitly requested with @auto_pickle(True)")
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError("Pickling of struct members such as self.c_vec3 must be explicitly requested with @auto_pickle(True)")
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cgl.vec3.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cgl_wrapper.pyx":696
 *         return vec3(self.x / length, self.y / length, self.z / length)
 * 
 * def vec3_reflect(a: vec3, n: vec3) -> vec3:             # <<<<<<<<<<<<<<
 *     cdef CGL_vec3 obj = vec3(CGL_vec3_reflect(a.c_vec3, n.c_vec3))
 *     return vec3(obj.x, obj.y, obj.z)
 */

/* Python wrapper */
static struct __pyx_obj_3cgl_vec3 *__pyx_pw_3cgl_125vec3_reflect(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static PyMethodDef __pyx_mdef_3cgl_125vec3_reflect = {"vec3_reflect", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_3cgl_125vec3_reflect, METH_VARARGS|METH_KEYWORDS, 0};
static struct __pyx_obj_3cgl_vec3 *__pyx_pw_3cgl_125vec3_reflect(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  struct __pyx_obj_3cgl_vec3 *__pyx_v_a = 0;
  struct __pyx_obj_3cgl_vec3 *__pyx_v_n = 0;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  struct __pyx_obj_3cgl_vec3 *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("vec3_reflect (wrapper)", 0);
  {
    static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_a,&__pyx_n_s_n,0};
    PyObject* values[2] = {0,0};
    if (unlikely(__pyx_kwds)) {
      Py_ssize_t kw_args;
      const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
      switch (pos_args) {
        case  2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
        CYTHON_FALLTHROUGH;
        case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      kw_args = PyDict_Size(__pyx_kwds);
      switch (pos_args) {
        case  0:
        if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_a)) != 0)) kw_args--;
        else goto __pyx_L5_argtuple_error;
        CYTHON_FALLTHROUGH;
        case  1:
        if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_n)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("vec3_reflect", 1, 2, 2, 1); __PYX_ERR(0, 696, __pyx_L3_error)
        }
      }
      if (unlikely(kw_args > 0)) {
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "vec3_reflect") < 0)) __PYX_ERR(0, 696, __pyx_L3_error)
      }
    } else if (PyTuple_GET_SIZE(__pyx_args) != 2) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
      values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
    }
    __pyx_v_a = ((struct __pyx_obj_3cgl_vec3 *)values[0]);
    __pyx_v_n = ((struct __pyx_obj_3cgl_vec3 *)values[1]);
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("vec3_reflect", 1, 2, 2, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 696, __pyx_L3_error)
  __pyx_L3_error:;
  __Pyx_AddTraceback("cgl.vec3_reflect", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_a), __pyx_ptype_3cgl_vec3, 1, "a", 0))) __PYX_ERR(0, 696, __pyx_L1_error)
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_n), __pyx_ptype_3cgl_vec3, 1, "n", 0))) __PYX_ERR(0, 696, __pyx_L1_error)
  __pyx_r = __pyx_pf_3cgl_124vec3_reflect(__pyx_self, __pyx_v_a, __pyx_v_n);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static struct __pyx_obj_3cgl_vec3 *__pyx_pf_3cgl_124vec3_reflect(CYTHON_UNUSED PyObject *__pyx_self, struct __pyx_obj_3cgl_vec3 *__pyx_v_a, struct __pyx_obj_3cgl_vec3 *__pyx_v_n) {
  struct CGL_vec3 __pyx_v_obj;
  struct __pyx_obj_3cgl_vec3 *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  struct CGL_vec3 __pyx_t_3;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("vec3_reflect", 0);

  /* "cgl_wrapper.pyx":697
 * 
 * def vec3_reflect(a: vec3, n: vec3) -> vec3:
 *     cdef CGL_vec3 obj = vec3(CGL_vec3_reflect(a.c_vec3, n.c_vec3))             # <<<<<<<<<<<<<<
 *     return vec3(obj.x, obj.y, obj.z)
 * 
 */
  __pyx_t_1 = __pyx_convert__to_py_struct__CGL_vec3(CGL_vec3_reflect(__pyx_v_a->c_vec3, __pyx_v_n->c_vec3)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 697, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_3cgl_vec3), __pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 697, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_3 = __pyx_convert__from_py_struct__CGL_vec3(__pyx_t_2); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 697, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_v_obj = __pyx_t_3;

  /* "cgl_wrapper.pyx":698
 * def vec3_reflect(a: vec3, n: vec3) -> vec3:
 *     cdef CGL_vec3 obj = vec3(CGL_vec3_reflect(a.c_vec3, n.c_vec3))
 *     return vec3(obj.x, obj.y, obj.z)             # <<<<<<<<<<<<<<
 * 
 * def vec3_rotate_about_axis(v: vec3, axis: vec3, theta: float) -> vec3:
 */
  __Pyx_XDECREF(((PyObject *)__pyx_r));
  __pyx_t_2 = PyFloat_FromDouble(__pyx_v_obj.x); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 698, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_1 = PyFloat_FromDouble(__pyx_v_obj.y); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 698, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_4 = PyFloat_FromDouble(__pyx_v_obj.z); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 698, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_5 = PyTuple_New(3); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 698, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_GIVEREF(__pyx_t_2);
  PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_1);
  PyTuple_SET_ITEM(__pyx_t_5, 1, __pyx_t_1);
  __Pyx_GIVEREF(__pyx_t_4);
  PyTuple_SET_ITEM(__pyx_t_5, 2, __pyx_t_4);
  __pyx_t_2 = 0;
  __pyx_t_1 = 0;
  __pyx_t_4 = 0;
  __pyx_t_4 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_3cgl_vec3), __pyx_t_5, NULL); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 698, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
  __pyx_r = ((struct __pyx_obj_3cgl_vec3 *)__pyx_t_4);
  __pyx_t_4 = 0;
  goto __pyx_L0;

  /* "cgl_wrapper.pyx":696
 *         return vec3(self.x / length, self.y / length, self.z / length)
 * 
 * def vec3_reflect(a: vec3, n: vec3) -> vec3:             # <<<<<<<<<<<<<<
 *     cdef CGL_vec3 obj = vec3(CGL_vec3_reflect(a.c_vec3, n.c_vec3))
 *     return vec3(obj.x, obj.y, obj.z)
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("cgl.vec3_reflect", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF((PyObject *)__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cgl_wrapper.pyx":700
 *     return vec3(obj.x, obj.y, obj.z)
 * 
 * def vec3_rotate_about_axis(v: vec3, axis: vec3, theta: float) -> vec3:             # <<<<<<<<<<<<<<
 *     cdef CGL_vec3 obj = vec3(CGL_vec3_rotate_about_axis(v.c_vec3, axis.c_vec3, theta))
 *     return vec3(obj.x, obj.y, obj.z)
 */

/* Python wrapper */
static struct __pyx_obj_3cgl_vec3 *__pyx_pw_3cgl_127vec3_rotate_about_axis(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static PyMethodDef __pyx_mdef_3cgl_127vec3_rotate_about_axis = {"vec3_rotate_about_axis", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_3cgl_127vec3_rotate_about_axis, METH_VARARGS|METH_KEYWORDS, 0};
static struct __pyx_obj_3cgl_vec3 *__pyx_pw_3cgl_127vec3_rotate_about_axis(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  struct __pyx_obj_3cgl_vec3 *__pyx_v_v = 0;
  struct __pyx_obj_3cgl_vec3 *__pyx_v_axis = 0;
  double __pyx_v_theta;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  struct __pyx_obj_3cgl_vec3 *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("vec3_rotate_about_axis (wrapper)", 0);
  {
    static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_v,&__pyx_n_s_axis,&__pyx_n_s_theta,0};
    PyObject* values[3] = {0,0,0};
    if (unlikely(__pyx_kwds)) {
      Py_ssize_t kw_args;
      const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
      switch (pos_args) {
        case  3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
        CYTHON_FALLTHROUGH;
        case  2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
        CYTHON_FALLTHROUGH;
        case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      kw_args = PyDict_Size(__pyx_kwds);
      switch (pos_args) {
        case  0:
        if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_v)) != 0)) kw_args--;
        else goto __pyx_L5_argtuple_error;
        CYTHON_FALLTHROUGH;
        case  1:
        if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_axis)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("vec3_rotate_about_axis", 1, 3, 3, 1); __PYX_ERR(0, 700, __pyx_L3_error)
        }
        CYTHON_FALLTHROUGH;
        case  2:
        if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_theta)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("vec3_rotate_about_axis", 1, 3, 3, 2); __PYX_ERR(0, 700, __pyx_L3_error)
        }
      }
      if (unlikely(kw_args > 0)) {
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "vec3_rotate_about_axis") < 0)) __PYX_ERR(0, 700, __pyx_L3_error)
      }
    } else if (PyTuple_GET_SIZE(__pyx_args) != 3) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
      values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
      values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
    }
    __pyx_v_v = ((struct __pyx_obj_3cgl_vec3 *)values[0]);
    __pyx_v_axis = ((struct __pyx_obj_3cgl_vec3 *)values[1]);
    __pyx_v_theta = __pyx_PyFloat_AsDouble(values[2]); if (unlikely((__pyx_v_theta == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 700, __pyx_L3_error)
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("vec3_rotate_about_axis", 1, 3, 3, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 700, __pyx_L3_error)
  __pyx_L3_error:;
  __Pyx_AddTraceback("cgl.vec3_rotate_about_axis", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_v), __pyx_ptype_3cgl_vec3, 1, "v", 0))) __PYX_ERR(0, 700, __pyx_L1_error)
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_axis), __pyx_ptype_3cgl_vec3, 1, "axis", 0))) __PYX_ERR(0, 700, __pyx_L1_error)
  __pyx_r = __pyx_pf_3cgl_126vec3_rotate_about_axis(__pyx_self, __pyx_v_v, __pyx_v_axis, __pyx_v_theta);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static struct __pyx_obj_3cgl_vec3 *__pyx_pf_3cgl_126vec3_rotate_about_axis(CYTHON_UNUSED PyObject *__pyx_self, struct __pyx_obj_3cgl_vec3 *__pyx_v_v, struct __pyx_obj_3cgl_vec3 *__pyx_v_axis, double __pyx_v_theta) {
  struct CGL_vec3 __pyx_v_obj;
  struct __pyx_obj_3cgl_vec3 *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  struct CGL_vec3 __pyx_t_3;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("vec3_rotate_about_axis", 0);

  /* "cgl_wrapper.pyx":701
 * 
 * def vec3_rotate_about_axis(v: vec3, axis: vec3, theta: float) -> vec3:
 *     cdef CGL_vec3 obj = vec3(CGL_vec3_rotate_about_axis(v.c_vec3, axis.c_vec3, theta))             # <<<<<<<<<<<<<<
 *     return vec3(obj.x, obj.y, obj.z)
 * 
 */
  __pyx_t_1 = __pyx_convert__to_py_struct__CGL_vec3(CGL_vec3_rotate_about_axis(__pyx_v_v->c_vec3, __pyx_v_axis->c_vec3, __pyx_v_theta)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 701, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_3cgl_vec3), __pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 701, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_3 = __pyx_convert__from_py_struct__CGL_vec3(__pyx_t_2); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 701, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_v_obj = __pyx_t_3;

  /* "cgl_wrapper.pyx":702
 * def vec3_rotate_about_axis(v: vec3, axis: vec3, theta: float) -> vec3:
 *     cdef CGL_vec3 obj = vec3(CGL_vec3_rotate_about_axis(v.c_vec3, axis.c_vec3, theta))
 *     return vec3(obj.x, obj.y, obj.z)             # <<<<<<<<<<<<<<
 * 
 * def vec3_triple_product(a: vec3, b: vec3, c: vec3) -> vec3:
 */
  __Pyx_XDECREF(((PyObject *)__pyx_r));
  __pyx_t_2 = PyFloat_FromDouble(__pyx_v_obj.x); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 702, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_1 = PyFloat_FromDouble(__pyx_v_obj.y); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 702, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_4 = PyFloat_FromDouble(__pyx_v_obj.z); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 702, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_5 = PyTuple_New(3); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 702, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_GIVEREF(__pyx_t_2);
  PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_1);
  PyTuple_SET_ITEM(__pyx_t_5, 1, __pyx_t_1);
  __Pyx_GIVEREF(__pyx_t_4);
  PyTuple_SET_ITEM(__pyx_t_5, 2, __pyx_t_4);
  __pyx_t_2 = 0;
  __pyx_t_1 = 0;
  __pyx_t_4 = 0;
  __pyx_t_4 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_3cgl_vec3), __pyx_t_5, NULL); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 702, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
  __pyx_r = ((struct __pyx_obj_3cgl_vec3 *)__pyx_t_4);
  __pyx_t_4 = 0;
  goto __pyx_L0;

  /* "cgl_wrapper.pyx":700
 *     return vec3(obj.x, obj.y, obj.z)
 * 
 * def vec3_rotate_about_axis(v: vec3, axis: vec3, theta: float) -> vec3:             # <<<<<<<<<<<<<<
 *     cdef CGL_vec3 obj = vec3(CGL_vec3_rotate_about_axis(v.c_vec3, axis.c_vec3, theta))
 *     return vec3(obj.x, obj.y, obj.z)
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("cgl.vec3_rotate_about_axis", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF((PyObject *)__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cgl_wrapper.pyx":704
 *     return vec3(obj.x, obj.y, obj.z)
 * 
 * def vec3_triple_product(a: vec3, b: vec3, c: vec3) -> vec3:             # <<<<<<<<<<<<<<
 *     cdef CGL_vec3 obj = vec3(CGL_vec3_triple_product(a.c_vec3, b.c_vec3, c.c_vec3))
 *     return vec3(obj.x, obj.y, obj.z)
 */

/* Python wrapper */
static struct __pyx_obj_3cgl_vec3 *__pyx_pw_3cgl_129vec3_triple_product(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static PyMethodDef __pyx_mdef_3cgl_129vec3_triple_product = {"vec3_triple_product", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_3cgl_129vec3_triple_product, METH_VARARGS|METH_KEYWORDS, 0};
static struct __pyx_obj_3cgl_vec3 *__pyx_pw_3cgl_129vec3_triple_product(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  struct __pyx_obj_3cgl_vec3 *__pyx_v_a = 0;
  struct __pyx_obj_3cgl_vec3 *__pyx_v_b = 0;
  struct __pyx_obj_3cgl_vec3 *__pyx_v_c = 0;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  struct __pyx_obj_3cgl_vec3 *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("vec3_triple_product (wrapper)", 0);
  {
    static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_a,&__pyx_n_s_b,&__pyx_n_s_c,0};
    PyObject* values[3] = {0,0,0};
    if (unlikely(__pyx_kwds)) {
      Py_ssize_t kw_args;
      const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
      switch (pos_args) {
        case  3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
        CYTHON_FALLTHROUGH;
        case  2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
        CYTHON_FALLTHROUGH;
        case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      kw_args = PyDict_Size(__pyx_kwds);
      switch (pos_args) {
        case  0:
        if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_a)) != 0)) kw_args--;
        else goto __pyx_L5_argtuple_error;
        CYTHON_FALLTHROUGH;
        case  1:
        if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_b)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("vec3_triple_product", 1, 3, 3, 1); __PYX_ERR(0, 704, __pyx_L3_error)
        }
        CYTHON_FALLTHROUGH;
        case  2:
        if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_c)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("vec3_triple_product", 1, 3, 3, 2); __PYX_ERR(0, 704, __pyx_L3_error)
        }
      }
      if (unlikely(kw_args > 0)) {
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "vec3_triple_product") < 0)) __PYX_ERR(0, 704, __pyx_L3_error)
      }
    } else if (PyTuple_GET_SIZE(__pyx_args) != 3) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
      values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
      values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
    }
    __pyx_v_a = ((struct __pyx_obj_3cgl_vec3 *)values[0]);
    __pyx_v_b = ((struct __pyx_obj_3cgl_vec3 *)values[1]);
    __pyx_v_c = ((struct __pyx_obj_3cgl_vec3 *)values[2]);
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("vec3_triple_product", 1, 3, 3, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 704, __pyx_L3_error)
  __pyx_L3_error:;
  __Pyx_AddTraceback("cgl.vec3_triple_product", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_a), __pyx_ptype_3cgl_vec3, 1, "a", 0))) __PYX_ERR(0, 704, __pyx_L1_error)
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_b), __pyx_ptype_3cgl_vec3, 1, "b", 0))) __PYX_ERR(0, 704, __pyx_L1_error)
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_c), __pyx_ptype_3cgl_vec3, 1, "c", 0))) __PYX_ERR(0, 704, __pyx_L1_error)
  __pyx_r = __pyx_pf_3cgl_128vec3_triple_product(__pyx_self, __pyx_v_a, __pyx_v_b, __pyx_v_c);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static struct __pyx_obj_3cgl_vec3 *__pyx_pf_3cgl_128vec3_triple_product(CYTHON_UNUSED PyObject *__pyx_self, struct __pyx_obj_3cgl_vec3 *__pyx_v_a, struct __pyx_obj_3cgl_vec3 *__pyx_v_b, struct __pyx_obj_3cgl_vec3 *__pyx_v_c) {
  struct CGL_vec3 __pyx_v_obj;
  struct __pyx_obj_3cgl_vec3 *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  struct CGL_vec3 __pyx_t_3;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("vec3_triple_product", 0);

  /* "cgl_wrapper.pyx":705
 * 
 * def vec3_triple_product(a: vec3, b: vec3, c: vec3) -> vec3:
 *     cdef CGL_vec3 obj = vec3(CGL_vec3_triple_product(a.c_vec3, b.c_vec3, c.c_vec3))             # <<<<<<<<<<<<<<
 *     return vec3(obj.x, obj.y, obj.z)
 * 
 */
  __pyx_t_1 = __pyx_convert__to_py_struct__CGL_vec3(CGL_vec3_triple_product(__pyx_v_a->c_vec3, __pyx_v_b->c_vec3, __pyx_v_c->c_vec3)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 705, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_3cgl_vec3), __pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 705, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_3 = __pyx_convert__from_py_struct__CGL_vec3(__pyx_t_2); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 705, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_v_obj = __pyx_t_3;

  /* "cgl_wrapper.pyx":706
 * def vec3_triple_product(a: vec3, b: vec3, c: vec3) -> vec3:
 *     cdef CGL_vec3 obj = vec3(CGL_vec3_triple_product(a.c_vec3, b.c_vec3, c.c_vec3))
 *     return vec3(obj.x, obj.y, obj.z)             # <<<<<<<<<<<<<<
 * 
 * cdef class vec4:
 */
  __Pyx_XDECREF(((PyObject *)__pyx_r));
  __pyx_t_2 = PyFloat_FromDouble(__pyx_v_obj.x); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 706, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_1 = PyFloat_FromDouble(__pyx_v_obj.y); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 706, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_4 = PyFloat_FromDouble(__pyx_v_obj.z); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 706, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_5 = PyTuple_New(3); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 706, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_GIVEREF(__pyx_t_2);
  PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_1);
  PyTuple_SET_ITEM(__pyx_t_5, 1, __pyx_t_1);
  __Pyx_GIVEREF(__pyx_t_4);
  PyTuple_SET_ITEM(__pyx_t_5, 2, __pyx_t_4);
  __pyx_t_2 = 0;
  __pyx_t_1 = 0;
  __pyx_t_4 = 0;
  __pyx_t_4 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_3cgl_vec3), __pyx_t_5, NULL); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 706, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
  __pyx_r = ((struct __pyx_obj_3cgl_vec3 *)__pyx_t_4);
  __pyx_t_4 = 0;
  goto __pyx_L0;

  /* "cgl_wrapper.pyx":704
 *     return vec3(obj.x, obj.y, obj.z)
 * 
 * def vec3_triple_product(a: vec3, b: vec3, c: vec3) -> vec3:             # <<<<<<<<<<<<<<
 *     cdef CGL_vec3 obj = vec3(CGL_vec3_triple_product(a.c_vec3, b.c_vec3, c.c_vec3))
 *     return vec3(obj.x, obj.y, obj.z)
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("cgl.vec3_triple_product", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF((PyObject *)__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cgl_wrapper.pyx":711
 *     cdef CGL_vec4 c_vec4
 * 
 *     def __init__(self, x: float = 0.0, y: float = 0.0, z: float = 0.0, w: float = 0.0):             # <<<<<<<<<<<<<<
 *         self.c_vec4 = CGL_vec4(x, y, z, w)
 * 
 */

/* Python wrapper */
static int __pyx_pw_3cgl_4vec4_1__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static int __pyx_pw_3cgl_4vec4_1__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  double __pyx_v_x;
  double __pyx_v_y;
  double __pyx_v_z;
  double __pyx_v_w;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__init__ (wrapper)", 0);
  {
    static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_x,&__pyx_n_s_y,&__pyx_n_s_z,&__pyx_n_s_w,0};
    PyObject* values[4] = {0,0,0,0};
    if (unlikely(__pyx_kwds)) {
      Py_ssize_t kw_args;
      const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
      switch (pos_args) {
        case  4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
        CYTHON_FALLTHROUGH;
        case  3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
        CYTHON_FALLTHROUGH;
        case  2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
        CYTHON_FALLTHROUGH;
        case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      kw_args = PyDict_Size(__pyx_kwds);
      switch (pos_args) {
        case  0:
        if (kw_args > 0) {
          PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_x);
          if (value) { values[0] = value; kw_args--; }
        }
        CYTHON_FALLTHROUGH;
        case  1:
        if (kw_args > 0) {
          PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_y);
          if (value) { values[1] = value; kw_args--; }
        }
        CYTHON_FALLTHROUGH;
        case  2:
        if (kw_args > 0) {
          PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_z);
          if (value) { values[2] = value; kw_args--; }
        }
        CYTHON_FALLTHROUGH;
        case  3:
        if (kw_args > 0) {
          PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_w);
          if (value) { values[3] = value; kw_args--; }
        }
      }
      if (unlikely(kw_args > 0)) {
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "__init__") < 0)) __PYX_ERR(0, 711, __pyx_L3_error)
      }
    } else {
      switch (PyTuple_GET_SIZE(__pyx_args)) {
        case  4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
        CYTHON_FALLTHROUGH;
        case  3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
        CYTHON_FALLTHROUGH;
        case  2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
        CYTHON_FALLTHROUGH;
        case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
    }
    if (values[0]) {
      __pyx_v_x = __pyx_PyFloat_AsDouble(values[0]); if (unlikely((__pyx_v_x == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 711, __pyx_L3_error)
    } else {
      __pyx_v_x = ((double)0.0);
    }
    if (values[1]) {
      __pyx_v_y = __pyx_PyFloat_AsDouble(values[1]); if (unlikely((__pyx_v_y == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 711, __pyx_L3_error)
    } else {
      __pyx_v_y = ((double)0.0);
    }
    if (values[2]) {
      __pyx_v_z = __pyx_PyFloat_AsDouble(values[2]); if (unlikely((__pyx_v_z == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 711, __pyx_L3_error)
    } else {
      __pyx_v_z = ((double)0.0);
    }
    if (values[3]) {
      __pyx_v_w = __pyx_PyFloat_AsDouble(values[3]); if (unlikely((__pyx_v_w == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 711, __pyx_L3_error)
    } else {
      __pyx_v_w = ((double)0.0);
    }
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__init__", 0, 0, 4, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 711, __pyx_L3_error)
  __pyx_L3_error:;
  __Pyx_AddTraceback("cgl.vec4.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_3cgl_4vec4___init__(((struct __pyx_obj_3cgl_vec4 *)__pyx_v_self), __pyx_v_x, __pyx_v_y, __pyx_v_z, __pyx_v_w);

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_3cgl_4vec4___init__(struct __pyx_obj_3cgl_vec4 *__pyx_v_self, double __pyx_v_x, double __pyx_v_y, double __pyx_v_z, double __pyx_v_w) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  struct CGL_vec4 __pyx_t_1;
  __Pyx_RefNannySetupContext("__init__", 0);

  /* "cgl_wrapper.pyx":712
 * 
 *     def __init__(self, x: float = 0.0, y: float = 0.0, z: float = 0.0, w: float = 0.0):
 *         self.c_vec4 = CGL_vec4(x, y, z, w)             # <<<<<<<<<<<<<<
 * 
 *     def __repr__(self):
 */
  __pyx_t_1.x = __pyx_v_x;
  __pyx_t_1.y = __pyx_v_y;
  __pyx_t_1.z = __pyx_v_z;
  __pyx_t_1.w = __pyx_v_w;
  __pyx_v_self->c_vec4 = __pyx_t_1;

  /* "cgl_wrapper.pyx":711
 *     cdef CGL_vec4 c_vec4
 * 
 *     def __init__(self, x: float = 0.0, y: float = 0.0, z: float = 0.0, w: float = 0.0):             # <<<<<<<<<<<<<<
 *         self.c_vec4 = CGL_vec4(x, y, z, w)
 * 
 */

  /* function exit code */
  __pyx_r = 0;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cgl_wrapper.pyx":714
 *         self.c_vec4 = CGL_vec4(x, y, z, w)
 * 
 *     def __repr__(self):             # <<<<<<<<<<<<<<
 *         return f"vec4({self.x}, {self.y}, {self.z}, {self.w})"
 * 
 */

/* Python wrapper */
static PyObject *__pyx_pw_3cgl_4vec4_3__repr__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_3cgl_4vec4_3__repr__(PyObject *__pyx_v_self) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__repr__ (wrapper)", 0);
  __pyx_r = __pyx_pf_3cgl_4vec4_2__repr__(((struct __pyx_obj_3cgl_vec4 *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_3cgl_4vec4_2__repr__(struct __pyx_obj_3cgl_vec4 *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  Py_ssize_t __pyx_t_2;
  Py_UCS4 __pyx_t_3;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__repr__", 0);

  /* "cgl_wrapper.pyx":715
 * 
 *     def __repr__(self):
 *         return f"vec4({self.x}, {self.y}, {self.z}, {self.w})"             # <<<<<<<<<<<<<<
 * 
 *     def __str__(self):
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = PyTuple_New(9); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 715, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = 0;
  __pyx_t_3 = 127;
  __Pyx_INCREF(__pyx_kp_u_vec4);
  __pyx_t_2 += 5;
  __Pyx_GIVEREF(__pyx_kp_u_vec4);
  PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_kp_u_vec4);
  __pyx_t_4 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_x); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 715, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_5 = __Pyx_PyObject_FormatSimple(__pyx_t_4, __pyx_empty_unicode); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 715, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __pyx_t_3 = (__Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_5) > __pyx_t_3) ? __Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_5) : __pyx_t_3;
  __pyx_t_2 += __Pyx_PyUnicode_GET_LENGTH(__pyx_t_5);
  __Pyx_GIVEREF(__pyx_t_5);
  PyTuple_SET_ITEM(__pyx_t_1, 1, __pyx_t_5);
  __pyx_t_5 = 0;
  __Pyx_INCREF(__pyx_kp_u__3);
  __pyx_t_2 += 2;
  __Pyx_GIVEREF(__pyx_kp_u__3);
  PyTuple_SET_ITEM(__pyx_t_1, 2, __pyx_kp_u__3);
  __pyx_t_5 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_y); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 715, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __pyx_t_4 = __Pyx_PyObject_FormatSimple(__pyx_t_5, __pyx_empty_unicode); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 715, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
  __pyx_t_3 = (__Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_4) > __pyx_t_3) ? __Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_4) : __pyx_t_3;
  __pyx_t_2 += __Pyx_PyUnicode_GET_LENGTH(__pyx_t_4);
  __Pyx_GIVEREF(__pyx_t_4);
  PyTuple_SET_ITEM(__pyx_t_1, 3, __pyx_t_4);
  __pyx_t_4 = 0;
  __Pyx_INCREF(__pyx_kp_u__3);
  __pyx_t_2 += 2;
  __Pyx_GIVEREF(__pyx_kp_u__3);
  PyTuple_SET_ITEM(__pyx_t_1, 4, __pyx_kp_u__3);
  __pyx_t_4 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_z); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 715, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_5 = __Pyx_PyObject_FormatSimple(__pyx_t_4, __pyx_empty_unicode); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 715, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __pyx_t_3 = (__Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_5) > __pyx_t_3) ? __Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_5) : __pyx_t_3;
  __pyx_t_2 += __Pyx_PyUnicode_GET_LENGTH(__pyx_t_5);
  __Pyx_GIVEREF(__pyx_t_5);
  PyTuple_SET_ITEM(__pyx_t_1, 5, __pyx_t_5);
  __pyx_t_5 = 0;
  __Pyx_INCREF(__pyx_kp_u__3);
  __pyx_t_2 += 2;
  __Pyx_GIVEREF(__pyx_kp_u__3);
  PyTuple_SET_ITEM(__pyx_t_1, 6, __pyx_kp_u__3);
  __pyx_t_5 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_w); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 715, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __pyx_t_4 = __Pyx_PyObject_FormatSimple(__pyx_t_5, __pyx_empty_unicode); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 715, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
  __pyx_t_3 = (__Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_4) > __pyx_t_3) ? __Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_4) : __pyx_t_3;
  __pyx_t_2 += __Pyx_PyUnicode_GET_LENGTH(__pyx_t_4);
  __Pyx_GIVEREF(__pyx_t_4);
  PyTuple_SET_ITEM(__pyx_t_1, 7, __pyx_t_4);
  __pyx_t_4 = 0;
  __Pyx_INCREF(__pyx_kp_u__4);
  __pyx_t_2 += 1;
  __Pyx_GIVEREF(__pyx_kp_u__4);
  PyTuple_SET_ITEM(__pyx_t_1, 8, __pyx_kp_u__4);
  __pyx_t_4 = __Pyx_PyUnicode_Join(__pyx_t_1, 9, __pyx_t_2, __pyx_t_3); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 715, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_r = __pyx_t_4;
  __pyx_t_4 = 0;
  goto __pyx_L0;

  /* "cgl_wrapper.pyx":714
 *         self.c_vec4 = CGL_vec4(x, y, z, w)
 * 
 *     def __repr__(self):             # <<<<<<<<<<<<<<
 *         return f"vec4({self.x}, {self.y}, {self.z}, {self.w})"
 * 
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("cgl.vec4.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cgl_wrapper.pyx":717
 *         return f"vec4({self.x}, {self.y}, {self.z}, {self.w})"
 * 
 *     def __str__(self):             # <<<<<<<<<<<<<<
 *         return f"vec4({self.x}, {self.y}, {self.z}, {self.w})"
 * 
 */

/* Python wrapper */
static PyObject *__pyx_pw_3cgl_4vec4_5__str__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_3cgl_4vec4_5__str__(PyObject *__pyx_v_self) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__str__ (wrapper)", 0);
  __pyx_r = __pyx_pf_3cgl_4vec4_4__str__(((struct __pyx_obj_3cgl_vec4 *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_3cgl_4vec4_4__str__(struct __pyx_obj_3cgl_vec4 *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  Py_ssize_t __pyx_t_2;
  Py_UCS4 __pyx_t_3;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__str__", 0);

  /* "cgl_wrapper.pyx":718
 * 
 *     def __str__(self):
 *         return f"vec4({self.x}, {self.y}, {self.z}, {self.w})"             # <<<<<<<<<<<<<<
 * 
 *     def __bytes__(self):
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = PyTuple_New(9); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 718, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = 0;
  __pyx_t_3 = 127;
  __Pyx_INCREF(__pyx_kp_u_vec4);
  __pyx_t_2 += 5;
  __Pyx_GIVEREF(__pyx_kp_u_vec4);
  PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_kp_u_vec4);
  __pyx_t_4 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_x); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 718, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_5 = __Pyx_PyObject_FormatSimple(__pyx_t_4, __pyx_empty_unicode); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 718, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __pyx_t_3 = (__Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_5) > __pyx_t_3) ? __Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_5) : __pyx_t_3;
  __pyx_t_2 += __Pyx_PyUnicode_GET_LENGTH(__pyx_t_5);
  __Pyx_GIVEREF(__pyx_t_5);
  PyTuple_SET_ITEM(__pyx_t_1, 1, __pyx_t_5);
  __pyx_t_5 = 0;
  __Pyx_INCREF(__pyx_kp_u__3);
  __pyx_t_2 += 2;
  __Pyx_GIVEREF(__pyx_kp_u__3);
  PyTuple_SET_ITEM(__pyx_t_1, 2, __pyx_kp_u__3);
  __pyx_t_5 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_y); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 718, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __pyx_t_4 = __Pyx_PyObject_FormatSimple(__pyx_t_5, __pyx_empty_unicode); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 718, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
  __pyx_t_3 = (__Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_4) > __pyx_t_3) ? __Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_4) : __pyx_t_3;
  __pyx_t_2 += __Pyx_PyUnicode_GET_LENGTH(__pyx_t_4);
  __Pyx_GIVEREF(__pyx_t_4);
  PyTuple_SET_ITEM(__pyx_t_1, 3, __pyx_t_4);
  __pyx_t_4 = 0;
  __Pyx_INCREF(__pyx_kp_u__3);
  __pyx_t_2 += 2;
  __Pyx_GIVEREF(__pyx_kp_u__3);
  PyTuple_SET_ITEM(__pyx_t_1, 4, __pyx_kp_u__3);
  __pyx_t_4 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_z); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 718, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_5 = __Pyx_PyObject_FormatSimple(__pyx_t_4, __pyx_empty_unicode); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 718, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __pyx_t_3 = (__Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_5) > __pyx_t_3) ? __Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_5) : __pyx_t_3;
  __pyx_t_2 += __Pyx_PyUnicode_GET_LENGTH(__pyx_t_5);
  __Pyx_GIVEREF(__pyx_t_5);
  PyTuple_SET_ITEM(__pyx_t_1, 5, __pyx_t_5);
  __pyx_t_5 = 0;
  __Pyx_INCREF(__pyx_kp_u__3);
  __pyx_t_2 += 2;
  __Pyx_GIVEREF(__pyx_kp_u__3);
  PyTuple_SET_ITEM(__pyx_t_1, 6, __pyx_kp_u__3);
  __pyx_t_5 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_w); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 718, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __pyx_t_4 = __Pyx_PyObject_FormatSimple(__pyx_t_5, __pyx_empty_unicode); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 718, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
  __pyx_t_3 = (__Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_4) > __pyx_t_3) ? __Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_4) : __pyx_t_3;
  __pyx_t_2 += __Pyx_PyUnicode_GET_LENGTH(__pyx_t_4);
  __Pyx_GIVEREF(__pyx_t_4);
  PyTuple_SET_ITEM(__pyx_t_1, 7, __pyx_t_4);
  __pyx_t_4 = 0;
  __Pyx_INCREF(__pyx_kp_u__4);
  __pyx_t_2 += 1;
  __Pyx_GIVEREF(__pyx_kp_u__4);
  PyTuple_SET_ITEM(__pyx_t_1, 8, __pyx_kp_u__4);
  __pyx_t_4 = __Pyx_PyUnicode_Join(__pyx_t_1, 9, __pyx_t_2, __pyx_t_3); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 718, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_r = __pyx_t_4;
  __pyx_t_4 = 0;
  goto __pyx_L0;

  /* "cgl_wrapper.pyx":717
 *         return f"vec4({self.x}, {self.y}, {self.z}, {self.w})"
 * 
 *     def __str__(self):             # <<<<<<<<<<<<<<
 *         return f"vec4({self.x}, {self.y}, {self.z}, {self.w})"
 * 
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("cgl.vec4.__str__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cgl_wrapper.pyx":720
 *         return f"vec4({self.x}, {self.y}, {self.z}, {self.w})"
 * 
 *     def __bytes__(self):             # <<<<<<<<<<<<<<
 *         return bytes(self.c_vec4)
 * 
 */

/* Python wrapper */
static PyObject *__pyx_pw_3cgl_4vec4_7__bytes__(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/
static PyObject *__pyx_pw_3cgl_4vec4_7__bytes__(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__bytes__ (wrapper)", 0);
  __pyx_r = __pyx_pf_3cgl_4vec4_6__bytes__(((struct __pyx_obj_3cgl_vec4 *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_3cgl_4vec4_6__bytes__(struct __pyx_obj_3cgl_vec4 *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__bytes__", 0);

  /* "cgl_wrapper.pyx":721
 * 
 *     def __bytes__(self):
 *         return bytes(self.c_vec4)             # <<<<<<<<<<<<<<
 * 
 *     def __len__(self):
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __pyx_convert__to_py_struct__CGL_vec4(__pyx_v_self->c_vec4); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 721, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = __Pyx_PyObject_CallOneArg(((PyObject *)(&PyBytes_Type)), __pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 721, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_r = __pyx_t_2;
  __pyx_t_2 = 0;
  goto __pyx_L0;

  /* "cgl_wrapper.pyx":720
 *         return f"vec4({self.x}, {self.y}, {self.z}, {self.w})"
 * 
 *     def __bytes__(self):             # <<<<<<<<<<<<<<
 *         return bytes(self.c_vec4)
 * 
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("cgl.vec4.__bytes__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cgl_wrapper.pyx":723
 *         return bytes(self.c_vec4)
 * 
 *     def __len__(self):             # <<<<<<<<<<<<<<
 *         return 4
 * 
 */

/* Python wrapper */
static Py_ssize_t __pyx_pw_3cgl_4vec4_9__len__(PyObject *__pyx_v_self); /*proto*/
static Py_ssize_t __pyx_pw_3cgl_4vec4_9__len__(PyObject *__pyx_v_self) {
  Py_ssize_t __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__len__ (wrapper)", 0);
  __pyx_r = __pyx_pf_3cgl_4vec4_8__len__(((struct __pyx_obj_3cgl_vec4 *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static Py_ssize_t __pyx_pf_3cgl_4vec4_8__len__(CYTHON_UNUSED struct __pyx_obj_3cgl_vec4 *__pyx_v_self) {
  Py_ssize_t __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__len__", 0);

  /* "cgl_wrapper.pyx":724
 * 
 *     def __len__(self):
 *         return 4             # <<<<<<<<<<<<<<
 * 
 *     def __getitem__(self, index: int):
 */
  __pyx_r = 4;
  goto __pyx_L0;

  /* "cgl_wrapper.pyx":723
 *         return bytes(self.c_vec4)
 * 
 *     def __len__(self):             # <<<<<<<<<<<<<<
 *         return 4
 * 
 */

  /* function exit code */
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cgl_wrapper.pyx":726
 *         return 4
 * 
 *     def __getitem__(self, index: int):             # <<<<<<<<<<<<<<
 *         if index == 0:
 *             return self.c_vec4.x
 */

/* Python wrapper */
static PyObject *__pyx_pw_3cgl_4vec4_11__getitem__(PyObject *__pyx_v_self, PyObject *__pyx_v_index); /*proto*/
static PyObject *__pyx_pw_3cgl_4vec4_11__getitem__(PyObject *__pyx_v_self, PyObject *__pyx_v_index) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__getitem__ (wrapper)", 0);
  __pyx_r = __pyx_pf_3cgl_4vec4_10__getitem__(((struct __pyx_obj_3cgl_vec4 *)__pyx_v_self), ((PyObject *)__pyx_v_index));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_3cgl_4vec4_10__getitem__(struct __pyx_obj_3cgl_vec4 *__pyx_v_self, PyObject *__pyx_v_index) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  int __pyx_t_2;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__getitem__", 0);

  /* "cgl_wrapper.pyx":727
 * 
 *     def __getitem__(self, index: int):
 *         if index == 0:             # <<<<<<<<<<<<<<
 *             return self.c_vec4.x
 *         elif index == 1:
 */
  __pyx_t_1 = __Pyx_PyInt_EqObjC(__pyx_v_index, __pyx_int_0, 0, 0); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 727, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely(__pyx_t_2 < 0)) __PYX_ERR(0, 727, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  if (__pyx_t_2) {

    /* "cgl_wrapper.pyx":728
 *     def __getitem__(self, index: int):
 *         if index == 0:
 *             return self.c_vec4.x             # <<<<<<<<<<<<<<
 *         elif index == 1:
 *             return self.c_vec4.y
 */
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_1 = PyFloat_FromDouble(__pyx_v_self->c_vec4.x); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 728, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_r = __pyx_t_1;
    __pyx_t_1 = 0;
    goto __pyx_L0;

    /* "cgl_wrapper.pyx":727
 * 
 *     def __getitem__(self, index: int):
 *         if index == 0:             # <<<<<<<<<<<<<<
 *             return self.c_vec4.x
 *         elif index == 1:
 */
  }

  /* "cgl_wrapper.pyx":729
 *         if index == 0:
 *             return self.c_vec4.x
 *         elif index == 1:             # <<<<<<<<<<<<<<
 *             return self.c_vec4.y
 *         elif index == 2:
 */
  __pyx_t_1 = __Pyx_PyInt_EqObjC(__pyx_v_index, __pyx_int_1, 1, 0); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 729, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely(__pyx_t_2 < 0)) __PYX_ERR(0, 729, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  if (__pyx_t_2) {

    /* "cgl_wrapper.pyx":730
 *             return self.c_vec4.x
 *         elif index == 1:
 *             return self.c_vec4.y             # <<<<<<<<<<<<<<
 *         elif index == 2:
 *             return self.c_vec4.z
 */
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_1 = PyFloat_FromDouble(__pyx_v_self->c_vec4.y); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 730, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_r = __pyx_t_1;
    __pyx_t_1 = 0;
    goto __pyx_L0;

    /* "cgl_wrapper.pyx":729
 *         if index == 0:
 *             return self.c_vec4.x
 *         elif index == 1:             # <<<<<<<<<<<<<<
 *             return self.c_vec4.y
 *         elif index == 2:
 */
  }

  /* "cgl_wrapper.pyx":731
 *         elif index == 1:
 *             return self.c_vec4.y
 *         elif index == 2:             # <<<<<<<<<<<<<<
 *             return self.c_vec4.z
 *         elif index == 3:
 */
  __pyx_t_1 = __Pyx_PyInt_EqObjC(__pyx_v_index, __pyx_int_2, 2, 0); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 731, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely(__pyx_t_2 < 0)) __PYX_ERR(0, 731, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  if (__pyx_t_2) {

    /* "cgl_wrapper.pyx":732
 *             return self.c_vec4.y
 *         elif index == 2:
 *             return self.c_vec4.z             # <<<<<<<<<<<<<<
 *         elif index == 3:
 *             return self.c_vec4.w
 */
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_1 = PyFloat_FromDouble(__pyx_v_self->c_vec4.z); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 732, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_r = __pyx_t_1;
    __pyx_t_1 = 0;
    goto __pyx_L0;

    /* "cgl_wrapper.pyx":731
 *         elif index == 1:
 *             return self.c_vec4.y
 *         elif index == 2:             # <<<<<<<<<<<<<<
 *             return self.c_vec4.z
 *         elif index == 3:
 */
  }

  /* "cgl_wrapper.pyx":733
 *         elif index == 2:
 *             return self.c_vec4.z
 *         elif index == 3:             # <<<<<<<<<<<<<<
 *             return self.c_vec4.w
 *         else:
 */
  __pyx_t_1 = __Pyx_PyInt_EqObjC(__pyx_v_index, __pyx_int_3, 3, 0); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 733, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely(__pyx_t_2 < 0)) __PYX_ERR(0, 733, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  if (likely(__pyx_t_2)) {

    /* "cgl_wrapper.pyx":734
 *             return self.c_vec4.z
 *         elif index == 3:
 *             return self.c_vec4.w             # <<<<<<<<<<<<<<
 *         else:
 *             raise IndexError()
 */
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_1 = PyFloat_FromDouble(__pyx_v_self->c_vec4.w); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 734, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_r = __pyx_t_1;
    __pyx_t_1 = 0;
    goto __pyx_L0;

    /* "cgl_wrapper.pyx":733
 *         elif index == 2:
 *             return self.c_vec4.z
 *         elif index == 3:             # <<<<<<<<<<<<<<
 *             return self.c_vec4.w
 *         else:
 */
  }

  /* "cgl_wrapper.pyx":736
 *             return self.c_vec4.w
 *         else:
 *             raise IndexError()             # <<<<<<<<<<<<<<
 * 
 *     def __setitem__(self, index: int, value: int):
 */
  /*else*/ {
    __pyx_t_1 = __Pyx_PyObject_CallNoArg(__pyx_builtin_IndexError); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 736, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __Pyx_Raise(__pyx_t_1, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    __PYX_ERR(0, 736, __pyx_L1_error)
  }

  /* "cgl_wrapper.pyx":726
 *         return 4
 * 
 *     def __getitem__(self, index: int):             # <<<<<<<<<<<<<<
 *         if index == 0:
 *             return self.c_vec4.x
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cgl.vec4.__getitem__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cgl_wrapper.pyx":738
 *             raise IndexError()
 * 
 *     def __setitem__(self, index: int, value: int):             # <<<<<<<<<<<<<<
 *         if index == 0:
 *             self.c_vec4.x = value
 */

/* Python wrapper */
static int __pyx_pw_3cgl_4vec4_13__setitem__(PyObject *__pyx_v_self, PyObject *__pyx_v_index, PyObject *__pyx_v_value); /*proto*/
static int __pyx_pw_3cgl_4vec4_13__setitem__(PyObject *__pyx_v_self, PyObject *__pyx_v_index, PyObject *__pyx_v_value) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__setitem__ (wrapper)", 0);
  __pyx_r = __pyx_pf_3cgl_4vec4_12__setitem__(((struct __pyx_obj_3cgl_vec4 *)__pyx_v_self), ((PyObject *)__pyx_v_index), ((PyObject *)__pyx_v_value));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_3cgl_4vec4_12__setitem__(struct __pyx_obj_3cgl_vec4 *__pyx_v_self, PyObject *__pyx_v_index, PyObject *__pyx_v_value) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  int __pyx_t_2;
  CGL_float __pyx_t_3;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__setitem__", 0);

  /* "cgl_wrapper.pyx":739
 * 
 *     def __setitem__(self, index: int, value: int):
 *         if index == 0:             # <<<<<<<<<<<<<<
 *             self.c_vec4.x = value
 *         elif index == 1:
 */
  __pyx_t_1 = __Pyx_PyInt_EqObjC(__pyx_v_index, __pyx_int_0, 0, 0); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 739, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely(__pyx_t_2 < 0)) __PYX_ERR(0, 739, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  if (__pyx_t_2) {

    /* "cgl_wrapper.pyx":740
 *     def __setitem__(self, index: int, value: int):
 *         if index == 0:
 *             self.c_vec4.x = value             # <<<<<<<<<<<<<<
 *         elif index == 1:
 *             self.c_vec4.y = value
 */
    __pyx_t_3 = __pyx_PyFloat_AsFloat(__pyx_v_value); if (unlikely((__pyx_t_3 == ((CGL_float)-1)) && PyErr_Occurred())) __PYX_ERR(0, 740, __pyx_L1_error)
    __pyx_v_self->c_vec4.x = __pyx_t_3;

    /* "cgl_wrapper.pyx":739
 * 
 *     def __setitem__(self, index: int, value: int):
 *         if index == 0:             # <<<<<<<<<<<<<<
 *             self.c_vec4.x = value
 *         elif index == 1:
 */
    goto __pyx_L3;
  }

  /* "cgl_wrapper.pyx":741
 *         if index == 0:
 *             self.c_vec4.x = value
 *         elif index == 1:             # <<<<<<<<<<<<<<
 *             self.c_vec4.y = value
 *         elif index == 2:
 */
  __pyx_t_1 = __Pyx_PyInt_EqObjC(__pyx_v_index, __pyx_int_1, 1, 0); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 741, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely(__pyx_t_2 < 0)) __PYX_ERR(0, 741, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  if (__pyx_t_2) {

    /* "cgl_wrapper.pyx":742
 *             self.c_vec4.x = value
 *         elif index == 1:
 *             self.c_vec4.y = value             # <<<<<<<<<<<<<<
 *         elif index == 2:
 *             self.c_vec4.z = value
 */
    __pyx_t_3 = __pyx_PyFloat_AsFloat(__pyx_v_value); if (unlikely((__pyx_t_3 == ((CGL_float)-1)) && PyErr_Occurred())) __PYX_ERR(0, 742, __pyx_L1_error)
    __pyx_v_self->c_vec4.y = __pyx_t_3;

    /* "cgl_wrapper.pyx":741
 *         if index == 0:
 *             self.c_vec4.x = value
 *         elif index == 1:             # <<<<<<<<<<<<<<
 *             self.c_vec4.y = value
 *         elif index == 2:
 */
    goto __pyx_L3;
  }

  /* "cgl_wrapper.pyx":743
 *         elif index == 1:
 *             self.c_vec4.y = value
 *         elif index == 2:             # <<<<<<<<<<<<<<
 *             self.c_vec4.z = value
 *         elif index == 3:
 */
  __pyx_t_1 = __Pyx_PyInt_EqObjC(__pyx_v_index, __pyx_int_2, 2, 0); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 743, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely(__pyx_t_2 < 0)) __PYX_ERR(0, 743, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  if (__pyx_t_2) {

    /* "cgl_wrapper.pyx":744
 *             self.c_vec4.y = value
 *         elif index == 2:
 *             self.c_vec4.z = value             # <<<<<<<<<<<<<<
 *         elif index == 3:
 *             self.c_vec4.w = value
 */
    __pyx_t_3 = __pyx_PyFloat_AsFloat(__pyx_v_value); if (unlikely((__pyx_t_3 == ((CGL_float)-1)) && PyErr_Occurred())) __PYX_ERR(0, 744, __pyx_L1_error)
    __pyx_v_self->c_vec4.z = __pyx_t_3;

    /* "cgl_wrapper.pyx":743
 *         elif index == 1:
 *             self.c_vec4.y = value
 *         elif index == 2:             # <<<<<<<<<<<<<<
 *             self.c_vec4.z = value
 *         elif index == 3:
 */
    goto __pyx_L3;
  }

  /* "cgl_wrapper.pyx":745
 *         elif index == 2:
 *             self.c_vec4.z = value
 *         elif index == 3:             # <<<<<<<<<<<<<<
 *             self.c_vec4.w = value
 *         else:
 */
  __pyx_t_1 = __Pyx_PyInt_EqObjC(__pyx_v_index, __pyx_int_3, 3, 0); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 745, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely(__pyx_t_2 < 0)) __PYX_ERR(0, 745, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  if (likely(__pyx_t_2)) {

    /* "cgl_wrapper.pyx":746
 *             self.c_vec4.z = value
 *         elif index == 3:
 *             self.c_vec4.w = value             # <<<<<<<<<<<<<<
 *         else:
 *             raise IndexError()
 */
    __pyx_t_3 = __pyx_PyFloat_AsFloat(__pyx_v_value); if (unlikely((__pyx_t_3 == ((CGL_float)-1)) && PyErr_Occurred())) __PYX_ERR(0, 746, __pyx_L1_error)
    __pyx_v_self->c_vec4.w = __pyx_t_3;

    /* "cgl_wrapper.pyx":745
 *         elif index == 2:
 *             self.c_vec4.z = value
 *         elif index == 3:             # <<<<<<<<<<<<<<
 *             self.c_vec4.w = value
 *         else:
 */
    goto __pyx_L3;
  }

  /* "cgl_wrapper.pyx":748
 *             self.c_vec4.w = value
 *         else:
 *             raise IndexError()             # <<<<<<<<<<<<<<
 * 
 *     def __eq__(self, other: vec4):
 */
  /*else*/ {
    __pyx_t_1 = __Pyx_PyObject_CallNoArg(__pyx_builtin_IndexError); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 748, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __Pyx_Raise(__pyx_t_1, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    __PYX_ERR(0, 748, __pyx_L1_error)
  }
  __pyx_L3:;

  /* "cgl_wrapper.pyx":738
 *             raise IndexError()
 * 
 *     def __setitem__(self, index: int, value: int):             # <<<<<<<<<<<<<<
 *         if index == 0:
 *             self.c_vec4.x = value
 */

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cgl.vec4.__setitem__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cgl_wrapper.pyx":750
 *             raise IndexError()
 * 
 *     def __eq__(self, other: vec4):             # <<<<<<<<<<<<<<
 *         return self.c_vec4.x == other.c_vec4.x and self.c_vec4.y == other.c_vec4.y and self.c_vec4.z == other.c_vec4.z and self.c_vec4.w == other.c_vec4.w
 * 
 */

/* Python wrapper */
static PyObject *__pyx_pw_3cgl_4vec4_15__eq__(PyObject *__pyx_v_self, PyObject *__pyx_v_other); /*proto*/
static PyObject *__pyx_pw_3cgl_4vec4_15__eq__(PyObject *__pyx_v_self, PyObject *__pyx_v_other) {
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__eq__ (wrapper)", 0);
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_other), __pyx_ptype_3cgl_vec4, 1, "other", 0))) __PYX_ERR(0, 750, __pyx_L1_error)
  __pyx_r = __pyx_pf_3cgl_4vec4_14__eq__(((struct __pyx_obj_3cgl_vec4 *)__pyx_v_self), ((struct __pyx_obj_3cgl_vec4 *)__pyx_v_other));

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_3cgl_4vec4_14__eq__(struct __pyx_obj_3cgl_vec4 *__pyx_v_self, struct __pyx_obj_3cgl_vec4 *__pyx_v_other) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__eq__", 0);

  /* "cgl_wrapper.pyx":751
 * 
 *     def __eq__(self, other: vec4):
 *         return self.c_vec4.x == other.c_vec4.x and self.c_vec4.y == other.c_vec4.y and self.c_vec4.z == other.c_vec4.z and self.c_vec4.w == other.c_vec4.w             # <<<<<<<<<<<<<<
 * 
 *     def __ne__(self, other: vec4):
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_2 = (__pyx_v_self->c_vec4.x == __pyx_v_other->c_vec4.x);
  if (__pyx_t_2) {
  } else {
    __pyx_t_3 = __Pyx_PyBool_FromLong(__pyx_t_2); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 751, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_1 = __pyx_t_3;
    __pyx_t_3 = 0;
    goto __pyx_L3_bool_binop_done;
  }
  __pyx_t_2 = (__pyx_v_self->c_vec4.y == __pyx_v_other->c_vec4.y);
  if (__pyx_t_2) {
  } else {
    __pyx_t_3 = __Pyx_PyBool_FromLong(__pyx_t_2); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 751, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_1 = __pyx_t_3;
    __pyx_t_3 = 0;
    goto __pyx_L3_bool_binop_done;
  }
  __pyx_t_2 = (__pyx_v_self->c_vec4.z == __pyx_v_other->c_vec4.z);
  if (__pyx_t_2) {
  } else {
    __pyx_t_3 = __Pyx_PyBool_FromLong(__pyx_t_2); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 751, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_1 = __pyx_t_3;
    __pyx_t_3 = 0;
    goto __pyx_L3_bool_binop_done;
  }
  __pyx_t_2 = (__pyx_v_self->c_vec4.w == __pyx_v_other->c_vec4.w);
  __pyx_t_3 = __Pyx_PyBool_FromLong(__pyx_t_2); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 751, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_1 = __pyx_t_3;
  __pyx_t_3 = 0;
  __pyx_L3_bool_binop_done:;
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cgl_wrapper.pyx":750
 *             raise IndexError()
 * 
 *     def __eq__(self, other: vec4):             # <<<<<<<<<<<<<<
 *         return self.c_vec4.x == other.c_vec4.x and self.c_vec4.y == other.c_vec4.y and self.c_vec4.z == other.c_vec4.z and self.c_vec4.w == other.c_vec4.w
 * 
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_AddTraceback("cgl.vec4.__eq__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cgl_wrapper.pyx":753
 *         return self.c_vec4.x == other.c_vec4.x and self.c_vec4.y == other.c_vec4.y and self.c_vec4.z == other.c_vec4.z and self.c_vec4.w == other.c_vec4.w
 * 
 *     def __ne__(self, other: vec4):             # <<<<<<<<<<<<<<
 *         return self.c_vec4.x != other.c_vec4.x or self.c_vec4.y != other.c_vec4.y or self.c_vec4.z != other.c_vec4.z or self.c_vec4.w != other.c_vec4.w
 * 
 */

/* Python wrapper */
static PyObject *__pyx_pw_3cgl_4vec4_17__ne__(PyObject *__pyx_v_self, PyObject *__pyx_v_other); /*proto*/
static PyObject *__pyx_pw_3cgl_4vec4_17__ne__(PyObject *__pyx_v_self, PyObject *__pyx_v_other) {
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__ne__ (wrapper)", 0);
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_other), __pyx_ptype_3cgl_vec4, 1, "other", 0))) __PYX_ERR(0, 753, __pyx_L1_error)
  __pyx_r = __pyx_pf_3cgl_4vec4_16__ne__(((struct __pyx_obj_3cgl_vec4 *)__pyx_v_self), ((struct __pyx_obj_3cgl_vec4 *)__pyx_v_other));

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_3cgl_4vec4_16__ne__(struct __pyx_obj_3cgl_vec4 *__pyx_v_self, struct __pyx_obj_3cgl_vec4 *__pyx_v_other) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__ne__", 0);

  /* "cgl_wrapper.pyx":754
 * 
 *     def __ne__(self, other: vec4):
 *         return self.c_vec4.x != other.c_vec4.x or self.c_vec4.y != other.c_vec4.y or self.c_vec4.z != other.c_vec4.z or self.c_vec4.w != other.c_vec4.w             # <<<<<<<<<<<<<<
 * 
 *     def __hash__(self):
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_2 = (__pyx_v_self->c_vec4.x != __pyx_v_other->c_vec4.x);
  if (!__pyx_t_2) {
  } else {
    __pyx_t_3 = __Pyx_PyBool_FromLong(__pyx_t_2); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 754, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_1 = __pyx_t_3;
    __pyx_t_3 = 0;
    goto __pyx_L3_bool_binop_done;
  }
  __pyx_t_2 = (__pyx_v_self->c_vec4.y != __pyx_v_other->c_vec4.y);
  if (!__pyx_t_2) {
  } else {
    __pyx_t_3 = __Pyx_PyBool_FromLong(__pyx_t_2); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 754, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_1 = __pyx_t_3;
    __pyx_t_3 = 0;
    goto __pyx_L3_bool_binop_done;
  }
  __pyx_t_2 = (__pyx_v_self->c_vec4.z != __pyx_v_other->c_vec4.z);
  if (!__pyx_t_2) {
  } else {
    __pyx_t_3 = __Pyx_PyBool_FromLong(__pyx_t_2); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 754, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_1 = __pyx_t_3;
    __pyx_t_3 = 0;
    goto __pyx_L3_bool_binop_done;
  }
  __pyx_t_2 = (__pyx_v_self->c_vec4.w != __pyx_v_other->c_vec4.w);
  __pyx_t_3 = __Pyx_PyBool_FromLong(__pyx_t_2); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 754, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_1 = __pyx_t_3;
  __pyx_t_3 = 0;
  __pyx_L3_bool_binop_done:;
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cgl_wrapper.pyx":753
 *         return self.c_vec4.x == other.c_vec4.x and self.c_vec4.y == other.c_vec4.y and self.c_vec4.z == other.c_vec4.z and self.c_vec4.w == other.c_vec4.w
 * 
 *     def __ne__(self, other: vec4):             # <<<<<<<<<<<<<<
 *         return self.c_vec4.x != other.c_vec4.x or self.c_vec4.y != other.c_vec4.y or self.c_vec4.z != other.c_vec4.z or self.c_vec4.w != other.c_vec4.w
 * 
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_AddTraceback("cgl.vec4.__ne__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cgl_wrapper.pyx":756
 *         return self.c_vec4.x != other.c_vec4.x or self.c_vec4.y != other.c_vec4.y or self.c_vec4.z != other.c_vec4.z or self.c_vec4.w != other.c_vec4.w
 * 
 *     def __hash__(self):             # <<<<<<<<<<<<<<
 *         return hash((self.c_vec4.x, self.c_vec4.y, self.c_vec4.z, self.c_vec4.w))
 * 
 */

/* Python wrapper */
static Py_hash_t __pyx_pw_3cgl_4vec4_19__hash__(PyObject *__pyx_v_self); /*proto*/
static Py_hash_t __pyx_pw_3cgl_4vec4_19__hash__(PyObject *__pyx_v_self) {
  Py_hash_t __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__hash__ (wrapper)", 0);
  __pyx_r = __pyx_pf_3cgl_4vec4_18__hash__(((struct __pyx_obj_3cgl_vec4 *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static Py_hash_t __pyx_pf_3cgl_4vec4_18__hash__(struct __pyx_obj_3cgl_vec4 *__pyx_v_self) {
  Py_hash_t __pyx_r;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  Py_hash_t __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__hash__", 0);

  /* "cgl_wrapper.pyx":757
 * 
 *     def __hash__(self):
 *         return hash((self.c_vec4.x, self.c_vec4.y, self.c_vec4.z, self.c_vec4.w))             # <<<<<<<<<<<<<<
 * 
 *     def __getattr__(self, name: str):
 */
  __pyx_t_1 = PyFloat_FromDouble(__pyx_v_self->c_vec4.x); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 757, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = PyFloat_FromDouble(__pyx_v_self->c_vec4.y); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 757, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = PyFloat_FromDouble(__pyx_v_self->c_vec4.z); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 757, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = PyFloat_FromDouble(__pyx_v_self->c_vec4.w); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 757, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_5 = PyTuple_New(4); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 757, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_GIVEREF(__pyx_t_1);
  PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_1);
  __Pyx_GIVEREF(__pyx_t_2);
  PyTuple_SET_ITEM(__pyx_t_5, 1, __pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_3);
  PyTuple_SET_ITEM(__pyx_t_5, 2, __pyx_t_3);
  __Pyx_GIVEREF(__pyx_t_4);
  PyTuple_SET_ITEM(__pyx_t_5, 3, __pyx_t_4);
  __pyx_t_1 = 0;
  __pyx_t_2 = 0;
  __pyx_t_3 = 0;
  __pyx_t_4 = 0;
  __pyx_t_6 = PyObject_Hash(__pyx_t_5); if (unlikely(__pyx_t_6 == ((Py_hash_t)-1))) __PYX_ERR(0, 757, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
  __pyx_r = __pyx_t_6;
  goto __pyx_L0;

  /* "cgl_wrapper.pyx":756
 *         return self.c_vec4.x != other.c_vec4.x or self.c_vec4.y != other.c_vec4.y or self.c_vec4.z != other.c_vec4.z or self.c_vec4.w != other.c_vec4.w
 * 
 *     def __hash__(self):             # <<<<<<<<<<<<<<
 *         return hash((self.c_vec4.x, self.c_vec4.y, self.c_vec4.z, self.c_vec4.w))
 * 
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("cgl.vec4.__hash__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  if (unlikely(__pyx_r == -1) && !PyErr_Occurred()) __pyx_r = -2;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cgl_wrapper.pyx":759
 *         return hash((self.c_vec4.x, self.c_vec4.y, self.c_vec4.z, self.c_vec4.w))
 * 
 *     def __getattr__(self, name: str):             # <<<<<<<<<<<<<<
 *         if name == "x":
 *             return self.c_vec4.x
 */

/* Python wrapper */
static PyObject *__pyx_pw_3cgl_4vec4_21__getattr__(PyObject *__pyx_v_self, PyObject *__pyx_v_name); /*proto*/
static PyObject *__pyx_pw_3cgl_4vec4_21__getattr__(PyObject *__pyx_v_self, PyObject *__pyx_v_name) {
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__getattr__ (wrapper)", 0);
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_name), (&PyString_Type), 1, "name", 1))) __PYX_ERR(0, 759, __pyx_L1_error)
  __pyx_r = __pyx_pf_3cgl_4vec4_20__getattr__(((struct __pyx_obj_3cgl_vec4 *)__pyx_v_self), ((PyObject*)__pyx_v_name));

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_3cgl_4vec4_20__getattr__(struct __pyx_obj_3cgl_vec4 *__pyx_v_self, PyObject *__pyx_v_name) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__getattr__", 0);

  /* "cgl_wrapper.pyx":760
 * 
 *     def __getattr__(self, name: str):
 *         if name == "x":             # <<<<<<<<<<<<<<
 *             return self.c_vec4.x
 *         elif name == "y":
 */
  __pyx_t_1 = (__Pyx_PyString_Equals(__pyx_v_name, __pyx_n_s_x, Py_EQ)); if (unlikely(__pyx_t_1 < 0)) __PYX_ERR(0, 760, __pyx_L1_error)
  __pyx_t_2 = (__pyx_t_1 != 0);
  if (__pyx_t_2) {

    /* "cgl_wrapper.pyx":761
 *     def __getattr__(self, name: str):
 *         if name == "x":
 *             return self.c_vec4.x             # <<<<<<<<<<<<<<
 *         elif name == "y":
 *             return self.c_vec4.y
 */
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_3 = PyFloat_FromDouble(__pyx_v_self->c_vec4.x); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 761, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_r = __pyx_t_3;
    __pyx_t_3 = 0;
    goto __pyx_L0;

    /* "cgl_wrapper.pyx":760
 * 
 *     def __getattr__(self, name: str):
 *         if name == "x":             # <<<<<<<<<<<<<<
 *             return self.c_vec4.x
 *         elif name == "y":
 */
  }

  /* "cgl_wrapper.pyx":762
 *         if name == "x":
 *             return self.c_vec4.x
 *         elif name == "y":             # <<<<<<<<<<<<<<
 *             return self.c_vec4.y
 *         elif name == "z":
 */
  __pyx_t_2 = (__Pyx_PyString_Equals(__pyx_v_name, __pyx_n_s_y, Py_EQ)); if (unlikely(__pyx_t_2 < 0)) __PYX_ERR(0, 762, __pyx_L1_error)
  __pyx_t_1 = (__pyx_t_2 != 0);
  if (__pyx_t_1) {

    /* "cgl_wrapper.pyx":763
 *             return self.c_vec4.x
 *         elif name == "y":
 *             return self.c_vec4.y             # <<<<<<<<<<<<<<
 *         elif name == "z":
 *             return self.c_vec4.z
 */
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_3 = PyFloat_FromDouble(__pyx_v_self->c_vec4.y); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 763, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_r = __pyx_t_3;
    __pyx_t_3 = 0;
    goto __pyx_L0;

    /* "cgl_wrapper.pyx":762
 *         if name == "x":
 *             return self.c_vec4.x
 *         elif name == "y":             # <<<<<<<<<<<<<<
 *             return self.c_vec4.y
 *         elif name == "z":
 */
  }

  /* "cgl_wrapper.pyx":764
 *         elif name == "y":
 *             return self.c_vec4.y
 *         elif name == "z":             # <<<<<<<<<<<<<<
 *             return self.c_vec4.z
 *         elif name == "w":
 */
  __pyx_t_1 = (__Pyx_PyString_Equals(__pyx_v_name, __pyx_n_s_z, Py_EQ)); if (unlikely(__pyx_t_1 < 0)) __PYX_ERR(0, 764, __pyx_L1_error)
  __pyx_t_2 = (__pyx_t_1 != 0);
  if (__pyx_t_2) {

    /* "cgl_wrapper.pyx":765
 *             return self.c_vec4.y
 *         elif name == "z":
 *             return self.c_vec4.z             # <<<<<<<<<<<<<<
 *         elif name == "w":
 *             return self.c_vec4.w
 */
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_3 = PyFloat_FromDouble(__pyx_v_self->c_vec4.z); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 765, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_r = __pyx_t_3;
    __pyx_t_3 = 0;
    goto __pyx_L0;

    /* "cgl_wrapper.pyx":764
 *         elif name == "y":
 *             return self.c_vec4.y
 *         elif name == "z":             # <<<<<<<<<<<<<<
 *             return self.c_vec4.z
 *         elif name == "w":
 */
  }

  /* "cgl_wrapper.pyx":766
 *         elif name == "z":
 *             return self.c_vec4.z
 *         elif name == "w":             # <<<<<<<<<<<<<<
 *             return self.c_vec4.w
 *         else:
 */
  __pyx_t_2 = (__Pyx_PyString_Equals(__pyx_v_name, __pyx_n_s_w, Py_EQ)); if (unlikely(__pyx_t_2 < 0)) __PYX_ERR(0, 766, __pyx_L1_error)
  __pyx_t_1 = (__pyx_t_2 != 0);
  if (likely(__pyx_t_1)) {

    /* "cgl_wrapper.pyx":767
 *             return self.c_vec4.z
 *         elif name == "w":
 *             return self.c_vec4.w             # <<<<<<<<<<<<<<
 *         else:
 *             raise AttributeError()
 */
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_3 = PyFloat_FromDouble(__pyx_v_self->c_vec4.w); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 767, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_r = __pyx_t_3;
    __pyx_t_3 = 0;
    goto __pyx_L0;

    /* "cgl_wrapper.pyx":766
 *         elif name == "z":
 *             return self.c_vec4.z
 *         elif name == "w":             # <<<<<<<<<<<<<<
 *             return self.c_vec4.w
 *         else:
 */
  }

  /* "cgl_wrapper.pyx":769
 *             return self.c_vec4.w
 *         else:
 *             raise AttributeError()             # <<<<<<<<<<<<<<
 * 
 *     def __setattr__(self, name: str, value):
 */
  /*else*/ {
    __pyx_t_3 = __Pyx_PyObject_CallNoArg(__pyx_builtin_AttributeError); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 769, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_Raise(__pyx_t_3, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __PYX_ERR(0, 769, __pyx_L1_error)
  }

  /* "cgl_wrapper.pyx":759
 *         return hash((self.c_vec4.x, self.c_vec4.y, self.c_vec4.z, self.c_vec4.w))
 * 
 *     def __getattr__(self, name: str):             # <<<<<<<<<<<<<<
 *         if name == "x":
 *             return self.c_vec4.x
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_AddTraceback("cgl.vec4.__getattr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cgl_wrapper.pyx":771
 *             raise AttributeError()
 * 
 *     def __setattr__(self, name: str, value):             # <<<<<<<<<<<<<<
 *         if name == "x":
 *             self.c_vec4.x = value
 */

/* Python wrapper */
static int __pyx_pw_3cgl_4vec4_23__setattr__(PyObject *__pyx_v_self, PyObject *__pyx_v_name, PyObject *__pyx_v_value); /*proto*/
static int __pyx_pw_3cgl_4vec4_23__setattr__(PyObject *__pyx_v_self, PyObject *__pyx_v_name, PyObject *__pyx_v_value) {
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__setattr__ (wrapper)", 0);
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_name), (&PyString_Type), 1, "name", 1))) __PYX_ERR(0, 771, __pyx_L1_error)
  __pyx_r = __pyx_pf_3cgl_4vec4_22__setattr__(((struct __pyx_obj_3cgl_vec4 *)__pyx_v_self), ((PyObject*)__pyx_v_name), ((PyObject *)__pyx_v_value));

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_3cgl_4vec4_22__setattr__(struct __pyx_obj_3cgl_vec4 *__pyx_v_self, PyObject *__pyx_v_name, PyObject *__pyx_v_value) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  CGL_float __pyx_t_3;
  PyObject *__pyx_t_4 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__setattr__", 0);

  /* "cgl_wrapper.pyx":772
 * 
 *     def __setattr__(self, name: str, value):
 *         if name == "x":             # <<<<<<<<<<<<<<
 *             self.c_vec4.x = value
 *         elif name == "y":
 */
  __pyx_t_1 = (__Pyx_PyString_Equals(__pyx_v_name, __pyx_n_s_x, Py_EQ)); if (unlikely(__pyx_t_1 < 0)) __PYX_ERR(0, 772, __pyx_L1_error)
  __pyx_t_2 = (__pyx_t_1 != 0);
  if (__pyx_t_2) {

    /* "cgl_wrapper.pyx":773
 *     def __setattr__(self, name: str, value):
 *         if name == "x":
 *             self.c_vec4.x = value             # <<<<<<<<<<<<<<
 *         elif name == "y":
 *             self.c_vec4.y = value
 */
    __pyx_t_3 = __pyx_PyFloat_AsFloat(__pyx_v_value); if (unlikely((__pyx_t_3 == ((CGL_float)-1)) && PyErr_Occurred())) __PYX_ERR(0, 773, __pyx_L1_error)
    __pyx_v_self->c_vec4.x = __pyx_t_3;

    /* "cgl_wrapper.pyx":772
 * 
 *     def __setattr__(self, name: str, value):
 *         if name == "x":             # <<<<<<<<<<<<<<
 *             self.c_vec4.x = value
 *         elif name == "y":
 */
    goto __pyx_L3;
  }

  /* "cgl_wrapper.pyx":774
 *         if name == "x":
 *             self.c_vec4.x = value
 *         elif name == "y":             # <<<<<<<<<<<<<<
 *             self.c_vec4.y = value
 *         elif name == "z":
 */
  __pyx_t_2 = (__Pyx_PyString_Equals(__pyx_v_name, __pyx_n_s_y, Py_EQ)); if (unlikely(__pyx_t_2 < 0)) __PYX_ERR(0, 774, __pyx_L1_error)
  __pyx_t_1 = (__pyx_t_2 != 0);
  if (__pyx_t_1) {

    /* "cgl_wrapper.pyx":775
 *             self.c_vec4.x = value
 *         elif name == "y":
 *             self.c_vec4.y = value             # <<<<<<<<<<<<<<
 *         elif name == "z":
 *             self.c_vec4.z = value
 */
    __pyx_t_3 = __pyx_PyFloat_AsFloat(__pyx_v_value); if (unlikely((__pyx_t_3 == ((CGL_float)-1)) && PyErr_Occurred())) __PYX_ERR(0, 775, __pyx_L1_error)
    __pyx_v_self->c_vec4.y = __pyx_t_3;

    /* "cgl_wrapper.pyx":774
 *         if name == "x":
 *             self.c_vec4.x = value
 *         elif name == "y":             # <<<<<<<<<<<<<<
 *             self.c_vec4.y = value
 *         elif name == "z":
 */
    goto __pyx_L3;
  }

  /* "cgl_wrapper.pyx":776
 *         elif name == "y":
 *             self.c_vec4.y = value
 *         elif name == "z":             # <<<<<<<<<<<<<<
 *             self.c_vec4.z = value
 *         elif name == "w":
 */
  __pyx_t_1 = (__Pyx_PyString_Equals(__pyx_v_name, __pyx_n_s_z, Py_EQ)); if (unlikely(__pyx_t_1 < 0)) __PYX_ERR(0, 776, __pyx_L1_error)
  __pyx_t_2 = (__pyx_t_1 != 0);
  if (__pyx_t_2) {

    /* "cgl_wrapper.pyx":777
 *             self.c_vec4.y = value
 *         elif name == "z":
 *             self.c_vec4.z = value             # <<<<<<<<<<<<<<
 *         elif name == "w":
 *             self.c_vec4.w = value
 */
    __pyx_t_3 = __pyx_PyFloat_AsFloat(__pyx_v_value); if (unlikely((__pyx_t_3 == ((CGL_float)-1)) && PyErr_Occurred())) __PYX_ERR(0, 777, __pyx_L1_error)
    __pyx_v_self->c_vec4.z = __pyx_t_3;

    /* "cgl_wrapper.pyx":776
 *         elif name == "y":
 *             self.c_vec4.y = value
 *         elif name == "z":             # <<<<<<<<<<<<<<
 *             self.c_vec4.z = value
 *         elif name == "w":
 */
    goto __pyx_L3;
  }

  /* "cgl_wrapper.pyx":778
 *         elif name == "z":
 *             self.c_vec4.z = value
 *         elif name == "w":             # <<<<<<<<<<<<<<
 *             self.c_vec4.w = value
 *         else:
 */
  __pyx_t_2 = (__Pyx_PyString_Equals(__pyx_v_name, __pyx_n_s_w, Py_EQ)); if (unlikely(__pyx_t_2 < 0)) __PYX_ERR(0, 778, __pyx_L1_error)
  __pyx_t_1 = (__pyx_t_2 != 0);
  if (likely(__pyx_t_1)) {

    /* "cgl_wrapper.pyx":779
 *             self.c_vec4.z = value
 *         elif name == "w":
 *             self.c_vec4.w = value             # <<<<<<<<<<<<<<
 *         else:
 *             raise AttributeError()
 */
    __pyx_t_3 = __pyx_PyFloat_AsFloat(__pyx_v_value); if (unlikely((__pyx_t_3 == ((CGL_float)-1)) && PyErr_Occurred())) __PYX_ERR(0, 779, __pyx_L1_error)
    __pyx_v_self->c_vec4.w = __pyx_t_3;

    /* "cgl_wrapper.pyx":778
 *         elif name == "z":
 *             self.c_vec4.z = value
 *         elif name == "w":             # <<<<<<<<<<<<<<
 *             self.c_vec4.w = value
 *         else:
 */
    goto __pyx_L3;
  }

  /* "cgl_wrapper.pyx":781
 *             self.c_vec4.w = value
 *         else:
 *             raise AttributeError()             # <<<<<<<<<<<<<<
 * 
 *     def __add__(self, other: vec4):
 */
  /*else*/ {
    __pyx_t_4 = __Pyx_PyObject_CallNoArg(__pyx_builtin_AttributeError); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 781, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_Raise(__pyx_t_4, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __PYX_ERR(0, 781, __pyx_L1_error)
  }
  __pyx_L3:;

  /* "cgl_wrapper.pyx":771
 *             raise AttributeError()
 * 
 *     def __setattr__(self, name: str, value):             # <<<<<<<<<<<<<<
 *         if name == "x":
 *             self.c_vec4.x = value
 */

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cgl.vec4.__setattr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cgl_wrapper.pyx":783
 *             raise AttributeError()
 * 
 *     def __add__(self, other: vec4):             # <<<<<<<<<<<<<<
 *         return vec4(self.x + other.x, self.y + other.y, self.z + other.z, self.w + other.w)
 * 
 */

/* Python wrapper */
static PyObject *__pyx_pw_3cgl_4vec4_25__add__(PyObject *__pyx_v_self, PyObject *__pyx_v_other); /*proto*/
static PyObject *__pyx_pw_3cgl_4vec4_25__add__(PyObject *__pyx_v_self, PyObject *__pyx_v_other) {
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__add__ (wrapper)", 0);
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_other), __pyx_ptype_3cgl_vec4, 1, "other", 0))) __PYX_ERR(0, 783, __pyx_L1_error)
  __pyx_r = __pyx_pf_3cgl_4vec4_24__add__(((PyObject *)__pyx_v_self), ((struct __pyx_obj_3cgl_vec4 *)__pyx_v_other));

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_3cgl_4vec4_24__add__(PyObject *__pyx_v_self, struct __pyx_obj_3cgl_vec4 *__pyx_v_other) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__add__", 0);

  /* "cgl_wrapper.pyx":784
 * 
 *     def __add__(self, other: vec4):
 *         return vec4(self.x + other.x, self.y + other.y, self.z + other.z, self.w + other.w)             # <<<<<<<<<<<<<<
 * 
 *     def __sub__(self, other: vec4):
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_x); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 784, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_other), __pyx_n_s_x); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 784, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = PyNumber_Add(__pyx_t_1, __pyx_t_2); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 784, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_y); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 784, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_other), __pyx_n_s_y); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 784, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_4 = PyNumber_Add(__pyx_t_2, __pyx_t_1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 784, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_z); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 784, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_other), __pyx_n_s_z); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 784, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_5 = PyNumber_Add(__pyx_t_1, __pyx_t_2); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 784, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_w); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 784, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_other), __pyx_n_s_w); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 784, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_6 = PyNumber_Add(__pyx_t_2, __pyx_t_1); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 784, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_1 = PyTuple_New(4); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 784, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_GIVEREF(__pyx_t_3);
  PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_t_3);
  __Pyx_GIVEREF(__pyx_t_4);
  PyTuple_SET_ITEM(__pyx_t_1, 1, __pyx_t_4);
  __Pyx_GIVEREF(__pyx_t_5);
  PyTuple_SET_ITEM(__pyx_t_1, 2, __pyx_t_5);
  __Pyx_GIVEREF(__pyx_t_6);
  PyTuple_SET_ITEM(__pyx_t_1, 3, __pyx_t_6);
  __pyx_t_3 = 0;
  __pyx_t_4 = 0;
  __pyx_t_5 = 0;
  __pyx_t_6 = 0;
  __pyx_t_6 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_3cgl_vec4), __pyx_t_1, NULL); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 784, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_r = __pyx_t_6;
  __pyx_t_6 = 0;
  goto __pyx_L0;

  /* "cgl_wrapper.pyx":783
 *             raise AttributeError()
 * 
 *     def __add__(self, other: vec4):             # <<<<<<<<<<<<<<
 *         return vec4(self.x + other.x, self.y + other.y, self.z + other.z, self.w + other.w)
 * 
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_AddTraceback("cgl.vec4.__add__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cgl_wrapper.pyx":786
 *         return vec4(self.x + other.x, self.y + other.y, self.z + other.z, self.w + other.w)
 * 
 *     def __sub__(self, other: vec4):             # <<<<<<<<<<<<<<
 *         return vec4(self.x - other.x, self.y - other.y, self.z - other.z, self.w - other.w)
 * 
 */

/* Python wrapper */
static PyObject *__pyx_pw_3cgl_4vec4_27__sub__(PyObject *__pyx_v_self, PyObject *__pyx_v_other); /*proto*/
static PyObject *__pyx_pw_3cgl_4vec4_27__sub__(PyObject *__pyx_v_self, PyObject *__pyx_v_other) {
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__sub__ (wrapper)", 0);
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_other), __pyx_ptype_3cgl_vec4, 1, "other", 0))) __PYX_ERR(0, 786, __pyx_L1_error)
  __pyx_r = __pyx_pf_3cgl_4vec4_26__sub__(((PyObject *)__pyx_v_self), ((struct __pyx_obj_3cgl_vec4 *)__pyx_v_other));

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_3cgl_4vec4_26__sub__(PyObject *__pyx_v_self, struct __pyx_obj_3cgl_vec4 *__pyx_v_other) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__sub__", 0);

  /* "cgl_wrapper.pyx":787
 * 
 *     def __sub__(self, other: vec4):
 *         return vec4(self.x - other.x, self.y - other.y, self.z - other.z, self.w - other.w)             # <<<<<<<<<<<<<<
 * 
 *     def __mul__(self, other: vec4):
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_x); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 787, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_other), __pyx_n_s_x); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 787, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = PyNumber_Subtract(__pyx_t_1, __pyx_t_2); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 787, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_y); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 787, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_other), __pyx_n_s_y); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 787, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_4 = PyNumber_Subtract(__pyx_t_2, __pyx_t_1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 787, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_z); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 787, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_other), __pyx_n_s_z); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 787, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_5 = PyNumber_Subtract(__pyx_t_1, __pyx_t_2); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 787, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_w); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 787, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_other), __pyx_n_s_w); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 787, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_6 = PyNumber_Subtract(__pyx_t_2, __pyx_t_1); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 787, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_1 = PyTuple_New(4); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 787, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_GIVEREF(__pyx_t_3);
  PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_t_3);
  __Pyx_GIVEREF(__pyx_t_4);
  PyTuple_SET_ITEM(__pyx_t_1, 1, __pyx_t_4);
  __Pyx_GIVEREF(__pyx_t_5);
  PyTuple_SET_ITEM(__pyx_t_1, 2, __pyx_t_5);
  __Pyx_GIVEREF(__pyx_t_6);
  PyTuple_SET_ITEM(__pyx_t_1, 3, __pyx_t_6);
  __pyx_t_3 = 0;
  __pyx_t_4 = 0;
  __pyx_t_5 = 0;
  __pyx_t_6 = 0;
  __pyx_t_6 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_3cgl_vec4), __pyx_t_1, NULL); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 787, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_r = __pyx_t_6;
  __pyx_t_6 = 0;
  goto __pyx_L0;

  /* "cgl_wrapper.pyx":786
 *         return vec4(self.x + other.x, self.y + other.y, self.z + other.z, self.w + other.w)
 * 
 *     def __sub__(self, other: vec4):             # <<<<<<<<<<<<<<
 *         return vec4(self.x - other.x, self.y - other.y, self.z - other.z, self.w - other.w)
 * 
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_AddTraceback("cgl.vec4.__sub__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cgl_wrapper.pyx":789
 *         return vec4(self.x - other.x, self.y - other.y, self.z - other.z, self.w - other.w)
 * 
 *     def __mul__(self, other: vec4):             # <<<<<<<<<<<<<<
 *         return vec4(self.x * other.x, self.y * other.y, self.z * other.z, self.w * other.w)
 * 
 */

/* Python wrapper */
static PyObject *__pyx_pw_3cgl_4vec4_29__mul__(PyObject *__pyx_v_self, PyObject *__pyx_v_other); /*proto*/
static PyObject *__pyx_pw_3cgl_4vec4_29__mul__(PyObject *__pyx_v_self, PyObject *__pyx_v_other) {
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__mul__ (wrapper)", 0);
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_other), __pyx_ptype_3cgl_vec4, 1, "other", 0))) __PYX_ERR(0, 789, __pyx_L1_error)
  __pyx_r = __pyx_pf_3cgl_4vec4_28__mul__(((PyObject *)__pyx_v_self), ((struct __pyx_obj_3cgl_vec4 *)__pyx_v_other));

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_3cgl_4vec4_28__mul__(PyObject *__pyx_v_self, struct __pyx_obj_3cgl_vec4 *__pyx_v_other) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__mul__", 0);

  /* "cgl_wrapper.pyx":790
 * 
 *     def __mul__(self, other: vec4):
 *         return vec4(self.x * other.x, self.y * other.y, self.z * other.z, self.w * other.w)             # <<<<<<<<<<<<<<
 * 
 *     def __truediv__(self, other: vec4):
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_x); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 790, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_other), __pyx_n_s_x); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 790, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = PyNumber_Multiply(__pyx_t_1, __pyx_t_2); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 790, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_y); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 790, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_other), __pyx_n_s_y); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 790, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_4 = PyNumber_Multiply(__pyx_t_2, __pyx_t_1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 790, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_z); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 790, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_other), __pyx_n_s_z); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 790, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_5 = PyNumber_Multiply(__pyx_t_1, __pyx_t_2); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 790, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_w); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 790, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_other), __pyx_n_s_w); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 790, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_6 = PyNumber_Multiply(__pyx_t_2, __pyx_t_1); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 790, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_1 = PyTuple_New(4); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 790, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_GIVEREF(__pyx_t_3);
  PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_t_3);
  __Pyx_GIVEREF(__pyx_t_4);
  PyTuple_SET_ITEM(__pyx_t_1, 1, __pyx_t_4);
  __Pyx_GIVEREF(__pyx_t_5);
  PyTuple_SET_ITEM(__pyx_t_1, 2, __pyx_t_5);
  __Pyx_GIVEREF(__pyx_t_6);
  PyTuple_SET_ITEM(__pyx_t_1, 3, __pyx_t_6);
  __pyx_t_3 = 0;
  __pyx_t_4 = 0;
  __pyx_t_5 = 0;
  __pyx_t_6 = 0;
  __pyx_t_6 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_3cgl_vec4), __pyx_t_1, NULL); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 790, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_r = __pyx_t_6;
  __pyx_t_6 = 0;
  goto __pyx_L0;

  /* "cgl_wrapper.pyx":789
 *         return vec4(self.x - other.x, self.y - other.y, self.z - other.z, self.w - other.w)
 * 
 *     def __mul__(self, other: vec4):             # <<<<<<<<<<<<<<
 *         return vec4(self.x * other.x, self.y * other.y, self.z * other.z, self.w * other.w)
 * 
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_AddTraceback("cgl.vec4.__mul__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cgl_wrapper.pyx":792
 *         return vec4(self.x * other.x, self.y * other.y, self.z * other.z, self.w * other.w)
 * 
 *     def __truediv__(self, other: vec4):             # <<<<<<<<<<<<<<
 *         return vec4(self.x / other.x, self.y / other.y, self.z / other.z, self.w / other.w)
 * 
 */

/* Python wrapper */
static PyObject *__pyx_pw_3cgl_4vec4_31__truediv__(PyObject *__pyx_v_self, PyObject *__pyx_v_other); /*proto*/
static PyObject *__pyx_pw_3cgl_4vec4_31__truediv__(PyObject *__pyx_v_self, PyObject *__pyx_v_other) {
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__truediv__ (wrapper)", 0);
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_other), __pyx_ptype_3cgl_vec4, 1, "other", 0))) __PYX_ERR(0, 792, __pyx_L1_error)
  __pyx_r = __pyx_pf_3cgl_4vec4_30__truediv__(((PyObject *)__pyx_v_self), ((struct __pyx_obj_3cgl_vec4 *)__pyx_v_other));

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_3cgl_4vec4_30__truediv__(PyObject *__pyx_v_self, struct __pyx_obj_3cgl_vec4 *__pyx_v_other) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__truediv__", 0);

  /* "cgl_wrapper.pyx":793
 * 
 *     def __truediv__(self, other: vec4):
 *         return vec4(self.x / other.x, self.y / other.y, self.z / other.z, self.w / other.w)             # <<<<<<<<<<<<<<
 * 
 *     def __floordiv__(self, other: vec3):
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_x); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 793, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_other), __pyx_n_s_x); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 793, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = __Pyx_PyNumber_Divide(__pyx_t_1, __pyx_t_2); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 793, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_y); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 793, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_other), __pyx_n_s_y); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 793, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_4 = __Pyx_PyNumber_Divide(__pyx_t_2, __pyx_t_1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 793, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_z); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 793, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_other), __pyx_n_s_z); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 793, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_5 = __Pyx_PyNumber_Divide(__pyx_t_1, __pyx_t_2); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 793, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_w); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 793, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_other), __pyx_n_s_w); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 793, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_6 = __Pyx_PyNumber_Divide(__pyx_t_2, __pyx_t_1); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 793, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_1 = PyTuple_New(4); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 793, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_GIVEREF(__pyx_t_3);
  PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_t_3);
  __Pyx_GIVEREF(__pyx_t_4);
  PyTuple_SET_ITEM(__pyx_t_1, 1, __pyx_t_4);
  __Pyx_GIVEREF(__pyx_t_5);
  PyTuple_SET_ITEM(__pyx_t_1, 2, __pyx_t_5);
  __Pyx_GIVEREF(__pyx_t_6);
  PyTuple_SET_ITEM(__pyx_t_1, 3, __pyx_t_6);
  __pyx_t_3 = 0;
  __pyx_t_4 = 0;
  __pyx_t_5 = 0;
  __pyx_t_6 = 0;
  __pyx_t_6 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_3cgl_vec4), __pyx_t_1, NULL); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 793, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_r = __pyx_t_6;
  __pyx_t_6 = 0;
  goto __pyx_L0;

  /* "cgl_wrapper.pyx":792
 *         return vec4(self.x * other.x, self.y * other.y, self.z * other.z, self.w * other.w)
 * 
 *     def __truediv__(self, other: vec4):             # <<<<<<<<<<<<<<
 *         return vec4(self.x / other.x, self.y / other.y, self.z / other.z, self.w / other.w)
 * 
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_AddTraceback("cgl.vec4.__truediv__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cgl_wrapper.pyx":795
 *         return vec4(self.x / other.x, self.y / other.y, self.z / other.z, self.w / other.w)
 * 
 *     def __floordiv__(self, other: vec3):             # <<<<<<<<<<<<<<
 *         return vec4(self.x // other.x, self.y // other.y, self.z // other.z, self.w // other.w)
 * 
 */

/* Python wrapper */
static PyObject *__pyx_pw_3cgl_4vec4_33__floordiv__(PyObject *__pyx_v_self, PyObject *__pyx_v_other); /*proto*/
static PyObject *__pyx_pw_3cgl_4vec4_33__floordiv__(PyObject *__pyx_v_self, PyObject *__pyx_v_other) {
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__floordiv__ (wrapper)", 0);
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_other), __pyx_ptype_3cgl_vec3, 1, "other", 0))) __PYX_ERR(0, 795, __pyx_L1_error)
  __pyx_r = __pyx_pf_3cgl_4vec4_32__floordiv__(((PyObject *)__pyx_v_self), ((struct __pyx_obj_3cgl_vec3 *)__pyx_v_other));

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_3cgl_4vec4_32__floordiv__(PyObject *__pyx_v_self, struct __pyx_obj_3cgl_vec3 *__pyx_v_other) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__floordiv__", 0);

  /* "cgl_wrapper.pyx":796
 * 
 *     def __floordiv__(self, other: vec3):
 *         return vec4(self.x // other.x, self.y // other.y, self.z // other.z, self.w // other.w)             # <<<<<<<<<<<<<<
 * 
 *     def dot(self, other: vec3):
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_x); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 796, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_other), __pyx_n_s_x); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 796, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = PyNumber_FloorDivide(__pyx_t_1, __pyx_t_2); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 796, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_y); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 796, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_other), __pyx_n_s_y); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 796, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_4 = PyNumber_FloorDivide(__pyx_t_2, __pyx_t_1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 796, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_z); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 796, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_other), __pyx_n_s_z); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 796, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_5 = PyNumber_FloorDivide(__pyx_t_1, __pyx_t_2); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 796, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_w); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 796, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_other), __pyx_n_s_w); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 796, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_6 = PyNumber_FloorDivide(__pyx_t_2, __pyx_t_1); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 796, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_1 = PyTuple_New(4); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 796, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_GIVEREF(__pyx_t_3);
  PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_t_3);
  __Pyx_GIVEREF(__pyx_t_4);
  PyTuple_SET_ITEM(__pyx_t_1, 1, __pyx_t_4);
  __Pyx_GIVEREF(__pyx_t_5);
  PyTuple_SET_ITEM(__pyx_t_1, 2, __pyx_t_5);
  __Pyx_GIVEREF(__pyx_t_6);
  PyTuple_SET_ITEM(__pyx_t_1, 3, __pyx_t_6);
  __pyx_t_3 = 0;
  __pyx_t_4 = 0;
  __pyx_t_5 = 0;
  __pyx_t_6 = 0;
  __pyx_t_6 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_3cgl_vec4), __pyx_t_1, NULL); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 796, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_r = __pyx_t_6;
  __pyx_t_6 = 0;
  goto __pyx_L0;

  /* "cgl_wrapper.pyx":795
 *         return vec4(self.x / other.x, self.y / other.y, self.z / other.z, self.w / other.w)
 * 
 *     def __floordiv__(self, other: vec3):             # <<<<<<<<<<<<<<
 *         return vec4(self.x // other.x, self.y // other.y, self.z // other.z, self.w // other.w)
 * 
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_AddTraceback("cgl.vec4.__floordiv__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cgl_wrapper.pyx":798
 *         return vec4(self.x // other.x, self.y // other.y, self.z // other.z, self.w // other.w)
 * 
 *     def dot(self, other: vec3):             # <<<<<<<<<<<<<<
 *         return (self.x * other.x) + (self.y * other.y) + (self.z * other.z) + (self.w * other.w)
 * 
 */

/* Python wrapper */
static PyObject *__pyx_pw_3cgl_4vec4_35dot(PyObject *__pyx_v_self, PyObject *__pyx_v_other); /*proto*/
static PyObject *__pyx_pw_3cgl_4vec4_35dot(PyObject *__pyx_v_self, PyObject *__pyx_v_other) {
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("dot (wrapper)", 0);
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_other), __pyx_ptype_3cgl_vec3, 1, "other", 0))) __PYX_ERR(0, 798, __pyx_L1_error)
  __pyx_r = __pyx_pf_3cgl_4vec4_34dot(((struct __pyx_obj_3cgl_vec4 *)__pyx_v_self), ((struct __pyx_obj_3cgl_vec3 *)__pyx_v_other));

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_3cgl_4vec4_34dot(struct __pyx_obj_3cgl_vec4 *__pyx_v_self, struct __pyx_obj_3cgl_vec3 *__pyx_v_other) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("dot", 0);

  /* "cgl_wrapper.pyx":799
 * 
 *     def dot(self, other: vec3):
 *         return (self.x * other.x) + (self.y * other.y) + (self.z * other.z) + (self.w * other.w)             # <<<<<<<<<<<<<<
 * 
 *     def cross(self, other: vec3):
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_x); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 799, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_other), __pyx_n_s_x); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 799, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = PyNumber_Multiply(__pyx_t_1, __pyx_t_2); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 799, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_y); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 799, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_other), __pyx_n_s_y); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 799, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_4 = PyNumber_Multiply(__pyx_t_2, __pyx_t_1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 799, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_1 = PyNumber_Add(__pyx_t_3, __pyx_t_4); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 799, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __pyx_t_4 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_z); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 799, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_3 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_other), __pyx_n_s_z); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 799, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_2 = PyNumber_Multiply(__pyx_t_4, __pyx_t_3); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 799, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __pyx_t_3 = PyNumber_Add(__pyx_t_1, __pyx_t_2); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 799, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_w); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 799, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_other), __pyx_n_s_w); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 799, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_4 = PyNumber_Multiply(__pyx_t_2, __pyx_t_1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 799, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_1 = PyNumber_Add(__pyx_t_3, __pyx_t_4); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 799, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cgl_wrapper.pyx":798
 *         return vec4(self.x // other.x, self.y // other.y, self.z // other.z, self.w // other.w)
 * 
 *     def dot(self, other: vec3):             # <<<<<<<<<<<<<<
 *         return (self.x * other.x) + (self.y * other.y) + (self.z * other.z) + (self.w * other.w)
 * 
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cgl.vec4.dot", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cgl_wrapper.pyx":801
 *         return (self.x * other.x) + (self.y * other.y) + (self.z * other.z) + (self.w * other.w)
 * 
 *     def cross(self, other: vec3):             # <<<<<<<<<<<<<<
 *         return vec4(self.y * other.z - self.z * other.y, self.z * other.x - self.x * other.z, self.x * other.y - self.y * other.x, 0.0)
 * 
 */

/* Python wrapper */
static PyObject *__pyx_pw_3cgl_4vec4_37cross(PyObject *__pyx_v_self, PyObject *__pyx_v_other); /*proto*/
static PyObject *__pyx_pw_3cgl_4vec4_37cross(PyObject *__pyx_v_self, PyObject *__pyx_v_other) {
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("cross (wrapper)", 0);
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_other), __pyx_ptype_3cgl_vec3, 1, "other", 0))) __PYX_ERR(0, 801, __pyx_L1_error)
  __pyx_r = __pyx_pf_3cgl_4vec4_36cross(((struct __pyx_obj_3cgl_vec4 *)__pyx_v_self), ((struct __pyx_obj_3cgl_vec3 *)__pyx_v_other));

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_3cgl_4vec4_36cross(struct __pyx_obj_3cgl_vec4 *__pyx_v_self, struct __pyx_obj_3cgl_vec3 *__pyx_v_other) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("cross", 0);

  /* "cgl_wrapper.pyx":802
 * 
 *     def cross(self, other: vec3):
 *         return vec4(self.y * other.z - self.z * other.y, self.z * other.x - self.x * other.z, self.x * other.y - self.y * other.x, 0.0)             # <<<<<<<<<<<<<<
 * 
 *     def length(self):
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_y); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 802, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_other), __pyx_n_s_z); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 802, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = PyNumber_Multiply(__pyx_t_1, __pyx_t_2); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 802, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_z); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 802, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_other), __pyx_n_s_y); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 802, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_4 = PyNumber_Multiply(__pyx_t_2, __pyx_t_1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 802, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_1 = PyNumber_Subtract(__pyx_t_3, __pyx_t_4); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 802, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __pyx_t_4 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_z); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 802, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_3 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_other), __pyx_n_s_x); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 802, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_2 = PyNumber_Multiply(__pyx_t_4, __pyx_t_3); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 802, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __pyx_t_3 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_x); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 802, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_other), __pyx_n_s_z); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 802, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_5 = PyNumber_Multiply(__pyx_t_3, __pyx_t_4); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 802, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __pyx_t_4 = PyNumber_Subtract(__pyx_t_2, __pyx_t_5); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 802, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
  __pyx_t_5 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_x); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 802, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_other), __pyx_n_s_y); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 802, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = PyNumber_Multiply(__pyx_t_5, __pyx_t_2); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 802, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_y); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 802, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_5 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_other), __pyx_n_s_x); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 802, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __pyx_t_6 = PyNumber_Multiply(__pyx_t_2, __pyx_t_5); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 802, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
  __pyx_t_5 = PyNumber_Subtract(__pyx_t_3, __pyx_t_6); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 802, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
  __pyx_t_6 = PyTuple_New(4); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 802, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __Pyx_GIVEREF(__pyx_t_1);
  PyTuple_SET_ITEM(__pyx_t_6, 0, __pyx_t_1);
  __Pyx_GIVEREF(__pyx_t_4);
  PyTuple_SET_ITEM(__pyx_t_6, 1, __pyx_t_4);
  __Pyx_GIVEREF(__pyx_t_5);
  PyTuple_SET_ITEM(__pyx_t_6, 2, __pyx_t_5);
  __Pyx_INCREF(__pyx_float_0_0);
  __Pyx_GIVEREF(__pyx_float_0_0);
  PyTuple_SET_ITEM(__pyx_t_6, 3, __pyx_float_0_0);
  __pyx_t_1 = 0;
  __pyx_t_4 = 0;
  __pyx_t_5 = 0;
  __pyx_t_5 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_3cgl_vec4), __pyx_t_6, NULL); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 802, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
  __pyx_r = __pyx_t_5;
  __pyx_t_5 = 0;
  goto __pyx_L0;

  /* "cgl_wrapper.pyx":801
 *         return (self.x * other.x) + (self.y * other.y) + (self.z * other.z) + (self.w * other.w)
 * 
 *     def cross(self, other: vec3):             # <<<<<<<<<<<<<<
 *         return vec4(self.y * other.z - self.z * other.y, self.z * other.x - self.x * other.z, self.x * other.y - self.y * other.x, 0.0)
 * 
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_AddTraceback("cgl.vec4.cross", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cgl_wrapper.pyx":804
 *         return vec4(self.y * other.z - self.z * other.y, self.z * other.x - self.x * other.z, self.x * other.y - self.y * other.x, 0.0)
 * 
 *     def length(self):             # <<<<<<<<<<<<<<
 *         return math.sqrt(self.length_squared())
 * 
 */

/* Python wrapper */
static PyObject *__pyx_pw_3cgl_4vec4_39length(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/
static PyObject *__pyx_pw_3cgl_4vec4_39length(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("length (wrapper)", 0);
  __pyx_r = __pyx_pf_3cgl_4vec4_38length(((struct __pyx_obj_3cgl_vec4 *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_3cgl_4vec4_38length(struct __pyx_obj_3cgl_vec4 *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  double __pyx_t_4;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("length", 0);

  /* "cgl_wrapper.pyx":805
 * 
 *     def length(self):
 *         return math.sqrt(self.length_squared())             # <<<<<<<<<<<<<<
 * 
 *     def length_squared(self):
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_length_squared); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 805, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = NULL;
  if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) {
    __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2);
    if (likely(__pyx_t_3)) {
      PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2);
      __Pyx_INCREF(__pyx_t_3);
      __Pyx_INCREF(function);
      __Pyx_DECREF_SET(__pyx_t_2, function);
    }
  }
  __pyx_t_1 = (__pyx_t_3) ? __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_t_3) : __Pyx_PyObject_CallNoArg(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
  if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 805, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_t_4 = __pyx_PyFloat_AsDouble(__pyx_t_1); if (unlikely((__pyx_t_4 == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 805, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_1 = PyFloat_FromDouble(sqrt(__pyx_t_4)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 805, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cgl_wrapper.pyx":804
 *         return vec4(self.y * other.z - self.z * other.y, self.z * other.x - self.x * other.z, self.x * other.y - self.y * other.x, 0.0)
 * 
 *     def length(self):             # <<<<<<<<<<<<<<
 *         return math.sqrt(self.length_squared())
 * 
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_AddTraceback("cgl.vec4.length", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cgl_wrapper.pyx":807
 *         return math.sqrt(self.length_squared())
 * 
 *     def length_squared(self):             # <<<<<<<<<<<<<<
 *         return (self.x * self.x) + (self.y * self.y) + (self.z * self.z) + (self.w * self.w)
 * 
 */

/* Python wrapper */
static PyObject *__pyx_pw_3cgl_4vec4_41length_squared(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/
static PyObject *__pyx_pw_3cgl_4vec4_41length_squared(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("length_squared (wrapper)", 0);
  __pyx_r = __pyx_pf_3cgl_4vec4_40length_squared(((struct __pyx_obj_3cgl_vec4 *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_3cgl_4vec4_40length_squared(struct __pyx_obj_3cgl_vec4 *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("length_squared", 0);

  /* "cgl_wrapper.pyx":808
 * 
 *     def length_squared(self):
 *         return (self.x * self.x) + (self.y * self.y) + (self.z * self.z) + (self.w * self.w)             # <<<<<<<<<<<<<<
 * 
 *     def normalized(self):
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_x); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 808, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_x); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 808, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = PyNumber_Multiply(__pyx_t_1, __pyx_t_2); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 808, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_y); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 808, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_y); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 808, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_4 = PyNumber_Multiply(__pyx_t_2, __pyx_t_1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 808, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_1 = PyNumber_Add(__pyx_t_3, __pyx_t_4); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 808, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __pyx_t_4 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_z); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 808, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_3 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_z); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 808, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_2 = PyNumber_Multiply(__pyx_t_4, __pyx_t_3); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 808, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __pyx_t_3 = PyNumber_Add(__pyx_t_1, __pyx_t_2); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 808, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_w); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 808, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_w); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 808, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_4 = PyNumber_Multiply(__pyx_t_2, __pyx_t_1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 808, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_1 = PyNumber_Add(__pyx_t_3, __pyx_t_4); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 808, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cgl_wrapper.pyx":807
 *         return math.sqrt(self.length_squared())
 * 
 *     def length_squared(self):             # <<<<<<<<<<<<<<
 *         return (self.x * self.x) + (self.y * self.y) + (self.z * self.z) + (self.w * self.w)
 * 
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cgl.vec4.length_squared", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cgl_wrapper.pyx":810
 *         return (self.x * self.x) + (self.y * self.y) + (self.z * self.z) + (self.w * self.w)
 * 
 *     def normalized(self):             # <<<<<<<<<<<<<<
 *         length = self.length()
 *         return vec4(self.x / length, self.y / length, self.z / length, self.w / length)
 */

/* Python wrapper */
static PyObject *__pyx_pw_3cgl_4vec4_43normalized(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/
static PyObject *__pyx_pw_3cgl_4vec4_43normalized(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("normalized (wrapper)", 0);
  __pyx_r = __pyx_pf_3cgl_4vec4_42normalized(((struct __pyx_obj_3cgl_vec4 *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_3cgl_4vec4_42normalized(struct __pyx_obj_3cgl_vec4 *__pyx_v_self) {
  PyObject *__pyx_v_length = NULL;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("normalized", 0);

  /* "cgl_wrapper.pyx":811
 * 
 *     def normalized(self):
 *         length = self.length()             # <<<<<<<<<<<<<<
 *         return vec4(self.x / length, self.y / length, self.z / length, self.w / length)
 * 
 */
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_length); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 811, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = NULL;
  if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) {
    __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2);
    if (likely(__pyx_t_3)) {
      PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2);
      __Pyx_INCREF(__pyx_t_3);
      __Pyx_INCREF(function);
      __Pyx_DECREF_SET(__pyx_t_2, function);
    }
  }
  __pyx_t_1 = (__pyx_t_3) ? __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_t_3) : __Pyx_PyObject_CallNoArg(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
  if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 811, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_v_length = __pyx_t_1;
  __pyx_t_1 = 0;

  /* "cgl_wrapper.pyx":812
 *     def normalized(self):
 *         length = self.length()
 *         return vec4(self.x / length, self.y / length, self.z / length, self.w / length)             # <<<<<<<<<<<<<<
 * 
 * def vec4_triple_product(a: vec4, b: vec4, c: vec4) -> vec4:
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_x); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 812, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = __Pyx_PyNumber_Divide(__pyx_t_1, __pyx_v_length); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 812, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_y); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 812, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_3 = __Pyx_PyNumber_Divide(__pyx_t_1, __pyx_v_length); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 812, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_z); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 812, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_4 = __Pyx_PyNumber_Divide(__pyx_t_1, __pyx_v_length); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 812, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_w); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 812, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_5 = __Pyx_PyNumber_Divide(__pyx_t_1, __pyx_v_length); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 812, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_1 = PyTuple_New(4); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 812, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_GIVEREF(__pyx_t_2);
  PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_3);
  PyTuple_SET_ITEM(__pyx_t_1, 1, __pyx_t_3);
  __Pyx_GIVEREF(__pyx_t_4);
  PyTuple_SET_ITEM(__pyx_t_1, 2, __pyx_t_4);
  __Pyx_GIVEREF(__pyx_t_5);
  PyTuple_SET_ITEM(__pyx_t_1, 3, __pyx_t_5);
  __pyx_t_2 = 0;
  __pyx_t_3 = 0;
  __pyx_t_4 = 0;
  __pyx_t_5 = 0;
  __pyx_t_5 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_3cgl_vec4), __pyx_t_1, NULL); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 812, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_r = __pyx_t_5;
  __pyx_t_5 = 0;
  goto __pyx_L0;

  /* "cgl_wrapper.pyx":810
 *         return (self.x * self.x) + (self.y * self.y) + (self.z * self.z) + (self.w * self.w)
 * 
 *     def normalized(self):             # <<<<<<<<<<<<<<
 *         length = self.length()
 *         return vec4(self.x / length, self.y / length, self.z / length, self.w / length)
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("cgl.vec4.normalized", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_length);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError("Pickling of struct members such as self.c_vec4 must be explicitly requested with @auto_pickle(True)")
 * def __setstate_cython__(self, __pyx_state):
 */

/* Python wrapper */
static PyObject *__pyx_pw_3cgl_4vec4_45__reduce_cython__(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/
static PyObject *__pyx_pw_3cgl_4vec4_45__reduce_cython__(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__reduce_cython__ (wrapper)", 0);
  __pyx_r = __pyx_pf_3cgl_4vec4_44__reduce_cython__(((struct __pyx_obj_3cgl_vec4 *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_3cgl_4vec4_44__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_3cgl_vec4 *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__reduce_cython__", 0);

  /* "(tree fragment)":2
 * def __reduce_cython__(self):
 *     raise TypeError("Pickling of struct members such as self.c_vec4 must be explicitly requested with @auto_pickle(True)")             # <<<<<<<<<<<<<<
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError("Pickling of struct members such as self.c_vec4 must be explicitly requested with @auto_pickle(True)")
 */
  __pyx_t_1 = __Pyx_PyObject_Call(__pyx_builtin_TypeError, __pyx_tuple__9, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 2, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_Raise(__pyx_t_1, 0, 0, 0);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __PYX_ERR(1, 2, __pyx_L1_error)

  /* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError("Pickling of struct members such as self.c_vec4 must be explicitly requested with @auto_pickle(True)")
 * def __setstate_cython__(self, __pyx_state):
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cgl.vec4.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError("Pickling of struct members such as self.c_vec4 must be explicitly requested with @auto_pickle(True)")
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError("Pickling of struct members such as self.c_vec4 must be explicitly requested with @auto_pickle(True)")
 */

/* Python wrapper */
static PyObject *__pyx_pw_3cgl_4vec4_47__setstate_cython__(PyObject *__pyx_v_self, PyObject *__pyx_v___pyx_state); /*proto*/
static PyObject *__pyx_pw_3cgl_4vec4_47__setstate_cython__(PyObject *__pyx_v_self, PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__setstate_cython__ (wrapper)", 0);
  __pyx_r = __pyx_pf_3cgl_4vec4_46__setstate_cython__(((struct __pyx_obj_3cgl_vec4 *)__pyx_v_self), ((PyObject *)__pyx_v___pyx_state));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_3cgl_4vec4_46__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_3cgl_vec4 *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__setstate_cython__", 0);

  /* "(tree fragment)":4
 *     raise TypeError("Pickling of struct members such as self.c_vec4 must be explicitly requested with @auto_pickle(True)")
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError("Pickling of struct members such as self.c_vec4 must be explicitly requested with @auto_pickle(True)")             # <<<<<<<<<<<<<<
 */
  __pyx_t_1 = __Pyx_PyObject_Call(__pyx_builtin_TypeError, __pyx_tuple__10, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 4, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_Raise(__pyx_t_1, 0, 0, 0);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __PYX_ERR(1, 4, __pyx_L1_error)

  /* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError("Pickling of struct members such as self.c_vec4 must be explicitly requested with @auto_pickle(True)")
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError("Pickling of struct members such as self.c_vec4 must be explicitly requested with @auto_pickle(True)")
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cgl.vec4.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cgl_wrapper.pyx":814
 *         return vec4(self.x / length, self.y / length, self.z / length, self.w / length)
 * 
 * def vec4_triple_product(a: vec4, b: vec4, c: vec4) -> vec4:             # <<<<<<<<<<<<<<
 *     cdef CGL_vec4 obj = vec4(CGL_vec4_triple_product(a.c_vec4, b.c_vec4, c.c_vec4))
 *     return vec4(obj.x, obj.y, obj.z, obj.w)
 */

/* Python wrapper */
static struct __pyx_obj_3cgl_vec4 *__pyx_pw_3cgl_131vec4_triple_product(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static PyMethodDef __pyx_mdef_3cgl_131vec4_triple_product = {"vec4_triple_product", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_3cgl_131vec4_triple_product, METH_VARARGS|METH_KEYWORDS, 0};
static struct __pyx_obj_3cgl_vec4 *__pyx_pw_3cgl_131vec4_triple_product(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  struct __pyx_obj_3cgl_vec4 *__pyx_v_a = 0;
  struct __pyx_obj_3cgl_vec4 *__pyx_v_b = 0;
  struct __pyx_obj_3cgl_vec4 *__pyx_v_c = 0;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  struct __pyx_obj_3cgl_vec4 *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("vec4_triple_product (wrapper)", 0);
  {
    static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_a,&__pyx_n_s_b,&__pyx_n_s_c,0};
    PyObject* values[3] = {0,0,0};
    if (unlikely(__pyx_kwds)) {
      Py_ssize_t kw_args;
      const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
      switch (pos_args) {
        case  3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
        CYTHON_FALLTHROUGH;
        case  2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
        CYTHON_FALLTHROUGH;
        case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      kw_args = PyDict_Size(__pyx_kwds);
      switch (pos_args) {
        case  0:
        if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_a)) != 0)) kw_args--;
        else goto __pyx_L5_argtuple_error;
        CYTHON_FALLTHROUGH;
        case  1:
        if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_b)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("vec4_triple_product", 1, 3, 3, 1); __PYX_ERR(0, 814, __pyx_L3_error)
        }
        CYTHON_FALLTHROUGH;
        case  2:
        if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_c)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("vec4_triple_product", 1, 3, 3, 2); __PYX_ERR(0, 814, __pyx_L3_error)
        }
      }
      if (unlikely(kw_args > 0)) {
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "vec4_triple_product") < 0)) __PYX_ERR(0, 814, __pyx_L3_error)
      }
    } else if (PyTuple_GET_SIZE(__pyx_args) != 3) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
      values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
      values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
    }
    __pyx_v_a = ((struct __pyx_obj_3cgl_vec4 *)values[0]);
    __pyx_v_b = ((struct __pyx_obj_3cgl_vec4 *)values[1]);
    __pyx_v_c = ((struct __pyx_obj_3cgl_vec4 *)values[2]);
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("vec4_triple_product", 1, 3, 3, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 814, __pyx_L3_error)
  __pyx_L3_error:;
  __Pyx_AddTraceback("cgl.vec4_triple_product", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_a), __pyx_ptype_3cgl_vec4, 1, "a", 0))) __PYX_ERR(0, 814, __pyx_L1_error)
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_b), __pyx_ptype_3cgl_vec4, 1, "b", 0))) __PYX_ERR(0, 814, __pyx_L1_error)
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_c), __pyx_ptype_3cgl_vec4, 1, "c", 0))) __PYX_ERR(0, 814, __pyx_L1_error)
  __pyx_r = __pyx_pf_3cgl_130vec4_triple_product(__pyx_self, __pyx_v_a, __pyx_v_b, __pyx_v_c);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static struct __pyx_obj_3cgl_vec4 *__pyx_pf_3cgl_130vec4_triple_product(CYTHON_UNUSED PyObject *__pyx_self, struct __pyx_obj_3cgl_vec4 *__pyx_v_a, struct __pyx_obj_3cgl_vec4 *__pyx_v_b, struct __pyx_obj_3cgl_vec4 *__pyx_v_c) {
  struct CGL_vec4 __pyx_v_obj;
  struct __pyx_obj_3cgl_vec4 *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  struct CGL_vec4 __pyx_t_3;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("vec4_triple_product", 0);

  /* "cgl_wrapper.pyx":815
 * 
 * def vec4_triple_product(a: vec4, b: vec4, c: vec4) -> vec4:
 *     cdef CGL_vec4 obj = vec4(CGL_vec4_triple_product(a.c_vec4, b.c_vec4, c.c_vec4))             # <<<<<<<<<<<<<<
 *     return vec4(obj.x, obj.y, obj.z, obj.w)
 * 
 */
  __pyx_t_1 = __pyx_convert__to_py_struct__CGL_vec4(CGL_vec4_triple_product(__pyx_v_a->c_vec4, __pyx_v_b->c_vec4, __pyx_v_c->c_vec4)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 815, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_3cgl_vec4), __pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 815, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_3 = __pyx_convert__from_py_struct__CGL_vec4(__pyx_t_2); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 815, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_v_obj = __pyx_t_3;

  /* "cgl_wrapper.pyx":816
 * def vec4_triple_product(a: vec4, b: vec4, c: vec4) -> vec4:
 *     cdef CGL_vec4 obj = vec4(CGL_vec4_triple_product(a.c_vec4, b.c_vec4, c.c_vec4))
 *     return vec4(obj.x, obj.y, obj.z, obj.w)             # <<<<<<<<<<<<<<
 * 
 * cdef class ivec4:
 */
  __Pyx_XDECREF(((PyObject *)__pyx_r));
  __pyx_t_2 = PyFloat_FromDouble(__pyx_v_obj.x); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 816, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_1 = PyFloat_FromDouble(__pyx_v_obj.y); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 816, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_4 = PyFloat_FromDouble(__pyx_v_obj.z); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 816, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_5 = PyFloat_FromDouble(__pyx_v_obj.w); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 816, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __pyx_t_6 = PyTuple_New(4); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 816, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __Pyx_GIVEREF(__pyx_t_2);
  PyTuple_SET_ITEM(__pyx_t_6, 0, __pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_1);
  PyTuple_SET_ITEM(__pyx_t_6, 1, __pyx_t_1);
  __Pyx_GIVEREF(__pyx_t_4);
  PyTuple_SET_ITEM(__pyx_t_6, 2, __pyx_t_4);
  __Pyx_GIVEREF(__pyx_t_5);
  PyTuple_SET_ITEM(__pyx_t_6, 3, __pyx_t_5);
  __pyx_t_2 = 0;
  __pyx_t_1 = 0;
  __pyx_t_4 = 0;
  __pyx_t_5 = 0;
  __pyx_t_5 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_3cgl_vec4), __pyx_t_6, NULL); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 816, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
  __pyx_r = ((struct __pyx_obj_3cgl_vec4 *)__pyx_t_5);
  __pyx_t_5 = 0;
  goto __pyx_L0;

  /* "cgl_wrapper.pyx":814
 *         return vec4(self.x / length, self.y / length, self.z / length, self.w / length)
 * 
 * def vec4_triple_product(a: vec4, b: vec4, c: vec4) -> vec4:             # <<<<<<<<<<<<<<
 *     cdef CGL_vec4 obj = vec4(CGL_vec4_triple_product(a.c_vec4, b.c_vec4, c.c_vec4))
 *     return vec4(obj.x, obj.y, obj.z, obj.w)
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_AddTraceback("cgl.vec4_triple_product", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF((PyObject *)__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cgl_wrapper.pyx":821
 *     cdef CGL_ivec4 c_ivec4
 * 
 *     def __init__(self, x: int = 0, y: int = 0, z: int = 0, w: int = 0):             # <<<<<<<<<<<<<<
 *         self.c_ivec4 = CGL_ivec4(x, y, z, w)
 * 
 */

/* Python wrapper */
static int __pyx_pw_3cgl_5ivec4_1__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static int __pyx_pw_3cgl_5ivec4_1__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  PyObject *__pyx_v_x = 0;
  PyObject *__pyx_v_y = 0;
  PyObject *__pyx_v_z = 0;
  PyObject *__pyx_v_w = 0;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__init__ (wrapper)", 0);
  {
    static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_x,&__pyx_n_s_y,&__pyx_n_s_z,&__pyx_n_s_w,0};
    PyObject* values[4] = {0,0,0,0};
    values[0] = ((PyObject *)__pyx_int_0);
    values[1] = ((PyObject *)__pyx_int_0);
    values[2] = ((PyObject *)__pyx_int_0);
    values[3] = ((PyObject *)__pyx_int_0);
    if (unlikely(__pyx_kwds)) {
      Py_ssize_t kw_args;
      const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
      switch (pos_args) {
        case  4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
        CYTHON_FALLTHROUGH;
        case  3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
        CYTHON_FALLTHROUGH;
        case  2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
        CYTHON_FALLTHROUGH;
        case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      kw_args = PyDict_Size(__pyx_kwds);
      switch (pos_args) {
        case  0:
        if (kw_args > 0) {
          PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_x);
          if (value) { values[0] = value; kw_args--; }
        }
        CYTHON_FALLTHROUGH;
        case  1:
        if (kw_args > 0) {
          PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_y);
          if (value) { values[1] = value; kw_args--; }
        }
        CYTHON_FALLTHROUGH;
        case  2:
        if (kw_args > 0) {
          PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_z);
          if (value) { values[2] = value; kw_args--; }
        }
        CYTHON_FALLTHROUGH;
        case  3:
        if (kw_args > 0) {
          PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_w);
          if (value) { values[3] = value; kw_args--; }
        }
      }
      if (unlikely(kw_args > 0)) {
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "__init__") < 0)) __PYX_ERR(0, 821, __pyx_L3_error)
      }
    } else {
      switch (PyTuple_GET_SIZE(__pyx_args)) {
        case  4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
        CYTHON_FALLTHROUGH;
        case  3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
        CYTHON_FALLTHROUGH;
        case  2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
        CYTHON_FALLTHROUGH;
        case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
    }
    __pyx_v_x = values[0];
    __pyx_v_y = values[1];
    __pyx_v_z = values[2];
    __pyx_v_w = values[3];
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__init__", 0, 0, 4, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 821, __pyx_L3_error)
  __pyx_L3_error:;
  __Pyx_AddTraceback("cgl.ivec4.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_3cgl_5ivec4___init__(((struct __pyx_obj_3cgl_ivec4 *)__pyx_v_self), __pyx_v_x, __pyx_v_y, __pyx_v_z, __pyx_v_w);

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_3cgl_5ivec4___init__(struct __pyx_obj_3cgl_ivec4 *__pyx_v_self, PyObject *__pyx_v_x, PyObject *__pyx_v_y, PyObject *__pyx_v_z, PyObject *__pyx_v_w) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  struct CGL_ivec4 __pyx_t_1;
  CGL_int __pyx_t_2;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__init__", 0);

  /* "cgl_wrapper.pyx":822
 * 
 *     def __init__(self, x: int = 0, y: int = 0, z: int = 0, w: int = 0):
 *         self.c_ivec4 = CGL_ivec4(x, y, z, w)             # <<<<<<<<<<<<<<
 * 
 *     def __repr__(self):
 */
  __pyx_t_2 = __Pyx_PyInt_As_CGL_int(__pyx_v_x); if (unlikely((__pyx_t_2 == ((CGL_int)-1)) && PyErr_Occurred())) __PYX_ERR(0, 822, __pyx_L1_error)
  __pyx_t_1.x = __pyx_t_2;
  __pyx_t_2 = __Pyx_PyInt_As_CGL_int(__pyx_v_y); if (unlikely((__pyx_t_2 == ((CGL_int)-1)) && PyErr_Occurred())) __PYX_ERR(0, 822, __pyx_L1_error)
  __pyx_t_1.y = __pyx_t_2;
  __pyx_t_2 = __Pyx_PyInt_As_CGL_int(__pyx_v_z); if (unlikely((__pyx_t_2 == ((CGL_int)-1)) && PyErr_Occurred())) __PYX_ERR(0, 822, __pyx_L1_error)
  __pyx_t_1.z = __pyx_t_2;
  __pyx_t_2 = __Pyx_PyInt_As_CGL_int(__pyx_v_w); if (unlikely((__pyx_t_2 == ((CGL_int)-1)) && PyErr_Occurred())) __PYX_ERR(0, 822, __pyx_L1_error)
  __pyx_t_1.w = __pyx_t_2;
  __pyx_v_self->c_ivec4 = __pyx_t_1;

  /* "cgl_wrapper.pyx":821
 *     cdef CGL_ivec4 c_ivec4
 * 
 *     def __init__(self, x: int = 0, y: int = 0, z: int = 0, w: int = 0):             # <<<<<<<<<<<<<<
 *         self.c_ivec4 = CGL_ivec4(x, y, z, w)
 * 
 */

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_AddTraceback("cgl.ivec4.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cgl_wrapper.pyx":824
 *         self.c_ivec4 = CGL_ivec4(x, y, z, w)
 * 
 *     def __repr__(self):             # <<<<<<<<<<<<<<
 *         return f"ivec4({self.c_ivec4.x}, {self.c_ivec4.y}, {self.c_ivec4.z}, {self.c_ivec4.w})"
 * 
 */

/* Python wrapper */
static PyObject *__pyx_pw_3cgl_5ivec4_3__repr__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_3cgl_5ivec4_3__repr__(PyObject *__pyx_v_self) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__repr__ (wrapper)", 0);
  __pyx_r = __pyx_pf_3cgl_5ivec4_2__repr__(((struct __pyx_obj_3cgl_ivec4 *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_3cgl_5ivec4_2__repr__(struct __pyx_obj_3cgl_ivec4 *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  Py_ssize_t __pyx_t_2;
  Py_UCS4 __pyx_t_3;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__repr__", 0);

  /* "cgl_wrapper.pyx":825
 * 
 *     def __repr__(self):
 *         return f"ivec4({self.c_ivec4.x}, {self.c_ivec4.y}, {self.c_ivec4.z}, {self.c_ivec4.w})"             # <<<<<<<<<<<<<<
 * 
 *     def __str__(self):
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = PyTuple_New(9); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 825, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = 0;
  __pyx_t_3 = 127;
  __Pyx_INCREF(__pyx_kp_u_ivec4);
  __pyx_t_2 += 6;
  __Pyx_GIVEREF(__pyx_kp_u_ivec4);
  PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_kp_u_ivec4);
  __pyx_t_4 = __Pyx_PyInt_From_CGL_int(__pyx_v_self->c_ivec4.x); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 825, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_5 = __Pyx_PyObject_FormatSimple(__pyx_t_4, __pyx_empty_unicode); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 825, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __pyx_t_3 = (__Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_5) > __pyx_t_3) ? __Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_5) : __pyx_t_3;
  __pyx_t_2 += __Pyx_PyUnicode_GET_LENGTH(__pyx_t_5);
  __Pyx_GIVEREF(__pyx_t_5);
  PyTuple_SET_ITEM(__pyx_t_1, 1, __pyx_t_5);
  __pyx_t_5 = 0;
  __Pyx_INCREF(__pyx_kp_u__3);
  __pyx_t_2 += 2;
  __Pyx_GIVEREF(__pyx_kp_u__3);
  PyTuple_SET_ITEM(__pyx_t_1, 2, __pyx_kp_u__3);
  __pyx_t_5 = __Pyx_PyInt_From_CGL_int(__pyx_v_self->c_ivec4.y); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 825, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __pyx_t_4 = __Pyx_PyObject_FormatSimple(__pyx_t_5, __pyx_empty_unicode); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 825, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
  __pyx_t_3 = (__Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_4) > __pyx_t_3) ? __Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_4) : __pyx_t_3;
  __pyx_t_2 += __Pyx_PyUnicode_GET_LENGTH(__pyx_t_4);
  __Pyx_GIVEREF(__pyx_t_4);
  PyTuple_SET_ITEM(__pyx_t_1, 3, __pyx_t_4);
  __pyx_t_4 = 0;
  __Pyx_INCREF(__pyx_kp_u__3);
  __pyx_t_2 += 2;
  __Pyx_GIVEREF(__pyx_kp_u__3);
  PyTuple_SET_ITEM(__pyx_t_1, 4, __pyx_kp_u__3);
  __pyx_t_4 = __Pyx_PyInt_From_CGL_int(__pyx_v_self->c_ivec4.z); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 825, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_5 = __Pyx_PyObject_FormatSimple(__pyx_t_4, __pyx_empty_unicode); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 825, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __pyx_t_3 = (__Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_5) > __pyx_t_3) ? __Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_5) : __pyx_t_3;
  __pyx_t_2 += __Pyx_PyUnicode_GET_LENGTH(__pyx_t_5);
  __Pyx_GIVEREF(__pyx_t_5);
  PyTuple_SET_ITEM(__pyx_t_1, 5, __pyx_t_5);
  __pyx_t_5 = 0;
  __Pyx_INCREF(__pyx_kp_u__3);
  __pyx_t_2 += 2;
  __Pyx_GIVEREF(__pyx_kp_u__3);
  PyTuple_SET_ITEM(__pyx_t_1, 6, __pyx_kp_u__3);
  __pyx_t_5 = __Pyx_PyInt_From_CGL_int(__pyx_v_self->c_ivec4.w); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 825, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __pyx_t_4 = __Pyx_PyObject_FormatSimple(__pyx_t_5, __pyx_empty_unicode); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 825, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
  __pyx_t_3 = (__Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_4) > __pyx_t_3) ? __Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_4) : __pyx_t_3;
  __pyx_t_2 += __Pyx_PyUnicode_GET_LENGTH(__pyx_t_4);
  __Pyx_GIVEREF(__pyx_t_4);
  PyTuple_SET_ITEM(__pyx_t_1, 7, __pyx_t_4);
  __pyx_t_4 = 0;
  __Pyx_INCREF(__pyx_kp_u__4);
  __pyx_t_2 += 1;
  __Pyx_GIVEREF(__pyx_kp_u__4);
  PyTuple_SET_ITEM(__pyx_t_1, 8, __pyx_kp_u__4);
  __pyx_t_4 = __Pyx_PyUnicode_Join(__pyx_t_1, 9, __pyx_t_2, __pyx_t_3); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 825, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_r = __pyx_t_4;
  __pyx_t_4 = 0;
  goto __pyx_L0;

  /* "cgl_wrapper.pyx":824
 *         self.c_ivec4 = CGL_ivec4(x, y, z, w)
 * 
 *     def __repr__(self):             # <<<<<<<<<<<<<<
 *         return f"ivec4({self.c_ivec4.x}, {self.c_ivec4.y}, {self.c_ivec4.z}, {self.c_ivec4.w})"
 * 
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("cgl.ivec4.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cgl_wrapper.pyx":827
 *         return f"ivec4({self.c_ivec4.x}, {self.c_ivec4.y}, {self.c_ivec4.z}, {self.c_ivec4.w})"
 * 
 *     def __str__(self):             # <<<<<<<<<<<<<<
 *         return f"ivec4({self.c_ivec4.x}, {self.c_ivec4.y}, {self.c_ivec4.z}, {self.c_ivec4.w})"
 * 
 */

/* Python wrapper */
static PyObject *__pyx_pw_3cgl_5ivec4_5__str__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_3cgl_5ivec4_5__str__(PyObject *__pyx_v_self) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__str__ (wrapper)", 0);
  __pyx_r = __pyx_pf_3cgl_5ivec4_4__str__(((struct __pyx_obj_3cgl_ivec4 *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_3cgl_5ivec4_4__str__(struct __pyx_obj_3cgl_ivec4 *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  Py_ssize_t __pyx_t_2;
  Py_UCS4 __pyx_t_3;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__str__", 0);

  /* "cgl_wrapper.pyx":828
 * 
 *     def __str__(self):
 *         return f"ivec4({self.c_ivec4.x}, {self.c_ivec4.y}, {self.c_ivec4.z}, {self.c_ivec4.w})"             # <<<<<<<<<<<<<<
 * 
 *     def __getitem__(self, index: int):
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = PyTuple_New(9); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 828, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = 0;
  __pyx_t_3 = 127;
  __Pyx_INCREF(__pyx_kp_u_ivec4);
  __pyx_t_2 += 6;
  __Pyx_GIVEREF(__pyx_kp_u_ivec4);
  PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_kp_u_ivec4);
  __pyx_t_4 = __Pyx_PyInt_From_CGL_int(__pyx_v_self->c_ivec4.x); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 828, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_5 = __Pyx_PyObject_FormatSimple(__pyx_t_4, __pyx_empty_unicode); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 828, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __pyx_t_3 = (__Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_5) > __pyx_t_3) ? __Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_5) : __pyx_t_3;
  __pyx_t_2 += __Pyx_PyUnicode_GET_LENGTH(__pyx_t_5);
  __Pyx_GIVEREF(__pyx_t_5);
  PyTuple_SET_ITEM(__pyx_t_1, 1, __pyx_t_5);
  __pyx_t_5 = 0;
  __Pyx_INCREF(__pyx_kp_u__3);
  __pyx_t_2 += 2;
  __Pyx_GIVEREF(__pyx_kp_u__3);
  PyTuple_SET_ITEM(__pyx_t_1, 2, __pyx_kp_u__3);
  __pyx_t_5 = __Pyx_PyInt_From_CGL_int(__pyx_v_self->c_ivec4.y); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 828, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __pyx_t_4 = __Pyx_PyObject_FormatSimple(__pyx_t_5, __pyx_empty_unicode); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 828, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
  __pyx_t_3 = (__Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_4) > __pyx_t_3) ? __Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_4) : __pyx_t_3;
  __pyx_t_2 += __Pyx_PyUnicode_GET_LENGTH(__pyx_t_4);
  __Pyx_GIVEREF(__pyx_t_4);
  PyTuple_SET_ITEM(__pyx_t_1, 3, __pyx_t_4);
  __pyx_t_4 = 0;
  __Pyx_INCREF(__pyx_kp_u__3);
  __pyx_t_2 += 2;
  __Pyx_GIVEREF(__pyx_kp_u__3);
  PyTuple_SET_ITEM(__pyx_t_1, 4, __pyx_kp_u__3);
  __pyx_t_4 = __Pyx_PyInt_From_CGL_int(__pyx_v_self->c_ivec4.z); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 828, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_5 = __Pyx_PyObject_FormatSimple(__pyx_t_4, __pyx_empty_unicode); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 828, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __pyx_t_3 = (__Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_5) > __pyx_t_3) ? __Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_5) : __pyx_t_3;
  __pyx_t_2 += __Pyx_PyUnicode_GET_LENGTH(__pyx_t_5);
  __Pyx_GIVEREF(__pyx_t_5);
  PyTuple_SET_ITEM(__pyx_t_1, 5, __pyx_t_5);
  __pyx_t_5 = 0;
  __Pyx_INCREF(__pyx_kp_u__3);
  __pyx_t_2 += 2;
  __Pyx_GIVEREF(__pyx_kp_u__3);
  PyTuple_SET_ITEM(__pyx_t_1, 6, __pyx_kp_u__3);
  __pyx_t_5 = __Pyx_PyInt_From_CGL_int(__pyx_v_self->c_ivec4.w); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 828, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __pyx_t_4 = __Pyx_PyObject_FormatSimple(__pyx_t_5, __pyx_empty_unicode); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 828, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
  __pyx_t_3 = (__Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_4) > __pyx_t_3) ? __Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_4) : __pyx_t_3;
  __pyx_t_2 += __Pyx_PyUnicode_GET_LENGTH(__pyx_t_4);
  __Pyx_GIVEREF(__pyx_t_4);
  PyTuple_SET_ITEM(__pyx_t_1, 7, __pyx_t_4);
  __pyx_t_4 = 0;
  __Pyx_INCREF(__pyx_kp_u__4);
  __pyx_t_2 += 1;
  __Pyx_GIVEREF(__pyx_kp_u__4);
  PyTuple_SET_ITEM(__pyx_t_1, 8, __pyx_kp_u__4);
  __pyx_t_4 = __Pyx_PyUnicode_Join(__pyx_t_1, 9, __pyx_t_2, __pyx_t_3); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 828, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_r = __pyx_t_4;
  __pyx_t_4 = 0;
  goto __pyx_L0;

  /* "cgl_wrapper.pyx":827
 *         return f"ivec4({self.c_ivec4.x}, {self.c_ivec4.y}, {self.c_ivec4.z}, {self.c_ivec4.w})"
 * 
 *     def __str__(self):             # <<<<<<<<<<<<<<
 *         return f"ivec4({self.c_ivec4.x}, {self.c_ivec4.y}, {self.c_ivec4.z}, {self.c_ivec4.w})"
 * 
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("cgl.ivec4.__str__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cgl_wrapper.pyx":830
 *         return f"ivec4({self.c_ivec4.x}, {self.c_ivec4.y}, {self.c_ivec4.z}, {self.c_ivec4.w})"
 * 
 *     def __getitem__(self, index: int):             # <<<<<<<<<<<<<<
 *         if index == 0:
 *             return self.c_ivec4.x
 */

/* Python wrapper */
static PyObject *__pyx_pw_3cgl_5ivec4_7__getitem__(PyObject *__pyx_v_self, PyObject *__pyx_v_index); /*proto*/
static PyObject *__pyx_pw_3cgl_5ivec4_7__getitem__(PyObject *__pyx_v_self, PyObject *__pyx_v_index) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__getitem__ (wrapper)", 0);
  __pyx_r = __pyx_pf_3cgl_5ivec4_6__getitem__(((struct __pyx_obj_3cgl_ivec4 *)__pyx_v_self), ((PyObject *)__pyx_v_index));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_3cgl_5ivec4_6__getitem__(struct __pyx_obj_3cgl_ivec4 *__pyx_v_self, PyObject *__pyx_v_index) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  int __pyx_t_2;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__getitem__", 0);

  /* "cgl_wrapper.pyx":831
 * 
 *     def __getitem__(self, index: int):
 *         if index == 0:             # <<<<<<<<<<<<<<
 *             return self.c_ivec4.x
 *         elif index == 1:
 */
  __pyx_t_1 = __Pyx_PyInt_EqObjC(__pyx_v_index, __pyx_int_0, 0, 0); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 831, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely(__pyx_t_2 < 0)) __PYX_ERR(0, 831, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  if (__pyx_t_2) {

    /* "cgl_wrapper.pyx":832
 *     def __getitem__(self, index: int):
 *         if index == 0:
 *             return self.c_ivec4.x             # <<<<<<<<<<<<<<
 *         elif index == 1:
 *             return self.c_ivec4.y
 */
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_1 = __Pyx_PyInt_From_CGL_int(__pyx_v_self->c_ivec4.x); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 832, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_r = __pyx_t_1;
    __pyx_t_1 = 0;
    goto __pyx_L0;

    /* "cgl_wrapper.pyx":831
 * 
 *     def __getitem__(self, index: int):
 *         if index == 0:             # <<<<<<<<<<<<<<
 *             return self.c_ivec4.x
 *         elif index == 1:
 */
  }

  /* "cgl_wrapper.pyx":833
 *         if index == 0:
 *             return self.c_ivec4.x
 *         elif index == 1:             # <<<<<<<<<<<<<<
 *             return self.c_ivec4.y
 *         elif index == 2:
 */
  __pyx_t_1 = __Pyx_PyInt_EqObjC(__pyx_v_index, __pyx_int_1, 1, 0); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 833, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely(__pyx_t_2 < 0)) __PYX_ERR(0, 833, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  if (__pyx_t_2) {

    /* "cgl_wrapper.pyx":834
 *             return self.c_ivec4.x
 *         elif index == 1:
 *             return self.c_ivec4.y             # <<<<<<<<<<<<<<
 *         elif index == 2:
 *             return self.c_ivec4.z
 */
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_1 = __Pyx_PyInt_From_CGL_int(__pyx_v_self->c_ivec4.y); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 834, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_r = __pyx_t_1;
    __pyx_t_1 = 0;
    goto __pyx_L0;

    /* "cgl_wrapper.pyx":833
 *         if index == 0:
 *             return self.c_ivec4.x
 *         elif index == 1:             # <<<<<<<<<<<<<<
 *             return self.c_ivec4.y
 *         elif index == 2:
 */
  }

  /* "cgl_wrapper.pyx":835
 *         elif index == 1:
 *             return self.c_ivec4.y
 *         elif index == 2:             # <<<<<<<<<<<<<<
 *             return self.c_ivec4.z
 *         elif index == 3:
 */
  __pyx_t_1 = __Pyx_PyInt_EqObjC(__pyx_v_index, __pyx_int_2, 2, 0); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 835, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely(__pyx_t_2 < 0)) __PYX_ERR(0, 835, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  if (__pyx_t_2) {

    /* "cgl_wrapper.pyx":836
 *             return self.c_ivec4.y
 *         elif index == 2:
 *             return self.c_ivec4.z             # <<<<<<<<<<<<<<
 *         elif index == 3:
 *             return self.c_ivec4.w
 */
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_1 = __Pyx_PyInt_From_CGL_int(__pyx_v_self->c_ivec4.z); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 836, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_r = __pyx_t_1;
    __pyx_t_1 = 0;
    goto __pyx_L0;

    /* "cgl_wrapper.pyx":835
 *         elif index == 1:
 *             return self.c_ivec4.y
 *         elif index == 2:             # <<<<<<<<<<<<<<
 *             return self.c_ivec4.z
 *         elif index == 3:
 */
  }

  /* "cgl_wrapper.pyx":837
 *         elif index == 2:
 *             return self.c_ivec4.z
 *         elif index == 3:             # <<<<<<<<<<<<<<
 *             return self.c_ivec4.w
 *         else:
 */
  __pyx_t_1 = __Pyx_PyInt_EqObjC(__pyx_v_index, __pyx_int_3, 3, 0); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 837, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely(__pyx_t_2 < 0)) __PYX_ERR(0, 837, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  if (likely(__pyx_t_2)) {

    /* "cgl_wrapper.pyx":838
 *             return self.c_ivec4.z
 *         elif index == 3:
 *             return self.c_ivec4.w             # <<<<<<<<<<<<<<
 *         else:
 *             raise IndexError()
 */
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_1 = __Pyx_PyInt_From_CGL_int(__pyx_v_self->c_ivec4.w); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 838, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_r = __pyx_t_1;
    __pyx_t_1 = 0;
    goto __pyx_L0;

    /* "cgl_wrapper.pyx":837
 *         elif index == 2:
 *             return self.c_ivec4.z
 *         elif index == 3:             # <<<<<<<<<<<<<<
 *             return self.c_ivec4.w
 *         else:
 */
  }

  /* "cgl_wrapper.pyx":840
 *             return self.c_ivec4.w
 *         else:
 *             raise IndexError()             # <<<<<<<<<<<<<<
 * 
 *     def __setitem__(self, index: int, value: int):
 */
  /*else*/ {
    __pyx_t_1 = __Pyx_PyObject_CallNoArg(__pyx_builtin_IndexError); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 840, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __Pyx_Raise(__pyx_t_1, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    __PYX_ERR(0, 840, __pyx_L1_error)
  }

  /* "cgl_wrapper.pyx":830
 *         return f"ivec4({self.c_ivec4.x}, {self.c_ivec4.y}, {self.c_ivec4.z}, {self.c_ivec4.w})"
 * 
 *     def __getitem__(self, index: int):             # <<<<<<<<<<<<<<
 *         if index == 0:
 *             return self.c_ivec4.x
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cgl.ivec4.__getitem__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cgl_wrapper.pyx":842
 *             raise IndexError()
 * 
 *     def __setitem__(self, index: int, value: int):             # <<<<<<<<<<<<<<
 *         if index == 0:
 *             self.c_ivec4.x = value
 */

/* Python wrapper */
static int __pyx_pw_3cgl_5ivec4_9__setitem__(PyObject *__pyx_v_self, PyObject *__pyx_v_index, PyObject *__pyx_v_value); /*proto*/
static int __pyx_pw_3cgl_5ivec4_9__setitem__(PyObject *__pyx_v_self, PyObject *__pyx_v_index, PyObject *__pyx_v_value) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__setitem__ (wrapper)", 0);
  __pyx_r = __pyx_pf_3cgl_5ivec4_8__setitem__(((struct __pyx_obj_3cgl_ivec4 *)__pyx_v_self), ((PyObject *)__pyx_v_index), ((PyObject *)__pyx_v_value));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_3cgl_5ivec4_8__setitem__(struct __pyx_obj_3cgl_ivec4 *__pyx_v_self, PyObject *__pyx_v_index, PyObject *__pyx_v_value) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  int __pyx_t_2;
  CGL_int __pyx_t_3;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__setitem__", 0);

  /* "cgl_wrapper.pyx":843
 * 
 *     def __setitem__(self, index: int, value: int):
 *         if index == 0:             # <<<<<<<<<<<<<<
 *             self.c_ivec4.x = value
 *         elif index == 1:
 */
  __pyx_t_1 = __Pyx_PyInt_EqObjC(__pyx_v_index, __pyx_int_0, 0, 0); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 843, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely(__pyx_t_2 < 0)) __PYX_ERR(0, 843, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  if (__pyx_t_2) {

    /* "cgl_wrapper.pyx":844
 *     def __setitem__(self, index: int, value: int):
 *         if index == 0:
 *             self.c_ivec4.x = value             # <<<<<<<<<<<<<<
 *         elif index == 1:
 *             self.c_ivec4.y = value
 */
    __pyx_t_3 = __Pyx_PyInt_As_CGL_int(__pyx_v_value); if (unlikely((__pyx_t_3 == ((CGL_int)-1)) && PyErr_Occurred())) __PYX_ERR(0, 844, __pyx_L1_error)
    __pyx_v_self->c_ivec4.x = __pyx_t_3;

    /* "cgl_wrapper.pyx":843
 * 
 *     def __setitem__(self, index: int, value: int):
 *         if index == 0:             # <<<<<<<<<<<<<<
 *             self.c_ivec4.x = value
 *         elif index == 1:
 */
    goto __pyx_L3;
  }

  /* "cgl_wrapper.pyx":845
 *         if index == 0:
 *             self.c_ivec4.x = value
 *         elif index == 1:             # <<<<<<<<<<<<<<
 *             self.c_ivec4.y = value
 *         elif index == 2:
 */
  __pyx_t_1 = __Pyx_PyInt_EqObjC(__pyx_v_index, __pyx_int_1, 1, 0); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 845, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely(__pyx_t_2 < 0)) __PYX_ERR(0, 845, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  if (__pyx_t_2) {

    /* "cgl_wrapper.pyx":846
 *             self.c_ivec4.x = value
 *         elif index == 1:
 *             self.c_ivec4.y = value             # <<<<<<<<<<<<<<
 *         elif index == 2:
 *             self.c_ivec4.z = value
 */
    __pyx_t_3 = __Pyx_PyInt_As_CGL_int(__pyx_v_value); if (unlikely((__pyx_t_3 == ((CGL_int)-1)) && PyErr_Occurred())) __PYX_ERR(0, 846, __pyx_L1_error)
    __pyx_v_self->c_ivec4.y = __pyx_t_3;

    /* "cgl_wrapper.pyx":845
 *         if index == 0:
 *             self.c_ivec4.x = value
 *         elif index == 1:             # <<<<<<<<<<<<<<
 *             self.c_ivec4.y = value
 *         elif index == 2:
 */
    goto __pyx_L3;
  }

  /* "cgl_wrapper.pyx":847
 *         elif index == 1:
 *             self.c_ivec4.y = value
 *         elif index == 2:             # <<<<<<<<<<<<<<
 *             self.c_ivec4.z = value
 *         elif index == 3:
 */
  __pyx_t_1 = __Pyx_PyInt_EqObjC(__pyx_v_index, __pyx_int_2, 2, 0); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 847, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely(__pyx_t_2 < 0)) __PYX_ERR(0, 847, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  if (__pyx_t_2) {

    /* "cgl_wrapper.pyx":848
 *             self.c_ivec4.y = value
 *         elif index == 2:
 *             self.c_ivec4.z = value             # <<<<<<<<<<<<<<
 *         elif index == 3:
 *             self.c_ivec4.w = value
 */
    __pyx_t_3 = __Pyx_PyInt_As_CGL_int(__pyx_v_value); if (unlikely((__pyx_t_3 == ((CGL_int)-1)) && PyErr_Occurred())) __PYX_ERR(0, 848, __pyx_L1_error)
    __pyx_v_self->c_ivec4.z = __pyx_t_3;

    /* "cgl_wrapper.pyx":847
 *         elif index == 1:
 *             self.c_ivec4.y = value
 *         elif index == 2:             # <<<<<<<<<<<<<<
 *             self.c_ivec4.z = value
 *         elif index == 3:
 */
    goto __pyx_L3;
  }

  /* "cgl_wrapper.pyx":849
 *         elif index == 2:
 *             self.c_ivec4.z = value
 *         elif index == 3:             # <<<<<<<<<<<<<<
 *             self.c_ivec4.w = value
 *         else:
 */
  __pyx_t_1 = __Pyx_PyInt_EqObjC(__pyx_v_index, __pyx_int_3, 3, 0); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 849, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely(__pyx_t_2 < 0)) __PYX_ERR(0, 849, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  if (likely(__pyx_t_2)) {

    /* "cgl_wrapper.pyx":850
 *             self.c_ivec4.z = value
 *         elif index == 3:
 *             self.c_ivec4.w = value             # <<<<<<<<<<<<<<
 *         else:
 *             raise IndexError()
 */
    __pyx_t_3 = __Pyx_PyInt_As_CGL_int(__pyx_v_value); if (unlikely((__pyx_t_3 == ((CGL_int)-1)) && PyErr_Occurred())) __PYX_ERR(0, 850, __pyx_L1_error)
    __pyx_v_self->c_ivec4.w = __pyx_t_3;

    /* "cgl_wrapper.pyx":849
 *         elif index == 2:
 *             self.c_ivec4.z = value
 *         elif index == 3:             # <<<<<<<<<<<<<<
 *             self.c_ivec4.w = value
 *         else:
 */
    goto __pyx_L3;
  }

  /* "cgl_wrapper.pyx":852
 *             self.c_ivec4.w = value
 *         else:
 *             raise IndexError()             # <<<<<<<<<<<<<<
 * 
 *     def __hash__(self):
 */
  /*else*/ {
    __pyx_t_1 = __Pyx_PyObject_CallNoArg(__pyx_builtin_IndexError); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 852, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __Pyx_Raise(__pyx_t_1, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    __PYX_ERR(0, 852, __pyx_L1_error)
  }
  __pyx_L3:;

  /* "cgl_wrapper.pyx":842
 *             raise IndexError()
 * 
 *     def __setitem__(self, index: int, value: int):             # <<<<<<<<<<<<<<
 *         if index == 0:
 *             self.c_ivec4.x = value
 */

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cgl.ivec4.__setitem__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cgl_wrapper.pyx":854
 *             raise IndexError()
 * 
 *     def __hash__(self):             # <<<<<<<<<<<<<<
 *         return hash((self.c_ivec4.x, self.c_ivec4.y, self.c_ivec4.z, self.c_ivec4.w))
 * 
 */

/* Python wrapper */
static Py_hash_t __pyx_pw_3cgl_5ivec4_11__hash__(PyObject *__pyx_v_self); /*proto*/
static Py_hash_t __pyx_pw_3cgl_5ivec4_11__hash__(PyObject *__pyx_v_self) {
  Py_hash_t __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__hash__ (wrapper)", 0);
  __pyx_r = __pyx_pf_3cgl_5ivec4_10__hash__(((struct __pyx_obj_3cgl_ivec4 *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static Py_hash_t __pyx_pf_3cgl_5ivec4_10__hash__(struct __pyx_obj_3cgl_ivec4 *__pyx_v_self) {
  Py_hash_t __pyx_r;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  Py_hash_t __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__hash__", 0);

  /* "cgl_wrapper.pyx":855
 * 
 *     def __hash__(self):
 *         return hash((self.c_ivec4.x, self.c_ivec4.y, self.c_ivec4.z, self.c_ivec4.w))             # <<<<<<<<<<<<<<
 * 
 *     def __getattr__(self, name: str):
 */
  __pyx_t_1 = __Pyx_PyInt_From_CGL_int(__pyx_v_self->c_ivec4.x); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 855, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = __Pyx_PyInt_From_CGL_int(__pyx_v_self->c_ivec4.y); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 855, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = __Pyx_PyInt_From_CGL_int(__pyx_v_self->c_ivec4.z); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 855, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = __Pyx_PyInt_From_CGL_int(__pyx_v_self->c_ivec4.w); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 855, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_5 = PyTuple_New(4); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 855, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_GIVEREF(__pyx_t_1);
  PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_1);
  __Pyx_GIVEREF(__pyx_t_2);
  PyTuple_SET_ITEM(__pyx_t_5, 1, __pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_3);
  PyTuple_SET_ITEM(__pyx_t_5, 2, __pyx_t_3);
  __Pyx_GIVEREF(__pyx_t_4);
  PyTuple_SET_ITEM(__pyx_t_5, 3, __pyx_t_4);
  __pyx_t_1 = 0;
  __pyx_t_2 = 0;
  __pyx_t_3 = 0;
  __pyx_t_4 = 0;
  __pyx_t_6 = PyObject_Hash(__pyx_t_5); if (unlikely(__pyx_t_6 == ((Py_hash_t)-1))) __PYX_ERR(0, 855, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
  __pyx_r = __pyx_t_6;
  goto __pyx_L0;

  /* "cgl_wrapper.pyx":854
 *             raise IndexError()
 * 
 *     def __hash__(self):             # <<<<<<<<<<<<<<
 *         return hash((self.c_ivec4.x, self.c_ivec4.y, self.c_ivec4.z, self.c_ivec4.w))
 * 
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("cgl.ivec4.__hash__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  if (unlikely(__pyx_r == -1) && !PyErr_Occurred()) __pyx_r = -2;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cgl_wrapper.pyx":857
 *         return hash((self.c_ivec4.x, self.c_ivec4.y, self.c_ivec4.z, self.c_ivec4.w))
 * 
 *     def __getattr__(self, name: str):             # <<<<<<<<<<<<<<
 *         if name == "x":
 *             return self.c_ivec4.x
 */

/* Python wrapper */
static PyObject *__pyx_pw_3cgl_5ivec4_13__getattr__(PyObject *__pyx_v_self, PyObject *__pyx_v_name); /*proto*/
static PyObject *__pyx_pw_3cgl_5ivec4_13__getattr__(PyObject *__pyx_v_self, PyObject *__pyx_v_name) {
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__getattr__ (wrapper)", 0);
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_name), (&PyString_Type), 1, "name", 1))) __PYX_ERR(0, 857, __pyx_L1_error)
  __pyx_r = __pyx_pf_3cgl_5ivec4_12__getattr__(((struct __pyx_obj_3cgl_ivec4 *)__pyx_v_self), ((PyObject*)__pyx_v_name));

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_3cgl_5ivec4_12__getattr__(struct __pyx_obj_3cgl_ivec4 *__pyx_v_self, PyObject *__pyx_v_name) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__getattr__", 0);

  /* "cgl_wrapper.pyx":858
 * 
 *     def __getattr__(self, name: str):
 *         if name == "x":             # <<<<<<<<<<<<<<
 *             return self.c_ivec4.x
 *         elif name == "y":
 */
  __pyx_t_1 = (__Pyx_PyString_Equals(__pyx_v_name, __pyx_n_s_x, Py_EQ)); if (unlikely(__pyx_t_1 < 0)) __PYX_ERR(0, 858, __pyx_L1_error)
  __pyx_t_2 = (__pyx_t_1 != 0);
  if (__pyx_t_2) {

    /* "cgl_wrapper.pyx":859
 *     def __getattr__(self, name: str):
 *         if name == "x":
 *             return self.c_ivec4.x             # <<<<<<<<<<<<<<
 *         elif name == "y":
 *             return self.c_ivec4.y
 */
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_3 = __Pyx_PyInt_From_CGL_int(__pyx_v_self->c_ivec4.x); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 859, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_r = __pyx_t_3;
    __pyx_t_3 = 0;
    goto __pyx_L0;

    /* "cgl_wrapper.pyx":858
 * 
 *     def __getattr__(self, name: str):
 *         if name == "x":             # <<<<<<<<<<<<<<
 *             return self.c_ivec4.x
 *         elif name == "y":
 */
  }

  /* "cgl_wrapper.pyx":860
 *         if name == "x":
 *             return self.c_ivec4.x
 *         elif name == "y":             # <<<<<<<<<<<<<<
 *             return self.c_ivec4.y
 *         elif name == "z":
 */
  __pyx_t_2 = (__Pyx_PyString_Equals(__pyx_v_name, __pyx_n_s_y, Py_EQ)); if (unlikely(__pyx_t_2 < 0)) __PYX_ERR(0, 860, __pyx_L1_error)
  __pyx_t_1 = (__pyx_t_2 != 0);
  if (__pyx_t_1) {

    /* "cgl_wrapper.pyx":861
 *             return self.c_ivec4.x
 *         elif name == "y":
 *             return self.c_ivec4.y             # <<<<<<<<<<<<<<
 *         elif name == "z":
 *             return self.c_ivec4.z
 */
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_3 = __Pyx_PyInt_From_CGL_int(__pyx_v_self->c_ivec4.y); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 861, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_r = __pyx_t_3;
    __pyx_t_3 = 0;
    goto __pyx_L0;

    /* "cgl_wrapper.pyx":860
 *         if name == "x":
 *             return self.c_ivec4.x
 *         elif name == "y":             # <<<<<<<<<<<<<<
 *             return self.c_ivec4.y
 *         elif name == "z":
 */
  }

  /* "cgl_wrapper.pyx":862
 *         elif name == "y":
 *             return self.c_ivec4.y
 *         elif name == "z":             # <<<<<<<<<<<<<<
 *             return self.c_ivec4.z
 *         elif name == "w":
 */
  __pyx_t_1 = (__Pyx_PyString_Equals(__pyx_v_name, __pyx_n_s_z, Py_EQ)); if (unlikely(__pyx_t_1 < 0)) __PYX_ERR(0, 862, __pyx_L1_error)
  __pyx_t_2 = (__pyx_t_1 != 0);
  if (__pyx_t_2) {

    /* "cgl_wrapper.pyx":863
 *             return self.c_ivec4.y
 *         elif name == "z":
 *             return self.c_ivec4.z             # <<<<<<<<<<<<<<
 *         elif name == "w":
 *             return self.c_ivec4.w
 */
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_3 = __Pyx_PyInt_From_CGL_int(__pyx_v_self->c_ivec4.z); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 863, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_r = __pyx_t_3;
    __pyx_t_3 = 0;
    goto __pyx_L0;

    /* "cgl_wrapper.pyx":862
 *         elif name == "y":
 *             return self.c_ivec4.y
 *         elif name == "z":             # <<<<<<<<<<<<<<
 *             return self.c_ivec4.z
 *         elif name == "w":
 */
  }

  /* "cgl_wrapper.pyx":864
 *         elif name == "z":
 *             return self.c_ivec4.z
 *         elif name == "w":             # <<<<<<<<<<<<<<
 *             return self.c_ivec4.w
 *         else:
 */
  __pyx_t_2 = (__Pyx_PyString_Equals(__pyx_v_name, __pyx_n_s_w, Py_EQ)); if (unlikely(__pyx_t_2 < 0)) __PYX_ERR(0, 864, __pyx_L1_error)
  __pyx_t_1 = (__pyx_t_2 != 0);
  if (likely(__pyx_t_1)) {

    /* "cgl_wrapper.pyx":865
 *             return self.c_ivec4.z
 *         elif name == "w":
 *             return self.c_ivec4.w             # <<<<<<<<<<<<<<
 *         else:
 *             raise AttributeError()
 */
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_3 = __Pyx_PyInt_From_CGL_int(__pyx_v_self->c_ivec4.w); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 865, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_r = __pyx_t_3;
    __pyx_t_3 = 0;
    goto __pyx_L0;

    /* "cgl_wrapper.pyx":864
 *         elif name == "z":
 *             return self.c_ivec4.z
 *         elif name == "w":             # <<<<<<<<<<<<<<
 *             return self.c_ivec4.w
 *         else:
 */
  }

  /* "cgl_wrapper.pyx":867
 *             return self.c_ivec4.w
 *         else:
 *             raise AttributeError()             # <<<<<<<<<<<<<<
 * 
 *     def __setattr__(self, name: str, value: int):
 */
  /*else*/ {
    __pyx_t_3 = __Pyx_PyObject_CallNoArg(__pyx_builtin_AttributeError); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 867, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_Raise(__pyx_t_3, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __PYX_ERR(0, 867, __pyx_L1_error)
  }

  /* "cgl_wrapper.pyx":857
 *         return hash((self.c_ivec4.x, self.c_ivec4.y, self.c_ivec4.z, self.c_ivec4.w))
 * 
 *     def __getattr__(self, name: str):             # <<<<<<<<<<<<<<
 *         if name == "x":
 *             return self.c_ivec4.x
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_AddTraceback("cgl.ivec4.__getattr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cgl_wrapper.pyx":869
 *             raise AttributeError()
 * 
 *     def __setattr__(self, name: str, value: int):             # <<<<<<<<<<<<<<
 *         if name == "x":
 *             self.c_ivec4.x = value
 */

/* Python wrapper */
static int __pyx_pw_3cgl_5ivec4_15__setattr__(PyObject *__pyx_v_self, PyObject *__pyx_v_name, PyObject *__pyx_v_value); /*proto*/
static int __pyx_pw_3cgl_5ivec4_15__setattr__(PyObject *__pyx_v_self, PyObject *__pyx_v_name, PyObject *__pyx_v_value) {
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__setattr__ (wrapper)", 0);
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_name), (&PyString_Type), 1, "name", 1))) __PYX_ERR(0, 869, __pyx_L1_error)
  __pyx_r = __pyx_pf_3cgl_5ivec4_14__setattr__(((struct __pyx_obj_3cgl_ivec4 *)__pyx_v_self), ((PyObject*)__pyx_v_name), ((PyObject *)__pyx_v_value));

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_3cgl_5ivec4_14__setattr__(struct __pyx_obj_3cgl_ivec4 *__pyx_v_self, PyObject *__pyx_v_name, PyObject *__pyx_v_value) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  CGL_int __pyx_t_3;
  PyObject *__pyx_t_4 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__setattr__", 0);

  /* "cgl_wrapper.pyx":870
 * 
 *     def __setattr__(self, name: str, value: int):
 *         if name == "x":             # <<<<<<<<<<<<<<
 *             self.c_ivec4.x = value
 *         elif name == "y":
 */
  __pyx_t_1 = (__Pyx_PyString_Equals(__pyx_v_name, __pyx_n_s_x, Py_EQ)); if (unlikely(__pyx_t_1 < 0)) __PYX_ERR(0, 870, __pyx_L1_error)
  __pyx_t_2 = (__pyx_t_1 != 0);
  if (__pyx_t_2) {

    /* "cgl_wrapper.pyx":871
 *     def __setattr__(self, name: str, value: int):
 *         if name == "x":
 *             self.c_ivec4.x = value             # <<<<<<<<<<<<<<
 *         elif name == "y":
 *             self.c_ivec4.y = value
 */
    __pyx_t_3 = __Pyx_PyInt_As_CGL_int(__pyx_v_value); if (unlikely((__pyx_t_3 == ((CGL_int)-1)) && PyErr_Occurred())) __PYX_ERR(0, 871, __pyx_L1_error)
    __pyx_v_self->c_ivec4.x = __pyx_t_3;

    /* "cgl_wrapper.pyx":870
 * 
 *     def __setattr__(self, name: str, value: int):
 *         if name == "x":             # <<<<<<<<<<<<<<
 *             self.c_ivec4.x = value
 *         elif name == "y":
 */
    goto __pyx_L3;
  }

  /* "cgl_wrapper.pyx":872
 *         if name == "x":
 *             self.c_ivec4.x = value
 *         elif name == "y":             # <<<<<<<<<<<<<<
 *             self.c_ivec4.y = value
 *         elif name == "z":
 */
  __pyx_t_2 = (__Pyx_PyString_Equals(__pyx_v_name, __pyx_n_s_y, Py_EQ)); if (unlikely(__pyx_t_2 < 0)) __PYX_ERR(0, 872, __pyx_L1_error)
  __pyx_t_1 = (__pyx_t_2 != 0);
  if (__pyx_t_1) {

    /* "cgl_wrapper.pyx":873
 *             self.c_ivec4.x = value
 *         elif name == "y":
 *             self.c_ivec4.y = value             # <<<<<<<<<<<<<<
 *         elif name == "z":
 *             self.c_ivec4.z = value
 */
    __pyx_t_3 = __Pyx_PyInt_As_CGL_int(__pyx_v_value); if (unlikely((__pyx_t_3 == ((CGL_int)-1)) && PyErr_Occurred())) __PYX_ERR(0, 873, __pyx_L1_error)
    __pyx_v_self->c_ivec4.y = __pyx_t_3;

    /* "cgl_wrapper.pyx":872
 *         if name == "x":
 *             self.c_ivec4.x = value
 *         elif name == "y":             # <<<<<<<<<<<<<<
 *             self.c_ivec4.y = value
 *         elif name == "z":
 */
    goto __pyx_L3;
  }

  /* "cgl_wrapper.pyx":874
 *         elif name == "y":
 *             self.c_ivec4.y = value
 *         elif name == "z":             # <<<<<<<<<<<<<<
 *             self.c_ivec4.z = value
 *         elif name == "w":
 */
  __pyx_t_1 = (__Pyx_PyString_Equals(__pyx_v_name, __pyx_n_s_z, Py_EQ)); if (unlikely(__pyx_t_1 < 0)) __PYX_ERR(0, 874, __pyx_L1_error)
  __pyx_t_2 = (__pyx_t_1 != 0);
  if (__pyx_t_2) {

    /* "cgl_wrapper.pyx":875
 *             self.c_ivec4.y = value
 *         elif name == "z":
 *             self.c_ivec4.z = value             # <<<<<<<<<<<<<<
 *         elif name == "w":
 *             self.c_ivec4.w = value
 */
    __pyx_t_3 = __Pyx_PyInt_As_CGL_int(__pyx_v_value); if (unlikely((__pyx_t_3 == ((CGL_int)-1)) && PyErr_Occurred())) __PYX_ERR(0, 875, __pyx_L1_error)
    __pyx_v_self->c_ivec4.z = __pyx_t_3;

    /* "cgl_wrapper.pyx":874
 *         elif name == "y":
 *             self.c_ivec4.y = value
 *         elif name == "z":             # <<<<<<<<<<<<<<
 *             self.c_ivec4.z = value
 *         elif name == "w":
 */
    goto __pyx_L3;
  }

  /* "cgl_wrapper.pyx":876
 *         elif name == "z":
 *             self.c_ivec4.z = value
 *         elif name == "w":             # <<<<<<<<<<<<<<
 *             self.c_ivec4.w = value
 *         else:
 */
  __pyx_t_2 = (__Pyx_PyString_Equals(__pyx_v_name, __pyx_n_s_w, Py_EQ)); if (unlikely(__pyx_t_2 < 0)) __PYX_ERR(0, 876, __pyx_L1_error)
  __pyx_t_1 = (__pyx_t_2 != 0);
  if (likely(__pyx_t_1)) {

    /* "cgl_wrapper.pyx":877
 *             self.c_ivec4.z = value
 *         elif name == "w":
 *             self.c_ivec4.w = value             # <<<<<<<<<<<<<<
 *         else:
 *             raise AttributeError()
 */
    __pyx_t_3 = __Pyx_PyInt_As_CGL_int(__pyx_v_value); if (unlikely((__pyx_t_3 == ((CGL_int)-1)) && PyErr_Occurred())) __PYX_ERR(0, 877, __pyx_L1_error)
    __pyx_v_self->c_ivec4.w = __pyx_t_3;

    /* "cgl_wrapper.pyx":876
 *         elif name == "z":
 *             self.c_ivec4.z = value
 *         elif name == "w":             # <<<<<<<<<<<<<<
 *             self.c_ivec4.w = value
 *         else:
 */
    goto __pyx_L3;
  }

  /* "cgl_wrapper.pyx":879
 *             self.c_ivec4.w = value
 *         else:
 *             raise AttributeError()             # <<<<<<<<<<<<<<
 * 
 * cdef class mat4:
 */
  /*else*/ {
    __pyx_t_4 = __Pyx_PyObject_CallNoArg(__pyx_builtin_AttributeError); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 879, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_Raise(__pyx_t_4, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __PYX_ERR(0, 879, __pyx_L1_error)
  }
  __pyx_L3:;

  /* "cgl_wrapper.pyx":869
 *             raise AttributeError()
 * 
 *     def __setattr__(self, name: str, value: int):             # <<<<<<<<<<<<<<
 *         if name == "x":
 *             self.c_ivec4.x = value
 */

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cgl.ivec4.__setattr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError("Pickling of struct members such as self.c_ivec4 must be explicitly requested with @auto_pickle(True)")
 * def __setstate_cython__(self, __pyx_state):
 */

/* Python wrapper */
static PyObject *__pyx_pw_3cgl_5ivec4_17__reduce_cython__(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/
static PyObject *__pyx_pw_3cgl_5ivec4_17__reduce_cython__(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__reduce_cython__ (wrapper)", 0);
  __pyx_r = __pyx_pf_3cgl_5ivec4_16__reduce_cython__(((struct __pyx_obj_3cgl_ivec4 *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_3cgl_5ivec4_16__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_3cgl_ivec4 *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__reduce_cython__", 0);

  /* "(tree fragment)":2
 * def __reduce_cython__(self):
 *     raise TypeError("Pickling of struct members such as self.c_ivec4 must be explicitly requested with @auto_pickle(True)")             # <<<<<<<<<<<<<<
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError("Pickling of struct members such as self.c_ivec4 must be explicitly requested with @auto_pickle(True)")
 */
  __pyx_t_1 = __Pyx_PyObject_Call(__pyx_builtin_TypeError, __pyx_tuple__11, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 2, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_Raise(__pyx_t_1, 0, 0, 0);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __PYX_ERR(1, 2, __pyx_L1_error)

  /* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError("Pickling of struct members such as self.c_ivec4 must be explicitly requested with @auto_pickle(True)")
 * def __setstate_cython__(self, __pyx_state):
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cgl.ivec4.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError("Pickling of struct members such as self.c_ivec4 must be explicitly requested with @auto_pickle(True)")
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError("Pickling of struct members such as self.c_ivec4 must be explicitly requested with @auto_pickle(True)")
 */

/* Python wrapper */
static PyObject *__pyx_pw_3cgl_5ivec4_19__setstate_cython__(PyObject *__pyx_v_self, PyObject *__pyx_v___pyx_state); /*proto*/
static PyObject *__pyx_pw_3cgl_5ivec4_19__setstate_cython__(PyObject *__pyx_v_self, PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__setstate_cython__ (wrapper)", 0);
  __pyx_r = __pyx_pf_3cgl_5ivec4_18__setstate_cython__(((struct __pyx_obj_3cgl_ivec4 *)__pyx_v_self), ((PyObject *)__pyx_v___pyx_state));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_3cgl_5ivec4_18__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_3cgl_ivec4 *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__setstate_cython__", 0);

  /* "(tree fragment)":4
 *     raise TypeError("Pickling of struct members such as self.c_ivec4 must be explicitly requested with @auto_pickle(True)")
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError("Pickling of struct members such as self.c_ivec4 must be explicitly requested with @auto_pickle(True)")             # <<<<<<<<<<<<<<
 */
  __pyx_t_1 = __Pyx_PyObject_Call(__pyx_builtin_TypeError, __pyx_tuple__12, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 4, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_Raise(__pyx_t_1, 0, 0, 0);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __PYX_ERR(1, 4, __pyx_L1_error)

  /* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError("Pickling of struct members such as self.c_ivec4 must be explicitly requested with @auto_pickle(True)")
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError("Pickling of struct members such as self.c_ivec4 must be explicitly requested with @auto_pickle(True)")
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cgl.ivec4.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cgl_wrapper.pyx":884
 *     cdef CGL_mat4 c_mat4
 * 
 *     def __init__(self):             # <<<<<<<<<<<<<<
 *         self.c_mat4 = CGL_mat4()
 * 
 */

/* Python wrapper */
static int __pyx_pw_3cgl_4mat4_1__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static int __pyx_pw_3cgl_4mat4_1__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__init__ (wrapper)", 0);
  if (unlikely(PyTuple_GET_SIZE(__pyx_args) > 0)) {
    __Pyx_RaiseArgtupleInvalid("__init__", 1, 0, 0, PyTuple_GET_SIZE(__pyx_args)); return -1;}
  if (unlikely(__pyx_kwds) && unlikely(PyDict_Size(__pyx_kwds) > 0) && unlikely(!__Pyx_CheckKeywordStrings(__pyx_kwds, "__init__", 0))) return -1;
  __pyx_r = __pyx_pf_3cgl_4mat4___init__(((struct __pyx_obj_3cgl_mat4 *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_3cgl_4mat4___init__(struct __pyx_obj_3cgl_mat4 *__pyx_v_self) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  struct CGL_mat4 __pyx_t_1;
  __Pyx_RefNannySetupContext("__init__", 0);

  /* "cgl_wrapper.pyx":885
 * 
 *     def __init__(self):
 *         self.c_mat4 = CGL_mat4()             # <<<<<<<<<<<<<<
 * 
 *     def __repr__(self):
 */
  __pyx_v_self->c_mat4 = __pyx_t_1;

  /* "cgl_wrapper.pyx":884
 *     cdef CGL_mat4 c_mat4
 * 
 *     def __init__(self):             # <<<<<<<<<<<<<<
 *         self.c_mat4 = CGL_mat4()
 * 
 */

  /* function exit code */
  __pyx_r = 0;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cgl_wrapper.pyx":887
 *         self.c_mat4 = CGL_mat4()
 * 
 *     def __repr__(self):             # <<<<<<<<<<<<<<
 *         result = "mat4x4(\n"
 *         for i in range(4):
 */

/* Python wrapper */
static PyObject *__pyx_pw_3cgl_4mat4_3__repr__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_3cgl_4mat4_3__repr__(PyObject *__pyx_v_self) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__repr__ (wrapper)", 0);
  __pyx_r = __pyx_pf_3cgl_4mat4_2__repr__(((struct __pyx_obj_3cgl_mat4 *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_3cgl_4mat4_2__repr__(struct __pyx_obj_3cgl_mat4 *__pyx_v_self) {
  PyObject *__pyx_v_result = NULL;
  PyObject *__pyx_v_i = NULL;
  PyObject *__pyx_v_j = NULL;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  long __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  long __pyx_t_3;
  PyObject *__pyx_t_4 = NULL;
  Py_ssize_t __pyx_t_5;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__repr__", 0);

  /* "cgl_wrapper.pyx":888
 * 
 *     def __repr__(self):
 *         result = "mat4x4(\n"             # <<<<<<<<<<<<<<
 *         for i in range(4):
 *             result += "    "
 */
  __Pyx_INCREF(__pyx_kp_s_mat4x4);
  __pyx_v_result = __pyx_kp_s_mat4x4;

  /* "cgl_wrapper.pyx":889
 *     def __repr__(self):
 *         result = "mat4x4(\n"
 *         for i in range(4):             # <<<<<<<<<<<<<<
 *             result += "    "
 *             for j in range(4):
 */
  for (__pyx_t_1 = 0; __pyx_t_1 < 4; __pyx_t_1+=1) {
    __pyx_t_2 = __Pyx_PyInt_From_long(__pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 889, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_XDECREF_SET(__pyx_v_i, __pyx_t_2);
    __pyx_t_2 = 0;

    /* "cgl_wrapper.pyx":890
 *         result = "mat4x4(\n"
 *         for i in range(4):
 *             result += "    "             # <<<<<<<<<<<<<<
 *             for j in range(4):
 *                 result += f"{self.c_mat4.m[i * 4 + j]}, "
 */
    __pyx_t_2 = PyNumber_InPlaceAdd(__pyx_v_result, __pyx_kp_s__13); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 890, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_DECREF_SET(__pyx_v_result, __pyx_t_2);
    __pyx_t_2 = 0;

    /* "cgl_wrapper.pyx":891
 *         for i in range(4):
 *             result += "    "
 *             for j in range(4):             # <<<<<<<<<<<<<<
 *                 result += f"{self.c_mat4.m[i * 4 + j]}, "
 *             result += "\n"
 */
    for (__pyx_t_3 = 0; __pyx_t_3 < 4; __pyx_t_3+=1) {
      __pyx_t_2 = __Pyx_PyInt_From_long(__pyx_t_3); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 891, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_2);
      __Pyx_XDECREF_SET(__pyx_v_j, __pyx_t_2);
      __pyx_t_2 = 0;

      /* "cgl_wrapper.pyx":892
 *             result += "    "
 *             for j in range(4):
 *                 result += f"{self.c_mat4.m[i * 4 + j]}, "             # <<<<<<<<<<<<<<
 *             result += "\n"
 *         result += ")"
 */
      __pyx_t_2 = PyNumber_Multiply(__pyx_v_i, __pyx_int_4); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 892, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_2);
      __pyx_t_4 = PyNumber_Add(__pyx_t_2, __pyx_v_j); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 892, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_4);
      __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
      __pyx_t_5 = __Pyx_PyIndex_AsSsize_t(__pyx_t_4); if (unlikely((__pyx_t_5 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 892, __pyx_L1_error)
      __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
      __pyx_t_4 = PyFloat_FromDouble((__pyx_v_self->c_mat4.m[__pyx_t_5])); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 892, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_4);
      __pyx_t_2 = __Pyx_PyObject_FormatSimple(__pyx_t_4, __pyx_empty_unicode); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 892, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_2);
      __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
      __pyx_t_4 = __Pyx_PyUnicode_Concat(__pyx_t_2, __pyx_kp_u__3); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 892, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_4);
      __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
      __pyx_t_2 = PyNumber_InPlaceAdd(__pyx_v_result, __pyx_t_4); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 892, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_2);
      __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_DECREF_SET(__pyx_v_result, __pyx_t_2);
      __pyx_t_2 = 0;
    }

    /* "cgl_wrapper.pyx":893
 *             for j in range(4):
 *                 result += f"{self.c_mat4.m[i * 4 + j]}, "
 *             result += "\n"             # <<<<<<<<<<<<<<
 *         result += ")"
 *         return result
 */
    __pyx_t_2 = PyNumber_InPlaceAdd(__pyx_v_result, __pyx_kp_s__14); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 893, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_DECREF_SET(__pyx_v_result, __pyx_t_2);
    __pyx_t_2 = 0;
  }

  /* "cgl_wrapper.pyx":894
 *                 result += f"{self.c_mat4.m[i * 4 + j]}, "
 *             result += "\n"
 *         result += ")"             # <<<<<<<<<<<<<<
 *         return result
 * 
 */
  __pyx_t_2 = PyNumber_InPlaceAdd(__pyx_v_result, __pyx_kp_s__4); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 894, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF_SET(__pyx_v_result, __pyx_t_2);
  __pyx_t_2 = 0;

  /* "cgl_wrapper.pyx":895
 *             result += "\n"
 *         result += ")"
 *         return result             # <<<<<<<<<<<<<<
 * 
 *     def __str__(self):
 */
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF(__pyx_v_result);
  __pyx_r = __pyx_v_result;
  goto __pyx_L0;

  /* "cgl_wrapper.pyx":887
 *         self.c_mat4 = CGL_mat4()
 * 
 *     def __repr__(self):             # <<<<<<<<<<<<<<
 *         result = "mat4x4(\n"
 *         for i in range(4):
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cgl.mat4.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_result);
  __Pyx_XDECREF(__pyx_v_i);
  __Pyx_XDECREF(__pyx_v_j);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cgl_wrapper.pyx":897
 *         return result
 * 
 *     def __str__(self):             # <<<<<<<<<<<<<<
 *         result = "mat4x4(\n"
 *         for i in range(4):
 */

/* Python wrapper */
static PyObject *__pyx_pw_3cgl_4mat4_5__str__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_3cgl_4mat4_5__str__(PyObject *__pyx_v_self) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__str__ (wrapper)", 0);
  __pyx_r = __pyx_pf_3cgl_4mat4_4__str__(((struct __pyx_obj_3cgl_mat4 *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_3cgl_4mat4_4__str__(struct __pyx_obj_3cgl_mat4 *__pyx_v_self) {
  PyObject *__pyx_v_result = NULL;
  PyObject *__pyx_v_i = NULL;
  PyObject *__pyx_v_j = NULL;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  long __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  long __pyx_t_3;
  PyObject *__pyx_t_4 = NULL;
  Py_ssize_t __pyx_t_5;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__str__", 0);

  /* "cgl_wrapper.pyx":898
 * 
 *     def __str__(self):
 *         result = "mat4x4(\n"             # <<<<<<<<<<<<<<
 *         for i in range(4):
 *             result += "    "
 */
  __Pyx_INCREF(__pyx_kp_s_mat4x4);
  __pyx_v_result = __pyx_kp_s_mat4x4;

  /* "cgl_wrapper.pyx":899
 *     def __str__(self):
 *         result = "mat4x4(\n"
 *         for i in range(4):             # <<<<<<<<<<<<<<
 *             result += "    "
 *             for j in range(4):
 */
  for (__pyx_t_1 = 0; __pyx_t_1 < 4; __pyx_t_1+=1) {
    __pyx_t_2 = __Pyx_PyInt_From_long(__pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 899, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_XDECREF_SET(__pyx_v_i, __pyx_t_2);
    __pyx_t_2 = 0;

    /* "cgl_wrapper.pyx":900
 *         result = "mat4x4(\n"
 *         for i in range(4):
 *             result += "    "             # <<<<<<<<<<<<<<
 *             for j in range(4):
 *                 result += f"{self.c_mat4.m[i * 4 + j]}, "
 */
    __pyx_t_2 = PyNumber_InPlaceAdd(__pyx_v_result, __pyx_kp_s__13); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 900, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_DECREF_SET(__pyx_v_result, __pyx_t_2);
    __pyx_t_2 = 0;

    /* "cgl_wrapper.pyx":901
 *         for i in range(4):
 *             result += "    "
 *             for j in range(4):             # <<<<<<<<<<<<<<
 *                 result += f"{self.c_mat4.m[i * 4 + j]}, "
 *             result += "\n"
 */
    for (__pyx_t_3 = 0; __pyx_t_3 < 4; __pyx_t_3+=1) {
      __pyx_t_2 = __Pyx_PyInt_From_long(__pyx_t_3); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 901, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_2);
      __Pyx_XDECREF_SET(__pyx_v_j, __pyx_t_2);
      __pyx_t_2 = 0;

      /* "cgl_wrapper.pyx":902
 *             result += "    "
 *             for j in range(4):
 *                 result += f"{self.c_mat4.m[i * 4 + j]}, "             # <<<<<<<<<<<<<<
 *             result += "\n"
 *         result += ")"
 */
      __pyx_t_2 = PyNumber_Multiply(__pyx_v_i, __pyx_int_4); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 902, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_2);
      __pyx_t_4 = PyNumber_Add(__pyx_t_2, __pyx_v_j); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 902, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_4);
      __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
      __pyx_t_5 = __Pyx_PyIndex_AsSsize_t(__pyx_t_4); if (unlikely((__pyx_t_5 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 902, __pyx_L1_error)
      __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
      __pyx_t_4 = PyFloat_FromDouble((__pyx_v_self->c_mat4.m[__pyx_t_5])); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 902, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_4);
      __pyx_t_2 = __Pyx_PyObject_FormatSimple(__pyx_t_4, __pyx_empty_unicode); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 902, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_2);
      __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
      __pyx_t_4 = __Pyx_PyUnicode_Concat(__pyx_t_2, __pyx_kp_u__3); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 902, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_4);
      __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
      __pyx_t_2 = PyNumber_InPlaceAdd(__pyx_v_result, __pyx_t_4); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 902, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_2);
      __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_DECREF_SET(__pyx_v_result, __pyx_t_2);
      __pyx_t_2 = 0;
    }

    /* "cgl_wrapper.pyx":903
 *             for j in range(4):
 *                 result += f"{self.c_mat4.m[i * 4 + j]}, "
 *             result += "\n"             # <<<<<<<<<<<<<<
 *         result += ")"
 *         return result
 */
    __pyx_t_2 = PyNumber_InPlaceAdd(__pyx_v_result, __pyx_kp_s__14); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 903, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_DECREF_SET(__pyx_v_result, __pyx_t_2);
    __pyx_t_2 = 0;
  }

  /* "cgl_wrapper.pyx":904
 *                 result += f"{self.c_mat4.m[i * 4 + j]}, "
 *             result += "\n"
 *         result += ")"             # <<<<<<<<<<<<<<
 *         return result
 * 
 */
  __pyx_t_2 = PyNumber_InPlaceAdd(__pyx_v_result, __pyx_kp_s__4); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 904, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF_SET(__pyx_v_result, __pyx_t_2);
  __pyx_t_2 = 0;

  /* "cgl_wrapper.pyx":905
 *             result += "\n"
 *         result += ")"
 *         return result             # <<<<<<<<<<<<<<
 * 
 *     cdef set_c_mat4(self, c_mat4: CGL_mat4):
 */
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF(__pyx_v_result);
  __pyx_r = __pyx_v_result;
  goto __pyx_L0;

  /* "cgl_wrapper.pyx":897
 *         return result
 * 
 *     def __str__(self):             # <<<<<<<<<<<<<<
 *         result = "mat4x4(\n"
 *         for i in range(4):
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cgl.mat4.__str__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_result);
  __Pyx_XDECREF(__pyx_v_i);
  __Pyx_XDECREF(__pyx_v_j);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cgl_wrapper.pyx":907
 *         return result
 * 
 *     cdef set_c_mat4(self, c_mat4: CGL_mat4):             # <<<<<<<<<<<<<<
 *         self.c_mat4 = c_mat4
 * 
 */

static PyObject *__pyx_f_3cgl_4mat4_set_c_mat4(struct __pyx_obj_3cgl_mat4 *__pyx_v_self, struct CGL_mat4 __pyx_v_c_mat4) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("set_c_mat4", 0);

  /* "cgl_wrapper.pyx":908
 * 
 *     cdef set_c_mat4(self, c_mat4: CGL_mat4):
 *         self.c_mat4 = c_mat4             # <<<<<<<<<<<<<<
 * 
 *     def __mul__(self, other: mat4):
 */
  __pyx_v_self->c_mat4 = __pyx_v_c_mat4;

  /* "cgl_wrapper.pyx":907
 *         return result
 * 
 *     cdef set_c_mat4(self, c_mat4: CGL_mat4):             # <<<<<<<<<<<<<<
 *         self.c_mat4 = c_mat4
 * 
 */

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cgl_wrapper.pyx":910
 *         self.c_mat4 = c_mat4
 * 
 *     def __mul__(self, other: mat4):             # <<<<<<<<<<<<<<
 *         return mat4_mul(self, other)
 * 
 */

/* Python wrapper */
static PyObject *__pyx_pw_3cgl_4mat4_7__mul__(PyObject *__pyx_v_self, PyObject *__pyx_v_other); /*proto*/
static PyObject *__pyx_pw_3cgl_4mat4_7__mul__(PyObject *__pyx_v_self, PyObject *__pyx_v_other) {
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__mul__ (wrapper)", 0);
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_other), __pyx_ptype_3cgl_mat4, 1, "other", 0))) __PYX_ERR(0, 910, __pyx_L1_error)
  __pyx_r = __pyx_pf_3cgl_4mat4_6__mul__(((PyObject *)__pyx_v_self), ((struct __pyx_obj_3cgl_mat4 *)__pyx_v_other));

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_3cgl_4mat4_6__mul__(PyObject *__pyx_v_self, struct __pyx_obj_3cgl_mat4 *__pyx_v_other) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  int __pyx_t_4;
  PyObject *__pyx_t_5 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__mul__", 0);

  /* "cgl_wrapper.pyx":911
 * 
 *     def __mul__(self, other: mat4):
 *         return mat4_mul(self, other)             # <<<<<<<<<<<<<<
 * 
 *     def __hash__(self):
 */
  __Pyx_XDECREF(__pyx_r);
  __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_mat4_mul); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 911, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = NULL;
  __pyx_t_4 = 0;
  if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_2))) {
    __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2);
    if (likely(__pyx_t_3)) {
      PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2);
      __Pyx_INCREF(__pyx_t_3);
      __Pyx_INCREF(function);
      __Pyx_DECREF_SET(__pyx_t_2, function);
      __pyx_t_4 = 1;
    }
  }
  #if CYTHON_FAST_PYCALL
  if (PyFunction_Check(__pyx_t_2)) {
    PyObject *__pyx_temp[3] = {__pyx_t_3, __pyx_v_self, ((PyObject *)__pyx_v_other)};
    __pyx_t_1 = __Pyx_PyFunction_FastCall(__pyx_t_2, __pyx_temp+1-__pyx_t_4, 2+__pyx_t_4); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 911, __pyx_L1_error)
    __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_GOTREF(__pyx_t_1);
  } else
  #endif
  #if CYTHON_FAST_PYCCALL
  if (__Pyx_PyFastCFunction_Check(__pyx_t_2)) {
    PyObject *__pyx_temp[3] = {__pyx_t_3, __pyx_v_self, ((PyObject *)__pyx_v_other)};
    __pyx_t_1 = __Pyx_PyCFunction_FastCall(__pyx_t_2, __pyx_temp+1-__pyx_t_4, 2+__pyx_t_4); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 911, __pyx_L1_error)
    __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_GOTREF(__pyx_t_1);
  } else
  #endif
  {
    __pyx_t_5 = PyTuple_New(2+__pyx_t_4); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 911, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    if (__pyx_t_3) {
      __Pyx_GIVEREF(__pyx_t_3); PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_3); __pyx_t_3 = NULL;
    }
    __Pyx_INCREF(__pyx_v_self);
    __Pyx_GIVEREF(__pyx_v_self);
    PyTuple_SET_ITEM(__pyx_t_5, 0+__pyx_t_4, __pyx_v_self);
    __Pyx_INCREF(((PyObject *)__pyx_v_other));
    __Pyx_GIVEREF(((PyObject *)__pyx_v_other));
    PyTuple_SET_ITEM(__pyx_t_5, 1+__pyx_t_4, ((PyObject *)__pyx_v_other));
    __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_t_5, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 911, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
  }
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cgl_wrapper.pyx":910
 *         self.c_mat4 = c_mat4
 * 
 *     def __mul__(self, other: mat4):             # <<<<<<<<<<<<<<
 *         return mat4_mul(self, other)
 * 
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("cgl.mat4.__mul__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cgl_wrapper.pyx":913
 *         return mat4_mul(self, other)
 * 
 *     def __hash__(self):             # <<<<<<<<<<<<<<
 *         return hash((self.c_mat4.m[0], self.c_mat4.m[1], self.c_mat4.m[2], self.c_mat4.m[3], self.c_mat4.m[4], self.c_mat4.m[5], self.c_mat4.m[6], self.c_mat4.m[7], self.c_mat4.m[8], self.c_mat4.m[9], self.c_mat4.m[10], self.c_mat4.m[11], self.c_mat4.m[12], self.c_mat4.m[13], self.c_mat4.m[14], self.c_mat4.m[15]))
 * 
 */

/* Python wrapper */
static Py_hash_t __pyx_pw_3cgl_4mat4_9__hash__(PyObject *__pyx_v_self); /*proto*/
static Py_hash_t __pyx_pw_3cgl_4mat4_9__hash__(PyObject *__pyx_v_self) {
  Py_hash_t __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__hash__ (wrapper)", 0);
  __pyx_r = __pyx_pf_3cgl_4mat4_8__hash__(((struct __pyx_obj_3cgl_mat4 *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static Py_hash_t __pyx_pf_3cgl_4mat4_8__hash__(struct __pyx_obj_3cgl_mat4 *__pyx_v_self) {
  Py_hash_t __pyx_r;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  PyObject *__pyx_t_7 = NULL;
  PyObject *__pyx_t_8 = NULL;
  PyObject *__pyx_t_9 = NULL;
  PyObject *__pyx_t_10 = NULL;
  PyObject *__pyx_t_11 = NULL;
  PyObject *__pyx_t_12 = NULL;
  PyObject *__pyx_t_13 = NULL;
  PyObject *__pyx_t_14 = NULL;
  PyObject *__pyx_t_15 = NULL;
  PyObject *__pyx_t_16 = NULL;
  PyObject *__pyx_t_17 = NULL;
  Py_hash_t __pyx_t_18;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__hash__", 0);

  /* "cgl_wrapper.pyx":914
 * 
 *     def __hash__(self):
 *         return hash((self.c_mat4.m[0], self.c_mat4.m[1], self.c_mat4.m[2], self.c_mat4.m[3], self.c_mat4.m[4], self.c_mat4.m[5], self.c_mat4.m[6], self.c_mat4.m[7], self.c_mat4.m[8], self.c_mat4.m[9], self.c_mat4.m[10], self.c_mat4.m[11], self.c_mat4.m[12], self.c_mat4.m[13], self.c_mat4.m[14], self.c_mat4.m[15]))             # <<<<<<<<<<<<<<
 * 
 * def mat4_mul(a: mat4, b: mat4) -> mat4:
 */
  __pyx_t_1 = PyFloat_FromDouble((__pyx_v_self->c_mat4.m[0])); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 914, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = PyFloat_FromDouble((__pyx_v_self->c_mat4.m[1])); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 914, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = PyFloat_FromDouble((__pyx_v_self->c_mat4.m[2])); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 914, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = PyFloat_FromDouble((__pyx_v_self->c_mat4.m[3])); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 914, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_5 = PyFloat_FromDouble((__pyx_v_self->c_mat4.m[4])); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 914, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __pyx_t_6 = PyFloat_FromDouble((__pyx_v_self->c_mat4.m[5])); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 914, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __pyx_t_7 = PyFloat_FromDouble((__pyx_v_self->c_mat4.m[6])); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 914, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_7);
  __pyx_t_8 = PyFloat_FromDouble((__pyx_v_self->c_mat4.m[7])); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 914, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_8);
  __pyx_t_9 = PyFloat_FromDouble((__pyx_v_self->c_mat4.m[8])); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 914, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_9);
  __pyx_t_10 = PyFloat_FromDouble((__pyx_v_self->c_mat4.m[9])); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 914, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_10);
  __pyx_t_11 = PyFloat_FromDouble((__pyx_v_self->c_mat4.m[10])); if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 914, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_11);
  __pyx_t_12 = PyFloat_FromDouble((__pyx_v_self->c_mat4.m[11])); if (unlikely(!__pyx_t_12)) __PYX_ERR(0, 914, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_12);
  __pyx_t_13 = PyFloat_FromDouble((__pyx_v_self->c_mat4.m[12])); if (unlikely(!__pyx_t_13)) __PYX_ERR(0, 914, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_13);
  __pyx_t_14 = PyFloat_FromDouble((__pyx_v_self->c_mat4.m[13])); if (unlikely(!__pyx_t_14)) __PYX_ERR(0, 914, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_14);
  __pyx_t_15 = PyFloat_FromDouble((__pyx_v_self->c_mat4.m[14])); if (unlikely(!__pyx_t_15)) __PYX_ERR(0, 914, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_15);
  __pyx_t_16 = PyFloat_FromDouble((__pyx_v_self->c_mat4.m[15])); if (unlikely(!__pyx_t_16)) __PYX_ERR(0, 914, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_16);
  __pyx_t_17 = PyTuple_New(16); if (unlikely(!__pyx_t_17)) __PYX_ERR(0, 914, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_17);
  __Pyx_GIVEREF(__pyx_t_1);
  PyTuple_SET_ITEM(__pyx_t_17, 0, __pyx_t_1);
  __Pyx_GIVEREF(__pyx_t_2);
  PyTuple_SET_ITEM(__pyx_t_17, 1, __pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_3);
  PyTuple_SET_ITEM(__pyx_t_17, 2, __pyx_t_3);
  __Pyx_GIVEREF(__pyx_t_4);
  PyTuple_SET_ITEM(__pyx_t_17, 3, __pyx_t_4);
  __Pyx_GIVEREF(__pyx_t_5);
  PyTuple_SET_ITEM(__pyx_t_17, 4, __pyx_t_5);
  __Pyx_GIVEREF(__pyx_t_6);
  PyTuple_SET_ITEM(__pyx_t_17, 5, __pyx_t_6);
  __Pyx_GIVEREF(__pyx_t_7);
  PyTuple_SET_ITEM(__pyx_t_17, 6, __pyx_t_7);
  __Pyx_GIVEREF(__pyx_t_8);
  PyTuple_SET_ITEM(__pyx_t_17, 7, __pyx_t_8);
  __Pyx_GIVEREF(__pyx_t_9);
  PyTuple_SET_ITEM(__pyx_t_17, 8, __pyx_t_9);
  __Pyx_GIVEREF(__pyx_t_10);
  PyTuple_SET_ITEM(__pyx_t_17, 9, __pyx_t_10);
  __Pyx_GIVEREF(__pyx_t_11);
  PyTuple_SET_ITEM(__pyx_t_17, 10, __pyx_t_11);
  __Pyx_GIVEREF(__pyx_t_12);
  PyTuple_SET_ITEM(__pyx_t_17, 11, __pyx_t_12);
  __Pyx_GIVEREF(__pyx_t_13);
  PyTuple_SET_ITEM(__pyx_t_17, 12, __pyx_t_13);
  __Pyx_GIVEREF(__pyx_t_14);
  PyTuple_SET_ITEM(__pyx_t_17, 13, __pyx_t_14);
  __Pyx_GIVEREF(__pyx_t_15);
  PyTuple_SET_ITEM(__pyx_t_17, 14, __pyx_t_15);
  __Pyx_GIVEREF(__pyx_t_16);
  PyTuple_SET_ITEM(__pyx_t_17, 15, __pyx_t_16);
  __pyx_t_1 = 0;
  __pyx_t_2 = 0;
  __pyx_t_3 = 0;
  __pyx_t_4 = 0;
  __pyx_t_5 = 0;
  __pyx_t_6 = 0;
  __pyx_t_7 = 0;
  __pyx_t_8 = 0;
  __pyx_t_9 = 0;
  __pyx_t_10 = 0;
  __pyx_t_11 = 0;
  __pyx_t_12 = 0;
  __pyx_t_13 = 0;
  __pyx_t_14 = 0;
  __pyx_t_15 = 0;
  __pyx_t_16 = 0;
  __pyx_t_18 = PyObject_Hash(__pyx_t_17); if (unlikely(__pyx_t_18 == ((Py_hash_t)-1))) __PYX_ERR(0, 914, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_17); __pyx_t_17 = 0;
  __pyx_r = __pyx_t_18;
  goto __pyx_L0;

  /* "cgl_wrapper.pyx":913
 *         return mat4_mul(self, other)
 * 
 *     def __hash__(self):             # <<<<<<<<<<<<<<
 *         return hash((self.c_mat4.m[0], self.c_mat4.m[1], self.c_mat4.m[2], self.c_mat4.m[3], self.c_mat4.m[4], self.c_mat4.m[5], self.c_mat4.m[6], self.c_mat4.m[7], self.c_mat4.m[8], self.c_mat4.m[9], self.c_mat4.m[10], self.c_mat4.m[11], self.c_mat4.m[12], self.c_mat4.m[13], self.c_mat4.m[14], self.c_mat4.m[15]))
 * 
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_XDECREF(__pyx_t_8);
  __Pyx_XDECREF(__pyx_t_9);
  __Pyx_XDECREF(__pyx_t_10);
  __Pyx_XDECREF(__pyx_t_11);
  __Pyx_XDECREF(__pyx_t_12);
  __Pyx_XDECREF(__pyx_t_13);
  __Pyx_XDECREF(__pyx_t_14);
  __Pyx_XDECREF(__pyx_t_15);
  __Pyx_XDECREF(__pyx_t_16);
  __Pyx_XDECREF(__pyx_t_17);
  __Pyx_AddTraceback("cgl.mat4.__hash__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  if (unlikely(__pyx_r == -1) && !PyErr_Occurred()) __pyx_r = -2;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError("Pickling of struct members such as self.c_mat4 must be explicitly requested with @auto_pickle(True)")
 * def __setstate_cython__(self, __pyx_state):
 */

/* Python wrapper */
static PyObject *__pyx_pw_3cgl_4mat4_11__reduce_cython__(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/
static PyObject *__pyx_pw_3cgl_4mat4_11__reduce_cython__(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__reduce_cython__ (wrapper)", 0);
  __pyx_r = __pyx_pf_3cgl_4mat4_10__reduce_cython__(((struct __pyx_obj_3cgl_mat4 *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_3cgl_4mat4_10__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_3cgl_mat4 *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__reduce_cython__", 0);

  /* "(tree fragment)":2
 * def __reduce_cython__(self):
 *     raise TypeError("Pickling of struct members such as self.c_mat4 must be explicitly requested with @auto_pickle(True)")             # <<<<<<<<<<<<<<
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError("Pickling of struct members such as self.c_mat4 must be explicitly requested with @auto_pickle(True)")
 */
  __pyx_t_1 = __Pyx_PyObject_Call(__pyx_builtin_TypeError, __pyx_tuple__15, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 2, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_Raise(__pyx_t_1, 0, 0, 0);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __PYX_ERR(1, 2, __pyx_L1_error)

  /* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError("Pickling of struct members such as self.c_mat4 must be explicitly requested with @auto_pickle(True)")
 * def __setstate_cython__(self, __pyx_state):
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cgl.mat4.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError("Pickling of struct members such as self.c_mat4 must be explicitly requested with @auto_pickle(True)")
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError("Pickling of struct members such as self.c_mat4 must be explicitly requested with @auto_pickle(True)")
 */

/* Python wrapper */
static PyObject *__pyx_pw_3cgl_4mat4_13__setstate_cython__(PyObject *__pyx_v_self, PyObject *__pyx_v___pyx_state); /*proto*/
static PyObject *__pyx_pw_3cgl_4mat4_13__setstate_cython__(PyObject *__pyx_v_self, PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__setstate_cython__ (wrapper)", 0);
  __pyx_r = __pyx_pf_3cgl_4mat4_12__setstate_cython__(((struct __pyx_obj_3cgl_mat4 *)__pyx_v_self), ((PyObject *)__pyx_v___pyx_state));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_3cgl_4mat4_12__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_3cgl_mat4 *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__setstate_cython__", 0);

  /* "(tree fragment)":4
 *     raise TypeError("Pickling of struct members such as self.c_mat4 must be explicitly requested with @auto_pickle(True)")
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError("Pickling of struct members such as self.c_mat4 must be explicitly requested with @auto_pickle(True)")             # <<<<<<<<<<<<<<
 */
  __pyx_t_1 = __Pyx_PyObject_Call(__pyx_builtin_TypeError, __pyx_tuple__16, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 4, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_Raise(__pyx_t_1, 0, 0, 0);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __PYX_ERR(1, 4, __pyx_L1_error)

  /* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError("Pickling of struct members such as self.c_mat4 must be explicitly requested with @auto_pickle(True)")
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError("Pickling of struct members such as self.c_mat4 must be explicitly requested with @auto_pickle(True)")
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cgl.mat4.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cgl_wrapper.pyx":916
 *         return hash((self.c_mat4.m[0], self.c_mat4.m[1], self.c_mat4.m[2], self.c_mat4.m[3], self.c_mat4.m[4], self.c_mat4.m[5], self.c_mat4.m[6], self.c_mat4.m[7], self.c_mat4.m[8], self.c_mat4.m[9], self.c_mat4.m[10], self.c_mat4.m[11], self.c_mat4.m[12], self.c_mat4.m[13], self.c_mat4.m[14], self.c_mat4.m[15]))
 * 
 * def mat4_mul(a: mat4, b: mat4) -> mat4:             # <<<<<<<<<<<<<<
 *     cdef CGL_mat4 obj = CGL_mat4_mul(a.c_mat4, b.c_mat4)
 *     result = mat4()
 */

/* Python wrapper */
static struct __pyx_obj_3cgl_mat4 *__pyx_pw_3cgl_133mat4_mul(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static PyMethodDef __pyx_mdef_3cgl_133mat4_mul = {"mat4_mul", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_3cgl_133mat4_mul, METH_VARARGS|METH_KEYWORDS, 0};
static struct __pyx_obj_3cgl_mat4 *__pyx_pw_3cgl_133mat4_mul(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  struct __pyx_obj_3cgl_mat4 *__pyx_v_a = 0;
  struct __pyx_obj_3cgl_mat4 *__pyx_v_b = 0;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  struct __pyx_obj_3cgl_mat4 *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("mat4_mul (wrapper)", 0);
  {
    static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_a,&__pyx_n_s_b,0};
    PyObject* values[2] = {0,0};
    if (unlikely(__pyx_kwds)) {
      Py_ssize_t kw_args;
      const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
      switch (pos_args) {
        case  2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
        CYTHON_FALLTHROUGH;
        case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      kw_args = PyDict_Size(__pyx_kwds);
      switch (pos_args) {
        case  0:
        if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_a)) != 0)) kw_args--;
        else goto __pyx_L5_argtuple_error;
        CYTHON_FALLTHROUGH;
        case  1:
        if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_b)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("mat4_mul", 1, 2, 2, 1); __PYX_ERR(0, 916, __pyx_L3_error)
        }
      }
      if (unlikely(kw_args > 0)) {
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "mat4_mul") < 0)) __PYX_ERR(0, 916, __pyx_L3_error)
      }
    } else if (PyTuple_GET_SIZE(__pyx_args) != 2) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
      values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
    }
    __pyx_v_a = ((struct __pyx_obj_3cgl_mat4 *)values[0]);
    __pyx_v_b = ((struct __pyx_obj_3cgl_mat4 *)values[1]);
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("mat4_mul", 1, 2, 2, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 916, __pyx_L3_error)
  __pyx_L3_error:;
  __Pyx_AddTraceback("cgl.mat4_mul", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_a), __pyx_ptype_3cgl_mat4, 1, "a", 0))) __PYX_ERR(0, 916, __pyx_L1_error)
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_b), __pyx_ptype_3cgl_mat4, 1, "b", 0))) __PYX_ERR(0, 916, __pyx_L1_error)
  __pyx_r = __pyx_pf_3cgl_132mat4_mul(__pyx_self, __pyx_v_a, __pyx_v_b);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static struct __pyx_obj_3cgl_mat4 *__pyx_pf_3cgl_132mat4_mul(CYTHON_UNUSED PyObject *__pyx_self, struct __pyx_obj_3cgl_mat4 *__pyx_v_a, struct __pyx_obj_3cgl_mat4 *__pyx_v_b) {
  struct CGL_mat4 __pyx_v_obj;
  struct __pyx_obj_3cgl_mat4 *__pyx_v_result = NULL;
  struct __pyx_obj_3cgl_mat4 *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("mat4_mul", 0);

  /* "cgl_wrapper.pyx":917
 * 
 * def mat4_mul(a: mat4, b: mat4) -> mat4:
 *     cdef CGL_mat4 obj = CGL_mat4_mul(a.c_mat4, b.c_mat4)             # <<<<<<<<<<<<<<
 *     result = mat4()
 *     result.set_c_mat4(obj)
 */
  __pyx_v_obj = CGL_mat4_mul(__pyx_v_a->c_mat4, __pyx_v_b->c_mat4);

  /* "cgl_wrapper.pyx":918
 * def mat4_mul(a: mat4, b: mat4) -> mat4:
 *     cdef CGL_mat4 obj = CGL_mat4_mul(a.c_mat4, b.c_mat4)
 *     result = mat4()             # <<<<<<<<<<<<<<
 *     result.set_c_mat4(obj)
 *     return result
 */
  __pyx_t_1 = __Pyx_PyObject_CallNoArg(((PyObject *)__pyx_ptype_3cgl_mat4)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 918, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_v_result = ((struct __pyx_obj_3cgl_mat4 *)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "cgl_wrapper.pyx":919
 *     cdef CGL_mat4 obj = CGL_mat4_mul(a.c_mat4, b.c_mat4)
 *     result = mat4()
 *     result.set_c_mat4(obj)             # <<<<<<<<<<<<<<
 *     return result
 * 
 */
  __pyx_t_1 = ((struct __pyx_vtabstruct_3cgl_mat4 *)__pyx_v_result->__pyx_vtab)->set_c_mat4(__pyx_v_result, __pyx_v_obj); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 919, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "cgl_wrapper.pyx":920
 *     result = mat4()
 *     result.set_c_mat4(obj)
 *     return result             # <<<<<<<<<<<<<<
 * 
 * def mat4_det(m: mat4) -> float:
 */
  __Pyx_XDECREF(((PyObject *)__pyx_r));
  __Pyx_INCREF(((PyObject *)__pyx_v_result));
  __pyx_r = __pyx_v_result;
  goto __pyx_L0;

  /* "cgl_wrapper.pyx":916
 *         return hash((self.c_mat4.m[0], self.c_mat4.m[1], self.c_mat4.m[2], self.c_mat4.m[3], self.c_mat4.m[4], self.c_mat4.m[5], self.c_mat4.m[6], self.c_mat4.m[7], self.c_mat4.m[8], self.c_mat4.m[9], self.c_mat4.m[10], self.c_mat4.m[11], self.c_mat4.m[12], self.c_mat4.m[13], self.c_mat4.m[14], self.c_mat4.m[15]))
 * 
 * def mat4_mul(a: mat4, b: mat4) -> mat4:             # <<<<<<<<<<<<<<
 *     cdef CGL_mat4 obj = CGL_mat4_mul(a.c_mat4, b.c_mat4)
 *     result = mat4()
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cgl.mat4_mul", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF((PyObject *)__pyx_v_result);
  __Pyx_XGIVEREF((PyObject *)__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cgl_wrapper.pyx":922
 *     return result
 * 
 * def mat4_det(m: mat4) -> float:             # <<<<<<<<<<<<<<
 *     return CGL_mat4_det(m.c_mat4)
 * 
 */

/* Python wrapper */
static PyObject *__pyx_pw_3cgl_135mat4_det(PyObject *__pyx_self, PyObject *__pyx_v_m); /*proto*/
static PyMethodDef __pyx_mdef_3cgl_135mat4_det = {"mat4_det", (PyCFunction)__pyx_pw_3cgl_135mat4_det, METH_O, 0};
static PyObject *__pyx_pw_3cgl_135mat4_det(PyObject *__pyx_self, PyObject *__pyx_v_m) {
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("mat4_det (wrapper)", 0);
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_m), __pyx_ptype_3cgl_mat4, 1, "m", 0))) __PYX_ERR(0, 922, __pyx_L1_error)
  __pyx_r = __pyx_pf_3cgl_134mat4_det(__pyx_self, ((struct __pyx_obj_3cgl_mat4 *)__pyx_v_m));

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_3cgl_134mat4_det(CYTHON_UNUSED PyObject *__pyx_self, struct __pyx_obj_3cgl_mat4 *__pyx_v_m) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("mat4_det", 0);

  /* "cgl_wrapper.pyx":923
 * 
 * def mat4_det(m: mat4) -> float:
 *     return CGL_mat4_det(m.c_mat4)             # <<<<<<<<<<<<<<
 * 
 * def mat4_det_by_lu(m: mat4) -> float:
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = PyFloat_FromDouble(CGL_mat4_det(__pyx_v_m->c_mat4)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 923, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cgl_wrapper.pyx":922
 *     return result
 * 
 * def mat4_det(m: mat4) -> float:             # <<<<<<<<<<<<<<
 *     return CGL_mat4_det(m.c_mat4)
 * 
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cgl.mat4_det", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cgl_wrapper.pyx":925
 *     return CGL_mat4_det(m.c_mat4)
 * 
 * def mat4_det_by_lu(m: mat4) -> float:             # <<<<<<<<<<<<<<
 *     return CGL_mat4_det_by_lu(m.c_mat4)
 * 
 */

/* Python wrapper */
static PyObject *__pyx_pw_3cgl_137mat4_det_by_lu(PyObject *__pyx_self, PyObject *__pyx_v_m); /*proto*/
static PyMethodDef __pyx_mdef_3cgl_137mat4_det_by_lu = {"mat4_det_by_lu", (PyCFunction)__pyx_pw_3cgl_137mat4_det_by_lu, METH_O, 0};
static PyObject *__pyx_pw_3cgl_137mat4_det_by_lu(PyObject *__pyx_self, PyObject *__pyx_v_m) {
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("mat4_det_by_lu (wrapper)", 0);
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_m), __pyx_ptype_3cgl_mat4, 1, "m", 0))) __PYX_ERR(0, 925, __pyx_L1_error)
  __pyx_r = __pyx_pf_3cgl_136mat4_det_by_lu(__pyx_self, ((struct __pyx_obj_3cgl_mat4 *)__pyx_v_m));

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_3cgl_136mat4_det_by_lu(CYTHON_UNUSED PyObject *__pyx_self, struct __pyx_obj_3cgl_mat4 *__pyx_v_m) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("mat4_det_by_lu", 0);

  /* "cgl_wrapper.pyx":926
 * 
 * def mat4_det_by_lu(m: mat4) -> float:
 *     return CGL_mat4_det_by_lu(m.c_mat4)             # <<<<<<<<<<<<<<
 * 
 * def mat4_det_by_gauss(m: mat4) -> float:
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = PyFloat_FromDouble(CGL_mat4_det_by_lu(__pyx_v_m->c_mat4)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 926, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cgl_wrapper.pyx":925
 *     return CGL_mat4_det(m.c_mat4)
 * 
 * def mat4_det_by_lu(m: mat4) -> float:             # <<<<<<<<<<<<<<
 *     return CGL_mat4_det_by_lu(m.c_mat4)
 * 
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cgl.mat4_det_by_lu", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cgl_wrapper.pyx":928
 *     return CGL_mat4_det_by_lu(m.c_mat4)
 * 
 * def mat4_det_by_gauss(m: mat4) -> float:             # <<<<<<<<<<<<<<
 *     return CGL_mat4_det_by_gauss(m.c_mat4)
 * 
 */

/* Python wrapper */
static PyObject *__pyx_pw_3cgl_139mat4_det_by_gauss(PyObject *__pyx_self, PyObject *__pyx_v_m); /*proto*/
static PyMethodDef __pyx_mdef_3cgl_139mat4_det_by_gauss = {"mat4_det_by_gauss", (PyCFunction)__pyx_pw_3cgl_139mat4_det_by_gauss, METH_O, 0};
static PyObject *__pyx_pw_3cgl_139mat4_det_by_gauss(PyObject *__pyx_self, PyObject *__pyx_v_m) {
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("mat4_det_by_gauss (wrapper)", 0);
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_m), __pyx_ptype_3cgl_mat4, 1, "m", 0))) __PYX_ERR(0, 928, __pyx_L1_error)
  __pyx_r = __pyx_pf_3cgl_138mat4_det_by_gauss(__pyx_self, ((struct __pyx_obj_3cgl_mat4 *)__pyx_v_m));

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_3cgl_138mat4_det_by_gauss(CYTHON_UNUSED PyObject *__pyx_self, struct __pyx_obj_3cgl_mat4 *__pyx_v_m) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("mat4_det_by_gauss", 0);

  /* "cgl_wrapper.pyx":929
 * 
 * def mat4_det_by_gauss(m: mat4) -> float:
 *     return CGL_mat4_det_by_gauss(m.c_mat4)             # <<<<<<<<<<<<<<
 * 
 * def mat4_mul_vec4(m: mat4, v: vec4) -> vec4:
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = PyFloat_FromDouble(CGL_mat4_det_by_gauss(__pyx_v_m->c_mat4)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 929, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cgl_wrapper.pyx":928
 *     return CGL_mat4_det_by_lu(m.c_mat4)
 * 
 * def mat4_det_by_gauss(m: mat4) -> float:             # <<<<<<<<<<<<<<
 *     return CGL_mat4_det_by_gauss(m.c_mat4)
 * 
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cgl.mat4_det_by_gauss", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cgl_wrapper.pyx":931
 *     return CGL_mat4_det_by_gauss(m.c_mat4)
 * 
 * def mat4_mul_vec4(m: mat4, v: vec4) -> vec4:             # <<<<<<<<<<<<<<
 *     cdef CGL_vec4 obj = CGL_mat4_mul_vec4(m.c_mat4, v.c_vec4)
 *     return vec4(obj.x, obj.y, obj.z, obj.w)
 */

/* Python wrapper */
static struct __pyx_obj_3cgl_vec4 *__pyx_pw_3cgl_141mat4_mul_vec4(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static PyMethodDef __pyx_mdef_3cgl_141mat4_mul_vec4 = {"mat4_mul_vec4", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_3cgl_141mat4_mul_vec4, METH_VARARGS|METH_KEYWORDS, 0};
static struct __pyx_obj_3cgl_vec4 *__pyx_pw_3cgl_141mat4_mul_vec4(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  struct __pyx_obj_3cgl_mat4 *__pyx_v_m = 0;
  struct __pyx_obj_3cgl_vec4 *__pyx_v_v = 0;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  struct __pyx_obj_3cgl_vec4 *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("mat4_mul_vec4 (wrapper)", 0);
  {
    static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_m,&__pyx_n_s_v,0};
    PyObject* values[2] = {0,0};
    if (unlikely(__pyx_kwds)) {
      Py_ssize_t kw_args;
      const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
      switch (pos_args) {
        case  2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
        CYTHON_FALLTHROUGH;
        case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      kw_args = PyDict_Size(__pyx_kwds);
      switch (pos_args) {
        case  0:
        if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_m)) != 0)) kw_args--;
        else goto __pyx_L5_argtuple_error;
        CYTHON_FALLTHROUGH;
        case  1:
        if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_v)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("mat4_mul_vec4", 1, 2, 2, 1); __PYX_ERR(0, 931, __pyx_L3_error)
        }
      }
      if (unlikely(kw_args > 0)) {
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "mat4_mul_vec4") < 0)) __PYX_ERR(0, 931, __pyx_L3_error)
      }
    } else if (PyTuple_GET_SIZE(__pyx_args) != 2) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
      values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
    }
    __pyx_v_m = ((struct __pyx_obj_3cgl_mat4 *)values[0]);
    __pyx_v_v = ((struct __pyx_obj_3cgl_vec4 *)values[1]);
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("mat4_mul_vec4", 1, 2, 2, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 931, __pyx_L3_error)
  __pyx_L3_error:;
  __Pyx_AddTraceback("cgl.mat4_mul_vec4", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_m), __pyx_ptype_3cgl_mat4, 1, "m", 0))) __PYX_ERR(0, 931, __pyx_L1_error)
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_v), __pyx_ptype_3cgl_vec4, 1, "v", 0))) __PYX_ERR(0, 931, __pyx_L1_error)
  __pyx_r = __pyx_pf_3cgl_140mat4_mul_vec4(__pyx_self, __pyx_v_m, __pyx_v_v);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static struct __pyx_obj_3cgl_vec4 *__pyx_pf_3cgl_140mat4_mul_vec4(CYTHON_UNUSED PyObject *__pyx_self, struct __pyx_obj_3cgl_mat4 *__pyx_v_m, struct __pyx_obj_3cgl_vec4 *__pyx_v_v) {
  struct CGL_vec4 __pyx_v_obj;
  struct __pyx_obj_3cgl_vec4 *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("mat4_mul_vec4", 0);

  /* "cgl_wrapper.pyx":932
 * 
 * def mat4_mul_vec4(m: mat4, v: vec4) -> vec4:
 *     cdef CGL_vec4 obj = CGL_mat4_mul_vec4(m.c_mat4, v.c_vec4)             # <<<<<<<<<<<<<<
 *     return vec4(obj.x, obj.y, obj.z, obj.w)
 * 
 */
  __pyx_v_obj = CGL_mat4_mul_vec4(__pyx_v_m->c_mat4, __pyx_v_v->c_vec4);

  /* "cgl_wrapper.pyx":933
 * def mat4_mul_vec4(m: mat4, v: vec4) -> vec4:
 *     cdef CGL_vec4 obj = CGL_mat4_mul_vec4(m.c_mat4, v.c_vec4)
 *     return vec4(obj.x, obj.y, obj.z, obj.w)             # <<<<<<<<<<<<<<
 * 
 * def mat4_inverse(m: mat4) -> mat4:
 */
  __Pyx_XDECREF(((PyObject *)__pyx_r));
  __pyx_t_1 = PyFloat_FromDouble(__pyx_v_obj.x); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 933, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = PyFloat_FromDouble(__pyx_v_obj.y); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 933, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = PyFloat_FromDouble(__pyx_v_obj.z); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 933, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = PyFloat_FromDouble(__pyx_v_obj.w); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 933, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_5 = PyTuple_New(4); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 933, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_GIVEREF(__pyx_t_1);
  PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_1);
  __Pyx_GIVEREF(__pyx_t_2);
  PyTuple_SET_ITEM(__pyx_t_5, 1, __pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_3);
  PyTuple_SET_ITEM(__pyx_t_5, 2, __pyx_t_3);
  __Pyx_GIVEREF(__pyx_t_4);
  PyTuple_SET_ITEM(__pyx_t_5, 3, __pyx_t_4);
  __pyx_t_1 = 0;
  __pyx_t_2 = 0;
  __pyx_t_3 = 0;
  __pyx_t_4 = 0;
  __pyx_t_4 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_3cgl_vec4), __pyx_t_5, NULL); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 933, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
  __pyx_r = ((struct __pyx_obj_3cgl_vec4 *)__pyx_t_4);
  __pyx_t_4 = 0;
  goto __pyx_L0;

  /* "cgl_wrapper.pyx":931
 *     return CGL_mat4_det_by_gauss(m.c_mat4)
 * 
 * def mat4_mul_vec4(m: mat4, v: vec4) -> vec4:             # <<<<<<<<<<<<<<
 *     cdef CGL_vec4 obj = CGL_mat4_mul_vec4(m.c_mat4, v.c_vec4)
 *     return vec4(obj.x, obj.y, obj.z, obj.w)
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("cgl.mat4_mul_vec4", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF((PyObject *)__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cgl_wrapper.pyx":935
 *     return vec4(obj.x, obj.y, obj.z, obj.w)
 * 
 * def mat4_inverse(m: mat4) -> mat4:             # <<<<<<<<<<<<<<
 *     cdef CGL_mat4 obj = CGL_mat4_inverse(m.c_mat4)
 *     result = mat4()
 */

/* Python wrapper */
static struct __pyx_obj_3cgl_mat4 *__pyx_pw_3cgl_143mat4_inverse(PyObject *__pyx_self, PyObject *__pyx_v_m); /*proto*/
static PyMethodDef __pyx_mdef_3cgl_143mat4_inverse = {"mat4_inverse", (PyCFunction)__pyx_pw_3cgl_143mat4_inverse, METH_O, 0};
static struct __pyx_obj_3cgl_mat4 *__pyx_pw_3cgl_143mat4_inverse(PyObject *__pyx_self, PyObject *__pyx_v_m) {
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  struct __pyx_obj_3cgl_mat4 *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("mat4_inverse (wrapper)", 0);
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_m), __pyx_ptype_3cgl_mat4, 1, "m", 0))) __PYX_ERR(0, 935, __pyx_L1_error)
  __pyx_r = __pyx_pf_3cgl_142mat4_inverse(__pyx_self, ((struct __pyx_obj_3cgl_mat4 *)__pyx_v_m));

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static struct __pyx_obj_3cgl_mat4 *__pyx_pf_3cgl_142mat4_inverse(CYTHON_UNUSED PyObject *__pyx_self, struct __pyx_obj_3cgl_mat4 *__pyx_v_m) {
  struct CGL_mat4 __pyx_v_obj;
  struct __pyx_obj_3cgl_mat4 *__pyx_v_result = NULL;
  struct __pyx_obj_3cgl_mat4 *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("mat4_inverse", 0);

  /* "cgl_wrapper.pyx":936
 * 
 * def mat4_inverse(m: mat4) -> mat4:
 *     cdef CGL_mat4 obj = CGL_mat4_inverse(m.c_mat4)             # <<<<<<<<<<<<<<
 *     result = mat4()
 *     result.set_c_mat4(obj)
 */
  __pyx_v_obj = CGL_mat4_inverse(__pyx_v_m->c_mat4);

  /* "cgl_wrapper.pyx":937
 * def mat4_inverse(m: mat4) -> mat4:
 *     cdef CGL_mat4 obj = CGL_mat4_inverse(m.c_mat4)
 *     result = mat4()             # <<<<<<<<<<<<<<
 *     result.set_c_mat4(obj)
 *     return result
 */
  __pyx_t_1 = __Pyx_PyObject_CallNoArg(((PyObject *)__pyx_ptype_3cgl_mat4)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 937, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_v_result = ((struct __pyx_obj_3cgl_mat4 *)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "cgl_wrapper.pyx":938
 *     cdef CGL_mat4 obj = CGL_mat4_inverse(m.c_mat4)
 *     result = mat4()
 *     result.set_c_mat4(obj)             # <<<<<<<<<<<<<<
 *     return result
 * 
 */
  __pyx_t_1 = ((struct __pyx_vtabstruct_3cgl_mat4 *)__pyx_v_result->__pyx_vtab)->set_c_mat4(__pyx_v_result, __pyx_v_obj); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 938, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "cgl_wrapper.pyx":939
 *     result = mat4()
 *     result.set_c_mat4(obj)
 *     return result             # <<<<<<<<<<<<<<
 * 
 * def mat4_transpose(m: mat4) -> mat4:
 */
  __Pyx_XDECREF(((PyObject *)__pyx_r));
  __Pyx_INCREF(((PyObject *)__pyx_v_result));
  __pyx_r = __pyx_v_result;
  goto __pyx_L0;

  /* "cgl_wrapper.pyx":935
 *     return vec4(obj.x, obj.y, obj.z, obj.w)
 * 
 * def mat4_inverse(m: mat4) -> mat4:             # <<<<<<<<<<<<<<
 *     cdef CGL_mat4 obj = CGL_mat4_inverse(m.c_mat4)
 *     result = mat4()
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cgl.mat4_inverse", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF((PyObject *)__pyx_v_result);
  __Pyx_XGIVEREF((PyObject *)__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cgl_wrapper.pyx":941
 *     return result
 * 
 * def mat4_transpose(m: mat4) -> mat4:             # <<<<<<<<<<<<<<
 *     cdef CGL_mat4 obj = CGL_mat4_transpose(m.c_mat4)
 *     result = mat4()
 */

/* Python wrapper */
static struct __pyx_obj_3cgl_mat4 *__pyx_pw_3cgl_145mat4_transpose(PyObject *__pyx_self, PyObject *__pyx_v_m); /*proto*/
static PyMethodDef __pyx_mdef_3cgl_145mat4_transpose = {"mat4_transpose", (PyCFunction)__pyx_pw_3cgl_145mat4_transpose, METH_O, 0};
static struct __pyx_obj_3cgl_mat4 *__pyx_pw_3cgl_145mat4_transpose(PyObject *__pyx_self, PyObject *__pyx_v_m) {
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  struct __pyx_obj_3cgl_mat4 *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("mat4_transpose (wrapper)", 0);
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_m), __pyx_ptype_3cgl_mat4, 1, "m", 0))) __PYX_ERR(0, 941, __pyx_L1_error)
  __pyx_r = __pyx_pf_3cgl_144mat4_transpose(__pyx_self, ((struct __pyx_obj_3cgl_mat4 *)__pyx_v_m));

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static struct __pyx_obj_3cgl_mat4 *__pyx_pf_3cgl_144mat4_transpose(CYTHON_UNUSED PyObject *__pyx_self, struct __pyx_obj_3cgl_mat4 *__pyx_v_m) {
  struct CGL_mat4 __pyx_v_obj;
  struct __pyx_obj_3cgl_mat4 *__pyx_v_result = NULL;
  struct __pyx_obj_3cgl_mat4 *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("mat4_transpose", 0);

  /* "cgl_wrapper.pyx":942
 * 
 * def mat4_transpose(m: mat4) -> mat4:
 *     cdef CGL_mat4 obj = CGL_mat4_transpose(m.c_mat4)             # <<<<<<<<<<<<<<
 *     result = mat4()
 *     result.set_c_mat4(obj)
 */
  __pyx_v_obj = CGL_mat4_transpose(__pyx_v_m->c_mat4);

  /* "cgl_wrapper.pyx":943
 * def mat4_transpose(m: mat4) -> mat4:
 *     cdef CGL_mat4 obj = CGL_mat4_transpose(m.c_mat4)
 *     result = mat4()             # <<<<<<<<<<<<<<
 *     result.set_c_mat4(obj)
 *     return result
 */
  __pyx_t_1 = __Pyx_PyObject_CallNoArg(((PyObject *)__pyx_ptype_3cgl_mat4)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 943, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_v_result = ((struct __pyx_obj_3cgl_mat4 *)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "cgl_wrapper.pyx":944
 *     cdef CGL_mat4 obj = CGL_mat4_transpose(m.c_mat4)
 *     result = mat4()
 *     result.set_c_mat4(obj)             # <<<<<<<<<<<<<<
 *     return result
 * 
 */
  __pyx_t_1 = ((struct __pyx_vtabstruct_3cgl_mat4 *)__pyx_v_result->__pyx_vtab)->set_c_mat4(__pyx_v_result, __pyx_v_obj); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 944, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "cgl_wrapper.pyx":945
 *     result = mat4()
 *     result.set_c_mat4(obj)
 *     return result             # <<<<<<<<<<<<<<
 * 
 * def mat4_adjoint(m: mat4) -> mat4:
 */
  __Pyx_XDECREF(((PyObject *)__pyx_r));
  __Pyx_INCREF(((PyObject *)__pyx_v_result));
  __pyx_r = __pyx_v_result;
  goto __pyx_L0;

  /* "cgl_wrapper.pyx":941
 *     return result
 * 
 * def mat4_transpose(m: mat4) -> mat4:             # <<<<<<<<<<<<<<
 *     cdef CGL_mat4 obj = CGL_mat4_transpose(m.c_mat4)
 *     result = mat4()
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cgl.mat4_transpose", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF((PyObject *)__pyx_v_result);
  __Pyx_XGIVEREF((PyObject *)__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cgl_wrapper.pyx":947
 *     return result
 * 
 * def mat4_adjoint(m: mat4) -> mat4:             # <<<<<<<<<<<<<<
 *     cdef CGL_mat4 obj = CGL_mat4_adjoint(m.c_mat4)
 *     result = mat4()
 */

/* Python wrapper */
static struct __pyx_obj_3cgl_mat4 *__pyx_pw_3cgl_147mat4_adjoint(PyObject *__pyx_self, PyObject *__pyx_v_m); /*proto*/
static PyMethodDef __pyx_mdef_3cgl_147mat4_adjoint = {"mat4_adjoint", (PyCFunction)__pyx_pw_3cgl_147mat4_adjoint, METH_O, 0};
static struct __pyx_obj_3cgl_mat4 *__pyx_pw_3cgl_147mat4_adjoint(PyObject *__pyx_self, PyObject *__pyx_v_m) {
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  struct __pyx_obj_3cgl_mat4 *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("mat4_adjoint (wrapper)", 0);
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_m), __pyx_ptype_3cgl_mat4, 1, "m", 0))) __PYX_ERR(0, 947, __pyx_L1_error)
  __pyx_r = __pyx_pf_3cgl_146mat4_adjoint(__pyx_self, ((struct __pyx_obj_3cgl_mat4 *)__pyx_v_m));

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static struct __pyx_obj_3cgl_mat4 *__pyx_pf_3cgl_146mat4_adjoint(CYTHON_UNUSED PyObject *__pyx_self, struct __pyx_obj_3cgl_mat4 *__pyx_v_m) {
  struct CGL_mat4 __pyx_v_obj;
  struct __pyx_obj_3cgl_mat4 *__pyx_v_result = NULL;
  struct __pyx_obj_3cgl_mat4 *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("mat4_adjoint", 0);

  /* "cgl_wrapper.pyx":948
 * 
 * def mat4_adjoint(m: mat4) -> mat4:
 *     cdef CGL_mat4 obj = CGL_mat4_adjoint(m.c_mat4)             # <<<<<<<<<<<<<<
 *     result = mat4()
 *     result.set_c_mat4(obj)
 */
  __pyx_v_obj = CGL_mat4_adjoint(__pyx_v_m->c_mat4);

  /* "cgl_wrapper.pyx":949
 * def mat4_adjoint(m: mat4) -> mat4:
 *     cdef CGL_mat4 obj = CGL_mat4_adjoint(m.c_mat4)
 *     result = mat4()             # <<<<<<<<<<<<<<
 *     result.set_c_mat4(obj)
 *     return result
 */
  __pyx_t_1 = __Pyx_PyObject_CallNoArg(((PyObject *)__pyx_ptype_3cgl_mat4)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 949, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_v_result = ((struct __pyx_obj_3cgl_mat4 *)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "cgl_wrapper.pyx":950
 *     cdef CGL_mat4 obj = CGL_mat4_adjoint(m.c_mat4)
 *     result = mat4()
 *     result.set_c_mat4(obj)             # <<<<<<<<<<<<<<
 *     return result
 * 
 */
  __pyx_t_1 = ((struct __pyx_vtabstruct_3cgl_mat4 *)__pyx_v_result->__pyx_vtab)->set_c_mat4(__pyx_v_result, __pyx_v_obj); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 950, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "cgl_wrapper.pyx":951
 *     result = mat4()
 *     result.set_c_mat4(obj)
 *     return result             # <<<<<<<<<<<<<<
 * 
 * def mat4_gauss_elim(m: mat4) -> mat4:
 */
  __Pyx_XDECREF(((PyObject *)__pyx_r));
  __Pyx_INCREF(((PyObject *)__pyx_v_result));
  __pyx_r = __pyx_v_result;
  goto __pyx_L0;

  /* "cgl_wrapper.pyx":947
 *     return result
 * 
 * def mat4_adjoint(m: mat4) -> mat4:             # <<<<<<<<<<<<<<
 *     cdef CGL_mat4 obj = CGL_mat4_adjoint(m.c_mat4)
 *     result = mat4()
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cgl.mat4_adjoint", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF((PyObject *)__pyx_v_result);
  __Pyx_XGIVEREF((PyObject *)__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cgl_wrapper.pyx":953
 *     return result
 * 
 * def mat4_gauss_elim(m: mat4) -> mat4:             # <<<<<<<<<<<<<<
 *     cdef CGL_mat4 obj = CGL_mat4_gauss_elim(m.c_mat4)
 *     result = mat4()
 */

/* Python wrapper */
static struct __pyx_obj_3cgl_mat4 *__pyx_pw_3cgl_149mat4_gauss_elim(PyObject *__pyx_self, PyObject *__pyx_v_m); /*proto*/
static PyMethodDef __pyx_mdef_3cgl_149mat4_gauss_elim = {"mat4_gauss_elim", (PyCFunction)__pyx_pw_3cgl_149mat4_gauss_elim, METH_O, 0};
static struct __pyx_obj_3cgl_mat4 *__pyx_pw_3cgl_149mat4_gauss_elim(PyObject *__pyx_self, PyObject *__pyx_v_m) {
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  struct __pyx_obj_3cgl_mat4 *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("mat4_gauss_elim (wrapper)", 0);
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_m), __pyx_ptype_3cgl_mat4, 1, "m", 0))) __PYX_ERR(0, 953, __pyx_L1_error)
  __pyx_r = __pyx_pf_3cgl_148mat4_gauss_elim(__pyx_self, ((struct __pyx_obj_3cgl_mat4 *)__pyx_v_m));

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static struct __pyx_obj_3cgl_mat4 *__pyx_pf_3cgl_148mat4_gauss_elim(CYTHON_UNUSED PyObject *__pyx_self, struct __pyx_obj_3cgl_mat4 *__pyx_v_m) {
  struct CGL_mat4 __pyx_v_obj;
  struct __pyx_obj_3cgl_mat4 *__pyx_v_result = NULL;
  struct __pyx_obj_3cgl_mat4 *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("mat4_gauss_elim", 0);

  /* "cgl_wrapper.pyx":954
 * 
 * def mat4_gauss_elim(m: mat4) -> mat4:
 *     cdef CGL_mat4 obj = CGL_mat4_gauss_elim(m.c_mat4)             # <<<<<<<<<<<<<<
 *     result = mat4()
 *     result.set_c_mat4(obj)
 */
  __pyx_v_obj = CGL_mat4_gauss_elim(__pyx_v_m->c_mat4);

  /* "cgl_wrapper.pyx":955
 * def mat4_gauss_elim(m: mat4) -> mat4:
 *     cdef CGL_mat4 obj = CGL_mat4_gauss_elim(m.c_mat4)
 *     result = mat4()             # <<<<<<<<<<<<<<
 *     result.set_c_mat4(obj)
 *     return result
 */
  __pyx_t_1 = __Pyx_PyObject_CallNoArg(((PyObject *)__pyx_ptype_3cgl_mat4)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 955, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_v_result = ((struct __pyx_obj_3cgl_mat4 *)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "cgl_wrapper.pyx":956
 *     cdef CGL_mat4 obj = CGL_mat4_gauss_elim(m.c_mat4)
 *     result = mat4()
 *     result.set_c_mat4(obj)             # <<<<<<<<<<<<<<
 *     return result
 * 
 */
  __pyx_t_1 = ((struct __pyx_vtabstruct_3cgl_mat4 *)__pyx_v_result->__pyx_vtab)->set_c_mat4(__pyx_v_result, __pyx_v_obj); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 956, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "cgl_wrapper.pyx":957
 *     result = mat4()
 *     result.set_c_mat4(obj)
 *     return result             # <<<<<<<<<<<<<<
 * 
 * def mat4_rank(m: mat4) -> int:
 */
  __Pyx_XDECREF(((PyObject *)__pyx_r));
  __Pyx_INCREF(((PyObject *)__pyx_v_result));
  __pyx_r = __pyx_v_result;
  goto __pyx_L0;

  /* "cgl_wrapper.pyx":953
 *     return result
 * 
 * def mat4_gauss_elim(m: mat4) -> mat4:             # <<<<<<<<<<<<<<
 *     cdef CGL_mat4 obj = CGL_mat4_gauss_elim(m.c_mat4)
 *     result = mat4()
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cgl.mat4_gauss_elim", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF((PyObject *)__pyx_v_result);
  __Pyx_XGIVEREF((PyObject *)__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cgl_wrapper.pyx":959
 *     return result
 * 
 * def mat4_rank(m: mat4) -> int:             # <<<<<<<<<<<<<<
 *     return CGL_mat4_rank(m.c_mat4)
 * 
 */

/* Python wrapper */
static PyObject *__pyx_pw_3cgl_151mat4_rank(PyObject *__pyx_self, PyObject *__pyx_v_m); /*proto*/
static PyMethodDef __pyx_mdef_3cgl_151mat4_rank = {"mat4_rank", (PyCFunction)__pyx_pw_3cgl_151mat4_rank, METH_O, 0};
static PyObject *__pyx_pw_3cgl_151mat4_rank(PyObject *__pyx_self, PyObject *__pyx_v_m) {
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("mat4_rank (wrapper)", 0);
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_m), __pyx_ptype_3cgl_mat4, 1, "m", 0))) __PYX_ERR(0, 959, __pyx_L1_error)
  __pyx_r = __pyx_pf_3cgl_150mat4_rank(__pyx_self, ((struct __pyx_obj_3cgl_mat4 *)__pyx_v_m));

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_3cgl_150mat4_rank(CYTHON_UNUSED PyObject *__pyx_self, struct __pyx_obj_3cgl_mat4 *__pyx_v_m) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("mat4_rank", 0);

  /* "cgl_wrapper.pyx":960
 * 
 * def mat4_rank(m: mat4) -> int:
 *     return CGL_mat4_rank(m.c_mat4)             # <<<<<<<<<<<<<<
 * 
 * def mat4_trace(m: mat4) -> float:
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyInt_From_CGL_int(CGL_mat4_rank(__pyx_v_m->c_mat4)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 960, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cgl_wrapper.pyx":959
 *     return result
 * 
 * def mat4_rank(m: mat4) -> int:             # <<<<<<<<<<<<<<
 *     return CGL_mat4_rank(m.c_mat4)
 * 
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cgl.mat4_rank", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cgl_wrapper.pyx":962
 *     return CGL_mat4_rank(m.c_mat4)
 * 
 * def mat4_trace(m: mat4) -> float:             # <<<<<<<<<<<<<<
 *     return CGL_mat4_trace(m.c_mat4)
 * 
 */

/* Python wrapper */
static PyObject *__pyx_pw_3cgl_153mat4_trace(PyObject *__pyx_self, PyObject *__pyx_v_m); /*proto*/
static PyMethodDef __pyx_mdef_3cgl_153mat4_trace = {"mat4_trace", (PyCFunction)__pyx_pw_3cgl_153mat4_trace, METH_O, 0};
static PyObject *__pyx_pw_3cgl_153mat4_trace(PyObject *__pyx_self, PyObject *__pyx_v_m) {
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("mat4_trace (wrapper)", 0);
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_m), __pyx_ptype_3cgl_mat4, 1, "m", 0))) __PYX_ERR(0, 962, __pyx_L1_error)
  __pyx_r = __pyx_pf_3cgl_152mat4_trace(__pyx_self, ((struct __pyx_obj_3cgl_mat4 *)__pyx_v_m));

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_3cgl_152mat4_trace(CYTHON_UNUSED PyObject *__pyx_self, struct __pyx_obj_3cgl_mat4 *__pyx_v_m) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("mat4_trace", 0);

  /* "cgl_wrapper.pyx":963
 * 
 * def mat4_trace(m: mat4) -> float:
 *     return CGL_mat4_trace(m.c_mat4)             # <<<<<<<<<<<<<<
 * 
 * def mat4_rotate_about_axis(axis: vec3, angle: float) -> mat4:
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = PyFloat_FromDouble(CGL_mat4_trace(__pyx_v_m->c_mat4)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 963, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cgl_wrapper.pyx":962
 *     return CGL_mat4_rank(m.c_mat4)
 * 
 * def mat4_trace(m: mat4) -> float:             # <<<<<<<<<<<<<<
 *     return CGL_mat4_trace(m.c_mat4)
 * 
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cgl.mat4_trace", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cgl_wrapper.pyx":965
 *     return CGL_mat4_trace(m.c_mat4)
 * 
 * def mat4_rotate_about_axis(axis: vec3, angle: float) -> mat4:             # <<<<<<<<<<<<<<
 *     cdef CGL_mat4 obj = CGL_mat4_rotate_about_axis(axis.c_vec3, angle)
 *     result = mat4()
 */

/* Python wrapper */
static struct __pyx_obj_3cgl_mat4 *__pyx_pw_3cgl_155mat4_rotate_about_axis(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static PyMethodDef __pyx_mdef_3cgl_155mat4_rotate_about_axis = {"mat4_rotate_about_axis", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_3cgl_155mat4_rotate_about_axis, METH_VARARGS|METH_KEYWORDS, 0};
static struct __pyx_obj_3cgl_mat4 *__pyx_pw_3cgl_155mat4_rotate_about_axis(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  struct __pyx_obj_3cgl_vec3 *__pyx_v_axis = 0;
  double __pyx_v_angle;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  struct __pyx_obj_3cgl_mat4 *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("mat4_rotate_about_axis (wrapper)", 0);
  {
    static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_axis,&__pyx_n_s_angle,0};
    PyObject* values[2] = {0,0};
    if (unlikely(__pyx_kwds)) {
      Py_ssize_t kw_args;
      const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
      switch (pos_args) {
        case  2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
        CYTHON_FALLTHROUGH;
        case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      kw_args = PyDict_Size(__pyx_kwds);
      switch (pos_args) {
        case  0:
        if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_axis)) != 0)) kw_args--;
        else goto __pyx_L5_argtuple_error;
        CYTHON_FALLTHROUGH;
        case  1:
        if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_angle)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("mat4_rotate_about_axis", 1, 2, 2, 1); __PYX_ERR(0, 965, __pyx_L3_error)
        }
      }
      if (unlikely(kw_args > 0)) {
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "mat4_rotate_about_axis") < 0)) __PYX_ERR(0, 965, __pyx_L3_error)
      }
    } else if (PyTuple_GET_SIZE(__pyx_args) != 2) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
      values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
    }
    __pyx_v_axis = ((struct __pyx_obj_3cgl_vec3 *)values[0]);
    __pyx_v_angle = __pyx_PyFloat_AsDouble(values[1]); if (unlikely((__pyx_v_angle == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 965, __pyx_L3_error)
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("mat4_rotate_about_axis", 1, 2, 2, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 965, __pyx_L3_error)
  __pyx_L3_error:;
  __Pyx_AddTraceback("cgl.mat4_rotate_about_axis", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_axis), __pyx_ptype_3cgl_vec3, 1, "axis", 0))) __PYX_ERR(0, 965, __pyx_L1_error)
  __pyx_r = __pyx_pf_3cgl_154mat4_rotate_about_axis(__pyx_self, __pyx_v_axis, __pyx_v_angle);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static struct __pyx_obj_3cgl_mat4 *__pyx_pf_3cgl_154mat4_rotate_about_axis(CYTHON_UNUSED PyObject *__pyx_self, struct __pyx_obj_3cgl_vec3 *__pyx_v_axis, double __pyx_v_angle) {
  struct CGL_mat4 __pyx_v_obj;
  struct __pyx_obj_3cgl_mat4 *__pyx_v_result = NULL;
  struct __pyx_obj_3cgl_mat4 *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("mat4_rotate_about_axis", 0);

  /* "cgl_wrapper.pyx":966
 * 
 * def mat4_rotate_about_axis(axis: vec3, angle: float) -> mat4:
 *     cdef CGL_mat4 obj = CGL_mat4_rotate_about_axis(axis.c_vec3, angle)             # <<<<<<<<<<<<<<
 *     result = mat4()
 *     result.set_c_mat4(obj)
 */
  __pyx_v_obj = CGL_mat4_rotate_about_axis(__pyx_v_axis->c_vec3, __pyx_v_angle);

  /* "cgl_wrapper.pyx":967
 * def mat4_rotate_about_axis(axis: vec3, angle: float) -> mat4:
 *     cdef CGL_mat4 obj = CGL_mat4_rotate_about_axis(axis.c_vec3, angle)
 *     result = mat4()             # <<<<<<<<<<<<<<
 *     result.set_c_mat4(obj)
 *     return result
 */
  __pyx_t_1 = __Pyx_PyObject_CallNoArg(((PyObject *)__pyx_ptype_3cgl_mat4)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 967, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_v_result = ((struct __pyx_obj_3cgl_mat4 *)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "cgl_wrapper.pyx":968
 *     cdef CGL_mat4 obj = CGL_mat4_rotate_about_axis(axis.c_vec3, angle)
 *     result = mat4()
 *     result.set_c_mat4(obj)             # <<<<<<<<<<<<<<
 *     return result
 * 
 */
  __pyx_t_1 = ((struct __pyx_vtabstruct_3cgl_mat4 *)__pyx_v_result->__pyx_vtab)->set_c_mat4(__pyx_v_result, __pyx_v_obj); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 968, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "cgl_wrapper.pyx":969
 *     result = mat4()
 *     result.set_c_mat4(obj)
 *     return result             # <<<<<<<<<<<<<<
 * 
 * def mat4_look_at(eye: vec3, target: vec3, up: vec3) -> mat4:
 */
  __Pyx_XDECREF(((PyObject *)__pyx_r));
  __Pyx_INCREF(((PyObject *)__pyx_v_result));
  __pyx_r = __pyx_v_result;
  goto __pyx_L0;

  /* "cgl_wrapper.pyx":965
 *     return CGL_mat4_trace(m.c_mat4)
 * 
 * def mat4_rotate_about_axis(axis: vec3, angle: float) -> mat4:             # <<<<<<<<<<<<<<
 *     cdef CGL_mat4 obj = CGL_mat4_rotate_about_axis(axis.c_vec3, angle)
 *     result = mat4()
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cgl.mat4_rotate_about_axis", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF((PyObject *)__pyx_v_result);
  __Pyx_XGIVEREF((PyObject *)__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cgl_wrapper.pyx":971
 *     return result
 * 
 * def mat4_look_at(eye: vec3, target: vec3, up: vec3) -> mat4:             # <<<<<<<<<<<<<<
 *     cdef CGL_mat4 obj = CGL_mat4_look_at(eye.c_vec3, target.c_vec3, up.c_vec3)
 *     result = mat4()
 */

/* Python wrapper */
static struct __pyx_obj_3cgl_mat4 *__pyx_pw_3cgl_157mat4_look_at(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static PyMethodDef __pyx_mdef_3cgl_157mat4_look_at = {"mat4_look_at", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_3cgl_157mat4_look_at, METH_VARARGS|METH_KEYWORDS, 0};
static struct __pyx_obj_3cgl_mat4 *__pyx_pw_3cgl_157mat4_look_at(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  struct __pyx_obj_3cgl_vec3 *__pyx_v_eye = 0;
  struct __pyx_obj_3cgl_vec3 *__pyx_v_target = 0;
  struct __pyx_obj_3cgl_vec3 *__pyx_v_up = 0;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  struct __pyx_obj_3cgl_mat4 *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("mat4_look_at (wrapper)", 0);
  {
    static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_eye,&__pyx_n_s_target,&__pyx_n_s_up,0};
    PyObject* values[3] = {0,0,0};
    if (unlikely(__pyx_kwds)) {
      Py_ssize_t kw_args;
      const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
      switch (pos_args) {
        case  3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
        CYTHON_FALLTHROUGH;
        case  2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
        CYTHON_FALLTHROUGH;
        case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      kw_args = PyDict_Size(__pyx_kwds);
      switch (pos_args) {
        case  0:
        if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_eye)) != 0)) kw_args--;
        else goto __pyx_L5_argtuple_error;
        CYTHON_FALLTHROUGH;
        case  1:
        if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_target)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("mat4_look_at", 1, 3, 3, 1); __PYX_ERR(0, 971, __pyx_L3_error)
        }
        CYTHON_FALLTHROUGH;
        case  2:
        if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_up)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("mat4_look_at", 1, 3, 3, 2); __PYX_ERR(0, 971, __pyx_L3_error)
        }
      }
      if (unlikely(kw_args > 0)) {
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "mat4_look_at") < 0)) __PYX_ERR(0, 971, __pyx_L3_error)
      }
    } else if (PyTuple_GET_SIZE(__pyx_args) != 3) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
      values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
      values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
    }
    __pyx_v_eye = ((struct __pyx_obj_3cgl_vec3 *)values[0]);
    __pyx_v_target = ((struct __pyx_obj_3cgl_vec3 *)values[1]);
    __pyx_v_up = ((struct __pyx_obj_3cgl_vec3 *)values[2]);
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("mat4_look_at", 1, 3, 3, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 971, __pyx_L3_error)
  __pyx_L3_error:;
  __Pyx_AddTraceback("cgl.mat4_look_at", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_eye), __pyx_ptype_3cgl_vec3, 1, "eye", 0))) __PYX_ERR(0, 971, __pyx_L1_error)
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_target), __pyx_ptype_3cgl_vec3, 1, "target", 0))) __PYX_ERR(0, 971, __pyx_L1_error)
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_up), __pyx_ptype_3cgl_vec3, 1, "up", 0))) __PYX_ERR(0, 971, __pyx_L1_error)
  __pyx_r = __pyx_pf_3cgl_156mat4_look_at(__pyx_self, __pyx_v_eye, __pyx_v_target, __pyx_v_up);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static struct __pyx_obj_3cgl_mat4 *__pyx_pf_3cgl_156mat4_look_at(CYTHON_UNUSED PyObject *__pyx_self, struct __pyx_obj_3cgl_vec3 *__pyx_v_eye, struct __pyx_obj_3cgl_vec3 *__pyx_v_target, struct __pyx_obj_3cgl_vec3 *__pyx_v_up) {
  struct CGL_mat4 __pyx_v_obj;
  struct __pyx_obj_3cgl_mat4 *__pyx_v_result = NULL;
  struct __pyx_obj_3cgl_mat4 *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("mat4_look_at", 0);

  /* "cgl_wrapper.pyx":972
 * 
 * def mat4_look_at(eye: vec3, target: vec3, up: vec3) -> mat4:
 *     cdef CGL_mat4 obj = CGL_mat4_look_at(eye.c_vec3, target.c_vec3, up.c_vec3)             # <<<<<<<<<<<<<<
 *     result = mat4()
 *     result.set_c_mat4(obj)
 */
  __pyx_v_obj = CGL_mat4_look_at(__pyx_v_eye->c_vec3, __pyx_v_target->c_vec3, __pyx_v_up->c_vec3);

  /* "cgl_wrapper.pyx":973
 * def mat4_look_at(eye: vec3, target: vec3, up: vec3) -> mat4:
 *     cdef CGL_mat4 obj = CGL_mat4_look_at(eye.c_vec3, target.c_vec3, up.c_vec3)
 *     result = mat4()             # <<<<<<<<<<<<<<
 *     result.set_c_mat4(obj)
 *     return result
 */
  __pyx_t_1 = __Pyx_PyObject_CallNoArg(((PyObject *)__pyx_ptype_3cgl_mat4)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 973, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_v_result = ((struct __pyx_obj_3cgl_mat4 *)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "cgl_wrapper.pyx":974
 *     cdef CGL_mat4 obj = CGL_mat4_look_at(eye.c_vec3, target.c_vec3, up.c_vec3)
 *     result = mat4()
 *     result.set_c_mat4(obj)             # <<<<<<<<<<<<<<
 *     return result
 * 
 */
  __pyx_t_1 = ((struct __pyx_vtabstruct_3cgl_mat4 *)__pyx_v_result->__pyx_vtab)->set_c_mat4(__pyx_v_result, __pyx_v_obj); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 974, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "cgl_wrapper.pyx":975
 *     result = mat4()
 *     result.set_c_mat4(obj)
 *     return result             # <<<<<<<<<<<<<<
 * 
 * def mat4_lerp(a: mat4, b: mat4, t: float) -> mat4:
 */
  __Pyx_XDECREF(((PyObject *)__pyx_r));
  __Pyx_INCREF(((PyObject *)__pyx_v_result));
  __pyx_r = __pyx_v_result;
  goto __pyx_L0;

  /* "cgl_wrapper.pyx":971
 *     return result
 * 
 * def mat4_look_at(eye: vec3, target: vec3, up: vec3) -> mat4:             # <<<<<<<<<<<<<<
 *     cdef CGL_mat4 obj = CGL_mat4_look_at(eye.c_vec3, target.c_vec3, up.c_vec3)
 *     result = mat4()
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cgl.mat4_look_at", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF((PyObject *)__pyx_v_result);
  __Pyx_XGIVEREF((PyObject *)__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cgl_wrapper.pyx":977
 *     return result
 * 
 * def mat4_lerp(a: mat4, b: mat4, t: float) -> mat4:             # <<<<<<<<<<<<<<
 *     cdef CGL_mat4 obj = CGL_mat4_lerp(a.c_mat4, b.c_mat4, t)
 *     result = mat4()
 */

/* Python wrapper */
static struct __pyx_obj_3cgl_mat4 *__pyx_pw_3cgl_159mat4_lerp(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static PyMethodDef __pyx_mdef_3cgl_159mat4_lerp = {"mat4_lerp", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_3cgl_159mat4_lerp, METH_VARARGS|METH_KEYWORDS, 0};
static struct __pyx_obj_3cgl_mat4 *__pyx_pw_3cgl_159mat4_lerp(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  struct __pyx_obj_3cgl_mat4 *__pyx_v_a = 0;
  struct __pyx_obj_3cgl_mat4 *__pyx_v_b = 0;
  double __pyx_v_t;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  struct __pyx_obj_3cgl_mat4 *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("mat4_lerp (wrapper)", 0);
  {
    static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_a,&__pyx_n_s_b,&__pyx_n_s_t,0};
    PyObject* values[3] = {0,0,0};
    if (unlikely(__pyx_kwds)) {
      Py_ssize_t kw_args;
      const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
      switch (pos_args) {
        case  3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
        CYTHON_FALLTHROUGH;
        case  2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
        CYTHON_FALLTHROUGH;
        case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      kw_args = PyDict_Size(__pyx_kwds);
      switch (pos_args) {
        case  0:
        if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_a)) != 0)) kw_args--;
        else goto __pyx_L5_argtuple_error;
        CYTHON_FALLTHROUGH;
        case  1:
        if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_b)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("mat4_lerp", 1, 3, 3, 1); __PYX_ERR(0, 977, __pyx_L3_error)
        }
        CYTHON_FALLTHROUGH;
        case  2:
        if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_t)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("mat4_lerp", 1, 3, 3, 2); __PYX_ERR(0, 977, __pyx_L3_error)
        }
      }
      if (unlikely(kw_args > 0)) {
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "mat4_lerp") < 0)) __PYX_ERR(0, 977, __pyx_L3_error)
      }
    } else if (PyTuple_GET_SIZE(__pyx_args) != 3) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
      values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
      values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
    }
    __pyx_v_a = ((struct __pyx_obj_3cgl_mat4 *)values[0]);
    __pyx_v_b = ((struct __pyx_obj_3cgl_mat4 *)values[1]);
    __pyx_v_t = __pyx_PyFloat_AsDouble(values[2]); if (unlikely((__pyx_v_t == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 977, __pyx_L3_error)
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("mat4_lerp", 1, 3, 3, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 977, __pyx_L3_error)
  __pyx_L3_error:;
  __Pyx_AddTraceback("cgl.mat4_lerp", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_a), __pyx_ptype_3cgl_mat4, 1, "a", 0))) __PYX_ERR(0, 977, __pyx_L1_error)
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_b), __pyx_ptype_3cgl_mat4, 1, "b", 0))) __PYX_ERR(0, 977, __pyx_L1_error)
  __pyx_r = __pyx_pf_3cgl_158mat4_lerp(__pyx_self, __pyx_v_a, __pyx_v_b, __pyx_v_t);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static struct __pyx_obj_3cgl_mat4 *__pyx_pf_3cgl_158mat4_lerp(CYTHON_UNUSED PyObject *__pyx_self, struct __pyx_obj_3cgl_mat4 *__pyx_v_a, struct __pyx_obj_3cgl_mat4 *__pyx_v_b, double __pyx_v_t) {
  struct CGL_mat4 __pyx_v_obj;
  struct __pyx_obj_3cgl_mat4 *__pyx_v_result = NULL;
  struct __pyx_obj_3cgl_mat4 *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("mat4_lerp", 0);

  /* "cgl_wrapper.pyx":978
 * 
 * def mat4_lerp(a: mat4, b: mat4, t: float) -> mat4:
 *     cdef CGL_mat4 obj = CGL_mat4_lerp(a.c_mat4, b.c_mat4, t)             # <<<<<<<<<<<<<<
 *     result = mat4()
 *     result.set_c_mat4(obj)
 */
  __pyx_v_obj = CGL_mat4_lerp(__pyx_v_a->c_mat4, __pyx_v_b->c_mat4, __pyx_v_t);

  /* "cgl_wrapper.pyx":979
 * def mat4_lerp(a: mat4, b: mat4, t: float) -> mat4:
 *     cdef CGL_mat4 obj = CGL_mat4_lerp(a.c_mat4, b.c_mat4, t)
 *     result = mat4()             # <<<<<<<<<<<<<<
 *     result.set_c_mat4(obj)
 *     return result
 */
  __pyx_t_1 = __Pyx_PyObject_CallNoArg(((PyObject *)__pyx_ptype_3cgl_mat4)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 979, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_v_result = ((struct __pyx_obj_3cgl_mat4 *)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "cgl_wrapper.pyx":980
 *     cdef CGL_mat4 obj = CGL_mat4_lerp(a.c_mat4, b.c_mat4, t)
 *     result = mat4()
 *     result.set_c_mat4(obj)             # <<<<<<<<<<<<<<
 *     return result
 * 
 */
  __pyx_t_1 = ((struct __pyx_vtabstruct_3cgl_mat4 *)__pyx_v_result->__pyx_vtab)->set_c_mat4(__pyx_v_result, __pyx_v_obj); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 980, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "cgl_wrapper.pyx":981
 *     result = mat4()
 *     result.set_c_mat4(obj)
 *     return result             # <<<<<<<<<<<<<<
 * 
 * def mat4_decompose_lu(m: mat4, l: mat4, u: mat4):
 */
  __Pyx_XDECREF(((PyObject *)__pyx_r));
  __Pyx_INCREF(((PyObject *)__pyx_v_result));
  __pyx_r = __pyx_v_result;
  goto __pyx_L0;

  /* "cgl_wrapper.pyx":977
 *     return result
 * 
 * def mat4_lerp(a: mat4, b: mat4, t: float) -> mat4:             # <<<<<<<<<<<<<<
 *     cdef CGL_mat4 obj = CGL_mat4_lerp(a.c_mat4, b.c_mat4, t)
 *     result = mat4()
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cgl.mat4_lerp", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF((PyObject *)__pyx_v_result);
  __Pyx_XGIVEREF((PyObject *)__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cgl_wrapper.pyx":983
 *     return result
 * 
 * def mat4_decompose_lu(m: mat4, l: mat4, u: mat4):             # <<<<<<<<<<<<<<
 *     cdef CGL_mat4 l_obj = CGL_mat4()
 *     cdef CGL_mat4 u_obj = CGL_mat4()
 */

/* Python wrapper */
static PyObject *__pyx_pw_3cgl_161mat4_decompose_lu(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static PyMethodDef __pyx_mdef_3cgl_161mat4_decompose_lu = {"mat4_decompose_lu", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_3cgl_161mat4_decompose_lu, METH_VARARGS|METH_KEYWORDS, 0};
static PyObject *__pyx_pw_3cgl_161mat4_decompose_lu(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  struct __pyx_obj_3cgl_mat4 *__pyx_v_m = 0;
  struct __pyx_obj_3cgl_mat4 *__pyx_v_l = 0;
  struct __pyx_obj_3cgl_mat4 *__pyx_v_u = 0;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("mat4_decompose_lu (wrapper)", 0);
  {
    static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_m,&__pyx_n_s_l,&__pyx_n_s_u,0};
    PyObject* values[3] = {0,0,0};
    if (unlikely(__pyx_kwds)) {
      Py_ssize_t kw_args;
      const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
      switch (pos_args) {
        case  3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
        CYTHON_FALLTHROUGH;
        case  2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
        CYTHON_FALLTHROUGH;
        case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      kw_args = PyDict_Size(__pyx_kwds);
      switch (pos_args) {
        case  0:
        if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_m)) != 0)) kw_args--;
        else goto __pyx_L5_argtuple_error;
        CYTHON_FALLTHROUGH;
        case  1:
        if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_l)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("mat4_decompose_lu", 1, 3, 3, 1); __PYX_ERR(0, 983, __pyx_L3_error)
        }
        CYTHON_FALLTHROUGH;
        case  2:
        if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_u)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("mat4_decompose_lu", 1, 3, 3, 2); __PYX_ERR(0, 983, __pyx_L3_error)
        }
      }
      if (unlikely(kw_args > 0)) {
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "mat4_decompose_lu") < 0)) __PYX_ERR(0, 983, __pyx_L3_error)
      }
    } else if (PyTuple_GET_SIZE(__pyx_args) != 3) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
      values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
      values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
    }
    __pyx_v_m = ((struct __pyx_obj_3cgl_mat4 *)values[0]);
    __pyx_v_l = ((struct __pyx_obj_3cgl_mat4 *)values[1]);
    __pyx_v_u = ((struct __pyx_obj_3cgl_mat4 *)values[2]);
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("mat4_decompose_lu", 1, 3, 3, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 983, __pyx_L3_error)
  __pyx_L3_error:;
  __Pyx_AddTraceback("cgl.mat4_decompose_lu", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_m), __pyx_ptype_3cgl_mat4, 1, "m", 0))) __PYX_ERR(0, 983, __pyx_L1_error)
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_l), __pyx_ptype_3cgl_mat4, 1, "l", 0))) __PYX_ERR(0, 983, __pyx_L1_error)
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_u), __pyx_ptype_3cgl_mat4, 1, "u", 0))) __PYX_ERR(0, 983, __pyx_L1_error)
  __pyx_r = __pyx_pf_3cgl_160mat4_decompose_lu(__pyx_self, __pyx_v_m, __pyx_v_l, __pyx_v_u);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_3cgl_160mat4_decompose_lu(CYTHON_UNUSED PyObject *__pyx_self, struct __pyx_obj_3cgl_mat4 *__pyx_v_m, struct __pyx_obj_3cgl_mat4 *__pyx_v_l, struct __pyx_obj_3cgl_mat4 *__pyx_v_u) {
  struct CGL_mat4 __pyx_v_l_obj;
  struct CGL_mat4 __pyx_v_u_obj;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  struct CGL_mat4 __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("mat4_decompose_lu", 0);
  __Pyx_INCREF((PyObject *)__pyx_v_l);
  __Pyx_INCREF((PyObject *)__pyx_v_u);

  /* "cgl_wrapper.pyx":984
 * 
 * def mat4_decompose_lu(m: mat4, l: mat4, u: mat4):
 *     cdef CGL_mat4 l_obj = CGL_mat4()             # <<<<<<<<<<<<<<
 *     cdef CGL_mat4 u_obj = CGL_mat4()
 *     CGL_mat4_decompose_lu(m.c_mat4, &l_obj, &u_obj)
 */
  __pyx_v_l_obj = __pyx_t_1;

  /* "cgl_wrapper.pyx":985
 * def mat4_decompose_lu(m: mat4, l: mat4, u: mat4):
 *     cdef CGL_mat4 l_obj = CGL_mat4()
 *     cdef CGL_mat4 u_obj = CGL_mat4()             # <<<<<<<<<<<<<<
 *     CGL_mat4_decompose_lu(m.c_mat4, &l_obj, &u_obj)
 *     l = mat4()
 */
  __pyx_v_u_obj = __pyx_t_1;

  /* "cgl_wrapper.pyx":986
 *     cdef CGL_mat4 l_obj = CGL_mat4()
 *     cdef CGL_mat4 u_obj = CGL_mat4()
 *     CGL_mat4_decompose_lu(m.c_mat4, &l_obj, &u_obj)             # <<<<<<<<<<<<<<
 *     l = mat4()
 *     u = mat4()
 */
  CGL_mat4_decompose_lu(__pyx_v_m->c_mat4, (&__pyx_v_l_obj), (&__pyx_v_u_obj));

  /* "cgl_wrapper.pyx":987
 *     cdef CGL_mat4 u_obj = CGL_mat4()
 *     CGL_mat4_decompose_lu(m.c_mat4, &l_obj, &u_obj)
 *     l = mat4()             # <<<<<<<<<<<<<<
 *     u = mat4()
 *     l.set_c_mat4(l_obj)
 */
  __pyx_t_2 = __Pyx_PyObject_CallNoArg(((PyObject *)__pyx_ptype_3cgl_mat4)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 987, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF_SET(__pyx_v_l, ((struct __pyx_obj_3cgl_mat4 *)__pyx_t_2));
  __pyx_t_2 = 0;

  /* "cgl_wrapper.pyx":988
 *     CGL_mat4_decompose_lu(m.c_mat4, &l_obj, &u_obj)
 *     l = mat4()
 *     u = mat4()             # <<<<<<<<<<<<<<
 *     l.set_c_mat4(l_obj)
 *     u.set_c_mat4(u_obj)
 */
  __pyx_t_2 = __Pyx_PyObject_CallNoArg(((PyObject *)__pyx_ptype_3cgl_mat4)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 988, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF_SET(__pyx_v_u, ((struct __pyx_obj_3cgl_mat4 *)__pyx_t_2));
  __pyx_t_2 = 0;

  /* "cgl_wrapper.pyx":989
 *     l = mat4()
 *     u = mat4()
 *     l.set_c_mat4(l_obj)             # <<<<<<<<<<<<<<
 *     u.set_c_mat4(u_obj)
 *     return (l, u)
 */
  __pyx_t_2 = ((struct __pyx_vtabstruct_3cgl_mat4 *)__pyx_v_l->__pyx_vtab)->set_c_mat4(__pyx_v_l, __pyx_v_l_obj); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 989, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "cgl_wrapper.pyx":990
 *     u = mat4()
 *     l.set_c_mat4(l_obj)
 *     u.set_c_mat4(u_obj)             # <<<<<<<<<<<<<<
 *     return (l, u)
 * 
 */
  __pyx_t_2 = ((struct __pyx_vtabstruct_3cgl_mat4 *)__pyx_v_u->__pyx_vtab)->set_c_mat4(__pyx_v_u, __pyx_v_u_obj); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 990, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "cgl_wrapper.pyx":991
 *     l.set_c_mat4(l_obj)
 *     u.set_c_mat4(u_obj)
 *     return (l, u)             # <<<<<<<<<<<<<<
 * 
 * def mat4_perspective(fov: float, aspect: float, near: float, far: float) -> mat4:
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_2 = PyTuple_New(2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 991, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_INCREF(((PyObject *)__pyx_v_l));
  __Pyx_GIVEREF(((PyObject *)__pyx_v_l));
  PyTuple_SET_ITEM(__pyx_t_2, 0, ((PyObject *)__pyx_v_l));
  __Pyx_INCREF(((PyObject *)__pyx_v_u));
  __Pyx_GIVEREF(((PyObject *)__pyx_v_u));
  PyTuple_SET_ITEM(__pyx_t_2, 1, ((PyObject *)__pyx_v_u));
  __pyx_r = __pyx_t_2;
  __pyx_t_2 = 0;
  goto __pyx_L0;

  /* "cgl_wrapper.pyx":983
 *     return result
 * 
 * def mat4_decompose_lu(m: mat4, l: mat4, u: mat4):             # <<<<<<<<<<<<<<
 *     cdef CGL_mat4 l_obj = CGL_mat4()
 *     cdef CGL_mat4 u_obj = CGL_mat4()
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("cgl.mat4_decompose_lu", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF((PyObject *)__pyx_v_l);
  __Pyx_XDECREF((PyObject *)__pyx_v_u);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cgl_wrapper.pyx":993
 *     return (l, u)
 * 
 * def mat4_perspective(fov: float, aspect: float, near: float, far: float) -> mat4:             # <<<<<<<<<<<<<<
 *     cdef CGL_mat4 obj = CGL_mat4_perspective(fov, aspect, near, far)
 *     result = mat4()
 */

/* Python wrapper */
static struct __pyx_obj_3cgl_mat4 *__pyx_pw_3cgl_163mat4_perspective(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static PyMethodDef __pyx_mdef_3cgl_163mat4_perspective = {"mat4_perspective", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_3cgl_163mat4_perspective, METH_VARARGS|METH_KEYWORDS, 0};
static struct __pyx_obj_3cgl_mat4 *__pyx_pw_3cgl_163mat4_perspective(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  double __pyx_v_fov;
  double __pyx_v_aspect;
  double __pyx_v_near;
  double __pyx_v_far;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  struct __pyx_obj_3cgl_mat4 *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("mat4_perspective (wrapper)", 0);
  {
    static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_fov,&__pyx_n_s_aspect,&__pyx_n_s_near,&__pyx_n_s_far,0};
    PyObject* values[4] = {0,0,0,0};
    if (unlikely(__pyx_kwds)) {
      Py_ssize_t kw_args;
      const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
      switch (pos_args) {
        case  4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
        CYTHON_FALLTHROUGH;
        case  3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
        CYTHON_FALLTHROUGH;
        case  2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
        CYTHON_FALLTHROUGH;
        case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      kw_args = PyDict_Size(__pyx_kwds);
      switch (pos_args) {
        case  0:
        if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_fov)) != 0)) kw_args--;
        else goto __pyx_L5_argtuple_error;
        CYTHON_FALLTHROUGH;
        case  1:
        if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_aspect)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("mat4_perspective", 1, 4, 4, 1); __PYX_ERR(0, 993, __pyx_L3_error)
        }
        CYTHON_FALLTHROUGH;
        case  2:
        if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_near)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("mat4_perspective", 1, 4, 4, 2); __PYX_ERR(0, 993, __pyx_L3_error)
        }
        CYTHON_FALLTHROUGH;
        case  3:
        if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_far)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("mat4_perspective", 1, 4, 4, 3); __PYX_ERR(0, 993, __pyx_L3_error)
        }
      }
      if (unlikely(kw_args > 0)) {
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "mat4_perspective") < 0)) __PYX_ERR(0, 993, __pyx_L3_error)
      }
    } else if (PyTuple_GET_SIZE(__pyx_args) != 4) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
      values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
      values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
      values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
    }
    __pyx_v_fov = __pyx_PyFloat_AsDouble(values[0]); if (unlikely((__pyx_v_fov == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 993, __pyx_L3_error)
    __pyx_v_aspect = __pyx_PyFloat_AsDouble(values[1]); if (unlikely((__pyx_v_aspect == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 993, __pyx_L3_error)
    __pyx_v_near = __pyx_PyFloat_AsDouble(values[2]); if (unlikely((__pyx_v_near == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 993, __pyx_L3_error)
    __pyx_v_far = __pyx_PyFloat_AsDouble(values[3]); if (unlikely((__pyx_v_far == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 993, __pyx_L3_error)
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("mat4_perspective", 1, 4, 4, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 993, __pyx_L3_error)
  __pyx_L3_error:;
  __Pyx_AddTraceback("cgl.mat4_perspective", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_3cgl_162mat4_perspective(__pyx_self, __pyx_v_fov, __pyx_v_aspect, __pyx_v_near, __pyx_v_far);

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static struct __pyx_obj_3cgl_mat4 *__pyx_pf_3cgl_162mat4_perspective(CYTHON_UNUSED PyObject *__pyx_self, double __pyx_v_fov, double __pyx_v_aspect, double __pyx_v_near, double __pyx_v_far) {
  struct CGL_mat4 __pyx_v_obj;
  struct __pyx_obj_3cgl_mat4 *__pyx_v_result = NULL;
  struct __pyx_obj_3cgl_mat4 *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("mat4_perspective", 0);

  /* "cgl_wrapper.pyx":994
 * 
 * def mat4_perspective(fov: float, aspect: float, near: float, far: float) -> mat4:
 *     cdef CGL_mat4 obj = CGL_mat4_perspective(fov, aspect, near, far)             # <<<<<<<<<<<<<<
 *     result = mat4()
 *     result.set_c_mat4(obj)
 */
  __pyx_v_obj = CGL_mat4_perspective(__pyx_v_fov, __pyx_v_aspect, __pyx_v_near, __pyx_v_far);

  /* "cgl_wrapper.pyx":995
 * def mat4_perspective(fov: float, aspect: float, near: float, far: float) -> mat4:
 *     cdef CGL_mat4 obj = CGL_mat4_perspective(fov, aspect, near, far)
 *     result = mat4()             # <<<<<<<<<<<<<<
 *     result.set_c_mat4(obj)
 *     return result
 */
  __pyx_t_1 = __Pyx_PyObject_CallNoArg(((PyObject *)__pyx_ptype_3cgl_mat4)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 995, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_v_result = ((struct __pyx_obj_3cgl_mat4 *)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "cgl_wrapper.pyx":996
 *     cdef CGL_mat4 obj = CGL_mat4_perspective(fov, aspect, near, far)
 *     result = mat4()
 *     result.set_c_mat4(obj)             # <<<<<<<<<<<<<<
 *     return result
 * 
 */
  __pyx_t_1 = ((struct __pyx_vtabstruct_3cgl_mat4 *)__pyx_v_result->__pyx_vtab)->set_c_mat4(__pyx_v_result, __pyx_v_obj); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 996, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "cgl_wrapper.pyx":997
 *     result = mat4()
 *     result.set_c_mat4(obj)
 *     return result             # <<<<<<<<<<<<<<
 * 
 * def mat4_orthographic(left: float, right: float, bottom: float, top: float, near: float, far: float) -> mat4:
 */
  __Pyx_XDECREF(((PyObject *)__pyx_r));
  __Pyx_INCREF(((PyObject *)__pyx_v_result));
  __pyx_r = __pyx_v_result;
  goto __pyx_L0;

  /* "cgl_wrapper.pyx":993
 *     return (l, u)
 * 
 * def mat4_perspective(fov: float, aspect: float, near: float, far: float) -> mat4:             # <<<<<<<<<<<<<<
 *     cdef CGL_mat4 obj = CGL_mat4_perspective(fov, aspect, near, far)
 *     result = mat4()
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cgl.mat4_perspective", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF((PyObject *)__pyx_v_result);
  __Pyx_XGIVEREF((PyObject *)__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cgl_wrapper.pyx":999
 *     return result
 * 
 * def mat4_orthographic(left: float, right: float, bottom: float, top: float, near: float, far: float) -> mat4:             # <<<<<<<<<<<<<<
 *     cdef CGL_mat4 obj = CGL_mat4_orthographic(left, right, bottom, top, near, far)
 *     result = mat4()
 */

/* Python wrapper */
static struct __pyx_obj_3cgl_mat4 *__pyx_pw_3cgl_165mat4_orthographic(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static PyMethodDef __pyx_mdef_3cgl_165mat4_orthographic = {"mat4_orthographic", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_3cgl_165mat4_orthographic, METH_VARARGS|METH_KEYWORDS, 0};
static struct __pyx_obj_3cgl_mat4 *__pyx_pw_3cgl_165mat4_orthographic(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  double __pyx_v_left;
  double __pyx_v_right;
  double __pyx_v_bottom;
  double __pyx_v_top;
  double __pyx_v_near;
  double __pyx_v_far;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  struct __pyx_obj_3cgl_mat4 *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("mat4_orthographic (wrapper)", 0);
  {
    static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_left,&__pyx_n_s_right,&__pyx_n_s_bottom,&__pyx_n_s_top,&__pyx_n_s_near,&__pyx_n_s_far,0};
    PyObject* values[6] = {0,0,0,0,0,0};
    if (unlikely(__pyx_kwds)) {
      Py_ssize_t kw_args;
      const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
      switch (pos_args) {
        case  6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
        CYTHON_FALLTHROUGH;
        case  5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
        CYTHON_FALLTHROUGH;
        case  4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
        CYTHON_FALLTHROUGH;
        case  3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
        CYTHON_FALLTHROUGH;
        case  2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
        CYTHON_FALLTHROUGH;
        case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      kw_args = PyDict_Size(__pyx_kwds);
      switch (pos_args) {
        case  0:
        if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_left)) != 0)) kw_args--;
        else goto __pyx_L5_argtuple_error;
        CYTHON_FALLTHROUGH;
        case  1:
        if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_right)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("mat4_orthographic", 1, 6, 6, 1); __PYX_ERR(0, 999, __pyx_L3_error)
        }
        CYTHON_FALLTHROUGH;
        case  2:
        if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_bottom)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("mat4_orthographic", 1, 6, 6, 2); __PYX_ERR(0, 999, __pyx_L3_error)
        }
        CYTHON_FALLTHROUGH;
        case  3:
        if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_top)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("mat4_orthographic", 1, 6, 6, 3); __PYX_ERR(0, 999, __pyx_L3_error)
        }
        CYTHON_FALLTHROUGH;
        case  4:
        if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_near)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("mat4_orthographic", 1, 6, 6, 4); __PYX_ERR(0, 999, __pyx_L3_error)
        }
        CYTHON_FALLTHROUGH;
        case  5:
        if (likely((values[5] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_far)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("mat4_orthographic", 1, 6, 6, 5); __PYX_ERR(0, 999, __pyx_L3_error)
        }
      }
      if (unlikely(kw_args > 0)) {
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "mat4_orthographic") < 0)) __PYX_ERR(0, 999, __pyx_L3_error)
      }
    } else if (PyTuple_GET_SIZE(__pyx_args) != 6) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
      values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
      values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
      values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
      values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
      values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
    }
    __pyx_v_left = __pyx_PyFloat_AsDouble(values[0]); if (unlikely((__pyx_v_left == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 999, __pyx_L3_error)
    __pyx_v_right = __pyx_PyFloat_AsDouble(values[1]); if (unlikely((__pyx_v_right == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 999, __pyx_L3_error)
    __pyx_v_bottom = __pyx_PyFloat_AsDouble(values[2]); if (unlikely((__pyx_v_bottom == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 999, __pyx_L3_error)
    __pyx_v_top = __pyx_PyFloat_AsDouble(values[3]); if (unlikely((__pyx_v_top == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 999, __pyx_L3_error)
    __pyx_v_near = __pyx_PyFloat_AsDouble(values[4]); if (unlikely((__pyx_v_near == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 999, __pyx_L3_error)
    __pyx_v_far = __pyx_PyFloat_AsDouble(values[5]); if (unlikely((__pyx_v_far == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 999, __pyx_L3_error)
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("mat4_orthographic", 1, 6, 6, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 999, __pyx_L3_error)
  __pyx_L3_error:;
  __Pyx_AddTraceback("cgl.mat4_orthographic", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_3cgl_164mat4_orthographic(__pyx_self, __pyx_v_left, __pyx_v_right, __pyx_v_bottom, __pyx_v_top, __pyx_v_near, __pyx_v_far);

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static struct __pyx_obj_3cgl_mat4 *__pyx_pf_3cgl_164mat4_orthographic(CYTHON_UNUSED PyObject *__pyx_self, double __pyx_v_left, double __pyx_v_right, double __pyx_v_bottom, double __pyx_v_top, double __pyx_v_near, double __pyx_v_far) {
  struct CGL_mat4 __pyx_v_obj;
  struct __pyx_obj_3cgl_mat4 *__pyx_v_result = NULL;
  struct __pyx_obj_3cgl_mat4 *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("mat4_orthographic", 0);

  /* "cgl_wrapper.pyx":1000
 * 
 * def mat4_orthographic(left: float, right: float, bottom: float, top: float, near: float, far: float) -> mat4:
 *     cdef CGL_mat4 obj = CGL_mat4_orthographic(left, right, bottom, top, near, far)             # <<<<<<<<<<<<<<
 *     result = mat4()
 *     result.set_c_mat4(obj)
 */
  __pyx_v_obj = CGL_mat4_orthographic(__pyx_v_left, __pyx_v_right, __pyx_v_bottom, __pyx_v_top, __pyx_v_near, __pyx_v_far);

  /* "cgl_wrapper.pyx":1001
 * def mat4_orthographic(left: float, right: float, bottom: float, top: float, near: float, far: float) -> mat4:
 *     cdef CGL_mat4 obj = CGL_mat4_orthographic(left, right, bottom, top, near, far)
 *     result = mat4()             # <<<<<<<<<<<<<<
 *     result.set_c_mat4(obj)
 *     return result
 */
  __pyx_t_1 = __Pyx_PyObject_CallNoArg(((PyObject *)__pyx_ptype_3cgl_mat4)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1001, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_v_result = ((struct __pyx_obj_3cgl_mat4 *)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "cgl_wrapper.pyx":1002
 *     cdef CGL_mat4 obj = CGL_mat4_orthographic(left, right, bottom, top, near, far)
 *     result = mat4()
 *     result.set_c_mat4(obj)             # <<<<<<<<<<<<<<
 *     return result
 * 
 */
  __pyx_t_1 = ((struct __pyx_vtabstruct_3cgl_mat4 *)__pyx_v_result->__pyx_vtab)->set_c_mat4(__pyx_v_result, __pyx_v_obj); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1002, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "cgl_wrapper.pyx":1003
 *     result = mat4()
 *     result.set_c_mat4(obj)
 *     return result             # <<<<<<<<<<<<<<
 * 
 * def mat4_zero() -> mat4:
 */
  __Pyx_XDECREF(((PyObject *)__pyx_r));
  __Pyx_INCREF(((PyObject *)__pyx_v_result));
  __pyx_r = __pyx_v_result;
  goto __pyx_L0;

  /* "cgl_wrapper.pyx":999
 *     return result
 * 
 * def mat4_orthographic(left: float, right: float, bottom: float, top: float, near: float, far: float) -> mat4:             # <<<<<<<<<<<<<<
 *     cdef CGL_mat4 obj = CGL_mat4_orthographic(left, right, bottom, top, near, far)
 *     result = mat4()
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cgl.mat4_orthographic", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF((PyObject *)__pyx_v_result);
  __Pyx_XGIVEREF((PyObject *)__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cgl_wrapper.pyx":1005
 *     return result
 * 
 * def mat4_zero() -> mat4:             # <<<<<<<<<<<<<<
 *     cdef CGL_mat4 obj = CGL_mat4_zero()
 *     result = mat4()
 */

/* Python wrapper */
static struct __pyx_obj_3cgl_mat4 *__pyx_pw_3cgl_167mat4_zero(PyObject *__pyx_self, CYTHON_UNUSED PyObject *unused); /*proto*/
static PyMethodDef __pyx_mdef_3cgl_167mat4_zero = {"mat4_zero", (PyCFunction)__pyx_pw_3cgl_167mat4_zero, METH_NOARGS, 0};
static struct __pyx_obj_3cgl_mat4 *__pyx_pw_3cgl_167mat4_zero(PyObject *__pyx_self, CYTHON_UNUSED PyObject *unused) {
  struct __pyx_obj_3cgl_mat4 *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("mat4_zero (wrapper)", 0);
  __pyx_r = __pyx_pf_3cgl_166mat4_zero(__pyx_self);

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static struct __pyx_obj_3cgl_mat4 *__pyx_pf_3cgl_166mat4_zero(CYTHON_UNUSED PyObject *__pyx_self) {
  struct CGL_mat4 __pyx_v_obj;
  struct __pyx_obj_3cgl_mat4 *__pyx_v_result = NULL;
  struct __pyx_obj_3cgl_mat4 *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("mat4_zero", 0);

  /* "cgl_wrapper.pyx":1006
 * 
 * def mat4_zero() -> mat4:
 *     cdef CGL_mat4 obj = CGL_mat4_zero()             # <<<<<<<<<<<<<<
 *     result = mat4()
 *     result.set_c_mat4(obj)
 */
  __pyx_v_obj = CGL_mat4_zero();

  /* "cgl_wrapper.pyx":1007
 * def mat4_zero() -> mat4:
 *     cdef CGL_mat4 obj = CGL_mat4_zero()
 *     result = mat4()             # <<<<<<<<<<<<<<
 *     result.set_c_mat4(obj)
 *     return result
 */
  __pyx_t_1 = __Pyx_PyObject_CallNoArg(((PyObject *)__pyx_ptype_3cgl_mat4)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1007, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_v_result = ((struct __pyx_obj_3cgl_mat4 *)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "cgl_wrapper.pyx":1008
 *     cdef CGL_mat4 obj = CGL_mat4_zero()
 *     result = mat4()
 *     result.set_c_mat4(obj)             # <<<<<<<<<<<<<<
 *     return result
 * 
 */
  __pyx_t_1 = ((struct __pyx_vtabstruct_3cgl_mat4 *)__pyx_v_result->__pyx_vtab)->set_c_mat4(__pyx_v_result, __pyx_v_obj); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1008, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "cgl_wrapper.pyx":1009
 *     result = mat4()
 *     result.set_c_mat4(obj)
 *     return result             # <<<<<<<<<<<<<<
 * 
 * def mat4_identity() -> mat4:
 */
  __Pyx_XDECREF(((PyObject *)__pyx_r));
  __Pyx_INCREF(((PyObject *)__pyx_v_result));
  __pyx_r = __pyx_v_result;
  goto __pyx_L0;

  /* "cgl_wrapper.pyx":1005
 *     return result
 * 
 * def mat4_zero() -> mat4:             # <<<<<<<<<<<<<<
 *     cdef CGL_mat4 obj = CGL_mat4_zero()
 *     result = mat4()
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cgl.mat4_zero", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF((PyObject *)__pyx_v_result);
  __Pyx_XGIVEREF((PyObject *)__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cgl_wrapper.pyx":1011
 *     return result
 * 
 * def mat4_identity() -> mat4:             # <<<<<<<<<<<<<<
 *     cdef CGL_mat4 obj = CGL_mat4_identity()
 *     result = mat4()
 */

/* Python wrapper */
static struct __pyx_obj_3cgl_mat4 *__pyx_pw_3cgl_169mat4_identity(PyObject *__pyx_self, CYTHON_UNUSED PyObject *unused); /*proto*/
static PyMethodDef __pyx_mdef_3cgl_169mat4_identity = {"mat4_identity", (PyCFunction)__pyx_pw_3cgl_169mat4_identity, METH_NOARGS, 0};
static struct __pyx_obj_3cgl_mat4 *__pyx_pw_3cgl_169mat4_identity(PyObject *__pyx_self, CYTHON_UNUSED PyObject *unused) {
  struct __pyx_obj_3cgl_mat4 *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("mat4_identity (wrapper)", 0);
  __pyx_r = __pyx_pf_3cgl_168mat4_identity(__pyx_self);

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static struct __pyx_obj_3cgl_mat4 *__pyx_pf_3cgl_168mat4_identity(CYTHON_UNUSED PyObject *__pyx_self) {
  struct CGL_mat4 __pyx_v_obj;
  struct __pyx_obj_3cgl_mat4 *__pyx_v_result = NULL;
  struct __pyx_obj_3cgl_mat4 *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("mat4_identity", 0);

  /* "cgl_wrapper.pyx":1012
 * 
 * def mat4_identity() -> mat4:
 *     cdef CGL_mat4 obj = CGL_mat4_identity()             # <<<<<<<<<<<<<<
 *     result = mat4()
 *     result.set_c_mat4(obj)
 */
  __pyx_v_obj = CGL_mat4_identity();

  /* "cgl_wrapper.pyx":1013
 * def mat4_identity() -> mat4:
 *     cdef CGL_mat4 obj = CGL_mat4_identity()
 *     result = mat4()             # <<<<<<<<<<<<<<
 *     result.set_c_mat4(obj)
 *     return result
 */
  __pyx_t_1 = __Pyx_PyObject_CallNoArg(((PyObject *)__pyx_ptype_3cgl_mat4)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1013, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_v_result = ((struct __pyx_obj_3cgl_mat4 *)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "cgl_wrapper.pyx":1014
 *     cdef CGL_mat4 obj = CGL_mat4_identity()
 *     result = mat4()
 *     result.set_c_mat4(obj)             # <<<<<<<<<<<<<<
 *     return result
 * 
 */
  __pyx_t_1 = ((struct __pyx_vtabstruct_3cgl_mat4 *)__pyx_v_result->__pyx_vtab)->set_c_mat4(__pyx_v_result, __pyx_v_obj); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1014, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "cgl_wrapper.pyx":1015
 *     result = mat4()
 *     result.set_c_mat4(obj)
 *     return result             # <<<<<<<<<<<<<<
 * 
 * 
 */
  __Pyx_XDECREF(((PyObject *)__pyx_r));
  __Pyx_INCREF(((PyObject *)__pyx_v_result));
  __pyx_r = __pyx_v_result;
  goto __pyx_L0;

  /* "cgl_wrapper.pyx":1011
 *     return result
 * 
 * def mat4_identity() -> mat4:             # <<<<<<<<<<<<<<
 *     cdef CGL_mat4 obj = CGL_mat4_identity()
 *     result = mat4()
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cgl.mat4_identity", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF((PyObject *)__pyx_v_result);
  __Pyx_XGIVEREF((PyObject *)__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cgl_wrapper.pyx":1018
 * 
 * 
 * def mat4_scale(x: float, y: float, z: float) -> mat4:             # <<<<<<<<<<<<<<
 *     cdef CGL_mat4 obj = CGL_mat4_scale(x, y, z)
 *     result = mat4()
 */

/* Python wrapper */
static struct __pyx_obj_3cgl_mat4 *__pyx_pw_3cgl_171mat4_scale(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static PyMethodDef __pyx_mdef_3cgl_171mat4_scale = {"mat4_scale", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_3cgl_171mat4_scale, METH_VARARGS|METH_KEYWORDS, 0};
static struct __pyx_obj_3cgl_mat4 *__pyx_pw_3cgl_171mat4_scale(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  double __pyx_v_x;
  double __pyx_v_y;
  double __pyx_v_z;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  struct __pyx_obj_3cgl_mat4 *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("mat4_scale (wrapper)", 0);
  {
    static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_x,&__pyx_n_s_y,&__pyx_n_s_z,0};
    PyObject* values[3] = {0,0,0};
    if (unlikely(__pyx_kwds)) {
      Py_ssize_t kw_args;
      const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
      switch (pos_args) {
        case  3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
        CYTHON_FALLTHROUGH;
        case  2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
        CYTHON_FALLTHROUGH;
        case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      kw_args = PyDict_Size(__pyx_kwds);
      switch (pos_args) {
        case  0:
        if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_x)) != 0)) kw_args--;
        else goto __pyx_L5_argtuple_error;
        CYTHON_FALLTHROUGH;
        case  1:
        if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_y)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("mat4_scale", 1, 3, 3, 1); __PYX_ERR(0, 1018, __pyx_L3_error)
        }
        CYTHON_FALLTHROUGH;
        case  2:
        if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_z)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("mat4_scale", 1, 3, 3, 2); __PYX_ERR(0, 1018, __pyx_L3_error)
        }
      }
      if (unlikely(kw_args > 0)) {
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "mat4_scale") < 0)) __PYX_ERR(0, 1018, __pyx_L3_error)
      }
    } else if (PyTuple_GET_SIZE(__pyx_args) != 3) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
      values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
      values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
    }
    __pyx_v_x = __pyx_PyFloat_AsDouble(values[0]); if (unlikely((__pyx_v_x == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 1018, __pyx_L3_error)
    __pyx_v_y = __pyx_PyFloat_AsDouble(values[1]); if (unlikely((__pyx_v_y == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 1018, __pyx_L3_error)
    __pyx_v_z = __pyx_PyFloat_AsDouble(values[2]); if (unlikely((__pyx_v_z == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 1018, __pyx_L3_error)
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("mat4_scale", 1, 3, 3, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 1018, __pyx_L3_error)
  __pyx_L3_error:;
  __Pyx_AddTraceback("cgl.mat4_scale", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_3cgl_170mat4_scale(__pyx_self, __pyx_v_x, __pyx_v_y, __pyx_v_z);

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static struct __pyx_obj_3cgl_mat4 *__pyx_pf_3cgl_170mat4_scale(CYTHON_UNUSED PyObject *__pyx_self, double __pyx_v_x, double __pyx_v_y, double __pyx_v_z) {
  struct CGL_mat4 __pyx_v_obj;
  struct __pyx_obj_3cgl_mat4 *__pyx_v_result = NULL;
  struct __pyx_obj_3cgl_mat4 *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("mat4_scale", 0);

  /* "cgl_wrapper.pyx":1019
 * 
 * def mat4_scale(x: float, y: float, z: float) -> mat4:
 *     cdef CGL_mat4 obj = CGL_mat4_scale(x, y, z)             # <<<<<<<<<<<<<<
 *     result = mat4()
 *     result.set_c_mat4(obj)
 */
  __pyx_v_obj = CGL_mat4_scale(__pyx_v_x, __pyx_v_y, __pyx_v_z);

  /* "cgl_wrapper.pyx":1020
 * def mat4_scale(x: float, y: float, z: float) -> mat4:
 *     cdef CGL_mat4 obj = CGL_mat4_scale(x, y, z)
 *     result = mat4()             # <<<<<<<<<<<<<<
 *     result.set_c_mat4(obj)
 *     return result
 */
  __pyx_t_1 = __Pyx_PyObject_CallNoArg(((PyObject *)__pyx_ptype_3cgl_mat4)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1020, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_v_result = ((struct __pyx_obj_3cgl_mat4 *)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "cgl_wrapper.pyx":1021
 *     cdef CGL_mat4 obj = CGL_mat4_scale(x, y, z)
 *     result = mat4()
 *     result.set_c_mat4(obj)             # <<<<<<<<<<<<<<
 *     return result
 * 
 */
  __pyx_t_1 = ((struct __pyx_vtabstruct_3cgl_mat4 *)__pyx_v_result->__pyx_vtab)->set_c_mat4(__pyx_v_result, __pyx_v_obj); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1021, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "cgl_wrapper.pyx":1022
 *     result = mat4()
 *     result.set_c_mat4(obj)
 *     return result             # <<<<<<<<<<<<<<
 * 
 * def mat4_translate(x: float, y: float, z: float) -> mat4:
 */
  __Pyx_XDECREF(((PyObject *)__pyx_r));
  __Pyx_INCREF(((PyObject *)__pyx_v_result));
  __pyx_r = __pyx_v_result;
  goto __pyx_L0;

  /* "cgl_wrapper.pyx":1018
 * 
 * 
 * def mat4_scale(x: float, y: float, z: float) -> mat4:             # <<<<<<<<<<<<<<
 *     cdef CGL_mat4 obj = CGL_mat4_scale(x, y, z)
 *     result = mat4()
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cgl.mat4_scale", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF((PyObject *)__pyx_v_result);
  __Pyx_XGIVEREF((PyObject *)__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cgl_wrapper.pyx":1024
 *     return result
 * 
 * def mat4_translate(x: float, y: float, z: float) -> mat4:             # <<<<<<<<<<<<<<
 *     cdef CGL_mat4 obj = CGL_mat4_translate(x, y, z)
 *     result = mat4()
 */

/* Python wrapper */
static struct __pyx_obj_3cgl_mat4 *__pyx_pw_3cgl_173mat4_translate(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static PyMethodDef __pyx_mdef_3cgl_173mat4_translate = {"mat4_translate", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_3cgl_173mat4_translate, METH_VARARGS|METH_KEYWORDS, 0};
static struct __pyx_obj_3cgl_mat4 *__pyx_pw_3cgl_173mat4_translate(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  double __pyx_v_x;
  double __pyx_v_y;
  double __pyx_v_z;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  struct __pyx_obj_3cgl_mat4 *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("mat4_translate (wrapper)", 0);
  {
    static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_x,&__pyx_n_s_y,&__pyx_n_s_z,0};
    PyObject* values[3] = {0,0,0};
    if (unlikely(__pyx_kwds)) {
      Py_ssize_t kw_args;
      const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
      switch (pos_args) {
        case  3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
        CYTHON_FALLTHROUGH;
        case  2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
        CYTHON_FALLTHROUGH;
        case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      kw_args = PyDict_Size(__pyx_kwds);
      switch (pos_args) {
        case  0:
        if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_x)) != 0)) kw_args--;
        else goto __pyx_L5_argtuple_error;
        CYTHON_FALLTHROUGH;
        case  1:
        if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_y)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("mat4_translate", 1, 3, 3, 1); __PYX_ERR(0, 1024, __pyx_L3_error)
        }
        CYTHON_FALLTHROUGH;
        case  2:
        if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_z)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("mat4_translate", 1, 3, 3, 2); __PYX_ERR(0, 1024, __pyx_L3_error)
        }
      }
      if (unlikely(kw_args > 0)) {
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "mat4_translate") < 0)) __PYX_ERR(0, 1024, __pyx_L3_error)
      }
    } else if (PyTuple_GET_SIZE(__pyx_args) != 3) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
      values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
      values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
    }
    __pyx_v_x = __pyx_PyFloat_AsDouble(values[0]); if (unlikely((__pyx_v_x == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 1024, __pyx_L3_error)
    __pyx_v_y = __pyx_PyFloat_AsDouble(values[1]); if (unlikely((__pyx_v_y == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 1024, __pyx_L3_error)
    __pyx_v_z = __pyx_PyFloat_AsDouble(values[2]); if (unlikely((__pyx_v_z == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 1024, __pyx_L3_error)
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("mat4_translate", 1, 3, 3, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 1024, __pyx_L3_error)
  __pyx_L3_error:;
  __Pyx_AddTraceback("cgl.mat4_translate", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_3cgl_172mat4_translate(__pyx_self, __pyx_v_x, __pyx_v_y, __pyx_v_z);

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static struct __pyx_obj_3cgl_mat4 *__pyx_pf_3cgl_172mat4_translate(CYTHON_UNUSED PyObject *__pyx_self, double __pyx_v_x, double __pyx_v_y, double __pyx_v_z) {
  struct CGL_mat4 __pyx_v_obj;
  struct __pyx_obj_3cgl_mat4 *__pyx_v_result = NULL;
  struct __pyx_obj_3cgl_mat4 *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("mat4_translate", 0);

  /* "cgl_wrapper.pyx":1025
 * 
 * def mat4_translate(x: float, y: float, z: float) -> mat4:
 *     cdef CGL_mat4 obj = CGL_mat4_translate(x, y, z)             # <<<<<<<<<<<<<<
 *     result = mat4()
 *     result.set_c_mat4(obj)
 */
  __pyx_v_obj = CGL_mat4_translate(__pyx_v_x, __pyx_v_y, __pyx_v_z);

  /* "cgl_wrapper.pyx":1026
 * def mat4_translate(x: float, y: float, z: float) -> mat4:
 *     cdef CGL_mat4 obj = CGL_mat4_translate(x, y, z)
 *     result = mat4()             # <<<<<<<<<<<<<<
 *     result.set_c_mat4(obj)
 *     return result
 */
  __pyx_t_1 = __Pyx_PyObject_CallNoArg(((PyObject *)__pyx_ptype_3cgl_mat4)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1026, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_v_result = ((struct __pyx_obj_3cgl_mat4 *)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "cgl_wrapper.pyx":1027
 *     cdef CGL_mat4 obj = CGL_mat4_translate(x, y, z)
 *     result = mat4()
 *     result.set_c_mat4(obj)             # <<<<<<<<<<<<<<
 *     return result
 * 
 */
  __pyx_t_1 = ((struct __pyx_vtabstruct_3cgl_mat4 *)__pyx_v_result->__pyx_vtab)->set_c_mat4(__pyx_v_result, __pyx_v_obj); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1027, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "cgl_wrapper.pyx":1028
 *     result = mat4()
 *     result.set_c_mat4(obj)
 *     return result             # <<<<<<<<<<<<<<
 * 
 * def mat4_rotate_x(angle: float) -> mat4:
 */
  __Pyx_XDECREF(((PyObject *)__pyx_r));
  __Pyx_INCREF(((PyObject *)__pyx_v_result));
  __pyx_r = __pyx_v_result;
  goto __pyx_L0;

  /* "cgl_wrapper.pyx":1024
 *     return result
 * 
 * def mat4_translate(x: float, y: float, z: float) -> mat4:             # <<<<<<<<<<<<<<
 *     cdef CGL_mat4 obj = CGL_mat4_translate(x, y, z)
 *     result = mat4()
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cgl.mat4_translate", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF((PyObject *)__pyx_v_result);
  __Pyx_XGIVEREF((PyObject *)__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cgl_wrapper.pyx":1030
 *     return result
 * 
 * def mat4_rotate_x(angle: float) -> mat4:             # <<<<<<<<<<<<<<
 *     cdef CGL_mat4 obj = CGL_mat4_rotate_x(angle)
 *     result = mat4()
 */

/* Python wrapper */
static struct __pyx_obj_3cgl_mat4 *__pyx_pw_3cgl_175mat4_rotate_x(PyObject *__pyx_self, PyObject *__pyx_arg_angle); /*proto*/
static PyMethodDef __pyx_mdef_3cgl_175mat4_rotate_x = {"mat4_rotate_x", (PyCFunction)__pyx_pw_3cgl_175mat4_rotate_x, METH_O, 0};
static struct __pyx_obj_3cgl_mat4 *__pyx_pw_3cgl_175mat4_rotate_x(PyObject *__pyx_self, PyObject *__pyx_arg_angle) {
  double __pyx_v_angle;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  struct __pyx_obj_3cgl_mat4 *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("mat4_rotate_x (wrapper)", 0);
  assert(__pyx_arg_angle); {
    __pyx_v_angle = __pyx_PyFloat_AsDouble(__pyx_arg_angle); if (unlikely((__pyx_v_angle == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 1030, __pyx_L3_error)
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  __Pyx_AddTraceback("cgl.mat4_rotate_x", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_3cgl_174mat4_rotate_x(__pyx_self, ((double)__pyx_v_angle));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static struct __pyx_obj_3cgl_mat4 *__pyx_pf_3cgl_174mat4_rotate_x(CYTHON_UNUSED PyObject *__pyx_self, double __pyx_v_angle) {
  struct CGL_mat4 __pyx_v_obj;
  struct __pyx_obj_3cgl_mat4 *__pyx_v_result = NULL;
  struct __pyx_obj_3cgl_mat4 *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("mat4_rotate_x", 0);

  /* "cgl_wrapper.pyx":1031
 * 
 * def mat4_rotate_x(angle: float) -> mat4:
 *     cdef CGL_mat4 obj = CGL_mat4_rotate_x(angle)             # <<<<<<<<<<<<<<
 *     result = mat4()
 *     result.set_c_mat4(obj)
 */
  __pyx_v_obj = CGL_mat4_rotate_x(__pyx_v_angle);

  /* "cgl_wrapper.pyx":1032
 * def mat4_rotate_x(angle: float) -> mat4:
 *     cdef CGL_mat4 obj = CGL_mat4_rotate_x(angle)
 *     result = mat4()             # <<<<<<<<<<<<<<
 *     result.set_c_mat4(obj)
 *     return result
 */
  __pyx_t_1 = __Pyx_PyObject_CallNoArg(((PyObject *)__pyx_ptype_3cgl_mat4)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1032, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_v_result = ((struct __pyx_obj_3cgl_mat4 *)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "cgl_wrapper.pyx":1033
 *     cdef CGL_mat4 obj = CGL_mat4_rotate_x(angle)
 *     result = mat4()
 *     result.set_c_mat4(obj)             # <<<<<<<<<<<<<<
 *     return result
 * 
 */
  __pyx_t_1 = ((struct __pyx_vtabstruct_3cgl_mat4 *)__pyx_v_result->__pyx_vtab)->set_c_mat4(__pyx_v_result, __pyx_v_obj); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1033, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "cgl_wrapper.pyx":1034
 *     result = mat4()
 *     result.set_c_mat4(obj)
 *     return result             # <<<<<<<<<<<<<<
 * 
 * def mat4_rotate_y(angle: float) -> mat4:
 */
  __Pyx_XDECREF(((PyObject *)__pyx_r));
  __Pyx_INCREF(((PyObject *)__pyx_v_result));
  __pyx_r = __pyx_v_result;
  goto __pyx_L0;

  /* "cgl_wrapper.pyx":1030
 *     return result
 * 
 * def mat4_rotate_x(angle: float) -> mat4:             # <<<<<<<<<<<<<<
 *     cdef CGL_mat4 obj = CGL_mat4_rotate_x(angle)
 *     result = mat4()
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cgl.mat4_rotate_x", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF((PyObject *)__pyx_v_result);
  __Pyx_XGIVEREF((PyObject *)__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cgl_wrapper.pyx":1036
 *     return result
 * 
 * def mat4_rotate_y(angle: float) -> mat4:             # <<<<<<<<<<<<<<
 *     cdef CGL_mat4 obj = CGL_mat4_rotate_y(angle)
 *     result = mat4()
 */

/* Python wrapper */
static struct __pyx_obj_3cgl_mat4 *__pyx_pw_3cgl_177mat4_rotate_y(PyObject *__pyx_self, PyObject *__pyx_arg_angle); /*proto*/
static PyMethodDef __pyx_mdef_3cgl_177mat4_rotate_y = {"mat4_rotate_y", (PyCFunction)__pyx_pw_3cgl_177mat4_rotate_y, METH_O, 0};
static struct __pyx_obj_3cgl_mat4 *__pyx_pw_3cgl_177mat4_rotate_y(PyObject *__pyx_self, PyObject *__pyx_arg_angle) {
  double __pyx_v_angle;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  struct __pyx_obj_3cgl_mat4 *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("mat4_rotate_y (wrapper)", 0);
  assert(__pyx_arg_angle); {
    __pyx_v_angle = __pyx_PyFloat_AsDouble(__pyx_arg_angle); if (unlikely((__pyx_v_angle == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 1036, __pyx_L3_error)
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  __Pyx_AddTraceback("cgl.mat4_rotate_y", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_3cgl_176mat4_rotate_y(__pyx_self, ((double)__pyx_v_angle));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static struct __pyx_obj_3cgl_mat4 *__pyx_pf_3cgl_176mat4_rotate_y(CYTHON_UNUSED PyObject *__pyx_self, double __pyx_v_angle) {
  struct CGL_mat4 __pyx_v_obj;
  struct __pyx_obj_3cgl_mat4 *__pyx_v_result = NULL;
  struct __pyx_obj_3cgl_mat4 *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("mat4_rotate_y", 0);

  /* "cgl_wrapper.pyx":1037
 * 
 * def mat4_rotate_y(angle: float) -> mat4:
 *     cdef CGL_mat4 obj = CGL_mat4_rotate_y(angle)             # <<<<<<<<<<<<<<
 *     result = mat4()
 *     result.set_c_mat4(obj)
 */
  __pyx_v_obj = CGL_mat4_rotate_y(__pyx_v_angle);

  /* "cgl_wrapper.pyx":1038
 * def mat4_rotate_y(angle: float) -> mat4:
 *     cdef CGL_mat4 obj = CGL_mat4_rotate_y(angle)
 *     result = mat4()             # <<<<<<<<<<<<<<
 *     result.set_c_mat4(obj)
 *     return result
 */
  __pyx_t_1 = __Pyx_PyObject_CallNoArg(((PyObject *)__pyx_ptype_3cgl_mat4)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1038, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_v_result = ((struct __pyx_obj_3cgl_mat4 *)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "cgl_wrapper.pyx":1039
 *     cdef CGL_mat4 obj = CGL_mat4_rotate_y(angle)
 *     result = mat4()
 *     result.set_c_mat4(obj)             # <<<<<<<<<<<<<<
 *     return result
 * 
 */
  __pyx_t_1 = ((struct __pyx_vtabstruct_3cgl_mat4 *)__pyx_v_result->__pyx_vtab)->set_c_mat4(__pyx_v_result, __pyx_v_obj); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1039, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "cgl_wrapper.pyx":1040
 *     result = mat4()
 *     result.set_c_mat4(obj)
 *     return result             # <<<<<<<<<<<<<<
 * 
 * def mat4_rotate_z(angle: float) -> mat4:
 */
  __Pyx_XDECREF(((PyObject *)__pyx_r));
  __Pyx_INCREF(((PyObject *)__pyx_v_result));
  __pyx_r = __pyx_v_result;
  goto __pyx_L0;

  /* "cgl_wrapper.pyx":1036
 *     return result
 * 
 * def mat4_rotate_y(angle: float) -> mat4:             # <<<<<<<<<<<<<<
 *     cdef CGL_mat4 obj = CGL_mat4_rotate_y(angle)
 *     result = mat4()
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cgl.mat4_rotate_y", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF((PyObject *)__pyx_v_result);
  __Pyx_XGIVEREF((PyObject *)__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cgl_wrapper.pyx":1042
 *     return result
 * 
 * def mat4_rotate_z(angle: float) -> mat4:             # <<<<<<<<<<<<<<
 *     cdef CGL_mat4 obj = CGL_mat4_rotate_z(angle)
 *     result = mat4()
 */

/* Python wrapper */
static struct __pyx_obj_3cgl_mat4 *__pyx_pw_3cgl_179mat4_rotate_z(PyObject *__pyx_self, PyObject *__pyx_arg_angle); /*proto*/
static PyMethodDef __pyx_mdef_3cgl_179mat4_rotate_z = {"mat4_rotate_z", (PyCFunction)__pyx_pw_3cgl_179mat4_rotate_z, METH_O, 0};
static struct __pyx_obj_3cgl_mat4 *__pyx_pw_3cgl_179mat4_rotate_z(PyObject *__pyx_self, PyObject *__pyx_arg_angle) {
  double __pyx_v_angle;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  struct __pyx_obj_3cgl_mat4 *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("mat4_rotate_z (wrapper)", 0);
  assert(__pyx_arg_angle); {
    __pyx_v_angle = __pyx_PyFloat_AsDouble(__pyx_arg_angle); if (unlikely((__pyx_v_angle == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 1042, __pyx_L3_error)
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  __Pyx_AddTraceback("cgl.mat4_rotate_z", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_3cgl_178mat4_rotate_z(__pyx_self, ((double)__pyx_v_angle));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static struct __pyx_obj_3cgl_mat4 *__pyx_pf_3cgl_178mat4_rotate_z(CYTHON_UNUSED PyObject *__pyx_self, double __pyx_v_angle) {
  struct CGL_mat4 __pyx_v_obj;
  struct __pyx_obj_3cgl_mat4 *__pyx_v_result = NULL;
  struct __pyx_obj_3cgl_mat4 *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("mat4_rotate_z", 0);

  /* "cgl_wrapper.pyx":1043
 * 
 * def mat4_rotate_z(angle: float) -> mat4:
 *     cdef CGL_mat4 obj = CGL_mat4_rotate_z(angle)             # <<<<<<<<<<<<<<
 *     result = mat4()
 *     result.set_c_mat4(obj)
 */
  __pyx_v_obj = CGL_mat4_rotate_z(__pyx_v_angle);

  /* "cgl_wrapper.pyx":1044
 * def mat4_rotate_z(angle: float) -> mat4:
 *     cdef CGL_mat4 obj = CGL_mat4_rotate_z(angle)
 *     result = mat4()             # <<<<<<<<<<<<<<
 *     result.set_c_mat4(obj)
 *     return result
 */
  __pyx_t_1 = __Pyx_PyObject_CallNoArg(((PyObject *)__pyx_ptype_3cgl_mat4)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1044, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_v_result = ((struct __pyx_obj_3cgl_mat4 *)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "cgl_wrapper.pyx":1045
 *     cdef CGL_mat4 obj = CGL_mat4_rotate_z(angle)
 *     result = mat4()
 *     result.set_c_mat4(obj)             # <<<<<<<<<<<<<<
 *     return result
 * 
 */
  __pyx_t_1 = ((struct __pyx_vtabstruct_3cgl_mat4 *)__pyx_v_result->__pyx_vtab)->set_c_mat4(__pyx_v_result, __pyx_v_obj); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1045, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "cgl_wrapper.pyx":1046
 *     result = mat4()
 *     result.set_c_mat4(obj)
 *     return result             # <<<<<<<<<<<<<<
 * 
 * 
 */
  __Pyx_XDECREF(((PyObject *)__pyx_r));
  __Pyx_INCREF(((PyObject *)__pyx_v_result));
  __pyx_r = __pyx_v_result;
  goto __pyx_L0;

  /* "cgl_wrapper.pyx":1042
 *     return result
 * 
 * def mat4_rotate_z(angle: float) -> mat4:             # <<<<<<<<<<<<<<
 *     cdef CGL_mat4 obj = CGL_mat4_rotate_z(angle)
 *     result = mat4()
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cgl.mat4_rotate_z", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF((PyObject *)__pyx_v_result);
  __Pyx_XGIVEREF((PyObject *)__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cgl_wrapper.pyx":1053
 * 
 *     @property
 *     def position(self) -> vec3:             # <<<<<<<<<<<<<<
 *         return vec3(self.c_transform.position.x, self.c_transform.position.y, self.c_transform.position.z)
 * 
 */

/* Python wrapper */
static PyObject *__pyx_pw_3cgl_9transform_8position_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_3cgl_9transform_8position_1__get__(PyObject *__pyx_v_self) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_r = __pyx_pf_3cgl_9transform_8position___get__(((struct __pyx_obj_3cgl_transform *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_3cgl_9transform_8position___get__(struct __pyx_obj_3cgl_transform *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__get__", 0);

  /* "cgl_wrapper.pyx":1054
 *     @property
 *     def position(self) -> vec3:
 *         return vec3(self.c_transform.position.x, self.c_transform.position.y, self.c_transform.position.z)             # <<<<<<<<<<<<<<
 * 
 *     @position.setter
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = PyFloat_FromDouble(__pyx_v_self->c_transform.position.x); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1054, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = PyFloat_FromDouble(__pyx_v_self->c_transform.position.y); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1054, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = PyFloat_FromDouble(__pyx_v_self->c_transform.position.z); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1054, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = PyTuple_New(3); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1054, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_GIVEREF(__pyx_t_1);
  PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_1);
  __Pyx_GIVEREF(__pyx_t_2);
  PyTuple_SET_ITEM(__pyx_t_4, 1, __pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_3);
  PyTuple_SET_ITEM(__pyx_t_4, 2, __pyx_t_3);
  __pyx_t_1 = 0;
  __pyx_t_2 = 0;
  __pyx_t_3 = 0;
  __pyx_t_3 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_3cgl_vec3), __pyx_t_4, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1054, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __pyx_r = __pyx_t_3;
  __pyx_t_3 = 0;
  goto __pyx_L0;

  /* "cgl_wrapper.pyx":1053
 * 
 *     @property
 *     def position(self) -> vec3:             # <<<<<<<<<<<<<<
 *         return vec3(self.c_transform.position.x, self.c_transform.position.y, self.c_transform.position.z)
 * 
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cgl.transform.position.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cgl_wrapper.pyx":1057
 * 
 *     @position.setter
 *     def position(self, value: vec3):             # <<<<<<<<<<<<<<
 *         self.c_transform.position.x = value.x
 *         self.c_transform.position.y = value.y
 */

/* Python wrapper */
static int __pyx_pw_3cgl_9transform_8position_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value); /*proto*/
static int __pyx_pw_3cgl_9transform_8position_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value) {
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_value), __pyx_ptype_3cgl_vec3, 1, "value", 0))) __PYX_ERR(0, 1057, __pyx_L1_error)
  __pyx_r = __pyx_pf_3cgl_9transform_8position_2__set__(((struct __pyx_obj_3cgl_transform *)__pyx_v_self), ((struct __pyx_obj_3cgl_vec3 *)__pyx_v_value));

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_3cgl_9transform_8position_2__set__(struct __pyx_obj_3cgl_transform *__pyx_v_self, struct __pyx_obj_3cgl_vec3 *__pyx_v_value) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  CGL_float __pyx_t_2;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__set__", 0);

  /* "cgl_wrapper.pyx":1058
 *     @position.setter
 *     def position(self, value: vec3):
 *         self.c_transform.position.x = value.x             # <<<<<<<<<<<<<<
 *         self.c_transform.position.y = value.y
 *         self.c_transform.position.z = value.z
 */
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_value), __pyx_n_s_x); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1058, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = __pyx_PyFloat_AsFloat(__pyx_t_1); if (unlikely((__pyx_t_2 == ((CGL_float)-1)) && PyErr_Occurred())) __PYX_ERR(0, 1058, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_v_self->c_transform.position.x = __pyx_t_2;

  /* "cgl_wrapper.pyx":1059
 *     def position(self, value: vec3):
 *         self.c_transform.position.x = value.x
 *         self.c_transform.position.y = value.y             # <<<<<<<<<<<<<<
 *         self.c_transform.position.z = value.z
 *         self.c_transform.position.w = 1.0
 */
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_value), __pyx_n_s_y); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1059, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = __pyx_PyFloat_AsFloat(__pyx_t_1); if (unlikely((__pyx_t_2 == ((CGL_float)-1)) && PyErr_Occurred())) __PYX_ERR(0, 1059, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_v_self->c_transform.position.y = __pyx_t_2;

  /* "cgl_wrapper.pyx":1060
 *         self.c_transform.position.x = value.x
 *         self.c_transform.position.y = value.y
 *         self.c_transform.position.z = value.z             # <<<<<<<<<<<<<<
 *         self.c_transform.position.w = 1.0
 * 
 */
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_value), __pyx_n_s_z); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1060, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = __pyx_PyFloat_AsFloat(__pyx_t_1); if (unlikely((__pyx_t_2 == ((CGL_float)-1)) && PyErr_Occurred())) __PYX_ERR(0, 1060, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_v_self->c_transform.position.z = __pyx_t_2;

  /* "cgl_wrapper.pyx":1061
 *         self.c_transform.position.y = value.y
 *         self.c_transform.position.z = value.z
 *         self.c_transform.position.w = 1.0             # <<<<<<<<<<<<<<
 * 
 *     @property
 */
  __pyx_v_self->c_transform.position.w = 1.0;

  /* "cgl_wrapper.pyx":1057
 * 
 *     @position.setter
 *     def position(self, value: vec3):             # <<<<<<<<<<<<<<
 *         self.c_transform.position.x = value.x
 *         self.c_transform.position.y = value.y
 */

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cgl.transform.position.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cgl_wrapper.pyx":1064
 * 
 *     @property
 *     def rotation(self) -> vec3:             # <<<<<<<<<<<<<<
 *         return vec3(self.c_transform.rotation.x, self.c_transform.rotation.y, self.c_transform.rotation.z)
 * 
 */

/* Python wrapper */
static PyObject *__pyx_pw_3cgl_9transform_8rotation_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_3cgl_9transform_8rotation_1__get__(PyObject *__pyx_v_self) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_r = __pyx_pf_3cgl_9transform_8rotation___get__(((struct __pyx_obj_3cgl_transform *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_3cgl_9transform_8rotation___get__(struct __pyx_obj_3cgl_transform *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__get__", 0);

  /* "cgl_wrapper.pyx":1065
 *     @property
 *     def rotation(self) -> vec3:
 *         return vec3(self.c_transform.rotation.x, self.c_transform.rotation.y, self.c_transform.rotation.z)             # <<<<<<<<<<<<<<
 * 
 *     @rotation.setter
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = PyFloat_FromDouble(__pyx_v_self->c_transform.rotation.x); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1065, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = PyFloat_FromDouble(__pyx_v_self->c_transform.rotation.y); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1065, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = PyFloat_FromDouble(__pyx_v_self->c_transform.rotation.z); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1065, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = PyTuple_New(3); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1065, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_GIVEREF(__pyx_t_1);
  PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_1);
  __Pyx_GIVEREF(__pyx_t_2);
  PyTuple_SET_ITEM(__pyx_t_4, 1, __pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_3);
  PyTuple_SET_ITEM(__pyx_t_4, 2, __pyx_t_3);
  __pyx_t_1 = 0;
  __pyx_t_2 = 0;
  __pyx_t_3 = 0;
  __pyx_t_3 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_3cgl_vec3), __pyx_t_4, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1065, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __pyx_r = __pyx_t_3;
  __pyx_t_3 = 0;
  goto __pyx_L0;

  /* "cgl_wrapper.pyx":1064
 * 
 *     @property
 *     def rotation(self) -> vec3:             # <<<<<<<<<<<<<<
 *         return vec3(self.c_transform.rotation.x, self.c_transform.rotation.y, self.c_transform.rotation.z)
 * 
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cgl.transform.rotation.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cgl_wrapper.pyx":1068
 * 
 *     @rotation.setter
 *     def rotation(self, value: vec3):             # <<<<<<<<<<<<<<
 *         self.c_transform.rotation.x = value.x
 *         self.c_transform.rotation.y = value.y
 */

/* Python wrapper */
static int __pyx_pw_3cgl_9transform_8rotation_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value); /*proto*/
static int __pyx_pw_3cgl_9transform_8rotation_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value) {
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_value), __pyx_ptype_3cgl_vec3, 1, "value", 0))) __PYX_ERR(0, 1068, __pyx_L1_error)
  __pyx_r = __pyx_pf_3cgl_9transform_8rotation_2__set__(((struct __pyx_obj_3cgl_transform *)__pyx_v_self), ((struct __pyx_obj_3cgl_vec3 *)__pyx_v_value));

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_3cgl_9transform_8rotation_2__set__(struct __pyx_obj_3cgl_transform *__pyx_v_self, struct __pyx_obj_3cgl_vec3 *__pyx_v_value) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  CGL_float __pyx_t_2;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__set__", 0);

  /* "cgl_wrapper.pyx":1069
 *     @rotation.setter
 *     def rotation(self, value: vec3):
 *         self.c_transform.rotation.x = value.x             # <<<<<<<<<<<<<<
 *         self.c_transform.rotation.y = value.y
 *         self.c_transform.rotation.z = value.z
 */
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_value), __pyx_n_s_x); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1069, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = __pyx_PyFloat_AsFloat(__pyx_t_1); if (unlikely((__pyx_t_2 == ((CGL_float)-1)) && PyErr_Occurred())) __PYX_ERR(0, 1069, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_v_self->c_transform.rotation.x = __pyx_t_2;

  /* "cgl_wrapper.pyx":1070
 *     def rotation(self, value: vec3):
 *         self.c_transform.rotation.x = value.x
 *         self.c_transform.rotation.y = value.y             # <<<<<<<<<<<<<<
 *         self.c_transform.rotation.z = value.z
 *         self.c_transform.rotation.w = 0.0
 */
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_value), __pyx_n_s_y); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1070, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = __pyx_PyFloat_AsFloat(__pyx_t_1); if (unlikely((__pyx_t_2 == ((CGL_float)-1)) && PyErr_Occurred())) __PYX_ERR(0, 1070, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_v_self->c_transform.rotation.y = __pyx_t_2;

  /* "cgl_wrapper.pyx":1071
 *         self.c_transform.rotation.x = value.x
 *         self.c_transform.rotation.y = value.y
 *         self.c_transform.rotation.z = value.z             # <<<<<<<<<<<<<<
 *         self.c_transform.rotation.w = 0.0
 * 
 */
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_value), __pyx_n_s_z); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1071, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = __pyx_PyFloat_AsFloat(__pyx_t_1); if (unlikely((__pyx_t_2 == ((CGL_float)-1)) && PyErr_Occurred())) __PYX_ERR(0, 1071, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_v_self->c_transform.rotation.z = __pyx_t_2;

  /* "cgl_wrapper.pyx":1072
 *         self.c_transform.rotation.y = value.y
 *         self.c_transform.rotation.z = value.z
 *         self.c_transform.rotation.w = 0.0             # <<<<<<<<<<<<<<
 * 
 *     @property
 */
  __pyx_v_self->c_transform.rotation.w = 0.0;

  /* "cgl_wrapper.pyx":1068
 * 
 *     @rotation.setter
 *     def rotation(self, value: vec3):             # <<<<<<<<<<<<<<
 *         self.c_transform.rotation.x = value.x
 *         self.c_transform.rotation.y = value.y
 */

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cgl.transform.rotation.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cgl_wrapper.pyx":1075
 * 
 *     @property
 *     def scale(self) -> vec3:             # <<<<<<<<<<<<<<
 *         return vec3(self.c_transform.scale.x, self.c_transform.scale.y, self.c_transform.scale.z)
 * 
 */

/* Python wrapper */
static PyObject *__pyx_pw_3cgl_9transform_5scale_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_3cgl_9transform_5scale_1__get__(PyObject *__pyx_v_self) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_r = __pyx_pf_3cgl_9transform_5scale___get__(((struct __pyx_obj_3cgl_transform *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_3cgl_9transform_5scale___get__(struct __pyx_obj_3cgl_transform *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__get__", 0);

  /* "cgl_wrapper.pyx":1076
 *     @property
 *     def scale(self) -> vec3:
 *         return vec3(self.c_transform.scale.x, self.c_transform.scale.y, self.c_transform.scale.z)             # <<<<<<<<<<<<<<
 * 
 *     @scale.setter
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = PyFloat_FromDouble(__pyx_v_self->c_transform.scale.x); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1076, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = PyFloat_FromDouble(__pyx_v_self->c_transform.scale.y); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1076, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = PyFloat_FromDouble(__pyx_v_self->c_transform.scale.z); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1076, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = PyTuple_New(3); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1076, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_GIVEREF(__pyx_t_1);
  PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_1);
  __Pyx_GIVEREF(__pyx_t_2);
  PyTuple_SET_ITEM(__pyx_t_4, 1, __pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_3);
  PyTuple_SET_ITEM(__pyx_t_4, 2, __pyx_t_3);
  __pyx_t_1 = 0;
  __pyx_t_2 = 0;
  __pyx_t_3 = 0;
  __pyx_t_3 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_3cgl_vec3), __pyx_t_4, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1076, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __pyx_r = __pyx_t_3;
  __pyx_t_3 = 0;
  goto __pyx_L0;

  /* "cgl_wrapper.pyx":1075
 * 
 *     @property
 *     def scale(self) -> vec3:             # <<<<<<<<<<<<<<
 *         return vec3(self.c_transform.scale.x, self.c_transform.scale.y, self.c_transform.scale.z)
 * 
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cgl.transform.scale.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cgl_wrapper.pyx":1079
 * 
 *     @scale.setter
 *     def scale(self, value: vec3):             # <<<<<<<<<<<<<<
 *         self.c_transform.scale.x = value.x
 *         self.c_transform.scale.y = value.y
 */

/* Python wrapper */
static int __pyx_pw_3cgl_9transform_5scale_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value); /*proto*/
static int __pyx_pw_3cgl_9transform_5scale_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value) {
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_value), __pyx_ptype_3cgl_vec3, 1, "value", 0))) __PYX_ERR(0, 1079, __pyx_L1_error)
  __pyx_r = __pyx_pf_3cgl_9transform_5scale_2__set__(((struct __pyx_obj_3cgl_transform *)__pyx_v_self), ((struct __pyx_obj_3cgl_vec3 *)__pyx_v_value));

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_3cgl_9transform_5scale_2__set__(struct __pyx_obj_3cgl_transform *__pyx_v_self, struct __pyx_obj_3cgl_vec3 *__pyx_v_value) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  CGL_float __pyx_t_2;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__set__", 0);

  /* "cgl_wrapper.pyx":1080
 *     @scale.setter
 *     def scale(self, value: vec3):
 *         self.c_transform.scale.x = value.x             # <<<<<<<<<<<<<<
 *         self.c_transform.scale.y = value.y
 *         self.c_transform.scale.z = value.z
 */
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_value), __pyx_n_s_x); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1080, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = __pyx_PyFloat_AsFloat(__pyx_t_1); if (unlikely((__pyx_t_2 == ((CGL_float)-1)) && PyErr_Occurred())) __PYX_ERR(0, 1080, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_v_self->c_transform.scale.x = __pyx_t_2;

  /* "cgl_wrapper.pyx":1081
 *     def scale(self, value: vec3):
 *         self.c_transform.scale.x = value.x
 *         self.c_transform.scale.y = value.y             # <<<<<<<<<<<<<<
 *         self.c_transform.scale.z = value.z
 *         self.c_transform.scale.w = 1.0
 */
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_value), __pyx_n_s_y); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1081, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = __pyx_PyFloat_AsFloat(__pyx_t_1); if (unlikely((__pyx_t_2 == ((CGL_float)-1)) && PyErr_Occurred())) __PYX_ERR(0, 1081, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_v_self->c_transform.scale.y = __pyx_t_2;

  /* "cgl_wrapper.pyx":1082
 *         self.c_transform.scale.x = value.x
 *         self.c_transform.scale.y = value.y
 *         self.c_transform.scale.z = value.z             # <<<<<<<<<<<<<<
 *         self.c_transform.scale.w = 1.0
 * 
 */
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_value), __pyx_n_s_z); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1082, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = __pyx_PyFloat_AsFloat(__pyx_t_1); if (unlikely((__pyx_t_2 == ((CGL_float)-1)) && PyErr_Occurred())) __PYX_ERR(0, 1082, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_v_self->c_transform.scale.z = __pyx_t_2;

  /* "cgl_wrapper.pyx":1083
 *         self.c_transform.scale.y = value.y
 *         self.c_transform.scale.z = value.z
 *         self.c_transform.scale.w = 1.0             # <<<<<<<<<<<<<<
 * 
 *     @property
 */
  __pyx_v_self->c_transform.scale.w = 1.0;

  /* "cgl_wrapper.pyx":1079
 * 
 *     @scale.setter
 *     def scale(self, value: vec3):             # <<<<<<<<<<<<<<
 *         self.c_transform.scale.x = value.x
 *         self.c_transform.scale.y = value.y
 */

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cgl.transform.scale.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cgl_wrapper.pyx":1086
 * 
 *     @property
 *     def matrix(self) -> mat4:             # <<<<<<<<<<<<<<
 *         return mat4(self.c_transform.matrix)
 * 
 */

/* Python wrapper */
static PyObject *__pyx_pw_3cgl_9transform_6matrix_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_3cgl_9transform_6matrix_1__get__(PyObject *__pyx_v_self) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_r = __pyx_pf_3cgl_9transform_6matrix___get__(((struct __pyx_obj_3cgl_transform *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_3cgl_9transform_6matrix___get__(struct __pyx_obj_3cgl_transform *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__get__", 0);

  /* "cgl_wrapper.pyx":1087
 *     @property
 *     def matrix(self) -> mat4:
 *         return mat4(self.c_transform.matrix)             # <<<<<<<<<<<<<<
 * 
 *     @matrix.setter
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __pyx_convert__to_py_struct__CGL_mat4(__pyx_v_self->c_transform.matrix); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1087, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_3cgl_mat4), __pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1087, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_r = __pyx_t_2;
  __pyx_t_2 = 0;
  goto __pyx_L0;

  /* "cgl_wrapper.pyx":1086
 * 
 *     @property
 *     def matrix(self) -> mat4:             # <<<<<<<<<<<<<<
 *         return mat4(self.c_transform.matrix)
 * 
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("cgl.transform.matrix.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cgl_wrapper.pyx":1090
 * 
 *     @matrix.setter
 *     def matrix(self, value: mat4):             # <<<<<<<<<<<<<<
 *         self.c_transform.matrix = value.c_mat4
 * 
 */

/* Python wrapper */
static int __pyx_pw_3cgl_9transform_6matrix_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value); /*proto*/
static int __pyx_pw_3cgl_9transform_6matrix_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value) {
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_value), __pyx_ptype_3cgl_mat4, 1, "value", 0))) __PYX_ERR(0, 1090, __pyx_L1_error)
  __pyx_r = __pyx_pf_3cgl_9transform_6matrix_2__set__(((struct __pyx_obj_3cgl_transform *)__pyx_v_self), ((struct __pyx_obj_3cgl_mat4 *)__pyx_v_value));

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_3cgl_9transform_6matrix_2__set__(struct __pyx_obj_3cgl_transform *__pyx_v_self, struct __pyx_obj_3cgl_mat4 *__pyx_v_value) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  struct CGL_mat4 __pyx_t_1;
  __Pyx_RefNannySetupContext("__set__", 0);

  /* "cgl_wrapper.pyx":1091
 *     @matrix.setter
 *     def matrix(self, value: mat4):
 *         self.c_transform.matrix = value.c_mat4             # <<<<<<<<<<<<<<
 * 
 * 
 */
  __pyx_t_1 = __pyx_v_value->c_mat4;
  __pyx_v_self->c_transform.matrix = __pyx_t_1;

  /* "cgl_wrapper.pyx":1090
 * 
 *     @matrix.setter
 *     def matrix(self, value: mat4):             # <<<<<<<<<<<<<<
 *         self.c_transform.matrix = value.c_mat4
 * 
 */

  /* function exit code */
  __pyx_r = 0;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cgl_wrapper.pyx":1094
 * 
 * 
 *     def __cinit__(self):             # <<<<<<<<<<<<<<
 *         self.c_transform = CGL_transform_create_empty()
 * 
 */

/* Python wrapper */
static int __pyx_pw_3cgl_9transform_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static int __pyx_pw_3cgl_9transform_1__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__cinit__ (wrapper)", 0);
  if (unlikely(PyTuple_GET_SIZE(__pyx_args) > 0)) {
    __Pyx_RaiseArgtupleInvalid("__cinit__", 1, 0, 0, PyTuple_GET_SIZE(__pyx_args)); return -1;}
  if (unlikely(__pyx_kwds) && unlikely(PyDict_Size(__pyx_kwds) > 0) && unlikely(!__Pyx_CheckKeywordStrings(__pyx_kwds, "__cinit__", 0))) return -1;
  __pyx_r = __pyx_pf_3cgl_9transform___cinit__(((struct __pyx_obj_3cgl_transform *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_3cgl_9transform___cinit__(struct __pyx_obj_3cgl_transform *__pyx_v_self) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__cinit__", 0);

  /* "cgl_wrapper.pyx":1095
 * 
 *     def __cinit__(self):
 *         self.c_transform = CGL_transform_create_empty()             # <<<<<<<<<<<<<<
 * 
 *     def __init__(self, position: vec3 = None, rotation: vec3 = None, scale: vec3 = None):
 */
  __pyx_v_self->c_transform = CGL_transform_create_empty();

  /* "cgl_wrapper.pyx":1094
 * 
 * 
 *     def __cinit__(self):             # <<<<<<<<<<<<<<
 *         self.c_transform = CGL_transform_create_empty()
 * 
 */

  /* function exit code */
  __pyx_r = 0;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cgl_wrapper.pyx":1097
 *         self.c_transform = CGL_transform_create_empty()
 * 
 *     def __init__(self, position: vec3 = None, rotation: vec3 = None, scale: vec3 = None):             # <<<<<<<<<<<<<<
 *         if position is None:
 *             position = vec3()
 */

/* Python wrapper */
static int __pyx_pw_3cgl_9transform_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static int __pyx_pw_3cgl_9transform_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  struct __pyx_obj_3cgl_vec3 *__pyx_v_position = 0;
  struct __pyx_obj_3cgl_vec3 *__pyx_v_rotation = 0;
  struct __pyx_obj_3cgl_vec3 *__pyx_v_scale = 0;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__init__ (wrapper)", 0);
  {
    static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_position,&__pyx_n_s_rotation,&__pyx_n_s_scale,0};
    PyObject* values[3] = {0,0,0};
    values[0] = (PyObject *)((struct __pyx_obj_3cgl_vec3 *)Py_None);
    values[1] = (PyObject *)((struct __pyx_obj_3cgl_vec3 *)Py_None);
    values[2] = (PyObject *)((struct __pyx_obj_3cgl_vec3 *)Py_None);
    if (unlikely(__pyx_kwds)) {
      Py_ssize_t kw_args;
      const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
      switch (pos_args) {
        case  3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
        CYTHON_FALLTHROUGH;
        case  2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
        CYTHON_FALLTHROUGH;
        case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      kw_args = PyDict_Size(__pyx_kwds);
      switch (pos_args) {
        case  0:
        if (kw_args > 0) {
          PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_position);
          if (value) { values[0] = value; kw_args--; }
        }
        CYTHON_FALLTHROUGH;
        case  1:
        if (kw_args > 0) {
          PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_rotation);
          if (value) { values[1] = value; kw_args--; }
        }
        CYTHON_FALLTHROUGH;
        case  2:
        if (kw_args > 0) {
          PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_scale);
          if (value) { values[2] = value; kw_args--; }
        }
      }
      if (unlikely(kw_args > 0)) {
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "__init__") < 0)) __PYX_ERR(0, 1097, __pyx_L3_error)
      }
    } else {
      switch (PyTuple_GET_SIZE(__pyx_args)) {
        case  3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
        CYTHON_FALLTHROUGH;
        case  2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
        CYTHON_FALLTHROUGH;
        case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
    }
    __pyx_v_position = ((struct __pyx_obj_3cgl_vec3 *)values[0]);
    __pyx_v_rotation = ((struct __pyx_obj_3cgl_vec3 *)values[1]);
    __pyx_v_scale = ((struct __pyx_obj_3cgl_vec3 *)values[2]);
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__init__", 0, 0, 3, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 1097, __pyx_L3_error)
  __pyx_L3_error:;
  __Pyx_AddTraceback("cgl.transform.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_position), __pyx_ptype_3cgl_vec3, 1, "position", 0))) __PYX_ERR(0, 1097, __pyx_L1_error)
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_rotation), __pyx_ptype_3cgl_vec3, 1, "rotation", 0))) __PYX_ERR(0, 1097, __pyx_L1_error)
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_scale), __pyx_ptype_3cgl_vec3, 1, "scale", 0))) __PYX_ERR(0, 1097, __pyx_L1_error)
  __pyx_r = __pyx_pf_3cgl_9transform_2__init__(((struct __pyx_obj_3cgl_transform *)__pyx_v_self), __pyx_v_position, __pyx_v_rotation, __pyx_v_scale);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_3cgl_9transform_2__init__(struct __pyx_obj_3cgl_transform *__pyx_v_self, struct __pyx_obj_3cgl_vec3 *__pyx_v_position, struct __pyx_obj_3cgl_vec3 *__pyx_v_rotation, struct __pyx_obj_3cgl_vec3 *__pyx_v_scale) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__init__", 0);
  __Pyx_INCREF((PyObject *)__pyx_v_position);
  __Pyx_INCREF((PyObject *)__pyx_v_rotation);
  __Pyx_INCREF((PyObject *)__pyx_v_scale);

  /* "cgl_wrapper.pyx":1098
 * 
 *     def __init__(self, position: vec3 = None, rotation: vec3 = None, scale: vec3 = None):
 *         if position is None:             # <<<<<<<<<<<<<<
 *             position = vec3()
 *         if rotation is None:
 */
  __pyx_t_1 = (((PyObject *)__pyx_v_position) == Py_None);
  __pyx_t_2 = (__pyx_t_1 != 0);
  if (__pyx_t_2) {

    /* "cgl_wrapper.pyx":1099
 *     def __init__(self, position: vec3 = None, rotation: vec3 = None, scale: vec3 = None):
 *         if position is None:
 *             position = vec3()             # <<<<<<<<<<<<<<
 *         if rotation is None:
 *             rotation = vec3()
 */
    __pyx_t_3 = __Pyx_PyObject_CallNoArg(((PyObject *)__pyx_ptype_3cgl_vec3)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1099, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF_SET(__pyx_v_position, ((struct __pyx_obj_3cgl_vec3 *)__pyx_t_3));
    __pyx_t_3 = 0;

    /* "cgl_wrapper.pyx":1098
 * 
 *     def __init__(self, position: vec3 = None, rotation: vec3 = None, scale: vec3 = None):
 *         if position is None:             # <<<<<<<<<<<<<<
 *             position = vec3()
 *         if rotation is None:
 */
  }

  /* "cgl_wrapper.pyx":1100
 *         if position is None:
 *             position = vec3()
 *         if rotation is None:             # <<<<<<<<<<<<<<
 *             rotation = vec3()
 *         if scale is None:
 */
  __pyx_t_2 = (((PyObject *)__pyx_v_rotation) == Py_None);
  __pyx_t_1 = (__pyx_t_2 != 0);
  if (__pyx_t_1) {

    /* "cgl_wrapper.pyx":1101
 *             position = vec3()
 *         if rotation is None:
 *             rotation = vec3()             # <<<<<<<<<<<<<<
 *         if scale is None:
 *             scale = vec3(1.0, 1.0, 1.0)
 */
    __pyx_t_3 = __Pyx_PyObject_CallNoArg(((PyObject *)__pyx_ptype_3cgl_vec3)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1101, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF_SET(__pyx_v_rotation, ((struct __pyx_obj_3cgl_vec3 *)__pyx_t_3));
    __pyx_t_3 = 0;

    /* "cgl_wrapper.pyx":1100
 *         if position is None:
 *             position = vec3()
 *         if rotation is None:             # <<<<<<<<<<<<<<
 *             rotation = vec3()
 *         if scale is None:
 */
  }

  /* "cgl_wrapper.pyx":1102
 *         if rotation is None:
 *             rotation = vec3()
 *         if scale is None:             # <<<<<<<<<<<<<<
 *             scale = vec3(1.0, 1.0, 1.0)
 *         self.c_transform = CGL_transform_create(position.c_vec3, rotation.c_vec3, scale.c_vec3)
 */
  __pyx_t_1 = (((PyObject *)__pyx_v_scale) == Py_None);
  __pyx_t_2 = (__pyx_t_1 != 0);
  if (__pyx_t_2) {

    /* "cgl_wrapper.pyx":1103
 *             rotation = vec3()
 *         if scale is None:
 *             scale = vec3(1.0, 1.0, 1.0)             # <<<<<<<<<<<<<<
 *         self.c_transform = CGL_transform_create(position.c_vec3, rotation.c_vec3, scale.c_vec3)
 * 
 */
    __pyx_t_3 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_3cgl_vec3), __pyx_tuple__17, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1103, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF_SET(__pyx_v_scale, ((struct __pyx_obj_3cgl_vec3 *)__pyx_t_3));
    __pyx_t_3 = 0;

    /* "cgl_wrapper.pyx":1102
 *         if rotation is None:
 *             rotation = vec3()
 *         if scale is None:             # <<<<<<<<<<<<<<
 *             scale = vec3(1.0, 1.0, 1.0)
 *         self.c_transform = CGL_transform_create(position.c_vec3, rotation.c_vec3, scale.c_vec3)
 */
  }

  /* "cgl_wrapper.pyx":1104
 *         if scale is None:
 *             scale = vec3(1.0, 1.0, 1.0)
 *         self.c_transform = CGL_transform_create(position.c_vec3, rotation.c_vec3, scale.c_vec3)             # <<<<<<<<<<<<<<
 * 
 *     def __hash__(self):
 */
  __pyx_v_self->c_transform = CGL_transform_create(__pyx_v_position->c_vec3, __pyx_v_rotation->c_vec3, __pyx_v_scale->c_vec3);

  /* "cgl_wrapper.pyx":1097
 *         self.c_transform = CGL_transform_create_empty()
 * 
 *     def __init__(self, position: vec3 = None, rotation: vec3 = None, scale: vec3 = None):             # <<<<<<<<<<<<<<
 *         if position is None:
 *             position = vec3()
 */

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_AddTraceback("cgl.transform.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_XDECREF((PyObject *)__pyx_v_position);
  __Pyx_XDECREF((PyObject *)__pyx_v_rotation);
  __Pyx_XDECREF((PyObject *)__pyx_v_scale);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cgl_wrapper.pyx":1106
 *         self.c_transform = CGL_transform_create(position.c_vec3, rotation.c_vec3, scale.c_vec3)
 * 
 *     def __hash__(self):             # <<<<<<<<<<<<<<
 *         return hash((self.position, self.rotation, self.scale))
 * 
 */

/* Python wrapper */
static Py_hash_t __pyx_pw_3cgl_9transform_5__hash__(PyObject *__pyx_v_self); /*proto*/
static Py_hash_t __pyx_pw_3cgl_9transform_5__hash__(PyObject *__pyx_v_self) {
  Py_hash_t __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__hash__ (wrapper)", 0);
  __pyx_r = __pyx_pf_3cgl_9transform_4__hash__(((struct __pyx_obj_3cgl_transform *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static Py_hash_t __pyx_pf_3cgl_9transform_4__hash__(struct __pyx_obj_3cgl_transform *__pyx_v_self) {
  Py_hash_t __pyx_r;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  Py_hash_t __pyx_t_5;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__hash__", 0);

  /* "cgl_wrapper.pyx":1107
 * 
 *     def __hash__(self):
 *         return hash((self.position, self.rotation, self.scale))             # <<<<<<<<<<<<<<
 * 
 *     def __repr__(self):
 */
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_position); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1107, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_rotation); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1107, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_scale); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1107, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = PyTuple_New(3); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1107, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_GIVEREF(__pyx_t_1);
  PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_1);
  __Pyx_GIVEREF(__pyx_t_2);
  PyTuple_SET_ITEM(__pyx_t_4, 1, __pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_3);
  PyTuple_SET_ITEM(__pyx_t_4, 2, __pyx_t_3);
  __pyx_t_1 = 0;
  __pyx_t_2 = 0;
  __pyx_t_3 = 0;
  __pyx_t_5 = PyObject_Hash(__pyx_t_4); if (unlikely(__pyx_t_5 == ((Py_hash_t)-1))) __PYX_ERR(0, 1107, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __pyx_r = __pyx_t_5;
  goto __pyx_L0;

  /* "cgl_wrapper.pyx":1106
 *         self.c_transform = CGL_transform_create(position.c_vec3, rotation.c_vec3, scale.c_vec3)
 * 
 *     def __hash__(self):             # <<<<<<<<<<<<<<
 *         return hash((self.position, self.rotation, self.scale))
 * 
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cgl.transform.__hash__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  if (unlikely(__pyx_r == -1) && !PyErr_Occurred()) __pyx_r = -2;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cgl_wrapper.pyx":1109
 *         return hash((self.position, self.rotation, self.scale))
 * 
 *     def __repr__(self):             # <<<<<<<<<<<<<<
 *         return f"transform(position={self.position}, rotation={self.rotation}, scale={self.scale})"
 * 
 */

/* Python wrapper */
static PyObject *__pyx_pw_3cgl_9transform_7__repr__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_3cgl_9transform_7__repr__(PyObject *__pyx_v_self) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__repr__ (wrapper)", 0);
  __pyx_r = __pyx_pf_3cgl_9transform_6__repr__(((struct __pyx_obj_3cgl_transform *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_3cgl_9transform_6__repr__(struct __pyx_obj_3cgl_transform *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  Py_ssize_t __pyx_t_2;
  Py_UCS4 __pyx_t_3;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__repr__", 0);

  /* "cgl_wrapper.pyx":1110
 * 
 *     def __repr__(self):
 *         return f"transform(position={self.position}, rotation={self.rotation}, scale={self.scale})"             # <<<<<<<<<<<<<<
 * 
 *     def __eq__(self, other):
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = PyTuple_New(7); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1110, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = 0;
  __pyx_t_3 = 127;
  __Pyx_INCREF(__pyx_kp_u_transform_position);
  __pyx_t_2 += 19;
  __Pyx_GIVEREF(__pyx_kp_u_transform_position);
  PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_kp_u_transform_position);
  __pyx_t_4 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_position); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1110, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_5 = __Pyx_PyObject_FormatSimple(__pyx_t_4, __pyx_empty_unicode); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1110, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __pyx_t_3 = (__Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_5) > __pyx_t_3) ? __Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_5) : __pyx_t_3;
  __pyx_t_2 += __Pyx_PyUnicode_GET_LENGTH(__pyx_t_5);
  __Pyx_GIVEREF(__pyx_t_5);
  PyTuple_SET_ITEM(__pyx_t_1, 1, __pyx_t_5);
  __pyx_t_5 = 0;
  __Pyx_INCREF(__pyx_kp_u_rotation_2);
  __pyx_t_2 += 11;
  __Pyx_GIVEREF(__pyx_kp_u_rotation_2);
  PyTuple_SET_ITEM(__pyx_t_1, 2, __pyx_kp_u_rotation_2);
  __pyx_t_5 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_rotation); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1110, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __pyx_t_4 = __Pyx_PyObject_FormatSimple(__pyx_t_5, __pyx_empty_unicode); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1110, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
  __pyx_t_3 = (__Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_4) > __pyx_t_3) ? __Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_4) : __pyx_t_3;
  __pyx_t_2 += __Pyx_PyUnicode_GET_LENGTH(__pyx_t_4);
  __Pyx_GIVEREF(__pyx_t_4);
  PyTuple_SET_ITEM(__pyx_t_1, 3, __pyx_t_4);
  __pyx_t_4 = 0;
  __Pyx_INCREF(__pyx_kp_u_scale_2);
  __pyx_t_2 += 8;
  __Pyx_GIVEREF(__pyx_kp_u_scale_2);
  PyTuple_SET_ITEM(__pyx_t_1, 4, __pyx_kp_u_scale_2);
  __pyx_t_4 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_scale); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1110, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_5 = __Pyx_PyObject_FormatSimple(__pyx_t_4, __pyx_empty_unicode); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1110, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __pyx_t_3 = (__Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_5) > __pyx_t_3) ? __Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_5) : __pyx_t_3;
  __pyx_t_2 += __Pyx_PyUnicode_GET_LENGTH(__pyx_t_5);
  __Pyx_GIVEREF(__pyx_t_5);
  PyTuple_SET_ITEM(__pyx_t_1, 5, __pyx_t_5);
  __pyx_t_5 = 0;
  __Pyx_INCREF(__pyx_kp_u__4);
  __pyx_t_2 += 1;
  __Pyx_GIVEREF(__pyx_kp_u__4);
  PyTuple_SET_ITEM(__pyx_t_1, 6, __pyx_kp_u__4);
  __pyx_t_5 = __Pyx_PyUnicode_Join(__pyx_t_1, 7, __pyx_t_2, __pyx_t_3); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1110, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_r = __pyx_t_5;
  __pyx_t_5 = 0;
  goto __pyx_L0;

  /* "cgl_wrapper.pyx":1109
 *         return hash((self.position, self.rotation, self.scale))
 * 
 *     def __repr__(self):             # <<<<<<<<<<<<<<
 *         return f"transform(position={self.position}, rotation={self.rotation}, scale={self.scale})"
 * 
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("cgl.transform.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cgl_wrapper.pyx":1112
 *         return f"transform(position={self.position}, rotation={self.rotation}, scale={self.scale})"
 * 
 *     def __eq__(self, other):             # <<<<<<<<<<<<<<
 *         if isinstance(other, transform):
 *             return self.position == other.position and self.rotation == other.rotation and self.scale == other.scale
 */

/* Python wrapper */
static PyObject *__pyx_pw_3cgl_9transform_9__eq__(PyObject *__pyx_v_self, PyObject *__pyx_v_other); /*proto*/
static PyObject *__pyx_pw_3cgl_9transform_9__eq__(PyObject *__pyx_v_self, PyObject *__pyx_v_other) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__eq__ (wrapper)", 0);
  __pyx_r = __pyx_pf_3cgl_9transform_8__eq__(((struct __pyx_obj_3cgl_transform *)__pyx_v_self), ((PyObject *)__pyx_v_other));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_3cgl_9transform_8__eq__(struct __pyx_obj_3cgl_transform *__pyx_v_self, PyObject *__pyx_v_other) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__eq__", 0);

  /* "cgl_wrapper.pyx":1113
 * 
 *     def __eq__(self, other):
 *         if isinstance(other, transform):             # <<<<<<<<<<<<<<
 *             return self.position == other.position and self.rotation == other.rotation and self.scale == other.scale
 *         return False
 */
  __pyx_t_1 = __Pyx_TypeCheck(__pyx_v_other, __pyx_ptype_3cgl_transform); 
  __pyx_t_2 = (__pyx_t_1 != 0);
  if (__pyx_t_2) {

    /* "cgl_wrapper.pyx":1114
 *     def __eq__(self, other):
 *         if isinstance(other, transform):
 *             return self.position == other.position and self.rotation == other.rotation and self.scale == other.scale             # <<<<<<<<<<<<<<
 *         return False
 * 
 */
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_4 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_position); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1114, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_v_other, __pyx_n_s_position); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1114, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __pyx_t_6 = PyObject_RichCompare(__pyx_t_4, __pyx_t_5, Py_EQ); __Pyx_XGOTREF(__pyx_t_6); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 1114, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_6); if (unlikely(__pyx_t_2 < 0)) __PYX_ERR(0, 1114, __pyx_L1_error)
    if (__pyx_t_2) {
      __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
    } else {
      __Pyx_INCREF(__pyx_t_6);
      __pyx_t_3 = __pyx_t_6;
      __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
      goto __pyx_L4_bool_binop_done;
    }
    __pyx_t_6 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_rotation); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 1114, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
    __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_v_other, __pyx_n_s_rotation); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1114, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __pyx_t_4 = PyObject_RichCompare(__pyx_t_6, __pyx_t_5, Py_EQ); __Pyx_XGOTREF(__pyx_t_4); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1114, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_4); if (unlikely(__pyx_t_2 < 0)) __PYX_ERR(0, 1114, __pyx_L1_error)
    if (__pyx_t_2) {
      __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    } else {
      __Pyx_INCREF(__pyx_t_4);
      __pyx_t_3 = __pyx_t_4;
      __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
      goto __pyx_L4_bool_binop_done;
    }
    __pyx_t_4 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_scale); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1114, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_v_other, __pyx_n_s_scale); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1114, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __pyx_t_6 = PyObject_RichCompare(__pyx_t_4, __pyx_t_5, Py_EQ); __Pyx_XGOTREF(__pyx_t_6); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 1114, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_INCREF(__pyx_t_6);
    __pyx_t_3 = __pyx_t_6;
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
    __pyx_L4_bool_binop_done:;
    __pyx_r = __pyx_t_3;
    __pyx_t_3 = 0;
    goto __pyx_L0;

    /* "cgl_wrapper.pyx":1113
 * 
 *     def __eq__(self, other):
 *         if isinstance(other, transform):             # <<<<<<<<<<<<<<
 *             return self.position == other.position and self.rotation == other.rotation and self.scale == other.scale
 *         return False
 */
  }

  /* "cgl_wrapper.pyx":1115
 *         if isinstance(other, transform):
 *             return self.position == other.position and self.rotation == other.rotation and self.scale == other.scale
 *         return False             # <<<<<<<<<<<<<<
 * 
 *     def __str__(self):
 */
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF(Py_False);
  __pyx_r = Py_False;
  goto __pyx_L0;

  /* "cgl_wrapper.pyx":1112
 *         return f"transform(position={self.position}, rotation={self.rotation}, scale={self.scale})"
 * 
 *     def __eq__(self, other):             # <<<<<<<<<<<<<<
 *         if isinstance(other, transform):
 *             return self.position == other.position and self.rotation == other.rotation and self.scale == other.scale
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_AddTraceback("cgl.transform.__eq__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cgl_wrapper.pyx":1117
 *         return False
 * 
 *     def __str__(self):             # <<<<<<<<<<<<<<
 *         return f"transform(position={self.position}, rotation={self.rotation}, scale={self.scale})"
 * 
 */

/* Python wrapper */
static PyObject *__pyx_pw_3cgl_9transform_11__str__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_3cgl_9transform_11__str__(PyObject *__pyx_v_self) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__str__ (wrapper)", 0);
  __pyx_r = __pyx_pf_3cgl_9transform_10__str__(((struct __pyx_obj_3cgl_transform *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_3cgl_9transform_10__str__(struct __pyx_obj_3cgl_transform *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  Py_ssize_t __pyx_t_2;
  Py_UCS4 __pyx_t_3;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__str__", 0);

  /* "cgl_wrapper.pyx":1118
 * 
 *     def __str__(self):
 *         return f"transform(position={self.position}, rotation={self.rotation}, scale={self.scale})"             # <<<<<<<<<<<<<<
 * 
 *     def load_matrix(self, m: mat4):
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = PyTuple_New(7); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1118, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = 0;
  __pyx_t_3 = 127;
  __Pyx_INCREF(__pyx_kp_u_transform_position);
  __pyx_t_2 += 19;
  __Pyx_GIVEREF(__pyx_kp_u_transform_position);
  PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_kp_u_transform_position);
  __pyx_t_4 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_position); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1118, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_5 = __Pyx_PyObject_FormatSimple(__pyx_t_4, __pyx_empty_unicode); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1118, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __pyx_t_3 = (__Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_5) > __pyx_t_3) ? __Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_5) : __pyx_t_3;
  __pyx_t_2 += __Pyx_PyUnicode_GET_LENGTH(__pyx_t_5);
  __Pyx_GIVEREF(__pyx_t_5);
  PyTuple_SET_ITEM(__pyx_t_1, 1, __pyx_t_5);
  __pyx_t_5 = 0;
  __Pyx_INCREF(__pyx_kp_u_rotation_2);
  __pyx_t_2 += 11;
  __Pyx_GIVEREF(__pyx_kp_u_rotation_2);
  PyTuple_SET_ITEM(__pyx_t_1, 2, __pyx_kp_u_rotation_2);
  __pyx_t_5 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_rotation); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1118, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __pyx_t_4 = __Pyx_PyObject_FormatSimple(__pyx_t_5, __pyx_empty_unicode); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1118, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
  __pyx_t_3 = (__Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_4) > __pyx_t_3) ? __Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_4) : __pyx_t_3;
  __pyx_t_2 += __Pyx_PyUnicode_GET_LENGTH(__pyx_t_4);
  __Pyx_GIVEREF(__pyx_t_4);
  PyTuple_SET_ITEM(__pyx_t_1, 3, __pyx_t_4);
  __pyx_t_4 = 0;
  __Pyx_INCREF(__pyx_kp_u_scale_2);
  __pyx_t_2 += 8;
  __Pyx_GIVEREF(__pyx_kp_u_scale_2);
  PyTuple_SET_ITEM(__pyx_t_1, 4, __pyx_kp_u_scale_2);
  __pyx_t_4 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_scale); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1118, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_5 = __Pyx_PyObject_FormatSimple(__pyx_t_4, __pyx_empty_unicode); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1118, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __pyx_t_3 = (__Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_5) > __pyx_t_3) ? __Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_5) : __pyx_t_3;
  __pyx_t_2 += __Pyx_PyUnicode_GET_LENGTH(__pyx_t_5);
  __Pyx_GIVEREF(__pyx_t_5);
  PyTuple_SET_ITEM(__pyx_t_1, 5, __pyx_t_5);
  __pyx_t_5 = 0;
  __Pyx_INCREF(__pyx_kp_u__4);
  __pyx_t_2 += 1;
  __Pyx_GIVEREF(__pyx_kp_u__4);
  PyTuple_SET_ITEM(__pyx_t_1, 6, __pyx_kp_u__4);
  __pyx_t_5 = __Pyx_PyUnicode_Join(__pyx_t_1, 7, __pyx_t_2, __pyx_t_3); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1118, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_r = __pyx_t_5;
  __pyx_t_5 = 0;
  goto __pyx_L0;

  /* "cgl_wrapper.pyx":1117
 *         return False
 * 
 *     def __str__(self):             # <<<<<<<<<<<<<<
 *         return f"transform(position={self.position}, rotation={self.rotation}, scale={self.scale})"
 * 
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("cgl.transform.__str__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cgl_wrapper.pyx":1120
 *         return f"transform(position={self.position}, rotation={self.rotation}, scale={self.scale})"
 * 
 *     def load_matrix(self, m: mat4):             # <<<<<<<<<<<<<<
 *         self.c_transform = CGL_transform_create_from_matrix(m.c_mat4)
 * 
 */

/* Python wrapper */
static PyObject *__pyx_pw_3cgl_9transform_13load_matrix(PyObject *__pyx_v_self, PyObject *__pyx_v_m); /*proto*/
static PyObject *__pyx_pw_3cgl_9transform_13load_matrix(PyObject *__pyx_v_self, PyObject *__pyx_v_m) {
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("load_matrix (wrapper)", 0);
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_m), __pyx_ptype_3cgl_mat4, 1, "m", 0))) __PYX_ERR(0, 1120, __pyx_L1_error)
  __pyx_r = __pyx_pf_3cgl_9transform_12load_matrix(((struct __pyx_obj_3cgl_transform *)__pyx_v_self), ((struct __pyx_obj_3cgl_mat4 *)__pyx_v_m));

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_3cgl_9transform_12load_matrix(struct __pyx_obj_3cgl_transform *__pyx_v_self, struct __pyx_obj_3cgl_mat4 *__pyx_v_m) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("load_matrix", 0);

  /* "cgl_wrapper.pyx":1121
 * 
 *     def load_matrix(self, m: mat4):
 *         self.c_transform = CGL_transform_create_from_matrix(m.c_mat4)             # <<<<<<<<<<<<<<
 * 
 *     def set_parent(self, parent: transform):
 */
  __pyx_v_self->c_transform = CGL_transform_create_from_matrix(__pyx_v_m->c_mat4);

  /* "cgl_wrapper.pyx":1120
 *         return f"transform(position={self.position}, rotation={self.rotation}, scale={self.scale})"
 * 
 *     def load_matrix(self, m: mat4):             # <<<<<<<<<<<<<<
 *         self.c_transform = CGL_transform_create_from_matrix(m.c_mat4)
 * 
 */

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cgl_wrapper.pyx":1123
 *         self.c_transform = CGL_transform_create_from_matrix(m.c_mat4)
 * 
 *     def set_parent(self, parent: transform):             # <<<<<<<<<<<<<<
 *         self.c_transform.parent = &parent.c_transform
 * 
 */

/* Python wrapper */
static PyObject *__pyx_pw_3cgl_9transform_15set_parent(PyObject *__pyx_v_self, PyObject *__pyx_v_parent); /*proto*/
static PyObject *__pyx_pw_3cgl_9transform_15set_parent(PyObject *__pyx_v_self, PyObject *__pyx_v_parent) {
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("set_parent (wrapper)", 0);
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_parent), __pyx_ptype_3cgl_transform, 1, "parent", 0))) __PYX_ERR(0, 1123, __pyx_L1_error)
  __pyx_r = __pyx_pf_3cgl_9transform_14set_parent(((struct __pyx_obj_3cgl_transform *)__pyx_v_self), ((struct __pyx_obj_3cgl_transform *)__pyx_v_parent));

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_3cgl_9transform_14set_parent(struct __pyx_obj_3cgl_transform *__pyx_v_self, struct __pyx_obj_3cgl_transform *__pyx_v_parent) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("set_parent", 0);

  /* "cgl_wrapper.pyx":1124
 * 
 *     def set_parent(self, parent: transform):
 *         self.c_transform.parent = &parent.c_transform             # <<<<<<<<<<<<<<
 * 
 *     def update(self):
 */
  __pyx_v_self->c_transform.parent = (&__pyx_v_parent->c_transform);

  /* "cgl_wrapper.pyx":1123
 *         self.c_transform = CGL_transform_create_from_matrix(m.c_mat4)
 * 
 *     def set_parent(self, parent: transform):             # <<<<<<<<<<<<<<
 *         self.c_transform.parent = &parent.c_transform
 * 
 */

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cgl_wrapper.pyx":1126
 *         self.c_transform.parent = &parent.c_transform
 * 
 *     def update(self):             # <<<<<<<<<<<<<<
 *         CGL_transform_update(&self.c_transform)
 * 
 */

/* Python wrapper */
static PyObject *__pyx_pw_3cgl_9transform_17update(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/
static PyObject *__pyx_pw_3cgl_9transform_17update(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("update (wrapper)", 0);
  __pyx_r = __pyx_pf_3cgl_9transform_16update(((struct __pyx_obj_3cgl_transform *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_3cgl_9transform_16update(struct __pyx_obj_3cgl_transform *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("update", 0);

  /* "cgl_wrapper.pyx":1127
 * 
 *     def update(self):
 *         CGL_transform_update(&self.c_transform)             # <<<<<<<<<<<<<<
 * 
 * 
 */
  (void)(CGL_transform_update((&__pyx_v_self->c_transform)));

  /* "cgl_wrapper.pyx":1126
 *         self.c_transform.parent = &parent.c_transform
 * 
 *     def update(self):             # <<<<<<<<<<<<<<
 *         CGL_transform_update(&self.c_transform)
 * 
 */

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError("no default __reduce__ due to non-trivial __cinit__")
 * def __setstate_cython__(self, __pyx_state):
 */

/* Python wrapper */
static PyObject *__pyx_pw_3cgl_9transform_19__reduce_cython__(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/
static PyObject *__pyx_pw_3cgl_9transform_19__reduce_cython__(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__reduce_cython__ (wrapper)", 0);
  __pyx_r = __pyx_pf_3cgl_9transform_18__reduce_cython__(((struct __pyx_obj_3cgl_transform *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_3cgl_9transform_18__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_3cgl_transform *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__reduce_cython__", 0);

  /* "(tree fragment)":2
 * def __reduce_cython__(self):
 *     raise TypeError("no default __reduce__ due to non-trivial __cinit__")             # <<<<<<<<<<<<<<
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError("no default __reduce__ due to non-trivial __cinit__")
 */
  __pyx_t_1 = __Pyx_PyObject_Call(__pyx_builtin_TypeError, __pyx_tuple__18, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 2, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_Raise(__pyx_t_1, 0, 0, 0);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __PYX_ERR(1, 2, __pyx_L1_error)

  /* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError("no default __reduce__ due to non-trivial __cinit__")
 * def __setstate_cython__(self, __pyx_state):
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cgl.transform.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError("no default __reduce__ due to non-trivial __cinit__")
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError("no default __reduce__ due to non-trivial __cinit__")
 */

/* Python wrapper */
static PyObject *__pyx_pw_3cgl_9transform_21__setstate_cython__(PyObject *__pyx_v_self, PyObject *__pyx_v___pyx_state); /*proto*/
static PyObject *__pyx_pw_3cgl_9transform_21__setstate_cython__(PyObject *__pyx_v_self, PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__setstate_cython__ (wrapper)", 0);
  __pyx_r = __pyx_pf_3cgl_9transform_20__setstate_cython__(((struct __pyx_obj_3cgl_transform *)__pyx_v_self), ((PyObject *)__pyx_v___pyx_state));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_3cgl_9transform_20__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_3cgl_transform *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__setstate_cython__", 0);

  /* "(tree fragment)":4
 *     raise TypeError("no default __reduce__ due to non-trivial __cinit__")
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError("no default __reduce__ due to non-trivial __cinit__")             # <<<<<<<<<<<<<<
 */
  __pyx_t_1 = __Pyx_PyObject_Call(__pyx_builtin_TypeError, __pyx_tuple__19, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 4, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_Raise(__pyx_t_1, 0, 0, 0);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __PYX_ERR(1, 4, __pyx_L1_error)

  /* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError("no default __reduce__ due to non-trivial __cinit__")
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError("no default __reduce__ due to non-trivial __cinit__")
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cgl.transform.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cgl_wrapper.pyx":1275
 * __WINDOW_TABLE = {}
 * 
 * cdef void __pass_through_window_close_callback(CGL_window* window):             # <<<<<<<<<<<<<<
 *     window_object = __WINDOW_TABLE[CGL_utils_super_fast_hash(<void*>window, sizeof(CGL_window*))]
 *     window_object.close_callback(window_object)
 */

static void __pyx_f_3cgl___pass_through_window_close_callback(struct CGL_window *__pyx_v_window) {
  PyObject *__pyx_v_window_object = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  uint32_t __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__pass_through_window_close_callback", 0);

  /* "cgl_wrapper.pyx":1276
 * 
 * cdef void __pass_through_window_close_callback(CGL_window* window):
 *     window_object = __WINDOW_TABLE[CGL_utils_super_fast_hash(<void*>window, sizeof(CGL_window*))]             # <<<<<<<<<<<<<<
 *     window_object.close_callback(window_object)
 * 
 */
  __Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_n_s_WINDOW_TABLE); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1276, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = CGL_utils_super_fast_hash(((void *)__pyx_v_window), (sizeof(struct CGL_window *)));
  __pyx_t_3 = __Pyx_GetItemInt(__pyx_t_1, __pyx_t_2, uint32_t, 0, __Pyx_PyInt_From_uint32_t, 0, 0, 1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1276, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_v_window_object = __pyx_t_3;
  __pyx_t_3 = 0;

  /* "cgl_wrapper.pyx":1277
 * cdef void __pass_through_window_close_callback(CGL_window* window):
 *     window_object = __WINDOW_TABLE[CGL_utils_super_fast_hash(<void*>window, sizeof(CGL_window*))]
 *     window_object.close_callback(window_object)             # <<<<<<<<<<<<<<
 * 
 * cdef void __pass_through_window_key_callback(CGL_window* window, int key, int scancode, int action, int mods):
 */
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_window_object, __pyx_n_s_close_callback); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1277, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_4 = NULL;
  if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_1))) {
    __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_1);
    if (likely(__pyx_t_4)) {
      PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_1);
      __Pyx_INCREF(__pyx_t_4);
      __Pyx_INCREF(function);
      __Pyx_DECREF_SET(__pyx_t_1, function);
    }
  }
  __pyx_t_3 = (__pyx_t_4) ? __Pyx_PyObject_Call2Args(__pyx_t_1, __pyx_t_4, __pyx_v_window_object) : __Pyx_PyObject_CallOneArg(__pyx_t_1, __pyx_v_window_object);
  __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
  if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1277, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cgl_wrapper.pyx":1275
 * __WINDOW_TABLE = {}
 * 
 * cdef void __pass_through_window_close_callback(CGL_window* window):             # <<<<<<<<<<<<<<
 *     window_object = __WINDOW_TABLE[CGL_utils_super_fast_hash(<void*>window, sizeof(CGL_window*))]
 *     window_object.close_callback(window_object)
 */

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_WriteUnraisable("cgl.__pass_through_window_close_callback", __pyx_clineno, __pyx_lineno, __pyx_filename, 1, 0);
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_window_object);
  __Pyx_RefNannyFinishContext();
}

/* "cgl_wrapper.pyx":1279
 *     window_object.close_callback(window_object)
 * 
 * cdef void __pass_through_window_key_callback(CGL_window* window, int key, int scancode, int action, int mods):             # <<<<<<<<<<<<<<
 *     window_object = __WINDOW_TABLE[CGL_utils_super_fast_hash(<void*>window, sizeof(CGL_window*))]
 *     window_object.key_callback(window_object, key, scancode, action, mods)
 */

static void __pyx_f_3cgl___pass_through_window_key_callback(struct CGL_window *__pyx_v_window, int __pyx_v_key, int __pyx_v_scancode, int __pyx_v_action, int __pyx_v_mods) {
  PyObject *__pyx_v_window_object = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  uint32_t __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  PyObject *__pyx_t_7 = NULL;
  PyObject *__pyx_t_8 = NULL;
  int __pyx_t_9;
  PyObject *__pyx_t_10 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__pass_through_window_key_callback", 0);

  /* "cgl_wrapper.pyx":1280
 * 
 * cdef void __pass_through_window_key_callback(CGL_window* window, int key, int scancode, int action, int mods):
 *     window_object = __WINDOW_TABLE[CGL_utils_super_fast_hash(<void*>window, sizeof(CGL_window*))]             # <<<<<<<<<<<<<<
 *     window_object.key_callback(window_object, key, scancode, action, mods)
 * 
 */
  __Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_n_s_WINDOW_TABLE); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1280, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = CGL_utils_super_fast_hash(((void *)__pyx_v_window), (sizeof(struct CGL_window *)));
  __pyx_t_3 = __Pyx_GetItemInt(__pyx_t_1, __pyx_t_2, uint32_t, 0, __Pyx_PyInt_From_uint32_t, 0, 0, 1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1280, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_v_window_object = __pyx_t_3;
  __pyx_t_3 = 0;

  /* "cgl_wrapper.pyx":1281
 * cdef void __pass_through_window_key_callback(CGL_window* window, int key, int scancode, int action, int mods):
 *     window_object = __WINDOW_TABLE[CGL_utils_super_fast_hash(<void*>window, sizeof(CGL_window*))]
 *     window_object.key_callback(window_object, key, scancode, action, mods)             # <<<<<<<<<<<<<<
 * 
 * cdef void __pass_through_window_mouse_button_callback(CGL_window* window, int button, int action, int mods):
 */
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_window_object, __pyx_n_s_key_callback); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1281, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_4 = __Pyx_PyInt_From_int(__pyx_v_key); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1281, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_5 = __Pyx_PyInt_From_int(__pyx_v_scancode); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1281, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __pyx_t_6 = __Pyx_PyInt_From_int(__pyx_v_action); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 1281, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __pyx_t_7 = __Pyx_PyInt_From_int(__pyx_v_mods); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 1281, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_7);
  __pyx_t_8 = NULL;
  __pyx_t_9 = 0;
  if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_1))) {
    __pyx_t_8 = PyMethod_GET_SELF(__pyx_t_1);
    if (likely(__pyx_t_8)) {
      PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_1);
      __Pyx_INCREF(__pyx_t_8);
      __Pyx_INCREF(function);
      __Pyx_DECREF_SET(__pyx_t_1, function);
      __pyx_t_9 = 1;
    }
  }
  #if CYTHON_FAST_PYCALL
  if (PyFunction_Check(__pyx_t_1)) {
    PyObject *__pyx_temp[6] = {__pyx_t_8, __pyx_v_window_object, __pyx_t_4, __pyx_t_5, __pyx_t_6, __pyx_t_7};
    __pyx_t_3 = __Pyx_PyFunction_FastCall(__pyx_t_1, __pyx_temp+1-__pyx_t_9, 5+__pyx_t_9); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1281, __pyx_L1_error)
    __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
    __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
  } else
  #endif
  #if CYTHON_FAST_PYCCALL
  if (__Pyx_PyFastCFunction_Check(__pyx_t_1)) {
    PyObject *__pyx_temp[6] = {__pyx_t_8, __pyx_v_window_object, __pyx_t_4, __pyx_t_5, __pyx_t_6, __pyx_t_7};
    __pyx_t_3 = __Pyx_PyCFunction_FastCall(__pyx_t_1, __pyx_temp+1-__pyx_t_9, 5+__pyx_t_9); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1281, __pyx_L1_error)
    __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
    __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
  } else
  #endif
  {
    __pyx_t_10 = PyTuple_New(5+__pyx_t_9); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 1281, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_10);
    if (__pyx_t_8) {
      __Pyx_GIVEREF(__pyx_t_8); PyTuple_SET_ITEM(__pyx_t_10, 0, __pyx_t_8); __pyx_t_8 = NULL;
    }
    __Pyx_INCREF(__pyx_v_window_object);
    __Pyx_GIVEREF(__pyx_v_window_object);
    PyTuple_SET_ITEM(__pyx_t_10, 0+__pyx_t_9, __pyx_v_window_object);
    __Pyx_GIVEREF(__pyx_t_4);
    PyTuple_SET_ITEM(__pyx_t_10, 1+__pyx_t_9, __pyx_t_4);
    __Pyx_GIVEREF(__pyx_t_5);
    PyTuple_SET_ITEM(__pyx_t_10, 2+__pyx_t_9, __pyx_t_5);
    __Pyx_GIVEREF(__pyx_t_6);
    PyTuple_SET_ITEM(__pyx_t_10, 3+__pyx_t_9, __pyx_t_6);
    __Pyx_GIVEREF(__pyx_t_7);
    PyTuple_SET_ITEM(__pyx_t_10, 4+__pyx_t_9, __pyx_t_7);
    __pyx_t_4 = 0;
    __pyx_t_5 = 0;
    __pyx_t_6 = 0;
    __pyx_t_7 = 0;
    __pyx_t_3 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_t_10, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1281, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cgl_wrapper.pyx":1279
 *     window_object.close_callback(window_object)
 * 
 * cdef void __pass_through_window_key_callback(CGL_window* window, int key, int scancode, int action, int mods):             # <<<<<<<<<<<<<<
 *     window_object = __WINDOW_TABLE[CGL_utils_super_fast_hash(<void*>window, sizeof(CGL_window*))]
 *     window_object.key_callback(window_object, key, scancode, action, mods)
 */

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_XDECREF(__pyx_t_8);
  __Pyx_XDECREF(__pyx_t_10);
  __Pyx_WriteUnraisable("cgl.__pass_through_window_key_callback", __pyx_clineno, __pyx_lineno, __pyx_filename, 1, 0);
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_window_object);
  __Pyx_RefNannyFinishContext();
}

/* "cgl_wrapper.pyx":1283
 *     window_object.key_callback(window_object, key, scancode, action, mods)
 * 
 * cdef void __pass_through_window_mouse_button_callback(CGL_window* window, int button, int action, int mods):             # <<<<<<<<<<<<<<
 *     window_object = __WINDOW_TABLE[CGL_utils_super_fast_hash(<void*>window, sizeof(CGL_window*))]
 *     window_object.mouse_button_callback(window_object, button, action, mods)
 */

static void __pyx_f_3cgl___pass_through_window_mouse_button_callback(struct CGL_window *__pyx_v_window, int __pyx_v_button, int __pyx_v_action, int __pyx_v_mods) {
  PyObject *__pyx_v_window_object = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  uint32_t __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  PyObject *__pyx_t_7 = NULL;
  int __pyx_t_8;
  PyObject *__pyx_t_9 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__pass_through_window_mouse_button_callback", 0);

  /* "cgl_wrapper.pyx":1284
 * 
 * cdef void __pass_through_window_mouse_button_callback(CGL_window* window, int button, int action, int mods):
 *     window_object = __WINDOW_TABLE[CGL_utils_super_fast_hash(<void*>window, sizeof(CGL_window*))]             # <<<<<<<<<<<<<<
 *     window_object.mouse_button_callback(window_object, button, action, mods)
 * 
 */
  __Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_n_s_WINDOW_TABLE); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1284, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = CGL_utils_super_fast_hash(((void *)__pyx_v_window), (sizeof(struct CGL_window *)));
  __pyx_t_3 = __Pyx_GetItemInt(__pyx_t_1, __pyx_t_2, uint32_t, 0, __Pyx_PyInt_From_uint32_t, 0, 0, 1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1284, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_v_window_object = __pyx_t_3;
  __pyx_t_3 = 0;

  /* "cgl_wrapper.pyx":1285
 * cdef void __pass_through_window_mouse_button_callback(CGL_window* window, int button, int action, int mods):
 *     window_object = __WINDOW_TABLE[CGL_utils_super_fast_hash(<void*>window, sizeof(CGL_window*))]
 *     window_object.mouse_button_callback(window_object, button, action, mods)             # <<<<<<<<<<<<<<
 * 
 * cdef void __pass_through_window_mouse_position_callback(CGL_window* window, double xpos, double ypos):
 */
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_window_object, __pyx_n_s_mouse_button_callback); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1285, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_4 = __Pyx_PyInt_From_int(__pyx_v_button); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1285, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_5 = __Pyx_PyInt_From_int(__pyx_v_action); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1285, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __pyx_t_6 = __Pyx_PyInt_From_int(__pyx_v_mods); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 1285, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __pyx_t_7 = NULL;
  __pyx_t_8 = 0;
  if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_1))) {
    __pyx_t_7 = PyMethod_GET_SELF(__pyx_t_1);
    if (likely(__pyx_t_7)) {
      PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_1);
      __Pyx_INCREF(__pyx_t_7);
      __Pyx_INCREF(function);
      __Pyx_DECREF_SET(__pyx_t_1, function);
      __pyx_t_8 = 1;
    }
  }
  #if CYTHON_FAST_PYCALL
  if (PyFunction_Check(__pyx_t_1)) {
    PyObject *__pyx_temp[5] = {__pyx_t_7, __pyx_v_window_object, __pyx_t_4, __pyx_t_5, __pyx_t_6};
    __pyx_t_3 = __Pyx_PyFunction_FastCall(__pyx_t_1, __pyx_temp+1-__pyx_t_8, 4+__pyx_t_8); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1285, __pyx_L1_error)
    __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
  } else
  #endif
  #if CYTHON_FAST_PYCCALL
  if (__Pyx_PyFastCFunction_Check(__pyx_t_1)) {
    PyObject *__pyx_temp[5] = {__pyx_t_7, __pyx_v_window_object, __pyx_t_4, __pyx_t_5, __pyx_t_6};
    __pyx_t_3 = __Pyx_PyCFunction_FastCall(__pyx_t_1, __pyx_temp+1-__pyx_t_8, 4+__pyx_t_8); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1285, __pyx_L1_error)
    __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
  } else
  #endif
  {
    __pyx_t_9 = PyTuple_New(4+__pyx_t_8); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 1285, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_9);
    if (__pyx_t_7) {
      __Pyx_GIVEREF(__pyx_t_7); PyTuple_SET_ITEM(__pyx_t_9, 0, __pyx_t_7); __pyx_t_7 = NULL;
    }
    __Pyx_INCREF(__pyx_v_window_object);
    __Pyx_GIVEREF(__pyx_v_window_object);
    PyTuple_SET_ITEM(__pyx_t_9, 0+__pyx_t_8, __pyx_v_window_object);
    __Pyx_GIVEREF(__pyx_t_4);
    PyTuple_SET_ITEM(__pyx_t_9, 1+__pyx_t_8, __pyx_t_4);
    __Pyx_GIVEREF(__pyx_t_5);
    PyTuple_SET_ITEM(__pyx_t_9, 2+__pyx_t_8, __pyx_t_5);
    __Pyx_GIVEREF(__pyx_t_6);
    PyTuple_SET_ITEM(__pyx_t_9, 3+__pyx_t_8, __pyx_t_6);
    __pyx_t_4 = 0;
    __pyx_t_5 = 0;
    __pyx_t_6 = 0;
    __pyx_t_3 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_t_9, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1285, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cgl_wrapper.pyx":1283
 *     window_object.key_callback(window_object, key, scancode, action, mods)
 * 
 * cdef void __pass_through_window_mouse_button_callback(CGL_window* window, int button, int action, int mods):             # <<<<<<<<<<<<<<
 *     window_object = __WINDOW_TABLE[CGL_utils_super_fast_hash(<void*>window, sizeof(CGL_window*))]
 *     window_object.mouse_button_callback(window_object, button, action, mods)
 */

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_XDECREF(__pyx_t_9);
  __Pyx_WriteUnraisable("cgl.__pass_through_window_mouse_button_callback", __pyx_clineno, __pyx_lineno, __pyx_filename, 1, 0);
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_window_object);
  __Pyx_RefNannyFinishContext();
}

/* "cgl_wrapper.pyx":1287
 *     window_object.mouse_button_callback(window_object, button, action, mods)
 * 
 * cdef void __pass_through_window_mouse_position_callback(CGL_window* window, double xpos, double ypos):             # <<<<<<<<<<<<<<
 *     window_object = __WINDOW_TABLE[CGL_utils_super_fast_hash(<void*>window, sizeof(CGL_window*))]
 *     window_object.mouse_position_callback(window_object, xpos, ypos)
 */

static void __pyx_f_3cgl___pass_through_window_mouse_position_callback(struct CGL_window *__pyx_v_window, double __pyx_v_xpos, double __pyx_v_ypos) {
  PyObject *__pyx_v_window_object = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  uint32_t __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  int __pyx_t_7;
  PyObject *__pyx_t_8 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__pass_through_window_mouse_position_callback", 0);

  /* "cgl_wrapper.pyx":1288
 * 
 * cdef void __pass_through_window_mouse_position_callback(CGL_window* window, double xpos, double ypos):
 *     window_object = __WINDOW_TABLE[CGL_utils_super_fast_hash(<void*>window, sizeof(CGL_window*))]             # <<<<<<<<<<<<<<
 *     window_object.mouse_position_callback(window_object, xpos, ypos)
 * 
 */
  __Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_n_s_WINDOW_TABLE); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1288, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = CGL_utils_super_fast_hash(((void *)__pyx_v_window), (sizeof(struct CGL_window *)));
  __pyx_t_3 = __Pyx_GetItemInt(__pyx_t_1, __pyx_t_2, uint32_t, 0, __Pyx_PyInt_From_uint32_t, 0, 0, 1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1288, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_v_window_object = __pyx_t_3;
  __pyx_t_3 = 0;

  /* "cgl_wrapper.pyx":1289
 * cdef void __pass_through_window_mouse_position_callback(CGL_window* window, double xpos, double ypos):
 *     window_object = __WINDOW_TABLE[CGL_utils_super_fast_hash(<void*>window, sizeof(CGL_window*))]
 *     window_object.mouse_position_callback(window_object, xpos, ypos)             # <<<<<<<<<<<<<<
 * 
 * cdef void __pass_through_window_mouse_scroll_callback(CGL_window* window, double xoffset, double yoffset):
 */
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_window_object, __pyx_n_s_mouse_position_callback); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1289, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_4 = PyFloat_FromDouble(__pyx_v_xpos); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1289, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_5 = PyFloat_FromDouble(__pyx_v_ypos); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1289, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __pyx_t_6 = NULL;
  __pyx_t_7 = 0;
  if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_1))) {
    __pyx_t_6 = PyMethod_GET_SELF(__pyx_t_1);
    if (likely(__pyx_t_6)) {
      PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_1);
      __Pyx_INCREF(__pyx_t_6);
      __Pyx_INCREF(function);
      __Pyx_DECREF_SET(__pyx_t_1, function);
      __pyx_t_7 = 1;
    }
  }
  #if CYTHON_FAST_PYCALL
  if (PyFunction_Check(__pyx_t_1)) {
    PyObject *__pyx_temp[4] = {__pyx_t_6, __pyx_v_window_object, __pyx_t_4, __pyx_t_5};
    __pyx_t_3 = __Pyx_PyFunction_FastCall(__pyx_t_1, __pyx_temp+1-__pyx_t_7, 3+__pyx_t_7); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1289, __pyx_L1_error)
    __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
  } else
  #endif
  #if CYTHON_FAST_PYCCALL
  if (__Pyx_PyFastCFunction_Check(__pyx_t_1)) {
    PyObject *__pyx_temp[4] = {__pyx_t_6, __pyx_v_window_object, __pyx_t_4, __pyx_t_5};
    __pyx_t_3 = __Pyx_PyCFunction_FastCall(__pyx_t_1, __pyx_temp+1-__pyx_t_7, 3+__pyx_t_7); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1289, __pyx_L1_error)
    __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
  } else
  #endif
  {
    __pyx_t_8 = PyTuple_New(3+__pyx_t_7); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 1289, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_8);
    if (__pyx_t_6) {
      __Pyx_GIVEREF(__pyx_t_6); PyTuple_SET_ITEM(__pyx_t_8, 0, __pyx_t_6); __pyx_t_6 = NULL;
    }
    __Pyx_INCREF(__pyx_v_window_object);
    __Pyx_GIVEREF(__pyx_v_window_object);
    PyTuple_SET_ITEM(__pyx_t_8, 0+__pyx_t_7, __pyx_v_window_object);
    __Pyx_GIVEREF(__pyx_t_4);
    PyTuple_SET_ITEM(__pyx_t_8, 1+__pyx_t_7, __pyx_t_4);
    __Pyx_GIVEREF(__pyx_t_5);
    PyTuple_SET_ITEM(__pyx_t_8, 2+__pyx_t_7, __pyx_t_5);
    __pyx_t_4 = 0;
    __pyx_t_5 = 0;
    __pyx_t_3 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_t_8, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1289, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cgl_wrapper.pyx":1287
 *     window_object.mouse_button_callback(window_object, button, action, mods)
 * 
 * cdef void __pass_through_window_mouse_position_callback(CGL_window* window, double xpos, double ypos):             # <<<<<<<<<<<<<<
 *     window_object = __WINDOW_TABLE[CGL_utils_super_fast_hash(<void*>window, sizeof(CGL_window*))]
 *     window_object.mouse_position_callback(window_object, xpos, ypos)
 */

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_XDECREF(__pyx_t_8);
  __Pyx_WriteUnraisable("cgl.__pass_through_window_mouse_position_callback", __pyx_clineno, __pyx_lineno, __pyx_filename, 1, 0);
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_window_object);
  __Pyx_RefNannyFinishContext();
}

/* "cgl_wrapper.pyx":1291
 *     window_object.mouse_position_callback(window_object, xpos, ypos)
 * 
 * cdef void __pass_through_window_mouse_scroll_callback(CGL_window* window, double xoffset, double yoffset):             # <<<<<<<<<<<<<<
 *     window_object = __WINDOW_TABLE[CGL_utils_super_fast_hash(<void*>window, sizeof(CGL_window*))]
 *     window_object.mouse_scroll_callback(window_object, xoffset, yoffset)
 */

static void __pyx_f_3cgl___pass_through_window_mouse_scroll_callback(struct CGL_window *__pyx_v_window, double __pyx_v_xoffset, double __pyx_v_yoffset) {
  PyObject *__pyx_v_window_object = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  uint32_t __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  int __pyx_t_7;
  PyObject *__pyx_t_8 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__pass_through_window_mouse_scroll_callback", 0);

  /* "cgl_wrapper.pyx":1292
 * 
 * cdef void __pass_through_window_mouse_scroll_callback(CGL_window* window, double xoffset, double yoffset):
 *     window_object = __WINDOW_TABLE[CGL_utils_super_fast_hash(<void*>window, sizeof(CGL_window*))]             # <<<<<<<<<<<<<<
 *     window_object.mouse_scroll_callback(window_object, xoffset, yoffset)
 * 
 */
  __Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_n_s_WINDOW_TABLE); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1292, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = CGL_utils_super_fast_hash(((void *)__pyx_v_window), (sizeof(struct CGL_window *)));
  __pyx_t_3 = __Pyx_GetItemInt(__pyx_t_1, __pyx_t_2, uint32_t, 0, __Pyx_PyInt_From_uint32_t, 0, 0, 1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1292, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_v_window_object = __pyx_t_3;
  __pyx_t_3 = 0;

  /* "cgl_wrapper.pyx":1293
 * cdef void __pass_through_window_mouse_scroll_callback(CGL_window* window, double xoffset, double yoffset):
 *     window_object = __WINDOW_TABLE[CGL_utils_super_fast_hash(<void*>window, sizeof(CGL_window*))]
 *     window_object.mouse_scroll_callback(window_object, xoffset, yoffset)             # <<<<<<<<<<<<<<
 * 
 * cdef void __pass_through_window_framebuffer_size_callback(CGL_window* window, int width, int height):
 */
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_window_object, __pyx_n_s_mouse_scroll_callback); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1293, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_4 = PyFloat_FromDouble(__pyx_v_xoffset); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1293, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_5 = PyFloat_FromDouble(__pyx_v_yoffset); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1293, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __pyx_t_6 = NULL;
  __pyx_t_7 = 0;
  if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_1))) {
    __pyx_t_6 = PyMethod_GET_SELF(__pyx_t_1);
    if (likely(__pyx_t_6)) {
      PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_1);
      __Pyx_INCREF(__pyx_t_6);
      __Pyx_INCREF(function);
      __Pyx_DECREF_SET(__pyx_t_1, function);
      __pyx_t_7 = 1;
    }
  }
  #if CYTHON_FAST_PYCALL
  if (PyFunction_Check(__pyx_t_1)) {
    PyObject *__pyx_temp[4] = {__pyx_t_6, __pyx_v_window_object, __pyx_t_4, __pyx_t_5};
    __pyx_t_3 = __Pyx_PyFunction_FastCall(__pyx_t_1, __pyx_temp+1-__pyx_t_7, 3+__pyx_t_7); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1293, __pyx_L1_error)
    __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
  } else
  #endif
  #if CYTHON_FAST_PYCCALL
  if (__Pyx_PyFastCFunction_Check(__pyx_t_1)) {
    PyObject *__pyx_temp[4] = {__pyx_t_6, __pyx_v_window_object, __pyx_t_4, __pyx_t_5};
    __pyx_t_3 = __Pyx_PyCFunction_FastCall(__pyx_t_1, __pyx_temp+1-__pyx_t_7, 3+__pyx_t_7); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1293, __pyx_L1_error)
    __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
  } else
  #endif
  {
    __pyx_t_8 = PyTuple_New(3+__pyx_t_7); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 1293, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_8);
    if (__pyx_t_6) {
      __Pyx_GIVEREF(__pyx_t_6); PyTuple_SET_ITEM(__pyx_t_8, 0, __pyx_t_6); __pyx_t_6 = NULL;
    }
    __Pyx_INCREF(__pyx_v_window_object);
    __Pyx_GIVEREF(__pyx_v_window_object);
    PyTuple_SET_ITEM(__pyx_t_8, 0+__pyx_t_7, __pyx_v_window_object);
    __Pyx_GIVEREF(__pyx_t_4);
    PyTuple_SET_ITEM(__pyx_t_8, 1+__pyx_t_7, __pyx_t_4);
    __Pyx_GIVEREF(__pyx_t_5);
    PyTuple_SET_ITEM(__pyx_t_8, 2+__pyx_t_7, __pyx_t_5);
    __pyx_t_4 = 0;
    __pyx_t_5 = 0;
    __pyx_t_3 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_t_8, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1293, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cgl_wrapper.pyx":1291
 *     window_object.mouse_position_callback(window_object, xpos, ypos)
 * 
 * cdef void __pass_through_window_mouse_scroll_callback(CGL_window* window, double xoffset, double yoffset):             # <<<<<<<<<<<<<<
 *     window_object = __WINDOW_TABLE[CGL_utils_super_fast_hash(<void*>window, sizeof(CGL_window*))]
 *     window_object.mouse_scroll_callback(window_object, xoffset, yoffset)
 */

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_XDECREF(__pyx_t_8);
  __Pyx_WriteUnraisable("cgl.__pass_through_window_mouse_scroll_callback", __pyx_clineno, __pyx_lineno, __pyx_filename, 1, 0);
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_window_object);
  __Pyx_RefNannyFinishContext();
}

/* "cgl_wrapper.pyx":1295
 *     window_object.mouse_scroll_callback(window_object, xoffset, yoffset)
 * 
 * cdef void __pass_through_window_framebuffer_size_callback(CGL_window* window, int width, int height):             # <<<<<<<<<<<<<<
 *     window_object = __WINDOW_TABLE[CGL_utils_super_fast_hash(<void*>window, sizeof(CGL_window*))]
 *     window_object.framebuffer_size_callback(window_object, width, height)
 */

static void __pyx_f_3cgl___pass_through_window_framebuffer_size_callback(struct CGL_window *__pyx_v_window, int __pyx_v_width, int __pyx_v_height) {
  PyObject *__pyx_v_window_object = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  uint32_t __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  int __pyx_t_7;
  PyObject *__pyx_t_8 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__pass_through_window_framebuffer_size_callback", 0);

  /* "cgl_wrapper.pyx":1296
 * 
 * cdef void __pass_through_window_framebuffer_size_callback(CGL_window* window, int width, int height):
 *     window_object = __WINDOW_TABLE[CGL_utils_super_fast_hash(<void*>window, sizeof(CGL_window*))]             # <<<<<<<<<<<<<<
 *     window_object.framebuffer_size_callback(window_object, width, height)
 * 
 */
  __Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_n_s_WINDOW_TABLE); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1296, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = CGL_utils_super_fast_hash(((void *)__pyx_v_window), (sizeof(struct CGL_window *)));
  __pyx_t_3 = __Pyx_GetItemInt(__pyx_t_1, __pyx_t_2, uint32_t, 0, __Pyx_PyInt_From_uint32_t, 0, 0, 1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1296, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_v_window_object = __pyx_t_3;
  __pyx_t_3 = 0;

  /* "cgl_wrapper.pyx":1297
 * cdef void __pass_through_window_framebuffer_size_callback(CGL_window* window, int width, int height):
 *     window_object = __WINDOW_TABLE[CGL_utils_super_fast_hash(<void*>window, sizeof(CGL_window*))]
 *     window_object.framebuffer_size_callback(window_object, width, height)             # <<<<<<<<<<<<<<
 * 
 * cdef void __pass_through_window_drag_n_drop_callback(CGL_window* window, const char** paths, int count):
 */
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_window_object, __pyx_n_s_framebuffer_size_callback); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1297, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_4 = __Pyx_PyInt_From_int(__pyx_v_width); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1297, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_5 = __Pyx_PyInt_From_int(__pyx_v_height); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1297, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __pyx_t_6 = NULL;
  __pyx_t_7 = 0;
  if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_1))) {
    __pyx_t_6 = PyMethod_GET_SELF(__pyx_t_1);
    if (likely(__pyx_t_6)) {
      PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_1);
      __Pyx_INCREF(__pyx_t_6);
      __Pyx_INCREF(function);
      __Pyx_DECREF_SET(__pyx_t_1, function);
      __pyx_t_7 = 1;
    }
  }
  #if CYTHON_FAST_PYCALL
  if (PyFunction_Check(__pyx_t_1)) {
    PyObject *__pyx_temp[4] = {__pyx_t_6, __pyx_v_window_object, __pyx_t_4, __pyx_t_5};
    __pyx_t_3 = __Pyx_PyFunction_FastCall(__pyx_t_1, __pyx_temp+1-__pyx_t_7, 3+__pyx_t_7); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1297, __pyx_L1_error)
    __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
  } else
  #endif
  #if CYTHON_FAST_PYCCALL
  if (__Pyx_PyFastCFunction_Check(__pyx_t_1)) {
    PyObject *__pyx_temp[4] = {__pyx_t_6, __pyx_v_window_object, __pyx_t_4, __pyx_t_5};
    __pyx_t_3 = __Pyx_PyCFunction_FastCall(__pyx_t_1, __pyx_temp+1-__pyx_t_7, 3+__pyx_t_7); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1297, __pyx_L1_error)
    __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
  } else
  #endif
  {
    __pyx_t_8 = PyTuple_New(3+__pyx_t_7); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 1297, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_8);
    if (__pyx_t_6) {
      __Pyx_GIVEREF(__pyx_t_6); PyTuple_SET_ITEM(__pyx_t_8, 0, __pyx_t_6); __pyx_t_6 = NULL;
    }
    __Pyx_INCREF(__pyx_v_window_object);
    __Pyx_GIVEREF(__pyx_v_window_object);
    PyTuple_SET_ITEM(__pyx_t_8, 0+__pyx_t_7, __pyx_v_window_object);
    __Pyx_GIVEREF(__pyx_t_4);
    PyTuple_SET_ITEM(__pyx_t_8, 1+__pyx_t_7, __pyx_t_4);
    __Pyx_GIVEREF(__pyx_t_5);
    PyTuple_SET_ITEM(__pyx_t_8, 2+__pyx_t_7, __pyx_t_5);
    __pyx_t_4 = 0;
    __pyx_t_5 = 0;
    __pyx_t_3 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_t_8, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1297, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cgl_wrapper.pyx":1295
 *     window_object.mouse_scroll_callback(window_object, xoffset, yoffset)
 * 
 * cdef void __pass_through_window_framebuffer_size_callback(CGL_window* window, int width, int height):             # <<<<<<<<<<<<<<
 *     window_object = __WINDOW_TABLE[CGL_utils_super_fast_hash(<void*>window, sizeof(CGL_window*))]
 *     window_object.framebuffer_size_callback(window_object, width, height)
 */

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_XDECREF(__pyx_t_8);
  __Pyx_WriteUnraisable("cgl.__pass_through_window_framebuffer_size_callback", __pyx_clineno, __pyx_lineno, __pyx_filename, 1, 0);
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_window_object);
  __Pyx_RefNannyFinishContext();
}

/* "cgl_wrapper.pyx":1299
 *     window_object.framebuffer_size_callback(window_object, width, height)
 * 
 * cdef void __pass_through_window_drag_n_drop_callback(CGL_window* window, const char** paths, int count):             # <<<<<<<<<<<<<<
 *     window_object = __WINDOW_TABLE[CGL_utils_super_fast_hash(<void*>window, sizeof(CGL_window*))]
 *     path_list = []
 */

static void __pyx_f_3cgl___pass_through_window_drag_n_drop_callback(struct CGL_window *__pyx_v_window, char const **__pyx_v_paths, int __pyx_v_count) {
  PyObject *__pyx_v_window_object = NULL;
  PyObject *__pyx_v_path_list = NULL;
  int __pyx_v_i;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  uint32_t __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  int __pyx_t_4;
  int __pyx_t_5;
  int __pyx_t_6;
  char const *__pyx_t_7;
  int __pyx_t_8;
  PyObject *__pyx_t_9 = NULL;
  PyObject *__pyx_t_10 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__pass_through_window_drag_n_drop_callback", 0);

  /* "cgl_wrapper.pyx":1300
 * 
 * cdef void __pass_through_window_drag_n_drop_callback(CGL_window* window, const char** paths, int count):
 *     window_object = __WINDOW_TABLE[CGL_utils_super_fast_hash(<void*>window, sizeof(CGL_window*))]             # <<<<<<<<<<<<<<
 *     path_list = []
 *     for i in range(count):
 */
  __Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_n_s_WINDOW_TABLE); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1300, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = CGL_utils_super_fast_hash(((void *)__pyx_v_window), (sizeof(struct CGL_window *)));
  __pyx_t_3 = __Pyx_GetItemInt(__pyx_t_1, __pyx_t_2, uint32_t, 0, __Pyx_PyInt_From_uint32_t, 0, 0, 1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1300, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_v_window_object = __pyx_t_3;
  __pyx_t_3 = 0;

  /* "cgl_wrapper.pyx":1301
 * cdef void __pass_through_window_drag_n_drop_callback(CGL_window* window, const char** paths, int count):
 *     window_object = __WINDOW_TABLE[CGL_utils_super_fast_hash(<void*>window, sizeof(CGL_window*))]
 *     path_list = []             # <<<<<<<<<<<<<<
 *     for i in range(count):
 *         path_list.append(paths[i].decode('utf-8'))
 */
  __pyx_t_3 = PyList_New(0); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1301, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_v_path_list = ((PyObject*)__pyx_t_3);
  __pyx_t_3 = 0;

  /* "cgl_wrapper.pyx":1302
 *     window_object = __WINDOW_TABLE[CGL_utils_super_fast_hash(<void*>window, sizeof(CGL_window*))]
 *     path_list = []
 *     for i in range(count):             # <<<<<<<<<<<<<<
 *         path_list.append(paths[i].decode('utf-8'))
 *     window_object.drag_n_drop_callback(window_object, path_list)
 */
  __pyx_t_4 = __pyx_v_count;
  __pyx_t_5 = __pyx_t_4;
  for (__pyx_t_6 = 0; __pyx_t_6 < __pyx_t_5; __pyx_t_6+=1) {
    __pyx_v_i = __pyx_t_6;

    /* "cgl_wrapper.pyx":1303
 *     path_list = []
 *     for i in range(count):
 *         path_list.append(paths[i].decode('utf-8'))             # <<<<<<<<<<<<<<
 *     window_object.drag_n_drop_callback(window_object, path_list)
 * 
 */
    __pyx_t_7 = (__pyx_v_paths[__pyx_v_i]);
    __pyx_t_3 = __Pyx_decode_c_string(__pyx_t_7, 0, strlen(__pyx_t_7), NULL, NULL, PyUnicode_DecodeUTF8); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1303, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_8 = __Pyx_PyList_Append(__pyx_v_path_list, __pyx_t_3); if (unlikely(__pyx_t_8 == ((int)-1))) __PYX_ERR(0, 1303, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  }

  /* "cgl_wrapper.pyx":1304
 *     for i in range(count):
 *         path_list.append(paths[i].decode('utf-8'))
 *     window_object.drag_n_drop_callback(window_object, path_list)             # <<<<<<<<<<<<<<
 * 
 * cdef class window:
 */
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_window_object, __pyx_n_s_drag_n_drop_callback); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1304, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_9 = NULL;
  __pyx_t_4 = 0;
  if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_1))) {
    __pyx_t_9 = PyMethod_GET_SELF(__pyx_t_1);
    if (likely(__pyx_t_9)) {
      PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_1);
      __Pyx_INCREF(__pyx_t_9);
      __Pyx_INCREF(function);
      __Pyx_DECREF_SET(__pyx_t_1, function);
      __pyx_t_4 = 1;
    }
  }
  #if CYTHON_FAST_PYCALL
  if (PyFunction_Check(__pyx_t_1)) {
    PyObject *__pyx_temp[3] = {__pyx_t_9, __pyx_v_window_object, __pyx_v_path_list};
    __pyx_t_3 = __Pyx_PyFunction_FastCall(__pyx_t_1, __pyx_temp+1-__pyx_t_4, 2+__pyx_t_4); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1304, __pyx_L1_error)
    __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0;
    __Pyx_GOTREF(__pyx_t_3);
  } else
  #endif
  #if CYTHON_FAST_PYCCALL
  if (__Pyx_PyFastCFunction_Check(__pyx_t_1)) {
    PyObject *__pyx_temp[3] = {__pyx_t_9, __pyx_v_window_object, __pyx_v_path_list};
    __pyx_t_3 = __Pyx_PyCFunction_FastCall(__pyx_t_1, __pyx_temp+1-__pyx_t_4, 2+__pyx_t_4); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1304, __pyx_L1_error)
    __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0;
    __Pyx_GOTREF(__pyx_t_3);
  } else
  #endif
  {
    __pyx_t_10 = PyTuple_New(2+__pyx_t_4); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 1304, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_10);
    if (__pyx_t_9) {
      __Pyx_GIVEREF(__pyx_t_9); PyTuple_SET_ITEM(__pyx_t_10, 0, __pyx_t_9); __pyx_t_9 = NULL;
    }
    __Pyx_INCREF(__pyx_v_window_object);
    __Pyx_GIVEREF(__pyx_v_window_object);
    PyTuple_SET_ITEM(__pyx_t_10, 0+__pyx_t_4, __pyx_v_window_object);
    __Pyx_INCREF(__pyx_v_path_list);
    __Pyx_GIVEREF(__pyx_v_path_list);
    PyTuple_SET_ITEM(__pyx_t_10, 1+__pyx_t_4, __pyx_v_path_list);
    __pyx_t_3 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_t_10, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1304, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "cgl_wrapper.pyx":1299
 *     window_object.framebuffer_size_callback(window_object, width, height)
 * 
 * cdef void __pass_through_window_drag_n_drop_callback(CGL_window* window, const char** paths, int count):             # <<<<<<<<<<<<<<
 *     window_object = __WINDOW_TABLE[CGL_utils_super_fast_hash(<void*>window, sizeof(CGL_window*))]
 *     path_list = []
 */

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_9);
  __Pyx_XDECREF(__pyx_t_10);
  __Pyx_WriteUnraisable("cgl.__pass_through_window_drag_n_drop_callback", __pyx_clineno, __pyx_lineno, __pyx_filename, 1, 0);
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_window_object);
  __Pyx_XDECREF(__pyx_v_path_list);
  __Pyx_RefNannyFinishContext();
}

/* "cgl_wrapper.pyx":1320
 * 
 *     @property
 *     def close_callback(self):             # <<<<<<<<<<<<<<
 *         return self.close_callback
 * 
 */

/* Python wrapper */
static PyObject *__pyx_pw_3cgl_6window_14close_callback_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_3cgl_6window_14close_callback_1__get__(PyObject *__pyx_v_self) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_r = __pyx_pf_3cgl_6window_14close_callback___get__(((struct __pyx_obj_3cgl_window *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_3cgl_6window_14close_callback___get__(struct __pyx_obj_3cgl_window *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__", 0);

  /* "cgl_wrapper.pyx":1321
 *     @property
 *     def close_callback(self):
 *         return self.close_callback             # <<<<<<<<<<<<<<
 * 
 *     @property
 */
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF(__pyx_v_self->close_callback);
  __pyx_r = __pyx_v_self->close_callback;
  goto __pyx_L0;

  /* "cgl_wrapper.pyx":1320
 * 
 *     @property
 *     def close_callback(self):             # <<<<<<<<<<<<<<
 *         return self.close_callback
 * 
 */

  /* function exit code */
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cgl_wrapper.pyx":1324
 * 
 *     @property
 *     def key_callback(self):             # <<<<<<<<<<<<<<
 *         return self.key_callback
 * 
 */

/* Python wrapper */
static PyObject *__pyx_pw_3cgl_6window_12key_callback_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_3cgl_6window_12key_callback_1__get__(PyObject *__pyx_v_self) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_r = __pyx_pf_3cgl_6window_12key_callback___get__(((struct __pyx_obj_3cgl_window *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_3cgl_6window_12key_callback___get__(struct __pyx_obj_3cgl_window *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__", 0);

  /* "cgl_wrapper.pyx":1325
 *     @property
 *     def key_callback(self):
 *         return self.key_callback             # <<<<<<<<<<<<<<
 * 
 *     @property
 */
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF(__pyx_v_self->key_callback);
  __pyx_r = __pyx_v_self->key_callback;
  goto __pyx_L0;

  /* "cgl_wrapper.pyx":1324
 * 
 *     @property
 *     def key_callback(self):             # <<<<<<<<<<<<<<
 *         return self.key_callback
 * 
 */

  /* function exit code */
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cgl_wrapper.pyx":1328
 * 
 *     @property
 *     def mouse_button_callback(self):             # <<<<<<<<<<<<<<
 *         return self.mouse_button_callback
 * 
 */

/* Python wrapper */
static PyObject *__pyx_pw_3cgl_6window_21mouse_button_callback_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_3cgl_6window_21mouse_button_callback_1__get__(PyObject *__pyx_v_self) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_r = __pyx_pf_3cgl_6window_21mouse_button_callback___get__(((struct __pyx_obj_3cgl_window *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_3cgl_6window_21mouse_button_callback___get__(struct __pyx_obj_3cgl_window *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__", 0);

  /* "cgl_wrapper.pyx":1329
 *     @property
 *     def mouse_button_callback(self):
 *         return self.mouse_button_callback             # <<<<<<<<<<<<<<
 * 
 *     @property
 */
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF(__pyx_v_self->mouse_button_callback);
  __pyx_r = __pyx_v_self->mouse_button_callback;
  goto __pyx_L0;

  /* "cgl_wrapper.pyx":1328
 * 
 *     @property
 *     def mouse_button_callback(self):             # <<<<<<<<<<<<<<
 *         return self.mouse_button_callback
 * 
 */

  /* function exit code */
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cgl_wrapper.pyx":1332
 * 
 *     @property
 *     def mouse_position_callback(self):             # <<<<<<<<<<<<<<
 *         return self.mouse_position_callback
 * 
 */

/* Python wrapper */
static PyObject *__pyx_pw_3cgl_6window_23mouse_position_callback_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_3cgl_6window_23mouse_position_callback_1__get__(PyObject *__pyx_v_self) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_r = __pyx_pf_3cgl_6window_23mouse_position_callback___get__(((struct __pyx_obj_3cgl_window *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_3cgl_6window_23mouse_position_callback___get__(struct __pyx_obj_3cgl_window *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__", 0);

  /* "cgl_wrapper.pyx":1333
 *     @property
 *     def mouse_position_callback(self):
 *         return self.mouse_position_callback             # <<<<<<<<<<<<<<
 * 
 *     @property
 */
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF(__pyx_v_self->mouse_position_callback);
  __pyx_r = __pyx_v_self->mouse_position_callback;
  goto __pyx_L0;

  /* "cgl_wrapper.pyx":1332
 * 
 *     @property
 *     def mouse_position_callback(self):             # <<<<<<<<<<<<<<
 *         return self.mouse_position_callback
 * 
 */

  /* function exit code */
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cgl_wrapper.pyx":1336
 * 
 *     @property
 *     def mouse_scroll_callback(self):             # <<<<<<<<<<<<<<
 *         return self.mouse_scroll_callback
 * 
 */

/* Python wrapper */
static PyObject *__pyx_pw_3cgl_6window_21mouse_scroll_callback_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_3cgl_6window_21mouse_scroll_callback_1__get__(PyObject *__pyx_v_self) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_r = __pyx_pf_3cgl_6window_21mouse_scroll_callback___get__(((struct __pyx_obj_3cgl_window *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_3cgl_6window_21mouse_scroll_callback___get__(struct __pyx_obj_3cgl_window *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__", 0);

  /* "cgl_wrapper.pyx":1337
 *     @property
 *     def mouse_scroll_callback(self):
 *         return self.mouse_scroll_callback             # <<<<<<<<<<<<<<
 * 
 *     @property
 */
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF(__pyx_v_self->mouse_scroll_callback);
  __pyx_r = __pyx_v_self->mouse_scroll_callback;
  goto __pyx_L0;

  /* "cgl_wrapper.pyx":1336
 * 
 *     @property
 *     def mouse_scroll_callback(self):             # <<<<<<<<<<<<<<
 *         return self.mouse_scroll_callback
 * 
 */

  /* function exit code */
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cgl_wrapper.pyx":1340
 * 
 *     @property
 *     def framebuffer_size_callback(self):             # <<<<<<<<<<<<<<
 *         return self.framebuffer_size_callback
 * 
 */

/* Python wrapper */
static PyObject *__pyx_pw_3cgl_6window_25framebuffer_size_callback_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_3cgl_6window_25framebuffer_size_callback_1__get__(PyObject *__pyx_v_self) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_r = __pyx_pf_3cgl_6window_25framebuffer_size_callback___get__(((struct __pyx_obj_3cgl_window *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_3cgl_6window_25framebuffer_size_callback___get__(struct __pyx_obj_3cgl_window *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__", 0);

  /* "cgl_wrapper.pyx":1341
 *     @property
 *     def framebuffer_size_callback(self):
 *         return self.framebuffer_size_callback             # <<<<<<<<<<<<<<
 * 
 *     @property
 */
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF(__pyx_v_self->framebuffer_size_callback);
  __pyx_r = __pyx_v_self->framebuffer_size_callback;
  goto __pyx_L0;

  /* "cgl_wrapper.pyx":1340
 * 
 *     @property
 *     def framebuffer_size_callback(self):             # <<<<<<<<<<<<<<
 *         return self.framebuffer_size_callback
 * 
 */

  /* function exit code */
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cgl_wrapper.pyx":1344
 * 
 *     @property
 *     def drag_n_drop_callback(self):             # <<<<<<<<<<<<<<
 *         return self.drag_n_drop_callback
 * 
 */

/* Python wrapper */
static PyObject *__pyx_pw_3cgl_6window_20drag_n_drop_callback_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_3cgl_6window_20drag_n_drop_callback_1__get__(PyObject *__pyx_v_self) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_r = __pyx_pf_3cgl_6window_20drag_n_drop_callback___get__(((struct __pyx_obj_3cgl_window *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_3cgl_6window_20drag_n_drop_callback___get__(struct __pyx_obj_3cgl_window *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__", 0);

  /* "cgl_wrapper.pyx":1345
 *     @property
 *     def drag_n_drop_callback(self):
 *         return self.drag_n_drop_callback             # <<<<<<<<<<<<<<
 * 
 *     @property
 */
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF(__pyx_v_self->drag_n_drop_callback);
  __pyx_r = __pyx_v_self->drag_n_drop_callback;
  goto __pyx_L0;

  /* "cgl_wrapper.pyx":1344
 * 
 *     @property
 *     def drag_n_drop_callback(self):             # <<<<<<<<<<<<<<
 *         return self.drag_n_drop_callback
 * 
 */

  /* function exit code */
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cgl_wrapper.pyx":1348
 * 
 *     @property
 *     def width(self) -> int:             # <<<<<<<<<<<<<<
 *         return self.get_size()[0]
 * 
 */

/* Python wrapper */
static PyObject *__pyx_pw_3cgl_6window_5width_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_3cgl_6window_5width_1__get__(PyObject *__pyx_v_self) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_r = __pyx_pf_3cgl_6window_5width___get__(((struct __pyx_obj_3cgl_window *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_3cgl_6window_5width___get__(struct __pyx_obj_3cgl_window *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__get__", 0);

  /* "cgl_wrapper.pyx":1349
 *     @property
 *     def width(self) -> int:
 *         return self.get_size()[0]             # <<<<<<<<<<<<<<
 * 
 *     @property
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_get_size); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1349, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = NULL;
  if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) {
    __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2);
    if (likely(__pyx_t_3)) {
      PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2);
      __Pyx_INCREF(__pyx_t_3);
      __Pyx_INCREF(function);
      __Pyx_DECREF_SET(__pyx_t_2, function);
    }
  }
  __pyx_t_1 = (__pyx_t_3) ? __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_t_3) : __Pyx_PyObject_CallNoArg(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
  if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1349, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_t_2 = __Pyx_GetItemInt(__pyx_t_1, 0, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1349, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_r = __pyx_t_2;
  __pyx_t_2 = 0;
  goto __pyx_L0;

  /* "cgl_wrapper.pyx":1348
 * 
 *     @property
 *     def width(self) -> int:             # <<<<<<<<<<<<<<
 *         return self.get_size()[0]
 * 
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_AddTraceback("cgl.window.width.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cgl_wrapper.pyx":1352
 * 
 *     @property
 *     def height(self) -> int:             # <<<<<<<<<<<<<<
 *         return self.get_size()[1]
 * 
 */

/* Python wrapper */
static PyObject *__pyx_pw_3cgl_6window_6height_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_3cgl_6window_6height_1__get__(PyObject *__pyx_v_self) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_r = __pyx_pf_3cgl_6window_6height___get__(((struct __pyx_obj_3cgl_window *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_3cgl_6window_6height___get__(struct __pyx_obj_3cgl_window *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__get__", 0);

  /* "cgl_wrapper.pyx":1353
 *     @property
 *     def height(self) -> int:
 *         return self.get_size()[1]             # <<<<<<<<<<<<<<
 * 
 *     @property
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_get_size); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1353, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = NULL;
  if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) {
    __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2);
    if (likely(__pyx_t_3)) {
      PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2);
      __Pyx_INCREF(__pyx_t_3);
      __Pyx_INCREF(function);
      __Pyx_DECREF_SET(__pyx_t_2, function);
    }
  }
  __pyx_t_1 = (__pyx_t_3) ? __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_t_3) : __Pyx_PyObject_CallNoArg(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
  if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1353, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_t_2 = __Pyx_GetItemInt(__pyx_t_1, 1, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1353, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_r = __pyx_t_2;
  __pyx_t_2 = 0;
  goto __pyx_L0;

  /* "cgl_wrapper.pyx":1352
 * 
 *     @property
 *     def height(self) -> int:             # <<<<<<<<<<<<<<
 *         return self.get_size()[1]
 * 
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_AddTraceback("cgl.window.height.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cgl_wrapper.pyx":1356
 * 
 *     @property
 *     def x(self) -> int:             # <<<<<<<<<<<<<<
 *         return self.get_position()[0]
 * 
 */

/* Python wrapper */
static PyObject *__pyx_pw_3cgl_6window_1x_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_3cgl_6window_1x_1__get__(PyObject *__pyx_v_self) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_r = __pyx_pf_3cgl_6window_1x___get__(((struct __pyx_obj_3cgl_window *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_3cgl_6window_1x___get__(struct __pyx_obj_3cgl_window *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__get__", 0);

  /* "cgl_wrapper.pyx":1357
 *     @property
 *     def x(self) -> int:
 *         return self.get_position()[0]             # <<<<<<<<<<<<<<
 * 
 *     @property
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_get_position); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1357, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = NULL;
  if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) {
    __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2);
    if (likely(__pyx_t_3)) {
      PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2);
      __Pyx_INCREF(__pyx_t_3);
      __Pyx_INCREF(function);
      __Pyx_DECREF_SET(__pyx_t_2, function);
    }
  }
  __pyx_t_1 = (__pyx_t_3) ? __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_t_3) : __Pyx_PyObject_CallNoArg(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
  if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1357, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_t_2 = __Pyx_GetItemInt(__pyx_t_1, 0, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1357, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_r = __pyx_t_2;
  __pyx_t_2 = 0;
  goto __pyx_L0;

  /* "cgl_wrapper.pyx":1356
 * 
 *     @property
 *     def x(self) -> int:             # <<<<<<<<<<<<<<
 *         return self.get_position()[0]
 * 
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_AddTraceback("cgl.window.x.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cgl_wrapper.pyx":1360
 * 
 *     @property
 *     def y(self) -> int:             # <<<<<<<<<<<<<<
 *         return self.get_position()[1]
 * 
 */

/* Python wrapper */
static PyObject *__pyx_pw_3cgl_6window_1y_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_3cgl_6window_1y_1__get__(PyObject *__pyx_v_self) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_r = __pyx_pf_3cgl_6window_1y___get__(((struct __pyx_obj_3cgl_window *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_3cgl_6window_1y___get__(struct __pyx_obj_3cgl_window *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__get__", 0);

  /* "cgl_wrapper.pyx":1361
 *     @property
 *     def y(self) -> int:
 *         return self.get_position()[1]             # <<<<<<<<<<<<<<
 * 
 * 
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_get_position); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1361, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = NULL;
  if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) {
    __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2);
    if (likely(__pyx_t_3)) {
      PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2);
      __Pyx_INCREF(__pyx_t_3);
      __Pyx_INCREF(function);
      __Pyx_DECREF_SET(__pyx_t_2, function);
    }
  }
  __pyx_t_1 = (__pyx_t_3) ? __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_t_3) : __Pyx_PyObject_CallNoArg(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
  if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1361, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_t_2 = __Pyx_GetItemInt(__pyx_t_1, 1, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1361, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_r = __pyx_t_2;
  __pyx_t_2 = 0;
  goto __pyx_L0;

  /* "cgl_wrapper.pyx":1360
 * 
 *     @property
 *     def y(self) -> int:             # <<<<<<<<<<<<<<
 *         return self.get_position()[1]
 * 
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_AddTraceback("cgl.window.y.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cgl_wrapper.pyx":1364
 * 
 * 
 *     def __init__(self, width: int, height: int, title: str = "CGL Window", decorated: bool = True):             # <<<<<<<<<<<<<<
 *         self.is_decorated = decorated
 *         self.title = title
 */

/* Python wrapper */
static int __pyx_pw_3cgl_6window_1__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static int __pyx_pw_3cgl_6window_1__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  PyObject *__pyx_v_width = 0;
  PyObject *__pyx_v_height = 0;
  PyObject *__pyx_v_title = 0;
  bool __pyx_v_decorated;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__init__ (wrapper)", 0);
  {
    static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_width,&__pyx_n_s_height,&__pyx_n_s_title,&__pyx_n_s_decorated,0};
    PyObject* values[4] = {0,0,0,0};
    values[2] = ((PyObject*)__pyx_kp_s_CGL_Window);
    if (unlikely(__pyx_kwds)) {
      Py_ssize_t kw_args;
      const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
      switch (pos_args) {
        case  4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
        CYTHON_FALLTHROUGH;
        case  3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
        CYTHON_FALLTHROUGH;
        case  2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
        CYTHON_FALLTHROUGH;
        case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      kw_args = PyDict_Size(__pyx_kwds);
      switch (pos_args) {
        case  0:
        if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_width)) != 0)) kw_args--;
        else goto __pyx_L5_argtuple_error;
        CYTHON_FALLTHROUGH;
        case  1:
        if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_height)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("__init__", 0, 2, 4, 1); __PYX_ERR(0, 1364, __pyx_L3_error)
        }
        CYTHON_FALLTHROUGH;
        case  2:
        if (kw_args > 0) {
          PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_title);
          if (value) { values[2] = value; kw_args--; }
        }
        CYTHON_FALLTHROUGH;
        case  3:
        if (kw_args > 0) {
          PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_decorated);
          if (value) { values[3] = value; kw_args--; }
        }
      }
      if (unlikely(kw_args > 0)) {
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "__init__") < 0)) __PYX_ERR(0, 1364, __pyx_L3_error)
      }
    } else {
      switch (PyTuple_GET_SIZE(__pyx_args)) {
        case  4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
        CYTHON_FALLTHROUGH;
        case  3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
        CYTHON_FALLTHROUGH;
        case  2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
        values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        break;
        default: goto __pyx_L5_argtuple_error;
      }
    }
    __pyx_v_width = values[0];
    __pyx_v_height = values[1];
    __pyx_v_title = ((PyObject*)values[2]);
    if (values[3]) {
      __pyx_v_decorated = __Pyx_PyObject_IsTrue(values[3]); if (unlikely((__pyx_v_decorated == ((bool)-1)) && PyErr_Occurred())) __PYX_ERR(0, 1364, __pyx_L3_error)
    } else {
      __pyx_v_decorated = ((bool)1);
    }
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__init__", 0, 2, 4, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 1364, __pyx_L3_error)
  __pyx_L3_error:;
  __Pyx_AddTraceback("cgl.window.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_title), (&PyString_Type), 1, "title", 1))) __PYX_ERR(0, 1364, __pyx_L1_error)
  __pyx_r = __pyx_pf_3cgl_6window___init__(((struct __pyx_obj_3cgl_window *)__pyx_v_self), __pyx_v_width, __pyx_v_height, __pyx_v_title, __pyx_v_decorated);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_3cgl_6window___init__(struct __pyx_obj_3cgl_window *__pyx_v_self, PyObject *__pyx_v_width, PyObject *__pyx_v_height, PyObject *__pyx_v_title, bool __pyx_v_decorated) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  CGL_int __pyx_t_2;
  CGL_int __pyx_t_3;
  PyObject *__pyx_t_4 = NULL;
  char const *__pyx_t_5;
  char const *__pyx_t_6;
  PyObject *__pyx_t_7 = NULL;
  PyObject *__pyx_t_8 = NULL;
  PyObject *__pyx_t_9 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__init__", 0);

  /* "cgl_wrapper.pyx":1365
 * 
 *     def __init__(self, width: int, height: int, title: str = "CGL Window", decorated: bool = True):
 *         self.is_decorated = decorated             # <<<<<<<<<<<<<<
 *         self.title = title
 *         if decorated:
 */
  __pyx_v_self->is_decorated = __pyx_v_decorated;

  /* "cgl_wrapper.pyx":1366
 *     def __init__(self, width: int, height: int, title: str = "CGL Window", decorated: bool = True):
 *         self.is_decorated = decorated
 *         self.title = title             # <<<<<<<<<<<<<<
 *         if decorated:
 *             self.c_window = CGL_window_create(width, height, title.encode('utf-8'))
 */
  __Pyx_INCREF(__pyx_v_title);
  __Pyx_GIVEREF(__pyx_v_title);
  __Pyx_GOTREF(__pyx_v_self->title);
  __Pyx_DECREF(__pyx_v_self->title);
  __pyx_v_self->title = __pyx_v_title;

  /* "cgl_wrapper.pyx":1367
 *         self.is_decorated = decorated
 *         self.title = title
 *         if decorated:             # <<<<<<<<<<<<<<
 *             self.c_window = CGL_window_create(width, height, title.encode('utf-8'))
 *         else:
 */
  __pyx_t_1 = (__pyx_v_decorated != 0);
  if (__pyx_t_1) {

    /* "cgl_wrapper.pyx":1368
 *         self.title = title
 *         if decorated:
 *             self.c_window = CGL_window_create(width, height, title.encode('utf-8'))             # <<<<<<<<<<<<<<
 *         else:
 *             self.c_window = CGL_window_create_undecorated(width, height, title.encode('utf-8'))
 */
    __pyx_t_2 = __Pyx_PyInt_As_CGL_int(__pyx_v_width); if (unlikely((__pyx_t_2 == ((CGL_int)-1)) && PyErr_Occurred())) __PYX_ERR(0, 1368, __pyx_L1_error)
    __pyx_t_3 = __Pyx_PyInt_As_CGL_int(__pyx_v_height); if (unlikely((__pyx_t_3 == ((CGL_int)-1)) && PyErr_Occurred())) __PYX_ERR(0, 1368, __pyx_L1_error)
    __pyx_t_4 = __Pyx_CallUnboundCMethod1(&__pyx_umethod_PyString_Type_encode, __pyx_v_title, __pyx_kp_s_utf_8); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1368, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __pyx_t_5 = __Pyx_PyObject_AsString(__pyx_t_4); if (unlikely((!__pyx_t_5) && PyErr_Occurred())) __PYX_ERR(0, 1368, __pyx_L1_error)
    __pyx_v_self->c_window = CGL_window_create(__pyx_t_2, __pyx_t_3, __pyx_t_5);
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

    /* "cgl_wrapper.pyx":1367
 *         self.is_decorated = decorated
 *         self.title = title
 *         if decorated:             # <<<<<<<<<<<<<<
 *             self.c_window = CGL_window_create(width, height, title.encode('utf-8'))
 *         else:
 */
    goto __pyx_L3;
  }

  /* "cgl_wrapper.pyx":1370
 *             self.c_window = CGL_window_create(width, height, title.encode('utf-8'))
 *         else:
 *             self.c_window = CGL_window_create_undecorated(width, height, title.encode('utf-8'))             # <<<<<<<<<<<<<<
 *         if self.c_window == NULL:
 *             raise RuntimeError("Failed to create window")
 */
  /*else*/ {
    __pyx_t_3 = __Pyx_PyInt_As_CGL_int(__pyx_v_width); if (unlikely((__pyx_t_3 == ((CGL_int)-1)) && PyErr_Occurred())) __PYX_ERR(0, 1370, __pyx_L1_error)
    __pyx_t_2 = __Pyx_PyInt_As_CGL_int(__pyx_v_height); if (unlikely((__pyx_t_2 == ((CGL_int)-1)) && PyErr_Occurred())) __PYX_ERR(0, 1370, __pyx_L1_error)
    __pyx_t_4 = __Pyx_CallUnboundCMethod1(&__pyx_umethod_PyString_Type_encode, __pyx_v_title, __pyx_kp_s_utf_8); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1370, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __pyx_t_6 = __Pyx_PyObject_AsString(__pyx_t_4); if (unlikely((!__pyx_t_6) && PyErr_Occurred())) __PYX_ERR(0, 1370, __pyx_L1_error)
    __pyx_v_self->c_window = CGL_window_create_undecorated(__pyx_t_3, __pyx_t_2, __pyx_t_6);
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  }
  __pyx_L3:;

  /* "cgl_wrapper.pyx":1371
 *         else:
 *             self.c_window = CGL_window_create_undecorated(width, height, title.encode('utf-8'))
 *         if self.c_window == NULL:             # <<<<<<<<<<<<<<
 *             raise RuntimeError("Failed to create window")
 *         self.has_been_destroyed = False
 */
  __pyx_t_1 = ((__pyx_v_self->c_window == NULL) != 0);
  if (unlikely(__pyx_t_1)) {

    /* "cgl_wrapper.pyx":1372
 *             self.c_window = CGL_window_create_undecorated(width, height, title.encode('utf-8'))
 *         if self.c_window == NULL:
 *             raise RuntimeError("Failed to create window")             # <<<<<<<<<<<<<<
 *         self.has_been_destroyed = False
 *         __WINDOW_TABLE[self.get_id()] = self
 */
    __pyx_t_4 = __Pyx_PyObject_Call(__pyx_builtin_RuntimeError, __pyx_tuple__20, NULL); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1372, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_Raise(__pyx_t_4, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __PYX_ERR(0, 1372, __pyx_L1_error)

    /* "cgl_wrapper.pyx":1371
 *         else:
 *             self.c_window = CGL_window_create_undecorated(width, height, title.encode('utf-8'))
 *         if self.c_window == NULL:             # <<<<<<<<<<<<<<
 *             raise RuntimeError("Failed to create window")
 *         self.has_been_destroyed = False
 */
  }

  /* "cgl_wrapper.pyx":1373
 *         if self.c_window == NULL:
 *             raise RuntimeError("Failed to create window")
 *         self.has_been_destroyed = False             # <<<<<<<<<<<<<<
 *         __WINDOW_TABLE[self.get_id()] = self
 * 
 */
  __pyx_v_self->has_been_destroyed = 0;

  /* "cgl_wrapper.pyx":1374
 *             raise RuntimeError("Failed to create window")
 *         self.has_been_destroyed = False
 *         __WINDOW_TABLE[self.get_id()] = self             # <<<<<<<<<<<<<<
 * 
 *     def __dealloc__(self):
 */
  __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_n_s_WINDOW_TABLE); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1374, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_8 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_get_id); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 1374, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_8);
  __pyx_t_9 = NULL;
  if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_8))) {
    __pyx_t_9 = PyMethod_GET_SELF(__pyx_t_8);
    if (likely(__pyx_t_9)) {
      PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_8);
      __Pyx_INCREF(__pyx_t_9);
      __Pyx_INCREF(function);
      __Pyx_DECREF_SET(__pyx_t_8, function);
    }
  }
  __pyx_t_7 = (__pyx_t_9) ? __Pyx_PyObject_CallOneArg(__pyx_t_8, __pyx_t_9) : __Pyx_PyObject_CallNoArg(__pyx_t_8);
  __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0;
  if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 1374, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_7);
  __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
  if (unlikely(PyObject_SetItem(__pyx_t_4, __pyx_t_7, ((PyObject *)__pyx_v_self)) < 0)) __PYX_ERR(0, 1374, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;

  /* "cgl_wrapper.pyx":1364
 * 
 * 
 *     def __init__(self, width: int, height: int, title: str = "CGL Window", decorated: bool = True):             # <<<<<<<<<<<<<<
 *         self.is_decorated = decorated
 *         self.title = title
 */

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_XDECREF(__pyx_t_8);
  __Pyx_XDECREF(__pyx_t_9);
  __Pyx_AddTraceback("cgl.window.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cgl_wrapper.pyx":1376
 *         __WINDOW_TABLE[self.get_id()] = self
 * 
 *     def __dealloc__(self):             # <<<<<<<<<<<<<<
 *         self.destroy()
 * 
 */

/* Python wrapper */
static void __pyx_pw_3cgl_6window_3__dealloc__(PyObject *__pyx_v_self); /*proto*/
static void __pyx_pw_3cgl_6window_3__dealloc__(PyObject *__pyx_v_self) {
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__dealloc__ (wrapper)", 0);
  __pyx_pf_3cgl_6window_2__dealloc__(((struct __pyx_obj_3cgl_window *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
}

static void __pyx_pf_3cgl_6window_2__dealloc__(struct __pyx_obj_3cgl_window *__pyx_v_self) {
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__dealloc__", 0);

  /* "cgl_wrapper.pyx":1377
 * 
 *     def __dealloc__(self):
 *         self.destroy()             # <<<<<<<<<<<<<<
 * 
 *     def __hash__(self) -> int:
 */
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_destroy); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1377, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = NULL;
  if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) {
    __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2);
    if (likely(__pyx_t_3)) {
      PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2);
      __Pyx_INCREF(__pyx_t_3);
      __Pyx_INCREF(function);
      __Pyx_DECREF_SET(__pyx_t_2, function);
    }
  }
  __pyx_t_1 = (__pyx_t_3) ? __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_t_3) : __Pyx_PyObject_CallNoArg(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
  if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1377, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "cgl_wrapper.pyx":1376
 *         __WINDOW_TABLE[self.get_id()] = self
 * 
 *     def __dealloc__(self):             # <<<<<<<<<<<<<<
 *         self.destroy()
 * 
 */

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_WriteUnraisable("cgl.window.__dealloc__", __pyx_clineno, __pyx_lineno, __pyx_filename, 1, 0);
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
}

/* "cgl_wrapper.pyx":1379
 *         self.destroy()
 * 
 *     def __hash__(self) -> int:             # <<<<<<<<<<<<<<
 *         return self.get_id()
 * 
 */

/* Python wrapper */
static Py_hash_t __pyx_pw_3cgl_6window_5__hash__(PyObject *__pyx_v_self); /*proto*/
static Py_hash_t __pyx_pw_3cgl_6window_5__hash__(PyObject *__pyx_v_self) {
  Py_hash_t __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__hash__ (wrapper)", 0);
  __pyx_r = __pyx_pf_3cgl_6window_4__hash__(((struct __pyx_obj_3cgl_window *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static Py_hash_t __pyx_pf_3cgl_6window_4__hash__(struct __pyx_obj_3cgl_window *__pyx_v_self) {
  Py_hash_t __pyx_r;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  Py_hash_t __pyx_t_4;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__hash__", 0);

  /* "cgl_wrapper.pyx":1380
 * 
 *     def __hash__(self) -> int:
 *         return self.get_id()             # <<<<<<<<<<<<<<
 * 
 *     def destroy(self):
 */
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_get_id); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1380, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = NULL;
  if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) {
    __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2);
    if (likely(__pyx_t_3)) {
      PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2);
      __Pyx_INCREF(__pyx_t_3);
      __Pyx_INCREF(function);
      __Pyx_DECREF_SET(__pyx_t_2, function);
    }
  }
  __pyx_t_1 = (__pyx_t_3) ? __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_t_3) : __Pyx_PyObject_CallNoArg(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
  if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1380, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_t_4 = __Pyx_PyInt_AsHash_t(__pyx_t_1); if (unlikely((__pyx_t_4 == (Py_hash_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 1380, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_r = __pyx_t_4;
  goto __pyx_L0;

  /* "cgl_wrapper.pyx":1379
 *         self.destroy()
 * 
 *     def __hash__(self) -> int:             # <<<<<<<<<<<<<<
 *         return self.get_id()
 * 
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_AddTraceback("cgl.window.__hash__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  if (unlikely(__pyx_r == -1) && !PyErr_Occurred()) __pyx_r = -2;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cgl_wrapper.pyx":1382
 *         return self.get_id()
 * 
 *     def destroy(self):             # <<<<<<<<<<<<<<
 *         if self.has_been_destroyed:
 *             return
 */

/* Python wrapper */
static PyObject *__pyx_pw_3cgl_6window_7destroy(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/
static PyObject *__pyx_pw_3cgl_6window_7destroy(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("destroy (wrapper)", 0);
  __pyx_r = __pyx_pf_3cgl_6window_6destroy(((struct __pyx_obj_3cgl_window *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_3cgl_6window_6destroy(struct __pyx_obj_3cgl_window *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("destroy", 0);

  /* "cgl_wrapper.pyx":1383
 * 
 *     def destroy(self):
 *         if self.has_been_destroyed:             # <<<<<<<<<<<<<<
 *             return
 *         __WINDOW_TABLE.pop(self.get_id())
 */
  __pyx_t_1 = (__pyx_v_self->has_been_destroyed != 0);
  if (__pyx_t_1) {

    /* "cgl_wrapper.pyx":1384
 *     def destroy(self):
 *         if self.has_been_destroyed:
 *             return             # <<<<<<<<<<<<<<
 *         __WINDOW_TABLE.pop(self.get_id())
 *         CGL_window_destroy(self.c_window)
 */
    __Pyx_XDECREF(__pyx_r);
    __pyx_r = Py_None; __Pyx_INCREF(Py_None);
    goto __pyx_L0;

    /* "cgl_wrapper.pyx":1383
 * 
 *     def destroy(self):
 *         if self.has_been_destroyed:             # <<<<<<<<<<<<<<
 *             return
 *         __WINDOW_TABLE.pop(self.get_id())
 */
  }

  /* "cgl_wrapper.pyx":1385
 *         if self.has_been_destroyed:
 *             return
 *         __WINDOW_TABLE.pop(self.get_id())             # <<<<<<<<<<<<<<
 *         CGL_window_destroy(self.c_window)
 *         self.has_been_destroyed = True
 */
  __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_n_s_WINDOW_TABLE); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1385, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_pop); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1385, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __pyx_t_5 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_get_id); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1385, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __pyx_t_6 = NULL;
  if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_5))) {
    __pyx_t_6 = PyMethod_GET_SELF(__pyx_t_5);
    if (likely(__pyx_t_6)) {
      PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_5);
      __Pyx_INCREF(__pyx_t_6);
      __Pyx_INCREF(function);
      __Pyx_DECREF_SET(__pyx_t_5, function);
    }
  }
  __pyx_t_3 = (__pyx_t_6) ? __Pyx_PyObject_CallOneArg(__pyx_t_5, __pyx_t_6) : __Pyx_PyObject_CallNoArg(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
  if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1385, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
  __pyx_t_5 = NULL;
  if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_4))) {
    __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_4);
    if (likely(__pyx_t_5)) {
      PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_4);
      __Pyx_INCREF(__pyx_t_5);
      __Pyx_INCREF(function);
      __Pyx_DECREF_SET(__pyx_t_4, function);
    }
  }
  __pyx_t_2 = (__pyx_t_5) ? __Pyx_PyObject_Call2Args(__pyx_t_4, __pyx_t_5, __pyx_t_3) : __Pyx_PyObject_CallOneArg(__pyx_t_4, __pyx_t_3);
  __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1385, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "cgl_wrapper.pyx":1386
 *             return
 *         __WINDOW_TABLE.pop(self.get_id())
 *         CGL_window_destroy(self.c_window)             # <<<<<<<<<<<<<<
 *         self.has_been_destroyed = True
 * 
 */
  CGL_window_destroy(__pyx_v_self->c_window);

  /* "cgl_wrapper.pyx":1387
 *         __WINDOW_TABLE.pop(self.get_id())
 *         CGL_window_destroy(self.c_window)
 *         self.has_been_destroyed = True             # <<<<<<<<<<<<<<
 * 
 *     def get_id(self) -> int:
 */
  __pyx_v_self->has_been_destroyed = 1;

  /* "cgl_wrapper.pyx":1382
 *         return self.get_id()
 * 
 *     def destroy(self):             # <<<<<<<<<<<<<<
 *         if self.has_been_destroyed:
 *             return
 */

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_AddTraceback("cgl.window.destroy", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cgl_wrapper.pyx":1389
 *         self.has_been_destroyed = True
 * 
 *     def get_id(self) -> int:             # <<<<<<<<<<<<<<
 *         return CGL_utils_super_fast_hash(<void*>self.c_window, sizeof(CGL_window*))
 * 
 */

/* Python wrapper */
static PyObject *__pyx_pw_3cgl_6window_9get_id(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/
static PyObject *__pyx_pw_3cgl_6window_9get_id(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("get_id (wrapper)", 0);
  __pyx_r = __pyx_pf_3cgl_6window_8get_id(((struct __pyx_obj_3cgl_window *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_3cgl_6window_8get_id(struct __pyx_obj_3cgl_window *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("get_id", 0);

  /* "cgl_wrapper.pyx":1390
 * 
 *     def get_id(self) -> int:
 *         return CGL_utils_super_fast_hash(<void*>self.c_window, sizeof(CGL_window*))             # <<<<<<<<<<<<<<
 * 
 *     def poll_events(self):
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyInt_From_uint32_t(CGL_utils_super_fast_hash(((void *)__pyx_v_self->c_window), (sizeof(struct CGL_window *)))); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1390, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cgl_wrapper.pyx":1389
 *         self.has_been_destroyed = True
 * 
 *     def get_id(self) -> int:             # <<<<<<<<<<<<<<
 *         return CGL_utils_super_fast_hash(<void*>self.c_window, sizeof(CGL_window*))
 * 
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cgl.window.get_id", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cgl_wrapper.pyx":1392
 *         return CGL_utils_super_fast_hash(<void*>self.c_window, sizeof(CGL_window*))
 * 
 *     def poll_events(self):             # <<<<<<<<<<<<<<
 *         CGL_window_poll_events(self.c_window)
 * 
 */

/* Python wrapper */
static PyObject *__pyx_pw_3cgl_6window_11poll_events(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/
static PyObject *__pyx_pw_3cgl_6window_11poll_events(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("poll_events (wrapper)", 0);
  __pyx_r = __pyx_pf_3cgl_6window_10poll_events(((struct __pyx_obj_3cgl_window *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_3cgl_6window_10poll_events(struct __pyx_obj_3cgl_window *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("poll_events", 0);

  /* "cgl_wrapper.pyx":1393
 * 
 *     def poll_events(self):
 *         CGL_window_poll_events(self.c_window)             # <<<<<<<<<<<<<<
 * 
 *     def should_close(self) -> bool:
 */
  CGL_window_poll_events(__pyx_v_self->c_window);

  /* "cgl_wrapper.pyx":1392
 *         return CGL_utils_super_fast_hash(<void*>self.c_window, sizeof(CGL_window*))
 * 
 *     def poll_events(self):             # <<<<<<<<<<<<<<
 *         CGL_window_poll_events(self.c_window)
 * 
 */

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cgl_wrapper.pyx":1395
 *         CGL_window_poll_events(self.c_window)
 * 
 *     def should_close(self) -> bool:             # <<<<<<<<<<<<<<
 *         return CGL_window_should_close(self.c_window)
 * 
 */

/* Python wrapper */
static PyObject *__pyx_pw_3cgl_6window_13should_close(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/
static PyObject *__pyx_pw_3cgl_6window_13should_close(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("should_close (wrapper)", 0);
  __pyx_r = __pyx_pf_3cgl_6window_12should_close(((struct __pyx_obj_3cgl_window *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_3cgl_6window_12should_close(struct __pyx_obj_3cgl_window *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("should_close", 0);

  /* "cgl_wrapper.pyx":1396
 * 
 *     def should_close(self) -> bool:
 *         return CGL_window_should_close(self.c_window)             # <<<<<<<<<<<<<<
 * 
 *     def swap_buffers(self):
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyBool_FromLong(CGL_window_should_close(__pyx_v_self->c_window)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1396, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cgl_wrapper.pyx":1395
 *         CGL_window_poll_events(self.c_window)
 * 
 *     def should_close(self) -> bool:             # <<<<<<<<<<<<<<
 *         return CGL_window_should_close(self.c_window)
 * 
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cgl.window.should_close", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cgl_wrapper.pyx":1398
 *         return CGL_window_should_close(self.c_window)
 * 
 *     def swap_buffers(self):             # <<<<<<<<<<<<<<
 *         CGL_window_swap_buffers(self.c_window)
 * 
 */

/* Python wrapper */
static PyObject *__pyx_pw_3cgl_6window_15swap_buffers(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/
static PyObject *__pyx_pw_3cgl_6window_15swap_buffers(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("swap_buffers (wrapper)", 0);
  __pyx_r = __pyx_pf_3cgl_6window_14swap_buffers(((struct __pyx_obj_3cgl_window *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_3cgl_6window_14swap_buffers(struct __pyx_obj_3cgl_window *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("swap_buffers", 0);

  /* "cgl_wrapper.pyx":1399
 * 
 *     def swap_buffers(self):
 *         CGL_window_swap_buffers(self.c_window)             # <<<<<<<<<<<<<<
 * 
 *     def set_title(self, title: str):
 */
  CGL_window_swap_buffers(__pyx_v_self->c_window);

  /* "cgl_wrapper.pyx":1398
 *         return CGL_window_should_close(self.c_window)
 * 
 *     def swap_buffers(self):             # <<<<<<<<<<<<<<
 *         CGL_window_swap_buffers(self.c_window)
 * 
 */

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cgl_wrapper.pyx":1401
 *         CGL_window_swap_buffers(self.c_window)
 * 
 *     def set_title(self, title: str):             # <<<<<<<<<<<<<<
 *         CGL_window_set_title(self.c_window, title.encode('utf-8'))
 * 
 */

/* Python wrapper */
static PyObject *__pyx_pw_3cgl_6window_17set_title(PyObject *__pyx_v_self, PyObject *__pyx_v_title); /*proto*/
static PyObject *__pyx_pw_3cgl_6window_17set_title(PyObject *__pyx_v_self, PyObject *__pyx_v_title) {
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("set_title (wrapper)", 0);
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_title), (&PyString_Type), 1, "title", 1))) __PYX_ERR(0, 1401, __pyx_L1_error)
  __pyx_r = __pyx_pf_3cgl_6window_16set_title(((struct __pyx_obj_3cgl_window *)__pyx_v_self), ((PyObject*)__pyx_v_title));

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_3cgl_6window_16set_title(struct __pyx_obj_3cgl_window *__pyx_v_self, PyObject *__pyx_v_title) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  char const *__pyx_t_2;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("set_title", 0);

  /* "cgl_wrapper.pyx":1402
 * 
 *     def set_title(self, title: str):
 *         CGL_window_set_title(self.c_window, title.encode('utf-8'))             # <<<<<<<<<<<<<<
 * 
 *     def set_size(self, width: int, height: int):
 */
  __pyx_t_1 = __Pyx_CallUnboundCMethod1(&__pyx_umethod_PyString_Type_encode, __pyx_v_title, __pyx_kp_s_utf_8); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1402, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = __Pyx_PyObject_AsString(__pyx_t_1); if (unlikely((!__pyx_t_2) && PyErr_Occurred())) __PYX_ERR(0, 1402, __pyx_L1_error)
  CGL_window_set_title(__pyx_v_self->c_window, __pyx_t_2);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "cgl_wrapper.pyx":1401
 *         CGL_window_swap_buffers(self.c_window)
 * 
 *     def set_title(self, title: str):             # <<<<<<<<<<<<<<
 *         CGL_window_set_title(self.c_window, title.encode('utf-8'))
 * 
 */

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cgl.window.set_title", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cgl_wrapper.pyx":1404
 *         CGL_window_set_title(self.c_window, title.encode('utf-8'))
 * 
 *     def set_size(self, width: int, height: int):             # <<<<<<<<<<<<<<
 *         CGL_window_set_size(self.c_window, width, height)
 * 
 */

/* Python wrapper */
static PyObject *__pyx_pw_3cgl_6window_19set_size(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static PyObject *__pyx_pw_3cgl_6window_19set_size(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  PyObject *__pyx_v_width = 0;
  PyObject *__pyx_v_height = 0;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("set_size (wrapper)", 0);
  {
    static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_width,&__pyx_n_s_height,0};
    PyObject* values[2] = {0,0};
    if (unlikely(__pyx_kwds)) {
      Py_ssize_t kw_args;
      const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
      switch (pos_args) {
        case  2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
        CYTHON_FALLTHROUGH;
        case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      kw_args = PyDict_Size(__pyx_kwds);
      switch (pos_args) {
        case  0:
        if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_width)) != 0)) kw_args--;
        else goto __pyx_L5_argtuple_error;
        CYTHON_FALLTHROUGH;
        case  1:
        if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_height)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("set_size", 1, 2, 2, 1); __PYX_ERR(0, 1404, __pyx_L3_error)
        }
      }
      if (unlikely(kw_args > 0)) {
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "set_size") < 0)) __PYX_ERR(0, 1404, __pyx_L3_error)
      }
    } else if (PyTuple_GET_SIZE(__pyx_args) != 2) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
      values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
    }
    __pyx_v_width = values[0];
    __pyx_v_height = values[1];
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("set_size", 1, 2, 2, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 1404, __pyx_L3_error)
  __pyx_L3_error:;
  __Pyx_AddTraceback("cgl.window.set_size", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_3cgl_6window_18set_size(((struct __pyx_obj_3cgl_window *)__pyx_v_self), __pyx_v_width, __pyx_v_height);

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_3cgl_6window_18set_size(struct __pyx_obj_3cgl_window *__pyx_v_self, PyObject *__pyx_v_width, PyObject *__pyx_v_height) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  CGL_int __pyx_t_1;
  CGL_int __pyx_t_2;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("set_size", 0);

  /* "cgl_wrapper.pyx":1405
 * 
 *     def set_size(self, width: int, height: int):
 *         CGL_window_set_size(self.c_window, width, height)             # <<<<<<<<<<<<<<
 * 
 *     def set_position(self, x: int, y: int):
 */
  __pyx_t_1 = __Pyx_PyInt_As_CGL_int(__pyx_v_width); if (unlikely((__pyx_t_1 == ((CGL_int)-1)) && PyErr_Occurred())) __PYX_ERR(0, 1405, __pyx_L1_error)
  __pyx_t_2 = __Pyx_PyInt_As_CGL_int(__pyx_v_height); if (unlikely((__pyx_t_2 == ((CGL_int)-1)) && PyErr_Occurred())) __PYX_ERR(0, 1405, __pyx_L1_error)
  CGL_window_set_size(__pyx_v_self->c_window, __pyx_t_1, __pyx_t_2);

  /* "cgl_wrapper.pyx":1404
 *         CGL_window_set_title(self.c_window, title.encode('utf-8'))
 * 
 *     def set_size(self, width: int, height: int):             # <<<<<<<<<<<<<<
 *         CGL_window_set_size(self.c_window, width, height)
 * 
 */

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_AddTraceback("cgl.window.set_size", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cgl_wrapper.pyx":1407
 *         CGL_window_set_size(self.c_window, width, height)
 * 
 *     def set_position(self, x: int, y: int):             # <<<<<<<<<<<<<<
 *         CGL_window_set_position(self.c_window, x, y)
 * 
 */

/* Python wrapper */
static PyObject *__pyx_pw_3cgl_6window_21set_position(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static PyObject *__pyx_pw_3cgl_6window_21set_position(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  PyObject *__pyx_v_x = 0;
  PyObject *__pyx_v_y = 0;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("set_position (wrapper)", 0);
  {
    static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_x,&__pyx_n_s_y,0};
    PyObject* values[2] = {0,0};
    if (unlikely(__pyx_kwds)) {
      Py_ssize_t kw_args;
      const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
      switch (pos_args) {
        case  2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
        CYTHON_FALLTHROUGH;
        case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      kw_args = PyDict_Size(__pyx_kwds);
      switch (pos_args) {
        case  0:
        if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_x)) != 0)) kw_args--;
        else goto __pyx_L5_argtuple_error;
        CYTHON_FALLTHROUGH;
        case  1:
        if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_y)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("set_position", 1, 2, 2, 1); __PYX_ERR(0, 1407, __pyx_L3_error)
        }
      }
      if (unlikely(kw_args > 0)) {
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "set_position") < 0)) __PYX_ERR(0, 1407, __pyx_L3_error)
      }
    } else if (PyTuple_GET_SIZE(__pyx_args) != 2) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
      values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
    }
    __pyx_v_x = values[0];
    __pyx_v_y = values[1];
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("set_position", 1, 2, 2, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 1407, __pyx_L3_error)
  __pyx_L3_error:;
  __Pyx_AddTraceback("cgl.window.set_position", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_3cgl_6window_20set_position(((struct __pyx_obj_3cgl_window *)__pyx_v_self), __pyx_v_x, __pyx_v_y);

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_3cgl_6window_20set_position(struct __pyx_obj_3cgl_window *__pyx_v_self, PyObject *__pyx_v_x, PyObject *__pyx_v_y) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  CGL_int __pyx_t_1;
  CGL_int __pyx_t_2;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("set_position", 0);

  /* "cgl_wrapper.pyx":1408
 * 
 *     def set_position(self, x: int, y: int):
 *         CGL_window_set_position(self.c_window, x, y)             # <<<<<<<<<<<<<<
 * 
 *     def set_hidden(self, hidden: bool):
 */
  __pyx_t_1 = __Pyx_PyInt_As_CGL_int(__pyx_v_x); if (unlikely((__pyx_t_1 == ((CGL_int)-1)) && PyErr_Occurred())) __PYX_ERR(0, 1408, __pyx_L1_error)
  __pyx_t_2 = __Pyx_PyInt_As_CGL_int(__pyx_v_y); if (unlikely((__pyx_t_2 == ((CGL_int)-1)) && PyErr_Occurred())) __PYX_ERR(0, 1408, __pyx_L1_error)
  CGL_window_set_position(__pyx_v_self->c_window, __pyx_t_1, __pyx_t_2);

  /* "cgl_wrapper.pyx":1407
 *         CGL_window_set_size(self.c_window, width, height)
 * 
 *     def set_position(self, x: int, y: int):             # <<<<<<<<<<<<<<
 *         CGL_window_set_position(self.c_window, x, y)
 * 
 */

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_AddTraceback("cgl.window.set_position", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cgl_wrapper.pyx":1410
 *         CGL_window_set_position(self.c_window, x, y)
 * 
 *     def set_hidden(self, hidden: bool):             # <<<<<<<<<<<<<<
 *         CGL_window_set_hidden(self.c_window, hidden)
 * 
 */

/* Python wrapper */
static PyObject *__pyx_pw_3cgl_6window_23set_hidden(PyObject *__pyx_v_self, PyObject *__pyx_arg_hidden); /*proto*/
static PyObject *__pyx_pw_3cgl_6window_23set_hidden(PyObject *__pyx_v_self, PyObject *__pyx_arg_hidden) {
  bool __pyx_v_hidden;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("set_hidden (wrapper)", 0);
  assert(__pyx_arg_hidden); {
    __pyx_v_hidden = __Pyx_PyObject_IsTrue(__pyx_arg_hidden); if (unlikely((__pyx_v_hidden == ((bool)-1)) && PyErr_Occurred())) __PYX_ERR(0, 1410, __pyx_L3_error)
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  __Pyx_AddTraceback("cgl.window.set_hidden", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_3cgl_6window_22set_hidden(((struct __pyx_obj_3cgl_window *)__pyx_v_self), ((bool)__pyx_v_hidden));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_3cgl_6window_22set_hidden(struct __pyx_obj_3cgl_window *__pyx_v_self, bool __pyx_v_hidden) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("set_hidden", 0);

  /* "cgl_wrapper.pyx":1411
 * 
 *     def set_hidden(self, hidden: bool):
 *         CGL_window_set_hidden(self.c_window, hidden)             # <<<<<<<<<<<<<<
 * 
 *     def set_user_data(self, data: object):
 */
  CGL_window_set_hidden(__pyx_v_self->c_window, __pyx_v_hidden);

  /* "cgl_wrapper.pyx":1410
 *         CGL_window_set_position(self.c_window, x, y)
 * 
 *     def set_hidden(self, hidden: bool):             # <<<<<<<<<<<<<<
 *         CGL_window_set_hidden(self.c_window, hidden)
 * 
 */

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cgl_wrapper.pyx":1413
 *         CGL_window_set_hidden(self.c_window, hidden)
 * 
 *     def set_user_data(self, data: object):             # <<<<<<<<<<<<<<
 *         CGL_window_set_user_data(self.c_window, <void*>data)
 * 
 */

/* Python wrapper */
static PyObject *__pyx_pw_3cgl_6window_25set_user_data(PyObject *__pyx_v_self, PyObject *__pyx_v_data); /*proto*/
static PyObject *__pyx_pw_3cgl_6window_25set_user_data(PyObject *__pyx_v_self, PyObject *__pyx_v_data) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("set_user_data (wrapper)", 0);
  __pyx_r = __pyx_pf_3cgl_6window_24set_user_data(((struct __pyx_obj_3cgl_window *)__pyx_v_self), ((PyObject *)__pyx_v_data));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_3cgl_6window_24set_user_data(struct __pyx_obj_3cgl_window *__pyx_v_self, PyObject *__pyx_v_data) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("set_user_data", 0);

  /* "cgl_wrapper.pyx":1414
 * 
 *     def set_user_data(self, data: object):
 *         CGL_window_set_user_data(self.c_window, <void*>data)             # <<<<<<<<<<<<<<
 * 
 *     def get_user_data(self) -> object:
 */
  CGL_window_set_user_data(__pyx_v_self->c_window, ((void *)__pyx_v_data));

  /* "cgl_wrapper.pyx":1413
 *         CGL_window_set_hidden(self.c_window, hidden)
 * 
 *     def set_user_data(self, data: object):             # <<<<<<<<<<<<<<
 *         CGL_window_set_user_data(self.c_window, <void*>data)
 * 
 */

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cgl_wrapper.pyx":1416
 *         CGL_window_set_user_data(self.c_window, <void*>data)
 * 
 *     def get_user_data(self) -> object:             # <<<<<<<<<<<<<<
 *         return <object>CGL_window_get_user_data(self.c_window)
 * 
 */

/* Python wrapper */
static PyObject *__pyx_pw_3cgl_6window_27get_user_data(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/
static PyObject *__pyx_pw_3cgl_6window_27get_user_data(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("get_user_data (wrapper)", 0);
  __pyx_r = __pyx_pf_3cgl_6window_26get_user_data(((struct __pyx_obj_3cgl_window *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_3cgl_6window_26get_user_data(struct __pyx_obj_3cgl_window *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  void *__pyx_t_1;
  __Pyx_RefNannySetupContext("get_user_data", 0);

  /* "cgl_wrapper.pyx":1417
 * 
 *     def get_user_data(self) -> object:
 *         return <object>CGL_window_get_user_data(self.c_window)             # <<<<<<<<<<<<<<
 * 
 *     def get_size(self) -> tuple:
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = CGL_window_get_user_data(__pyx_v_self->c_window);
  __Pyx_INCREF(((PyObject *)__pyx_t_1));
  __pyx_r = ((PyObject *)__pyx_t_1);
  goto __pyx_L0;

  /* "cgl_wrapper.pyx":1416
 *         CGL_window_set_user_data(self.c_window, <void*>data)
 * 
 *     def get_user_data(self) -> object:             # <<<<<<<<<<<<<<
 *         return <object>CGL_window_get_user_data(self.c_window)
 * 
 */

  /* function exit code */
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cgl_wrapper.pyx":1419
 *         return <object>CGL_window_get_user_data(self.c_window)
 * 
 *     def get_size(self) -> tuple:             # <<<<<<<<<<<<<<
 *         cdef int width, height
 *         CGL_window_get_size(self.c_window, &width, &height)
 */

/* Python wrapper */
static PyObject *__pyx_pw_3cgl_6window_29get_size(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/
static PyObject *__pyx_pw_3cgl_6window_29get_size(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("get_size (wrapper)", 0);
  __pyx_r = __pyx_pf_3cgl_6window_28get_size(((struct __pyx_obj_3cgl_window *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_3cgl_6window_28get_size(struct __pyx_obj_3cgl_window *__pyx_v_self) {
  int __pyx_v_width;
  int __pyx_v_height;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("get_size", 0);

  /* "cgl_wrapper.pyx":1421
 *     def get_size(self) -> tuple:
 *         cdef int width, height
 *         CGL_window_get_size(self.c_window, &width, &height)             # <<<<<<<<<<<<<<
 *         return (width, height)
 * 
 */
  CGL_window_get_size(__pyx_v_self->c_window, (&__pyx_v_width), (&__pyx_v_height));

  /* "cgl_wrapper.pyx":1422
 *         cdef int width, height
 *         CGL_window_get_size(self.c_window, &width, &height)
 *         return (width, height)             # <<<<<<<<<<<<<<
 * 
 *     def set_close_callback(self, callback: Callable):
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyInt_From_int(__pyx_v_width); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1422, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = __Pyx_PyInt_From_int(__pyx_v_height); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1422, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = PyTuple_New(2); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1422, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_GIVEREF(__pyx_t_1);
  PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_1);
  __Pyx_GIVEREF(__pyx_t_2);
  PyTuple_SET_ITEM(__pyx_t_3, 1, __pyx_t_2);
  __pyx_t_1 = 0;
  __pyx_t_2 = 0;
  __pyx_r = ((PyObject*)__pyx_t_3);
  __pyx_t_3 = 0;
  goto __pyx_L0;

  /* "cgl_wrapper.pyx":1419
 *         return <object>CGL_window_get_user_data(self.c_window)
 * 
 *     def get_size(self) -> tuple:             # <<<<<<<<<<<<<<
 *         cdef int width, height
 *         CGL_window_get_size(self.c_window, &width, &height)
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_AddTraceback("cgl.window.get_size", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cgl_wrapper.pyx":1424
 *         return (width, height)
 * 
 *     def set_close_callback(self, callback: Callable):             # <<<<<<<<<<<<<<
 *         self.close_callback = callback
 *         CGL_window_set_close_callback(self.c_window, __pass_through_window_close_callback)
 */

/* Python wrapper */
static PyObject *__pyx_pw_3cgl_6window_31set_close_callback(PyObject *__pyx_v_self, PyObject *__pyx_v_callback); /*proto*/
static PyObject *__pyx_pw_3cgl_6window_31set_close_callback(PyObject *__pyx_v_self, PyObject *__pyx_v_callback) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("set_close_callback (wrapper)", 0);
  __pyx_r = __pyx_pf_3cgl_6window_30set_close_callback(((struct __pyx_obj_3cgl_window *)__pyx_v_self), ((PyObject *)__pyx_v_callback));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_3cgl_6window_30set_close_callback(struct __pyx_obj_3cgl_window *__pyx_v_self, PyObject *__pyx_v_callback) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("set_close_callback", 0);

  /* "cgl_wrapper.pyx":1425
 * 
 *     def set_close_callback(self, callback: Callable):
 *         self.close_callback = callback             # <<<<<<<<<<<<<<
 *         CGL_window_set_close_callback(self.c_window, __pass_through_window_close_callback)
 * 
 */
  __Pyx_INCREF(__pyx_v_callback);
  __Pyx_GIVEREF(__pyx_v_callback);
  __Pyx_GOTREF(__pyx_v_self->close_callback);
  __Pyx_DECREF(__pyx_v_self->close_callback);
  __pyx_v_self->close_callback = __pyx_v_callback;

  /* "cgl_wrapper.pyx":1426
 *     def set_close_callback(self, callback: Callable):
 *         self.close_callback = callback
 *         CGL_window_set_close_callback(self.c_window, __pass_through_window_close_callback)             # <<<<<<<<<<<<<<
 * 
 *     def set_key_callback(self, callback: Callable):
 */
  CGL_window_set_close_callback(__pyx_v_self->c_window, __pyx_f_3cgl___pass_through_window_close_callback);

  /* "cgl_wrapper.pyx":1424
 *         return (width, height)
 * 
 *     def set_close_callback(self, callback: Callable):             # <<<<<<<<<<<<<<
 *         self.close_callback = callback
 *         CGL_window_set_close_callback(self.c_window, __pass_through_window_close_callback)
 */

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cgl_wrapper.pyx":1428
 *         CGL_window_set_close_callback(self.c_window, __pass_through_window_close_callback)
 * 
 *     def set_key_callback(self, callback: Callable):             # <<<<<<<<<<<<<<
 *         self.key_callback = callback
 *         CGL_window_set_key_callback(self.c_window, __pass_through_window_key_callback)
 */

/* Python wrapper */
static PyObject *__pyx_pw_3cgl_6window_33set_key_callback(PyObject *__pyx_v_self, PyObject *__pyx_v_callback); /*proto*/
static PyObject *__pyx_pw_3cgl_6window_33set_key_callback(PyObject *__pyx_v_self, PyObject *__pyx_v_callback) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("set_key_callback (wrapper)", 0);
  __pyx_r = __pyx_pf_3cgl_6window_32set_key_callback(((struct __pyx_obj_3cgl_window *)__pyx_v_self), ((PyObject *)__pyx_v_callback));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_3cgl_6window_32set_key_callback(struct __pyx_obj_3cgl_window *__pyx_v_self, PyObject *__pyx_v_callback) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("set_key_callback", 0);

  /* "cgl_wrapper.pyx":1429
 * 
 *     def set_key_callback(self, callback: Callable):
 *         self.key_callback = callback             # <<<<<<<<<<<<<<
 *         CGL_window_set_key_callback(self.c_window, __pass_through_window_key_callback)
 * 
 */
  __Pyx_INCREF(__pyx_v_callback);
  __Pyx_GIVEREF(__pyx_v_callback);
  __Pyx_GOTREF(__pyx_v_self->key_callback);
  __Pyx_DECREF(__pyx_v_self->key_callback);
  __pyx_v_self->key_callback = __pyx_v_callback;

  /* "cgl_wrapper.pyx":1430
 *     def set_key_callback(self, callback: Callable):
 *         self.key_callback = callback
 *         CGL_window_set_key_callback(self.c_window, __pass_through_window_key_callback)             # <<<<<<<<<<<<<<
 * 
 *     def set_mouse_button_callback(self, callback: Callable):
 */
  CGL_window_set_key_callback(__pyx_v_self->c_window, __pyx_f_3cgl___pass_through_window_key_callback);

  /* "cgl_wrapper.pyx":1428
 *         CGL_window_set_close_callback(self.c_window, __pass_through_window_close_callback)
 * 
 *     def set_key_callback(self, callback: Callable):             # <<<<<<<<<<<<<<
 *         self.key_callback = callback
 *         CGL_window_set_key_callback(self.c_window, __pass_through_window_key_callback)
 */

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cgl_wrapper.pyx":1432
 *         CGL_window_set_key_callback(self.c_window, __pass_through_window_key_callback)
 * 
 *     def set_mouse_button_callback(self, callback: Callable):             # <<<<<<<<<<<<<<
 *         self.mouse_button_callback = callback
 *         CGL_window_set_mouse_button_callback(self.c_window, __pass_through_window_mouse_button_callback)
 */

/* Python wrapper */
static PyObject *__pyx_pw_3cgl_6window_35set_mouse_button_callback(PyObject *__pyx_v_self, PyObject *__pyx_v_callback); /*proto*/
static PyObject *__pyx_pw_3cgl_6window_35set_mouse_button_callback(PyObject *__pyx_v_self, PyObject *__pyx_v_callback) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("set_mouse_button_callback (wrapper)", 0);
  __pyx_r = __pyx_pf_3cgl_6window_34set_mouse_button_callback(((struct __pyx_obj_3cgl_window *)__pyx_v_self), ((PyObject *)__pyx_v_callback));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_3cgl_6window_34set_mouse_button_callback(struct __pyx_obj_3cgl_window *__pyx_v_self, PyObject *__pyx_v_callback) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("set_mouse_button_callback", 0);

  /* "cgl_wrapper.pyx":1433
 * 
 *     def set_mouse_button_callback(self, callback: Callable):
 *         self.mouse_button_callback = callback             # <<<<<<<<<<<<<<
 *         CGL_window_set_mouse_button_callback(self.c_window, __pass_through_window_mouse_button_callback)
 * 
 */
  __Pyx_INCREF(__pyx_v_callback);
  __Pyx_GIVEREF(__pyx_v_callback);
  __Pyx_GOTREF(__pyx_v_self->mouse_button_callback);
  __Pyx_DECREF(__pyx_v_self->mouse_button_callback);
  __pyx_v_self->mouse_button_callback = __pyx_v_callback;

  /* "cgl_wrapper.pyx":1434
 *     def set_mouse_button_callback(self, callback: Callable):
 *         self.mouse_button_callback = callback
 *         CGL_window_set_mouse_button_callback(self.c_window, __pass_through_window_mouse_button_callback)             # <<<<<<<<<<<<<<
 * 
 *     def set_mouse_position_callback(self, callback: Callable):
 */
  CGL_window_set_mouse_button_callback(__pyx_v_self->c_window, __pyx_f_3cgl___pass_through_window_mouse_button_callback);

  /* "cgl_wrapper.pyx":1432
 *         CGL_window_set_key_callback(self.c_window, __pass_through_window_key_callback)
 * 
 *     def set_mouse_button_callback(self, callback: Callable):             # <<<<<<<<<<<<<<
 *         self.mouse_button_callback = callback
 *         CGL_window_set_mouse_button_callback(self.c_window, __pass_through_window_mouse_button_callback)
 */

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cgl_wrapper.pyx":1436
 *         CGL_window_set_mouse_button_callback(self.c_window, __pass_through_window_mouse_button_callback)
 * 
 *     def set_mouse_position_callback(self, callback: Callable):             # <<<<<<<<<<<<<<
 *         self.mouse_position_callback = callback
 *         CGL_window_set_mouse_position_callback(self.c_window, __pass_through_window_mouse_position_callback)
 */

/* Python wrapper */
static PyObject *__pyx_pw_3cgl_6window_37set_mouse_position_callback(PyObject *__pyx_v_self, PyObject *__pyx_v_callback); /*proto*/
static PyObject *__pyx_pw_3cgl_6window_37set_mouse_position_callback(PyObject *__pyx_v_self, PyObject *__pyx_v_callback) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("set_mouse_position_callback (wrapper)", 0);
  __pyx_r = __pyx_pf_3cgl_6window_36set_mouse_position_callback(((struct __pyx_obj_3cgl_window *)__pyx_v_self), ((PyObject *)__pyx_v_callback));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_3cgl_6window_36set_mouse_position_callback(struct __pyx_obj_3cgl_window *__pyx_v_self, PyObject *__pyx_v_callback) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("set_mouse_position_callback", 0);

  /* "cgl_wrapper.pyx":1437
 * 
 *     def set_mouse_position_callback(self, callback: Callable):
 *         self.mouse_position_callback = callback             # <<<<<<<<<<<<<<
 *         CGL_window_set_mouse_position_callback(self.c_window, __pass_through_window_mouse_position_callback)
 * 
 */
  __Pyx_INCREF(__pyx_v_callback);
  __Pyx_GIVEREF(__pyx_v_callback);
  __Pyx_GOTREF(__pyx_v_self->mouse_position_callback);
  __Pyx_DECREF(__pyx_v_self->mouse_position_callback);
  __pyx_v_self->mouse_position_callback = __pyx_v_callback;

  /* "cgl_wrapper.pyx":1438
 *     def set_mouse_position_callback(self, callback: Callable):
 *         self.mouse_position_callback = callback
 *         CGL_window_set_mouse_position_callback(self.c_window, __pass_through_window_mouse_position_callback)             # <<<<<<<<<<<<<<
 * 
 *     def set_mouse_scroll_callback(self, callback: Callable):
 */
  CGL_window_set_mouse_position_callback(__pyx_v_self->c_window, __pyx_f_3cgl___pass_through_window_mouse_position_callback);

  /* "cgl_wrapper.pyx":1436
 *         CGL_window_set_mouse_button_callback(self.c_window, __pass_through_window_mouse_button_callback)
 * 
 *     def set_mouse_position_callback(self, callback: Callable):             # <<<<<<<<<<<<<<
 *         self.mouse_position_callback = callback
 *         CGL_window_set_mouse_position_callback(self.c_window, __pass_through_window_mouse_position_callback)
 */

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cgl_wrapper.pyx":1440
 *         CGL_window_set_mouse_position_callback(self.c_window, __pass_through_window_mouse_position_callback)
 * 
 *     def set_mouse_scroll_callback(self, callback: Callable):             # <<<<<<<<<<<<<<
 *         self.mouse_scroll_callback = callback
 *         CGL_window_set_mouse_scroll_callback(self.c_window, __pass_through_window_mouse_scroll_callback)
 */

/* Python wrapper */
static PyObject *__pyx_pw_3cgl_6window_39set_mouse_scroll_callback(PyObject *__pyx_v_self, PyObject *__pyx_v_callback); /*proto*/
static PyObject *__pyx_pw_3cgl_6window_39set_mouse_scroll_callback(PyObject *__pyx_v_self, PyObject *__pyx_v_callback) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("set_mouse_scroll_callback (wrapper)", 0);
  __pyx_r = __pyx_pf_3cgl_6window_38set_mouse_scroll_callback(((struct __pyx_obj_3cgl_window *)__pyx_v_self), ((PyObject *)__pyx_v_callback));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_3cgl_6window_38set_mouse_scroll_callback(struct __pyx_obj_3cgl_window *__pyx_v_self, PyObject *__pyx_v_callback) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("set_mouse_scroll_callback", 0);

  /* "cgl_wrapper.pyx":1441
 * 
 *     def set_mouse_scroll_callback(self, callback: Callable):
 *         self.mouse_scroll_callback = callback             # <<<<<<<<<<<<<<
 *         CGL_window_set_mouse_scroll_callback(self.c_window, __pass_through_window_mouse_scroll_callback)
 * 
 */
  __Pyx_INCREF(__pyx_v_callback);
  __Pyx_GIVEREF(__pyx_v_callback);
  __Pyx_GOTREF(__pyx_v_self->mouse_scroll_callback);
  __Pyx_DECREF(__pyx_v_self->mouse_scroll_callback);
  __pyx_v_self->mouse_scroll_callback = __pyx_v_callback;

  /* "cgl_wrapper.pyx":1442
 *     def set_mouse_scroll_callback(self, callback: Callable):
 *         self.mouse_scroll_callback = callback
 *         CGL_window_set_mouse_scroll_callback(self.c_window, __pass_through_window_mouse_scroll_callback)             # <<<<<<<<<<<<<<
 * 
 *     def set_framebuffer_size_callback(self, callback: Callable):
 */
  CGL_window_set_mouse_scroll_callback(__pyx_v_self->c_window, __pyx_f_3cgl___pass_through_window_mouse_scroll_callback);

  /* "cgl_wrapper.pyx":1440
 *         CGL_window_set_mouse_position_callback(self.c_window, __pass_through_window_mouse_position_callback)
 * 
 *     def set_mouse_scroll_callback(self, callback: Callable):             # <<<<<<<<<<<<<<
 *         self.mouse_scroll_callback = callback
 *         CGL_window_set_mouse_scroll_callback(self.c_window, __pass_through_window_mouse_scroll_callback)
 */

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cgl_wrapper.pyx":1444
 *         CGL_window_set_mouse_scroll_callback(self.c_window, __pass_through_window_mouse_scroll_callback)
 * 
 *     def set_framebuffer_size_callback(self, callback: Callable):             # <<<<<<<<<<<<<<
 *         self.framebuffer_size_callback = callback
 *         CGL_window_set_framebuffer_size_callback(self.c_window, __pass_through_window_framebuffer_size_callback)
 */

/* Python wrapper */
static PyObject *__pyx_pw_3cgl_6window_41set_framebuffer_size_callback(PyObject *__pyx_v_self, PyObject *__pyx_v_callback); /*proto*/
static PyObject *__pyx_pw_3cgl_6window_41set_framebuffer_size_callback(PyObject *__pyx_v_self, PyObject *__pyx_v_callback) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("set_framebuffer_size_callback (wrapper)", 0);
  __pyx_r = __pyx_pf_3cgl_6window_40set_framebuffer_size_callback(((struct __pyx_obj_3cgl_window *)__pyx_v_self), ((PyObject *)__pyx_v_callback));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_3cgl_6window_40set_framebuffer_size_callback(struct __pyx_obj_3cgl_window *__pyx_v_self, PyObject *__pyx_v_callback) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("set_framebuffer_size_callback", 0);

  /* "cgl_wrapper.pyx":1445
 * 
 *     def set_framebuffer_size_callback(self, callback: Callable):
 *         self.framebuffer_size_callback = callback             # <<<<<<<<<<<<<<
 *         CGL_window_set_framebuffer_size_callback(self.c_window, __pass_through_window_framebuffer_size_callback)
 * 
 */
  __Pyx_INCREF(__pyx_v_callback);
  __Pyx_GIVEREF(__pyx_v_callback);
  __Pyx_GOTREF(__pyx_v_self->framebuffer_size_callback);
  __Pyx_DECREF(__pyx_v_self->framebuffer_size_callback);
  __pyx_v_self->framebuffer_size_callback = __pyx_v_callback;

  /* "cgl_wrapper.pyx":1446
 *     def set_framebuffer_size_callback(self, callback: Callable):
 *         self.framebuffer_size_callback = callback
 *         CGL_window_set_framebuffer_size_callback(self.c_window, __pass_through_window_framebuffer_size_callback)             # <<<<<<<<<<<<<<
 * 
 *     def set_drag_n_drop_callback(self, callback: Callable):
 */
  CGL_window_set_framebuffer_size_callback(__pyx_v_self->c_window, __pyx_f_3cgl___pass_through_window_framebuffer_size_callback);

  /* "cgl_wrapper.pyx":1444
 *         CGL_window_set_mouse_scroll_callback(self.c_window, __pass_through_window_mouse_scroll_callback)
 * 
 *     def set_framebuffer_size_callback(self, callback: Callable):             # <<<<<<<<<<<<<<
 *         self.framebuffer_size_callback = callback
 *         CGL_window_set_framebuffer_size_callback(self.c_window, __pass_through_window_framebuffer_size_callback)
 */

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cgl_wrapper.pyx":1448
 *         CGL_window_set_framebuffer_size_callback(self.c_window, __pass_through_window_framebuffer_size_callback)
 * 
 *     def set_drag_n_drop_callback(self, callback: Callable):             # <<<<<<<<<<<<<<
 *         self.drag_n_drop_callback = callback
 *         CGL_window_set_drag_n_drop_callback(self.c_window, __pass_through_window_drag_n_drop_callback)
 */

/* Python wrapper */
static PyObject *__pyx_pw_3cgl_6window_43set_drag_n_drop_callback(PyObject *__pyx_v_self, PyObject *__pyx_v_callback); /*proto*/
static PyObject *__pyx_pw_3cgl_6window_43set_drag_n_drop_callback(PyObject *__pyx_v_self, PyObject *__pyx_v_callback) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("set_drag_n_drop_callback (wrapper)", 0);
  __pyx_r = __pyx_pf_3cgl_6window_42set_drag_n_drop_callback(((struct __pyx_obj_3cgl_window *)__pyx_v_self), ((PyObject *)__pyx_v_callback));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_3cgl_6window_42set_drag_n_drop_callback(struct __pyx_obj_3cgl_window *__pyx_v_self, PyObject *__pyx_v_callback) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("set_drag_n_drop_callback", 0);

  /* "cgl_wrapper.pyx":1449
 * 
 *     def set_drag_n_drop_callback(self, callback: Callable):
 *         self.drag_n_drop_callback = callback             # <<<<<<<<<<<<<<
 *         CGL_window_set_drag_n_drop_callback(self.c_window, __pass_through_window_drag_n_drop_callback)
 * 
 */
  __Pyx_INCREF(__pyx_v_callback);
  __Pyx_GIVEREF(__pyx_v_callback);
  __Pyx_GOTREF(__pyx_v_self->drag_n_drop_callback);
  __Pyx_DECREF(__pyx_v_self->drag_n_drop_callback);
  __pyx_v_self->drag_n_drop_callback = __pyx_v_callback;

  /* "cgl_wrapper.pyx":1450
 *     def set_drag_n_drop_callback(self, callback: Callable):
 *         self.drag_n_drop_callback = callback
 *         CGL_window_set_drag_n_drop_callback(self.c_window, __pass_through_window_drag_n_drop_callback)             # <<<<<<<<<<<<<<
 * 
 *     def get_position(self) -> tuple:
 */
  CGL_window_set_drag_n_drop_callback(__pyx_v_self->c_window, __pyx_f_3cgl___pass_through_window_drag_n_drop_callback);

  /* "cgl_wrapper.pyx":1448
 *         CGL_window_set_framebuffer_size_callback(self.c_window, __pass_through_window_framebuffer_size_callback)
 * 
 *     def set_drag_n_drop_callback(self, callback: Callable):             # <<<<<<<<<<<<<<
 *         self.drag_n_drop_callback = callback
 *         CGL_window_set_drag_n_drop_callback(self.c_window, __pass_through_window_drag_n_drop_callback)
 */

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cgl_wrapper.pyx":1452
 *         CGL_window_set_drag_n_drop_callback(self.c_window, __pass_through_window_drag_n_drop_callback)
 * 
 *     def get_position(self) -> tuple:             # <<<<<<<<<<<<<<
 *         cdef int x, y
 *         CGL_window_get_position(self.c_window, &x, &y)
 */

/* Python wrapper */
static PyObject *__pyx_pw_3cgl_6window_45get_position(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/
static PyObject *__pyx_pw_3cgl_6window_45get_position(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("get_position (wrapper)", 0);
  __pyx_r = __pyx_pf_3cgl_6window_44get_position(((struct __pyx_obj_3cgl_window *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_3cgl_6window_44get_position(struct __pyx_obj_3cgl_window *__pyx_v_self) {
  int __pyx_v_x;
  int __pyx_v_y;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("get_position", 0);

  /* "cgl_wrapper.pyx":1454
 *     def get_position(self) -> tuple:
 *         cdef int x, y
 *         CGL_window_get_position(self.c_window, &x, &y)             # <<<<<<<<<<<<<<
 *         return (x, y)
 * 
 */
  CGL_window_get_position(__pyx_v_self->c_window, (&__pyx_v_x), (&__pyx_v_y));

  /* "cgl_wrapper.pyx":1455
 *         cdef int x, y
 *         CGL_window_get_position(self.c_window, &x, &y)
 *         return (x, y)             # <<<<<<<<<<<<<<
 * 
 *     def get_framebuffer_size(self) -> tuple:
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyInt_From_int(__pyx_v_x); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1455, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = __Pyx_PyInt_From_int(__pyx_v_y); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1455, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = PyTuple_New(2); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1455, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_GIVEREF(__pyx_t_1);
  PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_1);
  __Pyx_GIVEREF(__pyx_t_2);
  PyTuple_SET_ITEM(__pyx_t_3, 1, __pyx_t_2);
  __pyx_t_1 = 0;
  __pyx_t_2 = 0;
  __pyx_r = ((PyObject*)__pyx_t_3);
  __pyx_t_3 = 0;
  goto __pyx_L0;

  /* "cgl_wrapper.pyx":1452
 *         CGL_window_set_drag_n_drop_callback(self.c_window, __pass_through_window_drag_n_drop_callback)
 * 
 *     def get_position(self) -> tuple:             # <<<<<<<<<<<<<<
 *         cdef int x, y
 *         CGL_window_get_position(self.c_window, &x, &y)
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_AddTraceback("cgl.window.get_position", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cgl_wrapper.pyx":1457
 *         return (x, y)
 * 
 *     def get_framebuffer_size(self) -> tuple:             # <<<<<<<<<<<<<<
 *         cdef int width, height
 *         CGL_window_get_framebuffer_size(self.c_window, &width, &height)
 */

/* Python wrapper */
static PyObject *__pyx_pw_3cgl_6window_47get_framebuffer_size(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/
static PyObject *__pyx_pw_3cgl_6window_47get_framebuffer_size(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("get_framebuffer_size (wrapper)", 0);
  __pyx_r = __pyx_pf_3cgl_6window_46get_framebuffer_size(((struct __pyx_obj_3cgl_window *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_3cgl_6window_46get_framebuffer_size(struct __pyx_obj_3cgl_window *__pyx_v_self) {
  int __pyx_v_width;
  int __pyx_v_height;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("get_framebuffer_size", 0);

  /* "cgl_wrapper.pyx":1459
 *     def get_framebuffer_size(self) -> tuple:
 *         cdef int width, height
 *         CGL_window_get_framebuffer_size(self.c_window, &width, &height)             # <<<<<<<<<<<<<<
 *         return (width, height)
 * 
 */
  CGL_window_get_framebuffer_size(__pyx_v_self->c_window, (&__pyx_v_width), (&__pyx_v_height));

  /* "cgl_wrapper.pyx":1460
 *         cdef int width, height
 *         CGL_window_get_framebuffer_size(self.c_window, &width, &height)
 *         return (width, height)             # <<<<<<<<<<<<<<
 * 
 *     def resecure_callbaks(self):
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyInt_From_int(__pyx_v_width); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1460, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = __Pyx_PyInt_From_int(__pyx_v_height); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1460, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = PyTuple_New(2); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1460, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_GIVEREF(__pyx_t_1);
  PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_1);
  __Pyx_GIVEREF(__pyx_t_2);
  PyTuple_SET_ITEM(__pyx_t_3, 1, __pyx_t_2);
  __pyx_t_1 = 0;
  __pyx_t_2 = 0;
  __pyx_r = ((PyObject*)__pyx_t_3);
  __pyx_t_3 = 0;
  goto __pyx_L0;

  /* "cgl_wrapper.pyx":1457
 *         return (x, y)
 * 
 *     def get_framebuffer_size(self) -> tuple:             # <<<<<<<<<<<<<<
 *         cdef int width, height
 *         CGL_window_get_framebuffer_size(self.c_window, &width, &height)
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_AddTraceback("cgl.window.get_framebuffer_size", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cgl_wrapper.pyx":1462
 *         return (width, height)
 * 
 *     def resecure_callbaks(self):             # <<<<<<<<<<<<<<
 *         CGL_window_resecure_callbacks(self.c_window)
 * 
 */

/* Python wrapper */
static PyObject *__pyx_pw_3cgl_6window_49resecure_callbaks(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/
static PyObject *__pyx_pw_3cgl_6window_49resecure_callbaks(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("resecure_callbaks (wrapper)", 0);
  __pyx_r = __pyx_pf_3cgl_6window_48resecure_callbaks(((struct __pyx_obj_3cgl_window *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_3cgl_6window_48resecure_callbaks(struct __pyx_obj_3cgl_window *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("resecure_callbaks", 0);

  /* "cgl_wrapper.pyx":1463
 * 
 *     def resecure_callbaks(self):
 *         CGL_window_resecure_callbacks(self.c_window)             # <<<<<<<<<<<<<<
 * 
 *     def make_context_current(self):
 */
  CGL_window_resecure_callbacks(__pyx_v_self->c_window);

  /* "cgl_wrapper.pyx":1462
 *         return (width, height)
 * 
 *     def resecure_callbaks(self):             # <<<<<<<<<<<<<<
 *         CGL_window_resecure_callbacks(self.c_window)
 * 
 */

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cgl_wrapper.pyx":1465
 *         CGL_window_resecure_callbacks(self.c_window)
 * 
 *     def make_context_current(self):             # <<<<<<<<<<<<<<
 *         CGL_window_make_context_current(self.c_window)
 * 
 */

/* Python wrapper */
static PyObject *__pyx_pw_3cgl_6window_51make_context_current(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/
static PyObject *__pyx_pw_3cgl_6window_51make_context_current(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("make_context_current (wrapper)", 0);
  __pyx_r = __pyx_pf_3cgl_6window_50make_context_current(((struct __pyx_obj_3cgl_window *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_3cgl_6window_50make_context_current(struct __pyx_obj_3cgl_window *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("make_context_current", 0);

  /* "cgl_wrapper.pyx":1466
 * 
 *     def make_context_current(self):
 *         CGL_window_make_context_current(self.c_window)             # <<<<<<<<<<<<<<
 * 
 *     def get_glfw_handle(self) -> object:
 */
  CGL_window_make_context_current(__pyx_v_self->c_window);

  /* "cgl_wrapper.pyx":1465
 *         CGL_window_resecure_callbacks(self.c_window)
 * 
 *     def make_context_current(self):             # <<<<<<<<<<<<<<
 *         CGL_window_make_context_current(self.c_window)
 * 
 */

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cgl_wrapper.pyx":1468
 *         CGL_window_make_context_current(self.c_window)
 * 
 *     def get_glfw_handle(self) -> object:             # <<<<<<<<<<<<<<
 *         return <object>CGL_window_get_glfw_handle(self.c_window)
 * 
 */

/* Python wrapper */
static PyObject *__pyx_pw_3cgl_6window_53get_glfw_handle(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/
static PyObject *__pyx_pw_3cgl_6window_53get_glfw_handle(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("get_glfw_handle (wrapper)", 0);
  __pyx_r = __pyx_pf_3cgl_6window_52get_glfw_handle(((struct __pyx_obj_3cgl_window *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_3cgl_6window_52get_glfw_handle(struct __pyx_obj_3cgl_window *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  struct GLFWwindow *__pyx_t_1;
  __Pyx_RefNannySetupContext("get_glfw_handle", 0);

  /* "cgl_wrapper.pyx":1469
 * 
 *     def get_glfw_handle(self) -> object:
 *         return <object>CGL_window_get_glfw_handle(self.c_window)             # <<<<<<<<<<<<<<
 * 
 *     def get_key(self, key: int) -> int:
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = CGL_window_get_glfw_handle(__pyx_v_self->c_window);
  __Pyx_INCREF(((PyObject *)__pyx_t_1));
  __pyx_r = ((PyObject *)__pyx_t_1);
  goto __pyx_L0;

  /* "cgl_wrapper.pyx":1468
 *         CGL_window_make_context_current(self.c_window)
 * 
 *     def get_glfw_handle(self) -> object:             # <<<<<<<<<<<<<<
 *         return <object>CGL_window_get_glfw_handle(self.c_window)
 * 
 */

  /* function exit code */
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cgl_wrapper.pyx":1471
 *         return <object>CGL_window_get_glfw_handle(self.c_window)
 * 
 *     def get_key(self, key: int) -> int:             # <<<<<<<<<<<<<<
 *         return CGL_window_get_key(self.c_window, key)
 * 
 */

/* Python wrapper */
static PyObject *__pyx_pw_3cgl_6window_55get_key(PyObject *__pyx_v_self, PyObject *__pyx_v_key); /*proto*/
static PyObject *__pyx_pw_3cgl_6window_55get_key(PyObject *__pyx_v_self, PyObject *__pyx_v_key) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("get_key (wrapper)", 0);
  __pyx_r = __pyx_pf_3cgl_6window_54get_key(((struct __pyx_obj_3cgl_window *)__pyx_v_self), ((PyObject *)__pyx_v_key));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_3cgl_6window_54get_key(struct __pyx_obj_3cgl_window *__pyx_v_self, PyObject *__pyx_v_key) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  CGL_int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("get_key", 0);

  /* "cgl_wrapper.pyx":1472
 * 
 *     def get_key(self, key: int) -> int:
 *         return CGL_window_get_key(self.c_window, key)             # <<<<<<<<<<<<<<
 * 
 *     def is_key_presswd(self, key: int) -> bool:
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyInt_As_CGL_int(__pyx_v_key); if (unlikely((__pyx_t_1 == ((CGL_int)-1)) && PyErr_Occurred())) __PYX_ERR(0, 1472, __pyx_L1_error)
  __pyx_t_2 = __Pyx_PyInt_From_CGL_int(CGL_window_get_key(__pyx_v_self->c_window, __pyx_t_1)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1472, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_r = __pyx_t_2;
  __pyx_t_2 = 0;
  goto __pyx_L0;

  /* "cgl_wrapper.pyx":1471
 *         return <object>CGL_window_get_glfw_handle(self.c_window)
 * 
 *     def get_key(self, key: int) -> int:             # <<<<<<<<<<<<<<
 *         return CGL_window_get_key(self.c_window, key)
 * 
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("cgl.window.get_key", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cgl_wrapper.pyx":1474
 *         return CGL_window_get_key(self.c_window, key)
 * 
 *     def is_key_presswd(self, key: int) -> bool:             # <<<<<<<<<<<<<<
 *         return CGL_window_is_key_pressed(self.c_window, key)
 * 
 */

/* Python wrapper */
static PyObject *__pyx_pw_3cgl_6window_57is_key_presswd(PyObject *__pyx_v_self, PyObject *__pyx_v_key); /*proto*/
static PyObject *__pyx_pw_3cgl_6window_57is_key_presswd(PyObject *__pyx_v_self, PyObject *__pyx_v_key) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("is_key_presswd (wrapper)", 0);
  __pyx_r = __pyx_pf_3cgl_6window_56is_key_presswd(((struct __pyx_obj_3cgl_window *)__pyx_v_self), ((PyObject *)__pyx_v_key));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_3cgl_6window_56is_key_presswd(struct __pyx_obj_3cgl_window *__pyx_v_self, PyObject *__pyx_v_key) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  CGL_int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("is_key_presswd", 0);

  /* "cgl_wrapper.pyx":1475
 * 
 *     def is_key_presswd(self, key: int) -> bool:
 *         return CGL_window_is_key_pressed(self.c_window, key)             # <<<<<<<<<<<<<<
 * 
 *     def get_mouse_button(self, button: int) -> int:
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyInt_As_CGL_int(__pyx_v_key); if (unlikely((__pyx_t_1 == ((CGL_int)-1)) && PyErr_Occurred())) __PYX_ERR(0, 1475, __pyx_L1_error)
  __pyx_t_2 = __Pyx_PyBool_FromLong(CGL_window_is_key_pressed(__pyx_v_self->c_window, __pyx_t_1)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1475, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_r = __pyx_t_2;
  __pyx_t_2 = 0;
  goto __pyx_L0;

  /* "cgl_wrapper.pyx":1474
 *         return CGL_window_get_key(self.c_window, key)
 * 
 *     def is_key_presswd(self, key: int) -> bool:             # <<<<<<<<<<<<<<
 *         return CGL_window_is_key_pressed(self.c_window, key)
 * 
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("cgl.window.is_key_presswd", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cgl_wrapper.pyx":1477
 *         return CGL_window_is_key_pressed(self.c_window, key)
 * 
 *     def get_mouse_button(self, button: int) -> int:             # <<<<<<<<<<<<<<
 *         return CGL_window_get_mouse_button(self.c_window, button)
 * 
 */

/* Python wrapper */
static PyObject *__pyx_pw_3cgl_6window_59get_mouse_button(PyObject *__pyx_v_self, PyObject *__pyx_v_button); /*proto*/
static PyObject *__pyx_pw_3cgl_6window_59get_mouse_button(PyObject *__pyx_v_self, PyObject *__pyx_v_button) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("get_mouse_button (wrapper)", 0);
  __pyx_r = __pyx_pf_3cgl_6window_58get_mouse_button(((struct __pyx_obj_3cgl_window *)__pyx_v_self), ((PyObject *)__pyx_v_button));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_3cgl_6window_58get_mouse_button(struct __pyx_obj_3cgl_window *__pyx_v_self, PyObject *__pyx_v_button) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  CGL_int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("get_mouse_button", 0);

  /* "cgl_wrapper.pyx":1478
 * 
 *     def get_mouse_button(self, button: int) -> int:
 *         return CGL_window_get_mouse_button(self.c_window, button)             # <<<<<<<<<<<<<<
 * 
 *     def get_cursor_pos(self) -> tuple:
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyInt_As_CGL_int(__pyx_v_button); if (unlikely((__pyx_t_1 == ((CGL_int)-1)) && PyErr_Occurred())) __PYX_ERR(0, 1478, __pyx_L1_error)
  __pyx_t_2 = __Pyx_PyInt_From_CGL_int(CGL_window_get_mouse_button(__pyx_v_self->c_window, __pyx_t_1)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1478, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_r = __pyx_t_2;
  __pyx_t_2 = 0;
  goto __pyx_L0;

  /* "cgl_wrapper.pyx":1477
 *         return CGL_window_is_key_pressed(self.c_window, key)
 * 
 *     def get_mouse_button(self, button: int) -> int:             # <<<<<<<<<<<<<<
 *         return CGL_window_get_mouse_button(self.c_window, button)
 * 
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("cgl.window.get_mouse_button", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cgl_wrapper.pyx":1480
 *         return CGL_window_get_mouse_button(self.c_window, button)
 * 
 *     def get_cursor_pos(self) -> tuple:             # <<<<<<<<<<<<<<
 *         cdef double x, y
 *         CGL_window_get_mouse_position(self.c_window, &x, &y)
 */

/* Python wrapper */
static PyObject *__pyx_pw_3cgl_6window_61get_cursor_pos(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/
static PyObject *__pyx_pw_3cgl_6window_61get_cursor_pos(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("get_cursor_pos (wrapper)", 0);
  __pyx_r = __pyx_pf_3cgl_6window_60get_cursor_pos(((struct __pyx_obj_3cgl_window *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_3cgl_6window_60get_cursor_pos(struct __pyx_obj_3cgl_window *__pyx_v_self) {
  double __pyx_v_x;
  double __pyx_v_y;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("get_cursor_pos", 0);

  /* "cgl_wrapper.pyx":1482
 *     def get_cursor_pos(self) -> tuple:
 *         cdef double x, y
 *         CGL_window_get_mouse_position(self.c_window, &x, &y)             # <<<<<<<<<<<<<<
 *         return (x, y)
 * 
 */
  CGL_window_get_mouse_position(__pyx_v_self->c_window, (&__pyx_v_x), (&__pyx_v_y));

  /* "cgl_wrapper.pyx":1483
 *         cdef double x, y
 *         CGL_window_get_mouse_position(self.c_window, &x, &y)
 *         return (x, y)             # <<<<<<<<<<<<<<
 * 
 *     def __repr__(self):
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = PyFloat_FromDouble(__pyx_v_x); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1483, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = PyFloat_FromDouble(__pyx_v_y); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1483, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = PyTuple_New(2); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1483, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_GIVEREF(__pyx_t_1);
  PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_1);
  __Pyx_GIVEREF(__pyx_t_2);
  PyTuple_SET_ITEM(__pyx_t_3, 1, __pyx_t_2);
  __pyx_t_1 = 0;
  __pyx_t_2 = 0;
  __pyx_r = ((PyObject*)__pyx_t_3);
  __pyx_t_3 = 0;
  goto __pyx_L0;

  /* "cgl_wrapper.pyx":1480
 *         return CGL_window_get_mouse_button(self.c_window, button)
 * 
 *     def get_cursor_pos(self) -> tuple:             # <<<<<<<<<<<<<<
 *         cdef double x, y
 *         CGL_window_get_mouse_position(self.c_window, &x, &y)
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_AddTraceback("cgl.window.get_cursor_pos", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cgl_wrapper.pyx":1485
 *         return (x, y)
 * 
 *     def __repr__(self):             # <<<<<<<<<<<<<<
 *         return f"window({self.width}, {self.height}, {self.title})"
 * 
 */

/* Python wrapper */
static PyObject *__pyx_pw_3cgl_6window_63__repr__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_3cgl_6window_63__repr__(PyObject *__pyx_v_self) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__repr__ (wrapper)", 0);
  __pyx_r = __pyx_pf_3cgl_6window_62__repr__(((struct __pyx_obj_3cgl_window *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_3cgl_6window_62__repr__(struct __pyx_obj_3cgl_window *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  Py_ssize_t __pyx_t_2;
  Py_UCS4 __pyx_t_3;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__repr__", 0);

  /* "cgl_wrapper.pyx":1486
 * 
 *     def __repr__(self):
 *         return f"window({self.width}, {self.height}, {self.title})"             # <<<<<<<<<<<<<<
 * 
 *     def __str__(self):
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = PyTuple_New(7); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1486, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = 0;
  __pyx_t_3 = 127;
  __Pyx_INCREF(__pyx_kp_u_window);
  __pyx_t_2 += 7;
  __Pyx_GIVEREF(__pyx_kp_u_window);
  PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_kp_u_window);
  __pyx_t_4 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_width); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1486, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_5 = __Pyx_PyObject_FormatSimple(__pyx_t_4, __pyx_empty_unicode); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1486, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __pyx_t_3 = (__Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_5) > __pyx_t_3) ? __Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_5) : __pyx_t_3;
  __pyx_t_2 += __Pyx_PyUnicode_GET_LENGTH(__pyx_t_5);
  __Pyx_GIVEREF(__pyx_t_5);
  PyTuple_SET_ITEM(__pyx_t_1, 1, __pyx_t_5);
  __pyx_t_5 = 0;
  __Pyx_INCREF(__pyx_kp_u__3);
  __pyx_t_2 += 2;
  __Pyx_GIVEREF(__pyx_kp_u__3);
  PyTuple_SET_ITEM(__pyx_t_1, 2, __pyx_kp_u__3);
  __pyx_t_5 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_height); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1486, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __pyx_t_4 = __Pyx_PyObject_FormatSimple(__pyx_t_5, __pyx_empty_unicode); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1486, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
  __pyx_t_3 = (__Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_4) > __pyx_t_3) ? __Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_4) : __pyx_t_3;
  __pyx_t_2 += __Pyx_PyUnicode_GET_LENGTH(__pyx_t_4);
  __Pyx_GIVEREF(__pyx_t_4);
  PyTuple_SET_ITEM(__pyx_t_1, 3, __pyx_t_4);
  __pyx_t_4 = 0;
  __Pyx_INCREF(__pyx_kp_u__3);
  __pyx_t_2 += 2;
  __Pyx_GIVEREF(__pyx_kp_u__3);
  PyTuple_SET_ITEM(__pyx_t_1, 4, __pyx_kp_u__3);
  __pyx_t_4 = __Pyx_PyObject_FormatSimple(__pyx_v_self->title, __pyx_empty_unicode); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1486, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_3 = (__Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_4) > __pyx_t_3) ? __Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_4) : __pyx_t_3;
  __pyx_t_2 += __Pyx_PyUnicode_GET_LENGTH(__pyx_t_4);
  __Pyx_GIVEREF(__pyx_t_4);
  PyTuple_SET_ITEM(__pyx_t_1, 5, __pyx_t_4);
  __pyx_t_4 = 0;
  __Pyx_INCREF(__pyx_kp_u__4);
  __pyx_t_2 += 1;
  __Pyx_GIVEREF(__pyx_kp_u__4);
  PyTuple_SET_ITEM(__pyx_t_1, 6, __pyx_kp_u__4);
  __pyx_t_4 = __Pyx_PyUnicode_Join(__pyx_t_1, 7, __pyx_t_2, __pyx_t_3); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1486, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_r = __pyx_t_4;
  __pyx_t_4 = 0;
  goto __pyx_L0;

  /* "cgl_wrapper.pyx":1485
 *         return (x, y)
 * 
 *     def __repr__(self):             # <<<<<<<<<<<<<<
 *         return f"window({self.width}, {self.height}, {self.title})"
 * 
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("cgl.window.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cgl_wrapper.pyx":1488
 *         return f"window({self.width}, {self.height}, {self.title})"
 * 
 *     def __str__(self):             # <<<<<<<<<<<<<<
 *         return f"window({self.width}, {self.height}, {self.title})"
 * 
 */

/* Python wrapper */
static PyObject *__pyx_pw_3cgl_6window_65__str__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_3cgl_6window_65__str__(PyObject *__pyx_v_self) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__str__ (wrapper)", 0);
  __pyx_r = __pyx_pf_3cgl_6window_64__str__(((struct __pyx_obj_3cgl_window *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_3cgl_6window_64__str__(struct __pyx_obj_3cgl_window *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  Py_ssize_t __pyx_t_2;
  Py_UCS4 __pyx_t_3;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__str__", 0);

  /* "cgl_wrapper.pyx":1489
 * 
 *     def __str__(self):
 *         return f"window({self.width}, {self.height}, {self.title})"             # <<<<<<<<<<<<<<
 * 
 * cdef class image:
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = PyTuple_New(7); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1489, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = 0;
  __pyx_t_3 = 127;
  __Pyx_INCREF(__pyx_kp_u_window);
  __pyx_t_2 += 7;
  __Pyx_GIVEREF(__pyx_kp_u_window);
  PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_kp_u_window);
  __pyx_t_4 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_width); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1489, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_5 = __Pyx_PyObject_FormatSimple(__pyx_t_4, __pyx_empty_unicode); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1489, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __pyx_t_3 = (__Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_5) > __pyx_t_3) ? __Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_5) : __pyx_t_3;
  __pyx_t_2 += __Pyx_PyUnicode_GET_LENGTH(__pyx_t_5);
  __Pyx_GIVEREF(__pyx_t_5);
  PyTuple_SET_ITEM(__pyx_t_1, 1, __pyx_t_5);
  __pyx_t_5 = 0;
  __Pyx_INCREF(__pyx_kp_u__3);
  __pyx_t_2 += 2;
  __Pyx_GIVEREF(__pyx_kp_u__3);
  PyTuple_SET_ITEM(__pyx_t_1, 2, __pyx_kp_u__3);
  __pyx_t_5 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_height); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1489, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __pyx_t_4 = __Pyx_PyObject_FormatSimple(__pyx_t_5, __pyx_empty_unicode); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1489, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
  __pyx_t_3 = (__Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_4) > __pyx_t_3) ? __Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_4) : __pyx_t_3;
  __pyx_t_2 += __Pyx_PyUnicode_GET_LENGTH(__pyx_t_4);
  __Pyx_GIVEREF(__pyx_t_4);
  PyTuple_SET_ITEM(__pyx_t_1, 3, __pyx_t_4);
  __pyx_t_4 = 0;
  __Pyx_INCREF(__pyx_kp_u__3);
  __pyx_t_2 += 2;
  __Pyx_GIVEREF(__pyx_kp_u__3);
  PyTuple_SET_ITEM(__pyx_t_1, 4, __pyx_kp_u__3);
  __pyx_t_4 = __Pyx_PyObject_FormatSimple(__pyx_v_self->title, __pyx_empty_unicode); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1489, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_3 = (__Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_4) > __pyx_t_3) ? __Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_4) : __pyx_t_3;
  __pyx_t_2 += __Pyx_PyUnicode_GET_LENGTH(__pyx_t_4);
  __Pyx_GIVEREF(__pyx_t_4);
  PyTuple_SET_ITEM(__pyx_t_1, 5, __pyx_t_4);
  __pyx_t_4 = 0;
  __Pyx_INCREF(__pyx_kp_u__4);
  __pyx_t_2 += 1;
  __Pyx_GIVEREF(__pyx_kp_u__4);
  PyTuple_SET_ITEM(__pyx_t_1, 6, __pyx_kp_u__4);
  __pyx_t_4 = __Pyx_PyUnicode_Join(__pyx_t_1, 7, __pyx_t_2, __pyx_t_3); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1489, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_r = __pyx_t_4;
  __pyx_t_4 = 0;
  goto __pyx_L0;

  /* "cgl_wrapper.pyx":1488
 *         return f"window({self.width}, {self.height}, {self.title})"
 * 
 *     def __str__(self):             # <<<<<<<<<<<<<<
 *         return f"window({self.width}, {self.height}, {self.title})"
 * 
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("cgl.window.__str__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError("self.c_window cannot be converted to a Python object for pickling")
 * def __setstate_cython__(self, __pyx_state):
 */

/* Python wrapper */
static PyObject *__pyx_pw_3cgl_6window_67__reduce_cython__(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/
static PyObject *__pyx_pw_3cgl_6window_67__reduce_cython__(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__reduce_cython__ (wrapper)", 0);
  __pyx_r = __pyx_pf_3cgl_6window_66__reduce_cython__(((struct __pyx_obj_3cgl_window *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_3cgl_6window_66__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_3cgl_window *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__reduce_cython__", 0);

  /* "(tree fragment)":2
 * def __reduce_cython__(self):
 *     raise TypeError("self.c_window cannot be converted to a Python object for pickling")             # <<<<<<<<<<<<<<
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError("self.c_window cannot be converted to a Python object for pickling")
 */
  __pyx_t_1 = __Pyx_PyObject_Call(__pyx_builtin_TypeError, __pyx_tuple__21, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 2, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_Raise(__pyx_t_1, 0, 0, 0);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __PYX_ERR(1, 2, __pyx_L1_error)

  /* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError("self.c_window cannot be converted to a Python object for pickling")
 * def __setstate_cython__(self, __pyx_state):
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cgl.window.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError("self.c_window cannot be converted to a Python object for pickling")
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError("self.c_window cannot be converted to a Python object for pickling")
 */

/* Python wrapper */
static PyObject *__pyx_pw_3cgl_6window_69__setstate_cython__(PyObject *__pyx_v_self, PyObject *__pyx_v___pyx_state); /*proto*/
static PyObject *__pyx_pw_3cgl_6window_69__setstate_cython__(PyObject *__pyx_v_self, PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__setstate_cython__ (wrapper)", 0);
  __pyx_r = __pyx_pf_3cgl_6window_68__setstate_cython__(((struct __pyx_obj_3cgl_window *)__pyx_v_self), ((PyObject *)__pyx_v___pyx_state));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_3cgl_6window_68__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_3cgl_window *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__setstate_cython__", 0);

  /* "(tree fragment)":4
 *     raise TypeError("self.c_window cannot be converted to a Python object for pickling")
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError("self.c_window cannot be converted to a Python object for pickling")             # <<<<<<<<<<<<<<
 */
  __pyx_t_1 = __Pyx_PyObject_Call(__pyx_builtin_TypeError, __pyx_tuple__22, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 4, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_Raise(__pyx_t_1, 0, 0, 0);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __PYX_ERR(1, 4, __pyx_L1_error)

  /* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError("self.c_window cannot be converted to a Python object for pickling")
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError("self.c_window cannot be converted to a Python object for pickling")
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cgl.window.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cgl_wrapper.pyx":1496
 * 
 *     @property
 *     def width(self) -> int:             # <<<<<<<<<<<<<<
 *         return self.c_image.width
 * 
 */

/* Python wrapper */
static PyObject *__pyx_pw_3cgl_5image_5width_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_3cgl_5image_5width_1__get__(PyObject *__pyx_v_self) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_r = __pyx_pf_3cgl_5image_5width___get__(((struct __pyx_obj_3cgl_image *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_3cgl_5image_5width___get__(struct __pyx_obj_3cgl_image *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__get__", 0);

  /* "cgl_wrapper.pyx":1497
 *     @property
 *     def width(self) -> int:
 *         return self.c_image.width             # <<<<<<<<<<<<<<
 * 
 *     @property
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyInt_From_CGL_int(__pyx_v_self->c_image.width); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1497, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cgl_wrapper.pyx":1496
 * 
 *     @property
 *     def width(self) -> int:             # <<<<<<<<<<<<<<
 *         return self.c_image.width
 * 
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cgl.image.width.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cgl_wrapper.pyx":1500
 * 
 *     @property
 *     def height(self) -> int:             # <<<<<<<<<<<<<<
 *         return self.c_image.height
 * 
 */

/* Python wrapper */
static PyObject *__pyx_pw_3cgl_5image_6height_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_3cgl_5image_6height_1__get__(PyObject *__pyx_v_self) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_r = __pyx_pf_3cgl_5image_6height___get__(((struct __pyx_obj_3cgl_image *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_3cgl_5image_6height___get__(struct __pyx_obj_3cgl_image *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__get__", 0);

  /* "cgl_wrapper.pyx":1501
 *     @property
 *     def height(self) -> int:
 *         return self.c_image.height             # <<<<<<<<<<<<<<
 * 
 *     @property
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyInt_From_CGL_int(__pyx_v_self->c_image.height); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1501, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cgl_wrapper.pyx":1500
 * 
 *     @property
 *     def height(self) -> int:             # <<<<<<<<<<<<<<
 *         return self.c_image.height
 * 
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cgl.image.height.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cgl_wrapper.pyx":1504
 * 
 *     @property
 *     def channels(self) -> int:             # <<<<<<<<<<<<<<
 *         return self.c_image.channels
 * 
 */

/* Python wrapper */
static PyObject *__pyx_pw_3cgl_5image_8channels_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_3cgl_5image_8channels_1__get__(PyObject *__pyx_v_self) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_r = __pyx_pf_3cgl_5image_8channels___get__(((struct __pyx_obj_3cgl_image *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_3cgl_5image_8channels___get__(struct __pyx_obj_3cgl_image *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__get__", 0);

  /* "cgl_wrapper.pyx":1505
 *     @property
 *     def channels(self) -> int:
 *         return self.c_image.channels             # <<<<<<<<<<<<<<
 * 
 *     def __init__(self):
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyInt_From_CGL_int(__pyx_v_self->c_image.channels); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1505, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cgl_wrapper.pyx":1504
 * 
 *     @property
 *     def channels(self) -> int:             # <<<<<<<<<<<<<<
 *         return self.c_image.channels
 * 
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cgl.image.channels.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cgl_wrapper.pyx":1507
 *         return self.c_image.channels
 * 
 *     def __init__(self):             # <<<<<<<<<<<<<<
 *         self.c_image = CGL_image()
 * 
 */

/* Python wrapper */
static int __pyx_pw_3cgl_5image_1__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static int __pyx_pw_3cgl_5image_1__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__init__ (wrapper)", 0);
  if (unlikely(PyTuple_GET_SIZE(__pyx_args) > 0)) {
    __Pyx_RaiseArgtupleInvalid("__init__", 1, 0, 0, PyTuple_GET_SIZE(__pyx_args)); return -1;}
  if (unlikely(__pyx_kwds) && unlikely(PyDict_Size(__pyx_kwds) > 0) && unlikely(!__Pyx_CheckKeywordStrings(__pyx_kwds, "__init__", 0))) return -1;
  __pyx_r = __pyx_pf_3cgl_5image___init__(((struct __pyx_obj_3cgl_image *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_3cgl_5image___init__(struct __pyx_obj_3cgl_image *__pyx_v_self) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  struct CGL_image __pyx_t_1;
  __Pyx_RefNannySetupContext("__init__", 0);

  /* "cgl_wrapper.pyx":1508
 * 
 *     def __init__(self):
 *         self.c_image = CGL_image()             # <<<<<<<<<<<<<<
 * 
 *     def __hash__(self):
 */
  __pyx_v_self->c_image = __pyx_t_1;

  /* "cgl_wrapper.pyx":1507
 *         return self.c_image.channels
 * 
 *     def __init__(self):             # <<<<<<<<<<<<<<
 *         self.c_image = CGL_image()
 * 
 */

  /* function exit code */
  __pyx_r = 0;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cgl_wrapper.pyx":1510
 *         self.c_image = CGL_image()
 * 
 *     def __hash__(self):             # <<<<<<<<<<<<<<
 *         return hash(self.image_data)
 * 
 */

/* Python wrapper */
static Py_hash_t __pyx_pw_3cgl_5image_3__hash__(PyObject *__pyx_v_self); /*proto*/
static Py_hash_t __pyx_pw_3cgl_5image_3__hash__(PyObject *__pyx_v_self) {
  Py_hash_t __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__hash__ (wrapper)", 0);
  __pyx_r = __pyx_pf_3cgl_5image_2__hash__(((struct __pyx_obj_3cgl_image *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static Py_hash_t __pyx_pf_3cgl_5image_2__hash__(struct __pyx_obj_3cgl_image *__pyx_v_self) {
  Py_hash_t __pyx_r;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  Py_hash_t __pyx_t_2;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__hash__", 0);

  /* "cgl_wrapper.pyx":1511
 * 
 *     def __hash__(self):
 *         return hash(self.image_data)             # <<<<<<<<<<<<<<
 * 
 *     def __repr__(self):
 */
  __pyx_t_1 = __pyx_v_self->image_data;
  __Pyx_INCREF(__pyx_t_1);
  __pyx_t_2 = PyObject_Hash(__pyx_t_1); if (unlikely(__pyx_t_2 == ((Py_hash_t)-1))) __PYX_ERR(0, 1511, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_r = __pyx_t_2;
  goto __pyx_L0;

  /* "cgl_wrapper.pyx":1510
 *         self.c_image = CGL_image()
 * 
 *     def __hash__(self):             # <<<<<<<<<<<<<<
 *         return hash(self.image_data)
 * 
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cgl.image.__hash__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  if (unlikely(__pyx_r == -1) && !PyErr_Occurred()) __pyx_r = -2;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cgl_wrapper.pyx":1513
 *         return hash(self.image_data)
 * 
 *     def __repr__(self):             # <<<<<<<<<<<<<<
 *         return f"image({self.width}, {self.height}, {self.channels})"
 * 
 */

/* Python wrapper */
static PyObject *__pyx_pw_3cgl_5image_5__repr__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_3cgl_5image_5__repr__(PyObject *__pyx_v_self) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__repr__ (wrapper)", 0);
  __pyx_r = __pyx_pf_3cgl_5image_4__repr__(((struct __pyx_obj_3cgl_image *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_3cgl_5image_4__repr__(struct __pyx_obj_3cgl_image *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  Py_ssize_t __pyx_t_2;
  Py_UCS4 __pyx_t_3;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__repr__", 0);

  /* "cgl_wrapper.pyx":1514
 * 
 *     def __repr__(self):
 *         return f"image({self.width}, {self.height}, {self.channels})"             # <<<<<<<<<<<<<<
 * 
 *     def __str__(self):
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = PyTuple_New(7); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1514, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = 0;
  __pyx_t_3 = 127;
  __Pyx_INCREF(__pyx_kp_u_image);
  __pyx_t_2 += 6;
  __Pyx_GIVEREF(__pyx_kp_u_image);
  PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_kp_u_image);
  __pyx_t_4 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_width); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1514, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_5 = __Pyx_PyObject_FormatSimple(__pyx_t_4, __pyx_empty_unicode); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1514, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __pyx_t_3 = (__Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_5) > __pyx_t_3) ? __Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_5) : __pyx_t_3;
  __pyx_t_2 += __Pyx_PyUnicode_GET_LENGTH(__pyx_t_5);
  __Pyx_GIVEREF(__pyx_t_5);
  PyTuple_SET_ITEM(__pyx_t_1, 1, __pyx_t_5);
  __pyx_t_5 = 0;
  __Pyx_INCREF(__pyx_kp_u__3);
  __pyx_t_2 += 2;
  __Pyx_GIVEREF(__pyx_kp_u__3);
  PyTuple_SET_ITEM(__pyx_t_1, 2, __pyx_kp_u__3);
  __pyx_t_5 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_height); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1514, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __pyx_t_4 = __Pyx_PyObject_FormatSimple(__pyx_t_5, __pyx_empty_unicode); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1514, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
  __pyx_t_3 = (__Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_4) > __pyx_t_3) ? __Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_4) : __pyx_t_3;
  __pyx_t_2 += __Pyx_PyUnicode_GET_LENGTH(__pyx_t_4);
  __Pyx_GIVEREF(__pyx_t_4);
  PyTuple_SET_ITEM(__pyx_t_1, 3, __pyx_t_4);
  __pyx_t_4 = 0;
  __Pyx_INCREF(__pyx_kp_u__3);
  __pyx_t_2 += 2;
  __Pyx_GIVEREF(__pyx_kp_u__3);
  PyTuple_SET_ITEM(__pyx_t_1, 4, __pyx_kp_u__3);
  __pyx_t_4 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_channels); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1514, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_5 = __Pyx_PyObject_FormatSimple(__pyx_t_4, __pyx_empty_unicode); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1514, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __pyx_t_3 = (__Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_5) > __pyx_t_3) ? __Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_5) : __pyx_t_3;
  __pyx_t_2 += __Pyx_PyUnicode_GET_LENGTH(__pyx_t_5);
  __Pyx_GIVEREF(__pyx_t_5);
  PyTuple_SET_ITEM(__pyx_t_1, 5, __pyx_t_5);
  __pyx_t_5 = 0;
  __Pyx_INCREF(__pyx_kp_u__4);
  __pyx_t_2 += 1;
  __Pyx_GIVEREF(__pyx_kp_u__4);
  PyTuple_SET_ITEM(__pyx_t_1, 6, __pyx_kp_u__4);
  __pyx_t_5 = __Pyx_PyUnicode_Join(__pyx_t_1, 7, __pyx_t_2, __pyx_t_3); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1514, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_r = __pyx_t_5;
  __pyx_t_5 = 0;
  goto __pyx_L0;

  /* "cgl_wrapper.pyx":1513
 *         return hash(self.image_data)
 * 
 *     def __repr__(self):             # <<<<<<<<<<<<<<
 *         return f"image({self.width}, {self.height}, {self.channels})"
 * 
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("cgl.image.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cgl_wrapper.pyx":1516
 *         return f"image({self.width}, {self.height}, {self.channels})"
 * 
 *     def __str__(self):             # <<<<<<<<<<<<<<
 *         return f"image({self.width}, {self.height}, {self.channels})"
 * 
 */

/* Python wrapper */
static PyObject *__pyx_pw_3cgl_5image_7__str__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_3cgl_5image_7__str__(PyObject *__pyx_v_self) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__str__ (wrapper)", 0);
  __pyx_r = __pyx_pf_3cgl_5image_6__str__(((struct __pyx_obj_3cgl_image *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_3cgl_5image_6__str__(struct __pyx_obj_3cgl_image *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  Py_ssize_t __pyx_t_2;
  Py_UCS4 __pyx_t_3;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__str__", 0);

  /* "cgl_wrapper.pyx":1517
 * 
 *     def __str__(self):
 *         return f"image({self.width}, {self.height}, {self.channels})"             # <<<<<<<<<<<<<<
 * 
 *     def load_image(self, path: str):
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = PyTuple_New(7); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1517, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = 0;
  __pyx_t_3 = 127;
  __Pyx_INCREF(__pyx_kp_u_image);
  __pyx_t_2 += 6;
  __Pyx_GIVEREF(__pyx_kp_u_image);
  PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_kp_u_image);
  __pyx_t_4 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_width); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1517, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_5 = __Pyx_PyObject_FormatSimple(__pyx_t_4, __pyx_empty_unicode); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1517, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __pyx_t_3 = (__Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_5) > __pyx_t_3) ? __Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_5) : __pyx_t_3;
  __pyx_t_2 += __Pyx_PyUnicode_GET_LENGTH(__pyx_t_5);
  __Pyx_GIVEREF(__pyx_t_5);
  PyTuple_SET_ITEM(__pyx_t_1, 1, __pyx_t_5);
  __pyx_t_5 = 0;
  __Pyx_INCREF(__pyx_kp_u__3);
  __pyx_t_2 += 2;
  __Pyx_GIVEREF(__pyx_kp_u__3);
  PyTuple_SET_ITEM(__pyx_t_1, 2, __pyx_kp_u__3);
  __pyx_t_5 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_height); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1517, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __pyx_t_4 = __Pyx_PyObject_FormatSimple(__pyx_t_5, __pyx_empty_unicode); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1517, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
  __pyx_t_3 = (__Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_4) > __pyx_t_3) ? __Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_4) : __pyx_t_3;
  __pyx_t_2 += __Pyx_PyUnicode_GET_LENGTH(__pyx_t_4);
  __Pyx_GIVEREF(__pyx_t_4);
  PyTuple_SET_ITEM(__pyx_t_1, 3, __pyx_t_4);
  __pyx_t_4 = 0;
  __Pyx_INCREF(__pyx_kp_u__3);
  __pyx_t_2 += 2;
  __Pyx_GIVEREF(__pyx_kp_u__3);
  PyTuple_SET_ITEM(__pyx_t_1, 4, __pyx_kp_u__3);
  __pyx_t_4 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_channels); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1517, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_5 = __Pyx_PyObject_FormatSimple(__pyx_t_4, __pyx_empty_unicode); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1517, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __pyx_t_3 = (__Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_5) > __pyx_t_3) ? __Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_5) : __pyx_t_3;
  __pyx_t_2 += __Pyx_PyUnicode_GET_LENGTH(__pyx_t_5);
  __Pyx_GIVEREF(__pyx_t_5);
  PyTuple_SET_ITEM(__pyx_t_1, 5, __pyx_t_5);
  __pyx_t_5 = 0;
  __Pyx_INCREF(__pyx_kp_u__4);
  __pyx_t_2 += 1;
  __Pyx_GIVEREF(__pyx_kp_u__4);
  PyTuple_SET_ITEM(__pyx_t_1, 6, __pyx_kp_u__4);
  __pyx_t_5 = __Pyx_PyUnicode_Join(__pyx_t_1, 7, __pyx_t_2, __pyx_t_3); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1517, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_r = __pyx_t_5;
  __pyx_t_5 = 0;
  goto __pyx_L0;

  /* "cgl_wrapper.pyx":1516
 *         return f"image({self.width}, {self.height}, {self.channels})"
 * 
 *     def __str__(self):             # <<<<<<<<<<<<<<
 *         return f"image({self.width}, {self.height}, {self.channels})"
 * 
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("cgl.image.__str__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cgl_wrapper.pyx":1519
 *         return f"image({self.width}, {self.height}, {self.channels})"
 * 
 *     def load_image(self, path: str):             # <<<<<<<<<<<<<<
 *         img = Image.open(path)
 *         self.c_image.width = img.width
 */

/* Python wrapper */
static PyObject *__pyx_pw_3cgl_5image_9load_image(PyObject *__pyx_v_self, PyObject *__pyx_v_path); /*proto*/
static PyObject *__pyx_pw_3cgl_5image_9load_image(PyObject *__pyx_v_self, PyObject *__pyx_v_path) {
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("load_image (wrapper)", 0);
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_path), (&PyString_Type), 1, "path", 1))) __PYX_ERR(0, 1519, __pyx_L1_error)
  __pyx_r = __pyx_pf_3cgl_5image_8load_image(((struct __pyx_obj_3cgl_image *)__pyx_v_self), ((PyObject*)__pyx_v_path));

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_3cgl_5image_8load_image(struct __pyx_obj_3cgl_image *__pyx_v_self, PyObject *__pyx_v_path) {
  PyObject *__pyx_v_img = NULL;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  CGL_int __pyx_t_4;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("load_image", 0);

  /* "cgl_wrapper.pyx":1520
 * 
 *     def load_image(self, path: str):
 *         img = Image.open(path)             # <<<<<<<<<<<<<<
 *         self.c_image.width = img.width
 *         self.c_image.height = img.height
 */
  __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_Image); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1520, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_open); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1520, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_t_2 = NULL;
  if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_3))) {
    __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_3);
    if (likely(__pyx_t_2)) {
      PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3);
      __Pyx_INCREF(__pyx_t_2);
      __Pyx_INCREF(function);
      __Pyx_DECREF_SET(__pyx_t_3, function);
    }
  }
  __pyx_t_1 = (__pyx_t_2) ? __Pyx_PyObject_Call2Args(__pyx_t_3, __pyx_t_2, __pyx_v_path) : __Pyx_PyObject_CallOneArg(__pyx_t_3, __pyx_v_path);
  __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
  if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1520, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __pyx_v_img = __pyx_t_1;
  __pyx_t_1 = 0;

  /* "cgl_wrapper.pyx":1521
 *     def load_image(self, path: str):
 *         img = Image.open(path)
 *         self.c_image.width = img.width             # <<<<<<<<<<<<<<
 *         self.c_image.height = img.height
 *         self.c_image.channels = 3
 */
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_img, __pyx_n_s_width); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1521, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_4 = __Pyx_PyInt_As_CGL_int(__pyx_t_1); if (unlikely((__pyx_t_4 == ((CGL_int)-1)) && PyErr_Occurred())) __PYX_ERR(0, 1521, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_v_self->c_image.width = __pyx_t_4;

  /* "cgl_wrapper.pyx":1522
 *         img = Image.open(path)
 *         self.c_image.width = img.width
 *         self.c_image.height = img.height             # <<<<<<<<<<<<<<
 *         self.c_image.channels = 3
 *         self.c_image.bytes_per_channel = 8
 */
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_img, __pyx_n_s_height); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1522, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_4 = __Pyx_PyInt_As_CGL_int(__pyx_t_1); if (unlikely((__pyx_t_4 == ((CGL_int)-1)) && PyErr_Occurred())) __PYX_ERR(0, 1522, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_v_self->c_image.height = __pyx_t_4;

  /* "cgl_wrapper.pyx":1523
 *         self.c_image.width = img.width
 *         self.c_image.height = img.height
 *         self.c_image.channels = 3             # <<<<<<<<<<<<<<
 *         self.c_image.bytes_per_channel = 8
 *         self.image_data = img.tobytes()
 */
  __pyx_v_self->c_image.channels = 3;

  /* "cgl_wrapper.pyx":1524
 *         self.c_image.height = img.height
 *         self.c_image.channels = 3
 *         self.c_image.bytes_per_channel = 8             # <<<<<<<<<<<<<<
 *         self.image_data = img.tobytes()
 *         self.c_image.data = <void*>self.image_data
 */
  __pyx_v_self->c_image.bytes_per_channel = 8;

  /* "cgl_wrapper.pyx":1525
 *         self.c_image.channels = 3
 *         self.c_image.bytes_per_channel = 8
 *         self.image_data = img.tobytes()             # <<<<<<<<<<<<<<
 *         self.c_image.data = <void*>self.image_data
 * 
 */
  __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_img, __pyx_n_s_tobytes); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1525, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_2 = NULL;
  if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_3))) {
    __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_3);
    if (likely(__pyx_t_2)) {
      PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3);
      __Pyx_INCREF(__pyx_t_2);
      __Pyx_INCREF(function);
      __Pyx_DECREF_SET(__pyx_t_3, function);
    }
  }
  __pyx_t_1 = (__pyx_t_2) ? __Pyx_PyObject_CallOneArg(__pyx_t_3, __pyx_t_2) : __Pyx_PyObject_CallNoArg(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
  if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1525, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __Pyx_GIVEREF(__pyx_t_1);
  __Pyx_GOTREF(__pyx_v_self->image_data);
  __Pyx_DECREF(__pyx_v_self->image_data);
  __pyx_v_self->image_data = __pyx_t_1;
  __pyx_t_1 = 0;

  /* "cgl_wrapper.pyx":1526
 *         self.c_image.bytes_per_channel = 8
 *         self.image_data = img.tobytes()
 *         self.c_image.data = <void*>self.image_data             # <<<<<<<<<<<<<<
 * 
 * cdef class mesh_vertex:
 */
  __pyx_v_self->c_image.data = ((void *)__pyx_v_self->image_data);

  /* "cgl_wrapper.pyx":1519
 *         return f"image({self.width}, {self.height}, {self.channels})"
 * 
 *     def load_image(self, path: str):             # <<<<<<<<<<<<<<
 *         img = Image.open(path)
 *         self.c_image.width = img.width
 */

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_AddTraceback("cgl.image.load_image", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_img);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError("self.c_image cannot be converted to a Python object for pickling")
 * def __setstate_cython__(self, __pyx_state):
 */

/* Python wrapper */
static PyObject *__pyx_pw_3cgl_5image_11__reduce_cython__(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/
static PyObject *__pyx_pw_3cgl_5image_11__reduce_cython__(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__reduce_cython__ (wrapper)", 0);
  __pyx_r = __pyx_pf_3cgl_5image_10__reduce_cython__(((struct __pyx_obj_3cgl_image *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_3cgl_5image_10__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_3cgl_image *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__reduce_cython__", 0);

  /* "(tree fragment)":2
 * def __reduce_cython__(self):
 *     raise TypeError("self.c_image cannot be converted to a Python object for pickling")             # <<<<<<<<<<<<<<
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError("self.c_image cannot be converted to a Python object for pickling")
 */
  __pyx_t_1 = __Pyx_PyObject_Call(__pyx_builtin_TypeError, __pyx_tuple__23, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 2, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_Raise(__pyx_t_1, 0, 0, 0);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __PYX_ERR(1, 2, __pyx_L1_error)

  /* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError("self.c_image cannot be converted to a Python object for pickling")
 * def __setstate_cython__(self, __pyx_state):
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cgl.image.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError("self.c_image cannot be converted to a Python object for pickling")
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError("self.c_image cannot be converted to a Python object for pickling")
 */

/* Python wrapper */
static PyObject *__pyx_pw_3cgl_5image_13__setstate_cython__(PyObject *__pyx_v_self, PyObject *__pyx_v___pyx_state); /*proto*/
static PyObject *__pyx_pw_3cgl_5image_13__setstate_cython__(PyObject *__pyx_v_self, PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__setstate_cython__ (wrapper)", 0);
  __pyx_r = __pyx_pf_3cgl_5image_12__setstate_cython__(((struct __pyx_obj_3cgl_image *)__pyx_v_self), ((PyObject *)__pyx_v___pyx_state));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_3cgl_5image_12__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_3cgl_image *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__setstate_cython__", 0);

  /* "(tree fragment)":4
 *     raise TypeError("self.c_image cannot be converted to a Python object for pickling")
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError("self.c_image cannot be converted to a Python object for pickling")             # <<<<<<<<<<<<<<
 */
  __pyx_t_1 = __Pyx_PyObject_Call(__pyx_builtin_TypeError, __pyx_tuple__24, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 4, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_Raise(__pyx_t_1, 0, 0, 0);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __PYX_ERR(1, 4, __pyx_L1_error)

  /* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError("self.c_image cannot be converted to a Python object for pickling")
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError("self.c_image cannot be converted to a Python object for pickling")
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cgl.image.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cgl_wrapper.pyx":1532
 * 
 *     @property
 *     def position(self) -> vec4:             # <<<<<<<<<<<<<<
 *         return vec4(self.c_vertex.position.x, self.c_vertex.position.y, self.c_vertex.position.z, self.c_vertex.position.w)
 * 
 */

/* Python wrapper */
static PyObject *__pyx_pw_3cgl_11mesh_vertex_8position_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_3cgl_11mesh_vertex_8position_1__get__(PyObject *__pyx_v_self) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_r = __pyx_pf_3cgl_11mesh_vertex_8position___get__(((struct __pyx_obj_3cgl_mesh_vertex *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_3cgl_11mesh_vertex_8position___get__(struct __pyx_obj_3cgl_mesh_vertex *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__get__", 0);

  /* "cgl_wrapper.pyx":1533
 *     @property
 *     def position(self) -> vec4:
 *         return vec4(self.c_vertex.position.x, self.c_vertex.position.y, self.c_vertex.position.z, self.c_vertex.position.w)             # <<<<<<<<<<<<<<
 * 
 *     @position.setter
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = PyFloat_FromDouble(__pyx_v_self->c_vertex.position.x); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1533, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = PyFloat_FromDouble(__pyx_v_self->c_vertex.position.y); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1533, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = PyFloat_FromDouble(__pyx_v_self->c_vertex.position.z); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1533, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = PyFloat_FromDouble(__pyx_v_self->c_vertex.position.w); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1533, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_5 = PyTuple_New(4); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1533, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_GIVEREF(__pyx_t_1);
  PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_1);
  __Pyx_GIVEREF(__pyx_t_2);
  PyTuple_SET_ITEM(__pyx_t_5, 1, __pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_3);
  PyTuple_SET_ITEM(__pyx_t_5, 2, __pyx_t_3);
  __Pyx_GIVEREF(__pyx_t_4);
  PyTuple_SET_ITEM(__pyx_t_5, 3, __pyx_t_4);
  __pyx_t_1 = 0;
  __pyx_t_2 = 0;
  __pyx_t_3 = 0;
  __pyx_t_4 = 0;
  __pyx_t_4 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_3cgl_vec4), __pyx_t_5, NULL); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1533, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
  __pyx_r = __pyx_t_4;
  __pyx_t_4 = 0;
  goto __pyx_L0;

  /* "cgl_wrapper.pyx":1532
 * 
 *     @property
 *     def position(self) -> vec4:             # <<<<<<<<<<<<<<
 *         return vec4(self.c_vertex.position.x, self.c_vertex.position.y, self.c_vertex.position.z, self.c_vertex.position.w)
 * 
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("cgl.mesh_vertex.position.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cgl_wrapper.pyx":1536
 * 
 *     @position.setter
 *     def position(self, value: vec4):             # <<<<<<<<<<<<<<
 *         self.c_vertex.position.x = value.x
 *         self.c_vertex.position.y = value.y
 */

/* Python wrapper */
static int __pyx_pw_3cgl_11mesh_vertex_8position_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value); /*proto*/
static int __pyx_pw_3cgl_11mesh_vertex_8position_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value) {
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_value), __pyx_ptype_3cgl_vec4, 1, "value", 0))) __PYX_ERR(0, 1536, __pyx_L1_error)
  __pyx_r = __pyx_pf_3cgl_11mesh_vertex_8position_2__set__(((struct __pyx_obj_3cgl_mesh_vertex *)__pyx_v_self), ((struct __pyx_obj_3cgl_vec4 *)__pyx_v_value));

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_3cgl_11mesh_vertex_8position_2__set__(struct __pyx_obj_3cgl_mesh_vertex *__pyx_v_self, struct __pyx_obj_3cgl_vec4 *__pyx_v_value) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  CGL_float __pyx_t_2;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__set__", 0);

  /* "cgl_wrapper.pyx":1537
 *     @position.setter
 *     def position(self, value: vec4):
 *         self.c_vertex.position.x = value.x             # <<<<<<<<<<<<<<
 *         self.c_vertex.position.y = value.y
 *         self.c_vertex.position.z = value.z
 */
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_value), __pyx_n_s_x); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1537, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = __pyx_PyFloat_AsFloat(__pyx_t_1); if (unlikely((__pyx_t_2 == ((CGL_float)-1)) && PyErr_Occurred())) __PYX_ERR(0, 1537, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_v_self->c_vertex.position.x = __pyx_t_2;

  /* "cgl_wrapper.pyx":1538
 *     def position(self, value: vec4):
 *         self.c_vertex.position.x = value.x
 *         self.c_vertex.position.y = value.y             # <<<<<<<<<<<<<<
 *         self.c_vertex.position.z = value.z
 *         self.c_vertex.position.w = value.w
 */
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_value), __pyx_n_s_y); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1538, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = __pyx_PyFloat_AsFloat(__pyx_t_1); if (unlikely((__pyx_t_2 == ((CGL_float)-1)) && PyErr_Occurred())) __PYX_ERR(0, 1538, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_v_self->c_vertex.position.y = __pyx_t_2;

  /* "cgl_wrapper.pyx":1539
 *         self.c_vertex.position.x = value.x
 *         self.c_vertex.position.y = value.y
 *         self.c_vertex.position.z = value.z             # <<<<<<<<<<<<<<
 *         self.c_vertex.position.w = value.w
 * 
 */
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_value), __pyx_n_s_z); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1539, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = __pyx_PyFloat_AsFloat(__pyx_t_1); if (unlikely((__pyx_t_2 == ((CGL_float)-1)) && PyErr_Occurred())) __PYX_ERR(0, 1539, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_v_self->c_vertex.position.z = __pyx_t_2;

  /* "cgl_wrapper.pyx":1540
 *         self.c_vertex.position.y = value.y
 *         self.c_vertex.position.z = value.z
 *         self.c_vertex.position.w = value.w             # <<<<<<<<<<<<<<
 * 
 *     @property
 */
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_value), __pyx_n_s_w); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1540, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = __pyx_PyFloat_AsFloat(__pyx_t_1); if (unlikely((__pyx_t_2 == ((CGL_float)-1)) && PyErr_Occurred())) __PYX_ERR(0, 1540, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_v_self->c_vertex.position.w = __pyx_t_2;

  /* "cgl_wrapper.pyx":1536
 * 
 *     @position.setter
 *     def position(self, value: vec4):             # <<<<<<<<<<<<<<
 *         self.c_vertex.position.x = value.x
 *         self.c_vertex.position.y = value.y
 */

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cgl.mesh_vertex.position.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cgl_wrapper.pyx":1543
 * 
 *     @property
 *     def normal(self) -> vec4:             # <<<<<<<<<<<<<<
 *         return vec4(self.c_vertex.normal.x, self.c_vertex.normal.y, self.c_vertex.normal.z, self.c_vertex.normal.w)
 * 
 */

/* Python wrapper */
static PyObject *__pyx_pw_3cgl_11mesh_vertex_6normal_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_3cgl_11mesh_vertex_6normal_1__get__(PyObject *__pyx_v_self) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_r = __pyx_pf_3cgl_11mesh_vertex_6normal___get__(((struct __pyx_obj_3cgl_mesh_vertex *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_3cgl_11mesh_vertex_6normal___get__(struct __pyx_obj_3cgl_mesh_vertex *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__get__", 0);

  /* "cgl_wrapper.pyx":1544
 *     @property
 *     def normal(self) -> vec4:
 *         return vec4(self.c_vertex.normal.x, self.c_vertex.normal.y, self.c_vertex.normal.z, self.c_vertex.normal.w)             # <<<<<<<<<<<<<<
 * 
 *     @normal.setter
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = PyFloat_FromDouble(__pyx_v_self->c_vertex.normal.x); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1544, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = PyFloat_FromDouble(__pyx_v_self->c_vertex.normal.y); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1544, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = PyFloat_FromDouble(__pyx_v_self->c_vertex.normal.z); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1544, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = PyFloat_FromDouble(__pyx_v_self->c_vertex.normal.w); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1544, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_5 = PyTuple_New(4); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1544, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_GIVEREF(__pyx_t_1);
  PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_1);
  __Pyx_GIVEREF(__pyx_t_2);
  PyTuple_SET_ITEM(__pyx_t_5, 1, __pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_3);
  PyTuple_SET_ITEM(__pyx_t_5, 2, __pyx_t_3);
  __Pyx_GIVEREF(__pyx_t_4);
  PyTuple_SET_ITEM(__pyx_t_5, 3, __pyx_t_4);
  __pyx_t_1 = 0;
  __pyx_t_2 = 0;
  __pyx_t_3 = 0;
  __pyx_t_4 = 0;
  __pyx_t_4 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_3cgl_vec4), __pyx_t_5, NULL); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1544, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
  __pyx_r = __pyx_t_4;
  __pyx_t_4 = 0;
  goto __pyx_L0;

  /* "cgl_wrapper.pyx":1543
 * 
 *     @property
 *     def normal(self) -> vec4:             # <<<<<<<<<<<<<<
 *         return vec4(self.c_vertex.normal.x, self.c_vertex.normal.y, self.c_vertex.normal.z, self.c_vertex.normal.w)
 * 
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("cgl.mesh_vertex.normal.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cgl_wrapper.pyx":1547
 * 
 *     @normal.setter
 *     def normal(self, value: vec4):             # <<<<<<<<<<<<<<
 *         self.c_vertex.normal.x = value.x
 *         self.c_vertex.normal.y = value.y
 */

/* Python wrapper */
static int __pyx_pw_3cgl_11mesh_vertex_6normal_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value); /*proto*/
static int __pyx_pw_3cgl_11mesh_vertex_6normal_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value) {
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_value), __pyx_ptype_3cgl_vec4, 1, "value", 0))) __PYX_ERR(0, 1547, __pyx_L1_error)
  __pyx_r = __pyx_pf_3cgl_11mesh_vertex_6normal_2__set__(((struct __pyx_obj_3cgl_mesh_vertex *)__pyx_v_self), ((struct __pyx_obj_3cgl_vec4 *)__pyx_v_value));

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_3cgl_11mesh_vertex_6normal_2__set__(struct __pyx_obj_3cgl_mesh_vertex *__pyx_v_self, struct __pyx_obj_3cgl_vec4 *__pyx_v_value) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  CGL_float __pyx_t_2;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__set__", 0);

  /* "cgl_wrapper.pyx":1548
 *     @normal.setter
 *     def normal(self, value: vec4):
 *         self.c_vertex.normal.x = value.x             # <<<<<<<<<<<<<<
 *         self.c_vertex.normal.y = value.y
 *         self.c_vertex.normal.z = value.z
 */
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_value), __pyx_n_s_x); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1548, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = __pyx_PyFloat_AsFloat(__pyx_t_1); if (unlikely((__pyx_t_2 == ((CGL_float)-1)) && PyErr_Occurred())) __PYX_ERR(0, 1548, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_v_self->c_vertex.normal.x = __pyx_t_2;

  /* "cgl_wrapper.pyx":1549
 *     def normal(self, value: vec4):
 *         self.c_vertex.normal.x = value.x
 *         self.c_vertex.normal.y = value.y             # <<<<<<<<<<<<<<
 *         self.c_vertex.normal.z = value.z
 *         self.c_vertex.normal.w = value.w
 */
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_value), __pyx_n_s_y); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1549, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = __pyx_PyFloat_AsFloat(__pyx_t_1); if (unlikely((__pyx_t_2 == ((CGL_float)-1)) && PyErr_Occurred())) __PYX_ERR(0, 1549, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_v_self->c_vertex.normal.y = __pyx_t_2;

  /* "cgl_wrapper.pyx":1550
 *         self.c_vertex.normal.x = value.x
 *         self.c_vertex.normal.y = value.y
 *         self.c_vertex.normal.z = value.z             # <<<<<<<<<<<<<<
 *         self.c_vertex.normal.w = value.w
 * 
 */
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_value), __pyx_n_s_z); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1550, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = __pyx_PyFloat_AsFloat(__pyx_t_1); if (unlikely((__pyx_t_2 == ((CGL_float)-1)) && PyErr_Occurred())) __PYX_ERR(0, 1550, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_v_self->c_vertex.normal.z = __pyx_t_2;

  /* "cgl_wrapper.pyx":1551
 *         self.c_vertex.normal.y = value.y
 *         self.c_vertex.normal.z = value.z
 *         self.c_vertex.normal.w = value.w             # <<<<<<<<<<<<<<
 * 
 *     @property
 */
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_value), __pyx_n_s_w); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1551, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = __pyx_PyFloat_AsFloat(__pyx_t_1); if (unlikely((__pyx_t_2 == ((CGL_float)-1)) && PyErr_Occurred())) __PYX_ERR(0, 1551, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_v_self->c_vertex.normal.w = __pyx_t_2;

  /* "cgl_wrapper.pyx":1547
 * 
 *     @normal.setter
 *     def normal(self, value: vec4):             # <<<<<<<<<<<<<<
 *         self.c_vertex.normal.x = value.x
 *         self.c_vertex.normal.y = value.y
 */

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cgl.mesh_vertex.normal.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cgl_wrapper.pyx":1554
 * 
 *     @property
 *     def texture_coordinates(self) -> vec4:             # <<<<<<<<<<<<<<
 *         return vec4(self.c_vertex.texture_coordinates.x, self.c_vertex.texture_coordinates.y, self.c_vertex.texture_coordinates.z, self.c_vertex.texture_coordinates.w)
 * 
 */

/* Python wrapper */
static PyObject *__pyx_pw_3cgl_11mesh_vertex_19texture_coordinates_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_3cgl_11mesh_vertex_19texture_coordinates_1__get__(PyObject *__pyx_v_self) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_r = __pyx_pf_3cgl_11mesh_vertex_19texture_coordinates___get__(((struct __pyx_obj_3cgl_mesh_vertex *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_3cgl_11mesh_vertex_19texture_coordinates___get__(struct __pyx_obj_3cgl_mesh_vertex *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__get__", 0);

  /* "cgl_wrapper.pyx":1555
 *     @property
 *     def texture_coordinates(self) -> vec4:
 *         return vec4(self.c_vertex.texture_coordinates.x, self.c_vertex.texture_coordinates.y, self.c_vertex.texture_coordinates.z, self.c_vertex.texture_coordinates.w)             # <<<<<<<<<<<<<<
 * 
 *     @texture_coordinates.setter
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = PyFloat_FromDouble(__pyx_v_self->c_vertex.texture_coordinates.x); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1555, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = PyFloat_FromDouble(__pyx_v_self->c_vertex.texture_coordinates.y); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1555, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = PyFloat_FromDouble(__pyx_v_self->c_vertex.texture_coordinates.z); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1555, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = PyFloat_FromDouble(__pyx_v_self->c_vertex.texture_coordinates.w); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1555, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_5 = PyTuple_New(4); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1555, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_GIVEREF(__pyx_t_1);
  PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_1);
  __Pyx_GIVEREF(__pyx_t_2);
  PyTuple_SET_ITEM(__pyx_t_5, 1, __pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_3);
  PyTuple_SET_ITEM(__pyx_t_5, 2, __pyx_t_3);
  __Pyx_GIVEREF(__pyx_t_4);
  PyTuple_SET_ITEM(__pyx_t_5, 3, __pyx_t_4);
  __pyx_t_1 = 0;
  __pyx_t_2 = 0;
  __pyx_t_3 = 0;
  __pyx_t_4 = 0;
  __pyx_t_4 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_3cgl_vec4), __pyx_t_5, NULL); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1555, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
  __pyx_r = __pyx_t_4;
  __pyx_t_4 = 0;
  goto __pyx_L0;

  /* "cgl_wrapper.pyx":1554
 * 
 *     @property
 *     def texture_coordinates(self) -> vec4:             # <<<<<<<<<<<<<<
 *         return vec4(self.c_vertex.texture_coordinates.x, self.c_vertex.texture_coordinates.y, self.c_vertex.texture_coordinates.z, self.c_vertex.texture_coordinates.w)
 * 
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("cgl.mesh_vertex.texture_coordinates.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cgl_wrapper.pyx":1558
 * 
 *     @texture_coordinates.setter
 *     def texture_coordinates(self, value: vec4):             # <<<<<<<<<<<<<<
 *         self.c_vertex.texture_coordinates.x = value.x
 *         self.c_vertex.texture_coordinates.y = value.y
 */

/* Python wrapper */
static int __pyx_pw_3cgl_11mesh_vertex_19texture_coordinates_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value); /*proto*/
static int __pyx_pw_3cgl_11mesh_vertex_19texture_coordinates_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value) {
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_value), __pyx_ptype_3cgl_vec4, 1, "value", 0))) __PYX_ERR(0, 1558, __pyx_L1_error)
  __pyx_r = __pyx_pf_3cgl_11mesh_vertex_19texture_coordinates_2__set__(((struct __pyx_obj_3cgl_mesh_vertex *)__pyx_v_self), ((struct __pyx_obj_3cgl_vec4 *)__pyx_v_value));

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_3cgl_11mesh_vertex_19texture_coordinates_2__set__(struct __pyx_obj_3cgl_mesh_vertex *__pyx_v_self, struct __pyx_obj_3cgl_vec4 *__pyx_v_value) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  CGL_float __pyx_t_2;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__set__", 0);

  /* "cgl_wrapper.pyx":1559
 *     @texture_coordinates.setter
 *     def texture_coordinates(self, value: vec4):
 *         self.c_vertex.texture_coordinates.x = value.x             # <<<<<<<<<<<<<<
 *         self.c_vertex.texture_coordinates.y = value.y
 *         self.c_vertex.texture_coordinates.z = value.z
 */
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_value), __pyx_n_s_x); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1559, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = __pyx_PyFloat_AsFloat(__pyx_t_1); if (unlikely((__pyx_t_2 == ((CGL_float)-1)) && PyErr_Occurred())) __PYX_ERR(0, 1559, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_v_self->c_vertex.texture_coordinates.x = __pyx_t_2;

  /* "cgl_wrapper.pyx":1560
 *     def texture_coordinates(self, value: vec4):
 *         self.c_vertex.texture_coordinates.x = value.x
 *         self.c_vertex.texture_coordinates.y = value.y             # <<<<<<<<<<<<<<
 *         self.c_vertex.texture_coordinates.z = value.z
 *         self.c_vertex.texture_coordinates.w = value.w
 */
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_value), __pyx_n_s_y); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1560, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = __pyx_PyFloat_AsFloat(__pyx_t_1); if (unlikely((__pyx_t_2 == ((CGL_float)-1)) && PyErr_Occurred())) __PYX_ERR(0, 1560, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_v_self->c_vertex.texture_coordinates.y = __pyx_t_2;

  /* "cgl_wrapper.pyx":1561
 *         self.c_vertex.texture_coordinates.x = value.x
 *         self.c_vertex.texture_coordinates.y = value.y
 *         self.c_vertex.texture_coordinates.z = value.z             # <<<<<<<<<<<<<<
 *         self.c_vertex.texture_coordinates.w = value.w
 * 
 */
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_value), __pyx_n_s_z); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1561, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = __pyx_PyFloat_AsFloat(__pyx_t_1); if (unlikely((__pyx_t_2 == ((CGL_float)-1)) && PyErr_Occurred())) __PYX_ERR(0, 1561, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_v_self->c_vertex.texture_coordinates.z = __pyx_t_2;

  /* "cgl_wrapper.pyx":1562
 *         self.c_vertex.texture_coordinates.y = value.y
 *         self.c_vertex.texture_coordinates.z = value.z
 *         self.c_vertex.texture_coordinates.w = value.w             # <<<<<<<<<<<<<<
 * 
 *     @property
 */
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_value), __pyx_n_s_w); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1562, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = __pyx_PyFloat_AsFloat(__pyx_t_1); if (unlikely((__pyx_t_2 == ((CGL_float)-1)) && PyErr_Occurred())) __PYX_ERR(0, 1562, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_v_self->c_vertex.texture_coordinates.w = __pyx_t_2;

  /* "cgl_wrapper.pyx":1558
 * 
 *     @texture_coordinates.setter
 *     def texture_coordinates(self, value: vec4):             # <<<<<<<<<<<<<<
 *         self.c_vertex.texture_coordinates.x = value.x
 *         self.c_vertex.texture_coordinates.y = value.y
 */

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cgl.mesh_vertex.texture_coordinates.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cgl_wrapper.pyx":1565
 * 
 *     @property
 *     def bone_wieghts(self) -> vec4:             # <<<<<<<<<<<<<<
 *         return vec4(self.c_vertex.bone_wieghts.x, self.c_vertex.bone_wieghts.y, self.c_vertex.bone_wieghts.z, self.c_vertex.bone_wieghts.w)
 * 
 */

/* Python wrapper */
static PyObject *__pyx_pw_3cgl_11mesh_vertex_12bone_wieghts_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_3cgl_11mesh_vertex_12bone_wieghts_1__get__(PyObject *__pyx_v_self) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_r = __pyx_pf_3cgl_11mesh_vertex_12bone_wieghts___get__(((struct __pyx_obj_3cgl_mesh_vertex *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_3cgl_11mesh_vertex_12bone_wieghts___get__(struct __pyx_obj_3cgl_mesh_vertex *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__get__", 0);

  /* "cgl_wrapper.pyx":1566
 *     @property
 *     def bone_wieghts(self) -> vec4:
 *         return vec4(self.c_vertex.bone_wieghts.x, self.c_vertex.bone_wieghts.y, self.c_vertex.bone_wieghts.z, self.c_vertex.bone_wieghts.w)             # <<<<<<<<<<<<<<
 * 
 *     @bone_wieghts.setter
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = PyFloat_FromDouble(__pyx_v_self->c_vertex.bone_wieghts.x); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1566, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = PyFloat_FromDouble(__pyx_v_self->c_vertex.bone_wieghts.y); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1566, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = PyFloat_FromDouble(__pyx_v_self->c_vertex.bone_wieghts.z); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1566, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = PyFloat_FromDouble(__pyx_v_self->c_vertex.bone_wieghts.w); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1566, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_5 = PyTuple_New(4); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1566, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_GIVEREF(__pyx_t_1);
  PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_1);
  __Pyx_GIVEREF(__pyx_t_2);
  PyTuple_SET_ITEM(__pyx_t_5, 1, __pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_3);
  PyTuple_SET_ITEM(__pyx_t_5, 2, __pyx_t_3);
  __Pyx_GIVEREF(__pyx_t_4);
  PyTuple_SET_ITEM(__pyx_t_5, 3, __pyx_t_4);
  __pyx_t_1 = 0;
  __pyx_t_2 = 0;
  __pyx_t_3 = 0;
  __pyx_t_4 = 0;
  __pyx_t_4 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_3cgl_vec4), __pyx_t_5, NULL); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1566, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
  __pyx_r = __pyx_t_4;
  __pyx_t_4 = 0;
  goto __pyx_L0;

  /* "cgl_wrapper.pyx":1565
 * 
 *     @property
 *     def bone_wieghts(self) -> vec4:             # <<<<<<<<<<<<<<
 *         return vec4(self.c_vertex.bone_wieghts.x, self.c_vertex.bone_wieghts.y, self.c_vertex.bone_wieghts.z, self.c_vertex.bone_wieghts.w)
 * 
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("cgl.mesh_vertex.bone_wieghts.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cgl_wrapper.pyx":1569
 * 
 *     @bone_wieghts.setter
 *     def bone_wieghts(self, value: vec4):             # <<<<<<<<<<<<<<
 *         self.c_vertex.bone_wieghts.x = value.x
 *         self.c_vertex.bone_wieghts.y = value.y
 */

/* Python wrapper */
static int __pyx_pw_3cgl_11mesh_vertex_12bone_wieghts_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value); /*proto*/
static int __pyx_pw_3cgl_11mesh_vertex_12bone_wieghts_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value) {
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_value), __pyx_ptype_3cgl_vec4, 1, "value", 0))) __PYX_ERR(0, 1569, __pyx_L1_error)
  __pyx_r = __pyx_pf_3cgl_11mesh_vertex_12bone_wieghts_2__set__(((struct __pyx_obj_3cgl_mesh_vertex *)__pyx_v_self), ((struct __pyx_obj_3cgl_vec4 *)__pyx_v_value));

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_3cgl_11mesh_vertex_12bone_wieghts_2__set__(struct __pyx_obj_3cgl_mesh_vertex *__pyx_v_self, struct __pyx_obj_3cgl_vec4 *__pyx_v_value) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  CGL_float __pyx_t_2;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__set__", 0);

  /* "cgl_wrapper.pyx":1570
 *     @bone_wieghts.setter
 *     def bone_wieghts(self, value: vec4):
 *         self.c_vertex.bone_wieghts.x = value.x             # <<<<<<<<<<<<<<
 *         self.c_vertex.bone_wieghts.y = value.y
 *         self.c_vertex.bone_wieghts.z = value.z
 */
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_value), __pyx_n_s_x); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1570, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = __pyx_PyFloat_AsFloat(__pyx_t_1); if (unlikely((__pyx_t_2 == ((CGL_float)-1)) && PyErr_Occurred())) __PYX_ERR(0, 1570, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_v_self->c_vertex.bone_wieghts.x = __pyx_t_2;

  /* "cgl_wrapper.pyx":1571
 *     def bone_wieghts(self, value: vec4):
 *         self.c_vertex.bone_wieghts.x = value.x
 *         self.c_vertex.bone_wieghts.y = value.y             # <<<<<<<<<<<<<<
 *         self.c_vertex.bone_wieghts.z = value.z
 *         self.c_vertex.bone_wieghts.w = value.w
 */
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_value), __pyx_n_s_y); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1571, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = __pyx_PyFloat_AsFloat(__pyx_t_1); if (unlikely((__pyx_t_2 == ((CGL_float)-1)) && PyErr_Occurred())) __PYX_ERR(0, 1571, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_v_self->c_vertex.bone_wieghts.y = __pyx_t_2;

  /* "cgl_wrapper.pyx":1572
 *         self.c_vertex.bone_wieghts.x = value.x
 *         self.c_vertex.bone_wieghts.y = value.y
 *         self.c_vertex.bone_wieghts.z = value.z             # <<<<<<<<<<<<<<
 *         self.c_vertex.bone_wieghts.w = value.w
 * 
 */
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_value), __pyx_n_s_z); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1572, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = __pyx_PyFloat_AsFloat(__pyx_t_1); if (unlikely((__pyx_t_2 == ((CGL_float)-1)) && PyErr_Occurred())) __PYX_ERR(0, 1572, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_v_self->c_vertex.bone_wieghts.z = __pyx_t_2;

  /* "cgl_wrapper.pyx":1573
 *         self.c_vertex.bone_wieghts.y = value.y
 *         self.c_vertex.bone_wieghts.z = value.z
 *         self.c_vertex.bone_wieghts.w = value.w             # <<<<<<<<<<<<<<
 * 
 *     @property
 */
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_value), __pyx_n_s_w); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1573, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = __pyx_PyFloat_AsFloat(__pyx_t_1); if (unlikely((__pyx_t_2 == ((CGL_float)-1)) && PyErr_Occurred())) __PYX_ERR(0, 1573, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_v_self->c_vertex.bone_wieghts.w = __pyx_t_2;

  /* "cgl_wrapper.pyx":1569
 * 
 *     @bone_wieghts.setter
 *     def bone_wieghts(self, value: vec4):             # <<<<<<<<<<<<<<
 *         self.c_vertex.bone_wieghts.x = value.x
 *         self.c_vertex.bone_wieghts.y = value.y
 */

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cgl.mesh_vertex.bone_wieghts.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cgl_wrapper.pyx":1576
 * 
 *     @property
 *     def bone_ids(self) -> ivec4:             # <<<<<<<<<<<<<<
 *         return ivec4(self.c_vertex.bone_ids.x, self.c_vertex.bone_ids.y, self.c_vertex.bone_ids.z, self.c_vertex.bone_ids.w)
 * 
 */

/* Python wrapper */
static PyObject *__pyx_pw_3cgl_11mesh_vertex_8bone_ids_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_3cgl_11mesh_vertex_8bone_ids_1__get__(PyObject *__pyx_v_self) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_r = __pyx_pf_3cgl_11mesh_vertex_8bone_ids___get__(((struct __pyx_obj_3cgl_mesh_vertex *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_3cgl_11mesh_vertex_8bone_ids___get__(struct __pyx_obj_3cgl_mesh_vertex *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__get__", 0);

  /* "cgl_wrapper.pyx":1577
 *     @property
 *     def bone_ids(self) -> ivec4:
 *         return ivec4(self.c_vertex.bone_ids.x, self.c_vertex.bone_ids.y, self.c_vertex.bone_ids.z, self.c_vertex.bone_ids.w)             # <<<<<<<<<<<<<<
 * 
 *     @bone_ids.setter
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyInt_From_CGL_int(__pyx_v_self->c_vertex.bone_ids.x); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1577, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = __Pyx_PyInt_From_CGL_int(__pyx_v_self->c_vertex.bone_ids.y); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1577, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = __Pyx_PyInt_From_CGL_int(__pyx_v_self->c_vertex.bone_ids.z); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1577, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = __Pyx_PyInt_From_CGL_int(__pyx_v_self->c_vertex.bone_ids.w); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1577, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_5 = PyTuple_New(4); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1577, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_GIVEREF(__pyx_t_1);
  PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_1);
  __Pyx_GIVEREF(__pyx_t_2);
  PyTuple_SET_ITEM(__pyx_t_5, 1, __pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_3);
  PyTuple_SET_ITEM(__pyx_t_5, 2, __pyx_t_3);
  __Pyx_GIVEREF(__pyx_t_4);
  PyTuple_SET_ITEM(__pyx_t_5, 3, __pyx_t_4);
  __pyx_t_1 = 0;
  __pyx_t_2 = 0;
  __pyx_t_3 = 0;
  __pyx_t_4 = 0;
  __pyx_t_4 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_3cgl_ivec4), __pyx_t_5, NULL); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1577, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
  __pyx_r = __pyx_t_4;
  __pyx_t_4 = 0;
  goto __pyx_L0;

  /* "cgl_wrapper.pyx":1576
 * 
 *     @property
 *     def bone_ids(self) -> ivec4:             # <<<<<<<<<<<<<<
 *         return ivec4(self.c_vertex.bone_ids.x, self.c_vertex.bone_ids.y, self.c_vertex.bone_ids.z, self.c_vertex.bone_ids.w)
 * 
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("cgl.mesh_vertex.bone_ids.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cgl_wrapper.pyx":1580
 * 
 *     @bone_ids.setter
 *     def bone_ids(self, value: ivec4):             # <<<<<<<<<<<<<<
 *         self.c_vertex.bone_ids.x = value.x
 *         self.c_vertex.bone_ids.y = value.y
 */

/* Python wrapper */
static int __pyx_pw_3cgl_11mesh_vertex_8bone_ids_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value); /*proto*/
static int __pyx_pw_3cgl_11mesh_vertex_8bone_ids_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value) {
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_value), __pyx_ptype_3cgl_ivec4, 1, "value", 0))) __PYX_ERR(0, 1580, __pyx_L1_error)
  __pyx_r = __pyx_pf_3cgl_11mesh_vertex_8bone_ids_2__set__(((struct __pyx_obj_3cgl_mesh_vertex *)__pyx_v_self), ((struct __pyx_obj_3cgl_ivec4 *)__pyx_v_value));

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_3cgl_11mesh_vertex_8bone_ids_2__set__(struct __pyx_obj_3cgl_mesh_vertex *__pyx_v_self, struct __pyx_obj_3cgl_ivec4 *__pyx_v_value) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  CGL_int __pyx_t_2;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__set__", 0);

  /* "cgl_wrapper.pyx":1581
 *     @bone_ids.setter
 *     def bone_ids(self, value: ivec4):
 *         self.c_vertex.bone_ids.x = value.x             # <<<<<<<<<<<<<<
 *         self.c_vertex.bone_ids.y = value.y
 *         self.c_vertex.bone_ids.z = value.z
 */
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_value), __pyx_n_s_x); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1581, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = __Pyx_PyInt_As_CGL_int(__pyx_t_1); if (unlikely((__pyx_t_2 == ((CGL_int)-1)) && PyErr_Occurred())) __PYX_ERR(0, 1581, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_v_self->c_vertex.bone_ids.x = __pyx_t_2;

  /* "cgl_wrapper.pyx":1582
 *     def bone_ids(self, value: ivec4):
 *         self.c_vertex.bone_ids.x = value.x
 *         self.c_vertex.bone_ids.y = value.y             # <<<<<<<<<<<<<<
 *         self.c_vertex.bone_ids.z = value.z
 *         self.c_vertex.bone_ids.w = value.w
 */
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_value), __pyx_n_s_y); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1582, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = __Pyx_PyInt_As_CGL_int(__pyx_t_1); if (unlikely((__pyx_t_2 == ((CGL_int)-1)) && PyErr_Occurred())) __PYX_ERR(0, 1582, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_v_self->c_vertex.bone_ids.y = __pyx_t_2;

  /* "cgl_wrapper.pyx":1583
 *         self.c_vertex.bone_ids.x = value.x
 *         self.c_vertex.bone_ids.y = value.y
 *         self.c_vertex.bone_ids.z = value.z             # <<<<<<<<<<<<<<
 *         self.c_vertex.bone_ids.w = value.w
 * 
 */
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_value), __pyx_n_s_z); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1583, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = __Pyx_PyInt_As_CGL_int(__pyx_t_1); if (unlikely((__pyx_t_2 == ((CGL_int)-1)) && PyErr_Occurred())) __PYX_ERR(0, 1583, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_v_self->c_vertex.bone_ids.z = __pyx_t_2;

  /* "cgl_wrapper.pyx":1584
 *         self.c_vertex.bone_ids.y = value.y
 *         self.c_vertex.bone_ids.z = value.z
 *         self.c_vertex.bone_ids.w = value.w             # <<<<<<<<<<<<<<
 * 
 *     def __init__(self, c_vertex = None):
 */
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_value), __pyx_n_s_w); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1584, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = __Pyx_PyInt_As_CGL_int(__pyx_t_1); if (unlikely((__pyx_t_2 == ((CGL_int)-1)) && PyErr_Occurred())) __PYX_ERR(0, 1584, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_v_self->c_vertex.bone_ids.w = __pyx_t_2;

  /* "cgl_wrapper.pyx":1580
 * 
 *     @bone_ids.setter
 *     def bone_ids(self, value: ivec4):             # <<<<<<<<<<<<<<
 *         self.c_vertex.bone_ids.x = value.x
 *         self.c_vertex.bone_ids.y = value.y
 */

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cgl.mesh_vertex.bone_ids.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cgl_wrapper.pyx":1586
 *         self.c_vertex.bone_ids.w = value.w
 * 
 *     def __init__(self, c_vertex = None):             # <<<<<<<<<<<<<<
 *         if c_vertex is not None:
 *             self.c_vertex = c_vertex
 */

/* Python wrapper */
static int __pyx_pw_3cgl_11mesh_vertex_1__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static int __pyx_pw_3cgl_11mesh_vertex_1__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  PyObject *__pyx_v_c_vertex = 0;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__init__ (wrapper)", 0);
  {
    static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_c_vertex,0};
    PyObject* values[1] = {0};
    values[0] = ((PyObject *)Py_None);
    if (unlikely(__pyx_kwds)) {
      Py_ssize_t kw_args;
      const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
      switch (pos_args) {
        case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      kw_args = PyDict_Size(__pyx_kwds);
      switch (pos_args) {
        case  0:
        if (kw_args > 0) {
          PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_c_vertex);
          if (value) { values[0] = value; kw_args--; }
        }
      }
      if (unlikely(kw_args > 0)) {
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "__init__") < 0)) __PYX_ERR(0, 1586, __pyx_L3_error)
      }
    } else {
      switch (PyTuple_GET_SIZE(__pyx_args)) {
        case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
    }
    __pyx_v_c_vertex = values[0];
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__init__", 0, 0, 1, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 1586, __pyx_L3_error)
  __pyx_L3_error:;
  __Pyx_AddTraceback("cgl.mesh_vertex.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_3cgl_11mesh_vertex___init__(((struct __pyx_obj_3cgl_mesh_vertex *)__pyx_v_self), __pyx_v_c_vertex);

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_3cgl_11mesh_vertex___init__(struct __pyx_obj_3cgl_mesh_vertex *__pyx_v_self, PyObject *__pyx_v_c_vertex) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  struct CGL_mesh_vertex __pyx_t_3;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__init__", 0);

  /* "cgl_wrapper.pyx":1587
 * 
 *     def __init__(self, c_vertex = None):
 *         if c_vertex is not None:             # <<<<<<<<<<<<<<
 *             self.c_vertex = c_vertex
 *         else:
 */
  __pyx_t_1 = (__pyx_v_c_vertex != Py_None);
  __pyx_t_2 = (__pyx_t_1 != 0);
  if (__pyx_t_2) {

    /* "cgl_wrapper.pyx":1588
 *     def __init__(self, c_vertex = None):
 *         if c_vertex is not None:
 *             self.c_vertex = c_vertex             # <<<<<<<<<<<<<<
 *         else:
 *             self.c_vertex = CGL_mesh_vertex()
 */
    __pyx_t_3 = __pyx_convert__from_py_struct__CGL_mesh_vertex(__pyx_v_c_vertex); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 1588, __pyx_L1_error)
    __pyx_v_self->c_vertex = __pyx_t_3;

    /* "cgl_wrapper.pyx":1587
 * 
 *     def __init__(self, c_vertex = None):
 *         if c_vertex is not None:             # <<<<<<<<<<<<<<
 *             self.c_vertex = c_vertex
 *         else:
 */
    goto __pyx_L3;
  }

  /* "cgl_wrapper.pyx":1590
 *             self.c_vertex = c_vertex
 *         else:
 *             self.c_vertex = CGL_mesh_vertex()             # <<<<<<<<<<<<<<
 * 
 *     def __hash__(self):
 */
  /*else*/ {
    __pyx_v_self->c_vertex = __pyx_t_3;
  }
  __pyx_L3:;

  /* "cgl_wrapper.pyx":1586
 *         self.c_vertex.bone_ids.w = value.w
 * 
 *     def __init__(self, c_vertex = None):             # <<<<<<<<<<<<<<
 *         if c_vertex is not None:
 *             self.c_vertex = c_vertex
 */

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_AddTraceback("cgl.mesh_vertex.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cgl_wrapper.pyx":1592
 *             self.c_vertex = CGL_mesh_vertex()
 * 
 *     def __hash__(self):             # <<<<<<<<<<<<<<
 *         return hash((self.position, self.normal, self.texture_coordinates, self.bone_wieghts, self.bone_ids))
 * 
 */

/* Python wrapper */
static Py_hash_t __pyx_pw_3cgl_11mesh_vertex_3__hash__(PyObject *__pyx_v_self); /*proto*/
static Py_hash_t __pyx_pw_3cgl_11mesh_vertex_3__hash__(PyObject *__pyx_v_self) {
  Py_hash_t __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__hash__ (wrapper)", 0);
  __pyx_r = __pyx_pf_3cgl_11mesh_vertex_2__hash__(((struct __pyx_obj_3cgl_mesh_vertex *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static Py_hash_t __pyx_pf_3cgl_11mesh_vertex_2__hash__(struct __pyx_obj_3cgl_mesh_vertex *__pyx_v_self) {
  Py_hash_t __pyx_r;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  Py_hash_t __pyx_t_7;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__hash__", 0);

  /* "cgl_wrapper.pyx":1593
 * 
 *     def __hash__(self):
 *         return hash((self.position, self.normal, self.texture_coordinates, self.bone_wieghts, self.bone_ids))             # <<<<<<<<<<<<<<
 * 
 *     def __repr__(self):
 */
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_position); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1593, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_normal); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1593, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_texture_coordinates); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1593, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_bone_wieghts); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1593, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_5 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_bone_ids); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1593, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __pyx_t_6 = PyTuple_New(5); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 1593, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __Pyx_GIVEREF(__pyx_t_1);
  PyTuple_SET_ITEM(__pyx_t_6, 0, __pyx_t_1);
  __Pyx_GIVEREF(__pyx_t_2);
  PyTuple_SET_ITEM(__pyx_t_6, 1, __pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_3);
  PyTuple_SET_ITEM(__pyx_t_6, 2, __pyx_t_3);
  __Pyx_GIVEREF(__pyx_t_4);
  PyTuple_SET_ITEM(__pyx_t_6, 3, __pyx_t_4);
  __Pyx_GIVEREF(__pyx_t_5);
  PyTuple_SET_ITEM(__pyx_t_6, 4, __pyx_t_5);
  __pyx_t_1 = 0;
  __pyx_t_2 = 0;
  __pyx_t_3 = 0;
  __pyx_t_4 = 0;
  __pyx_t_5 = 0;
  __pyx_t_7 = PyObject_Hash(__pyx_t_6); if (unlikely(__pyx_t_7 == ((Py_hash_t)-1))) __PYX_ERR(0, 1593, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
  __pyx_r = __pyx_t_7;
  goto __pyx_L0;

  /* "cgl_wrapper.pyx":1592
 *             self.c_vertex = CGL_mesh_vertex()
 * 
 *     def __hash__(self):             # <<<<<<<<<<<<<<
 *         return hash((self.position, self.normal, self.texture_coordinates, self.bone_wieghts, self.bone_ids))
 * 
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_AddTraceback("cgl.mesh_vertex.__hash__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  if (unlikely(__pyx_r == -1) && !PyErr_Occurred()) __pyx_r = -2;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cgl_wrapper.pyx":1595
 *         return hash((self.position, self.normal, self.texture_coordinates, self.bone_wieghts, self.bone_ids))
 * 
 *     def __repr__(self):             # <<<<<<<<<<<<<<
 *         return f"mesh_vertex({self.position}, {self.normal}, {self.texture_coordinates}, {self.bone_wieghts}, {self.bone_ids})"
 * 
 */

/* Python wrapper */
static PyObject *__pyx_pw_3cgl_11mesh_vertex_5__repr__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_3cgl_11mesh_vertex_5__repr__(PyObject *__pyx_v_self) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__repr__ (wrapper)", 0);
  __pyx_r = __pyx_pf_3cgl_11mesh_vertex_4__repr__(((struct __pyx_obj_3cgl_mesh_vertex *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_3cgl_11mesh_vertex_4__repr__(struct __pyx_obj_3cgl_mesh_vertex *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  Py_ssize_t __pyx_t_2;
  Py_UCS4 __pyx_t_3;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__repr__", 0);

  /* "cgl_wrapper.pyx":1596
 * 
 *     def __repr__(self):
 *         return f"mesh_vertex({self.position}, {self.normal}, {self.texture_coordinates}, {self.bone_wieghts}, {self.bone_ids})"             # <<<<<<<<<<<<<<
 * 
 *     def __str__(self):
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = PyTuple_New(11); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1596, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = 0;
  __pyx_t_3 = 127;
  __Pyx_INCREF(__pyx_kp_u_mesh_vertex);
  __pyx_t_2 += 12;
  __Pyx_GIVEREF(__pyx_kp_u_mesh_vertex);
  PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_kp_u_mesh_vertex);
  __pyx_t_4 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_position); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1596, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_5 = __Pyx_PyObject_FormatSimple(__pyx_t_4, __pyx_empty_unicode); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1596, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __pyx_t_3 = (__Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_5) > __pyx_t_3) ? __Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_5) : __pyx_t_3;
  __pyx_t_2 += __Pyx_PyUnicode_GET_LENGTH(__pyx_t_5);
  __Pyx_GIVEREF(__pyx_t_5);
  PyTuple_SET_ITEM(__pyx_t_1, 1, __pyx_t_5);
  __pyx_t_5 = 0;
  __Pyx_INCREF(__pyx_kp_u__3);
  __pyx_t_2 += 2;
  __Pyx_GIVEREF(__pyx_kp_u__3);
  PyTuple_SET_ITEM(__pyx_t_1, 2, __pyx_kp_u__3);
  __pyx_t_5 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_normal); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1596, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __pyx_t_4 = __Pyx_PyObject_FormatSimple(__pyx_t_5, __pyx_empty_unicode); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1596, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
  __pyx_t_3 = (__Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_4) > __pyx_t_3) ? __Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_4) : __pyx_t_3;
  __pyx_t_2 += __Pyx_PyUnicode_GET_LENGTH(__pyx_t_4);
  __Pyx_GIVEREF(__pyx_t_4);
  PyTuple_SET_ITEM(__pyx_t_1, 3, __pyx_t_4);
  __pyx_t_4 = 0;
  __Pyx_INCREF(__pyx_kp_u__3);
  __pyx_t_2 += 2;
  __Pyx_GIVEREF(__pyx_kp_u__3);
  PyTuple_SET_ITEM(__pyx_t_1, 4, __pyx_kp_u__3);
  __pyx_t_4 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_texture_coordinates); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1596, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_5 = __Pyx_PyObject_FormatSimple(__pyx_t_4, __pyx_empty_unicode); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1596, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __pyx_t_3 = (__Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_5) > __pyx_t_3) ? __Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_5) : __pyx_t_3;
  __pyx_t_2 += __Pyx_PyUnicode_GET_LENGTH(__pyx_t_5);
  __Pyx_GIVEREF(__pyx_t_5);
  PyTuple_SET_ITEM(__pyx_t_1, 5, __pyx_t_5);
  __pyx_t_5 = 0;
  __Pyx_INCREF(__pyx_kp_u__3);
  __pyx_t_2 += 2;
  __Pyx_GIVEREF(__pyx_kp_u__3);
  PyTuple_SET_ITEM(__pyx_t_1, 6, __pyx_kp_u__3);
  __pyx_t_5 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_bone_wieghts); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1596, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __pyx_t_4 = __Pyx_PyObject_FormatSimple(__pyx_t_5, __pyx_empty_unicode); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1596, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
  __pyx_t_3 = (__Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_4) > __pyx_t_3) ? __Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_4) : __pyx_t_3;
  __pyx_t_2 += __Pyx_PyUnicode_GET_LENGTH(__pyx_t_4);
  __Pyx_GIVEREF(__pyx_t_4);
  PyTuple_SET_ITEM(__pyx_t_1, 7, __pyx_t_4);
  __pyx_t_4 = 0;
  __Pyx_INCREF(__pyx_kp_u__3);
  __pyx_t_2 += 2;
  __Pyx_GIVEREF(__pyx_kp_u__3);
  PyTuple_SET_ITEM(__pyx_t_1, 8, __pyx_kp_u__3);
  __pyx_t_4 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_bone_ids); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1596, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_5 = __Pyx_PyObject_FormatSimple(__pyx_t_4, __pyx_empty_unicode); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1596, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __pyx_t_3 = (__Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_5) > __pyx_t_3) ? __Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_5) : __pyx_t_3;
  __pyx_t_2 += __Pyx_PyUnicode_GET_LENGTH(__pyx_t_5);
  __Pyx_GIVEREF(__pyx_t_5);
  PyTuple_SET_ITEM(__pyx_t_1, 9, __pyx_t_5);
  __pyx_t_5 = 0;
  __Pyx_INCREF(__pyx_kp_u__4);
  __pyx_t_2 += 1;
  __Pyx_GIVEREF(__pyx_kp_u__4);
  PyTuple_SET_ITEM(__pyx_t_1, 10, __pyx_kp_u__4);
  __pyx_t_5 = __Pyx_PyUnicode_Join(__pyx_t_1, 11, __pyx_t_2, __pyx_t_3); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1596, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_r = __pyx_t_5;
  __pyx_t_5 = 0;
  goto __pyx_L0;

  /* "cgl_wrapper.pyx":1595
 *         return hash((self.position, self.normal, self.texture_coordinates, self.bone_wieghts, self.bone_ids))
 * 
 *     def __repr__(self):             # <<<<<<<<<<<<<<
 *         return f"mesh_vertex({self.position}, {self.normal}, {self.texture_coordinates}, {self.bone_wieghts}, {self.bone_ids})"
 * 
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("cgl.mesh_vertex.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cgl_wrapper.pyx":1598
 *         return f"mesh_vertex({self.position}, {self.normal}, {self.texture_coordinates}, {self.bone_wieghts}, {self.bone_ids})"
 * 
 *     def __str__(self):             # <<<<<<<<<<<<<<
 *         return f"mesh_vertex({self.position}, {self.normal}, {self.texture_coordinates}, {self.bone_wieghts}, {self.bone_ids})"
 * 
 */

/* Python wrapper */
static PyObject *__pyx_pw_3cgl_11mesh_vertex_7__str__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_3cgl_11mesh_vertex_7__str__(PyObject *__pyx_v_self) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__str__ (wrapper)", 0);
  __pyx_r = __pyx_pf_3cgl_11mesh_vertex_6__str__(((struct __pyx_obj_3cgl_mesh_vertex *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_3cgl_11mesh_vertex_6__str__(struct __pyx_obj_3cgl_mesh_vertex *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  Py_ssize_t __pyx_t_2;
  Py_UCS4 __pyx_t_3;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__str__", 0);

  /* "cgl_wrapper.pyx":1599
 * 
 *     def __str__(self):
 *         return f"mesh_vertex({self.position}, {self.normal}, {self.texture_coordinates}, {self.bone_wieghts}, {self.bone_ids})"             # <<<<<<<<<<<<<<
 * 
 * 
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = PyTuple_New(11); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1599, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = 0;
  __pyx_t_3 = 127;
  __Pyx_INCREF(__pyx_kp_u_mesh_vertex);
  __pyx_t_2 += 12;
  __Pyx_GIVEREF(__pyx_kp_u_mesh_vertex);
  PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_kp_u_mesh_vertex);
  __pyx_t_4 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_position); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1599, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_5 = __Pyx_PyObject_FormatSimple(__pyx_t_4, __pyx_empty_unicode); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1599, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __pyx_t_3 = (__Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_5) > __pyx_t_3) ? __Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_5) : __pyx_t_3;
  __pyx_t_2 += __Pyx_PyUnicode_GET_LENGTH(__pyx_t_5);
  __Pyx_GIVEREF(__pyx_t_5);
  PyTuple_SET_ITEM(__pyx_t_1, 1, __pyx_t_5);
  __pyx_t_5 = 0;
  __Pyx_INCREF(__pyx_kp_u__3);
  __pyx_t_2 += 2;
  __Pyx_GIVEREF(__pyx_kp_u__3);
  PyTuple_SET_ITEM(__pyx_t_1, 2, __pyx_kp_u__3);
  __pyx_t_5 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_normal); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1599, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __pyx_t_4 = __Pyx_PyObject_FormatSimple(__pyx_t_5, __pyx_empty_unicode); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1599, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
  __pyx_t_3 = (__Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_4) > __pyx_t_3) ? __Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_4) : __pyx_t_3;
  __pyx_t_2 += __Pyx_PyUnicode_GET_LENGTH(__pyx_t_4);
  __Pyx_GIVEREF(__pyx_t_4);
  PyTuple_SET_ITEM(__pyx_t_1, 3, __pyx_t_4);
  __pyx_t_4 = 0;
  __Pyx_INCREF(__pyx_kp_u__3);
  __pyx_t_2 += 2;
  __Pyx_GIVEREF(__pyx_kp_u__3);
  PyTuple_SET_ITEM(__pyx_t_1, 4, __pyx_kp_u__3);
  __pyx_t_4 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_texture_coordinates); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1599, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_5 = __Pyx_PyObject_FormatSimple(__pyx_t_4, __pyx_empty_unicode); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1599, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __pyx_t_3 = (__Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_5) > __pyx_t_3) ? __Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_5) : __pyx_t_3;
  __pyx_t_2 += __Pyx_PyUnicode_GET_LENGTH(__pyx_t_5);
  __Pyx_GIVEREF(__pyx_t_5);
  PyTuple_SET_ITEM(__pyx_t_1, 5, __pyx_t_5);
  __pyx_t_5 = 0;
  __Pyx_INCREF(__pyx_kp_u__3);
  __pyx_t_2 += 2;
  __Pyx_GIVEREF(__pyx_kp_u__3);
  PyTuple_SET_ITEM(__pyx_t_1, 6, __pyx_kp_u__3);
  __pyx_t_5 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_bone_wieghts); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1599, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __pyx_t_4 = __Pyx_PyObject_FormatSimple(__pyx_t_5, __pyx_empty_unicode); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1599, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
  __pyx_t_3 = (__Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_4) > __pyx_t_3) ? __Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_4) : __pyx_t_3;
  __pyx_t_2 += __Pyx_PyUnicode_GET_LENGTH(__pyx_t_4);
  __Pyx_GIVEREF(__pyx_t_4);
  PyTuple_SET_ITEM(__pyx_t_1, 7, __pyx_t_4);
  __pyx_t_4 = 0;
  __Pyx_INCREF(__pyx_kp_u__3);
  __pyx_t_2 += 2;
  __Pyx_GIVEREF(__pyx_kp_u__3);
  PyTuple_SET_ITEM(__pyx_t_1, 8, __pyx_kp_u__3);
  __pyx_t_4 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_bone_ids); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1599, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_5 = __Pyx_PyObject_FormatSimple(__pyx_t_4, __pyx_empty_unicode); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1599, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __pyx_t_3 = (__Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_5) > __pyx_t_3) ? __Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_5) : __pyx_t_3;
  __pyx_t_2 += __Pyx_PyUnicode_GET_LENGTH(__pyx_t_5);
  __Pyx_GIVEREF(__pyx_t_5);
  PyTuple_SET_ITEM(__pyx_t_1, 9, __pyx_t_5);
  __pyx_t_5 = 0;
  __Pyx_INCREF(__pyx_kp_u__4);
  __pyx_t_2 += 1;
  __Pyx_GIVEREF(__pyx_kp_u__4);
  PyTuple_SET_ITEM(__pyx_t_1, 10, __pyx_kp_u__4);
  __pyx_t_5 = __Pyx_PyUnicode_Join(__pyx_t_1, 11, __pyx_t_2, __pyx_t_3); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1599, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_r = __pyx_t_5;
  __pyx_t_5 = 0;
  goto __pyx_L0;

  /* "cgl_wrapper.pyx":1598
 *         return f"mesh_vertex({self.position}, {self.normal}, {self.texture_coordinates}, {self.bone_wieghts}, {self.bone_ids})"
 * 
 *     def __str__(self):             # <<<<<<<<<<<<<<
 *         return f"mesh_vertex({self.position}, {self.normal}, {self.texture_coordinates}, {self.bone_wieghts}, {self.bone_ids})"
 * 
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("cgl.mesh_vertex.__str__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError("Pickling of struct members such as self.c_vertex must be explicitly requested with @auto_pickle(True)")
 * def __setstate_cython__(self, __pyx_state):
 */

/* Python wrapper */
static PyObject *__pyx_pw_3cgl_11mesh_vertex_9__reduce_cython__(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/
static PyObject *__pyx_pw_3cgl_11mesh_vertex_9__reduce_cython__(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__reduce_cython__ (wrapper)", 0);
  __pyx_r = __pyx_pf_3cgl_11mesh_vertex_8__reduce_cython__(((struct __pyx_obj_3cgl_mesh_vertex *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_3cgl_11mesh_vertex_8__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_3cgl_mesh_vertex *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__reduce_cython__", 0);

  /* "(tree fragment)":2
 * def __reduce_cython__(self):
 *     raise TypeError("Pickling of struct members such as self.c_vertex must be explicitly requested with @auto_pickle(True)")             # <<<<<<<<<<<<<<
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError("Pickling of struct members such as self.c_vertex must be explicitly requested with @auto_pickle(True)")
 */
  __pyx_t_1 = __Pyx_PyObject_Call(__pyx_builtin_TypeError, __pyx_tuple__25, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 2, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_Raise(__pyx_t_1, 0, 0, 0);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __PYX_ERR(1, 2, __pyx_L1_error)

  /* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError("Pickling of struct members such as self.c_vertex must be explicitly requested with @auto_pickle(True)")
 * def __setstate_cython__(self, __pyx_state):
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cgl.mesh_vertex.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError("Pickling of struct members such as self.c_vertex must be explicitly requested with @auto_pickle(True)")
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError("Pickling of struct members such as self.c_vertex must be explicitly requested with @auto_pickle(True)")
 */

/* Python wrapper */
static PyObject *__pyx_pw_3cgl_11mesh_vertex_11__setstate_cython__(PyObject *__pyx_v_self, PyObject *__pyx_v___pyx_state); /*proto*/
static PyObject *__pyx_pw_3cgl_11mesh_vertex_11__setstate_cython__(PyObject *__pyx_v_self, PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__setstate_cython__ (wrapper)", 0);
  __pyx_r = __pyx_pf_3cgl_11mesh_vertex_10__setstate_cython__(((struct __pyx_obj_3cgl_mesh_vertex *)__pyx_v_self), ((PyObject *)__pyx_v___pyx_state));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_3cgl_11mesh_vertex_10__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_3cgl_mesh_vertex *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__setstate_cython__", 0);

  /* "(tree fragment)":4
 *     raise TypeError("Pickling of struct members such as self.c_vertex must be explicitly requested with @auto_pickle(True)")
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError("Pickling of struct members such as self.c_vertex must be explicitly requested with @auto_pickle(True)")             # <<<<<<<<<<<<<<
 */
  __pyx_t_1 = __Pyx_PyObject_Call(__pyx_builtin_TypeError, __pyx_tuple__26, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 4, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_Raise(__pyx_t_1, 0, 0, 0);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __PYX_ERR(1, 4, __pyx_L1_error)

  /* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError("Pickling of struct members such as self.c_vertex must be explicitly requested with @auto_pickle(True)")
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError("Pickling of struct members such as self.c_vertex must be explicitly requested with @auto_pickle(True)")
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cgl.mesh_vertex.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cgl_wrapper.pyx":1606
 * 
 *     @property
 *     def index_count(self) -> int:             # <<<<<<<<<<<<<<
 *         return self.c_mesh.index_count
 * 
 */

/* Python wrapper */
static PyObject *__pyx_pw_3cgl_8mesh_cpu_11index_count_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_3cgl_8mesh_cpu_11index_count_1__get__(PyObject *__pyx_v_self) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_r = __pyx_pf_3cgl_8mesh_cpu_11index_count___get__(((struct __pyx_obj_3cgl_mesh_cpu *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_3cgl_8mesh_cpu_11index_count___get__(struct __pyx_obj_3cgl_mesh_cpu *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__get__", 0);

  /* "cgl_wrapper.pyx":1607
 *     @property
 *     def index_count(self) -> int:
 *         return self.c_mesh.index_count             # <<<<<<<<<<<<<<
 * 
 *     @property
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyInt_From_uint64_t(__pyx_v_self->c_mesh->index_count); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1607, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cgl_wrapper.pyx":1606
 * 
 *     @property
 *     def index_count(self) -> int:             # <<<<<<<<<<<<<<
 *         return self.c_mesh.index_count
 * 
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cgl.mesh_cpu.index_count.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cgl_wrapper.pyx":1610
 * 
 *     @property
 *     def index_count_used(self) -> int:             # <<<<<<<<<<<<<<
 *         return self.c_mesh.index_count_used
 * 
 */

/* Python wrapper */
static PyObject *__pyx_pw_3cgl_8mesh_cpu_16index_count_used_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_3cgl_8mesh_cpu_16index_count_used_1__get__(PyObject *__pyx_v_self) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_r = __pyx_pf_3cgl_8mesh_cpu_16index_count_used___get__(((struct __pyx_obj_3cgl_mesh_cpu *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_3cgl_8mesh_cpu_16index_count_used___get__(struct __pyx_obj_3cgl_mesh_cpu *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__get__", 0);

  /* "cgl_wrapper.pyx":1611
 *     @property
 *     def index_count_used(self) -> int:
 *         return self.c_mesh.index_count_used             # <<<<<<<<<<<<<<
 * 
 *     @property
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyInt_From_uint64_t(__pyx_v_self->c_mesh->index_count_used); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1611, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cgl_wrapper.pyx":1610
 * 
 *     @property
 *     def index_count_used(self) -> int:             # <<<<<<<<<<<<<<
 *         return self.c_mesh.index_count_used
 * 
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cgl.mesh_cpu.index_count_used.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cgl_wrapper.pyx":1614
 * 
 *     @property
 *     def indices(self) -> list:             # <<<<<<<<<<<<<<
 *         return [self.c_mesh.indices[i] for i in range(self.index_count_used)]
 * 
 */

/* Python wrapper */
static PyObject *__pyx_pw_3cgl_8mesh_cpu_7indices_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_3cgl_8mesh_cpu_7indices_1__get__(PyObject *__pyx_v_self) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_r = __pyx_pf_3cgl_8mesh_cpu_7indices___get__(((struct __pyx_obj_3cgl_mesh_cpu *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_3cgl_8mesh_cpu_7indices___get__(struct __pyx_obj_3cgl_mesh_cpu *__pyx_v_self) {
  PyObject *__pyx_v_i = NULL;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  Py_ssize_t __pyx_t_4;
  PyObject *(*__pyx_t_5)(PyObject *);
  Py_ssize_t __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__get__", 0);

  /* "cgl_wrapper.pyx":1615
 *     @property
 *     def indices(self) -> list:
 *         return [self.c_mesh.indices[i] for i in range(self.index_count_used)]             # <<<<<<<<<<<<<<
 * 
 *     @indices.setter
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = PyList_New(0); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1615, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_index_count_used); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1615, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = __Pyx_PyObject_CallOneArg(__pyx_builtin_range, __pyx_t_2); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1615, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  if (likely(PyList_CheckExact(__pyx_t_3)) || PyTuple_CheckExact(__pyx_t_3)) {
    __pyx_t_2 = __pyx_t_3; __Pyx_INCREF(__pyx_t_2); __pyx_t_4 = 0;
    __pyx_t_5 = NULL;
  } else {
    __pyx_t_4 = -1; __pyx_t_2 = PyObject_GetIter(__pyx_t_3); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1615, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_t_5 = Py_TYPE(__pyx_t_2)->tp_iternext; if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1615, __pyx_L1_error)
  }
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  for (;;) {
    if (likely(!__pyx_t_5)) {
      if (likely(PyList_CheckExact(__pyx_t_2))) {
        if (__pyx_t_4 >= PyList_GET_SIZE(__pyx_t_2)) break;
        #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
        __pyx_t_3 = PyList_GET_ITEM(__pyx_t_2, __pyx_t_4); __Pyx_INCREF(__pyx_t_3); __pyx_t_4++; if (unlikely(0 < 0)) __PYX_ERR(0, 1615, __pyx_L1_error)
        #else
        __pyx_t_3 = PySequence_ITEM(__pyx_t_2, __pyx_t_4); __pyx_t_4++; if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1615, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_3);
        #endif
      } else {
        if (__pyx_t_4 >= PyTuple_GET_SIZE(__pyx_t_2)) break;
        #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
        __pyx_t_3 = PyTuple_GET_ITEM(__pyx_t_2, __pyx_t_4); __Pyx_INCREF(__pyx_t_3); __pyx_t_4++; if (unlikely(0 < 0)) __PYX_ERR(0, 1615, __pyx_L1_error)
        #else
        __pyx_t_3 = PySequence_ITEM(__pyx_t_2, __pyx_t_4); __pyx_t_4++; if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1615, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_3);
        #endif
      }
    } else {
      __pyx_t_3 = __pyx_t_5(__pyx_t_2);
      if (unlikely(!__pyx_t_3)) {
        PyObject* exc_type = PyErr_Occurred();
        if (exc_type) {
          if (likely(__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) PyErr_Clear();
          else __PYX_ERR(0, 1615, __pyx_L1_error)
        }
        break;
      }
      __Pyx_GOTREF(__pyx_t_3);
    }
    __Pyx_XDECREF_SET(__pyx_v_i, __pyx_t_3);
    __pyx_t_3 = 0;
    __pyx_t_6 = __Pyx_PyIndex_AsSsize_t(__pyx_v_i); if (unlikely((__pyx_t_6 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 1615, __pyx_L1_error)
    __pyx_t_3 = __Pyx_PyInt_From_CGL_uint((__pyx_v_self->c_mesh->indices[__pyx_t_6])); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1615, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    if (unlikely(__Pyx_ListComp_Append(__pyx_t_1, (PyObject*)__pyx_t_3))) __PYX_ERR(0, 1615, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  }
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cgl_wrapper.pyx":1614
 * 
 *     @property
 *     def indices(self) -> list:             # <<<<<<<<<<<<<<
 *         return [self.c_mesh.indices[i] for i in range(self.index_count_used)]
 * 
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_AddTraceback("cgl.mesh_cpu.indices.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_i);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cgl_wrapper.pyx":1618
 * 
 *     @indices.setter
 *     def indices(self, value: list):             # <<<<<<<<<<<<<<
 *         if len(value) > self.index_count:
 *             raise ValueError("The number of indices is greater than the maximum number of indices")
 */

/* Python wrapper */
static int __pyx_pw_3cgl_8mesh_cpu_7indices_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value); /*proto*/
static int __pyx_pw_3cgl_8mesh_cpu_7indices_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value) {
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_value), (&PyList_Type), 1, "value", 1))) __PYX_ERR(0, 1618, __pyx_L1_error)
  __pyx_r = __pyx_pf_3cgl_8mesh_cpu_7indices_2__set__(((struct __pyx_obj_3cgl_mesh_cpu *)__pyx_v_self), ((PyObject*)__pyx_v_value));

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_3cgl_8mesh_cpu_7indices_2__set__(struct __pyx_obj_3cgl_mesh_cpu *__pyx_v_self, PyObject *__pyx_v_value) {
  PyObject *__pyx_v_i = NULL;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  Py_ssize_t __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  int __pyx_t_5;
  PyObject *(*__pyx_t_6)(PyObject *);
  CGL_uint __pyx_t_7;
  Py_ssize_t __pyx_t_8;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__set__", 0);

  /* "cgl_wrapper.pyx":1619
 *     @indices.setter
 *     def indices(self, value: list):
 *         if len(value) > self.index_count:             # <<<<<<<<<<<<<<
 *             raise ValueError("The number of indices is greater than the maximum number of indices")
 *         self.c_mesh.index_count_used = len(value)
 */
  if (unlikely(__pyx_v_value == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "object of type 'NoneType' has no len()");
    __PYX_ERR(0, 1619, __pyx_L1_error)
  }
  __pyx_t_1 = PyList_GET_SIZE(__pyx_v_value); if (unlikely(__pyx_t_1 == ((Py_ssize_t)-1))) __PYX_ERR(0, 1619, __pyx_L1_error)
  __pyx_t_2 = PyInt_FromSsize_t(__pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1619, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_index_count); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1619, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = PyObject_RichCompare(__pyx_t_2, __pyx_t_3, Py_GT); __Pyx_XGOTREF(__pyx_t_4); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1619, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __pyx_t_5 = __Pyx_PyObject_IsTrue(__pyx_t_4); if (unlikely(__pyx_t_5 < 0)) __PYX_ERR(0, 1619, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  if (unlikely(__pyx_t_5)) {

    /* "cgl_wrapper.pyx":1620
 *     def indices(self, value: list):
 *         if len(value) > self.index_count:
 *             raise ValueError("The number of indices is greater than the maximum number of indices")             # <<<<<<<<<<<<<<
 *         self.c_mesh.index_count_used = len(value)
 *         for i in range(self.index_count_used):
 */
    __pyx_t_4 = __Pyx_PyObject_Call(__pyx_builtin_ValueError, __pyx_tuple__27, NULL); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1620, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_Raise(__pyx_t_4, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __PYX_ERR(0, 1620, __pyx_L1_error)

    /* "cgl_wrapper.pyx":1619
 *     @indices.setter
 *     def indices(self, value: list):
 *         if len(value) > self.index_count:             # <<<<<<<<<<<<<<
 *             raise ValueError("The number of indices is greater than the maximum number of indices")
 *         self.c_mesh.index_count_used = len(value)
 */
  }

  /* "cgl_wrapper.pyx":1621
 *         if len(value) > self.index_count:
 *             raise ValueError("The number of indices is greater than the maximum number of indices")
 *         self.c_mesh.index_count_used = len(value)             # <<<<<<<<<<<<<<
 *         for i in range(self.index_count_used):
 *             self.c_mesh.indices[i] = value[i]
 */
  if (unlikely(__pyx_v_value == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "object of type 'NoneType' has no len()");
    __PYX_ERR(0, 1621, __pyx_L1_error)
  }
  __pyx_t_1 = PyList_GET_SIZE(__pyx_v_value); if (unlikely(__pyx_t_1 == ((Py_ssize_t)-1))) __PYX_ERR(0, 1621, __pyx_L1_error)
  __pyx_v_self->c_mesh->index_count_used = __pyx_t_1;

  /* "cgl_wrapper.pyx":1622
 *             raise ValueError("The number of indices is greater than the maximum number of indices")
 *         self.c_mesh.index_count_used = len(value)
 *         for i in range(self.index_count_used):             # <<<<<<<<<<<<<<
 *             self.c_mesh.indices[i] = value[i]
 * 
 */
  __pyx_t_4 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_index_count_used); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1622, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_3 = __Pyx_PyObject_CallOneArg(__pyx_builtin_range, __pyx_t_4); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1622, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  if (likely(PyList_CheckExact(__pyx_t_3)) || PyTuple_CheckExact(__pyx_t_3)) {
    __pyx_t_4 = __pyx_t_3; __Pyx_INCREF(__pyx_t_4); __pyx_t_1 = 0;
    __pyx_t_6 = NULL;
  } else {
    __pyx_t_1 = -1; __pyx_t_4 = PyObject_GetIter(__pyx_t_3); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1622, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __pyx_t_6 = Py_TYPE(__pyx_t_4)->tp_iternext; if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 1622, __pyx_L1_error)
  }
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  for (;;) {
    if (likely(!__pyx_t_6)) {
      if (likely(PyList_CheckExact(__pyx_t_4))) {
        if (__pyx_t_1 >= PyList_GET_SIZE(__pyx_t_4)) break;
        #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
        __pyx_t_3 = PyList_GET_ITEM(__pyx_t_4, __pyx_t_1); __Pyx_INCREF(__pyx_t_3); __pyx_t_1++; if (unlikely(0 < 0)) __PYX_ERR(0, 1622, __pyx_L1_error)
        #else
        __pyx_t_3 = PySequence_ITEM(__pyx_t_4, __pyx_t_1); __pyx_t_1++; if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1622, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_3);
        #endif
      } else {
        if (__pyx_t_1 >= PyTuple_GET_SIZE(__pyx_t_4)) break;
        #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
        __pyx_t_3 = PyTuple_GET_ITEM(__pyx_t_4, __pyx_t_1); __Pyx_INCREF(__pyx_t_3); __pyx_t_1++; if (unlikely(0 < 0)) __PYX_ERR(0, 1622, __pyx_L1_error)
        #else
        __pyx_t_3 = PySequence_ITEM(__pyx_t_4, __pyx_t_1); __pyx_t_1++; if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1622, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_3);
        #endif
      }
    } else {
      __pyx_t_3 = __pyx_t_6(__pyx_t_4);
      if (unlikely(!__pyx_t_3)) {
        PyObject* exc_type = PyErr_Occurred();
        if (exc_type) {
          if (likely(__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) PyErr_Clear();
          else __PYX_ERR(0, 1622, __pyx_L1_error)
        }
        break;
      }
      __Pyx_GOTREF(__pyx_t_3);
    }
    __Pyx_XDECREF_SET(__pyx_v_i, __pyx_t_3);
    __pyx_t_3 = 0;

    /* "cgl_wrapper.pyx":1623
 *         self.c_mesh.index_count_used = len(value)
 *         for i in range(self.index_count_used):
 *             self.c_mesh.indices[i] = value[i]             # <<<<<<<<<<<<<<
 * 
 *     @property
 */
    if (unlikely(__pyx_v_value == Py_None)) {
      PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
      __PYX_ERR(0, 1623, __pyx_L1_error)
    }
    __pyx_t_3 = __Pyx_PyObject_GetItem(__pyx_v_value, __pyx_v_i); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1623, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_7 = __Pyx_PyInt_As_CGL_uint(__pyx_t_3); if (unlikely((__pyx_t_7 == ((CGL_uint)-1)) && PyErr_Occurred())) __PYX_ERR(0, 1623, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __pyx_t_8 = __Pyx_PyIndex_AsSsize_t(__pyx_v_i); if (unlikely((__pyx_t_8 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 1623, __pyx_L1_error)
    (__pyx_v_self->c_mesh->indices[__pyx_t_8]) = __pyx_t_7;

    /* "cgl_wrapper.pyx":1622
 *             raise ValueError("The number of indices is greater than the maximum number of indices")
 *         self.c_mesh.index_count_used = len(value)
 *         for i in range(self.index_count_used):             # <<<<<<<<<<<<<<
 *             self.c_mesh.indices[i] = value[i]
 * 
 */
  }
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "cgl_wrapper.pyx":1618
 * 
 *     @indices.setter
 *     def indices(self, value: list):             # <<<<<<<<<<<<<<
 *         if len(value) > self.index_count:
 *             raise ValueError("The number of indices is greater than the maximum number of indices")
 */

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("cgl.mesh_cpu.indices.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_i);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cgl_wrapper.pyx":1626
 * 
 *     @property
 *     def vertex_count(self) -> int:             # <<<<<<<<<<<<<<
 *         return self.c_mesh.vertex_count
 * 
 */

/* Python wrapper */
static PyObject *__pyx_pw_3cgl_8mesh_cpu_12vertex_count_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_3cgl_8mesh_cpu_12vertex_count_1__get__(PyObject *__pyx_v_self) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_r = __pyx_pf_3cgl_8mesh_cpu_12vertex_count___get__(((struct __pyx_obj_3cgl_mesh_cpu *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_3cgl_8mesh_cpu_12vertex_count___get__(struct __pyx_obj_3cgl_mesh_cpu *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__get__", 0);

  /* "cgl_wrapper.pyx":1627
 *     @property
 *     def vertex_count(self) -> int:
 *         return self.c_mesh.vertex_count             # <<<<<<<<<<<<<<
 * 
 *     @property
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyInt_From_uint64_t(__pyx_v_self->c_mesh->vertex_count); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1627, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cgl_wrapper.pyx":1626
 * 
 *     @property
 *     def vertex_count(self) -> int:             # <<<<<<<<<<<<<<
 *         return self.c_mesh.vertex_count
 * 
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cgl.mesh_cpu.vertex_count.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cgl_wrapper.pyx":1630
 * 
 *     @property
 *     def vertex_count_used(self) -> int:             # <<<<<<<<<<<<<<
 *         return self.c_mesh.vertex_count_used
 * 
 */

/* Python wrapper */
static PyObject *__pyx_pw_3cgl_8mesh_cpu_17vertex_count_used_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_3cgl_8mesh_cpu_17vertex_count_used_1__get__(PyObject *__pyx_v_self) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_r = __pyx_pf_3cgl_8mesh_cpu_17vertex_count_used___get__(((struct __pyx_obj_3cgl_mesh_cpu *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_3cgl_8mesh_cpu_17vertex_count_used___get__(struct __pyx_obj_3cgl_mesh_cpu *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__get__", 0);

  /* "cgl_wrapper.pyx":1631
 *     @property
 *     def vertex_count_used(self) -> int:
 *         return self.c_mesh.vertex_count_used             # <<<<<<<<<<<<<<
 * 
 *     @property
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyInt_From_uint64_t(__pyx_v_self->c_mesh->vertex_count_used); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1631, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cgl_wrapper.pyx":1630
 * 
 *     @property
 *     def vertex_count_used(self) -> int:             # <<<<<<<<<<<<<<
 *         return self.c_mesh.vertex_count_used
 * 
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cgl.mesh_cpu.vertex_count_used.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cgl_wrapper.pyx":1634
 * 
 *     @property
 *     def vertices(self) -> list:             # <<<<<<<<<<<<<<
 *         return [mesh_vertex(self.c_mesh.vertices[i]) for i in range(self.vertex_count_used)]
 * 
 */

/* Python wrapper */
static PyObject *__pyx_pw_3cgl_8mesh_cpu_8vertices_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_3cgl_8mesh_cpu_8vertices_1__get__(PyObject *__pyx_v_self) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_r = __pyx_pf_3cgl_8mesh_cpu_8vertices___get__(((struct __pyx_obj_3cgl_mesh_cpu *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_3cgl_8mesh_cpu_8vertices___get__(struct __pyx_obj_3cgl_mesh_cpu *__pyx_v_self) {
  PyObject *__pyx_v_i = NULL;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  Py_ssize_t __pyx_t_4;
  PyObject *(*__pyx_t_5)(PyObject *);
  Py_ssize_t __pyx_t_6;
  PyObject *__pyx_t_7 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__get__", 0);

  /* "cgl_wrapper.pyx":1635
 *     @property
 *     def vertices(self) -> list:
 *         return [mesh_vertex(self.c_mesh.vertices[i]) for i in range(self.vertex_count_used)]             # <<<<<<<<<<<<<<
 * 
 *     def __init__(self, c_mesh = None):
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = PyList_New(0); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1635, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_vertex_count_used); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1635, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = __Pyx_PyObject_CallOneArg(__pyx_builtin_range, __pyx_t_2); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1635, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  if (likely(PyList_CheckExact(__pyx_t_3)) || PyTuple_CheckExact(__pyx_t_3)) {
    __pyx_t_2 = __pyx_t_3; __Pyx_INCREF(__pyx_t_2); __pyx_t_4 = 0;
    __pyx_t_5 = NULL;
  } else {
    __pyx_t_4 = -1; __pyx_t_2 = PyObject_GetIter(__pyx_t_3); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1635, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_t_5 = Py_TYPE(__pyx_t_2)->tp_iternext; if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1635, __pyx_L1_error)
  }
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  for (;;) {
    if (likely(!__pyx_t_5)) {
      if (likely(PyList_CheckExact(__pyx_t_2))) {
        if (__pyx_t_4 >= PyList_GET_SIZE(__pyx_t_2)) break;
        #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
        __pyx_t_3 = PyList_GET_ITEM(__pyx_t_2, __pyx_t_4); __Pyx_INCREF(__pyx_t_3); __pyx_t_4++; if (unlikely(0 < 0)) __PYX_ERR(0, 1635, __pyx_L1_error)
        #else
        __pyx_t_3 = PySequence_ITEM(__pyx_t_2, __pyx_t_4); __pyx_t_4++; if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1635, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_3);
        #endif
      } else {
        if (__pyx_t_4 >= PyTuple_GET_SIZE(__pyx_t_2)) break;
        #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
        __pyx_t_3 = PyTuple_GET_ITEM(__pyx_t_2, __pyx_t_4); __Pyx_INCREF(__pyx_t_3); __pyx_t_4++; if (unlikely(0 < 0)) __PYX_ERR(0, 1635, __pyx_L1_error)
        #else
        __pyx_t_3 = PySequence_ITEM(__pyx_t_2, __pyx_t_4); __pyx_t_4++; if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1635, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_3);
        #endif
      }
    } else {
      __pyx_t_3 = __pyx_t_5(__pyx_t_2);
      if (unlikely(!__pyx_t_3)) {
        PyObject* exc_type = PyErr_Occurred();
        if (exc_type) {
          if (likely(__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) PyErr_Clear();
          else __PYX_ERR(0, 1635, __pyx_L1_error)
        }
        break;
      }
      __Pyx_GOTREF(__pyx_t_3);
    }
    __Pyx_XDECREF_SET(__pyx_v_i, __pyx_t_3);
    __pyx_t_3 = 0;
    __pyx_t_6 = __Pyx_PyIndex_AsSsize_t(__pyx_v_i); if (unlikely((__pyx_t_6 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 1635, __pyx_L1_error)
    __pyx_t_3 = __pyx_convert__to_py_struct__CGL_mesh_vertex((__pyx_v_self->c_mesh->vertices[__pyx_t_6])); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1635, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_7 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_3cgl_mesh_vertex), __pyx_t_3); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 1635, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_7);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    if (unlikely(__Pyx_ListComp_Append(__pyx_t_1, (PyObject*)__pyx_t_7))) __PYX_ERR(0, 1635, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
  }
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "cgl_wrapper.pyx":1634
 * 
 *     @property
 *     def vertices(self) -> list:             # <<<<<<<<<<<<<<
 *         return [mesh_vertex(self.c_mesh.vertices[i]) for i in range(self.vertex_count_used)]
 * 
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_AddTraceback("cgl.mesh_cpu.vertices.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_i);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cgl_wrapper.pyx":1637
 *         return [mesh_vertex(self.c_mesh.vertices[i]) for i in range(self.vertex_count_used)]
 * 
 *     def __init__(self, c_mesh = None):             # <<<<<<<<<<<<<<
 *         self.c_mesh = <CGL_mesh_cpu*>c_mesh
 * 
 */

/* Python wrapper */
static int __pyx_pw_3cgl_8mesh_cpu_1__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static int __pyx_pw_3cgl_8mesh_cpu_1__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  PyObject *__pyx_v_c_mesh = 0;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__init__ (wrapper)", 0);
  {
    static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_c_mesh,0};
    PyObject* values[1] = {0};
    values[0] = ((PyObject *)Py_None);
    if (unlikely(__pyx_kwds)) {
      Py_ssize_t kw_args;
      const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
      switch (pos_args) {
        case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      kw_args = PyDict_Size(__pyx_kwds);
      switch (pos_args) {
        case  0:
        if (kw_args > 0) {
          PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_c_mesh);
          if (value) { values[0] = value; kw_args--; }
        }
      }
      if (unlikely(kw_args > 0)) {
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "__init__") < 0)) __PYX_ERR(0, 1637, __pyx_L3_error)
      }
    } else {
      switch (PyTuple_GET_SIZE(__pyx_args)) {
        case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
    }
    __pyx_v_c_mesh = values[0];
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__init__", 0, 0, 1, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 1637, __pyx_L3_error)
  __pyx_L3_error:;
  __Pyx_AddTraceback("cgl.mesh_cpu.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_3cgl_8mesh_cpu___init__(((struct __pyx_obj_3cgl_mesh_cpu *)__pyx_v_self), __pyx_v_c_mesh);

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_3cgl_8mesh_cpu___init__(struct __pyx_obj_3cgl_mesh_cpu *__pyx_v_self, PyObject *__pyx_v_c_mesh) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__init__", 0);

  /* "cgl_wrapper.pyx":1638
 * 
 *     def __init__(self, c_mesh = None):
 *         self.c_mesh = <CGL_mesh_cpu*>c_mesh             # <<<<<<<<<<<<<<
 * 
 *     def __hash__(self):
 */
  __pyx_v_self->c_mesh = ((struct CGL_mesh_cpu *)__pyx_v_c_mesh);

  /* "cgl_wrapper.pyx":1637
 *         return [mesh_vertex(self.c_mesh.vertices[i]) for i in range(self.vertex_count_used)]
 * 
 *     def __init__(self, c_mesh = None):             # <<<<<<<<<<<<<<
 *         self.c_mesh = <CGL_mesh_cpu*>c_mesh
 * 
 */

  /* function exit code */
  __pyx_r = 0;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cgl_wrapper.pyx":1640
 *         self.c_mesh = <CGL_mesh_cpu*>c_mesh
 * 
 *     def __hash__(self):             # <<<<<<<<<<<<<<
 *         return <int><CGL_ulong>self.c_mesh
 * 
 */

/* Python wrapper */
static Py_hash_t __pyx_pw_3cgl_8mesh_cpu_3__hash__(PyObject *__pyx_v_self); /*proto*/
static Py_hash_t __pyx_pw_3cgl_8mesh_cpu_3__hash__(PyObject *__pyx_v_self) {
  Py_hash_t __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__hash__ (wrapper)", 0);
  __pyx_r = __pyx_pf_3cgl_8mesh_cpu_2__hash__(((struct __pyx_obj_3cgl_mesh_cpu *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static Py_hash_t __pyx_pf_3cgl_8mesh_cpu_2__hash__(struct __pyx_obj_3cgl_mesh_cpu *__pyx_v_self) {
  Py_hash_t __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__hash__", 0);

  /* "cgl_wrapper.pyx":1641
 * 
 *     def __hash__(self):
 *         return <int><CGL_ulong>self.c_mesh             # <<<<<<<<<<<<<<
 * 
 *     def __repr__(self):
 */
  __pyx_r = ((int)((CGL_ulong)__pyx_v_self->c_mesh));
  goto __pyx_L0;

  /* "cgl_wrapper.pyx":1640
 *         self.c_mesh = <CGL_mesh_cpu*>c_mesh
 * 
 *     def __hash__(self):             # <<<<<<<<<<<<<<
 *         return <int><CGL_ulong>self.c_mesh
 * 
 */

  /* function exit code */
  __pyx_L0:;
  if (unlikely(__pyx_r == -1) && !PyErr_Occurred()) __pyx_r = -2;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cgl_wrapper.pyx":1643
 *         return <int><CGL_ulong>self.c_mesh
 * 
 *     def __repr__(self):             # <<<<<<<<<<<<<<
 *         return f"mesh_cpu({self.index_count}, {self.index_count_used}, {self.vertex_count}, {self.vertex_count_used})"
 * 
 */

/* Python wrapper */
static PyObject *__pyx_pw_3cgl_8mesh_cpu_5__repr__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_3cgl_8mesh_cpu_5__repr__(PyObject *__pyx_v_self) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__repr__ (wrapper)", 0);
  __pyx_r = __pyx_pf_3cgl_8mesh_cpu_4__repr__(((struct __pyx_obj_3cgl_mesh_cpu *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_3cgl_8mesh_cpu_4__repr__(struct __pyx_obj_3cgl_mesh_cpu *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  Py_ssize_t __pyx_t_2;
  Py_UCS4 __pyx_t_3;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__repr__", 0);

  /* "cgl_wrapper.pyx":1644
 * 
 *     def __repr__(self):
 *         return f"mesh_cpu({self.index_count}, {self.index_count_used}, {self.vertex_count}, {self.vertex_count_used})"             # <<<<<<<<<<<<<<
 * 
 *     def __str__(self):
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = PyTuple_New(9); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1644, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = 0;
  __pyx_t_3 = 127;
  __Pyx_INCREF(__pyx_kp_u_mesh_cpu);
  __pyx_t_2 += 9;
  __Pyx_GIVEREF(__pyx_kp_u_mesh_cpu);
  PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_kp_u_mesh_cpu);
  __pyx_t_4 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_index_count); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1644, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_5 = __Pyx_PyObject_FormatSimple(__pyx_t_4, __pyx_empty_unicode); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1644, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __pyx_t_3 = (__Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_5) > __pyx_t_3) ? __Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_5) : __pyx_t_3;
  __pyx_t_2 += __Pyx_PyUnicode_GET_LENGTH(__pyx_t_5);
  __Pyx_GIVEREF(__pyx_t_5);
  PyTuple_SET_ITEM(__pyx_t_1, 1, __pyx_t_5);
  __pyx_t_5 = 0;
  __Pyx_INCREF(__pyx_kp_u__3);
  __pyx_t_2 += 2;
  __Pyx_GIVEREF(__pyx_kp_u__3);
  PyTuple_SET_ITEM(__pyx_t_1, 2, __pyx_kp_u__3);
  __pyx_t_5 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_index_count_used); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1644, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __pyx_t_4 = __Pyx_PyObject_FormatSimple(__pyx_t_5, __pyx_empty_unicode); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1644, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
  __pyx_t_3 = (__Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_4) > __pyx_t_3) ? __Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_4) : __pyx_t_3;
  __pyx_t_2 += __Pyx_PyUnicode_GET_LENGTH(__pyx_t_4);
  __Pyx_GIVEREF(__pyx_t_4);
  PyTuple_SET_ITEM(__pyx_t_1, 3, __pyx_t_4);
  __pyx_t_4 = 0;
  __Pyx_INCREF(__pyx_kp_u__3);
  __pyx_t_2 += 2;
  __Pyx_GIVEREF(__pyx_kp_u__3);
  PyTuple_SET_ITEM(__pyx_t_1, 4, __pyx_kp_u__3);
  __pyx_t_4 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_vertex_count); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1644, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_5 = __Pyx_PyObject_FormatSimple(__pyx_t_4, __pyx_empty_unicode); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1644, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __pyx_t_3 = (__Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_5) > __pyx_t_3) ? __Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_5) : __pyx_t_3;
  __pyx_t_2 += __Pyx_PyUnicode_GET_LENGTH(__pyx_t_5);
  __Pyx_GIVEREF(__pyx_t_5);
  PyTuple_SET_ITEM(__pyx_t_1, 5, __pyx_t_5);
  __pyx_t_5 = 0;
  __Pyx_INCREF(__pyx_kp_u__3);
  __pyx_t_2 += 2;
  __Pyx_GIVEREF(__pyx_kp_u__3);
  PyTuple_SET_ITEM(__pyx_t_1, 6, __pyx_kp_u__3);
  __pyx_t_5 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_vertex_count_used); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1644, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __pyx_t_4 = __Pyx_PyObject_FormatSimple(__pyx_t_5, __pyx_empty_unicode); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1644, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
  __pyx_t_3 = (__Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_4) > __pyx_t_3) ? __Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_4) : __pyx_t_3;
  __pyx_t_2 += __Pyx_PyUnicode_GET_LENGTH(__pyx_t_4);
  __Pyx_GIVEREF(__pyx_t_4);
  PyTuple_SET_ITEM(__pyx_t_1, 7, __pyx_t_4);
  __pyx_t_4 = 0;
  __Pyx_INCREF(__pyx_kp_u__4);
  __pyx_t_2 += 1;
  __Pyx_GIVEREF(__pyx_kp_u__4);
  PyTuple_SET_ITEM(__pyx_t_1, 8, __pyx_kp_u__4);
  __pyx_t_4 = __Pyx_PyUnicode_Join(__pyx_t_1, 9, __pyx_t_2, __pyx_t_3); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1644, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_r = __pyx_t_4;
  __pyx_t_4 = 0;
  goto __pyx_L0;

  /* "cgl_wrapper.pyx":1643
 *         return <int><CGL_ulong>self.c_mesh
 * 
 *     def __repr__(self):             # <<<<<<<<<<<<<<
 *         return f"mesh_cpu({self.index_count}, {self.index_count_used}, {self.vertex_count}, {self.vertex_count_used})"
 * 
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("cgl.mesh_cpu.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "cgl_wrapper.pyx":1646
 *         return f"mesh_cpu({self.index_count}, {self.index_count_used}, {self.vertex_count}, {self.vertex_count_used})"
 * 
 *     def __str__(self):             # <<<<<<<<<<<<<<
 *         return f"mesh_cpu({self.index_count}, {self.index_count_used}, {self.vertex_count}, {self.vertex_count_used})"
 */

/* Python wrapper */
static PyObject *__pyx_pw_3cgl_8mesh_cpu_7__str__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_3cgl_8mesh_cpu_7__str__(PyObject *__pyx_v_self) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__str__ (wrapper)", 0);
  __pyx_r = __pyx_pf_3cgl_8mesh_cpu_6__str__(((struct __pyx_obj_3cgl_mesh_cpu *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_3cgl_8mesh_cpu_6__str__(struct __pyx_obj_3cgl_mesh_cpu *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  Py_ssize_t __pyx_t_2;
  Py_UCS4 __pyx_t_3;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__str__", 0);

  /* "cgl_wrapper.pyx":1647
 * 
 *     def __str__(self):
 *         return f"mesh_cpu({self.index_count}, {self.index_count_used}, {self.vertex_count}, {self.vertex_count_used})"             # <<<<<<<<<<<<<<
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = PyTuple_New(9); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1647, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = 0;
  __pyx_t_3 = 127;
  __Pyx_INCREF(__pyx_kp_u_mesh_cpu);
  __pyx_t_2 += 9;
  __Pyx_GIVEREF(__pyx_kp_u_mesh_cpu);
  PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_kp_u_mesh_cpu);
  __pyx_t_4 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_index_count); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1647, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_5 = __Pyx_PyObject_FormatSimple(__pyx_t_4, __pyx_empty_unicode); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1647, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __pyx_t_3 = (__Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_5) > __pyx_t_3) ? __Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_5) : __pyx_t_3;
  __pyx_t_2 += __Pyx_PyUnicode_GET_LENGTH(__pyx_t_5);
  __Pyx_GIVEREF(__pyx_t_5);
  PyTuple_SET_ITEM(__pyx_t_1, 1, __pyx_t_5);
  __pyx_t_5 = 0;
  __Pyx_INCREF(__pyx_kp_u__3);
  __pyx_t_2 += 2;
  __Pyx_GIVEREF(__pyx_kp_u__3);
  PyTuple_SET_ITEM(__pyx_t_1, 2, __pyx_kp_u__3);
  __pyx_t_5 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_index_count_used); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1647, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __pyx_t_4 = __Pyx_PyObject_FormatSimple(__pyx_t_5, __pyx_empty_unicode); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1647, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
  __pyx_t_3 = (__Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_4) > __pyx_t_3) ? __Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_4) : __pyx_t_3;
  __pyx_t_2 += __Pyx_PyUnicode_GET_LENGTH(__pyx_t_4);
  __Pyx_GIVEREF(__pyx_t_4);
  PyTuple_SET_ITEM(__pyx_t_1, 3, __pyx_t_4);
  __pyx_t_4 = 0;
  __Pyx_INCREF(__pyx_kp_u__3);
  __pyx_t_2 += 2;
  __Pyx_GIVEREF(__pyx_kp_u__3);
  PyTuple_SET_ITEM(__pyx_t_1, 4, __pyx_kp_u__3);
  __pyx_t_4 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_vertex_count); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1647, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_5 = __Pyx_PyObject_FormatSimple(__pyx_t_4, __pyx_empty_unicode); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1647, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __pyx_t_3 = (__Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_5) > __pyx_t_3) ? __Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_5) : __pyx_t_3;
  __pyx_t_2 += __Pyx_PyUnicode_GET_LENGTH(__pyx_t_5);
  __Pyx_GIVEREF(__pyx_t_5);
  PyTuple_SET_ITEM(__pyx_t_1, 5, __pyx_t_5);
  __pyx_t_5 = 0;
  __Pyx_INCREF(__pyx_kp_u__3);
  __pyx_t_2 += 2;
  __Pyx_GIVEREF(__pyx_kp_u__3);
  PyTuple_SET_ITEM(__pyx_t_1, 6, __pyx_kp_u__3);
  __pyx_t_5 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_vertex_count_used); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1647, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __pyx_t_4 = __Pyx_PyObject_FormatSimple(__pyx_t_5, __pyx_empty_unicode); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1647, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
  __pyx_t_3 = (__Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_4) > __pyx_t_3) ? __Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_4) : __pyx_t_3;
  __pyx_t_2 += __Pyx_PyUnicode_GET_LENGTH(__pyx_t_4);
  __Pyx_GIVEREF(__pyx_t_4);
  PyTuple_SET_ITEM(__pyx_t_1, 7, __pyx_t_4);
  __pyx_t_4 = 0;
  __Pyx_INCREF(__pyx_kp_u__4);
  __pyx_t_2 += 1;
  __Pyx_GIVEREF(__pyx_kp_u__4);
  PyTuple_SET_ITEM(__pyx_t_1, 8, __pyx_kp_u__4);
  __pyx_t_4 = __Pyx_PyUnicode_Join(__pyx_t_1, 9, __pyx_t_2, __pyx_t_3); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1647, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_r = __pyx_t_4;
  __pyx_t_4 = 0;
  goto __pyx_L0;

  /* "cgl_wrapper.pyx":1646
 *         return f"mesh_cpu({self.index_count}, {self.index_count_used}, {self.vertex_count}, {self.vertex_count_used})"
 * 
 *     def __str__(self):             # <<<<<<<<<<<<<<
 *         return f"mesh_cpu({self.index_count}, {self.index_count_used}, {self.vertex_count}, {self.vertex_count_used})"
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("cgl.mesh_cpu.__str__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError("self.c_mesh cannot be converted to a Python object for pickling")
 * def __setstate_cython__(self, __pyx_state):
 */

/* Python wrapper */
static PyObject *__pyx_pw_3cgl_8mesh_cpu_9__reduce_cython__(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/
static PyObject *__pyx_pw_3cgl_8mesh_cpu_9__reduce_cython__(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__reduce_cython__ (wrapper)", 0);
  __pyx_r = __pyx_pf_3cgl_8mesh_cpu_8__reduce_cython__(((struct __pyx_obj_3cgl_mesh_cpu *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_3cgl_8mesh_cpu_8__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_3cgl_mesh_cpu *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__reduce_cython__", 0);

  /* "(tree fragment)":2
 * def __reduce_cython__(self):
 *     raise TypeError("self.c_mesh cannot be converted to a Python object for pickling")             # <<<<<<<<<<<<<<
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError("self.c_mesh cannot be converted to a Python object for pickling")
 */
  __pyx_t_1 = __Pyx_PyObject_Call(__pyx_builtin_TypeError, __pyx_tuple__28, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 2, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_Raise(__pyx_t_1, 0, 0, 0);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __PYX_ERR(1, 2, __pyx_L1_error)

  /* "(tree fragment)":1
 * def __reduce_cython__(self):             # <<<<<<<<<<<<<<
 *     raise TypeError("self.c_mesh cannot be converted to a Python object for pickling")
 * def __setstate_cython__(self, __pyx_state):
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cgl.mesh_cpu.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError("self.c_mesh cannot be converted to a Python object for pickling")
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError("self.c_mesh cannot be converted to a Python object for pickling")
 */

/* Python wrapper */
static PyObject *__pyx_pw_3cgl_8mesh_cpu_11__setstate_cython__(PyObject *__pyx_v_self, PyObject *__pyx_v___pyx_state); /*proto*/
static PyObject *__pyx_pw_3cgl_8mesh_cpu_11__setstate_cython__(PyObject *__pyx_v_self, PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__setstate_cython__ (wrapper)", 0);
  __pyx_r = __pyx_pf_3cgl_8mesh_cpu_10__setstate_cython__(((struct __pyx_obj_3cgl_mesh_cpu *)__pyx_v_self), ((PyObject *)__pyx_v___pyx_state));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_3cgl_8mesh_cpu_10__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_3cgl_mesh_cpu *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__setstate_cython__", 0);

  /* "(tree fragment)":4
 *     raise TypeError("self.c_mesh cannot be converted to a Python object for pickling")
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError("self.c_mesh cannot be converted to a Python object for pickling")             # <<<<<<<<<<<<<<
 */
  __pyx_t_1 = __Pyx_PyObject_Call(__pyx_builtin_TypeError, __pyx_tuple__29, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 4, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_Raise(__pyx_t_1, 0, 0, 0);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __PYX_ERR(1, 4, __pyx_L1_error)

  /* "(tree fragment)":3
 * def __reduce_cython__(self):
 *     raise TypeError("self.c_mesh cannot be converted to a Python object for pickling")
 * def __setstate_cython__(self, __pyx_state):             # <<<<<<<<<<<<<<
 *     raise TypeError("self.c_mesh cannot be converted to a Python object for pickling")
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("cgl.mesh_cpu.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "FromPyStructUtility":11
 * 
 * @cname("__pyx_convert__from_py_struct__CGL_vec2")
 * cdef struct_type __pyx_convert__from_py_struct__CGL_vec2(obj) except *:             # <<<<<<<<<<<<<<
 *     cdef struct_type result
 *     if not PyMapping_Check(obj):
 */

static struct CGL_vec2 __pyx_convert__from_py_struct__CGL_vec2(PyObject *__pyx_v_obj) {
  struct CGL_vec2 __pyx_v_result;
  PyObject *__pyx_v_value = NULL;
  struct CGL_vec2 __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  int __pyx_t_6;
  PyObject *__pyx_t_7 = NULL;
  PyObject *__pyx_t_8 = NULL;
  PyObject *__pyx_t_9 = NULL;
  CGL_float __pyx_t_10;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__pyx_convert__from_py_struct__CGL_vec2", 0);

  /* "FromPyStructUtility":13
 * cdef struct_type __pyx_convert__from_py_struct__CGL_vec2(obj) except *:
 *     cdef struct_type result
 *     if not PyMapping_Check(obj):             # <<<<<<<<<<<<<<
 *         PyErr_Format(TypeError, b"Expected %.16s, got %.200s", b"a mapping", Py_TYPE(obj).tp_name)
 * 
 */
  __pyx_t_1 = ((!(PyMapping_Check(__pyx_v_obj) != 0)) != 0);
  if (__pyx_t_1) {

    /* "FromPyStructUtility":14
 *     cdef struct_type result
 *     if not PyMapping_Check(obj):
 *         PyErr_Format(TypeError, b"Expected %.16s, got %.200s", b"a mapping", Py_TYPE(obj).tp_name)             # <<<<<<<<<<<<<<
 * 
 *     try:
 */
    __pyx_t_2 = PyErr_Format(__pyx_builtin_TypeError, ((char const *)"Expected %.16s, got %.200s"), ((char *)"a mapping"), Py_TYPE(__pyx_v_obj)->tp_name); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 14, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

    /* "FromPyStructUtility":13
 * cdef struct_type __pyx_convert__from_py_struct__CGL_vec2(obj) except *:
 *     cdef struct_type result
 *     if not PyMapping_Check(obj):             # <<<<<<<<<<<<<<
 *         PyErr_Format(TypeError, b"Expected %.16s, got %.200s", b"a mapping", Py_TYPE(obj).tp_name)
 * 
 */
  }

  /* "FromPyStructUtility":16
 *         PyErr_Format(TypeError, b"Expected %.16s, got %.200s", b"a mapping", Py_TYPE(obj).tp_name)
 * 
 *     try:             # <<<<<<<<<<<<<<
 *         value = obj['x']
 *     except KeyError:
 */
  {
    __Pyx_PyThreadState_declare
    __Pyx_PyThreadState_assign
    __Pyx_ExceptionSave(&__pyx_t_3, &__pyx_t_4, &__pyx_t_5);
    __Pyx_XGOTREF(__pyx_t_3);
    __Pyx_XGOTREF(__pyx_t_4);
    __Pyx_XGOTREF(__pyx_t_5);
    /*try:*/ {

      /* "FromPyStructUtility":17
 * 
 *     try:
 *         value = obj['x']             # <<<<<<<<<<<<<<
 *     except KeyError:
 *         raise ValueError("No value specified for struct attribute 'x'")
 */
      __pyx_t_2 = __Pyx_PyObject_Dict_GetItem(__pyx_v_obj, __pyx_n_s_x); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 17, __pyx_L4_error)
      __Pyx_GOTREF(__pyx_t_2);
      __pyx_v_value = __pyx_t_2;
      __pyx_t_2 = 0;

      /* "FromPyStructUtility":16
 *         PyErr_Format(TypeError, b"Expected %.16s, got %.200s", b"a mapping", Py_TYPE(obj).tp_name)
 * 
 *     try:             # <<<<<<<<<<<<<<
 *         value = obj['x']
 *     except KeyError:
 */
    }
    __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
    __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
    goto __pyx_L9_try_end;
    __pyx_L4_error:;
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;

    /* "FromPyStructUtility":18
 *     try:
 *         value = obj['x']
 *     except KeyError:             # <<<<<<<<<<<<<<
 *         raise ValueError("No value specified for struct attribute 'x'")
 *     result.x = value
 */
    __pyx_t_6 = __Pyx_PyErr_ExceptionMatches(__pyx_builtin_KeyError);
    if (__pyx_t_6) {
      __Pyx_AddTraceback("FromPyStructUtility.__pyx_convert__from_py_struct__CGL_vec2", __pyx_clineno, __pyx_lineno, __pyx_filename);
      if (__Pyx_GetException(&__pyx_t_2, &__pyx_t_7, &__pyx_t_8) < 0) __PYX_ERR(1, 18, __pyx_L6_except_error)
      __Pyx_GOTREF(__pyx_t_2);
      __Pyx_GOTREF(__pyx_t_7);
      __Pyx_GOTREF(__pyx_t_8);

      /* "FromPyStructUtility":19
 *         value = obj['x']
 *     except KeyError:
 *         raise ValueError("No value specified for struct attribute 'x'")             # <<<<<<<<<<<<<<
 *     result.x = value
 *     try:
 */
      __pyx_t_9 = __Pyx_PyObject_Call(__pyx_builtin_ValueError, __pyx_tuple__30, NULL); if (unlikely(!__pyx_t_9)) __PYX_ERR(1, 19, __pyx_L6_except_error)
      __Pyx_GOTREF(__pyx_t_9);
      __Pyx_Raise(__pyx_t_9, 0, 0, 0);
      __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
      __PYX_ERR(1, 19, __pyx_L6_except_error)
    }
    goto __pyx_L6_except_error;
    __pyx_L6_except_error:;

    /* "FromPyStructUtility":16
 *         PyErr_Format(TypeError, b"Expected %.16s, got %.200s", b"a mapping", Py_TYPE(obj).tp_name)
 * 
 *     try:             # <<<<<<<<<<<<<<
 *         value = obj['x']
 *     except KeyError:
 */
    __Pyx_XGIVEREF(__pyx_t_3);
    __Pyx_XGIVEREF(__pyx_t_4);
    __Pyx_XGIVEREF(__pyx_t_5);
    __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
    goto __pyx_L1_error;
    __pyx_L9_try_end:;
  }

  /* "FromPyStructUtility":20
 *     except KeyError:
 *         raise ValueError("No value specified for struct attribute 'x'")
 *     result.x = value             # <<<<<<<<<<<<<<
 *     try:
 *         value = obj['y']
 */
  __pyx_t_10 = __pyx_PyFloat_AsFloat(__pyx_v_value); if (unlikely((__pyx_t_10 == ((CGL_float)-1)) && PyErr_Occurred())) __PYX_ERR(1, 20, __pyx_L1_error)
  __pyx_v_result.x = __pyx_t_10;

  /* "FromPyStructUtility":21
 *         raise ValueError("No value specified for struct attribute 'x'")
 *     result.x = value
 *     try:             # <<<<<<<<<<<<<<
 *         value = obj['y']
 *     except KeyError:
 */
  {
    __Pyx_PyThreadState_declare
    __Pyx_PyThreadState_assign
    __Pyx_ExceptionSave(&__pyx_t_5, &__pyx_t_4, &__pyx_t_3);
    __Pyx_XGOTREF(__pyx_t_5);
    __Pyx_XGOTREF(__pyx_t_4);
    __Pyx_XGOTREF(__pyx_t_3);
    /*try:*/ {

      /* "FromPyStructUtility":22
 *     result.x = value
 *     try:
 *         value = obj['y']             # <<<<<<<<<<<<<<
 *     except KeyError:
 *         raise ValueError("No value specified for struct attribute 'y'")
 */
      __pyx_t_8 = __Pyx_PyObject_Dict_GetItem(__pyx_v_obj, __pyx_n_s_y); if (unlikely(!__pyx_t_8)) __PYX_ERR(1, 22, __pyx_L12_error)
      __Pyx_GOTREF(__pyx_t_8);
      __Pyx_DECREF_SET(__pyx_v_value, __pyx_t_8);
      __pyx_t_8 = 0;

      /* "FromPyStructUtility":21
 *         raise ValueError("No value specified for struct attribute 'x'")
 *     result.x = value
 *     try:             # <<<<<<<<<<<<<<
 *         value = obj['y']
 *     except KeyError:
 */
    }
    __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
    __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
    goto __pyx_L17_try_end;
    __pyx_L12_error:;
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
    __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
    __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0;

    /* "FromPyStructUtility":23
 *     try:
 *         value = obj['y']
 *     except KeyError:             # <<<<<<<<<<<<<<
 *         raise ValueError("No value specified for struct attribute 'y'")
 *     result.y = value
 */
    __pyx_t_6 = __Pyx_PyErr_ExceptionMatches(__pyx_builtin_KeyError);
    if (__pyx_t_6) {
      __Pyx_AddTraceback("FromPyStructUtility.__pyx_convert__from_py_struct__CGL_vec2", __pyx_clineno, __pyx_lineno, __pyx_filename);
      if (__Pyx_GetException(&__pyx_t_8, &__pyx_t_7, &__pyx_t_2) < 0) __PYX_ERR(1, 23, __pyx_L14_except_error)
      __Pyx_GOTREF(__pyx_t_8);
      __Pyx_GOTREF(__pyx_t_7);
      __Pyx_GOTREF(__pyx_t_2);

      /* "FromPyStructUtility":24
 *         value = obj['y']
 *     except KeyError:
 *         raise ValueError("No value specified for struct attribute 'y'")             # <<<<<<<<<<<<<<
 *     result.y = value
 *     return result
 */
      __pyx_t_9 = __Pyx_PyObject_Call(__pyx_builtin_ValueError, __pyx_tuple__31, NULL); if (unlikely(!__pyx_t_9)) __PYX_ERR(1, 24, __pyx_L14_except_error)
      __Pyx_GOTREF(__pyx_t_9);
      __Pyx_Raise(__pyx_t_9, 0, 0, 0);
      __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
      __PYX_ERR(1, 24, __pyx_L14_except_error)
    }
    goto __pyx_L14_except_error;
    __pyx_L14_except_error:;

    /* "FromPyStructUtility":21
 *         raise ValueError("No value specified for struct attribute 'x'")
 *     result.x = value
 *     try:             # <<<<<<<<<<<<<<
 *         value = obj['y']
 *     except KeyError:
 */
    __Pyx_XGIVEREF(__pyx_t_5);
    __Pyx_XGIVEREF(__pyx_t_4);
    __Pyx_XGIVEREF(__pyx_t_3);
    __Pyx_ExceptionReset(__pyx_t_5, __pyx_t_4, __pyx_t_3);
    goto __pyx_L1_error;
    __pyx_L17_try_end:;
  }

  /* "FromPyStructUtility":25
 *     except KeyError:
 *         raise ValueError("No value specified for struct attribute 'y'")
 *     result.y = value             # <<<<<<<<<<<<<<
 *     return result
 * 
 */
  __pyx_t_10 = __pyx_PyFloat_AsFloat(__pyx_v_value); if (unlikely((__pyx_t_10 == ((CGL_float)-1)) && PyErr_Occurred())) __PYX_ERR(1, 25, __pyx_L1_error)
  __pyx_v_result.y = __pyx_t_10;

  /* "FromPyStructUtility":26
 *         raise ValueError("No value specified for struct attribute 'y'")
 *     result.y = value
 *     return result             # <<<<<<<<<<<<<<
 * 
 * 
 */
  __pyx_r = __pyx_v_result;
  goto __pyx_L0;

  /* "FromPyStructUtility":11
 * 
 * @cname("__pyx_convert__from_py_struct__CGL_vec2")
 * cdef struct_type __pyx_convert__from_py_struct__CGL_vec2(obj) except *:             # <<<<<<<<<<<<<<
 *     cdef struct_type result
 *     if not PyMapping_Check(obj):
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_XDECREF(__pyx_t_8);
  __Pyx_XDECREF(__pyx_t_9);
  __Pyx_AddTraceback("FromPyStructUtility.__pyx_convert__from_py_struct__CGL_vec2", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_pretend_to_initialize(&__pyx_r);
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_value);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static struct CGL_vec3 __pyx_convert__from_py_struct__CGL_vec3(PyObject *__pyx_v_obj) {
  struct CGL_vec3 __pyx_v_result;
  PyObject *__pyx_v_value = NULL;
  struct CGL_vec3 __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  int __pyx_t_6;
  PyObject *__pyx_t_7 = NULL;
  PyObject *__pyx_t_8 = NULL;
  PyObject *__pyx_t_9 = NULL;
  CGL_float __pyx_t_10;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__pyx_convert__from_py_struct__CGL_vec3", 0);

  /* "FromPyStructUtility":13
 * cdef struct_type __pyx_convert__from_py_struct__CGL_vec3(obj) except *:
 *     cdef struct_type result
 *     if not PyMapping_Check(obj):             # <<<<<<<<<<<<<<
 *         PyErr_Format(TypeError, b"Expected %.16s, got %.200s", b"a mapping", Py_TYPE(obj).tp_name)
 * 
 */
  __pyx_t_1 = ((!(PyMapping_Check(__pyx_v_obj) != 0)) != 0);
  if (__pyx_t_1) {

    /* "FromPyStructUtility":14
 *     cdef struct_type result
 *     if not PyMapping_Check(obj):
 *         PyErr_Format(TypeError, b"Expected %.16s, got %.200s", b"a mapping", Py_TYPE(obj).tp_name)             # <<<<<<<<<<<<<<
 * 
 *     try:
 */
    __pyx_t_2 = PyErr_Format(__pyx_builtin_TypeError, ((char const *)"Expected %.16s, got %.200s"), ((char *)"a mapping"), Py_TYPE(__pyx_v_obj)->tp_name); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 14, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

    /* "FromPyStructUtility":13
 * cdef struct_type __pyx_convert__from_py_struct__CGL_vec3(obj) except *:
 *     cdef struct_type result
 *     if not PyMapping_Check(obj):             # <<<<<<<<<<<<<<
 *         PyErr_Format(TypeError, b"Expected %.16s, got %.200s", b"a mapping", Py_TYPE(obj).tp_name)
 * 
 */
  }

  /* "FromPyStructUtility":16
 *         PyErr_Format(TypeError, b"Expected %.16s, got %.200s", b"a mapping", Py_TYPE(obj).tp_name)
 * 
 *     try:             # <<<<<<<<<<<<<<
 *         value = obj['x']
 *     except KeyError:
 */
  {
    __Pyx_PyThreadState_declare
    __Pyx_PyThreadState_assign
    __Pyx_ExceptionSave(&__pyx_t_3, &__pyx_t_4, &__pyx_t_5);
    __Pyx_XGOTREF(__pyx_t_3);
    __Pyx_XGOTREF(__pyx_t_4);
    __Pyx_XGOTREF(__pyx_t_5);
    /*try:*/ {

      /* "FromPyStructUtility":17
 * 
 *     try:
 *         value = obj['x']             # <<<<<<<<<<<<<<
 *     except KeyError:
 *         raise ValueError("No value specified for struct attribute 'x'")
 */
      __pyx_t_2 = __Pyx_PyObject_Dict_GetItem(__pyx_v_obj, __pyx_n_s_x); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 17, __pyx_L4_error)
      __Pyx_GOTREF(__pyx_t_2);
      __pyx_v_value = __pyx_t_2;
      __pyx_t_2 = 0;

      /* "FromPyStructUtility":16
 *         PyErr_Format(TypeError, b"Expected %.16s, got %.200s", b"a mapping", Py_TYPE(obj).tp_name)
 * 
 *     try:             # <<<<<<<<<<<<<<
 *         value = obj['x']
 *     except KeyError:
 */
    }
    __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
    __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
    goto __pyx_L9_try_end;
    __pyx_L4_error:;
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;

    /* "FromPyStructUtility":18
 *     try:
 *         value = obj['x']
 *     except KeyError:             # <<<<<<<<<<<<<<
 *         raise ValueError("No value specified for struct attribute 'x'")
 *     result.x = value
 */
    __pyx_t_6 = __Pyx_PyErr_ExceptionMatches(__pyx_builtin_KeyError);
    if (__pyx_t_6) {
      __Pyx_AddTraceback("FromPyStructUtility.__pyx_convert__from_py_struct__CGL_vec3", __pyx_clineno, __pyx_lineno, __pyx_filename);
      if (__Pyx_GetException(&__pyx_t_2, &__pyx_t_7, &__pyx_t_8) < 0) __PYX_ERR(1, 18, __pyx_L6_except_error)
      __Pyx_GOTREF(__pyx_t_2);
      __Pyx_GOTREF(__pyx_t_7);
      __Pyx_GOTREF(__pyx_t_8);

      /* "FromPyStructUtility":19
 *         value = obj['x']
 *     except KeyError:
 *         raise ValueError("No value specified for struct attribute 'x'")             # <<<<<<<<<<<<<<
 *     result.x = value
 *     try:
 */
      __pyx_t_9 = __Pyx_PyObject_Call(__pyx_builtin_ValueError, __pyx_tuple__30, NULL); if (unlikely(!__pyx_t_9)) __PYX_ERR(1, 19, __pyx_L6_except_error)
      __Pyx_GOTREF(__pyx_t_9);
      __Pyx_Raise(__pyx_t_9, 0, 0, 0);
      __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
      __PYX_ERR(1, 19, __pyx_L6_except_error)
    }
    goto __pyx_L6_except_error;
    __pyx_L6_except_error:;

    /* "FromPyStructUtility":16
 *         PyErr_Format(TypeError, b"Expected %.16s, got %.200s", b"a mapping", Py_TYPE(obj).tp_name)
 * 
 *     try:             # <<<<<<<<<<<<<<
 *         value = obj['x']
 *     except KeyError:
 */
    __Pyx_XGIVEREF(__pyx_t_3);
    __Pyx_XGIVEREF(__pyx_t_4);
    __Pyx_XGIVEREF(__pyx_t_5);
    __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
    goto __pyx_L1_error;
    __pyx_L9_try_end:;
  }

  /* "FromPyStructUtility":20
 *     except KeyError:
 *         raise ValueError("No value specified for struct attribute 'x'")
 *     result.x = value             # <<<<<<<<<<<<<<
 *     try:
 *         value = obj['y']
 */
  __pyx_t_10 = __pyx_PyFloat_AsFloat(__pyx_v_value); if (unlikely((__pyx_t_10 == ((CGL_float)-1)) && PyErr_Occurred())) __PYX_ERR(1, 20, __pyx_L1_error)
  __pyx_v_result.x = __pyx_t_10;

  /* "FromPyStructUtility":21
 *         raise ValueError("No value specified for struct attribute 'x'")
 *     result.x = value
 *     try:             # <<<<<<<<<<<<<<
 *         value = obj['y']
 *     except KeyError:
 */
  {
    __Pyx_PyThreadState_declare
    __Pyx_PyThreadState_assign
    __Pyx_ExceptionSave(&__pyx_t_5, &__pyx_t_4, &__pyx_t_3);
    __Pyx_XGOTREF(__pyx_t_5);
    __Pyx_XGOTREF(__pyx_t_4);
    __Pyx_XGOTREF(__pyx_t_3);
    /*try:*/ {

      /* "FromPyStructUtility":22
 *     result.x = value
 *     try:
 *         value = obj['y']             # <<<<<<<<<<<<<<
 *     except KeyError:
 *         raise ValueError("No value specified for struct attribute 'y'")
 */
      __pyx_t_8 = __Pyx_PyObject_Dict_GetItem(__pyx_v_obj, __pyx_n_s_y); if (unlikely(!__pyx_t_8)) __PYX_ERR(1, 22, __pyx_L12_error)
      __Pyx_GOTREF(__pyx_t_8);
      __Pyx_DECREF_SET(__pyx_v_value, __pyx_t_8);
      __pyx_t_8 = 0;

      /* "FromPyStructUtility":21
 *         raise ValueError("No value specified for struct attribute 'x'")
 *     result.x = value
 *     try:             # <<<<<<<<<<<<<<
 *         value = obj['y']
 *     except KeyError:
 */
    }
    __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
    __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
    goto __pyx_L17_try_end;
    __pyx_L12_error:;
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
    __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
    __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0;

    /* "FromPyStructUtility":23
 *     try:
 *         value = obj['y']
 *     except KeyError:             # <<<<<<<<<<<<<<
 *         raise ValueError("No value specified for struct attribute 'y'")
 *     result.y = value
 */
    __pyx_t_6 = __Pyx_PyErr_ExceptionMatches(__pyx_builtin_KeyError);
    if (__pyx_t_6) {
      __Pyx_AddTraceback("FromPyStructUtility.__pyx_convert__from_py_struct__CGL_vec3", __pyx_clineno, __pyx_lineno, __pyx_filename);
      if (__Pyx_GetException(&__pyx_t_8, &__pyx_t_7, &__pyx_t_2) < 0) __PYX_ERR(1, 23, __pyx_L14_except_error)
      __Pyx_GOTREF(__pyx_t_8);
      __Pyx_GOTREF(__pyx_t_7);
      __Pyx_GOTREF(__pyx_t_2);

      /* "FromPyStructUtility":24
 *         value = obj['y']
 *     except KeyError:
 *         raise ValueError("No value specified for struct attribute 'y'")             # <<<<<<<<<<<<<<
 *     result.y = value
 *     try:
 */
      __pyx_t_9 = __Pyx_PyObject_Call(__pyx_builtin_ValueError, __pyx_tuple__31, NULL); if (unlikely(!__pyx_t_9)) __PYX_ERR(1, 24, __pyx_L14_except_error)
      __Pyx_GOTREF(__pyx_t_9);
      __Pyx_Raise(__pyx_t_9, 0, 0, 0);
      __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
      __PYX_ERR(1, 24, __pyx_L14_except_error)
    }
    goto __pyx_L14_except_error;
    __pyx_L14_except_error:;

    /* "FromPyStructUtility":21
 *         raise ValueError("No value specified for struct attribute 'x'")
 *     result.x = value
 *     try:             # <<<<<<<<<<<<<<
 *         value = obj['y']
 *     except KeyError:
 */
    __Pyx_XGIVEREF(__pyx_t_5);
    __Pyx_XGIVEREF(__pyx_t_4);
    __Pyx_XGIVEREF(__pyx_t_3);
    __Pyx_ExceptionReset(__pyx_t_5, __pyx_t_4, __pyx_t_3);
    goto __pyx_L1_error;
    __pyx_L17_try_end:;
  }

  /* "FromPyStructUtility":25
 *     except KeyError:
 *         raise ValueError("No value specified for struct attribute 'y'")
 *     result.y = value             # <<<<<<<<<<<<<<
 *     try:
 *         value = obj['z']
 */
  __pyx_t_10 = __pyx_PyFloat_AsFloat(__pyx_v_value); if (unlikely((__pyx_t_10 == ((CGL_float)-1)) && PyErr_Occurred())) __PYX_ERR(1, 25, __pyx_L1_error)
  __pyx_v_result.y = __pyx_t_10;

  /* "FromPyStructUtility":26
 *         raise ValueError("No value specified for struct attribute 'y'")
 *     result.y = value
 *     try:             # <<<<<<<<<<<<<<
 *         value = obj['z']
 *     except KeyError:
 */
  {
    __Pyx_PyThreadState_declare
    __Pyx_PyThreadState_assign
    __Pyx_ExceptionSave(&__pyx_t_3, &__pyx_t_4, &__pyx_t_5);
    __Pyx_XGOTREF(__pyx_t_3);
    __Pyx_XGOTREF(__pyx_t_4);
    __Pyx_XGOTREF(__pyx_t_5);
    /*try:*/ {

      /* "FromPyStructUtility":27
 *     result.y = value
 *     try:
 *         value = obj['z']             # <<<<<<<<<<<<<<
 *     except KeyError:
 *         raise ValueError("No value specified for struct attribute 'z'")
 */
      __pyx_t_2 = __Pyx_PyObject_Dict_GetItem(__pyx_v_obj, __pyx_n_s_z); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 27, __pyx_L20_error)
      __Pyx_GOTREF(__pyx_t_2);
      __Pyx_DECREF_SET(__pyx_v_value, __pyx_t_2);
      __pyx_t_2 = 0;

      /* "FromPyStructUtility":26
 *         raise ValueError("No value specified for struct attribute 'y'")
 *     result.y = value
 *     try:             # <<<<<<<<<<<<<<
 *         value = obj['z']
 *     except KeyError:
 */
    }
    __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
    __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
    goto __pyx_L25_try_end;
    __pyx_L20_error:;
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
    __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
    __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0;

    /* "FromPyStructUtility":28
 *     try:
 *         value = obj['z']
 *     except KeyError:             # <<<<<<<<<<<<<<
 *         raise ValueError("No value specified for struct attribute 'z'")
 *     result.z = value
 */
    __pyx_t_6 = __Pyx_PyErr_ExceptionMatches(__pyx_builtin_KeyError);
    if (__pyx_t_6) {
      __Pyx_AddTraceback("FromPyStructUtility.__pyx_convert__from_py_struct__CGL_vec3", __pyx_clineno, __pyx_lineno, __pyx_filename);
      if (__Pyx_GetException(&__pyx_t_2, &__pyx_t_7, &__pyx_t_8) < 0) __PYX_ERR(1, 28, __pyx_L22_except_error)
      __Pyx_GOTREF(__pyx_t_2);
      __Pyx_GOTREF(__pyx_t_7);
      __Pyx_GOTREF(__pyx_t_8);

      /* "FromPyStructUtility":29
 *         value = obj['z']
 *     except KeyError:
 *         raise ValueError("No value specified for struct attribute 'z'")             # <<<<<<<<<<<<<<
 *     result.z = value
 *     return result
 */
      __pyx_t_9 = __Pyx_PyObject_Call(__pyx_builtin_ValueError, __pyx_tuple__32, NULL); if (unlikely(!__pyx_t_9)) __PYX_ERR(1, 29, __pyx_L22_except_error)
      __Pyx_GOTREF(__pyx_t_9);
      __Pyx_Raise(__pyx_t_9, 0, 0, 0);
      __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
      __PYX_ERR(1, 29, __pyx_L22_except_error)
    }
    goto __pyx_L22_except_error;
    __pyx_L22_except_error:;

    /* "FromPyStructUtility":26
 *         raise ValueError("No value specified for struct attribute 'y'")
 *     result.y = value
 *     try:             # <<<<<<<<<<<<<<
 *         value = obj['z']
 *     except KeyError:
 */
    __Pyx_XGIVEREF(__pyx_t_3);
    __Pyx_XGIVEREF(__pyx_t_4);
    __Pyx_XGIVEREF(__pyx_t_5);
    __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
    goto __pyx_L1_error;
    __pyx_L25_try_end:;
  }

  /* "FromPyStructUtility":30
 *     except KeyError:
 *         raise ValueError("No value specified for struct attribute 'z'")
 *     result.z = value             # <<<<<<<<<<<<<<
 *     return result
 * 
 */
  __pyx_t_10 = __pyx_PyFloat_AsFloat(__pyx_v_value); if (unlikely((__pyx_t_10 == ((CGL_float)-1)) && PyErr_Occurred())) __PYX_ERR(1, 30, __pyx_L1_error)
  __pyx_v_result.z = __pyx_t_10;

  /* "FromPyStructUtility":31
 *         raise ValueError("No value specified for struct attribute 'z'")
 *     result.z = value
 *     return result             # <<<<<<<<<<<<<<
 * 
 * 
 */
  __pyx_r = __pyx_v_result;
  goto __pyx_L0;

  /* "FromPyStructUtility":11
 * 
 * @cname("__pyx_convert__from_py_struct__CGL_vec3")
 * cdef struct_type __pyx_convert__from_py_struct__CGL_vec3(obj) except *:             # <<<<<<<<<<<<<<
 *     cdef struct_type result
 *     if not PyMapping_Check(obj):
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_XDECREF(__pyx_t_8);
  __Pyx_XDECREF(__pyx_t_9);
  __Pyx_AddTraceback("FromPyStructUtility.__pyx_convert__from_py_struct__CGL_vec3", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_pretend_to_initialize(&__pyx_r);
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_value);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static struct CGL_vec4 __pyx_convert__from_py_struct__CGL_vec4(PyObject *__pyx_v_obj) {
  struct CGL_vec4 __pyx_v_result;
  PyObject *__pyx_v_value = NULL;
  struct CGL_vec4 __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  int __pyx_t_6;
  PyObject *__pyx_t_7 = NULL;
  PyObject *__pyx_t_8 = NULL;
  PyObject *__pyx_t_9 = NULL;
  CGL_float __pyx_t_10;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__pyx_convert__from_py_struct__CGL_vec4", 0);

  /* "FromPyStructUtility":13
 * cdef struct_type __pyx_convert__from_py_struct__CGL_vec4(obj) except *:
 *     cdef struct_type result
 *     if not PyMapping_Check(obj):             # <<<<<<<<<<<<<<
 *         PyErr_Format(TypeError, b"Expected %.16s, got %.200s", b"a mapping", Py_TYPE(obj).tp_name)
 * 
 */
  __pyx_t_1 = ((!(PyMapping_Check(__pyx_v_obj) != 0)) != 0);
  if (__pyx_t_1) {

    /* "FromPyStructUtility":14
 *     cdef struct_type result
 *     if not PyMapping_Check(obj):
 *         PyErr_Format(TypeError, b"Expected %.16s, got %.200s", b"a mapping", Py_TYPE(obj).tp_name)             # <<<<<<<<<<<<<<
 * 
 *     try:
 */
    __pyx_t_2 = PyErr_Format(__pyx_builtin_TypeError, ((char const *)"Expected %.16s, got %.200s"), ((char *)"a mapping"), Py_TYPE(__pyx_v_obj)->tp_name); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 14, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

    /* "FromPyStructUtility":13
 * cdef struct_type __pyx_convert__from_py_struct__CGL_vec4(obj) except *:
 *     cdef struct_type result
 *     if not PyMapping_Check(obj):             # <<<<<<<<<<<<<<
 *         PyErr_Format(TypeError, b"Expected %.16s, got %.200s", b"a mapping", Py_TYPE(obj).tp_name)
 * 
 */
  }

  /* "FromPyStructUtility":16
 *         PyErr_Format(TypeError, b"Expected %.16s, got %.200s", b"a mapping", Py_TYPE(obj).tp_name)
 * 
 *     try:             # <<<<<<<<<<<<<<
 *         value = obj['x']
 *     except KeyError:
 */
  {
    __Pyx_PyThreadState_declare
    __Pyx_PyThreadState_assign
    __Pyx_ExceptionSave(&__pyx_t_3, &__pyx_t_4, &__pyx_t_5);
    __Pyx_XGOTREF(__pyx_t_3);
    __Pyx_XGOTREF(__pyx_t_4);
    __Pyx_XGOTREF(__pyx_t_5);
    /*try:*/ {

      /* "FromPyStructUtility":17
 * 
 *     try:
 *         value = obj['x']             # <<<<<<<<<<<<<<
 *     except KeyError:
 *         raise ValueError("No value specified for struct attribute 'x'")
 */
      __pyx_t_2 = __Pyx_PyObject_Dict_GetItem(__pyx_v_obj, __pyx_n_s_x); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 17, __pyx_L4_error)
      __Pyx_GOTREF(__pyx_t_2);
      __pyx_v_value = __pyx_t_2;
      __pyx_t_2 = 0;

      /* "FromPyStructUtility":16
 *         PyErr_Format(TypeError, b"Expected %.16s, got %.200s", b"a mapping", Py_TYPE(obj).tp_name)
 * 
 *     try:             # <<<<<<<<<<<<<<
 *         value = obj['x']
 *     except KeyError:
 */
    }
    __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
    __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
    goto __pyx_L9_try_end;
    __pyx_L4_error:;
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;

    /* "FromPyStructUtility":18
 *     try:
 *         value = obj['x']
 *     except KeyError:             # <<<<<<<<<<<<<<
 *         raise ValueError("No value specified for struct attribute 'x'")
 *     result.x = value
 */
    __pyx_t_6 = __Pyx_PyErr_ExceptionMatches(__pyx_builtin_KeyError);
    if (__pyx_t_6) {
      __Pyx_AddTraceback("FromPyStructUtility.__pyx_convert__from_py_struct__CGL_vec4", __pyx_clineno, __pyx_lineno, __pyx_filename);
      if (__Pyx_GetException(&__pyx_t_2, &__pyx_t_7, &__pyx_t_8) < 0) __PYX_ERR(1, 18, __pyx_L6_except_error)
      __Pyx_GOTREF(__pyx_t_2);
      __Pyx_GOTREF(__pyx_t_7);
      __Pyx_GOTREF(__pyx_t_8);

      /* "FromPyStructUtility":19
 *         value = obj['x']
 *     except KeyError:
 *         raise ValueError("No value specified for struct attribute 'x'")             # <<<<<<<<<<<<<<
 *     result.x = value
 *     try:
 */
      __pyx_t_9 = __Pyx_PyObject_Call(__pyx_builtin_ValueError, __pyx_tuple__30, NULL); if (unlikely(!__pyx_t_9)) __PYX_ERR(1, 19, __pyx_L6_except_error)
      __Pyx_GOTREF(__pyx_t_9);
      __Pyx_Raise(__pyx_t_9, 0, 0, 0);
      __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
      __PYX_ERR(1, 19, __pyx_L6_except_error)
    }
    goto __pyx_L6_except_error;
    __pyx_L6_except_error:;

    /* "FromPyStructUtility":16
 *         PyErr_Format(TypeError, b"Expected %.16s, got %.200s", b"a mapping", Py_TYPE(obj).tp_name)
 * 
 *     try:             # <<<<<<<<<<<<<<
 *         value = obj['x']
 *     except KeyError:
 */
    __Pyx_XGIVEREF(__pyx_t_3);
    __Pyx_XGIVEREF(__pyx_t_4);
    __Pyx_XGIVEREF(__pyx_t_5);
    __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
    goto __pyx_L1_error;
    __pyx_L9_try_end:;
  }

  /* "FromPyStructUtility":20
 *     except KeyError:
 *         raise ValueError("No value specified for struct attribute 'x'")
 *     result.x = value             # <<<<<<<<<<<<<<
 *     try:
 *         value = obj['y']
 */
  __pyx_t_10 = __pyx_PyFloat_AsFloat(__pyx_v_value); if (unlikely((__pyx_t_10 == ((CGL_float)-1)) && PyErr_Occurred())) __PYX_ERR(1, 20, __pyx_L1_error)
  __pyx_v_result.x = __pyx_t_10;

  /* "FromPyStructUtility":21
 *         raise ValueError("No value specified for struct attribute 'x'")
 *     result.x = value
 *     try:             # <<<<<<<<<<<<<<
 *         value = obj['y']
 *     except KeyError:
 */
  {
    __Pyx_PyThreadState_declare
    __Pyx_PyThreadState_assign
    __Pyx_ExceptionSave(&__pyx_t_5, &__pyx_t_4, &__pyx_t_3);
    __Pyx_XGOTREF(__pyx_t_5);
    __Pyx_XGOTREF(__pyx_t_4);
    __Pyx_XGOTREF(__pyx_t_3);
    /*try:*/ {

      /* "FromPyStructUtility":22
 *     result.x = value
 *     try:
 *         value = obj['y']             # <<<<<<<<<<<<<<
 *     except KeyError:
 *         raise ValueError("No value specified for struct attribute 'y'")
 */
      __pyx_t_8 = __Pyx_PyObject_Dict_GetItem(__pyx_v_obj, __pyx_n_s_y); if (unlikely(!__pyx_t_8)) __PYX_ERR(1, 22, __pyx_L12_error)
      __Pyx_GOTREF(__pyx_t_8);
      __Pyx_DECREF_SET(__pyx_v_value, __pyx_t_8);
      __pyx_t_8 = 0;

      /* "FromPyStructUtility":21
 *         raise ValueError("No value specified for struct attribute 'x'")
 *     result.x = value
 *     try:             # <<<<<<<<<<<<<<
 *         value = obj['y']
 *     except KeyError:
 */
    }
    __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
    __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
    goto __pyx_L17_try_end;
    __pyx_L12_error:;
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
    __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
    __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0;

    /* "FromPyStructUtility":23
 *     try:
 *         value = obj['y']
 *     except KeyError:             # <<<<<<<<<<<<<<
 *         raise ValueError("No value specified for struct attribute 'y'")
 *     result.y = value
 */
    __pyx_t_6 = __Pyx_PyErr_ExceptionMatches(__pyx_builtin_KeyError);
    if (__pyx_t_6) {
      __Pyx_AddTraceback("FromPyStructUtility.__pyx_convert__from_py_struct__CGL_vec4", __pyx_clineno, __pyx_lineno, __pyx_filename);
      if (__Pyx_GetException(&__pyx_t_8, &__pyx_t_7, &__pyx_t_2) < 0) __PYX_ERR(1, 23, __pyx_L14_except_error)
      __Pyx_GOTREF(__pyx_t_8);
      __Pyx_GOTREF(__pyx_t_7);
      __Pyx_GOTREF(__pyx_t_2);

      /* "FromPyStructUtility":24
 *         value = obj['y']
 *     except KeyError:
 *         raise ValueError("No value specified for struct attribute 'y'")             # <<<<<<<<<<<<<<
 *     result.y = value
 *     try:
 */
      __pyx_t_9 = __Pyx_PyObject_Call(__pyx_builtin_ValueError, __pyx_tuple__31, NULL); if (unlikely(!__pyx_t_9)) __PYX_ERR(1, 24, __pyx_L14_except_error)
      __Pyx_GOTREF(__pyx_t_9);
      __Pyx_Raise(__pyx_t_9, 0, 0, 0);
      __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
      __PYX_ERR(1, 24, __pyx_L14_except_error)
    }
    goto __pyx_L14_except_error;
    __pyx_L14_except_error:;

    /* "FromPyStructUtility":21
 *         raise ValueError("No value specified for struct attribute 'x'")
 *     result.x = value
 *     try:             # <<<<<<<<<<<<<<
 *         value = obj['y']
 *     except KeyError:
 */
    __Pyx_XGIVEREF(__pyx_t_5);
    __Pyx_XGIVEREF(__pyx_t_4);
    __Pyx_XGIVEREF(__pyx_t_3);
    __Pyx_ExceptionReset(__pyx_t_5, __pyx_t_4, __pyx_t_3);
    goto __pyx_L1_error;
    __pyx_L17_try_end:;
  }

  /* "FromPyStructUtility":25
 *     except KeyError:
 *         raise ValueError("No value specified for struct attribute 'y'")
 *     result.y = value             # <<<<<<<<<<<<<<
 *     try:
 *         value = obj['z']
 */
  __pyx_t_10 = __pyx_PyFloat_AsFloat(__pyx_v_value); if (unlikely((__pyx_t_10 == ((CGL_float)-1)) && PyErr_Occurred())) __PYX_ERR(1, 25, __pyx_L1_error)
  __pyx_v_result.y = __pyx_t_10;

  /* "FromPyStructUtility":26
 *         raise ValueError("No value specified for struct attribute 'y'")
 *     result.y = value
 *     try:             # <<<<<<<<<<<<<<
 *         value = obj['z']
 *     except KeyError:
 */
  {
    __Pyx_PyThreadState_declare
    __Pyx_PyThreadState_assign
    __Pyx_ExceptionSave(&__pyx_t_3, &__pyx_t_4, &__pyx_t_5);
    __Pyx_XGOTREF(__pyx_t_3);
    __Pyx_XGOTREF(__pyx_t_4);
    __Pyx_XGOTREF(__pyx_t_5);
    /*try:*/ {

      /* "FromPyStructUtility":27
 *     result.y = value
 *     try:
 *         value = obj['z']             # <<<<<<<<<<<<<<
 *     except KeyError:
 *         raise ValueError("No value specified for struct attribute 'z'")
 */
      __pyx_t_2 = __Pyx_PyObject_Dict_GetItem(__pyx_v_obj, __pyx_n_s_z); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 27, __pyx_L20_error)
      __Pyx_GOTREF(__pyx_t_2);
      __Pyx_DECREF_SET(__pyx_v_value, __pyx_t_2);
      __pyx_t_2 = 0;

      /* "FromPyStructUtility":26
 *         raise ValueError("No value specified for struct attribute 'y'")
 *     result.y = value
 *     try:             # <<<<<<<<<<<<<<
 *         value = obj['z']
 *     except KeyError:
 */
    }
    __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
    __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
    goto __pyx_L25_try_end;
    __pyx_L20_error:;
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
    __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
    __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0;

    /* "FromPyStructUtility":28
 *     try:
 *         value = obj['z']
 *     except KeyError:             # <<<<<<<<<<<<<<
 *         raise ValueError("No value specified for struct attribute 'z'")
 *     result.z = value
 */
    __pyx_t_6 = __Pyx_PyErr_ExceptionMatches(__pyx_builtin_KeyError);
    if (__pyx_t_6) {
      __Pyx_AddTraceback("FromPyStructUtility.__pyx_convert__from_py_struct__CGL_vec4", __pyx_clineno, __pyx_lineno, __pyx_filename);
      if (__Pyx_GetException(&__pyx_t_2, &__pyx_t_7, &__pyx_t_8) < 0) __PYX_ERR(1, 28, __pyx_L22_except_error)
      __Pyx_GOTREF(__pyx_t_2);
      __Pyx_GOTREF(__pyx_t_7);
      __Pyx_GOTREF(__pyx_t_8);

      /* "FromPyStructUtility":29
 *         value = obj['z']
 *     except KeyError:
 *         raise ValueError("No value specified for struct attribute 'z'")             # <<<<<<<<<<<<<<
 *     result.z = value
 *     try:
 */
      __pyx_t_9 = __Pyx_PyObject_Call(__pyx_builtin_ValueError, __pyx_tuple__32, NULL); if (unlikely(!__pyx_t_9)) __PYX_ERR(1, 29, __pyx_L22_except_error)
      __Pyx_GOTREF(__pyx_t_9);
      __Pyx_Raise(__pyx_t_9, 0, 0, 0);
      __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
      __PYX_ERR(1, 29, __pyx_L22_except_error)
    }
    goto __pyx_L22_except_error;
    __pyx_L22_except_error:;

    /* "FromPyStructUtility":26
 *         raise ValueError("No value specified for struct attribute 'y'")
 *     result.y = value
 *     try:             # <<<<<<<<<<<<<<
 *         value = obj['z']
 *     except KeyError:
 */
    __Pyx_XGIVEREF(__pyx_t_3);
    __Pyx_XGIVEREF(__pyx_t_4);
    __Pyx_XGIVEREF(__pyx_t_5);
    __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
    goto __pyx_L1_error;
    __pyx_L25_try_end:;
  }

  /* "FromPyStructUtility":30
 *     except KeyError:
 *         raise ValueError("No value specified for struct attribute 'z'")
 *     result.z = value             # <<<<<<<<<<<<<<
 *     try:
 *         value = obj['w']
 */
  __pyx_t_10 = __pyx_PyFloat_AsFloat(__pyx_v_value); if (unlikely((__pyx_t_10 == ((CGL_float)-1)) && PyErr_Occurred())) __PYX_ERR(1, 30, __pyx_L1_error)
  __pyx_v_result.z = __pyx_t_10;

  /* "FromPyStructUtility":31
 *         raise ValueError("No value specified for struct attribute 'z'")
 *     result.z = value
 *     try:             # <<<<<<<<<<<<<<
 *         value = obj['w']
 *     except KeyError:
 */
  {
    __Pyx_PyThreadState_declare
    __Pyx_PyThreadState_assign
    __Pyx_ExceptionSave(&__pyx_t_5, &__pyx_t_4, &__pyx_t_3);
    __Pyx_XGOTREF(__pyx_t_5);
    __Pyx_XGOTREF(__pyx_t_4);
    __Pyx_XGOTREF(__pyx_t_3);
    /*try:*/ {

      /* "FromPyStructUtility":32
 *     result.z = value
 *     try:
 *         value = obj['w']             # <<<<<<<<<<<<<<
 *     except KeyError:
 *         raise ValueError("No value specified for struct attribute 'w'")
 */
      __pyx_t_8 = __Pyx_PyObject_Dict_GetItem(__pyx_v_obj, __pyx_n_s_w); if (unlikely(!__pyx_t_8)) __PYX_ERR(1, 32, __pyx_L28_error)
      __Pyx_GOTREF(__pyx_t_8);
      __Pyx_DECREF_SET(__pyx_v_value, __pyx_t_8);
      __pyx_t_8 = 0;

      /* "FromPyStructUtility":31
 *         raise ValueError("No value specified for struct attribute 'z'")
 *     result.z = value
 *     try:             # <<<<<<<<<<<<<<
 *         value = obj['w']
 *     except KeyError:
 */
    }
    __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
    __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
    goto __pyx_L33_try_end;
    __pyx_L28_error:;
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
    __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
    __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0;

    /* "FromPyStructUtility":33
 *     try:
 *         value = obj['w']
 *     except KeyError:             # <<<<<<<<<<<<<<
 *         raise ValueError("No value specified for struct attribute 'w'")
 *     result.w = value
 */
    __pyx_t_6 = __Pyx_PyErr_ExceptionMatches(__pyx_builtin_KeyError);
    if (__pyx_t_6) {
      __Pyx_AddTraceback("FromPyStructUtility.__pyx_convert__from_py_struct__CGL_vec4", __pyx_clineno, __pyx_lineno, __pyx_filename);
      if (__Pyx_GetException(&__pyx_t_8, &__pyx_t_7, &__pyx_t_2) < 0) __PYX_ERR(1, 33, __pyx_L30_except_error)
      __Pyx_GOTREF(__pyx_t_8);
      __Pyx_GOTREF(__pyx_t_7);
      __Pyx_GOTREF(__pyx_t_2);

      /* "FromPyStructUtility":34
 *         value = obj['w']
 *     except KeyError:
 *         raise ValueError("No value specified for struct attribute 'w'")             # <<<<<<<<<<<<<<
 *     result.w = value
 *     return result
 */
      __pyx_t_9 = __Pyx_PyObject_Call(__pyx_builtin_ValueError, __pyx_tuple__33, NULL); if (unlikely(!__pyx_t_9)) __PYX_ERR(1, 34, __pyx_L30_except_error)
      __Pyx_GOTREF(__pyx_t_9);
      __Pyx_Raise(__pyx_t_9, 0, 0, 0);
      __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
      __PYX_ERR(1, 34, __pyx_L30_except_error)
    }
    goto __pyx_L30_except_error;
    __pyx_L30_except_error:;

    /* "FromPyStructUtility":31
 *         raise ValueError("No value specified for struct attribute 'z'")
 *     result.z = value
 *     try:             # <<<<<<<<<<<<<<
 *         value = obj['w']
 *     except KeyError:
 */
    __Pyx_XGIVEREF(__pyx_t_5);
    __Pyx_XGIVEREF(__pyx_t_4);
    __Pyx_XGIVEREF(__pyx_t_3);
    __Pyx_ExceptionReset(__pyx_t_5, __pyx_t_4, __pyx_t_3);
    goto __pyx_L1_error;
    __pyx_L33_try_end:;
  }

  /* "FromPyStructUtility":35
 *     except KeyError:
 *         raise ValueError("No value specified for struct attribute 'w'")
 *     result.w = value             # <<<<<<<<<<<<<<
 *     return result
 * 
 */
  __pyx_t_10 = __pyx_PyFloat_AsFloat(__pyx_v_value); if (unlikely((__pyx_t_10 == ((CGL_float)-1)) && PyErr_Occurred())) __PYX_ERR(1, 35, __pyx_L1_error)
  __pyx_v_result.w = __pyx_t_10;

  /* "FromPyStructUtility":36
 *         raise ValueError("No value specified for struct attribute 'w'")
 *     result.w = value
 *     return result             # <<<<<<<<<<<<<<
 * 
 * 
 */
  __pyx_r = __pyx_v_result;
  goto __pyx_L0;

  /* "FromPyStructUtility":11
 * 
 * @cname("__pyx_convert__from_py_struct__CGL_vec4")
 * cdef struct_type __pyx_convert__from_py_struct__CGL_vec4(obj) except *:             # <<<<<<<<<<<<<<
 *     cdef struct_type result
 *     if not PyMapping_Check(obj):
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_XDECREF(__pyx_t_8);
  __Pyx_XDECREF(__pyx_t_9);
  __Pyx_AddTraceback("FromPyStructUtility.__pyx_convert__from_py_struct__CGL_vec4", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_pretend_to_initialize(&__pyx_r);
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_value);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "carray.to_py":112
 * 
 * @cname("__Pyx_carray_to_py_CGL_float")
 * cdef inline list __Pyx_carray_to_py_CGL_float(base_type *v, Py_ssize_t length):             # <<<<<<<<<<<<<<
 *     cdef size_t i
 *     cdef object value
 */

static CYTHON_INLINE PyObject *__Pyx_carray_to_py_CGL_float(CGL_float *__pyx_v_v, Py_ssize_t __pyx_v_length) {
  size_t __pyx_v_i;
  PyObject *__pyx_v_value = 0;
  PyObject *__pyx_v_l = NULL;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  size_t __pyx_t_2;
  size_t __pyx_t_3;
  size_t __pyx_t_4;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__Pyx_carray_to_py_CGL_float", 0);

  /* "carray.to_py":115
 *     cdef size_t i
 *     cdef object value
 *     l = PyList_New(length)             # <<<<<<<<<<<<<<
 *     for i in range(<size_t>length):
 *         value = v[i]
 */
  __pyx_t_1 = PyList_New(__pyx_v_length); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 115, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_v_l = ((PyObject*)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "carray.to_py":116
 *     cdef object value
 *     l = PyList_New(length)
 *     for i in range(<size_t>length):             # <<<<<<<<<<<<<<
 *         value = v[i]
 *         Py_INCREF(value)
 */
  __pyx_t_2 = ((size_t)__pyx_v_length);
  __pyx_t_3 = __pyx_t_2;
  for (__pyx_t_4 = 0; __pyx_t_4 < __pyx_t_3; __pyx_t_4+=1) {
    __pyx_v_i = __pyx_t_4;

    /* "carray.to_py":117
 *     l = PyList_New(length)
 *     for i in range(<size_t>length):
 *         value = v[i]             # <<<<<<<<<<<<<<
 *         Py_INCREF(value)
 *         PyList_SET_ITEM(l, i, value)
 */
    __pyx_t_1 = PyFloat_FromDouble((__pyx_v_v[__pyx_v_i])); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 117, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __Pyx_XDECREF_SET(__pyx_v_value, __pyx_t_1);
    __pyx_t_1 = 0;

    /* "carray.to_py":118
 *     for i in range(<size_t>length):
 *         value = v[i]
 *         Py_INCREF(value)             # <<<<<<<<<<<<<<
 *         PyList_SET_ITEM(l, i, value)
 *     return l
 */
    Py_INCREF(__pyx_v_value);

    /* "carray.to_py":119
 *         value = v[i]
 *         Py_INCREF(value)
 *         PyList_SET_ITEM(l, i, value)             # <<<<<<<<<<<<<<
 *     return l
 * 
 */
    PyList_SET_ITEM(__pyx_v_l, __pyx_v_i, __pyx_v_value);
  }

  /* "carray.to_py":120
 *         Py_INCREF(value)
 *         PyList_SET_ITEM(l, i, value)
 *     return l             # <<<<<<<<<<<<<<
 * 
 * 
 */
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF(__pyx_v_l);
  __pyx_r = __pyx_v_l;
  goto __pyx_L0;

  /* "carray.to_py":112
 * 
 * @cname("__Pyx_carray_to_py_CGL_float")
 * cdef inline list __Pyx_carray_to_py_CGL_float(base_type *v, Py_ssize_t length):             # <<<<<<<<<<<<<<
 *     cdef size_t i
 *     cdef object value
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("carray.to_py.__Pyx_carray_to_py_CGL_float", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_value);
  __Pyx_XDECREF(__pyx_v_l);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "carray.to_py":124
 * 
 * @cname("__Pyx_carray_to_tuple_CGL_float")
 * cdef inline tuple __Pyx_carray_to_tuple_CGL_float(base_type *v, Py_ssize_t length):             # <<<<<<<<<<<<<<
 *     cdef size_t i
 *     cdef object value
 */

static CYTHON_INLINE PyObject *__Pyx_carray_to_tuple_CGL_float(CGL_float *__pyx_v_v, Py_ssize_t __pyx_v_length) {
  size_t __pyx_v_i;
  PyObject *__pyx_v_value = 0;
  PyObject *__pyx_v_t = NULL;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  size_t __pyx_t_2;
  size_t __pyx_t_3;
  size_t __pyx_t_4;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__Pyx_carray_to_tuple_CGL_float", 0);

  /* "carray.to_py":127
 *     cdef size_t i
 *     cdef object value
 *     t = PyTuple_New(length)             # <<<<<<<<<<<<<<
 *     for i in range(<size_t>length):
 *         value = v[i]
 */
  __pyx_t_1 = PyTuple_New(__pyx_v_length); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 127, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_v_t = ((PyObject*)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "carray.to_py":128
 *     cdef object value
 *     t = PyTuple_New(length)
 *     for i in range(<size_t>length):             # <<<<<<<<<<<<<<
 *         value = v[i]
 *         Py_INCREF(value)
 */
  __pyx_t_2 = ((size_t)__pyx_v_length);
  __pyx_t_3 = __pyx_t_2;
  for (__pyx_t_4 = 0; __pyx_t_4 < __pyx_t_3; __pyx_t_4+=1) {
    __pyx_v_i = __pyx_t_4;

    /* "carray.to_py":129
 *     t = PyTuple_New(length)
 *     for i in range(<size_t>length):
 *         value = v[i]             # <<<<<<<<<<<<<<
 *         Py_INCREF(value)
 *         PyTuple_SET_ITEM(t, i, value)
 */
    __pyx_t_1 = PyFloat_FromDouble((__pyx_v_v[__pyx_v_i])); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 129, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __Pyx_XDECREF_SET(__pyx_v_value, __pyx_t_1);
    __pyx_t_1 = 0;

    /* "carray.to_py":130
 *     for i in range(<size_t>length):
 *         value = v[i]
 *         Py_INCREF(value)             # <<<<<<<<<<<<<<
 *         PyTuple_SET_ITEM(t, i, value)
 *     return t
 */
    Py_INCREF(__pyx_v_value);

    /* "carray.to_py":131
 *         value = v[i]
 *         Py_INCREF(value)
 *         PyTuple_SET_ITEM(t, i, value)             # <<<<<<<<<<<<<<
 *     return t
 */
    PyTuple_SET_ITEM(__pyx_v_t, __pyx_v_i, __pyx_v_value);
  }

  /* "carray.to_py":132
 *         Py_INCREF(value)
 *         PyTuple_SET_ITEM(t, i, value)
 *     return t             # <<<<<<<<<<<<<<
 */
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF(__pyx_v_t);
  __pyx_r = __pyx_v_t;
  goto __pyx_L0;

  /* "carray.to_py":124
 * 
 * @cname("__Pyx_carray_to_tuple_CGL_float")
 * cdef inline tuple __Pyx_carray_to_tuple_CGL_float(base_type *v, Py_ssize_t length):             # <<<<<<<<<<<<<<
 *     cdef size_t i
 *     cdef object value
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("carray.to_py.__Pyx_carray_to_tuple_CGL_float", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_value);
  __Pyx_XDECREF(__pyx_v_t);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "FromPyStructUtility":11
 * 
 * @cname("__pyx_convert__from_py_struct__CGL_ivec4")
 * cdef struct_type __pyx_convert__from_py_struct__CGL_ivec4(obj) except *:             # <<<<<<<<<<<<<<
 *     cdef struct_type result
 *     if not PyMapping_Check(obj):
 */

static struct CGL_ivec4 __pyx_convert__from_py_struct__CGL_ivec4(PyObject *__pyx_v_obj) {
  struct CGL_ivec4 __pyx_v_result;
  PyObject *__pyx_v_value = NULL;
  struct CGL_ivec4 __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  int __pyx_t_6;
  PyObject *__pyx_t_7 = NULL;
  PyObject *__pyx_t_8 = NULL;
  PyObject *__pyx_t_9 = NULL;
  CGL_int __pyx_t_10;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__pyx_convert__from_py_struct__CGL_ivec4", 0);

  /* "FromPyStructUtility":13
 * cdef struct_type __pyx_convert__from_py_struct__CGL_ivec4(obj) except *:
 *     cdef struct_type result
 *     if not PyMapping_Check(obj):             # <<<<<<<<<<<<<<
 *         PyErr_Format(TypeError, b"Expected %.16s, got %.200s", b"a mapping", Py_TYPE(obj).tp_name)
 * 
 */
  __pyx_t_1 = ((!(PyMapping_Check(__pyx_v_obj) != 0)) != 0);
  if (__pyx_t_1) {

    /* "FromPyStructUtility":14
 *     cdef struct_type result
 *     if not PyMapping_Check(obj):
 *         PyErr_Format(TypeError, b"Expected %.16s, got %.200s", b"a mapping", Py_TYPE(obj).tp_name)             # <<<<<<<<<<<<<<
 * 
 *     try:
 */
    __pyx_t_2 = PyErr_Format(__pyx_builtin_TypeError, ((char const *)"Expected %.16s, got %.200s"), ((char *)"a mapping"), Py_TYPE(__pyx_v_obj)->tp_name); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 14, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

    /* "FromPyStructUtility":13
 * cdef struct_type __pyx_convert__from_py_struct__CGL_ivec4(obj) except *:
 *     cdef struct_type result
 *     if not PyMapping_Check(obj):             # <<<<<<<<<<<<<<
 *         PyErr_Format(TypeError, b"Expected %.16s, got %.200s", b"a mapping", Py_TYPE(obj).tp_name)
 * 
 */
  }

  /* "FromPyStructUtility":16
 *         PyErr_Format(TypeError, b"Expected %.16s, got %.200s", b"a mapping", Py_TYPE(obj).tp_name)
 * 
 *     try:             # <<<<<<<<<<<<<<
 *         value = obj['x']
 *     except KeyError:
 */
  {
    __Pyx_PyThreadState_declare
    __Pyx_PyThreadState_assign
    __Pyx_ExceptionSave(&__pyx_t_3, &__pyx_t_4, &__pyx_t_5);
    __Pyx_XGOTREF(__pyx_t_3);
    __Pyx_XGOTREF(__pyx_t_4);
    __Pyx_XGOTREF(__pyx_t_5);
    /*try:*/ {

      /* "FromPyStructUtility":17
 * 
 *     try:
 *         value = obj['x']             # <<<<<<<<<<<<<<
 *     except KeyError:
 *         raise ValueError("No value specified for struct attribute 'x'")
 */
      __pyx_t_2 = __Pyx_PyObject_Dict_GetItem(__pyx_v_obj, __pyx_n_s_x); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 17, __pyx_L4_error)
      __Pyx_GOTREF(__pyx_t_2);
      __pyx_v_value = __pyx_t_2;
      __pyx_t_2 = 0;

      /* "FromPyStructUtility":16
 *         PyErr_Format(TypeError, b"Expected %.16s, got %.200s", b"a mapping", Py_TYPE(obj).tp_name)
 * 
 *     try:             # <<<<<<<<<<<<<<
 *         value = obj['x']
 *     except KeyError:
 */
    }
    __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
    __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
    goto __pyx_L9_try_end;
    __pyx_L4_error:;
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;

    /* "FromPyStructUtility":18
 *     try:
 *         value = obj['x']
 *     except KeyError:             # <<<<<<<<<<<<<<
 *         raise ValueError("No value specified for struct attribute 'x'")
 *     result.x = value
 */
    __pyx_t_6 = __Pyx_PyErr_ExceptionMatches(__pyx_builtin_KeyError);
    if (__pyx_t_6) {
      __Pyx_AddTraceback("FromPyStructUtility.__pyx_convert__from_py_struct__CGL_ivec4", __pyx_clineno, __pyx_lineno, __pyx_filename);
      if (__Pyx_GetException(&__pyx_t_2, &__pyx_t_7, &__pyx_t_8) < 0) __PYX_ERR(1, 18, __pyx_L6_except_error)
      __Pyx_GOTREF(__pyx_t_2);
      __Pyx_GOTREF(__pyx_t_7);
      __Pyx_GOTREF(__pyx_t_8);

      /* "FromPyStructUtility":19
 *         value = obj['x']
 *     except KeyError:
 *         raise ValueError("No value specified for struct attribute 'x'")             # <<<<<<<<<<<<<<
 *     result.x = value
 *     try:
 */
      __pyx_t_9 = __Pyx_PyObject_Call(__pyx_builtin_ValueError, __pyx_tuple__30, NULL); if (unlikely(!__pyx_t_9)) __PYX_ERR(1, 19, __pyx_L6_except_error)
      __Pyx_GOTREF(__pyx_t_9);
      __Pyx_Raise(__pyx_t_9, 0, 0, 0);
      __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
      __PYX_ERR(1, 19, __pyx_L6_except_error)
    }
    goto __pyx_L6_except_error;
    __pyx_L6_except_error:;

    /* "FromPyStructUtility":16
 *         PyErr_Format(TypeError, b"Expected %.16s, got %.200s", b"a mapping", Py_TYPE(obj).tp_name)
 * 
 *     try:             # <<<<<<<<<<<<<<
 *         value = obj['x']
 *     except KeyError:
 */
    __Pyx_XGIVEREF(__pyx_t_3);
    __Pyx_XGIVEREF(__pyx_t_4);
    __Pyx_XGIVEREF(__pyx_t_5);
    __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
    goto __pyx_L1_error;
    __pyx_L9_try_end:;
  }

  /* "FromPyStructUtility":20
 *     except KeyError:
 *         raise ValueError("No value specified for struct attribute 'x'")
 *     result.x = value             # <<<<<<<<<<<<<<
 *     try:
 *         value = obj['y']
 */
  __pyx_t_10 = __Pyx_PyInt_As_CGL_int(__pyx_v_value); if (unlikely((__pyx_t_10 == ((CGL_int)-1)) && PyErr_Occurred())) __PYX_ERR(1, 20, __pyx_L1_error)
  __pyx_v_result.x = __pyx_t_10;

  /* "FromPyStructUtility":21
 *         raise ValueError("No value specified for struct attribute 'x'")
 *     result.x = value
 *     try:             # <<<<<<<<<<<<<<
 *         value = obj['y']
 *     except KeyError:
 */
  {
    __Pyx_PyThreadState_declare
    __Pyx_PyThreadState_assign
    __Pyx_ExceptionSave(&__pyx_t_5, &__pyx_t_4, &__pyx_t_3);
    __Pyx_XGOTREF(__pyx_t_5);
    __Pyx_XGOTREF(__pyx_t_4);
    __Pyx_XGOTREF(__pyx_t_3);
    /*try:*/ {

      /* "FromPyStructUtility":22
 *     result.x = value
 *     try:
 *         value = obj['y']             # <<<<<<<<<<<<<<
 *     except KeyError:
 *         raise ValueError("No value specified for struct attribute 'y'")
 */
      __pyx_t_8 = __Pyx_PyObject_Dict_GetItem(__pyx_v_obj, __pyx_n_s_y); if (unlikely(!__pyx_t_8)) __PYX_ERR(1, 22, __pyx_L12_error)
      __Pyx_GOTREF(__pyx_t_8);
      __Pyx_DECREF_SET(__pyx_v_value, __pyx_t_8);
      __pyx_t_8 = 0;

      /* "FromPyStructUtility":21
 *         raise ValueError("No value specified for struct attribute 'x'")
 *     result.x = value
 *     try:             # <<<<<<<<<<<<<<
 *         value = obj['y']
 *     except KeyError:
 */
    }
    __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
    __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
    goto __pyx_L17_try_end;
    __pyx_L12_error:;
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
    __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
    __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0;

    /* "FromPyStructUtility":23
 *     try:
 *         value = obj['y']
 *     except KeyError:             # <<<<<<<<<<<<<<
 *         raise ValueError("No value specified for struct attribute 'y'")
 *     result.y = value
 */
    __pyx_t_6 = __Pyx_PyErr_ExceptionMatches(__pyx_builtin_KeyError);
    if (__pyx_t_6) {
      __Pyx_AddTraceback("FromPyStructUtility.__pyx_convert__from_py_struct__CGL_ivec4", __pyx_clineno, __pyx_lineno, __pyx_filename);
      if (__Pyx_GetException(&__pyx_t_8, &__pyx_t_7, &__pyx_t_2) < 0) __PYX_ERR(1, 23, __pyx_L14_except_error)
      __Pyx_GOTREF(__pyx_t_8);
      __Pyx_GOTREF(__pyx_t_7);
      __Pyx_GOTREF(__pyx_t_2);

      /* "FromPyStructUtility":24
 *         value = obj['y']
 *     except KeyError:
 *         raise ValueError("No value specified for struct attribute 'y'")             # <<<<<<<<<<<<<<
 *     result.y = value
 *     try:
 */
      __pyx_t_9 = __Pyx_PyObject_Call(__pyx_builtin_ValueError, __pyx_tuple__31, NULL); if (unlikely(!__pyx_t_9)) __PYX_ERR(1, 24, __pyx_L14_except_error)
      __Pyx_GOTREF(__pyx_t_9);
      __Pyx_Raise(__pyx_t_9, 0, 0, 0);
      __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
      __PYX_ERR(1, 24, __pyx_L14_except_error)
    }
    goto __pyx_L14_except_error;
    __pyx_L14_except_error:;

    /* "FromPyStructUtility":21
 *         raise ValueError("No value specified for struct attribute 'x'")
 *     result.x = value
 *     try:             # <<<<<<<<<<<<<<
 *         value = obj['y']
 *     except KeyError:
 */
    __Pyx_XGIVEREF(__pyx_t_5);
    __Pyx_XGIVEREF(__pyx_t_4);
    __Pyx_XGIVEREF(__pyx_t_3);
    __Pyx_ExceptionReset(__pyx_t_5, __pyx_t_4, __pyx_t_3);
    goto __pyx_L1_error;
    __pyx_L17_try_end:;
  }

  /* "FromPyStructUtility":25
 *     except KeyError:
 *         raise ValueError("No value specified for struct attribute 'y'")
 *     result.y = value             # <<<<<<<<<<<<<<
 *     try:
 *         value = obj['z']
 */
  __pyx_t_10 = __Pyx_PyInt_As_CGL_int(__pyx_v_value); if (unlikely((__pyx_t_10 == ((CGL_int)-1)) && PyErr_Occurred())) __PYX_ERR(1, 25, __pyx_L1_error)
  __pyx_v_result.y = __pyx_t_10;

  /* "FromPyStructUtility":26
 *         raise ValueError("No value specified for struct attribute 'y'")
 *     result.y = value
 *     try:             # <<<<<<<<<<<<<<
 *         value = obj['z']
 *     except KeyError:
 */
  {
    __Pyx_PyThreadState_declare
    __Pyx_PyThreadState_assign
    __Pyx_ExceptionSave(&__pyx_t_3, &__pyx_t_4, &__pyx_t_5);
    __Pyx_XGOTREF(__pyx_t_3);
    __Pyx_XGOTREF(__pyx_t_4);
    __Pyx_XGOTREF(__pyx_t_5);
    /*try:*/ {

      /* "FromPyStructUtility":27
 *     result.y = value
 *     try:
 *         value = obj['z']             # <<<<<<<<<<<<<<
 *     except KeyError:
 *         raise ValueError("No value specified for struct attribute 'z'")
 */
      __pyx_t_2 = __Pyx_PyObject_Dict_GetItem(__pyx_v_obj, __pyx_n_s_z); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 27, __pyx_L20_error)
      __Pyx_GOTREF(__pyx_t_2);
      __Pyx_DECREF_SET(__pyx_v_value, __pyx_t_2);
      __pyx_t_2 = 0;

      /* "FromPyStructUtility":26
 *         raise ValueError("No value specified for struct attribute 'y'")
 *     result.y = value
 *     try:             # <<<<<<<<<<<<<<
 *         value = obj['z']
 *     except KeyError:
 */
    }
    __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
    __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
    goto __pyx_L25_try_end;
    __pyx_L20_error:;
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
    __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
    __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0;

    /* "FromPyStructUtility":28
 *     try:
 *         value = obj['z']
 *     except KeyError:             # <<<<<<<<<<<<<<
 *         raise ValueError("No value specified for struct attribute 'z'")
 *     result.z = value
 */
    __pyx_t_6 = __Pyx_PyErr_ExceptionMatches(__pyx_builtin_KeyError);
    if (__pyx_t_6) {
      __Pyx_AddTraceback("FromPyStructUtility.__pyx_convert__from_py_struct__CGL_ivec4", __pyx_clineno, __pyx_lineno, __pyx_filename);
      if (__Pyx_GetException(&__pyx_t_2, &__pyx_t_7, &__pyx_t_8) < 0) __PYX_ERR(1, 28, __pyx_L22_except_error)
      __Pyx_GOTREF(__pyx_t_2);
      __Pyx_GOTREF(__pyx_t_7);
      __Pyx_GOTREF(__pyx_t_8);

      /* "FromPyStructUtility":29
 *         value = obj['z']
 *     except KeyError:
 *         raise ValueError("No value specified for struct attribute 'z'")             # <<<<<<<<<<<<<<
 *     result.z = value
 *     try:
 */
      __pyx_t_9 = __Pyx_PyObject_Call(__pyx_builtin_ValueError, __pyx_tuple__32, NULL); if (unlikely(!__pyx_t_9)) __PYX_ERR(1, 29, __pyx_L22_except_error)
      __Pyx_GOTREF(__pyx_t_9);
      __Pyx_Raise(__pyx_t_9, 0, 0, 0);
      __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
      __PYX_ERR(1, 29, __pyx_L22_except_error)
    }
    goto __pyx_L22_except_error;
    __pyx_L22_except_error:;

    /* "FromPyStructUtility":26
 *         raise ValueError("No value specified for struct attribute 'y'")
 *     result.y = value
 *     try:             # <<<<<<<<<<<<<<
 *         value = obj['z']
 *     except KeyError:
 */
    __Pyx_XGIVEREF(__pyx_t_3);
    __Pyx_XGIVEREF(__pyx_t_4);
    __Pyx_XGIVEREF(__pyx_t_5);
    __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
    goto __pyx_L1_error;
    __pyx_L25_try_end:;
  }

  /* "FromPyStructUtility":30
 *     except KeyError:
 *         raise ValueError("No value specified for struct attribute 'z'")
 *     result.z = value             # <<<<<<<<<<<<<<
 *     try:
 *         value = obj['w']
 */
  __pyx_t_10 = __Pyx_PyInt_As_CGL_int(__pyx_v_value); if (unlikely((__pyx_t_10 == ((CGL_int)-1)) && PyErr_Occurred())) __PYX_ERR(1, 30, __pyx_L1_error)
  __pyx_v_result.z = __pyx_t_10;

  /* "FromPyStructUtility":31
 *         raise ValueError("No value specified for struct attribute 'z'")
 *     result.z = value
 *     try:             # <<<<<<<<<<<<<<
 *         value = obj['w']
 *     except KeyError:
 */
  {
    __Pyx_PyThreadState_declare
    __Pyx_PyThreadState_assign
    __Pyx_ExceptionSave(&__pyx_t_5, &__pyx_t_4, &__pyx_t_3);
    __Pyx_XGOTREF(__pyx_t_5);
    __Pyx_XGOTREF(__pyx_t_4);
    __Pyx_XGOTREF(__pyx_t_3);
    /*try:*/ {

      /* "FromPyStructUtility":32
 *     result.z = value
 *     try:
 *         value = obj['w']             # <<<<<<<<<<<<<<
 *     except KeyError:
 *         raise ValueError("No value specified for struct attribute 'w'")
 */
      __pyx_t_8 = __Pyx_PyObject_Dict_GetItem(__pyx_v_obj, __pyx_n_s_w); if (unlikely(!__pyx_t_8)) __PYX_ERR(1, 32, __pyx_L28_error)
      __Pyx_GOTREF(__pyx_t_8);
      __Pyx_DECREF_SET(__pyx_v_value, __pyx_t_8);
      __pyx_t_8 = 0;

      /* "FromPyStructUtility":31
 *         raise ValueError("No value specified for struct attribute 'z'")
 *     result.z = value
 *     try:             # <<<<<<<<<<<<<<
 *         value = obj['w']
 *     except KeyError:
 */
    }
    __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
    __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
    goto __pyx_L33_try_end;
    __pyx_L28_error:;
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
    __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
    __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0;

    /* "FromPyStructUtility":33
 *     try:
 *         value = obj['w']
 *     except KeyError:             # <<<<<<<<<<<<<<
 *         raise ValueError("No value specified for struct attribute 'w'")
 *     result.w = value
 */
    __pyx_t_6 = __Pyx_PyErr_ExceptionMatches(__pyx_builtin_KeyError);
    if (__pyx_t_6) {
      __Pyx_AddTraceback("FromPyStructUtility.__pyx_convert__from_py_struct__CGL_ivec4", __pyx_clineno, __pyx_lineno, __pyx_filename);
      if (__Pyx_GetException(&__pyx_t_8, &__pyx_t_7, &__pyx_t_2) < 0) __PYX_ERR(1, 33, __pyx_L30_except_error)
      __Pyx_GOTREF(__pyx_t_8);
      __Pyx_GOTREF(__pyx_t_7);
      __Pyx_GOTREF(__pyx_t_2);

      /* "FromPyStructUtility":34
 *         value = obj['w']
 *     except KeyError:
 *         raise ValueError("No value specified for struct attribute 'w'")             # <<<<<<<<<<<<<<
 *     result.w = value
 *     return result
 */
      __pyx_t_9 = __Pyx_PyObject_Call(__pyx_builtin_ValueError, __pyx_tuple__33, NULL); if (unlikely(!__pyx_t_9)) __PYX_ERR(1, 34, __pyx_L30_except_error)
      __Pyx_GOTREF(__pyx_t_9);
      __Pyx_Raise(__pyx_t_9, 0, 0, 0);
      __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
      __PYX_ERR(1, 34, __pyx_L30_except_error)
    }
    goto __pyx_L30_except_error;
    __pyx_L30_except_error:;

    /* "FromPyStructUtility":31
 *         raise ValueError("No value specified for struct attribute 'z'")
 *     result.z = value
 *     try:             # <<<<<<<<<<<<<<
 *         value = obj['w']
 *     except KeyError:
 */
    __Pyx_XGIVEREF(__pyx_t_5);
    __Pyx_XGIVEREF(__pyx_t_4);
    __Pyx_XGIVEREF(__pyx_t_3);
    __Pyx_ExceptionReset(__pyx_t_5, __pyx_t_4, __pyx_t_3);
    goto __pyx_L1_error;
    __pyx_L33_try_end:;
  }

  /* "FromPyStructUtility":35
 *     except KeyError:
 *         raise ValueError("No value specified for struct attribute 'w'")
 *     result.w = value             # <<<<<<<<<<<<<<
 *     return result
 * 
 */
  __pyx_t_10 = __Pyx_PyInt_As_CGL_int(__pyx_v_value); if (unlikely((__pyx_t_10 == ((CGL_int)-1)) && PyErr_Occurred())) __PYX_ERR(1, 35, __pyx_L1_error)
  __pyx_v_result.w = __pyx_t_10;

  /* "FromPyStructUtility":36
 *         raise ValueError("No value specified for struct attribute 'w'")
 *     result.w = value
 *     return result             # <<<<<<<<<<<<<<
 * 
 * 
 */
  __pyx_r = __pyx_v_result;
  goto __pyx_L0;

  /* "FromPyStructUtility":11
 * 
 * @cname("__pyx_convert__from_py_struct__CGL_ivec4")
 * cdef struct_type __pyx_convert__from_py_struct__CGL_ivec4(obj) except *:             # <<<<<<<<<<<<<<
 *     cdef struct_type result
 *     if not PyMapping_Check(obj):
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_XDECREF(__pyx_t_8);
  __Pyx_XDECREF(__pyx_t_9);
  __Pyx_AddTraceback("FromPyStructUtility.__pyx_convert__from_py_struct__CGL_ivec4", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_pretend_to_initialize(&__pyx_r);
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_value);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static struct CGL_mesh_vertex __pyx_convert__from_py_struct__CGL_mesh_vertex(PyObject *__pyx_v_obj) {
  struct CGL_mesh_vertex __pyx_v_result;
  PyObject *__pyx_v_value = NULL;
  struct CGL_mesh_vertex __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  int __pyx_t_6;
  PyObject *__pyx_t_7 = NULL;
  PyObject *__pyx_t_8 = NULL;
  PyObject *__pyx_t_9 = NULL;
  struct CGL_vec4 __pyx_t_10;
  struct CGL_ivec4 __pyx_t_11;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__pyx_convert__from_py_struct__CGL_mesh_vertex", 0);

  /* "FromPyStructUtility":13
 * cdef struct_type __pyx_convert__from_py_struct__CGL_mesh_vertex(obj) except *:
 *     cdef struct_type result
 *     if not PyMapping_Check(obj):             # <<<<<<<<<<<<<<
 *         PyErr_Format(TypeError, b"Expected %.16s, got %.200s", b"a mapping", Py_TYPE(obj).tp_name)
 * 
 */
  __pyx_t_1 = ((!(PyMapping_Check(__pyx_v_obj) != 0)) != 0);
  if (__pyx_t_1) {

    /* "FromPyStructUtility":14
 *     cdef struct_type result
 *     if not PyMapping_Check(obj):
 *         PyErr_Format(TypeError, b"Expected %.16s, got %.200s", b"a mapping", Py_TYPE(obj).tp_name)             # <<<<<<<<<<<<<<
 * 
 *     try:
 */
    __pyx_t_2 = PyErr_Format(__pyx_builtin_TypeError, ((char const *)"Expected %.16s, got %.200s"), ((char *)"a mapping"), Py_TYPE(__pyx_v_obj)->tp_name); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 14, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

    /* "FromPyStructUtility":13
 * cdef struct_type __pyx_convert__from_py_struct__CGL_mesh_vertex(obj) except *:
 *     cdef struct_type result
 *     if not PyMapping_Check(obj):             # <<<<<<<<<<<<<<
 *         PyErr_Format(TypeError, b"Expected %.16s, got %.200s", b"a mapping", Py_TYPE(obj).tp_name)
 * 
 */
  }

  /* "FromPyStructUtility":16
 *         PyErr_Format(TypeError, b"Expected %.16s, got %.200s", b"a mapping", Py_TYPE(obj).tp_name)
 * 
 *     try:             # <<<<<<<<<<<<<<
 *         value = obj['position']
 *     except KeyError:
 */
  {
    __Pyx_PyThreadState_declare
    __Pyx_PyThreadState_assign
    __Pyx_ExceptionSave(&__pyx_t_3, &__pyx_t_4, &__pyx_t_5);
    __Pyx_XGOTREF(__pyx_t_3);
    __Pyx_XGOTREF(__pyx_t_4);
    __Pyx_XGOTREF(__pyx_t_5);
    /*try:*/ {

      /* "FromPyStructUtility":17
 * 
 *     try:
 *         value = obj['position']             # <<<<<<<<<<<<<<
 *     except KeyError:
 *         raise ValueError("No value specified for struct attribute 'position'")
 */
      __pyx_t_2 = __Pyx_PyObject_Dict_GetItem(__pyx_v_obj, __pyx_n_s_position); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 17, __pyx_L4_error)
      __Pyx_GOTREF(__pyx_t_2);
      __pyx_v_value = __pyx_t_2;
      __pyx_t_2 = 0;

      /* "FromPyStructUtility":16
 *         PyErr_Format(TypeError, b"Expected %.16s, got %.200s", b"a mapping", Py_TYPE(obj).tp_name)
 * 
 *     try:             # <<<<<<<<<<<<<<
 *         value = obj['position']
 *     except KeyError:
 */
    }
    __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
    __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
    goto __pyx_L9_try_end;
    __pyx_L4_error:;
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;

    /* "FromPyStructUtility":18
 *     try:
 *         value = obj['position']
 *     except KeyError:             # <<<<<<<<<<<<<<
 *         raise ValueError("No value specified for struct attribute 'position'")
 *     result.position = value
 */
    __pyx_t_6 = __Pyx_PyErr_ExceptionMatches(__pyx_builtin_KeyError);
    if (__pyx_t_6) {
      __Pyx_AddTraceback("FromPyStructUtility.__pyx_convert__from_py_struct__CGL_mesh_vertex", __pyx_clineno, __pyx_lineno, __pyx_filename);
      if (__Pyx_GetException(&__pyx_t_2, &__pyx_t_7, &__pyx_t_8) < 0) __PYX_ERR(1, 18, __pyx_L6_except_error)
      __Pyx_GOTREF(__pyx_t_2);
      __Pyx_GOTREF(__pyx_t_7);
      __Pyx_GOTREF(__pyx_t_8);

      /* "FromPyStructUtility":19
 *         value = obj['position']
 *     except KeyError:
 *         raise ValueError("No value specified for struct attribute 'position'")             # <<<<<<<<<<<<<<
 *     result.position = value
 *     try:
 */
      __pyx_t_9 = __Pyx_PyObject_Call(__pyx_builtin_ValueError, __pyx_tuple__34, NULL); if (unlikely(!__pyx_t_9)) __PYX_ERR(1, 19, __pyx_L6_except_error)
      __Pyx_GOTREF(__pyx_t_9);
      __Pyx_Raise(__pyx_t_9, 0, 0, 0);
      __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
      __PYX_ERR(1, 19, __pyx_L6_except_error)
    }
    goto __pyx_L6_except_error;
    __pyx_L6_except_error:;

    /* "FromPyStructUtility":16
 *         PyErr_Format(TypeError, b"Expected %.16s, got %.200s", b"a mapping", Py_TYPE(obj).tp_name)
 * 
 *     try:             # <<<<<<<<<<<<<<
 *         value = obj['position']
 *     except KeyError:
 */
    __Pyx_XGIVEREF(__pyx_t_3);
    __Pyx_XGIVEREF(__pyx_t_4);
    __Pyx_XGIVEREF(__pyx_t_5);
    __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
    goto __pyx_L1_error;
    __pyx_L9_try_end:;
  }

  /* "FromPyStructUtility":20
 *     except KeyError:
 *         raise ValueError("No value specified for struct attribute 'position'")
 *     result.position = value             # <<<<<<<<<<<<<<
 *     try:
 *         value = obj['normal']
 */
  __pyx_t_10 = __pyx_convert__from_py_struct__CGL_vec4(__pyx_v_value); if (unlikely(PyErr_Occurred())) __PYX_ERR(1, 20, __pyx_L1_error)
  __pyx_v_result.position = __pyx_t_10;

  /* "FromPyStructUtility":21
 *         raise ValueError("No value specified for struct attribute 'position'")
 *     result.position = value
 *     try:             # <<<<<<<<<<<<<<
 *         value = obj['normal']
 *     except KeyError:
 */
  {
    __Pyx_PyThreadState_declare
    __Pyx_PyThreadState_assign
    __Pyx_ExceptionSave(&__pyx_t_5, &__pyx_t_4, &__pyx_t_3);
    __Pyx_XGOTREF(__pyx_t_5);
    __Pyx_XGOTREF(__pyx_t_4);
    __Pyx_XGOTREF(__pyx_t_3);
    /*try:*/ {

      /* "FromPyStructUtility":22
 *     result.position = value
 *     try:
 *         value = obj['normal']             # <<<<<<<<<<<<<<
 *     except KeyError:
 *         raise ValueError("No value specified for struct attribute 'normal'")
 */
      __pyx_t_8 = __Pyx_PyObject_Dict_GetItem(__pyx_v_obj, __pyx_n_s_normal); if (unlikely(!__pyx_t_8)) __PYX_ERR(1, 22, __pyx_L12_error)
      __Pyx_GOTREF(__pyx_t_8);
      __Pyx_DECREF_SET(__pyx_v_value, __pyx_t_8);
      __pyx_t_8 = 0;

      /* "FromPyStructUtility":21
 *         raise ValueError("No value specified for struct attribute 'position'")
 *     result.position = value
 *     try:             # <<<<<<<<<<<<<<
 *         value = obj['normal']
 *     except KeyError:
 */
    }
    __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
    __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
    goto __pyx_L17_try_end;
    __pyx_L12_error:;
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
    __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
    __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0;

    /* "FromPyStructUtility":23
 *     try:
 *         value = obj['normal']
 *     except KeyError:             # <<<<<<<<<<<<<<
 *         raise ValueError("No value specified for struct attribute 'normal'")
 *     result.normal = value
 */
    __pyx_t_6 = __Pyx_PyErr_ExceptionMatches(__pyx_builtin_KeyError);
    if (__pyx_t_6) {
      __Pyx_AddTraceback("FromPyStructUtility.__pyx_convert__from_py_struct__CGL_mesh_vertex", __pyx_clineno, __pyx_lineno, __pyx_filename);
      if (__Pyx_GetException(&__pyx_t_8, &__pyx_t_7, &__pyx_t_2) < 0) __PYX_ERR(1, 23, __pyx_L14_except_error)
      __Pyx_GOTREF(__pyx_t_8);
      __Pyx_GOTREF(__pyx_t_7);
      __Pyx_GOTREF(__pyx_t_2);

      /* "FromPyStructUtility":24
 *         value = obj['normal']
 *     except KeyError:
 *         raise ValueError("No value specified for struct attribute 'normal'")             # <<<<<<<<<<<<<<
 *     result.normal = value
 *     try:
 */
      __pyx_t_9 = __Pyx_PyObject_Call(__pyx_builtin_ValueError, __pyx_tuple__35, NULL); if (unlikely(!__pyx_t_9)) __PYX_ERR(1, 24, __pyx_L14_except_error)
      __Pyx_GOTREF(__pyx_t_9);
      __Pyx_Raise(__pyx_t_9, 0, 0, 0);
      __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
      __PYX_ERR(1, 24, __pyx_L14_except_error)
    }
    goto __pyx_L14_except_error;
    __pyx_L14_except_error:;

    /* "FromPyStructUtility":21
 *         raise ValueError("No value specified for struct attribute 'position'")
 *     result.position = value
 *     try:             # <<<<<<<<<<<<<<
 *         value = obj['normal']
 *     except KeyError:
 */
    __Pyx_XGIVEREF(__pyx_t_5);
    __Pyx_XGIVEREF(__pyx_t_4);
    __Pyx_XGIVEREF(__pyx_t_3);
    __Pyx_ExceptionReset(__pyx_t_5, __pyx_t_4, __pyx_t_3);
    goto __pyx_L1_error;
    __pyx_L17_try_end:;
  }

  /* "FromPyStructUtility":25
 *     except KeyError:
 *         raise ValueError("No value specified for struct attribute 'normal'")
 *     result.normal = value             # <<<<<<<<<<<<<<
 *     try:
 *         value = obj['texture_coordinates']
 */
  __pyx_t_10 = __pyx_convert__from_py_struct__CGL_vec4(__pyx_v_value); if (unlikely(PyErr_Occurred())) __PYX_ERR(1, 25, __pyx_L1_error)
  __pyx_v_result.normal = __pyx_t_10;

  /* "FromPyStructUtility":26
 *         raise ValueError("No value specified for struct attribute 'normal'")
 *     result.normal = value
 *     try:             # <<<<<<<<<<<<<<
 *         value = obj['texture_coordinates']
 *     except KeyError:
 */
  {
    __Pyx_PyThreadState_declare
    __Pyx_PyThreadState_assign
    __Pyx_ExceptionSave(&__pyx_t_3, &__pyx_t_4, &__pyx_t_5);
    __Pyx_XGOTREF(__pyx_t_3);
    __Pyx_XGOTREF(__pyx_t_4);
    __Pyx_XGOTREF(__pyx_t_5);
    /*try:*/ {

      /* "FromPyStructUtility":27
 *     result.normal = value
 *     try:
 *         value = obj['texture_coordinates']             # <<<<<<<<<<<<<<
 *     except KeyError:
 *         raise ValueError("No value specified for struct attribute 'texture_coordinates'")
 */
      __pyx_t_2 = __Pyx_PyObject_Dict_GetItem(__pyx_v_obj, __pyx_n_s_texture_coordinates); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 27, __pyx_L20_error)
      __Pyx_GOTREF(__pyx_t_2);
      __Pyx_DECREF_SET(__pyx_v_value, __pyx_t_2);
      __pyx_t_2 = 0;

      /* "FromPyStructUtility":26
 *         raise ValueError("No value specified for struct attribute 'normal'")
 *     result.normal = value
 *     try:             # <<<<<<<<<<<<<<
 *         value = obj['texture_coordinates']
 *     except KeyError:
 */
    }
    __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
    __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
    goto __pyx_L25_try_end;
    __pyx_L20_error:;
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
    __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
    __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0;

    /* "FromPyStructUtility":28
 *     try:
 *         value = obj['texture_coordinates']
 *     except KeyError:             # <<<<<<<<<<<<<<
 *         raise ValueError("No value specified for struct attribute 'texture_coordinates'")
 *     result.texture_coordinates = value
 */
    __pyx_t_6 = __Pyx_PyErr_ExceptionMatches(__pyx_builtin_KeyError);
    if (__pyx_t_6) {
      __Pyx_AddTraceback("FromPyStructUtility.__pyx_convert__from_py_struct__CGL_mesh_vertex", __pyx_clineno, __pyx_lineno, __pyx_filename);
      if (__Pyx_GetException(&__pyx_t_2, &__pyx_t_7, &__pyx_t_8) < 0) __PYX_ERR(1, 28, __pyx_L22_except_error)
      __Pyx_GOTREF(__pyx_t_2);
      __Pyx_GOTREF(__pyx_t_7);
      __Pyx_GOTREF(__pyx_t_8);

      /* "FromPyStructUtility":29
 *         value = obj['texture_coordinates']
 *     except KeyError:
 *         raise ValueError("No value specified for struct attribute 'texture_coordinates'")             # <<<<<<<<<<<<<<
 *     result.texture_coordinates = value
 *     try:
 */
      __pyx_t_9 = __Pyx_PyObject_Call(__pyx_builtin_ValueError, __pyx_tuple__36, NULL); if (unlikely(!__pyx_t_9)) __PYX_ERR(1, 29, __pyx_L22_except_error)
      __Pyx_GOTREF(__pyx_t_9);
      __Pyx_Raise(__pyx_t_9, 0, 0, 0);
      __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
      __PYX_ERR(1, 29, __pyx_L22_except_error)
    }
    goto __pyx_L22_except_error;
    __pyx_L22_except_error:;

    /* "FromPyStructUtility":26
 *         raise ValueError("No value specified for struct attribute 'normal'")
 *     result.normal = value
 *     try:             # <<<<<<<<<<<<<<
 *         value = obj['texture_coordinates']
 *     except KeyError:
 */
    __Pyx_XGIVEREF(__pyx_t_3);
    __Pyx_XGIVEREF(__pyx_t_4);
    __Pyx_XGIVEREF(__pyx_t_5);
    __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
    goto __pyx_L1_error;
    __pyx_L25_try_end:;
  }

  /* "FromPyStructUtility":30
 *     except KeyError:
 *         raise ValueError("No value specified for struct attribute 'texture_coordinates'")
 *     result.texture_coordinates = value             # <<<<<<<<<<<<<<
 *     try:
 *         value = obj['bone_wieghts']
 */
  __pyx_t_10 = __pyx_convert__from_py_struct__CGL_vec4(__pyx_v_value); if (unlikely(PyErr_Occurred())) __PYX_ERR(1, 30, __pyx_L1_error)
  __pyx_v_result.texture_coordinates = __pyx_t_10;

  /* "FromPyStructUtility":31
 *         raise ValueError("No value specified for struct attribute 'texture_coordinates'")
 *     result.texture_coordinates = value
 *     try:             # <<<<<<<<<<<<<<
 *         value = obj['bone_wieghts']
 *     except KeyError:
 */
  {
    __Pyx_PyThreadState_declare
    __Pyx_PyThreadState_assign
    __Pyx_ExceptionSave(&__pyx_t_5, &__pyx_t_4, &__pyx_t_3);
    __Pyx_XGOTREF(__pyx_t_5);
    __Pyx_XGOTREF(__pyx_t_4);
    __Pyx_XGOTREF(__pyx_t_3);
    /*try:*/ {

      /* "FromPyStructUtility":32
 *     result.texture_coordinates = value
 *     try:
 *         value = obj['bone_wieghts']             # <<<<<<<<<<<<<<
 *     except KeyError:
 *         raise ValueError("No value specified for struct attribute 'bone_wieghts'")
 */
      __pyx_t_8 = __Pyx_PyObject_Dict_GetItem(__pyx_v_obj, __pyx_n_s_bone_wieghts); if (unlikely(!__pyx_t_8)) __PYX_ERR(1, 32, __pyx_L28_error)
      __Pyx_GOTREF(__pyx_t_8);
      __Pyx_DECREF_SET(__pyx_v_value, __pyx_t_8);
      __pyx_t_8 = 0;

      /* "FromPyStructUtility":31
 *         raise ValueError("No value specified for struct attribute 'texture_coordinates'")
 *     result.texture_coordinates = value
 *     try:             # <<<<<<<<<<<<<<
 *         value = obj['bone_wieghts']
 *     except KeyError:
 */
    }
    __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
    __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
    goto __pyx_L33_try_end;
    __pyx_L28_error:;
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
    __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
    __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0;

    /* "FromPyStructUtility":33
 *     try:
 *         value = obj['bone_wieghts']
 *     except KeyError:             # <<<<<<<<<<<<<<
 *         raise ValueError("No value specified for struct attribute 'bone_wieghts'")
 *     result.bone_wieghts = value
 */
    __pyx_t_6 = __Pyx_PyErr_ExceptionMatches(__pyx_builtin_KeyError);
    if (__pyx_t_6) {
      __Pyx_AddTraceback("FromPyStructUtility.__pyx_convert__from_py_struct__CGL_mesh_vertex", __pyx_clineno, __pyx_lineno, __pyx_filename);
      if (__Pyx_GetException(&__pyx_t_8, &__pyx_t_7, &__pyx_t_2) < 0) __PYX_ERR(1, 33, __pyx_L30_except_error)
      __Pyx_GOTREF(__pyx_t_8);
      __Pyx_GOTREF(__pyx_t_7);
      __Pyx_GOTREF(__pyx_t_2);

      /* "FromPyStructUtility":34
 *         value = obj['bone_wieghts']
 *     except KeyError:
 *         raise ValueError("No value specified for struct attribute 'bone_wieghts'")             # <<<<<<<<<<<<<<
 *     result.bone_wieghts = value
 *     try:
 */
      __pyx_t_9 = __Pyx_PyObject_Call(__pyx_builtin_ValueError, __pyx_tuple__37, NULL); if (unlikely(!__pyx_t_9)) __PYX_ERR(1, 34, __pyx_L30_except_error)
      __Pyx_GOTREF(__pyx_t_9);
      __Pyx_Raise(__pyx_t_9, 0, 0, 0);
      __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
      __PYX_ERR(1, 34, __pyx_L30_except_error)
    }
    goto __pyx_L30_except_error;
    __pyx_L30_except_error:;

    /* "FromPyStructUtility":31
 *         raise ValueError("No value specified for struct attribute 'texture_coordinates'")
 *     result.texture_coordinates = value
 *     try:             # <<<<<<<<<<<<<<
 *         value = obj['bone_wieghts']
 *     except KeyError:
 */
    __Pyx_XGIVEREF(__pyx_t_5);
    __Pyx_XGIVEREF(__pyx_t_4);
    __Pyx_XGIVEREF(__pyx_t_3);
    __Pyx_ExceptionReset(__pyx_t_5, __pyx_t_4, __pyx_t_3);
    goto __pyx_L1_error;
    __pyx_L33_try_end:;
  }

  /* "FromPyStructUtility":35
 *     except KeyError:
 *         raise ValueError("No value specified for struct attribute 'bone_wieghts'")
 *     result.bone_wieghts = value             # <<<<<<<<<<<<<<
 *     try:
 *         value = obj['bone_ids']
 */
  __pyx_t_10 = __pyx_convert__from_py_struct__CGL_vec4(__pyx_v_value); if (unlikely(PyErr_Occurred())) __PYX_ERR(1, 35, __pyx_L1_error)
  __pyx_v_result.bone_wieghts = __pyx_t_10;

  /* "FromPyStructUtility":36
 *         raise ValueError("No value specified for struct attribute 'bone_wieghts'")
 *     result.bone_wieghts = value
 *     try:             # <<<<<<<<<<<<<<
 *         value = obj['bone_ids']
 *     except KeyError:
 */
  {
    __Pyx_PyThreadState_declare
    __Pyx_PyThreadState_assign
    __Pyx_ExceptionSave(&__pyx_t_3, &__pyx_t_4, &__pyx_t_5);
    __Pyx_XGOTREF(__pyx_t_3);
    __Pyx_XGOTREF(__pyx_t_4);
    __Pyx_XGOTREF(__pyx_t_5);
    /*try:*/ {

      /* "FromPyStructUtility":37
 *     result.bone_wieghts = value
 *     try:
 *         value = obj['bone_ids']             # <<<<<<<<<<<<<<
 *     except KeyError:
 *         raise ValueError("No value specified for struct attribute 'bone_ids'")
 */
      __pyx_t_2 = __Pyx_PyObject_Dict_GetItem(__pyx_v_obj, __pyx_n_s_bone_ids); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 37, __pyx_L36_error)
      __Pyx_GOTREF(__pyx_t_2);
      __Pyx_DECREF_SET(__pyx_v_value, __pyx_t_2);
      __pyx_t_2 = 0;

      /* "FromPyStructUtility":36
 *         raise ValueError("No value specified for struct attribute 'bone_wieghts'")
 *     result.bone_wieghts = value
 *     try:             # <<<<<<<<<<<<<<
 *         value = obj['bone_ids']
 *     except KeyError:
 */
    }
    __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
    __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
    goto __pyx_L41_try_end;
    __pyx_L36_error:;
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0;
    __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0;
    __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0;

    /* "FromPyStructUtility":38
 *     try:
 *         value = obj['bone_ids']
 *     except KeyError:             # <<<<<<<<<<<<<<
 *         raise ValueError("No value specified for struct attribute 'bone_ids'")
 *     result.bone_ids = value
 */
    __pyx_t_6 = __Pyx_PyErr_ExceptionMatches(__pyx_builtin_KeyError);
    if (__pyx_t_6) {
      __Pyx_AddTraceback("FromPyStructUtility.__pyx_convert__from_py_struct__CGL_mesh_vertex", __pyx_clineno, __pyx_lineno, __pyx_filename);
      if (__Pyx_GetException(&__pyx_t_2, &__pyx_t_7, &__pyx_t_8) < 0) __PYX_ERR(1, 38, __pyx_L38_except_error)
      __Pyx_GOTREF(__pyx_t_2);
      __Pyx_GOTREF(__pyx_t_7);
      __Pyx_GOTREF(__pyx_t_8);

      /* "FromPyStructUtility":39
 *         value = obj['bone_ids']
 *     except KeyError:
 *         raise ValueError("No value specified for struct attribute 'bone_ids'")             # <<<<<<<<<<<<<<
 *     result.bone_ids = value
 *     return result
 */
      __pyx_t_9 = __Pyx_PyObject_Call(__pyx_builtin_ValueError, __pyx_tuple__38, NULL); if (unlikely(!__pyx_t_9)) __PYX_ERR(1, 39, __pyx_L38_except_error)
      __Pyx_GOTREF(__pyx_t_9);
      __Pyx_Raise(__pyx_t_9, 0, 0, 0);
      __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
      __PYX_ERR(1, 39, __pyx_L38_except_error)
    }
    goto __pyx_L38_except_error;
    __pyx_L38_except_error:;

    /* "FromPyStructUtility":36
 *         raise ValueError("No value specified for struct attribute 'bone_wieghts'")
 *     result.bone_wieghts = value
 *     try:             # <<<<<<<<<<<<<<
 *         value = obj['bone_ids']
 *     except KeyError:
 */
    __Pyx_XGIVEREF(__pyx_t_3);
    __Pyx_XGIVEREF(__pyx_t_4);
    __Pyx_XGIVEREF(__pyx_t_5);
    __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5);
    goto __pyx_L1_error;
    __pyx_L41_try_end:;
  }

  /* "FromPyStructUtility":40
 *     except KeyError:
 *         raise ValueError("No value specified for struct attribute 'bone_ids'")
 *     result.bone_ids = value             # <<<<<<<<<<<<<<
 *     return result
 * 
 */
  __pyx_t_11 = __pyx_convert__from_py_struct__CGL_ivec4(__pyx_v_value); if (unlikely(PyErr_Occurred())) __PYX_ERR(1, 40, __pyx_L1_error)
  __pyx_v_result.bone_ids = __pyx_t_11;

  /* "FromPyStructUtility":41
 *         raise ValueError("No value specified for struct attribute 'bone_ids'")
 *     result.bone_ids = value
 *     return result             # <<<<<<<<<<<<<<
 * 
 * 
 */
  __pyx_r = __pyx_v_result;
  goto __pyx_L0;

  /* "FromPyStructUtility":11
 * 
 * @cname("__pyx_convert__from_py_struct__CGL_mesh_vertex")
 * cdef struct_type __pyx_convert__from_py_struct__CGL_mesh_vertex(obj) except *:             # <<<<<<<<<<<<<<
 *     cdef struct_type result
 *     if not PyMapping_Check(obj):
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_XDECREF(__pyx_t_8);
  __Pyx_XDECREF(__pyx_t_9);
  __Pyx_AddTraceback("FromPyStructUtility.__pyx_convert__from_py_struct__CGL_mesh_vertex", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_pretend_to_initialize(&__pyx_r);
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_value);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_tp_new_3cgl_vec2(PyTypeObject *t, CYTHON_UNUSED PyObject *a, CYTHON_UNUSED PyObject *k) {
  PyObject *o;
  if (likely((t->tp_flags & Py_TPFLAGS_IS_ABSTRACT) == 0)) {
    o = (*t->tp_alloc)(t, 0);
  } else {
    o = (PyObject *) PyBaseObject_Type.tp_new(t, __pyx_empty_tuple, 0);
  }
  if (unlikely(!o)) return 0;
  return o;
}

static void __pyx_tp_dealloc_3cgl_vec2(PyObject *o) {
  #if CYTHON_USE_TP_FINALIZE
  if (unlikely(PyType_HasFeature(Py_TYPE(o), Py_TPFLAGS_HAVE_FINALIZE) && Py_TYPE(o)->tp_finalize) && (!PyType_IS_GC(Py_TYPE(o)) || !_PyGC_FINALIZED(o))) {
    if (PyObject_CallFinalizerFromDealloc(o)) return;
  }
  #endif
  (*Py_TYPE(o)->tp_free)(o);
}
static PyObject *__pyx_sq_item_3cgl_vec2(PyObject *o, Py_ssize_t i) {
  PyObject *r;
  PyObject *x = PyInt_FromSsize_t(i); if(!x) return 0;
  r = Py_TYPE(o)->tp_as_mapping->mp_subscript(o, x);
  Py_DECREF(x);
  return r;
}

static int __pyx_mp_ass_subscript_3cgl_vec2(PyObject *o, PyObject *i, PyObject *v) {
  if (v) {
    return __pyx_pw_3cgl_4vec2_13__setitem__(o, i, v);
  }
  else {
    PyErr_Format(PyExc_NotImplementedError,
      "Subscript deletion not supported by %.200s", Py_TYPE(o)->tp_name);
    return -1;
  }
}

static PyObject *__pyx_tp_getattro_3cgl_vec2(PyObject *o, PyObject *n) {
  PyObject *v = __Pyx_PyObject_GenericGetAttr(o, n);
  if (!v && PyErr_ExceptionMatches(PyExc_AttributeError)) {
    PyErr_Clear();
    v = __pyx_pw_3cgl_4vec2_21__getattr__(o, n);
  }
  return v;
}

static int __pyx_tp_setattro_3cgl_vec2(PyObject *o, PyObject *n, PyObject *v) {
  if (v) {
    return __pyx_pw_3cgl_4vec2_23__setattr__(o, n, v);
  }
  else {
    return PyObject_GenericSetAttr(o, n, 0);
  }
}

static PyObject *__pyx_tp_richcompare_3cgl_vec2(PyObject *o1, PyObject *o2, int op) {
  switch (op) {
    case Py_EQ: {
      return __pyx_pw_3cgl_4vec2_15__eq__(o1, o2);
    }
    case Py_NE: {
      return __pyx_pw_3cgl_4vec2_17__ne__(o1, o2);
    }
    default: {
      return __Pyx_NewRef(Py_NotImplemented);
    }
  }
}

static PyMethodDef __pyx_methods_3cgl_vec2[] = {
  {"__bytes__", (PyCFunction)__pyx_pw_3cgl_4vec2_7__bytes__, METH_NOARGS, 0},
  {"__getattr__", (PyCFunction)__pyx_pw_3cgl_4vec2_21__getattr__, METH_O|METH_COEXIST, 0},
  {"dot", (PyCFunction)__pyx_pw_3cgl_4vec2_35dot, METH_O, 0},
  {"cross", (PyCFunction)__pyx_pw_3cgl_4vec2_37cross, METH_O, 0},
  {"length", (PyCFunction)__pyx_pw_3cgl_4vec2_39length, METH_NOARGS, 0},
  {"length_squared", (PyCFunction)__pyx_pw_3cgl_4vec2_41length_squared, METH_NOARGS, 0},
  {"normalized", (PyCFunction)__pyx_pw_3cgl_4vec2_43normalized, METH_NOARGS, 0},
  {"__reduce_cython__", (PyCFunction)__pyx_pw_3cgl_4vec2_45__reduce_cython__, METH_NOARGS, 0},
  {"__setstate_cython__", (PyCFunction)__pyx_pw_3cgl_4vec2_47__setstate_cython__, METH_O, 0},
  {0, 0, 0, 0}
};

static PyNumberMethods __pyx_tp_as_number_vec2 = {
  __pyx_pw_3cgl_4vec2_25__add__, /*nb_add*/
  __pyx_pw_3cgl_4vec2_27__sub__, /*nb_subtract*/
  __pyx_pw_3cgl_4vec2_29__mul__, /*nb_multiply*/
  #if PY_MAJOR_VERSION < 3 || (CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX < 0x03050000)
  0, /*nb_divide*/
  #endif
  0, /*nb_remainder*/
  0, /*nb_divmod*/
  0, /*nb_power*/
  0, /*nb_negative*/
  0, /*nb_positive*/
  0, /*nb_absolute*/
  0, /*nb_nonzero*/
  0, /*nb_invert*/
  0, /*nb_lshift*/
  0, /*nb_rshift*/
  0, /*nb_and*/
  0, /*nb_xor*/
  0, /*nb_or*/
  #if PY_MAJOR_VERSION < 3 || (CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX < 0x03050000)
  0, /*nb_coerce*/
  #endif
  0, /*nb_int*/
  #if PY_MAJOR_VERSION < 3
  0, /*nb_long*/
  #else
  0, /*reserved*/
  #endif
  0, /*nb_float*/
  #if PY_MAJOR_VERSION < 3 || (CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX < 0x03050000)
  0, /*nb_oct*/
  #endif
  #if PY_MAJOR_VERSION < 3 || (CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX < 0x03050000)
  0, /*nb_hex*/
  #endif
  0, /*nb_inplace_add*/
  0, /*nb_inplace_subtract*/
  0, /*nb_inplace_multiply*/
  #if PY_MAJOR_VERSION < 3 || (CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX < 0x03050000)
  0, /*nb_inplace_divide*/
  #endif
  0, /*nb_inplace_remainder*/
  0, /*nb_inplace_power*/
  0, /*nb_inplace_lshift*/
  0, /*nb_inplace_rshift*/
  0, /*nb_inplace_and*/
  0, /*nb_inplace_xor*/
  0, /*nb_inplace_or*/
  __pyx_pw_3cgl_4vec2_33__floordiv__, /*nb_floor_divide*/
  __pyx_pw_3cgl_4vec2_31__truediv__, /*nb_true_divide*/
  0, /*nb_inplace_floor_divide*/
  0, /*nb_inplace_true_divide*/
  0, /*nb_index*/
  #if PY_VERSION_HEX >= 0x03050000
  0, /*nb_matrix_multiply*/
  #endif
  #if PY_VERSION_HEX >= 0x03050000
  0, /*nb_inplace_matrix_multiply*/
  #endif
};

static PySequenceMethods __pyx_tp_as_sequence_vec2 = {
  __pyx_pw_3cgl_4vec2_9__len__, /*sq_length*/
  0, /*sq_concat*/
  0, /*sq_repeat*/
  __pyx_sq_item_3cgl_vec2, /*sq_item*/
  0, /*sq_slice*/
  0, /*sq_ass_item*/
  0, /*sq_ass_slice*/
  0, /*sq_contains*/
  0, /*sq_inplace_concat*/
  0, /*sq_inplace_repeat*/
};

static PyMappingMethods __pyx_tp_as_mapping_vec2 = {
  __pyx_pw_3cgl_4vec2_9__len__, /*mp_length*/
  __pyx_pw_3cgl_4vec2_11__getitem__, /*mp_subscript*/
  __pyx_mp_ass_subscript_3cgl_vec2, /*mp_ass_subscript*/
};

static PyTypeObject __pyx_type_3cgl_vec2 = {
  PyVarObject_HEAD_INIT(0, 0)
  "cgl.vec2", /*tp_name*/
  sizeof(struct __pyx_obj_3cgl_vec2), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_3cgl_vec2, /*tp_dealloc*/
  #if PY_VERSION_HEX < 0x030800b4
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030800b4
  0, /*tp_vectorcall_offset*/
  #endif
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  #if PY_MAJOR_VERSION < 3
  0, /*tp_compare*/
  #endif
  #if PY_MAJOR_VERSION >= 3
  0, /*tp_as_async*/
  #endif
  __pyx_pw_3cgl_4vec2_3__repr__, /*tp_repr*/
  &__pyx_tp_as_number_vec2, /*tp_as_number*/
  &__pyx_tp_as_sequence_vec2, /*tp_as_sequence*/
  &__pyx_tp_as_mapping_vec2, /*tp_as_mapping*/
  __pyx_pw_3cgl_4vec2_19__hash__, /*tp_hash*/
  0, /*tp_call*/
  __pyx_pw_3cgl_4vec2_5__str__, /*tp_str*/
  __pyx_tp_getattro_3cgl_vec2, /*tp_getattro*/
  __pyx_tp_setattro_3cgl_vec2, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE, /*tp_flags*/
  0, /*tp_doc*/
  0, /*tp_traverse*/
  0, /*tp_clear*/
  __pyx_tp_richcompare_3cgl_vec2, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  __pyx_methods_3cgl_vec2, /*tp_methods*/
  0, /*tp_members*/
  0, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  0, /*tp_dictoffset*/
  __pyx_pw_3cgl_4vec2_1__init__, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_3cgl_vec2, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if PY_VERSION_HEX >= 0x030400a1
  0, /*tp_finalize*/
  #endif
  #if PY_VERSION_HEX >= 0x030800b1 && (!CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800)
  0, /*tp_vectorcall*/
  #endif
  #if PY_VERSION_HEX >= 0x030800b4 && PY_VERSION_HEX < 0x03090000
  0, /*tp_print*/
  #endif
  #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000
  0, /*tp_pypy_flags*/
  #endif
};

static PyObject *__pyx_tp_new_3cgl_vec3(PyTypeObject *t, CYTHON_UNUSED PyObject *a, CYTHON_UNUSED PyObject *k) {
  PyObject *o;
  if (likely((t->tp_flags & Py_TPFLAGS_IS_ABSTRACT) == 0)) {
    o = (*t->tp_alloc)(t, 0);
  } else {
    o = (PyObject *) PyBaseObject_Type.tp_new(t, __pyx_empty_tuple, 0);
  }
  if (unlikely(!o)) return 0;
  return o;
}

static void __pyx_tp_dealloc_3cgl_vec3(PyObject *o) {
  #if CYTHON_USE_TP_FINALIZE
  if (unlikely(PyType_HasFeature(Py_TYPE(o), Py_TPFLAGS_HAVE_FINALIZE) && Py_TYPE(o)->tp_finalize) && (!PyType_IS_GC(Py_TYPE(o)) || !_PyGC_FINALIZED(o))) {
    if (PyObject_CallFinalizerFromDealloc(o)) return;
  }
  #endif
  (*Py_TYPE(o)->tp_free)(o);
}
static PyObject *__pyx_sq_item_3cgl_vec3(PyObject *o, Py_ssize_t i) {
  PyObject *r;
  PyObject *x = PyInt_FromSsize_t(i); if(!x) return 0;
  r = Py_TYPE(o)->tp_as_mapping->mp_subscript(o, x);
  Py_DECREF(x);
  return r;
}

static int __pyx_mp_ass_subscript_3cgl_vec3(PyObject *o, PyObject *i, PyObject *v) {
  if (v) {
    return __pyx_pw_3cgl_4vec3_13__setitem__(o, i, v);
  }
  else {
    PyErr_Format(PyExc_NotImplementedError,
      "Subscript deletion not supported by %.200s", Py_TYPE(o)->tp_name);
    return -1;
  }
}

static PyObject *__pyx_tp_getattro_3cgl_vec3(PyObject *o, PyObject *n) {
  PyObject *v = __Pyx_PyObject_GenericGetAttr(o, n);
  if (!v && PyErr_ExceptionMatches(PyExc_AttributeError)) {
    PyErr_Clear();
    v = __pyx_pw_3cgl_4vec3_21__getattr__(o, n);
  }
  return v;
}

static int __pyx_tp_setattro_3cgl_vec3(PyObject *o, PyObject *n, PyObject *v) {
  if (v) {
    return __pyx_pw_3cgl_4vec3_23__setattr__(o, n, v);
  }
  else {
    return PyObject_GenericSetAttr(o, n, 0);
  }
}

static PyObject *__pyx_tp_richcompare_3cgl_vec3(PyObject *o1, PyObject *o2, int op) {
  switch (op) {
    case Py_EQ: {
      return __pyx_pw_3cgl_4vec3_15__eq__(o1, o2);
    }
    case Py_NE: {
      return __pyx_pw_3cgl_4vec3_17__ne__(o1, o2);
    }
    default: {
      return __Pyx_NewRef(Py_NotImplemented);
    }
  }
}

static PyMethodDef __pyx_methods_3cgl_vec3[] = {
  {"__bytes__", (PyCFunction)__pyx_pw_3cgl_4vec3_7__bytes__, METH_NOARGS, 0},
  {"__getattr__", (PyCFunction)__pyx_pw_3cgl_4vec3_21__getattr__, METH_O|METH_COEXIST, 0},
  {"dot", (PyCFunction)__pyx_pw_3cgl_4vec3_35dot, METH_O, 0},
  {"cross", (PyCFunction)__pyx_pw_3cgl_4vec3_37cross, METH_O, 0},
  {"length", (PyCFunction)__pyx_pw_3cgl_4vec3_39length, METH_NOARGS, 0},
  {"length_squared", (PyCFunction)__pyx_pw_3cgl_4vec3_41length_squared, METH_NOARGS, 0},
  {"normalized", (PyCFunction)__pyx_pw_3cgl_4vec3_43normalized, METH_NOARGS, 0},
  {"__reduce_cython__", (PyCFunction)__pyx_pw_3cgl_4vec3_45__reduce_cython__, METH_NOARGS, 0},
  {"__setstate_cython__", (PyCFunction)__pyx_pw_3cgl_4vec3_47__setstate_cython__, METH_O, 0},
  {0, 0, 0, 0}
};

static PyNumberMethods __pyx_tp_as_number_vec3 = {
  __pyx_pw_3cgl_4vec3_25__add__, /*nb_add*/
  __pyx_pw_3cgl_4vec3_27__sub__, /*nb_subtract*/
  __pyx_pw_3cgl_4vec3_29__mul__, /*nb_multiply*/
  #if PY_MAJOR_VERSION < 3 || (CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX < 0x03050000)
  0, /*nb_divide*/
  #endif
  0, /*nb_remainder*/
  0, /*nb_divmod*/
  0, /*nb_power*/
  0, /*nb_negative*/
  0, /*nb_positive*/
  0, /*nb_absolute*/
  0, /*nb_nonzero*/
  0, /*nb_invert*/
  0, /*nb_lshift*/
  0, /*nb_rshift*/
  0, /*nb_and*/
  0, /*nb_xor*/
  0, /*nb_or*/
  #if PY_MAJOR_VERSION < 3 || (CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX < 0x03050000)
  0, /*nb_coerce*/
  #endif
  0, /*nb_int*/
  #if PY_MAJOR_VERSION < 3
  0, /*nb_long*/
  #else
  0, /*reserved*/
  #endif
  0, /*nb_float*/
  #if PY_MAJOR_VERSION < 3 || (CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX < 0x03050000)
  0, /*nb_oct*/
  #endif
  #if PY_MAJOR_VERSION < 3 || (CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX < 0x03050000)
  0, /*nb_hex*/
  #endif
  0, /*nb_inplace_add*/
  0, /*nb_inplace_subtract*/
  0, /*nb_inplace_multiply*/
  #if PY_MAJOR_VERSION < 3 || (CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX < 0x03050000)
  0, /*nb_inplace_divide*/
  #endif
  0, /*nb_inplace_remainder*/
  0, /*nb_inplace_power*/
  0, /*nb_inplace_lshift*/
  0, /*nb_inplace_rshift*/
  0, /*nb_inplace_and*/
  0, /*nb_inplace_xor*/
  0, /*nb_inplace_or*/
  __pyx_pw_3cgl_4vec3_33__floordiv__, /*nb_floor_divide*/
  __pyx_pw_3cgl_4vec3_31__truediv__, /*nb_true_divide*/
  0, /*nb_inplace_floor_divide*/
  0, /*nb_inplace_true_divide*/
  0, /*nb_index*/
  #if PY_VERSION_HEX >= 0x03050000
  0, /*nb_matrix_multiply*/
  #endif
  #if PY_VERSION_HEX >= 0x03050000
  0, /*nb_inplace_matrix_multiply*/
  #endif
};

static PySequenceMethods __pyx_tp_as_sequence_vec3 = {
  __pyx_pw_3cgl_4vec3_9__len__, /*sq_length*/
  0, /*sq_concat*/
  0, /*sq_repeat*/
  __pyx_sq_item_3cgl_vec3, /*sq_item*/
  0, /*sq_slice*/
  0, /*sq_ass_item*/
  0, /*sq_ass_slice*/
  0, /*sq_contains*/
  0, /*sq_inplace_concat*/
  0, /*sq_inplace_repeat*/
};

static PyMappingMethods __pyx_tp_as_mapping_vec3 = {
  __pyx_pw_3cgl_4vec3_9__len__, /*mp_length*/
  __pyx_pw_3cgl_4vec3_11__getitem__, /*mp_subscript*/
  __pyx_mp_ass_subscript_3cgl_vec3, /*mp_ass_subscript*/
};

static PyTypeObject __pyx_type_3cgl_vec3 = {
  PyVarObject_HEAD_INIT(0, 0)
  "cgl.vec3", /*tp_name*/
  sizeof(struct __pyx_obj_3cgl_vec3), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_3cgl_vec3, /*tp_dealloc*/
  #if PY_VERSION_HEX < 0x030800b4
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030800b4
  0, /*tp_vectorcall_offset*/
  #endif
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  #if PY_MAJOR_VERSION < 3
  0, /*tp_compare*/
  #endif
  #if PY_MAJOR_VERSION >= 3
  0, /*tp_as_async*/
  #endif
  __pyx_pw_3cgl_4vec3_3__repr__, /*tp_repr*/
  &__pyx_tp_as_number_vec3, /*tp_as_number*/
  &__pyx_tp_as_sequence_vec3, /*tp_as_sequence*/
  &__pyx_tp_as_mapping_vec3, /*tp_as_mapping*/
  __pyx_pw_3cgl_4vec3_19__hash__, /*tp_hash*/
  0, /*tp_call*/
  __pyx_pw_3cgl_4vec3_5__str__, /*tp_str*/
  __pyx_tp_getattro_3cgl_vec3, /*tp_getattro*/
  __pyx_tp_setattro_3cgl_vec3, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE, /*tp_flags*/
  0, /*tp_doc*/
  0, /*tp_traverse*/
  0, /*tp_clear*/
  __pyx_tp_richcompare_3cgl_vec3, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  __pyx_methods_3cgl_vec3, /*tp_methods*/
  0, /*tp_members*/
  0, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  0, /*tp_dictoffset*/
  __pyx_pw_3cgl_4vec3_1__init__, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_3cgl_vec3, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if PY_VERSION_HEX >= 0x030400a1
  0, /*tp_finalize*/
  #endif
  #if PY_VERSION_HEX >= 0x030800b1 && (!CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800)
  0, /*tp_vectorcall*/
  #endif
  #if PY_VERSION_HEX >= 0x030800b4 && PY_VERSION_HEX < 0x03090000
  0, /*tp_print*/
  #endif
  #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000
  0, /*tp_pypy_flags*/
  #endif
};

static PyObject *__pyx_tp_new_3cgl_vec4(PyTypeObject *t, CYTHON_UNUSED PyObject *a, CYTHON_UNUSED PyObject *k) {
  PyObject *o;
  if (likely((t->tp_flags & Py_TPFLAGS_IS_ABSTRACT) == 0)) {
    o = (*t->tp_alloc)(t, 0);
  } else {
    o = (PyObject *) PyBaseObject_Type.tp_new(t, __pyx_empty_tuple, 0);
  }
  if (unlikely(!o)) return 0;
  return o;
}

static void __pyx_tp_dealloc_3cgl_vec4(PyObject *o) {
  #if CYTHON_USE_TP_FINALIZE
  if (unlikely(PyType_HasFeature(Py_TYPE(o), Py_TPFLAGS_HAVE_FINALIZE) && Py_TYPE(o)->tp_finalize) && (!PyType_IS_GC(Py_TYPE(o)) || !_PyGC_FINALIZED(o))) {
    if (PyObject_CallFinalizerFromDealloc(o)) return;
  }
  #endif
  (*Py_TYPE(o)->tp_free)(o);
}
static PyObject *__pyx_sq_item_3cgl_vec4(PyObject *o, Py_ssize_t i) {
  PyObject *r;
  PyObject *x = PyInt_FromSsize_t(i); if(!x) return 0;
  r = Py_TYPE(o)->tp_as_mapping->mp_subscript(o, x);
  Py_DECREF(x);
  return r;
}

static int __pyx_mp_ass_subscript_3cgl_vec4(PyObject *o, PyObject *i, PyObject *v) {
  if (v) {
    return __pyx_pw_3cgl_4vec4_13__setitem__(o, i, v);
  }
  else {
    PyErr_Format(PyExc_NotImplementedError,
      "Subscript deletion not supported by %.200s", Py_TYPE(o)->tp_name);
    return -1;
  }
}

static PyObject *__pyx_tp_getattro_3cgl_vec4(PyObject *o, PyObject *n) {
  PyObject *v = __Pyx_PyObject_GenericGetAttr(o, n);
  if (!v && PyErr_ExceptionMatches(PyExc_AttributeError)) {
    PyErr_Clear();
    v = __pyx_pw_3cgl_4vec4_21__getattr__(o, n);
  }
  return v;
}

static int __pyx_tp_setattro_3cgl_vec4(PyObject *o, PyObject *n, PyObject *v) {
  if (v) {
    return __pyx_pw_3cgl_4vec4_23__setattr__(o, n, v);
  }
  else {
    return PyObject_GenericSetAttr(o, n, 0);
  }
}

static PyObject *__pyx_tp_richcompare_3cgl_vec4(PyObject *o1, PyObject *o2, int op) {
  switch (op) {
    case Py_EQ: {
      return __pyx_pw_3cgl_4vec4_15__eq__(o1, o2);
    }
    case Py_NE: {
      return __pyx_pw_3cgl_4vec4_17__ne__(o1, o2);
    }
    default: {
      return __Pyx_NewRef(Py_NotImplemented);
    }
  }
}

static PyMethodDef __pyx_methods_3cgl_vec4[] = {
  {"__bytes__", (PyCFunction)__pyx_pw_3cgl_4vec4_7__bytes__, METH_NOARGS, 0},
  {"__getattr__", (PyCFunction)__pyx_pw_3cgl_4vec4_21__getattr__, METH_O|METH_COEXIST, 0},
  {"dot", (PyCFunction)__pyx_pw_3cgl_4vec4_35dot, METH_O, 0},
  {"cross", (PyCFunction)__pyx_pw_3cgl_4vec4_37cross, METH_O, 0},
  {"length", (PyCFunction)__pyx_pw_3cgl_4vec4_39length, METH_NOARGS, 0},
  {"length_squared", (PyCFunction)__pyx_pw_3cgl_4vec4_41length_squared, METH_NOARGS, 0},
  {"normalized", (PyCFunction)__pyx_pw_3cgl_4vec4_43normalized, METH_NOARGS, 0},
  {"__reduce_cython__", (PyCFunction)__pyx_pw_3cgl_4vec4_45__reduce_cython__, METH_NOARGS, 0},
  {"__setstate_cython__", (PyCFunction)__pyx_pw_3cgl_4vec4_47__setstate_cython__, METH_O, 0},
  {0, 0, 0, 0}
};

static PyNumberMethods __pyx_tp_as_number_vec4 = {
  __pyx_pw_3cgl_4vec4_25__add__, /*nb_add*/
  __pyx_pw_3cgl_4vec4_27__sub__, /*nb_subtract*/
  __pyx_pw_3cgl_4vec4_29__mul__, /*nb_multiply*/
  #if PY_MAJOR_VERSION < 3 || (CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX < 0x03050000)
  0, /*nb_divide*/
  #endif
  0, /*nb_remainder*/
  0, /*nb_divmod*/
  0, /*nb_power*/
  0, /*nb_negative*/
  0, /*nb_positive*/
  0, /*nb_absolute*/
  0, /*nb_nonzero*/
  0, /*nb_invert*/
  0, /*nb_lshift*/
  0, /*nb_rshift*/
  0, /*nb_and*/
  0, /*nb_xor*/
  0, /*nb_or*/
  #if PY_MAJOR_VERSION < 3 || (CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX < 0x03050000)
  0, /*nb_coerce*/
  #endif
  0, /*nb_int*/
  #if PY_MAJOR_VERSION < 3
  0, /*nb_long*/
  #else
  0, /*reserved*/
  #endif
  0, /*nb_float*/
  #if PY_MAJOR_VERSION < 3 || (CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX < 0x03050000)
  0, /*nb_oct*/
  #endif
  #if PY_MAJOR_VERSION < 3 || (CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX < 0x03050000)
  0, /*nb_hex*/
  #endif
  0, /*nb_inplace_add*/
  0, /*nb_inplace_subtract*/
  0, /*nb_inplace_multiply*/
  #if PY_MAJOR_VERSION < 3 || (CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX < 0x03050000)
  0, /*nb_inplace_divide*/
  #endif
  0, /*nb_inplace_remainder*/
  0, /*nb_inplace_power*/
  0, /*nb_inplace_lshift*/
  0, /*nb_inplace_rshift*/
  0, /*nb_inplace_and*/
  0, /*nb_inplace_xor*/
  0, /*nb_inplace_or*/
  __pyx_pw_3cgl_4vec4_33__floordiv__, /*nb_floor_divide*/
  __pyx_pw_3cgl_4vec4_31__truediv__, /*nb_true_divide*/
  0, /*nb_inplace_floor_divide*/
  0, /*nb_inplace_true_divide*/
  0, /*nb_index*/
  #if PY_VERSION_HEX >= 0x03050000
  0, /*nb_matrix_multiply*/
  #endif
  #if PY_VERSION_HEX >= 0x03050000
  0, /*nb_inplace_matrix_multiply*/
  #endif
};

static PySequenceMethods __pyx_tp_as_sequence_vec4 = {
  __pyx_pw_3cgl_4vec4_9__len__, /*sq_length*/
  0, /*sq_concat*/
  0, /*sq_repeat*/
  __pyx_sq_item_3cgl_vec4, /*sq_item*/
  0, /*sq_slice*/
  0, /*sq_ass_item*/
  0, /*sq_ass_slice*/
  0, /*sq_contains*/
  0, /*sq_inplace_concat*/
  0, /*sq_inplace_repeat*/
};

static PyMappingMethods __pyx_tp_as_mapping_vec4 = {
  __pyx_pw_3cgl_4vec4_9__len__, /*mp_length*/
  __pyx_pw_3cgl_4vec4_11__getitem__, /*mp_subscript*/
  __pyx_mp_ass_subscript_3cgl_vec4, /*mp_ass_subscript*/
};

static PyTypeObject __pyx_type_3cgl_vec4 = {
  PyVarObject_HEAD_INIT(0, 0)
  "cgl.vec4", /*tp_name*/
  sizeof(struct __pyx_obj_3cgl_vec4), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_3cgl_vec4, /*tp_dealloc*/
  #if PY_VERSION_HEX < 0x030800b4
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030800b4
  0, /*tp_vectorcall_offset*/
  #endif
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  #if PY_MAJOR_VERSION < 3
  0, /*tp_compare*/
  #endif
  #if PY_MAJOR_VERSION >= 3
  0, /*tp_as_async*/
  #endif
  __pyx_pw_3cgl_4vec4_3__repr__, /*tp_repr*/
  &__pyx_tp_as_number_vec4, /*tp_as_number*/
  &__pyx_tp_as_sequence_vec4, /*tp_as_sequence*/
  &__pyx_tp_as_mapping_vec4, /*tp_as_mapping*/
  __pyx_pw_3cgl_4vec4_19__hash__, /*tp_hash*/
  0, /*tp_call*/
  __pyx_pw_3cgl_4vec4_5__str__, /*tp_str*/
  __pyx_tp_getattro_3cgl_vec4, /*tp_getattro*/
  __pyx_tp_setattro_3cgl_vec4, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE, /*tp_flags*/
  0, /*tp_doc*/
  0, /*tp_traverse*/
  0, /*tp_clear*/
  __pyx_tp_richcompare_3cgl_vec4, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  __pyx_methods_3cgl_vec4, /*tp_methods*/
  0, /*tp_members*/
  0, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  0, /*tp_dictoffset*/
  __pyx_pw_3cgl_4vec4_1__init__, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_3cgl_vec4, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if PY_VERSION_HEX >= 0x030400a1
  0, /*tp_finalize*/
  #endif
  #if PY_VERSION_HEX >= 0x030800b1 && (!CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800)
  0, /*tp_vectorcall*/
  #endif
  #if PY_VERSION_HEX >= 0x030800b4 && PY_VERSION_HEX < 0x03090000
  0, /*tp_print*/
  #endif
  #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000
  0, /*tp_pypy_flags*/
  #endif
};

static PyObject *__pyx_tp_new_3cgl_ivec4(PyTypeObject *t, CYTHON_UNUSED PyObject *a, CYTHON_UNUSED PyObject *k) {
  PyObject *o;
  if (likely((t->tp_flags & Py_TPFLAGS_IS_ABSTRACT) == 0)) {
    o = (*t->tp_alloc)(t, 0);
  } else {
    o = (PyObject *) PyBaseObject_Type.tp_new(t, __pyx_empty_tuple, 0);
  }
  if (unlikely(!o)) return 0;
  return o;
}

static void __pyx_tp_dealloc_3cgl_ivec4(PyObject *o) {
  #if CYTHON_USE_TP_FINALIZE
  if (unlikely(PyType_HasFeature(Py_TYPE(o), Py_TPFLAGS_HAVE_FINALIZE) && Py_TYPE(o)->tp_finalize) && (!PyType_IS_GC(Py_TYPE(o)) || !_PyGC_FINALIZED(o))) {
    if (PyObject_CallFinalizerFromDealloc(o)) return;
  }
  #endif
  (*Py_TYPE(o)->tp_free)(o);
}
static PyObject *__pyx_sq_item_3cgl_ivec4(PyObject *o, Py_ssize_t i) {
  PyObject *r;
  PyObject *x = PyInt_FromSsize_t(i); if(!x) return 0;
  r = Py_TYPE(o)->tp_as_mapping->mp_subscript(o, x);
  Py_DECREF(x);
  return r;
}

static int __pyx_mp_ass_subscript_3cgl_ivec4(PyObject *o, PyObject *i, PyObject *v) {
  if (v) {
    return __pyx_pw_3cgl_5ivec4_9__setitem__(o, i, v);
  }
  else {
    PyErr_Format(PyExc_NotImplementedError,
      "Subscript deletion not supported by %.200s", Py_TYPE(o)->tp_name);
    return -1;
  }
}

static PyObject *__pyx_tp_getattro_3cgl_ivec4(PyObject *o, PyObject *n) {
  PyObject *v = __Pyx_PyObject_GenericGetAttr(o, n);
  if (!v && PyErr_ExceptionMatches(PyExc_AttributeError)) {
    PyErr_Clear();
    v = __pyx_pw_3cgl_5ivec4_13__getattr__(o, n);
  }
  return v;
}

static int __pyx_tp_setattro_3cgl_ivec4(PyObject *o, PyObject *n, PyObject *v) {
  if (v) {
    return __pyx_pw_3cgl_5ivec4_15__setattr__(o, n, v);
  }
  else {
    return PyObject_GenericSetAttr(o, n, 0);
  }
}

static PyMethodDef __pyx_methods_3cgl_ivec4[] = {
  {"__getattr__", (PyCFunction)__pyx_pw_3cgl_5ivec4_13__getattr__, METH_O|METH_COEXIST, 0},
  {"__reduce_cython__", (PyCFunction)__pyx_pw_3cgl_5ivec4_17__reduce_cython__, METH_NOARGS, 0},
  {"__setstate_cython__", (PyCFunction)__pyx_pw_3cgl_5ivec4_19__setstate_cython__, METH_O, 0},
  {0, 0, 0, 0}
};

static PySequenceMethods __pyx_tp_as_sequence_ivec4 = {
  0, /*sq_length*/
  0, /*sq_concat*/
  0, /*sq_repeat*/
  __pyx_sq_item_3cgl_ivec4, /*sq_item*/
  0, /*sq_slice*/
  0, /*sq_ass_item*/
  0, /*sq_ass_slice*/
  0, /*sq_contains*/
  0, /*sq_inplace_concat*/
  0, /*sq_inplace_repeat*/
};

static PyMappingMethods __pyx_tp_as_mapping_ivec4 = {
  0, /*mp_length*/
  __pyx_pw_3cgl_5ivec4_7__getitem__, /*mp_subscript*/
  __pyx_mp_ass_subscript_3cgl_ivec4, /*mp_ass_subscript*/
};

static PyTypeObject __pyx_type_3cgl_ivec4 = {
  PyVarObject_HEAD_INIT(0, 0)
  "cgl.ivec4", /*tp_name*/
  sizeof(struct __pyx_obj_3cgl_ivec4), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_3cgl_ivec4, /*tp_dealloc*/
  #if PY_VERSION_HEX < 0x030800b4
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030800b4
  0, /*tp_vectorcall_offset*/
  #endif
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  #if PY_MAJOR_VERSION < 3
  0, /*tp_compare*/
  #endif
  #if PY_MAJOR_VERSION >= 3
  0, /*tp_as_async*/
  #endif
  __pyx_pw_3cgl_5ivec4_3__repr__, /*tp_repr*/
  0, /*tp_as_number*/
  &__pyx_tp_as_sequence_ivec4, /*tp_as_sequence*/
  &__pyx_tp_as_mapping_ivec4, /*tp_as_mapping*/
  __pyx_pw_3cgl_5ivec4_11__hash__, /*tp_hash*/
  0, /*tp_call*/
  __pyx_pw_3cgl_5ivec4_5__str__, /*tp_str*/
  __pyx_tp_getattro_3cgl_ivec4, /*tp_getattro*/
  __pyx_tp_setattro_3cgl_ivec4, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE, /*tp_flags*/
  0, /*tp_doc*/
  0, /*tp_traverse*/
  0, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  __pyx_methods_3cgl_ivec4, /*tp_methods*/
  0, /*tp_members*/
  0, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  0, /*tp_dictoffset*/
  __pyx_pw_3cgl_5ivec4_1__init__, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_3cgl_ivec4, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if PY_VERSION_HEX >= 0x030400a1
  0, /*tp_finalize*/
  #endif
  #if PY_VERSION_HEX >= 0x030800b1 && (!CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800)
  0, /*tp_vectorcall*/
  #endif
  #if PY_VERSION_HEX >= 0x030800b4 && PY_VERSION_HEX < 0x03090000
  0, /*tp_print*/
  #endif
  #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000
  0, /*tp_pypy_flags*/
  #endif
};
static struct __pyx_vtabstruct_3cgl_mat4 __pyx_vtable_3cgl_mat4;

static PyObject *__pyx_tp_new_3cgl_mat4(PyTypeObject *t, CYTHON_UNUSED PyObject *a, CYTHON_UNUSED PyObject *k) {
  struct __pyx_obj_3cgl_mat4 *p;
  PyObject *o;
  if (likely((t->tp_flags & Py_TPFLAGS_IS_ABSTRACT) == 0)) {
    o = (*t->tp_alloc)(t, 0);
  } else {
    o = (PyObject *) PyBaseObject_Type.tp_new(t, __pyx_empty_tuple, 0);
  }
  if (unlikely(!o)) return 0;
  p = ((struct __pyx_obj_3cgl_mat4 *)o);
  p->__pyx_vtab = __pyx_vtabptr_3cgl_mat4;
  return o;
}

static void __pyx_tp_dealloc_3cgl_mat4(PyObject *o) {
  #if CYTHON_USE_TP_FINALIZE
  if (unlikely(PyType_HasFeature(Py_TYPE(o), Py_TPFLAGS_HAVE_FINALIZE) && Py_TYPE(o)->tp_finalize) && (!PyType_IS_GC(Py_TYPE(o)) || !_PyGC_FINALIZED(o))) {
    if (PyObject_CallFinalizerFromDealloc(o)) return;
  }
  #endif
  (*Py_TYPE(o)->tp_free)(o);
}

static PyMethodDef __pyx_methods_3cgl_mat4[] = {
  {"__reduce_cython__", (PyCFunction)__pyx_pw_3cgl_4mat4_11__reduce_cython__, METH_NOARGS, 0},
  {"__setstate_cython__", (PyCFunction)__pyx_pw_3cgl_4mat4_13__setstate_cython__, METH_O, 0},
  {0, 0, 0, 0}
};

static PyNumberMethods __pyx_tp_as_number_mat4 = {
  0, /*nb_add*/
  0, /*nb_subtract*/
  __pyx_pw_3cgl_4mat4_7__mul__, /*nb_multiply*/
  #if PY_MAJOR_VERSION < 3 || (CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX < 0x03050000)
  0, /*nb_divide*/
  #endif
  0, /*nb_remainder*/
  0, /*nb_divmod*/
  0, /*nb_power*/
  0, /*nb_negative*/
  0, /*nb_positive*/
  0, /*nb_absolute*/
  0, /*nb_nonzero*/
  0, /*nb_invert*/
  0, /*nb_lshift*/
  0, /*nb_rshift*/
  0, /*nb_and*/
  0, /*nb_xor*/
  0, /*nb_or*/
  #if PY_MAJOR_VERSION < 3 || (CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX < 0x03050000)
  0, /*nb_coerce*/
  #endif
  0, /*nb_int*/
  #if PY_MAJOR_VERSION < 3
  0, /*nb_long*/
  #else
  0, /*reserved*/
  #endif
  0, /*nb_float*/
  #if PY_MAJOR_VERSION < 3 || (CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX < 0x03050000)
  0, /*nb_oct*/
  #endif
  #if PY_MAJOR_VERSION < 3 || (CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX < 0x03050000)
  0, /*nb_hex*/
  #endif
  0, /*nb_inplace_add*/
  0, /*nb_inplace_subtract*/
  0, /*nb_inplace_multiply*/
  #if PY_MAJOR_VERSION < 3 || (CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX < 0x03050000)
  0, /*nb_inplace_divide*/
  #endif
  0, /*nb_inplace_remainder*/
  0, /*nb_inplace_power*/
  0, /*nb_inplace_lshift*/
  0, /*nb_inplace_rshift*/
  0, /*nb_inplace_and*/
  0, /*nb_inplace_xor*/
  0, /*nb_inplace_or*/
  0, /*nb_floor_divide*/
  0, /*nb_true_divide*/
  0, /*nb_inplace_floor_divide*/
  0, /*nb_inplace_true_divide*/
  0, /*nb_index*/
  #if PY_VERSION_HEX >= 0x03050000
  0, /*nb_matrix_multiply*/
  #endif
  #if PY_VERSION_HEX >= 0x03050000
  0, /*nb_inplace_matrix_multiply*/
  #endif
};

static PyTypeObject __pyx_type_3cgl_mat4 = {
  PyVarObject_HEAD_INIT(0, 0)
  "cgl.mat4", /*tp_name*/
  sizeof(struct __pyx_obj_3cgl_mat4), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_3cgl_mat4, /*tp_dealloc*/
  #if PY_VERSION_HEX < 0x030800b4
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030800b4
  0, /*tp_vectorcall_offset*/
  #endif
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  #if PY_MAJOR_VERSION < 3
  0, /*tp_compare*/
  #endif
  #if PY_MAJOR_VERSION >= 3
  0, /*tp_as_async*/
  #endif
  __pyx_pw_3cgl_4mat4_3__repr__, /*tp_repr*/
  &__pyx_tp_as_number_mat4, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  __pyx_pw_3cgl_4mat4_9__hash__, /*tp_hash*/
  0, /*tp_call*/
  __pyx_pw_3cgl_4mat4_5__str__, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE, /*tp_flags*/
  0, /*tp_doc*/
  0, /*tp_traverse*/
  0, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  __pyx_methods_3cgl_mat4, /*tp_methods*/
  0, /*tp_members*/
  0, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  0, /*tp_dictoffset*/
  __pyx_pw_3cgl_4mat4_1__init__, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_3cgl_mat4, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if PY_VERSION_HEX >= 0x030400a1
  0, /*tp_finalize*/
  #endif
  #if PY_VERSION_HEX >= 0x030800b1 && (!CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800)
  0, /*tp_vectorcall*/
  #endif
  #if PY_VERSION_HEX >= 0x030800b4 && PY_VERSION_HEX < 0x03090000
  0, /*tp_print*/
  #endif
  #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000
  0, /*tp_pypy_flags*/
  #endif
};

static PyObject *__pyx_tp_new_3cgl_transform(PyTypeObject *t, CYTHON_UNUSED PyObject *a, CYTHON_UNUSED PyObject *k) {
  PyObject *o;
  if (likely((t->tp_flags & Py_TPFLAGS_IS_ABSTRACT) == 0)) {
    o = (*t->tp_alloc)(t, 0);
  } else {
    o = (PyObject *) PyBaseObject_Type.tp_new(t, __pyx_empty_tuple, 0);
  }
  if (unlikely(!o)) return 0;
  if (unlikely(__pyx_pw_3cgl_9transform_1__cinit__(o, __pyx_empty_tuple, NULL) < 0)) goto bad;
  return o;
  bad:
  Py_DECREF(o); o = 0;
  return NULL;
}

static void __pyx_tp_dealloc_3cgl_transform(PyObject *o) {
  #if CYTHON_USE_TP_FINALIZE
  if (unlikely(PyType_HasFeature(Py_TYPE(o), Py_TPFLAGS_HAVE_FINALIZE) && Py_TYPE(o)->tp_finalize) && (!PyType_IS_GC(Py_TYPE(o)) || !_PyGC_FINALIZED(o))) {
    if (PyObject_CallFinalizerFromDealloc(o)) return;
  }
  #endif
  (*Py_TYPE(o)->tp_free)(o);
}

static PyObject *__pyx_tp_richcompare_3cgl_transform(PyObject *o1, PyObject *o2, int op) {
  switch (op) {
    case Py_EQ: {
      return __pyx_pw_3cgl_9transform_9__eq__(o1, o2);
    }
    case Py_NE: {
      PyObject *ret;
      ret = __pyx_pw_3cgl_9transform_9__eq__(o1, o2);
      if (likely(ret && ret != Py_NotImplemented)) {
        int b = __Pyx_PyObject_IsTrue(ret); Py_DECREF(ret);
        if (unlikely(b < 0)) return NULL;
        ret = (b) ? Py_False : Py_True;
        Py_INCREF(ret);
      }
      return ret;
    }
    default: {
      return __Pyx_NewRef(Py_NotImplemented);
    }
  }
}

static PyObject *__pyx_getprop_3cgl_9transform_position(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_3cgl_9transform_8position_1__get__(o);
}

static int __pyx_setprop_3cgl_9transform_position(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_3cgl_9transform_8position_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyObject *__pyx_getprop_3cgl_9transform_rotation(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_3cgl_9transform_8rotation_1__get__(o);
}

static int __pyx_setprop_3cgl_9transform_rotation(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_3cgl_9transform_8rotation_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyObject *__pyx_getprop_3cgl_9transform_scale(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_3cgl_9transform_5scale_1__get__(o);
}

static int __pyx_setprop_3cgl_9transform_scale(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_3cgl_9transform_5scale_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyObject *__pyx_getprop_3cgl_9transform_matrix(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_3cgl_9transform_6matrix_1__get__(o);
}

static int __pyx_setprop_3cgl_9transform_matrix(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_3cgl_9transform_6matrix_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyMethodDef __pyx_methods_3cgl_transform[] = {
  {"load_matrix", (PyCFunction)__pyx_pw_3cgl_9transform_13load_matrix, METH_O, 0},
  {"set_parent", (PyCFunction)__pyx_pw_3cgl_9transform_15set_parent, METH_O, 0},
  {"update", (PyCFunction)__pyx_pw_3cgl_9transform_17update, METH_NOARGS, 0},
  {"__reduce_cython__", (PyCFunction)__pyx_pw_3cgl_9transform_19__reduce_cython__, METH_NOARGS, 0},
  {"__setstate_cython__", (PyCFunction)__pyx_pw_3cgl_9transform_21__setstate_cython__, METH_O, 0},
  {0, 0, 0, 0}
};

static struct PyGetSetDef __pyx_getsets_3cgl_transform[] = {
  {(char *)"position", __pyx_getprop_3cgl_9transform_position, __pyx_setprop_3cgl_9transform_position, (char *)0, 0},
  {(char *)"rotation", __pyx_getprop_3cgl_9transform_rotation, __pyx_setprop_3cgl_9transform_rotation, (char *)0, 0},
  {(char *)"scale", __pyx_getprop_3cgl_9transform_scale, __pyx_setprop_3cgl_9transform_scale, (char *)0, 0},
  {(char *)"matrix", __pyx_getprop_3cgl_9transform_matrix, __pyx_setprop_3cgl_9transform_matrix, (char *)0, 0},
  {0, 0, 0, 0, 0}
};

static PyTypeObject __pyx_type_3cgl_transform = {
  PyVarObject_HEAD_INIT(0, 0)
  "cgl.transform", /*tp_name*/
  sizeof(struct __pyx_obj_3cgl_transform), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_3cgl_transform, /*tp_dealloc*/
  #if PY_VERSION_HEX < 0x030800b4
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030800b4
  0, /*tp_vectorcall_offset*/
  #endif
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  #if PY_MAJOR_VERSION < 3
  0, /*tp_compare*/
  #endif
  #if PY_MAJOR_VERSION >= 3
  0, /*tp_as_async*/
  #endif
  __pyx_pw_3cgl_9transform_7__repr__, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  __pyx_pw_3cgl_9transform_5__hash__, /*tp_hash*/
  0, /*tp_call*/
  __pyx_pw_3cgl_9transform_11__str__, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE, /*tp_flags*/
  0, /*tp_doc*/
  0, /*tp_traverse*/
  0, /*tp_clear*/
  __pyx_tp_richcompare_3cgl_transform, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  __pyx_methods_3cgl_transform, /*tp_methods*/
  0, /*tp_members*/
  __pyx_getsets_3cgl_transform, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  0, /*tp_dictoffset*/
  __pyx_pw_3cgl_9transform_3__init__, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_3cgl_transform, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if PY_VERSION_HEX >= 0x030400a1
  0, /*tp_finalize*/
  #endif
  #if PY_VERSION_HEX >= 0x030800b1 && (!CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800)
  0, /*tp_vectorcall*/
  #endif
  #if PY_VERSION_HEX >= 0x030800b4 && PY_VERSION_HEX < 0x03090000
  0, /*tp_print*/
  #endif
  #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000
  0, /*tp_pypy_flags*/
  #endif
};

static PyObject *__pyx_tp_new_3cgl_window(PyTypeObject *t, CYTHON_UNUSED PyObject *a, CYTHON_UNUSED PyObject *k) {
  struct __pyx_obj_3cgl_window *p;
  PyObject *o;
  if (likely((t->tp_flags & Py_TPFLAGS_IS_ABSTRACT) == 0)) {
    o = (*t->tp_alloc)(t, 0);
  } else {
    o = (PyObject *) PyBaseObject_Type.tp_new(t, __pyx_empty_tuple, 0);
  }
  if (unlikely(!o)) return 0;
  p = ((struct __pyx_obj_3cgl_window *)o);
  p->title = ((PyObject*)Py_None); Py_INCREF(Py_None);
  p->key_callback = Py_None; Py_INCREF(Py_None);
  p->mouse_button_callback = Py_None; Py_INCREF(Py_None);
  p->mouse_position_callback = Py_None; Py_INCREF(Py_None);
  p->mouse_scroll_callback = Py_None; Py_INCREF(Py_None);
  p->framebuffer_size_callback = Py_None; Py_INCREF(Py_None);
  p->close_callback = Py_None; Py_INCREF(Py_None);
  p->drag_n_drop_callback = Py_None; Py_INCREF(Py_None);
  return o;
}

static void __pyx_tp_dealloc_3cgl_window(PyObject *o) {
  struct __pyx_obj_3cgl_window *p = (struct __pyx_obj_3cgl_window *)o;
  #if CYTHON_USE_TP_FINALIZE
  if (unlikely(PyType_HasFeature(Py_TYPE(o), Py_TPFLAGS_HAVE_FINALIZE) && Py_TYPE(o)->tp_finalize) && !_PyGC_FINALIZED(o)) {
    if (PyObject_CallFinalizerFromDealloc(o)) return;
  }
  #endif
  PyObject_GC_UnTrack(o);
  {
    PyObject *etype, *eval, *etb;
    PyErr_Fetch(&etype, &eval, &etb);
    __Pyx_SET_REFCNT(o, Py_REFCNT(o) + 1);
    __pyx_pw_3cgl_6window_3__dealloc__(o);
    __Pyx_SET_REFCNT(o, Py_REFCNT(o) - 1);
    PyErr_Restore(etype, eval, etb);
  }
  Py_CLEAR(p->title);
  Py_CLEAR(p->key_callback);
  Py_CLEAR(p->mouse_button_callback);
  Py_CLEAR(p->mouse_position_callback);
  Py_CLEAR(p->mouse_scroll_callback);
  Py_CLEAR(p->framebuffer_size_callback);
  Py_CLEAR(p->close_callback);
  Py_CLEAR(p->drag_n_drop_callback);
  (*Py_TYPE(o)->tp_free)(o);
}

static int __pyx_tp_traverse_3cgl_window(PyObject *o, visitproc v, void *a) {
  int e;
  struct __pyx_obj_3cgl_window *p = (struct __pyx_obj_3cgl_window *)o;
  if (p->key_callback) {
    e = (*v)(p->key_callback, a); if (e) return e;
  }
  if (p->mouse_button_callback) {
    e = (*v)(p->mouse_button_callback, a); if (e) return e;
  }
  if (p->mouse_position_callback) {
    e = (*v)(p->mouse_position_callback, a); if (e) return e;
  }
  if (p->mouse_scroll_callback) {
    e = (*v)(p->mouse_scroll_callback, a); if (e) return e;
  }
  if (p->framebuffer_size_callback) {
    e = (*v)(p->framebuffer_size_callback, a); if (e) return e;
  }
  if (p->close_callback) {
    e = (*v)(p->close_callback, a); if (e) return e;
  }
  if (p->drag_n_drop_callback) {
    e = (*v)(p->drag_n_drop_callback, a); if (e) return e;
  }
  return 0;
}

static int __pyx_tp_clear_3cgl_window(PyObject *o) {
  PyObject* tmp;
  struct __pyx_obj_3cgl_window *p = (struct __pyx_obj_3cgl_window *)o;
  tmp = ((PyObject*)p->key_callback);
  p->key_callback = Py_None; Py_INCREF(Py_None);
  Py_XDECREF(tmp);
  tmp = ((PyObject*)p->mouse_button_callback);
  p->mouse_button_callback = Py_None; Py_INCREF(Py_None);
  Py_XDECREF(tmp);
  tmp = ((PyObject*)p->mouse_position_callback);
  p->mouse_position_callback = Py_None; Py_INCREF(Py_None);
  Py_XDECREF(tmp);
  tmp = ((PyObject*)p->mouse_scroll_callback);
  p->mouse_scroll_callback = Py_None; Py_INCREF(Py_None);
  Py_XDECREF(tmp);
  tmp = ((PyObject*)p->framebuffer_size_callback);
  p->framebuffer_size_callback = Py_None; Py_INCREF(Py_None);
  Py_XDECREF(tmp);
  tmp = ((PyObject*)p->close_callback);
  p->close_callback = Py_None; Py_INCREF(Py_None);
  Py_XDECREF(tmp);
  tmp = ((PyObject*)p->drag_n_drop_callback);
  p->drag_n_drop_callback = Py_None; Py_INCREF(Py_None);
  Py_XDECREF(tmp);
  return 0;
}

static PyObject *__pyx_getprop_3cgl_6window_close_callback(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_3cgl_6window_14close_callback_1__get__(o);
}

static PyObject *__pyx_getprop_3cgl_6window_key_callback(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_3cgl_6window_12key_callback_1__get__(o);
}

static PyObject *__pyx_getprop_3cgl_6window_mouse_button_callback(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_3cgl_6window_21mouse_button_callback_1__get__(o);
}

static PyObject *__pyx_getprop_3cgl_6window_mouse_position_callback(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_3cgl_6window_23mouse_position_callback_1__get__(o);
}

static PyObject *__pyx_getprop_3cgl_6window_mouse_scroll_callback(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_3cgl_6window_21mouse_scroll_callback_1__get__(o);
}

static PyObject *__pyx_getprop_3cgl_6window_framebuffer_size_callback(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_3cgl_6window_25framebuffer_size_callback_1__get__(o);
}

static PyObject *__pyx_getprop_3cgl_6window_drag_n_drop_callback(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_3cgl_6window_20drag_n_drop_callback_1__get__(o);
}

static PyObject *__pyx_getprop_3cgl_6window_width(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_3cgl_6window_5width_1__get__(o);
}

static PyObject *__pyx_getprop_3cgl_6window_height(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_3cgl_6window_6height_1__get__(o);
}

static PyObject *__pyx_getprop_3cgl_6window_x(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_3cgl_6window_1x_1__get__(o);
}

static PyObject *__pyx_getprop_3cgl_6window_y(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_3cgl_6window_1y_1__get__(o);
}

static PyMethodDef __pyx_methods_3cgl_window[] = {
  {"destroy", (PyCFunction)__pyx_pw_3cgl_6window_7destroy, METH_NOARGS, 0},
  {"get_id", (PyCFunction)__pyx_pw_3cgl_6window_9get_id, METH_NOARGS, 0},
  {"poll_events", (PyCFunction)__pyx_pw_3cgl_6window_11poll_events, METH_NOARGS, 0},
  {"should_close", (PyCFunction)__pyx_pw_3cgl_6window_13should_close, METH_NOARGS, 0},
  {"swap_buffers", (PyCFunction)__pyx_pw_3cgl_6window_15swap_buffers, METH_NOARGS, 0},
  {"set_title", (PyCFunction)__pyx_pw_3cgl_6window_17set_title, METH_O, 0},
  {"set_size", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_3cgl_6window_19set_size, METH_VARARGS|METH_KEYWORDS, 0},
  {"set_position", (PyCFunction)(void*)(PyCFunctionWithKeywords)__pyx_pw_3cgl_6window_21set_position, METH_VARARGS|METH_KEYWORDS, 0},
  {"set_hidden", (PyCFunction)__pyx_pw_3cgl_6window_23set_hidden, METH_O, 0},
  {"set_user_data", (PyCFunction)__pyx_pw_3cgl_6window_25set_user_data, METH_O, 0},
  {"get_user_data", (PyCFunction)__pyx_pw_3cgl_6window_27get_user_data, METH_NOARGS, 0},
  {"get_size", (PyCFunction)__pyx_pw_3cgl_6window_29get_size, METH_NOARGS, 0},
  {"set_close_callback", (PyCFunction)__pyx_pw_3cgl_6window_31set_close_callback, METH_O, 0},
  {"set_key_callback", (PyCFunction)__pyx_pw_3cgl_6window_33set_key_callback, METH_O, 0},
  {"set_mouse_button_callback", (PyCFunction)__pyx_pw_3cgl_6window_35set_mouse_button_callback, METH_O, 0},
  {"set_mouse_position_callback", (PyCFunction)__pyx_pw_3cgl_6window_37set_mouse_position_callback, METH_O, 0},
  {"set_mouse_scroll_callback", (PyCFunction)__pyx_pw_3cgl_6window_39set_mouse_scroll_callback, METH_O, 0},
  {"set_framebuffer_size_callback", (PyCFunction)__pyx_pw_3cgl_6window_41set_framebuffer_size_callback, METH_O, 0},
  {"set_drag_n_drop_callback", (PyCFunction)__pyx_pw_3cgl_6window_43set_drag_n_drop_callback, METH_O, 0},
  {"get_position", (PyCFunction)__pyx_pw_3cgl_6window_45get_position, METH_NOARGS, 0},
  {"get_framebuffer_size", (PyCFunction)__pyx_pw_3cgl_6window_47get_framebuffer_size, METH_NOARGS, 0},
  {"resecure_callbaks", (PyCFunction)__pyx_pw_3cgl_6window_49resecure_callbaks, METH_NOARGS, 0},
  {"make_context_current", (PyCFunction)__pyx_pw_3cgl_6window_51make_context_current, METH_NOARGS, 0},
  {"get_glfw_handle", (PyCFunction)__pyx_pw_3cgl_6window_53get_glfw_handle, METH_NOARGS, 0},
  {"get_key", (PyCFunction)__pyx_pw_3cgl_6window_55get_key, METH_O, 0},
  {"is_key_presswd", (PyCFunction)__pyx_pw_3cgl_6window_57is_key_presswd, METH_O, 0},
  {"get_mouse_button", (PyCFunction)__pyx_pw_3cgl_6window_59get_mouse_button, METH_O, 0},
  {"get_cursor_pos", (PyCFunction)__pyx_pw_3cgl_6window_61get_cursor_pos, METH_NOARGS, 0},
  {"__reduce_cython__", (PyCFunction)__pyx_pw_3cgl_6window_67__reduce_cython__, METH_NOARGS, 0},
  {"__setstate_cython__", (PyCFunction)__pyx_pw_3cgl_6window_69__setstate_cython__, METH_O, 0},
  {0, 0, 0, 0}
};

static struct PyGetSetDef __pyx_getsets_3cgl_window[] = {
  {(char *)"close_callback", __pyx_getprop_3cgl_6window_close_callback, 0, (char *)0, 0},
  {(char *)"key_callback", __pyx_getprop_3cgl_6window_key_callback, 0, (char *)0, 0},
  {(char *)"mouse_button_callback", __pyx_getprop_3cgl_6window_mouse_button_callback, 0, (char *)0, 0},
  {(char *)"mouse_position_callback", __pyx_getprop_3cgl_6window_mouse_position_callback, 0, (char *)0, 0},
  {(char *)"mouse_scroll_callback", __pyx_getprop_3cgl_6window_mouse_scroll_callback, 0, (char *)0, 0},
  {(char *)"framebuffer_size_callback", __pyx_getprop_3cgl_6window_framebuffer_size_callback, 0, (char *)0, 0},
  {(char *)"drag_n_drop_callback", __pyx_getprop_3cgl_6window_drag_n_drop_callback, 0, (char *)0, 0},
  {(char *)"width", __pyx_getprop_3cgl_6window_width, 0, (char *)0, 0},
  {(char *)"height", __pyx_getprop_3cgl_6window_height, 0, (char *)0, 0},
  {(char *)"x", __pyx_getprop_3cgl_6window_x, 0, (char *)0, 0},
  {(char *)"y", __pyx_getprop_3cgl_6window_y, 0, (char *)0, 0},
  {0, 0, 0, 0, 0}
};

static PyTypeObject __pyx_type_3cgl_window = {
  PyVarObject_HEAD_INIT(0, 0)
  "cgl.window", /*tp_name*/
  sizeof(struct __pyx_obj_3cgl_window), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_3cgl_window, /*tp_dealloc*/
  #if PY_VERSION_HEX < 0x030800b4
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030800b4
  0, /*tp_vectorcall_offset*/
  #endif
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  #if PY_MAJOR_VERSION < 3
  0, /*tp_compare*/
  #endif
  #if PY_MAJOR_VERSION >= 3
  0, /*tp_as_async*/
  #endif
  __pyx_pw_3cgl_6window_63__repr__, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  __pyx_pw_3cgl_6window_5__hash__, /*tp_hash*/
  0, /*tp_call*/
  __pyx_pw_3cgl_6window_65__str__, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
  0, /*tp_doc*/
  __pyx_tp_traverse_3cgl_window, /*tp_traverse*/
  __pyx_tp_clear_3cgl_window, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  __pyx_methods_3cgl_window, /*tp_methods*/
  0, /*tp_members*/
  __pyx_getsets_3cgl_window, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  0, /*tp_dictoffset*/
  __pyx_pw_3cgl_6window_1__init__, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_3cgl_window, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if PY_VERSION_HEX >= 0x030400a1
  0, /*tp_finalize*/
  #endif
  #if PY_VERSION_HEX >= 0x030800b1 && (!CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800)
  0, /*tp_vectorcall*/
  #endif
  #if PY_VERSION_HEX >= 0x030800b4 && PY_VERSION_HEX < 0x03090000
  0, /*tp_print*/
  #endif
  #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000
  0, /*tp_pypy_flags*/
  #endif
};

static PyObject *__pyx_tp_new_3cgl_image(PyTypeObject *t, CYTHON_UNUSED PyObject *a, CYTHON_UNUSED PyObject *k) {
  struct __pyx_obj_3cgl_image *p;
  PyObject *o;
  if (likely((t->tp_flags & Py_TPFLAGS_IS_ABSTRACT) == 0)) {
    o = (*t->tp_alloc)(t, 0);
  } else {
    o = (PyObject *) PyBaseObject_Type.tp_new(t, __pyx_empty_tuple, 0);
  }
  if (unlikely(!o)) return 0;
  p = ((struct __pyx_obj_3cgl_image *)o);
  p->image_data = Py_None; Py_INCREF(Py_None);
  return o;
}

static void __pyx_tp_dealloc_3cgl_image(PyObject *o) {
  struct __pyx_obj_3cgl_image *p = (struct __pyx_obj_3cgl_image *)o;
  #if CYTHON_USE_TP_FINALIZE
  if (unlikely(PyType_HasFeature(Py_TYPE(o), Py_TPFLAGS_HAVE_FINALIZE) && Py_TYPE(o)->tp_finalize) && !_PyGC_FINALIZED(o)) {
    if (PyObject_CallFinalizerFromDealloc(o)) return;
  }
  #endif
  PyObject_GC_UnTrack(o);
  Py_CLEAR(p->image_data);
  (*Py_TYPE(o)->tp_free)(o);
}

static int __pyx_tp_traverse_3cgl_image(PyObject *o, visitproc v, void *a) {
  int e;
  struct __pyx_obj_3cgl_image *p = (struct __pyx_obj_3cgl_image *)o;
  if (p->image_data) {
    e = (*v)(p->image_data, a); if (e) return e;
  }
  return 0;
}

static int __pyx_tp_clear_3cgl_image(PyObject *o) {
  PyObject* tmp;
  struct __pyx_obj_3cgl_image *p = (struct __pyx_obj_3cgl_image *)o;
  tmp = ((PyObject*)p->image_data);
  p->image_data = Py_None; Py_INCREF(Py_None);
  Py_XDECREF(tmp);
  return 0;
}

static PyObject *__pyx_getprop_3cgl_5image_width(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_3cgl_5image_5width_1__get__(o);
}

static PyObject *__pyx_getprop_3cgl_5image_height(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_3cgl_5image_6height_1__get__(o);
}

static PyObject *__pyx_getprop_3cgl_5image_channels(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_3cgl_5image_8channels_1__get__(o);
}

static PyMethodDef __pyx_methods_3cgl_image[] = {
  {"load_image", (PyCFunction)__pyx_pw_3cgl_5image_9load_image, METH_O, 0},
  {"__reduce_cython__", (PyCFunction)__pyx_pw_3cgl_5image_11__reduce_cython__, METH_NOARGS, 0},
  {"__setstate_cython__", (PyCFunction)__pyx_pw_3cgl_5image_13__setstate_cython__, METH_O, 0},
  {0, 0, 0, 0}
};

static struct PyGetSetDef __pyx_getsets_3cgl_image[] = {
  {(char *)"width", __pyx_getprop_3cgl_5image_width, 0, (char *)0, 0},
  {(char *)"height", __pyx_getprop_3cgl_5image_height, 0, (char *)0, 0},
  {(char *)"channels", __pyx_getprop_3cgl_5image_channels, 0, (char *)0, 0},
  {0, 0, 0, 0, 0}
};

static PyTypeObject __pyx_type_3cgl_image = {
  PyVarObject_HEAD_INIT(0, 0)
  "cgl.image", /*tp_name*/
  sizeof(struct __pyx_obj_3cgl_image), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_3cgl_image, /*tp_dealloc*/
  #if PY_VERSION_HEX < 0x030800b4
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030800b4
  0, /*tp_vectorcall_offset*/
  #endif
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  #if PY_MAJOR_VERSION < 3
  0, /*tp_compare*/
  #endif
  #if PY_MAJOR_VERSION >= 3
  0, /*tp_as_async*/
  #endif
  __pyx_pw_3cgl_5image_5__repr__, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  __pyx_pw_3cgl_5image_3__hash__, /*tp_hash*/
  0, /*tp_call*/
  __pyx_pw_3cgl_5image_7__str__, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
  0, /*tp_doc*/
  __pyx_tp_traverse_3cgl_image, /*tp_traverse*/
  __pyx_tp_clear_3cgl_image, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  __pyx_methods_3cgl_image, /*tp_methods*/
  0, /*tp_members*/
  __pyx_getsets_3cgl_image, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  0, /*tp_dictoffset*/
  __pyx_pw_3cgl_5image_1__init__, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_3cgl_image, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if PY_VERSION_HEX >= 0x030400a1
  0, /*tp_finalize*/
  #endif
  #if PY_VERSION_HEX >= 0x030800b1 && (!CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800)
  0, /*tp_vectorcall*/
  #endif
  #if PY_VERSION_HEX >= 0x030800b4 && PY_VERSION_HEX < 0x03090000
  0, /*tp_print*/
  #endif
  #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000
  0, /*tp_pypy_flags*/
  #endif
};

static PyObject *__pyx_tp_new_3cgl_mesh_vertex(PyTypeObject *t, CYTHON_UNUSED PyObject *a, CYTHON_UNUSED PyObject *k) {
  PyObject *o;
  if (likely((t->tp_flags & Py_TPFLAGS_IS_ABSTRACT) == 0)) {
    o = (*t->tp_alloc)(t, 0);
  } else {
    o = (PyObject *) PyBaseObject_Type.tp_new(t, __pyx_empty_tuple, 0);
  }
  if (unlikely(!o)) return 0;
  return o;
}

static void __pyx_tp_dealloc_3cgl_mesh_vertex(PyObject *o) {
  #if CYTHON_USE_TP_FINALIZE
  if (unlikely(PyType_HasFeature(Py_TYPE(o), Py_TPFLAGS_HAVE_FINALIZE) && Py_TYPE(o)->tp_finalize) && (!PyType_IS_GC(Py_TYPE(o)) || !_PyGC_FINALIZED(o))) {
    if (PyObject_CallFinalizerFromDealloc(o)) return;
  }
  #endif
  (*Py_TYPE(o)->tp_free)(o);
}

static PyObject *__pyx_getprop_3cgl_11mesh_vertex_position(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_3cgl_11mesh_vertex_8position_1__get__(o);
}

static int __pyx_setprop_3cgl_11mesh_vertex_position(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_3cgl_11mesh_vertex_8position_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyObject *__pyx_getprop_3cgl_11mesh_vertex_normal(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_3cgl_11mesh_vertex_6normal_1__get__(o);
}

static int __pyx_setprop_3cgl_11mesh_vertex_normal(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_3cgl_11mesh_vertex_6normal_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyObject *__pyx_getprop_3cgl_11mesh_vertex_texture_coordinates(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_3cgl_11mesh_vertex_19texture_coordinates_1__get__(o);
}

static int __pyx_setprop_3cgl_11mesh_vertex_texture_coordinates(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_3cgl_11mesh_vertex_19texture_coordinates_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyObject *__pyx_getprop_3cgl_11mesh_vertex_bone_wieghts(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_3cgl_11mesh_vertex_12bone_wieghts_1__get__(o);
}

static int __pyx_setprop_3cgl_11mesh_vertex_bone_wieghts(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_3cgl_11mesh_vertex_12bone_wieghts_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyObject *__pyx_getprop_3cgl_11mesh_vertex_bone_ids(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_3cgl_11mesh_vertex_8bone_ids_1__get__(o);
}

static int __pyx_setprop_3cgl_11mesh_vertex_bone_ids(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_3cgl_11mesh_vertex_8bone_ids_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyMethodDef __pyx_methods_3cgl_mesh_vertex[] = {
  {"__reduce_cython__", (PyCFunction)__pyx_pw_3cgl_11mesh_vertex_9__reduce_cython__, METH_NOARGS, 0},
  {"__setstate_cython__", (PyCFunction)__pyx_pw_3cgl_11mesh_vertex_11__setstate_cython__, METH_O, 0},
  {0, 0, 0, 0}
};

static struct PyGetSetDef __pyx_getsets_3cgl_mesh_vertex[] = {
  {(char *)"position", __pyx_getprop_3cgl_11mesh_vertex_position, __pyx_setprop_3cgl_11mesh_vertex_position, (char *)0, 0},
  {(char *)"normal", __pyx_getprop_3cgl_11mesh_vertex_normal, __pyx_setprop_3cgl_11mesh_vertex_normal, (char *)0, 0},
  {(char *)"texture_coordinates", __pyx_getprop_3cgl_11mesh_vertex_texture_coordinates, __pyx_setprop_3cgl_11mesh_vertex_texture_coordinates, (char *)0, 0},
  {(char *)"bone_wieghts", __pyx_getprop_3cgl_11mesh_vertex_bone_wieghts, __pyx_setprop_3cgl_11mesh_vertex_bone_wieghts, (char *)0, 0},
  {(char *)"bone_ids", __pyx_getprop_3cgl_11mesh_vertex_bone_ids, __pyx_setprop_3cgl_11mesh_vertex_bone_ids, (char *)0, 0},
  {0, 0, 0, 0, 0}
};

static PyTypeObject __pyx_type_3cgl_mesh_vertex = {
  PyVarObject_HEAD_INIT(0, 0)
  "cgl.mesh_vertex", /*tp_name*/
  sizeof(struct __pyx_obj_3cgl_mesh_vertex), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_3cgl_mesh_vertex, /*tp_dealloc*/
  #if PY_VERSION_HEX < 0x030800b4
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030800b4
  0, /*tp_vectorcall_offset*/
  #endif
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  #if PY_MAJOR_VERSION < 3
  0, /*tp_compare*/
  #endif
  #if PY_MAJOR_VERSION >= 3
  0, /*tp_as_async*/
  #endif
  __pyx_pw_3cgl_11mesh_vertex_5__repr__, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  __pyx_pw_3cgl_11mesh_vertex_3__hash__, /*tp_hash*/
  0, /*tp_call*/
  __pyx_pw_3cgl_11mesh_vertex_7__str__, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE, /*tp_flags*/
  0, /*tp_doc*/
  0, /*tp_traverse*/
  0, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  __pyx_methods_3cgl_mesh_vertex, /*tp_methods*/
  0, /*tp_members*/
  __pyx_getsets_3cgl_mesh_vertex, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  0, /*tp_dictoffset*/
  __pyx_pw_3cgl_11mesh_vertex_1__init__, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_3cgl_mesh_vertex, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if PY_VERSION_HEX >= 0x030400a1
  0, /*tp_finalize*/
  #endif
  #if PY_VERSION_HEX >= 0x030800b1 && (!CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800)
  0, /*tp_vectorcall*/
  #endif
  #if PY_VERSION_HEX >= 0x030800b4 && PY_VERSION_HEX < 0x03090000
  0, /*tp_print*/
  #endif
  #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000
  0, /*tp_pypy_flags*/
  #endif
};

static PyObject *__pyx_tp_new_3cgl_mesh_cpu(PyTypeObject *t, CYTHON_UNUSED PyObject *a, CYTHON_UNUSED PyObject *k) {
  PyObject *o;
  if (likely((t->tp_flags & Py_TPFLAGS_IS_ABSTRACT) == 0)) {
    o = (*t->tp_alloc)(t, 0);
  } else {
    o = (PyObject *) PyBaseObject_Type.tp_new(t, __pyx_empty_tuple, 0);
  }
  if (unlikely(!o)) return 0;
  return o;
}

static void __pyx_tp_dealloc_3cgl_mesh_cpu(PyObject *o) {
  #if CYTHON_USE_TP_FINALIZE
  if (unlikely(PyType_HasFeature(Py_TYPE(o), Py_TPFLAGS_HAVE_FINALIZE) && Py_TYPE(o)->tp_finalize) && (!PyType_IS_GC(Py_TYPE(o)) || !_PyGC_FINALIZED(o))) {
    if (PyObject_CallFinalizerFromDealloc(o)) return;
  }
  #endif
  (*Py_TYPE(o)->tp_free)(o);
}

static PyObject *__pyx_getprop_3cgl_8mesh_cpu_index_count(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_3cgl_8mesh_cpu_11index_count_1__get__(o);
}

static PyObject *__pyx_getprop_3cgl_8mesh_cpu_index_count_used(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_3cgl_8mesh_cpu_16index_count_used_1__get__(o);
}

static PyObject *__pyx_getprop_3cgl_8mesh_cpu_indices(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_3cgl_8mesh_cpu_7indices_1__get__(o);
}

static int __pyx_setprop_3cgl_8mesh_cpu_indices(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_3cgl_8mesh_cpu_7indices_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyObject *__pyx_getprop_3cgl_8mesh_cpu_vertex_count(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_3cgl_8mesh_cpu_12vertex_count_1__get__(o);
}

static PyObject *__pyx_getprop_3cgl_8mesh_cpu_vertex_count_used(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_3cgl_8mesh_cpu_17vertex_count_used_1__get__(o);
}

static PyObject *__pyx_getprop_3cgl_8mesh_cpu_vertices(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_3cgl_8mesh_cpu_8vertices_1__get__(o);
}

static PyMethodDef __pyx_methods_3cgl_mesh_cpu[] = {
  {"__reduce_cython__", (PyCFunction)__pyx_pw_3cgl_8mesh_cpu_9__reduce_cython__, METH_NOARGS, 0},
  {"__setstate_cython__", (PyCFunction)__pyx_pw_3cgl_8mesh_cpu_11__setstate_cython__, METH_O, 0},
  {0, 0, 0, 0}
};

static struct PyGetSetDef __pyx_getsets_3cgl_mesh_cpu[] = {
  {(char *)"index_count", __pyx_getprop_3cgl_8mesh_cpu_index_count, 0, (char *)0, 0},
  {(char *)"index_count_used", __pyx_getprop_3cgl_8mesh_cpu_index_count_used, 0, (char *)0, 0},
  {(char *)"indices", __pyx_getprop_3cgl_8mesh_cpu_indices, __pyx_setprop_3cgl_8mesh_cpu_indices, (char *)0, 0},
  {(char *)"vertex_count", __pyx_getprop_3cgl_8mesh_cpu_vertex_count, 0, (char *)0, 0},
  {(char *)"vertex_count_used", __pyx_getprop_3cgl_8mesh_cpu_vertex_count_used, 0, (char *)0, 0},
  {(char *)"vertices", __pyx_getprop_3cgl_8mesh_cpu_vertices, 0, (char *)0, 0},
  {0, 0, 0, 0, 0}
};

static PyTypeObject __pyx_type_3cgl_mesh_cpu = {
  PyVarObject_HEAD_INIT(0, 0)
  "cgl.mesh_cpu", /*tp_name*/
  sizeof(struct __pyx_obj_3cgl_mesh_cpu), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_3cgl_mesh_cpu, /*tp_dealloc*/
  #if PY_VERSION_HEX < 0x030800b4
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030800b4
  0, /*tp_vectorcall_offset*/
  #endif
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  #if PY_MAJOR_VERSION < 3
  0, /*tp_compare*/
  #endif
  #if PY_MAJOR_VERSION >= 3
  0, /*tp_as_async*/
  #endif
  __pyx_pw_3cgl_8mesh_cpu_5__repr__, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  __pyx_pw_3cgl_8mesh_cpu_3__hash__, /*tp_hash*/
  0, /*tp_call*/
  __pyx_pw_3cgl_8mesh_cpu_7__str__, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE, /*tp_flags*/
  0, /*tp_doc*/
  0, /*tp_traverse*/
  0, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  __pyx_methods_3cgl_mesh_cpu, /*tp_methods*/
  0, /*tp_members*/
  __pyx_getsets_3cgl_mesh_cpu, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  0, /*tp_dictoffset*/
  __pyx_pw_3cgl_8mesh_cpu_1__init__, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_3cgl_mesh_cpu, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if PY_VERSION_HEX >= 0x030400a1
  0, /*tp_finalize*/
  #endif
  #if PY_VERSION_HEX >= 0x030800b1 && (!CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800)
  0, /*tp_vectorcall*/
  #endif
  #if PY_VERSION_HEX >= 0x030800b4 && PY_VERSION_HEX < 0x03090000
  0, /*tp_print*/
  #endif
  #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000
  0, /*tp_pypy_flags*/
  #endif
};

static PyMethodDef __pyx_methods[] = {
  {0, 0, 0, 0}
};

#if PY_MAJOR_VERSION >= 3
#if CYTHON_PEP489_MULTI_PHASE_INIT
static PyObject* __pyx_pymod_create(PyObject *spec, PyModuleDef *def); /*proto*/
static int __pyx_pymod_exec_cgl(PyObject* module); /*proto*/
static PyModuleDef_Slot __pyx_moduledef_slots[] = {
  {Py_mod_create, (void*)__pyx_pymod_create},
  {Py_mod_exec, (void*)__pyx_pymod_exec_cgl},
  {0, NULL}
};
#endif

static struct PyModuleDef __pyx_moduledef = {
    PyModuleDef_HEAD_INIT,
    "cgl",
    0, /* m_doc */
  #if CYTHON_PEP489_MULTI_PHASE_INIT
    0, /* m_size */
  #else
    -1, /* m_size */
  #endif
    __pyx_methods /* m_methods */,
  #if CYTHON_PEP489_MULTI_PHASE_INIT
    __pyx_moduledef_slots, /* m_slots */
  #else
    NULL, /* m_reload */
  #endif
    NULL, /* m_traverse */
    NULL, /* m_clear */
    NULL /* m_free */
};
#endif
#ifndef CYTHON_SMALL_CODE
#if defined(__clang__)
    #define CYTHON_SMALL_CODE
#elif defined(__GNUC__) && (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 3))
    #define CYTHON_SMALL_CODE __attribute__((cold))
#else
    #define CYTHON_SMALL_CODE
#endif
#endif

static __Pyx_StringTabEntry __pyx_string_tab[] = {
  {&__pyx_kp_s_, __pyx_k_, sizeof(__pyx_k_), 0, 0, 1, 0},
  {&__pyx_n_s_AttributeError, __pyx_k_AttributeError, sizeof(__pyx_k_AttributeError), 0, 0, 1, 1},
  {&__pyx_n_s_CGL_FALSE, __pyx_k_CGL_FALSE, sizeof(__pyx_k_CGL_FALSE), 0, 0, 1, 1},
  {&__pyx_n_s_CGL_TRUE, __pyx_k_CGL_TRUE, sizeof(__pyx_k_CGL_TRUE), 0, 0, 1, 1},
  {&__pyx_kp_s_CGL_Window, __pyx_k_CGL_Window, sizeof(__pyx_k_CGL_Window), 0, 0, 1, 0},
  {&__pyx_n_s_CONSOLE_COLOR_BLUE, __pyx_k_CONSOLE_COLOR_BLUE, sizeof(__pyx_k_CONSOLE_COLOR_BLUE), 0, 0, 1, 1},
  {&__pyx_n_s_CONSOLE_COLOR_GRAY, __pyx_k_CONSOLE_COLOR_GRAY, sizeof(__pyx_k_CONSOLE_COLOR_GRAY), 0, 0, 1, 1},
  {&__pyx_n_s_CONSOLE_COLOR_GREEN, __pyx_k_CONSOLE_COLOR_GREEN, sizeof(__pyx_k_CONSOLE_COLOR_GREEN), 0, 0, 1, 1},
  {&__pyx_n_s_CONSOLE_COLOR_RED, __pyx_k_CONSOLE_COLOR_RED, sizeof(__pyx_k_CONSOLE_COLOR_RED), 0, 0, 1, 1},
  {&__pyx_n_s_CONSOLE_COLOR_RESET, __pyx_k_CONSOLE_COLOR_RESET, sizeof(__pyx_k_CONSOLE_COLOR_RESET), 0, 0, 1, 1},
  {&__pyx_n_s_Callable, __pyx_k_Callable, sizeof(__pyx_k_Callable), 0, 0, 1, 1},
  {&__pyx_n_s_E, __pyx_k_E, sizeof(__pyx_k_E), 0, 0, 1, 1},
  {&__pyx_kp_s_Failed_to_create_window, __pyx_k_Failed_to_create_window, sizeof(__pyx_k_Failed_to_create_window), 0, 0, 1, 0},
  {&__pyx_n_s_Image, __pyx_k_Image, sizeof(__pyx_k_Image), 0, 0, 1, 1},
  {&__pyx_n_s_IndexError, __pyx_k_IndexError, sizeof(__pyx_k_IndexError), 0, 0, 1, 1},
  {&__pyx_n_s_KEY_0, __pyx_k_KEY_0, sizeof(__pyx_k_KEY_0), 0, 0, 1, 1},
  {&__pyx_n_s_KEY_1, __pyx_k_KEY_1, sizeof(__pyx_k_KEY_1), 0, 0, 1, 1},
  {&__pyx_n_s_KEY_2, __pyx_k_KEY_2, sizeof(__pyx_k_KEY_2), 0, 0, 1, 1},
  {&__pyx_n_s_KEY_3, __pyx_k_KEY_3, sizeof(__pyx_k_KEY_3), 0, 0, 1, 1},
  {&__pyx_n_s_KEY_4, __pyx_k_KEY_4, sizeof(__pyx_k_KEY_4), 0, 0, 1, 1},
  {&__pyx_n_s_KEY_5, __pyx_k_KEY_5, sizeof(__pyx_k_KEY_5), 0, 0, 1, 1},
  {&__pyx_n_s_KEY_6, __pyx_k_KEY_6, sizeof(__pyx_k_KEY_6), 0, 0, 1, 1},
  {&__pyx_n_s_KEY_7, __pyx_k_KEY_7, sizeof(__pyx_k_KEY_7), 0, 0, 1, 1},
  {&__pyx_n_s_KEY_8, __pyx_k_KEY_8, sizeof(__pyx_k_KEY_8), 0, 0, 1, 1},
  {&__pyx_n_s_KEY_9, __pyx_k_KEY_9, sizeof(__pyx_k_KEY_9), 0, 0, 1, 1},
  {&__pyx_n_s_KEY_A, __pyx_k_KEY_A, sizeof(__pyx_k_KEY_A), 0, 0, 1, 1},
  {&__pyx_n_s_KEY_APOSTROPHE, __pyx_k_KEY_APOSTROPHE, sizeof(__pyx_k_KEY_APOSTROPHE), 0, 0, 1, 1},
  {&__pyx_n_s_KEY_B, __pyx_k_KEY_B, sizeof(__pyx_k_KEY_B), 0, 0, 1, 1},
  {&__pyx_n_s_KEY_BACKSLASH, __pyx_k_KEY_BACKSLASH, sizeof(__pyx_k_KEY_BACKSLASH), 0, 0, 1, 1},
  {&__pyx_n_s_KEY_BACKSPACE, __pyx_k_KEY_BACKSPACE, sizeof(__pyx_k_KEY_BACKSPACE), 0, 0, 1, 1},
  {&__pyx_n_s_KEY_C, __pyx_k_KEY_C, sizeof(__pyx_k_KEY_C), 0, 0, 1, 1},
  {&__pyx_n_s_KEY_CAPS_LOCK, __pyx_k_KEY_CAPS_LOCK, sizeof(__pyx_k_KEY_CAPS_LOCK), 0, 0, 1, 1},
  {&__pyx_n_s_KEY_COMMA, __pyx_k_KEY_COMMA, sizeof(__pyx_k_KEY_COMMA), 0, 0, 1, 1},
  {&__pyx_n_s_KEY_D, __pyx_k_KEY_D, sizeof(__pyx_k_KEY_D), 0, 0, 1, 1},
  {&__pyx_n_s_KEY_DELETE, __pyx_k_KEY_DELETE, sizeof(__pyx_k_KEY_DELETE), 0, 0, 1, 1},
  {&__pyx_n_s_KEY_DOWN, __pyx_k_KEY_DOWN, sizeof(__pyx_k_KEY_DOWN), 0, 0, 1, 1},
  {&__pyx_n_s_KEY_E, __pyx_k_KEY_E, sizeof(__pyx_k_KEY_E), 0, 0, 1, 1},
  {&__pyx_n_s_KEY_END, __pyx_k_KEY_END, sizeof(__pyx_k_KEY_END), 0, 0, 1, 1},
  {&__pyx_n_s_KEY_ENTER, __pyx_k_KEY_ENTER, sizeof(__pyx_k_KEY_ENTER), 0, 0, 1, 1},
  {&__pyx_n_s_KEY_EQUAL, __pyx_k_KEY_EQUAL, sizeof(__pyx_k_KEY_EQUAL), 0, 0, 1, 1},
  {&__pyx_n_s_KEY_ESCAPE, __pyx_k_KEY_ESCAPE, sizeof(__pyx_k_KEY_ESCAPE), 0, 0, 1, 1},
  {&__pyx_n_s_KEY_F, __pyx_k_KEY_F, sizeof(__pyx_k_KEY_F), 0, 0, 1, 1},
  {&__pyx_n_s_KEY_F1, __pyx_k_KEY_F1, sizeof(__pyx_k_KEY_F1), 0, 0, 1, 1},
  {&__pyx_n_s_KEY_F10, __pyx_k_KEY_F10, sizeof(__pyx_k_KEY_F10), 0, 0, 1, 1},
  {&__pyx_n_s_KEY_F11, __pyx_k_KEY_F11, sizeof(__pyx_k_KEY_F11), 0, 0, 1, 1},
  {&__pyx_n_s_KEY_F12, __pyx_k_KEY_F12, sizeof(__pyx_k_KEY_F12), 0, 0, 1, 1},
  {&__pyx_n_s_KEY_F13, __pyx_k_KEY_F13, sizeof(__pyx_k_KEY_F13), 0, 0, 1, 1},
  {&__pyx_n_s_KEY_F14, __pyx_k_KEY_F14, sizeof(__pyx_k_KEY_F14), 0, 0, 1, 1},
  {&__pyx_n_s_KEY_F15, __pyx_k_KEY_F15, sizeof(__pyx_k_KEY_F15), 0, 0, 1, 1},
  {&__pyx_n_s_KEY_F16, __pyx_k_KEY_F16, sizeof(__pyx_k_KEY_F16), 0, 0, 1, 1},
  {&__pyx_n_s_KEY_F17, __pyx_k_KEY_F17, sizeof(__pyx_k_KEY_F17), 0, 0, 1, 1},
  {&__pyx_n_s_KEY_F18, __pyx_k_KEY_F18, sizeof(__pyx_k_KEY_F18), 0, 0, 1, 1},
  {&__pyx_n_s_KEY_F19, __pyx_k_KEY_F19, sizeof(__pyx_k_KEY_F19), 0, 0, 1, 1},
  {&__pyx_n_s_KEY_F2, __pyx_k_KEY_F2, sizeof(__pyx_k_KEY_F2), 0, 0, 1, 1},
  {&__pyx_n_s_KEY_F20, __pyx_k_KEY_F20, sizeof(__pyx_k_KEY_F20), 0, 0, 1, 1},
  {&__pyx_n_s_KEY_F21, __pyx_k_KEY_F21, sizeof(__pyx_k_KEY_F21), 0, 0, 1, 1},
  {&__pyx_n_s_KEY_F22, __pyx_k_KEY_F22, sizeof(__pyx_k_KEY_F22), 0, 0, 1, 1},
  {&__pyx_n_s_KEY_F23, __pyx_k_KEY_F23, sizeof(__pyx_k_KEY_F23), 0, 0, 1, 1},
  {&__pyx_n_s_KEY_F24, __pyx_k_KEY_F24, sizeof(__pyx_k_KEY_F24), 0, 0, 1, 1},
  {&__pyx_n_s_KEY_F25, __pyx_k_KEY_F25, sizeof(__pyx_k_KEY_F25), 0, 0, 1, 1},
  {&__pyx_n_s_KEY_F3, __pyx_k_KEY_F3, sizeof(__pyx_k_KEY_F3), 0, 0, 1, 1},
  {&__pyx_n_s_KEY_F4, __pyx_k_KEY_F4, sizeof(__pyx_k_KEY_F4), 0, 0, 1, 1},
  {&__pyx_n_s_KEY_F5, __pyx_k_KEY_F5, sizeof(__pyx_k_KEY_F5), 0, 0, 1, 1},
  {&__pyx_n_s_KEY_F6, __pyx_k_KEY_F6, sizeof(__pyx_k_KEY_F6), 0, 0, 1, 1},
  {&__pyx_n_s_KEY_F7, __pyx_k_KEY_F7, sizeof(__pyx_k_KEY_F7), 0, 0, 1, 1},
  {&__pyx_n_s_KEY_F8, __pyx_k_KEY_F8, sizeof(__pyx_k_KEY_F8), 0, 0, 1, 1},
  {&__pyx_n_s_KEY_F9, __pyx_k_KEY_F9, sizeof(__pyx_k_KEY_F9), 0, 0, 1, 1},
  {&__pyx_n_s_KEY_G, __pyx_k_KEY_G, sizeof(__pyx_k_KEY_G), 0, 0, 1, 1},
  {&__pyx_n_s_KEY_GRAVE_ACCENT, __pyx_k_KEY_GRAVE_ACCENT, sizeof(__pyx_k_KEY_GRAVE_ACCENT), 0, 0, 1, 1},
  {&__pyx_n_s_KEY_H, __pyx_k_KEY_H, sizeof(__pyx_k_KEY_H), 0, 0, 1, 1},
  {&__pyx_n_s_KEY_HOME, __pyx_k_KEY_HOME, sizeof(__pyx_k_KEY_HOME), 0, 0, 1, 1},
  {&__pyx_n_s_KEY_I, __pyx_k_KEY_I, sizeof(__pyx_k_KEY_I), 0, 0, 1, 1},
  {&__pyx_n_s_KEY_INSERT, __pyx_k_KEY_INSERT, sizeof(__pyx_k_KEY_INSERT), 0, 0, 1, 1},
  {&__pyx_n_s_KEY_J, __pyx_k_KEY_J, sizeof(__pyx_k_KEY_J), 0, 0, 1, 1},
  {&__pyx_n_s_KEY_K, __pyx_k_KEY_K, sizeof(__pyx_k_KEY_K), 0, 0, 1, 1},
  {&__pyx_n_s_KEY_KP_0, __pyx_k_KEY_KP_0, sizeof(__pyx_k_KEY_KP_0), 0, 0, 1, 1},
  {&__pyx_n_s_KEY_KP_1, __pyx_k_KEY_KP_1, sizeof(__pyx_k_KEY_KP_1), 0, 0, 1, 1},
  {&__pyx_n_s_KEY_KP_2, __pyx_k_KEY_KP_2, sizeof(__pyx_k_KEY_KP_2), 0, 0, 1, 1},
  {&__pyx_n_s_KEY_KP_3, __pyx_k_KEY_KP_3, sizeof(__pyx_k_KEY_KP_3), 0, 0, 1, 1},
  {&__pyx_n_s_KEY_KP_4, __pyx_k_KEY_KP_4, sizeof(__pyx_k_KEY_KP_4), 0, 0, 1, 1},
  {&__pyx_n_s_KEY_KP_5, __pyx_k_KEY_KP_5, sizeof(__pyx_k_KEY_KP_5), 0, 0, 1, 1},
  {&__pyx_n_s_KEY_KP_6, __pyx_k_KEY_KP_6, sizeof(__pyx_k_KEY_KP_6), 0, 0, 1, 1},
  {&__pyx_n_s_KEY_KP_7, __pyx_k_KEY_KP_7, sizeof(__pyx_k_KEY_KP_7), 0, 0, 1, 1},
  {&__pyx_n_s_KEY_KP_8, __pyx_k_KEY_KP_8, sizeof(__pyx_k_KEY_KP_8), 0, 0, 1, 1},
  {&__pyx_n_s_KEY_KP_9, __pyx_k_KEY_KP_9, sizeof(__pyx_k_KEY_KP_9), 0, 0, 1, 1},
  {&__pyx_n_s_KEY_KP_ADD, __pyx_k_KEY_KP_ADD, sizeof(__pyx_k_KEY_KP_ADD), 0, 0, 1, 1},
  {&__pyx_n_s_KEY_KP_DECIMAL, __pyx_k_KEY_KP_DECIMAL, sizeof(__pyx_k_KEY_KP_DECIMAL), 0, 0, 1, 1},
  {&__pyx_n_s_KEY_KP_DIVIDE, __pyx_k_KEY_KP_DIVIDE, sizeof(__pyx_k_KEY_KP_DIVIDE), 0, 0, 1, 1},
  {&__pyx_n_s_KEY_KP_ENTER, __pyx_k_KEY_KP_ENTER, sizeof(__pyx_k_KEY_KP_ENTER), 0, 0, 1, 1},
  {&__pyx_n_s_KEY_KP_EQUAL, __pyx_k_KEY_KP_EQUAL, sizeof(__pyx_k_KEY_KP_EQUAL), 0, 0, 1, 1},
  {&__pyx_n_s_KEY_KP_MULTIPLY, __pyx_k_KEY_KP_MULTIPLY, sizeof(__pyx_k_KEY_KP_MULTIPLY), 0, 0, 1, 1},
  {&__pyx_n_s_KEY_KP_SUBTRACT, __pyx_k_KEY_KP_SUBTRACT, sizeof(__pyx_k_KEY_KP_SUBTRACT), 0, 0, 1, 1},
  {&__pyx_n_s_KEY_L, __pyx_k_KEY_L, sizeof(__pyx_k_KEY_L), 0, 0, 1, 1},
  {&__pyx_n_s_KEY_LEFT, __pyx_k_KEY_LEFT, sizeof(__pyx_k_KEY_LEFT), 0, 0, 1, 1},
  {&__pyx_n_s_KEY_LEFT_ALT, __pyx_k_KEY_LEFT_ALT, sizeof(__pyx_k_KEY_LEFT_ALT), 0, 0, 1, 1},
  {&__pyx_n_s_KEY_LEFT_BRACKET, __pyx_k_KEY_LEFT_BRACKET, sizeof(__pyx_k_KEY_LEFT_BRACKET), 0, 0, 1, 1},
  {&__pyx_n_s_KEY_LEFT_CONTROL, __pyx_k_KEY_LEFT_CONTROL, sizeof(__pyx_k_KEY_LEFT_CONTROL), 0, 0, 1, 1},
  {&__pyx_n_s_KEY_LEFT_SHIFT, __pyx_k_KEY_LEFT_SHIFT, sizeof(__pyx_k_KEY_LEFT_SHIFT), 0, 0, 1, 1},
  {&__pyx_n_s_KEY_LEFT_SUPER, __pyx_k_KEY_LEFT_SUPER, sizeof(__pyx_k_KEY_LEFT_SUPER), 0, 0, 1, 1},
  {&__pyx_n_s_KEY_M, __pyx_k_KEY_M, sizeof(__pyx_k_KEY_M), 0, 0, 1, 1},
  {&__pyx_n_s_KEY_MENU, __pyx_k_KEY_MENU, sizeof(__pyx_k_KEY_MENU), 0, 0, 1, 1},
  {&__pyx_n_s_KEY_MINUS, __pyx_k_KEY_MINUS, sizeof(__pyx_k_KEY_MINUS), 0, 0, 1, 1},
  {&__pyx_n_s_KEY_N, __pyx_k_KEY_N, sizeof(__pyx_k_KEY_N), 0, 0, 1, 1},
  {&__pyx_n_s_KEY_NUM_LOCK, __pyx_k_KEY_NUM_LOCK, sizeof(__pyx_k_KEY_NUM_LOCK), 0, 0, 1, 1},
  {&__pyx_n_s_KEY_O, __pyx_k_KEY_O, sizeof(__pyx_k_KEY_O), 0, 0, 1, 1},
  {&__pyx_n_s_KEY_P, __pyx_k_KEY_P, sizeof(__pyx_k_KEY_P), 0, 0, 1, 1},
  {&__pyx_n_s_KEY_PAGE_DOWN, __pyx_k_KEY_PAGE_DOWN, sizeof(__pyx_k_KEY_PAGE_DOWN), 0, 0, 1, 1},
  {&__pyx_n_s_KEY_PAGE_UP, __pyx_k_KEY_PAGE_UP, sizeof(__pyx_k_KEY_PAGE_UP), 0, 0, 1, 1},
  {&__pyx_n_s_KEY_PAUSE, __pyx_k_KEY_PAUSE, sizeof(__pyx_k_KEY_PAUSE), 0, 0, 1, 1},
  {&__pyx_n_s_KEY_PERIOD, __pyx_k_KEY_PERIOD, sizeof(__pyx_k_KEY_PERIOD), 0, 0, 1, 1},
  {&__pyx_n_s_KEY_PRINT_SCREEN, __pyx_k_KEY_PRINT_SCREEN, sizeof(__pyx_k_KEY_PRINT_SCREEN), 0, 0, 1, 1},
  {&__pyx_n_s_KEY_Q, __pyx_k_KEY_Q, sizeof(__pyx_k_KEY_Q), 0, 0, 1, 1},
  {&__pyx_n_s_KEY_R, __pyx_k_KEY_R, sizeof(__pyx_k_KEY_R), 0, 0, 1, 1},
  {&__pyx_n_s_KEY_RIGHT, __pyx_k_KEY_RIGHT, sizeof(__pyx_k_KEY_RIGHT), 0, 0, 1, 1},
  {&__pyx_n_s_KEY_RIGHT_ALT, __pyx_k_KEY_RIGHT_ALT, sizeof(__pyx_k_KEY_RIGHT_ALT), 0, 0, 1, 1},
  {&__pyx_n_s_KEY_RIGHT_BRACKET, __pyx_k_KEY_RIGHT_BRACKET, sizeof(__pyx_k_KEY_RIGHT_BRACKET), 0, 0, 1, 1},
  {&__pyx_n_s_KEY_RIGHT_CONTROL, __pyx_k_KEY_RIGHT_CONTROL, sizeof(__pyx_k_KEY_RIGHT_CONTROL), 0, 0, 1, 1},
  {&__pyx_n_s_KEY_RIGHT_SHIFT, __pyx_k_KEY_RIGHT_SHIFT, sizeof(__pyx_k_KEY_RIGHT_SHIFT), 0, 0, 1, 1},
  {&__pyx_n_s_KEY_RIGHT_SUPER, __pyx_k_KEY_RIGHT_SUPER, sizeof(__pyx_k_KEY_RIGHT_SUPER), 0, 0, 1, 1},
  {&__pyx_n_s_KEY_S, __pyx_k_KEY_S, sizeof(__pyx_k_KEY_S), 0, 0, 1, 1},
  {&__pyx_n_s_KEY_SCROLL_LOCK, __pyx_k_KEY_SCROLL_LOCK, sizeof(__pyx_k_KEY_SCROLL_LOCK), 0, 0, 1, 1},
  {&__pyx_n_s_KEY_SEMICOLON, __pyx_k_KEY_SEMICOLON, sizeof(__pyx_k_KEY_SEMICOLON), 0, 0, 1, 1},
  {&__pyx_n_s_KEY_SLASH, __pyx_k_KEY_SLASH, sizeof(__pyx_k_KEY_SLASH), 0, 0, 1, 1},
  {&__pyx_n_s_KEY_SPACE, __pyx_k_KEY_SPACE, sizeof(__pyx_k_KEY_SPACE), 0, 0, 1, 1},
  {&__pyx_n_s_KEY_T, __pyx_k_KEY_T, sizeof(__pyx_k_KEY_T), 0, 0, 1, 1},
  {&__pyx_n_s_KEY_TAB, __pyx_k_KEY_TAB, sizeof(__pyx_k_KEY_TAB), 0, 0, 1, 1},
  {&__pyx_n_s_KEY_U, __pyx_k_KEY_U, sizeof(__pyx_k_KEY_U), 0, 0, 1, 1},
  {&__pyx_n_s_KEY_UNKNOWN, __pyx_k_KEY_UNKNOWN, sizeof(__pyx_k_KEY_UNKNOWN), 0, 0, 1, 1},
  {&__pyx_n_s_KEY_UP, __pyx_k_KEY_UP, sizeof(__pyx_k_KEY_UP), 0, 0, 1, 1},
  {&__pyx_n_s_KEY_V, __pyx_k_KEY_V, sizeof(__pyx_k_KEY_V), 0, 0, 1, 1},
  {&__pyx_n_s_KEY_W, __pyx_k_KEY_W, sizeof(__pyx_k_KEY_W), 0, 0, 1, 1},
  {&__pyx_n_s_KEY_WORLD_1, __pyx_k_KEY_WORLD_1, sizeof(__pyx_k_KEY_WORLD_1), 0, 0, 1, 1},
  {&__pyx_n_s_KEY_WORLD_2, __pyx_k_KEY_WORLD_2, sizeof(__pyx_k_KEY_WORLD_2), 0, 0, 1, 1},
  {&__pyx_n_s_KEY_X, __pyx_k_KEY_X, sizeof(__pyx_k_KEY_X), 0, 0, 1, 1},
  {&__pyx_n_s_KEY_Y, __pyx_k_KEY_Y, sizeof(__pyx_k_KEY_Y), 0, 0, 1, 1},
  {&__pyx_n_s_KEY_Z, __pyx_k_KEY_Z, sizeof(__pyx_k_KEY_Z), 0, 0, 1, 1},
  {&__pyx_n_s_KeyError, __pyx_k_KeyError, sizeof(__pyx_k_KeyError), 0, 0, 1, 1},
  {&__pyx_n_s_LOGGER_LOG_BUFFER_SIZE, __pyx_k_LOGGER_LOG_BUFFER_SIZE, sizeof(__pyx_k_LOGGER_LOG_BUFFER_SIZE), 0, 0, 1, 1},
  {&__pyx_n_s_LOGGER_MAX_LOG_FILES, __pyx_k_LOGGER_MAX_LOG_FILES, sizeof(__pyx_k_LOGGER_MAX_LOG_FILES), 0, 0, 1, 1},
  {&__pyx_n_s_LOG_LEVEL_ERROR, __pyx_k_LOG_LEVEL_ERROR, sizeof(__pyx_k_LOG_LEVEL_ERROR), 0, 0, 1, 1},
  {&__pyx_n_s_LOG_LEVEL_INFO, __pyx_k_LOG_LEVEL_INFO, sizeof(__pyx_k_LOG_LEVEL_INFO), 0, 0, 1, 1},
  {&__pyx_n_s_LOG_LEVEL_INTERNAL, __pyx_k_LOG_LEVEL_INTERNAL, sizeof(__pyx_k_LOG_LEVEL_INTERNAL), 0, 0, 1, 1},
  {&__pyx_n_s_LOG_LEVEL_TRACE, __pyx_k_LOG_LEVEL_TRACE, sizeof(__pyx_k_LOG_LEVEL_TRACE), 0, 0, 1, 1},
  {&__pyx_n_s_LOG_LEVEL_WARN, __pyx_k_LOG_LEVEL_WARN, sizeof(__pyx_k_LOG_LEVEL_WARN), 0, 0, 1, 1},
  {&__pyx_n_s_MOUSE_BUTTON_1, __pyx_k_MOUSE_BUTTON_1, sizeof(__pyx_k_MOUSE_BUTTON_1), 0, 0, 1, 1},
  {&__pyx_n_s_MOUSE_BUTTON_2, __pyx_k_MOUSE_BUTTON_2, sizeof(__pyx_k_MOUSE_BUTTON_2), 0, 0, 1, 1},
  {&__pyx_n_s_MOUSE_BUTTON_3, __pyx_k_MOUSE_BUTTON_3, sizeof(__pyx_k_MOUSE_BUTTON_3), 0, 0, 1, 1},
  {&__pyx_n_s_MOUSE_BUTTON_4, __pyx_k_MOUSE_BUTTON_4, sizeof(__pyx_k_MOUSE_BUTTON_4), 0, 0, 1, 1},
  {&__pyx_n_s_MOUSE_BUTTON_5, __pyx_k_MOUSE_BUTTON_5, sizeof(__pyx_k_MOUSE_BUTTON_5), 0, 0, 1, 1},
  {&__pyx_n_s_MOUSE_BUTTON_6, __pyx_k_MOUSE_BUTTON_6, sizeof(__pyx_k_MOUSE_BUTTON_6), 0, 0, 1, 1},
  {&__pyx_n_s_MOUSE_BUTTON_7, __pyx_k_MOUSE_BUTTON_7, sizeof(__pyx_k_MOUSE_BUTTON_7), 0, 0, 1, 1},
  {&__pyx_n_s_MOUSE_BUTTON_8, __pyx_k_MOUSE_BUTTON_8, sizeof(__pyx_k_MOUSE_BUTTON_8), 0, 0, 1, 1},
  {&__pyx_n_s_MOUSE_BUTTON_LAST, __pyx_k_MOUSE_BUTTON_LAST, sizeof(__pyx_k_MOUSE_BUTTON_LAST), 0, 0, 1, 1},
  {&__pyx_n_s_MOUSE_BUTTON_LEFT, __pyx_k_MOUSE_BUTTON_LEFT, sizeof(__pyx_k_MOUSE_BUTTON_LEFT), 0, 0, 1, 1},
  {&__pyx_n_s_MOUSE_BUTTON_MIDDLE, __pyx_k_MOUSE_BUTTON_MIDDLE, sizeof(__pyx_k_MOUSE_BUTTON_MIDDLE), 0, 0, 1, 1},
  {&__pyx_n_s_MOUSE_BUTTON_RIGHT, __pyx_k_MOUSE_BUTTON_RIGHT, sizeof(__pyx_k_MOUSE_BUTTON_RIGHT), 0, 0, 1, 1},
  {&__pyx_n_s_MemoryError, __pyx_k_MemoryError, sizeof(__pyx_k_MemoryError), 0, 0, 1, 1},
  {&__pyx_kp_s_No_value_specified_for_struct_at, __pyx_k_No_value_specified_for_struct_at, sizeof(__pyx_k_No_value_specified_for_struct_at), 0, 0, 1, 0},
  {&__pyx_kp_s_No_value_specified_for_struct_at_2, __pyx_k_No_value_specified_for_struct_at_2, sizeof(__pyx_k_No_value_specified_for_struct_at_2), 0, 0, 1, 0},
  {&__pyx_kp_s_No_value_specified_for_struct_at_3, __pyx_k_No_value_specified_for_struct_at_3, sizeof(__pyx_k_No_value_specified_for_struct_at_3), 0, 0, 1, 0},
  {&__pyx_kp_s_No_value_specified_for_struct_at_4, __pyx_k_No_value_specified_for_struct_at_4, sizeof(__pyx_k_No_value_specified_for_struct_at_4), 0, 0, 1, 0},
  {&__pyx_kp_s_No_value_specified_for_struct_at_5, __pyx_k_No_value_specified_for_struct_at_5, sizeof(__pyx_k_No_value_specified_for_struct_at_5), 0, 0, 1, 0},
  {&__pyx_kp_s_No_value_specified_for_struct_at_6, __pyx_k_No_value_specified_for_struct_at_6, sizeof(__pyx_k_No_value_specified_for_struct_at_6), 0, 0, 1, 0},
  {&__pyx_kp_s_No_value_specified_for_struct_at_7, __pyx_k_No_value_specified_for_struct_at_7, sizeof(__pyx_k_No_value_specified_for_struct_at_7), 0, 0, 1, 0},
  {&__pyx_kp_s_No_value_specified_for_struct_at_8, __pyx_k_No_value_specified_for_struct_at_8, sizeof(__pyx_k_No_value_specified_for_struct_at_8), 0, 0, 1, 0},
  {&__pyx_kp_s_No_value_specified_for_struct_at_9, __pyx_k_No_value_specified_for_struct_at_9, sizeof(__pyx_k_No_value_specified_for_struct_at_9), 0, 0, 1, 0},
  {&__pyx_n_s_PI, __pyx_k_PI, sizeof(__pyx_k_PI), 0, 0, 1, 1},
  {&__pyx_n_s_PIL_Image, __pyx_k_PIL_Image, sizeof(__pyx_k_PIL_Image), 0, 0, 1, 1},
  {&__pyx_n_s_PI_2, __pyx_k_PI_2, sizeof(__pyx_k_PI_2), 0, 0, 1, 1},
  {&__pyx_n_s_PRESS, __pyx_k_PRESS, sizeof(__pyx_k_PRESS), 0, 0, 1, 1},
  {&__pyx_kp_s_Pickling_of_struct_members_such, __pyx_k_Pickling_of_struct_members_such, sizeof(__pyx_k_Pickling_of_struct_members_such), 0, 0, 1, 0},
  {&__pyx_kp_s_Pickling_of_struct_members_such_2, __pyx_k_Pickling_of_struct_members_such_2, sizeof(__pyx_k_Pickling_of_struct_members_such_2), 0, 0, 1, 0},
  {&__pyx_kp_s_Pickling_of_struct_members_such_3, __pyx_k_Pickling_of_struct_members_such_3, sizeof(__pyx_k_Pickling_of_struct_members_such_3), 0, 0, 1, 0},
  {&__pyx_kp_s_Pickling_of_struct_members_such_4, __pyx_k_Pickling_of_struct_members_such_4, sizeof(__pyx_k_Pickling_of_struct_members_such_4), 0, 0, 1, 0},
  {&__pyx_kp_s_Pickling_of_struct_members_such_5, __pyx_k_Pickling_of_struct_members_such_5, sizeof(__pyx_k_Pickling_of_struct_members_such_5), 0, 0, 1, 0},
  {&__pyx_kp_s_Pickling_of_struct_members_such_6, __pyx_k_Pickling_of_struct_members_such_6, sizeof(__pyx_k_Pickling_of_struct_members_such_6), 0, 0, 1, 0},
  {&__pyx_n_s_RELEASE, __pyx_k_RELEASE, sizeof(__pyx_k_RELEASE), 0, 0, 1, 1},
  {&__pyx_n_s_REPEAT, __pyx_k_REPEAT, sizeof(__pyx_k_REPEAT), 0, 0, 1, 1},
  {&__pyx_n_s_RuntimeError, __pyx_k_RuntimeError, sizeof(__pyx_k_RuntimeError), 0, 0, 1, 1},
  {&__pyx_n_s_SQRT2, __pyx_k_SQRT2, sizeof(__pyx_k_SQRT2), 0, 0, 1, 1},
  {&__pyx_n_s_SQRT3, __pyx_k_SQRT3, sizeof(__pyx_k_SQRT3), 0, 0, 1, 1},
  {&__pyx_n_s_SQRT5, __pyx_k_SQRT5, sizeof(__pyx_k_SQRT5), 0, 0, 1, 1},
  {&__pyx_n_s_SQRT6, __pyx_k_SQRT6, sizeof(__pyx_k_SQRT6), 0, 0, 1, 1},
  {&__pyx_n_s_SQRT7, __pyx_k_SQRT7, sizeof(__pyx_k_SQRT7), 0, 0, 1, 1},
  {&__pyx_n_s_SQRT8, __pyx_k_SQRT8, sizeof(__pyx_k_SQRT8), 0, 0, 1, 1},
  {&__pyx_n_s_TWO_PI, __pyx_k_TWO_PI, sizeof(__pyx_k_TWO_PI), 0, 0, 1, 1},
  {&__pyx_kp_s_The_number_of_indices_is_greater, __pyx_k_The_number_of_indices_is_greater, sizeof(__pyx_k_The_number_of_indices_is_greater), 0, 0, 1, 0},
  {&__pyx_n_s_TypeError, __pyx_k_TypeError, sizeof(__pyx_k_TypeError), 0, 0, 1, 1},
  {&__pyx_n_s_ValueError, __pyx_k_ValueError, sizeof(__pyx_k_ValueError), 0, 0, 1, 1},
  {&__pyx_n_s_WINDOW_TABLE, __pyx_k_WINDOW_TABLE, sizeof(__pyx_k_WINDOW_TABLE), 0, 0, 1, 1},
  {&__pyx_kp_s__13, __pyx_k__13, sizeof(__pyx_k__13), 0, 0, 1, 0},
  {&__pyx_kp_s__14, __pyx_k__14, sizeof(__pyx_k__14), 0, 0, 1, 0},
  {&__pyx_n_s__2, __pyx_k__2, sizeof(__pyx_k__2), 0, 0, 1, 1},
  {&__pyx_kp_u__3, __pyx_k__3, sizeof(__pyx_k__3), 0, 1, 0, 0},
  {&__pyx_kp_s__4, __pyx_k__4, sizeof(__pyx_k__4), 0, 0, 1, 0},
  {&__pyx_kp_u__4, __pyx_k__4, sizeof(__pyx_k__4), 0, 1, 0, 0},
  {&__pyx_n_s_a, __pyx_k_a, sizeof(__pyx_k_a), 0, 0, 1, 1},
  {&__pyx_n_s_angle, __pyx_k_angle, sizeof(__pyx_k_angle), 0, 0, 1, 1},
  {&__pyx_n_s_aspect, __pyx_k_aspect, sizeof(__pyx_k_aspect), 0, 0, 1, 1},
  {&__pyx_n_s_axis, __pyx_k_axis, sizeof(__pyx_k_axis), 0, 0, 1, 1},
  {&__pyx_n_s_b, __pyx_k_b, sizeof(__pyx_k_b), 0, 0, 1, 1},
  {&__pyx_n_s_bone_ids, __pyx_k_bone_ids, sizeof(__pyx_k_bone_ids), 0, 0, 1, 1},
  {&__pyx_n_s_bone_wieghts, __pyx_k_bone_wieghts, sizeof(__pyx_k_bone_wieghts), 0, 0, 1, 1},
  {&__pyx_n_s_bottom, __pyx_k_bottom, sizeof(__pyx_k_bottom), 0, 0, 1, 1},
  {&__pyx_n_s_buffer, __pyx_k_buffer, sizeof(__pyx_k_buffer), 0, 0, 1, 1},
  {&__pyx_n_s_c, __pyx_k_c, sizeof(__pyx_k_c), 0, 0, 1, 1},
  {&__pyx_n_s_c_mesh, __pyx_k_c_mesh, sizeof(__pyx_k_c_mesh), 0, 0, 1, 1},
  {&__pyx_n_s_c_probabilities, __pyx_k_c_probabilities, sizeof(__pyx_k_c_probabilities), 0, 0, 1, 1},
  {&__pyx_n_s_c_vertex, __pyx_k_c_vertex, sizeof(__pyx_k_c_vertex), 0, 0, 1, 1},
  {&__pyx_n_s_cgl, __pyx_k_cgl, sizeof(__pyx_k_cgl), 0, 0, 1, 1},
  {&__pyx_kp_s_cgl_wrapper_pyx, __pyx_k_cgl_wrapper_pyx, sizeof(__pyx_k_cgl_wrapper_pyx), 0, 0, 1, 0},
  {&__pyx_n_s_channels, __pyx_k_channels, sizeof(__pyx_k_channels), 0, 0, 1, 1},
  {&__pyx_n_s_cline_in_traceback, __pyx_k_cline_in_traceback, sizeof(__pyx_k_cline_in_traceback), 0, 0, 1, 1},
  {&__pyx_n_s_close_callback, __pyx_k_close_callback, sizeof(__pyx_k_close_callback), 0, 0, 1, 1},
  {&__pyx_n_s_color, __pyx_k_color, sizeof(__pyx_k_color), 0, 0, 1, 1},
  {&__pyx_n_s_complete_char, __pyx_k_complete_char, sizeof(__pyx_k_complete_char), 0, 0, 1, 1},
  {&__pyx_n_s_console_progress_bar, __pyx_k_console_progress_bar, sizeof(__pyx_k_console_progress_bar), 0, 0, 1, 1},
  {&__pyx_n_s_console_set_color, __pyx_k_console_set_color, sizeof(__pyx_k_console_set_color), 0, 0, 1, 1},
  {&__pyx_n_s_copy, __pyx_k_copy, sizeof(__pyx_k_copy), 0, 0, 1, 1},
  {&__pyx_n_s_d, __pyx_k_d, sizeof(__pyx_k_d), 0, 0, 1, 1},
  {&__pyx_n_s_data, __pyx_k_data, sizeof(__pyx_k_data), 0, 0, 1, 1},
  {&__pyx_n_s_decorated, __pyx_k_decorated, sizeof(__pyx_k_decorated), 0, 0, 1, 1},
  {&__pyx_n_s_deepcopy, __pyx_k_deepcopy, sizeof(__pyx_k_deepcopy), 0, 0, 1, 1},
  {&__pyx_n_s_deg, __pyx_k_deg, sizeof(__pyx_k_deg), 0, 0, 1, 1},
  {&__pyx_n_s_deg_to_rad, __pyx_k_deg_to_rad, sizeof(__pyx_k_deg_to_rad), 0, 0, 1, 1},
  {&__pyx_n_s_destroy, __pyx_k_destroy, sizeof(__pyx_k_destroy), 0, 0, 1, 1},
  {&__pyx_n_s_drag_n_drop_callback, __pyx_k_drag_n_drop_callback, sizeof(__pyx_k_drag_n_drop_callback), 0, 0, 1, 1},
  {&__pyx_n_s_enable_console_logging, __pyx_k_enable_console_logging, sizeof(__pyx_k_enable_console_logging), 0, 0, 1, 1},
  {&__pyx_n_s_encode, __pyx_k_encode, sizeof(__pyx_k_encode), 0, 0, 1, 1},
  {&__pyx_n_s_eye, __pyx_k_eye, sizeof(__pyx_k_eye), 0, 0, 1, 1},
  {&__pyx_n_s_far, __pyx_k_far, sizeof(__pyx_k_far), 0, 0, 1, 1},
  {&__pyx_n_s_float_cubic_lerp, __pyx_k_float_cubic_lerp, sizeof(__pyx_k_float_cubic_lerp), 0, 0, 1, 1},
  {&__pyx_n_s_float_lerp, __pyx_k_float_lerp, sizeof(__pyx_k_float_lerp), 0, 0, 1, 1},
  {&__pyx_n_s_float_quadratic_lerp, __pyx_k_float_quadratic_lerp, sizeof(__pyx_k_float_quadratic_lerp), 0, 0, 1, 1},
  {&__pyx_n_s_format, __pyx_k_format, sizeof(__pyx_k_format), 0, 0, 1, 1},
  {&__pyx_n_s_fov, __pyx_k_fov, sizeof(__pyx_k_fov), 0, 0, 1, 1},
  {&__pyx_n_s_framebuffer_size_callback, __pyx_k_framebuffer_size_callback, sizeof(__pyx_k_framebuffer_size_callback), 0, 0, 1, 1},
  {&__pyx_n_s_free, __pyx_k_free, sizeof(__pyx_k_free), 0, 0, 1, 1},
  {&__pyx_n_s_get_id, __pyx_k_get_id, sizeof(__pyx_k_get_id), 0, 0, 1, 1},
  {&__pyx_n_s_get_position, __pyx_k_get_position, sizeof(__pyx_k_get_position), 0, 0, 1, 1},
  {&__pyx_n_s_get_size, __pyx_k_get_size, sizeof(__pyx_k_get_size), 0, 0, 1, 1},
  {&__pyx_n_s_getstate, __pyx_k_getstate, sizeof(__pyx_k_getstate), 0, 0, 1, 1},
  {&__pyx_n_s_height, __pyx_k_height, sizeof(__pyx_k_height), 0, 0, 1, 1},
  {&__pyx_n_s_i, __pyx_k_i, sizeof(__pyx_k_i), 0, 0, 1, 1},
  {&__pyx_kp_u_image, __pyx_k_image, sizeof(__pyx_k_image), 0, 1, 0, 0},
  {&__pyx_n_s_image_2, __pyx_k_image_2, sizeof(__pyx_k_image_2), 0, 0, 1, 1},
  {&__pyx_n_s_import, __pyx_k_import, sizeof(__pyx_k_import), 0, 0, 1, 1},
  {&__pyx_n_s_incomplete_char, __pyx_k_incomplete_char, sizeof(__pyx_k_incomplete_char), 0, 0, 1, 1},
  {&__pyx_n_s_index_count, __pyx_k_index_count, sizeof(__pyx_k_index_count), 0, 0, 1, 1},
  {&__pyx_n_s_index_count_used, __pyx_k_index_count_used, sizeof(__pyx_k_index_count_used), 0, 0, 1, 1},
  {&__pyx_n_s_init, __pyx_k_init, sizeof(__pyx_k_init), 0, 0, 1, 1},
  {&__pyx_kp_u_ivec4, __pyx_k_ivec4, sizeof(__pyx_k_ivec4), 0, 1, 0, 0},
  {&__pyx_n_s_ivec4_2, __pyx_k_ivec4_2, sizeof(__pyx_k_ivec4_2), 0, 0, 1, 1},
  {&__pyx_n_s_key_callback, __pyx_k_key_callback, sizeof(__pyx_k_key_callback), 0, 0, 1, 1},
  {&__pyx_n_s_l, __pyx_k_l, sizeof(__pyx_k_l), 0, 0, 1, 1},
  {&__pyx_n_s_l_obj, __pyx_k_l_obj, sizeof(__pyx_k_l_obj), 0, 0, 1, 1},
  {&__pyx_n_s_left, __pyx_k_left, sizeof(__pyx_k_left), 0, 0, 1, 1},
  {&__pyx_n_s_length, __pyx_k_length, sizeof(__pyx_k_length), 0, 0, 1, 1},
  {&__pyx_n_s_length_squared, __pyx_k_length_squared, sizeof(__pyx_k_length_squared), 0, 0, 1, 1},
  {&__pyx_n_s_level, __pyx_k_level, sizeof(__pyx_k_level), 0, 0, 1, 1},
  {&__pyx_n_s_log_error, __pyx_k_log_error, sizeof(__pyx_k_log_error), 0, 0, 1, 1},
  {&__pyx_n_s_log_format, __pyx_k_log_format, sizeof(__pyx_k_log_format), 0, 0, 1, 1},
  {&__pyx_n_s_log_info, __pyx_k_log_info, sizeof(__pyx_k_log_info), 0, 0, 1, 1},
  {&__pyx_n_s_log_internal, __pyx_k_log_internal, sizeof(__pyx_k_log_internal), 0, 0, 1, 1},
  {&__pyx_n_s_log_trace, __pyx_k_log_trace, sizeof(__pyx_k_log_trace), 0, 0, 1, 1},
  {&__pyx_n_s_log_warn, __pyx_k_log_warn, sizeof(__pyx_k_log_warn), 0, 0, 1, 1},
  {&__pyx_n_s_logger_attach_log_file, __pyx_k_logger_attach_log_file, sizeof(__pyx_k_logger_attach_log_file), 0, 0, 1, 1},
  {&__pyx_n_s_logger_detach_log_file, __pyx_k_logger_detach_log_file, sizeof(__pyx_k_logger_detach_log_file), 0, 0, 1, 1},
  {&__pyx_n_s_logger_disable_console_logging, __pyx_k_logger_disable_console_logging, sizeof(__pyx_k_logger_disable_console_logging), 0, 0, 1, 1},
  {&__pyx_n_s_logger_enable_console_logging, __pyx_k_logger_enable_console_logging, sizeof(__pyx_k_logger_enable_console_logging), 0, 0, 1, 1},
  {&__pyx_n_s_logger_flush, __pyx_k_logger_flush, sizeof(__pyx_k_logger_flush), 0, 0, 1, 1},
  {&__pyx_n_s_logger_init, __pyx_k_logger_init, sizeof(__pyx_k_logger_init), 0, 0, 1, 1},
  {&__pyx_n_s_logger_log, __pyx_k_logger_log, sizeof(__pyx_k_logger_log), 0, 0, 1, 1},
  {&__pyx_n_s_logger_shutdown, __pyx_k_logger_shutdown, sizeof(__pyx_k_logger_shutdown), 0, 0, 1, 1},
  {&__pyx_n_s_m, __pyx_k_m, sizeof(__pyx_k_m), 0, 0, 1, 1},
  {&__pyx_n_s_main, __pyx_k_main, sizeof(__pyx_k_main), 0, 0, 1, 1},
  {&__pyx_n_s_mat4, __pyx_k_mat4, sizeof(__pyx_k_mat4), 0, 0, 1, 1},
  {&__pyx_n_s_mat4_adjoint, __pyx_k_mat4_adjoint, sizeof(__pyx_k_mat4_adjoint), 0, 0, 1, 1},
  {&__pyx_n_s_mat4_decompose_lu, __pyx_k_mat4_decompose_lu, sizeof(__pyx_k_mat4_decompose_lu), 0, 0, 1, 1},
  {&__pyx_n_s_mat4_det, __pyx_k_mat4_det, sizeof(__pyx_k_mat4_det), 0, 0, 1, 1},
  {&__pyx_n_s_mat4_det_by_gauss, __pyx_k_mat4_det_by_gauss, sizeof(__pyx_k_mat4_det_by_gauss), 0, 0, 1, 1},
  {&__pyx_n_s_mat4_det_by_lu, __pyx_k_mat4_det_by_lu, sizeof(__pyx_k_mat4_det_by_lu), 0, 0, 1, 1},
  {&__pyx_n_s_mat4_gauss_elim, __pyx_k_mat4_gauss_elim, sizeof(__pyx_k_mat4_gauss_elim), 0, 0, 1, 1},
  {&__pyx_n_s_mat4_identity, __pyx_k_mat4_identity, sizeof(__pyx_k_mat4_identity), 0, 0, 1, 1},
  {&__pyx_n_s_mat4_inverse, __pyx_k_mat4_inverse, sizeof(__pyx_k_mat4_inverse), 0, 0, 1, 1},
  {&__pyx_n_s_mat4_lerp, __pyx_k_mat4_lerp, sizeof(__pyx_k_mat4_lerp), 0, 0, 1, 1},
  {&__pyx_n_s_mat4_look_at, __pyx_k_mat4_look_at, sizeof(__pyx_k_mat4_look_at), 0, 0, 1, 1},
  {&__pyx_n_s_mat4_mul, __pyx_k_mat4_mul, sizeof(__pyx_k_mat4_mul), 0, 0, 1, 1},
  {&__pyx_n_s_mat4_mul_vec4, __pyx_k_mat4_mul_vec4, sizeof(__pyx_k_mat4_mul_vec4), 0, 0, 1, 1},
  {&__pyx_n_s_mat4_orthographic, __pyx_k_mat4_orthographic, sizeof(__pyx_k_mat4_orthographic), 0, 0, 1, 1},
  {&__pyx_n_s_mat4_perspective, __pyx_k_mat4_perspective, sizeof(__pyx_k_mat4_perspective), 0, 0, 1, 1},
  {&__pyx_n_s_mat4_rank, __pyx_k_mat4_rank, sizeof(__pyx_k_mat4_rank), 0, 0, 1, 1},
  {&__pyx_n_s_mat4_rotate_about_axis, __pyx_k_mat4_rotate_about_axis, sizeof(__pyx_k_mat4_rotate_about_axis), 0, 0, 1, 1},
  {&__pyx_n_s_mat4_rotate_x, __pyx_k_mat4_rotate_x, sizeof(__pyx_k_mat4_rotate_x), 0, 0, 1, 1},
  {&__pyx_n_s_mat4_rotate_y, __pyx_k_mat4_rotate_y, sizeof(__pyx_k_mat4_rotate_y), 0, 0, 1, 1},
  {&__pyx_n_s_mat4_rotate_z, __pyx_k_mat4_rotate_z, sizeof(__pyx_k_mat4_rotate_z), 0, 0, 1, 1},
  {&__pyx_n_s_mat4_scale, __pyx_k_mat4_scale, sizeof(__pyx_k_mat4_scale), 0, 0, 1, 1},
  {&__pyx_n_s_mat4_trace, __pyx_k_mat4_trace, sizeof(__pyx_k_mat4_trace), 0, 0, 1, 1},
  {&__pyx_n_s_mat4_translate, __pyx_k_mat4_translate, sizeof(__pyx_k_mat4_translate), 0, 0, 1, 1},
  {&__pyx_n_s_mat4_transpose, __pyx_k_mat4_transpose, sizeof(__pyx_k_mat4_transpose), 0, 0, 1, 1},
  {&__pyx_n_s_mat4_zero, __pyx_k_mat4_zero, sizeof(__pyx_k_mat4_zero), 0, 0, 1, 1},
  {&__pyx_kp_s_mat4x4, __pyx_k_mat4x4, sizeof(__pyx_k_mat4x4), 0, 0, 1, 0},
  {&__pyx_kp_u_mesh_cpu, __pyx_k_mesh_cpu, sizeof(__pyx_k_mesh_cpu), 0, 1, 0, 0},
  {&__pyx_n_s_mesh_cpu_2, __pyx_k_mesh_cpu_2, sizeof(__pyx_k_mesh_cpu_2), 0, 0, 1, 1},
  {&__pyx_kp_u_mesh_vertex, __pyx_k_mesh_vertex, sizeof(__pyx_k_mesh_vertex), 0, 1, 0, 0},
  {&__pyx_n_s_mesh_vertex_2, __pyx_k_mesh_vertex_2, sizeof(__pyx_k_mesh_vertex_2), 0, 0, 1, 1},
  {&__pyx_n_s_milliseconds, __pyx_k_milliseconds, sizeof(__pyx_k_milliseconds), 0, 0, 1, 1},
  {&__pyx_n_s_mouse_button_callback, __pyx_k_mouse_button_callback, sizeof(__pyx_k_mouse_button_callback), 0, 0, 1, 1},
  {&__pyx_n_s_mouse_position_callback, __pyx_k_mouse_position_callback, sizeof(__pyx_k_mouse_position_callback), 0, 0, 1, 1},
  {&__pyx_n_s_mouse_scroll_callback, __pyx_k_mouse_scroll_callback, sizeof(__pyx_k_mouse_scroll_callback), 0, 0, 1, 1},
  {&__pyx_n_s_n, __pyx_k_n, sizeof(__pyx_k_n), 0, 0, 1, 1},
  {&__pyx_n_s_name, __pyx_k_name, sizeof(__pyx_k_name), 0, 0, 1, 1},
  {&__pyx_n_s_near, __pyx_k_near, sizeof(__pyx_k_near), 0, 0, 1, 1},
  {&__pyx_kp_s_no_default___reduce___due_to_non, __pyx_k_no_default___reduce___due_to_non, sizeof(__pyx_k_no_default___reduce___due_to_non), 0, 0, 1, 0},
  {&__pyx_n_s_normal, __pyx_k_normal, sizeof(__pyx_k_normal), 0, 0, 1, 1},
  {&__pyx_n_s_obj, __pyx_k_obj, sizeof(__pyx_k_obj), 0, 0, 1, 1},
  {&__pyx_n_s_open, __pyx_k_open, sizeof(__pyx_k_open), 0, 0, 1, 1},
  {&__pyx_n_s_path, __pyx_k_path, sizeof(__pyx_k_path), 0, 0, 1, 1},
  {&__pyx_n_s_pop, __pyx_k_pop, sizeof(__pyx_k_pop), 0, 0, 1, 1},
  {&__pyx_n_s_position, __pyx_k_position, sizeof(__pyx_k_position), 0, 0, 1, 1},
  {&__pyx_n_s_prefix, __pyx_k_prefix, sizeof(__pyx_k_prefix), 0, 0, 1, 1},
  {&__pyx_n_s_printf_blue, __pyx_k_printf_blue, sizeof(__pyx_k_printf_blue), 0, 0, 1, 1},
  {&__pyx_n_s_printf_gray, __pyx_k_printf_gray, sizeof(__pyx_k_printf_gray), 0, 0, 1, 1},
  {&__pyx_n_s_printf_green, __pyx_k_printf_green, sizeof(__pyx_k_printf_green), 0, 0, 1, 1},
  {&__pyx_n_s_printf_red, __pyx_k_printf_red, sizeof(__pyx_k_printf_red), 0, 0, 1, 1},
  {&__pyx_n_s_probabilities, __pyx_k_probabilities, sizeof(__pyx_k_probabilities), 0, 0, 1, 1},
  {&__pyx_n_s_progress, __pyx_k_progress, sizeof(__pyx_k_progress), 0, 0, 1, 1},
  {&__pyx_n_s_ptr, __pyx_k_ptr, sizeof(__pyx_k_ptr), 0, 0, 1, 1},
  {&__pyx_n_s_pyx_vtable, __pyx_k_pyx_vtable, sizeof(__pyx_k_pyx_vtable), 0, 0, 1, 1},
  {&__pyx_n_s_rad, __pyx_k_rad, sizeof(__pyx_k_rad), 0, 0, 1, 1},
  {&__pyx_n_s_rad_to_deg, __pyx_k_rad_to_deg, sizeof(__pyx_k_rad_to_deg), 0, 0, 1, 1},
  {&__pyx_n_s_range, __pyx_k_range, sizeof(__pyx_k_range), 0, 0, 1, 1},
  {&__pyx_n_s_reduce, __pyx_k_reduce, sizeof(__pyx_k_reduce), 0, 0, 1, 1},
  {&__pyx_n_s_reduce_cython, __pyx_k_reduce_cython, sizeof(__pyx_k_reduce_cython), 0, 0, 1, 1},
  {&__pyx_n_s_reduce_ex, __pyx_k_reduce_ex, sizeof(__pyx_k_reduce_ex), 0, 0, 1, 1},
  {&__pyx_n_s_result, __pyx_k_result, sizeof(__pyx_k_result), 0, 0, 1, 1},
  {&__pyx_n_s_right, __pyx_k_right, sizeof(__pyx_k_right), 0, 0, 1, 1},
  {&__pyx_n_s_rotation, __pyx_k_rotation, sizeof(__pyx_k_rotation), 0, 0, 1, 1},
  {&__pyx_kp_u_rotation_2, __pyx_k_rotation_2, sizeof(__pyx_k_rotation_2), 0, 1, 0, 0},
  {&__pyx_n_s_scale, __pyx_k_scale, sizeof(__pyx_k_scale), 0, 0, 1, 1},
  {&__pyx_kp_u_scale_2, __pyx_k_scale_2, sizeof(__pyx_k_scale_2), 0, 1, 0, 0},
  {&__pyx_n_s_seed, __pyx_k_seed, sizeof(__pyx_k_seed), 0, 0, 1, 1},
  {&__pyx_kp_s_self_c_image_cannot_be_converted, __pyx_k_self_c_image_cannot_be_converted, sizeof(__pyx_k_self_c_image_cannot_be_converted), 0, 0, 1, 0},
  {&__pyx_kp_s_self_c_mesh_cannot_be_converted, __pyx_k_self_c_mesh_cannot_be_converted, sizeof(__pyx_k_self_c_mesh_cannot_be_converted), 0, 0, 1, 0},
  {&__pyx_kp_s_self_c_window_cannot_be_converte, __pyx_k_self_c_window_cannot_be_converte, sizeof(__pyx_k_self_c_window_cannot_be_converte), 0, 0, 1, 0},
  {&__pyx_n_s_setstate, __pyx_k_setstate, sizeof(__pyx_k_setstate), 0, 0, 1, 1},
  {&__pyx_n_s_setstate_cython, __pyx_k_setstate_cython, sizeof(__pyx_k_setstate_cython), 0, 0, 1, 1},
  {&__pyx_n_s_shutdown, __pyx_k_shutdown, sizeof(__pyx_k_shutdown), 0, 0, 1, 1},
  {&__pyx_n_s_size, __pyx_k_size, sizeof(__pyx_k_size), 0, 0, 1, 1},
  {&__pyx_n_s_suffix, __pyx_k_suffix, sizeof(__pyx_k_suffix), 0, 0, 1, 1},
  {&__pyx_n_s_t, __pyx_k_t, sizeof(__pyx_k_t), 0, 0, 1, 1},
  {&__pyx_n_s_target, __pyx_k_target, sizeof(__pyx_k_target), 0, 0, 1, 1},
  {&__pyx_n_s_test, __pyx_k_test, sizeof(__pyx_k_test), 0, 0, 1, 1},
  {&__pyx_n_s_texture_coordinates, __pyx_k_texture_coordinates, sizeof(__pyx_k_texture_coordinates), 0, 0, 1, 1},
  {&__pyx_n_s_theta, __pyx_k_theta, sizeof(__pyx_k_theta), 0, 0, 1, 1},
  {&__pyx_n_s_title, __pyx_k_title, sizeof(__pyx_k_title), 0, 0, 1, 1},
  {&__pyx_n_s_tobytes, __pyx_k_tobytes, sizeof(__pyx_k_tobytes), 0, 0, 1, 1},
  {&__pyx_n_s_top, __pyx_k_top, sizeof(__pyx_k_top), 0, 0, 1, 1},
  {&__pyx_n_s_transform, __pyx_k_transform, sizeof(__pyx_k_transform), 0, 0, 1, 1},
  {&__pyx_kp_u_transform_position, __pyx_k_transform_position, sizeof(__pyx_k_transform_position), 0, 1, 0, 0},
  {&__pyx_n_s_typing, __pyx_k_typing, sizeof(__pyx_k_typing), 0, 0, 1, 1},
  {&__pyx_n_s_u, __pyx_k_u, sizeof(__pyx_k_u), 0, 0, 1, 1},
  {&__pyx_n_s_u_obj, __pyx_k_u_obj, sizeof(__pyx_k_u_obj), 0, 0, 1, 1},
  {&__pyx_n_s_up, __pyx_k_up, sizeof(__pyx_k_up), 0, 0, 1, 1},
  {&__pyx_kp_s_utf_8, __pyx_k_utf_8, sizeof(__pyx_k_utf_8), 0, 0, 1, 0},
  {&__pyx_n_s_utils_append_file, __pyx_k_utils_append_file, sizeof(__pyx_k_utils_append_file), 0, 0, 1, 1},
  {&__pyx_n_s_utils_big_endian_to_current, __pyx_k_utils_big_endian_to_current, sizeof(__pyx_k_utils_big_endian_to_current), 0, 0, 1, 1},
  {&__pyx_n_s_utils_crc32, __pyx_k_utils_crc32, sizeof(__pyx_k_utils_crc32), 0, 0, 1, 1},
  {&__pyx_n_s_utils_crc64, __pyx_k_utils_crc64, sizeof(__pyx_k_utils_crc64), 0, 0, 1, 1},
  {&__pyx_n_s_utils_fast_rand, __pyx_k_utils_fast_rand, sizeof(__pyx_k_utils_fast_rand), 0, 0, 1, 1},
  {&__pyx_n_s_utils_fast_srand, __pyx_k_utils_fast_srand, sizeof(__pyx_k_utils_fast_srand), 0, 0, 1, 1},
  {&__pyx_n_s_utils_get_file_size, __pyx_k_utils_get_file_size, sizeof(__pyx_k_utils_get_file_size), 0, 0, 1, 1},
  {&__pyx_n_s_utils_get_random_with_probabilit, __pyx_k_utils_get_random_with_probabilit, sizeof(__pyx_k_utils_get_random_with_probabilit), 0, 0, 1, 1},
  {&__pyx_n_s_utils_get_time, __pyx_k_utils_get_time, sizeof(__pyx_k_utils_get_time), 0, 0, 1, 1},
  {&__pyx_n_s_utils_get_timestamp, __pyx_k_utils_get_timestamp, sizeof(__pyx_k_utils_get_timestamp), 0, 0, 1, 1},
  {&__pyx_n_s_utils_is_big_endian, __pyx_k_utils_is_big_endian, sizeof(__pyx_k_utils_is_big_endian), 0, 0, 1, 1},
  {&__pyx_n_s_utils_is_little_endian, __pyx_k_utils_is_little_endian, sizeof(__pyx_k_utils_is_little_endian), 0, 0, 1, 1},
  {&__pyx_n_s_utils_little_endian_to_current, __pyx_k_utils_little_endian_to_current, sizeof(__pyx_k_utils_little_endian_to_current), 0, 0, 1, 1},
  {&__pyx_n_s_utils_rand31, __pyx_k_utils_rand31, sizeof(__pyx_k_utils_rand31), 0, 0, 1, 1},
  {&__pyx_n_s_utils_read_file, __pyx_k_utils_read_file, sizeof(__pyx_k_utils_read_file), 0, 0, 1, 1},
  {&__pyx_n_s_utils_relu, __pyx_k_utils_relu, sizeof(__pyx_k_utils_relu), 0, 0, 1, 1},
  {&__pyx_n_s_utils_relu_derivative, __pyx_k_utils_relu_derivative, sizeof(__pyx_k_utils_relu_derivative), 0, 0, 1, 1},
  {&__pyx_n_s_utils_relu_leaky, __pyx_k_utils_relu_leaky, sizeof(__pyx_k_utils_relu_leaky), 0, 0, 1, 1},
  {&__pyx_n_s_utils_relu_leaky_derivative, __pyx_k_utils_relu_leaky_derivative, sizeof(__pyx_k_utils_relu_leaky_derivative), 0, 0, 1, 1},
  {&__pyx_n_s_utils_relu_smooth, __pyx_k_utils_relu_smooth, sizeof(__pyx_k_utils_relu_smooth), 0, 0, 1, 1},
  {&__pyx_n_s_utils_relu_smooth_derivative, __pyx_k_utils_relu_smooth_derivative, sizeof(__pyx_k_utils_relu_smooth_derivative), 0, 0, 1, 1},
  {&__pyx_n_s_utils_reverse_bytes, __pyx_k_utils_reverse_bytes, sizeof(__pyx_k_utils_reverse_bytes), 0, 0, 1, 1},
  {&__pyx_n_s_utils_rot13, __pyx_k_utils_rot13, sizeof(__pyx_k_utils_rot13), 0, 0, 1, 1},
  {&__pyx_n_s_utils_sigmoid, __pyx_k_utils_sigmoid, sizeof(__pyx_k_utils_sigmoid), 0, 0, 1, 1},
  {&__pyx_n_s_utils_sigmoid_derivative, __pyx_k_utils_sigmoid_derivative, sizeof(__pyx_k_utils_sigmoid_derivative), 0, 0, 1, 1},
  {&__pyx_n_s_utils_sleep, __pyx_k_utils_sleep, sizeof(__pyx_k_utils_sleep), 0, 0, 1, 1},
  {&__pyx_n_s_utils_srand31, __pyx_k_utils_srand31, sizeof(__pyx_k_utils_srand31), 0, 0, 1, 1},
  {&__pyx_n_s_utils_step, __pyx_k_utils_step, sizeof(__pyx_k_utils_step), 0, 0, 1, 1},
  {&__pyx_n_s_utils_step_derivative, __pyx_k_utils_step_derivative, sizeof(__pyx_k_utils_step_derivative), 0, 0, 1, 1},
  {&__pyx_n_s_utils_super_fast_hash, __pyx_k_utils_super_fast_hash, sizeof(__pyx_k_utils_super_fast_hash), 0, 0, 1, 1},
  {&__pyx_n_s_utils_tanh, __pyx_k_utils_tanh, sizeof(__pyx_k_utils_tanh), 0, 0, 1, 1},
  {&__pyx_n_s_utils_tanh_derivative, __pyx_k_utils_tanh_derivative, sizeof(__pyx_k_utils_tanh_derivative), 0, 0, 1, 1},
  {&__pyx_n_s_utils_write_file, __pyx_k_utils_write_file, sizeof(__pyx_k_utils_write_file), 0, 0, 1, 1},
  {&__pyx_n_s_utils_xorshf96, __pyx_k_utils_xorshf96, sizeof(__pyx_k_utils_xorshf96), 0, 0, 1, 1},
  {&__pyx_n_s_v, __pyx_k_v, sizeof(__pyx_k_v), 0, 0, 1, 1},
  {&__pyx_kp_u_vec2, __pyx_k_vec2, sizeof(__pyx_k_vec2), 0, 1, 0, 0},
  {&__pyx_n_s_vec2_2, __pyx_k_vec2_2, sizeof(__pyx_k_vec2_2), 0, 0, 1, 1},
  {&__pyx_n_s_vec2_triple_product, __pyx_k_vec2_triple_product, sizeof(__pyx_k_vec2_triple_product), 0, 0, 1, 1},
  {&__pyx_kp_u_vec3, __pyx_k_vec3, sizeof(__pyx_k_vec3), 0, 1, 0, 0},
  {&__pyx_n_s_vec3_2, __pyx_k_vec3_2, sizeof(__pyx_k_vec3_2), 0, 0, 1, 1},
  {&__pyx_n_s_vec3_reflect, __pyx_k_vec3_reflect, sizeof(__pyx_k_vec3_reflect), 0, 0, 1, 1},
  {&__pyx_n_s_vec3_rotate_about_axis, __pyx_k_vec3_rotate_about_axis, sizeof(__pyx_k_vec3_rotate_about_axis), 0, 0, 1, 1},
  {&__pyx_n_s_vec3_triple_product, __pyx_k_vec3_triple_product, sizeof(__pyx_k_vec3_triple_product), 0, 0, 1, 1},
  {&__pyx_kp_u_vec4, __pyx_k_vec4, sizeof(__pyx_k_vec4), 0, 1, 0, 0},
  {&__pyx_n_s_vec4_2, __pyx_k_vec4_2, sizeof(__pyx_k_vec4_2), 0, 0, 1, 1},
  {&__pyx_n_s_vec4_triple_product, __pyx_k_vec4_triple_product, sizeof(__pyx_k_vec4_triple_product), 0, 0, 1, 1},
  {&__pyx_n_s_vertex_count, __pyx_k_vertex_count, sizeof(__pyx_k_vertex_count), 0, 0, 1, 1},
  {&__pyx_n_s_vertex_count_used, __pyx_k_vertex_count_used, sizeof(__pyx_k_vertex_count_used), 0, 0, 1, 1},
  {&__pyx_n_s_w, __pyx_k_w, sizeof(__pyx_k_w), 0, 0, 1, 1},
  {&__pyx_n_s_width, __pyx_k_width, sizeof(__pyx_k_width), 0, 0, 1, 1},
  {&__pyx_kp_u_window, __pyx_k_window, sizeof(__pyx_k_window), 0, 1, 0, 0},
  {&__pyx_n_s_window_2, __pyx_k_window_2, sizeof(__pyx_k_window_2), 0, 0, 1, 1},
  {&__pyx_n_s_x, __pyx_k_x, sizeof(__pyx_k_x), 0, 0, 1, 1},
  {&__pyx_n_s_y, __pyx_k_y, sizeof(__pyx_k_y), 0, 0, 1, 1},
  {&__pyx_n_s_z, __pyx_k_z, sizeof(__pyx_k_z), 0, 0, 1, 1},
  {0, 0, 0, 0, 0, 0, 0}
};
static CYTHON_SMALL_CODE int __Pyx_InitCachedBuiltins(void) {
  __pyx_builtin_MemoryError = __Pyx_GetBuiltinName(__pyx_n_s_MemoryError); if (!__pyx_builtin_MemoryError) __PYX_ERR(0, 285, __pyx_L1_error)
  __pyx_builtin_range = __Pyx_GetBuiltinName(__pyx_n_s_range); if (!__pyx_builtin_range) __PYX_ERR(0, 319, __pyx_L1_error)
  __pyx_builtin_ValueError = __Pyx_GetBuiltinName(__pyx_n_s_ValueError); if (!__pyx_builtin_ValueError) __PYX_ERR(0, 395, __pyx_L1_error)
  __pyx_builtin_IndexError = __Pyx_GetBuiltinName(__pyx_n_s_IndexError); if (!__pyx_builtin_IndexError) __PYX_ERR(0, 526, __pyx_L1_error)
  __pyx_builtin_AttributeError = __Pyx_GetBuiltinName(__pyx_n_s_AttributeError); if (!__pyx_builtin_AttributeError) __PYX_ERR(0, 551, __pyx_L1_error)
  __pyx_builtin_TypeError = __Pyx_GetBuiltinName(__pyx_n_s_TypeError); if (!__pyx_builtin_TypeError) __PYX_ERR(1, 2, __pyx_L1_error)
  __pyx_builtin_RuntimeError = __Pyx_GetBuiltinName(__pyx_n_s_RuntimeError); if (!__pyx_builtin_RuntimeError) __PYX_ERR(0, 1372, __pyx_L1_error)
  __pyx_builtin_KeyError = __Pyx_GetBuiltinName(__pyx_n_s_KeyError); if (!__pyx_builtin_KeyError) __PYX_ERR(1, 18, __pyx_L1_error)
  return 0;
  __pyx_L1_error:;
  return -1;
}

static CYTHON_SMALL_CODE int __Pyx_InitCachedConstants(void) {
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__Pyx_InitCachedConstants", 0);

  /* "(tree fragment)":2
 * def __reduce_cython__(self):
 *     raise TypeError("Pickling of struct members such as self.c_vec2 must be explicitly requested with @auto_pickle(True)")             # <<<<<<<<<<<<<<
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError("Pickling of struct members such as self.c_vec2 must be explicitly requested with @auto_pickle(True)")
 */
  __pyx_tuple__5 = PyTuple_Pack(1, __pyx_kp_s_Pickling_of_struct_members_such); if (unlikely(!__pyx_tuple__5)) __PYX_ERR(1, 2, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__5);
  __Pyx_GIVEREF(__pyx_tuple__5);

  /* "(tree fragment)":4
 *     raise TypeError("Pickling of struct members such as self.c_vec2 must be explicitly requested with @auto_pickle(True)")
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError("Pickling of struct members such as self.c_vec2 must be explicitly requested with @auto_pickle(True)")             # <<<<<<<<<<<<<<
 */
  __pyx_tuple__6 = PyTuple_Pack(1, __pyx_kp_s_Pickling_of_struct_members_such); if (unlikely(!__pyx_tuple__6)) __PYX_ERR(1, 4, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__6);
  __Pyx_GIVEREF(__pyx_tuple__6);

  /* "(tree fragment)":2
 * def __reduce_cython__(self):
 *     raise TypeError("Pickling of struct members such as self.c_vec3 must be explicitly requested with @auto_pickle(True)")             # <<<<<<<<<<<<<<
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError("Pickling of struct members such as self.c_vec3 must be explicitly requested with @auto_pickle(True)")
 */
  __pyx_tuple__7 = PyTuple_Pack(1, __pyx_kp_s_Pickling_of_struct_members_such_2); if (unlikely(!__pyx_tuple__7)) __PYX_ERR(1, 2, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__7);
  __Pyx_GIVEREF(__pyx_tuple__7);

  /* "(tree fragment)":4
 *     raise TypeError("Pickling of struct members such as self.c_vec3 must be explicitly requested with @auto_pickle(True)")
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError("Pickling of struct members such as self.c_vec3 must be explicitly requested with @auto_pickle(True)")             # <<<<<<<<<<<<<<
 */
  __pyx_tuple__8 = PyTuple_Pack(1, __pyx_kp_s_Pickling_of_struct_members_such_2); if (unlikely(!__pyx_tuple__8)) __PYX_ERR(1, 4, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__8);
  __Pyx_GIVEREF(__pyx_tuple__8);

  /* "(tree fragment)":2
 * def __reduce_cython__(self):
 *     raise TypeError("Pickling of struct members such as self.c_vec4 must be explicitly requested with @auto_pickle(True)")             # <<<<<<<<<<<<<<
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError("Pickling of struct members such as self.c_vec4 must be explicitly requested with @auto_pickle(True)")
 */
  __pyx_tuple__9 = PyTuple_Pack(1, __pyx_kp_s_Pickling_of_struct_members_such_3); if (unlikely(!__pyx_tuple__9)) __PYX_ERR(1, 2, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__9);
  __Pyx_GIVEREF(__pyx_tuple__9);

  /* "(tree fragment)":4
 *     raise TypeError("Pickling of struct members such as self.c_vec4 must be explicitly requested with @auto_pickle(True)")
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError("Pickling of struct members such as self.c_vec4 must be explicitly requested with @auto_pickle(True)")             # <<<<<<<<<<<<<<
 */
  __pyx_tuple__10 = PyTuple_Pack(1, __pyx_kp_s_Pickling_of_struct_members_such_3); if (unlikely(!__pyx_tuple__10)) __PYX_ERR(1, 4, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__10);
  __Pyx_GIVEREF(__pyx_tuple__10);

  /* "(tree fragment)":2
 * def __reduce_cython__(self):
 *     raise TypeError("Pickling of struct members such as self.c_ivec4 must be explicitly requested with @auto_pickle(True)")             # <<<<<<<<<<<<<<
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError("Pickling of struct members such as self.c_ivec4 must be explicitly requested with @auto_pickle(True)")
 */
  __pyx_tuple__11 = PyTuple_Pack(1, __pyx_kp_s_Pickling_of_struct_members_such_4); if (unlikely(!__pyx_tuple__11)) __PYX_ERR(1, 2, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__11);
  __Pyx_GIVEREF(__pyx_tuple__11);

  /* "(tree fragment)":4
 *     raise TypeError("Pickling of struct members such as self.c_ivec4 must be explicitly requested with @auto_pickle(True)")
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError("Pickling of struct members such as self.c_ivec4 must be explicitly requested with @auto_pickle(True)")             # <<<<<<<<<<<<<<
 */
  __pyx_tuple__12 = PyTuple_Pack(1, __pyx_kp_s_Pickling_of_struct_members_such_4); if (unlikely(!__pyx_tuple__12)) __PYX_ERR(1, 4, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__12);
  __Pyx_GIVEREF(__pyx_tuple__12);

  /* "(tree fragment)":2
 * def __reduce_cython__(self):
 *     raise TypeError("Pickling of struct members such as self.c_mat4 must be explicitly requested with @auto_pickle(True)")             # <<<<<<<<<<<<<<
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError("Pickling of struct members such as self.c_mat4 must be explicitly requested with @auto_pickle(True)")
 */
  __pyx_tuple__15 = PyTuple_Pack(1, __pyx_kp_s_Pickling_of_struct_members_such_5); if (unlikely(!__pyx_tuple__15)) __PYX_ERR(1, 2, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__15);
  __Pyx_GIVEREF(__pyx_tuple__15);

  /* "(tree fragment)":4
 *     raise TypeError("Pickling of struct members such as self.c_mat4 must be explicitly requested with @auto_pickle(True)")
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError("Pickling of struct members such as self.c_mat4 must be explicitly requested with @auto_pickle(True)")             # <<<<<<<<<<<<<<
 */
  __pyx_tuple__16 = PyTuple_Pack(1, __pyx_kp_s_Pickling_of_struct_members_such_5); if (unlikely(!__pyx_tuple__16)) __PYX_ERR(1, 4, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__16);
  __Pyx_GIVEREF(__pyx_tuple__16);

  /* "cgl_wrapper.pyx":1103
 *             rotation = vec3()
 *         if scale is None:
 *             scale = vec3(1.0, 1.0, 1.0)             # <<<<<<<<<<<<<<
 *         self.c_transform = CGL_transform_create(position.c_vec3, rotation.c_vec3, scale.c_vec3)
 * 
 */
  __pyx_tuple__17 = PyTuple_Pack(3, __pyx_float_1_0, __pyx_float_1_0, __pyx_float_1_0); if (unlikely(!__pyx_tuple__17)) __PYX_ERR(0, 1103, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__17);
  __Pyx_GIVEREF(__pyx_tuple__17);

  /* "(tree fragment)":2
 * def __reduce_cython__(self):
 *     raise TypeError("no default __reduce__ due to non-trivial __cinit__")             # <<<<<<<<<<<<<<
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError("no default __reduce__ due to non-trivial __cinit__")
 */
  __pyx_tuple__18 = PyTuple_Pack(1, __pyx_kp_s_no_default___reduce___due_to_non); if (unlikely(!__pyx_tuple__18)) __PYX_ERR(1, 2, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__18);
  __Pyx_GIVEREF(__pyx_tuple__18);

  /* "(tree fragment)":4
 *     raise TypeError("no default __reduce__ due to non-trivial __cinit__")
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError("no default __reduce__ due to non-trivial __cinit__")             # <<<<<<<<<<<<<<
 */
  __pyx_tuple__19 = PyTuple_Pack(1, __pyx_kp_s_no_default___reduce___due_to_non); if (unlikely(!__pyx_tuple__19)) __PYX_ERR(1, 4, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__19);
  __Pyx_GIVEREF(__pyx_tuple__19);

  /* "cgl_wrapper.pyx":1372
 *             self.c_window = CGL_window_create_undecorated(width, height, title.encode('utf-8'))
 *         if self.c_window == NULL:
 *             raise RuntimeError("Failed to create window")             # <<<<<<<<<<<<<<
 *         self.has_been_destroyed = False
 *         __WINDOW_TABLE[self.get_id()] = self
 */
  __pyx_tuple__20 = PyTuple_Pack(1, __pyx_kp_s_Failed_to_create_window); if (unlikely(!__pyx_tuple__20)) __PYX_ERR(0, 1372, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__20);
  __Pyx_GIVEREF(__pyx_tuple__20);

  /* "(tree fragment)":2
 * def __reduce_cython__(self):
 *     raise TypeError("self.c_window cannot be converted to a Python object for pickling")             # <<<<<<<<<<<<<<
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError("self.c_window cannot be converted to a Python object for pickling")
 */
  __pyx_tuple__21 = PyTuple_Pack(1, __pyx_kp_s_self_c_window_cannot_be_converte); if (unlikely(!__pyx_tuple__21)) __PYX_ERR(1, 2, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__21);
  __Pyx_GIVEREF(__pyx_tuple__21);

  /* "(tree fragment)":4
 *     raise TypeError("self.c_window cannot be converted to a Python object for pickling")
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError("self.c_window cannot be converted to a Python object for pickling")             # <<<<<<<<<<<<<<
 */
  __pyx_tuple__22 = PyTuple_Pack(1, __pyx_kp_s_self_c_window_cannot_be_converte); if (unlikely(!__pyx_tuple__22)) __PYX_ERR(1, 4, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__22);
  __Pyx_GIVEREF(__pyx_tuple__22);

  /* "(tree fragment)":2
 * def __reduce_cython__(self):
 *     raise TypeError("self.c_image cannot be converted to a Python object for pickling")             # <<<<<<<<<<<<<<
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError("self.c_image cannot be converted to a Python object for pickling")
 */
  __pyx_tuple__23 = PyTuple_Pack(1, __pyx_kp_s_self_c_image_cannot_be_converted); if (unlikely(!__pyx_tuple__23)) __PYX_ERR(1, 2, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__23);
  __Pyx_GIVEREF(__pyx_tuple__23);

  /* "(tree fragment)":4
 *     raise TypeError("self.c_image cannot be converted to a Python object for pickling")
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError("self.c_image cannot be converted to a Python object for pickling")             # <<<<<<<<<<<<<<
 */
  __pyx_tuple__24 = PyTuple_Pack(1, __pyx_kp_s_self_c_image_cannot_be_converted); if (unlikely(!__pyx_tuple__24)) __PYX_ERR(1, 4, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__24);
  __Pyx_GIVEREF(__pyx_tuple__24);

  /* "(tree fragment)":2
 * def __reduce_cython__(self):
 *     raise TypeError("Pickling of struct members such as self.c_vertex must be explicitly requested with @auto_pickle(True)")             # <<<<<<<<<<<<<<
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError("Pickling of struct members such as self.c_vertex must be explicitly requested with @auto_pickle(True)")
 */
  __pyx_tuple__25 = PyTuple_Pack(1, __pyx_kp_s_Pickling_of_struct_members_such_6); if (unlikely(!__pyx_tuple__25)) __PYX_ERR(1, 2, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__25);
  __Pyx_GIVEREF(__pyx_tuple__25);

  /* "(tree fragment)":4
 *     raise TypeError("Pickling of struct members such as self.c_vertex must be explicitly requested with @auto_pickle(True)")
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError("Pickling of struct members such as self.c_vertex must be explicitly requested with @auto_pickle(True)")             # <<<<<<<<<<<<<<
 */
  __pyx_tuple__26 = PyTuple_Pack(1, __pyx_kp_s_Pickling_of_struct_members_such_6); if (unlikely(!__pyx_tuple__26)) __PYX_ERR(1, 4, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__26);
  __Pyx_GIVEREF(__pyx_tuple__26);

  /* "cgl_wrapper.pyx":1620
 *     def indices(self, value: list):
 *         if len(value) > self.index_count:
 *             raise ValueError("The number of indices is greater than the maximum number of indices")             # <<<<<<<<<<<<<<
 *         self.c_mesh.index_count_used = len(value)
 *         for i in range(self.index_count_used):
 */
  __pyx_tuple__27 = PyTuple_Pack(1, __pyx_kp_s_The_number_of_indices_is_greater); if (unlikely(!__pyx_tuple__27)) __PYX_ERR(0, 1620, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__27);
  __Pyx_GIVEREF(__pyx_tuple__27);

  /* "(tree fragment)":2
 * def __reduce_cython__(self):
 *     raise TypeError("self.c_mesh cannot be converted to a Python object for pickling")             # <<<<<<<<<<<<<<
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError("self.c_mesh cannot be converted to a Python object for pickling")
 */
  __pyx_tuple__28 = PyTuple_Pack(1, __pyx_kp_s_self_c_mesh_cannot_be_converted); if (unlikely(!__pyx_tuple__28)) __PYX_ERR(1, 2, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__28);
  __Pyx_GIVEREF(__pyx_tuple__28);

  /* "(tree fragment)":4
 *     raise TypeError("self.c_mesh cannot be converted to a Python object for pickling")
 * def __setstate_cython__(self, __pyx_state):
 *     raise TypeError("self.c_mesh cannot be converted to a Python object for pickling")             # <<<<<<<<<<<<<<
 */
  __pyx_tuple__29 = PyTuple_Pack(1, __pyx_kp_s_self_c_mesh_cannot_be_converted); if (unlikely(!__pyx_tuple__29)) __PYX_ERR(1, 4, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__29);
  __Pyx_GIVEREF(__pyx_tuple__29);

  /* "FromPyStructUtility":19
 *         value = obj['x']
 *     except KeyError:
 *         raise ValueError("No value specified for struct attribute 'x'")             # <<<<<<<<<<<<<<
 *     result.x = value
 *     try:
 */
  __pyx_tuple__30 = PyTuple_Pack(1, __pyx_kp_s_No_value_specified_for_struct_at); if (unlikely(!__pyx_tuple__30)) __PYX_ERR(1, 19, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__30);
  __Pyx_GIVEREF(__pyx_tuple__30);

  /* "FromPyStructUtility":24
 *         value = obj['y']
 *     except KeyError:
 *         raise ValueError("No value specified for struct attribute 'y'")             # <<<<<<<<<<<<<<
 *     result.y = value
 *     return result
 */
  __pyx_tuple__31 = PyTuple_Pack(1, __pyx_kp_s_No_value_specified_for_struct_at_2); if (unlikely(!__pyx_tuple__31)) __PYX_ERR(1, 24, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__31);
  __Pyx_GIVEREF(__pyx_tuple__31);

  /* "FromPyStructUtility":29
 *         value = obj['z']
 *     except KeyError:
 *         raise ValueError("No value specified for struct attribute 'z'")             # <<<<<<<<<<<<<<
 *     result.z = value
 *     return result
 */
  __pyx_tuple__32 = PyTuple_Pack(1, __pyx_kp_s_No_value_specified_for_struct_at_3); if (unlikely(!__pyx_tuple__32)) __PYX_ERR(1, 29, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__32);
  __Pyx_GIVEREF(__pyx_tuple__32);

  /* "FromPyStructUtility":34
 *         value = obj['w']
 *     except KeyError:
 *         raise ValueError("No value specified for struct attribute 'w'")             # <<<<<<<<<<<<<<
 *     result.w = value
 *     return result
 */
  __pyx_tuple__33 = PyTuple_Pack(1, __pyx_kp_s_No_value_specified_for_struct_at_4); if (unlikely(!__pyx_tuple__33)) __PYX_ERR(1, 34, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__33);
  __Pyx_GIVEREF(__pyx_tuple__33);

  /* "FromPyStructUtility":19
 *         value = obj['position']
 *     except KeyError:
 *         raise ValueError("No value specified for struct attribute 'position'")             # <<<<<<<<<<<<<<
 *     result.position = value
 *     try:
 */
  __pyx_tuple__34 = PyTuple_Pack(1, __pyx_kp_s_No_value_specified_for_struct_at_5); if (unlikely(!__pyx_tuple__34)) __PYX_ERR(1, 19, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__34);
  __Pyx_GIVEREF(__pyx_tuple__34);

  /* "FromPyStructUtility":24
 *         value = obj['normal']
 *     except KeyError:
 *         raise ValueError("No value specified for struct attribute 'normal'")             # <<<<<<<<<<<<<<
 *     result.normal = value
 *     try:
 */
  __pyx_tuple__35 = PyTuple_Pack(1, __pyx_kp_s_No_value_specified_for_struct_at_6); if (unlikely(!__pyx_tuple__35)) __PYX_ERR(1, 24, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__35);
  __Pyx_GIVEREF(__pyx_tuple__35);

  /* "FromPyStructUtility":29
 *         value = obj['texture_coordinates']
 *     except KeyError:
 *         raise ValueError("No value specified for struct attribute 'texture_coordinates'")             # <<<<<<<<<<<<<<
 *     result.texture_coordinates = value
 *     try:
 */
  __pyx_tuple__36 = PyTuple_Pack(1, __pyx_kp_s_No_value_specified_for_struct_at_7); if (unlikely(!__pyx_tuple__36)) __PYX_ERR(1, 29, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__36);
  __Pyx_GIVEREF(__pyx_tuple__36);

  /* "FromPyStructUtility":34
 *         value = obj['bone_wieghts']
 *     except KeyError:
 *         raise ValueError("No value specified for struct attribute 'bone_wieghts'")             # <<<<<<<<<<<<<<
 *     result.bone_wieghts = value
 *     try:
 */
  __pyx_tuple__37 = PyTuple_Pack(1, __pyx_kp_s_No_value_specified_for_struct_at_8); if (unlikely(!__pyx_tuple__37)) __PYX_ERR(1, 34, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__37);
  __Pyx_GIVEREF(__pyx_tuple__37);

  /* "FromPyStructUtility":39
 *         value = obj['bone_ids']
 *     except KeyError:
 *         raise ValueError("No value specified for struct attribute 'bone_ids'")             # <<<<<<<<<<<<<<
 *     result.bone_ids = value
 *     return result
 */
  __pyx_tuple__38 = PyTuple_Pack(1, __pyx_kp_s_No_value_specified_for_struct_at_9); if (unlikely(!__pyx_tuple__38)) __PYX_ERR(1, 39, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__38);
  __Pyx_GIVEREF(__pyx_tuple__38);

  /* "cgl_wrapper.pyx":269
 * CGL_FALSE = 0
 * 
 * def free(ptr):             # <<<<<<<<<<<<<<
 *     stdlib.free(<void*>ptr)
 * 
 */
  __pyx_tuple__39 = PyTuple_Pack(1, __pyx_n_s_ptr); if (unlikely(!__pyx_tuple__39)) __PYX_ERR(0, 269, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__39);
  __Pyx_GIVEREF(__pyx_tuple__39);
  __pyx_codeobj__40 = (PyObject*)__Pyx_PyCode_New(1, 0, 1, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__39, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_cgl_wrapper_pyx, __pyx_n_s_free, 269, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__40)) __PYX_ERR(0, 269, __pyx_L1_error)

  /* "cgl_wrapper.pyx":272
 *     stdlib.free(<void*>ptr)
 * 
 * def init() -> bool:             # <<<<<<<<<<<<<<
 *     return CGL_init()
 * 
 */
  __pyx_codeobj__41 = (PyObject*)__Pyx_PyCode_New(0, 0, 0, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_cgl_wrapper_pyx, __pyx_n_s_init, 272, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__41)) __PYX_ERR(0, 272, __pyx_L1_error)

  /* "cgl_wrapper.pyx":275
 *     return CGL_init()
 * 
 * def shutdown():             # <<<<<<<<<<<<<<
 *     CGL_shutdown()
 * 
 */
  __pyx_codeobj__42 = (PyObject*)__Pyx_PyCode_New(0, 0, 0, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_cgl_wrapper_pyx, __pyx_n_s_shutdown, 275, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__42)) __PYX_ERR(0, 275, __pyx_L1_error)

  /* "cgl_wrapper.pyx":278
 *     CGL_shutdown()
 * 
 * def utils_sleep(milliseconds: int):             # <<<<<<<<<<<<<<
 *     CGL_utils_sleep(milliseconds)
 * 
 */
  __pyx_tuple__43 = PyTuple_Pack(1, __pyx_n_s_milliseconds); if (unlikely(!__pyx_tuple__43)) __PYX_ERR(0, 278, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__43);
  __Pyx_GIVEREF(__pyx_tuple__43);
  __pyx_codeobj__44 = (PyObject*)__Pyx_PyCode_New(1, 0, 1, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__43, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_cgl_wrapper_pyx, __pyx_n_s_utils_sleep, 278, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__44)) __PYX_ERR(0, 278, __pyx_L1_error)

  /* "cgl_wrapper.pyx":281
 *     CGL_utils_sleep(milliseconds)
 * 
 * def utils_read_file(path: str) -> bytes:             # <<<<<<<<<<<<<<
 *     cdef CGL_sizei size
 *     cdef CGL_byte* data = CGL_utils_read_file(path.encode(), &size)
 */
  __pyx_tuple__45 = PyTuple_Pack(4, __pyx_n_s_path, __pyx_n_s_size, __pyx_n_s_data, __pyx_n_s_result); if (unlikely(!__pyx_tuple__45)) __PYX_ERR(0, 281, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__45);
  __Pyx_GIVEREF(__pyx_tuple__45);
  __pyx_codeobj__46 = (PyObject*)__Pyx_PyCode_New(1, 0, 4, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__45, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_cgl_wrapper_pyx, __pyx_n_s_utils_read_file, 281, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__46)) __PYX_ERR(0, 281, __pyx_L1_error)

  /* "cgl_wrapper.pyx":291
 *     return result
 * 
 * def utils_get_file_size(path: str) -> int:             # <<<<<<<<<<<<<<
 *     return CGL_utils_get_file_size(path.encode())
 * 
 */
  __pyx_tuple__47 = PyTuple_Pack(1, __pyx_n_s_path); if (unlikely(!__pyx_tuple__47)) __PYX_ERR(0, 291, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__47);
  __Pyx_GIVEREF(__pyx_tuple__47);
  __pyx_codeobj__48 = (PyObject*)__Pyx_PyCode_New(1, 0, 1, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__47, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_cgl_wrapper_pyx, __pyx_n_s_utils_get_file_size, 291, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__48)) __PYX_ERR(0, 291, __pyx_L1_error)

  /* "cgl_wrapper.pyx":294
 *     return CGL_utils_get_file_size(path.encode())
 * 
 * def utils_append_file(path: str, data: bytes) -> bool:             # <<<<<<<<<<<<<<
 *     return CGL_utils_append_file(path.encode(), data, len(data))
 * 
 */
  __pyx_tuple__49 = PyTuple_Pack(2, __pyx_n_s_path, __pyx_n_s_data); if (unlikely(!__pyx_tuple__49)) __PYX_ERR(0, 294, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__49);
  __Pyx_GIVEREF(__pyx_tuple__49);
  __pyx_codeobj__50 = (PyObject*)__Pyx_PyCode_New(2, 0, 2, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__49, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_cgl_wrapper_pyx, __pyx_n_s_utils_append_file, 294, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__50)) __PYX_ERR(0, 294, __pyx_L1_error)

  /* "cgl_wrapper.pyx":297
 *     return CGL_utils_append_file(path.encode(), data, len(data))
 * 
 * def utils_write_file(path : str, data : bytes) -> bool:             # <<<<<<<<<<<<<<
 *     return CGL_utils_write_file(path.encode(), data, len(data))
 * 
 */
  __pyx_tuple__51 = PyTuple_Pack(2, __pyx_n_s_path, __pyx_n_s_data); if (unlikely(!__pyx_tuple__51)) __PYX_ERR(0, 297, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__51);
  __Pyx_GIVEREF(__pyx_tuple__51);
  __pyx_codeobj__52 = (PyObject*)__Pyx_PyCode_New(2, 0, 2, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__51, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_cgl_wrapper_pyx, __pyx_n_s_utils_write_file, 297, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__52)) __PYX_ERR(0, 297, __pyx_L1_error)

  /* "cgl_wrapper.pyx":300
 *     return CGL_utils_write_file(path.encode(), data, len(data))
 * 
 * def utils_get_time() -> float:             # <<<<<<<<<<<<<<
 *     return CGL_utils_get_time()
 * 
 */
  __pyx_codeobj__53 = (PyObject*)__Pyx_PyCode_New(0, 0, 0, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_cgl_wrapper_pyx, __pyx_n_s_utils_get_time, 300, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__53)) __PYX_ERR(0, 300, __pyx_L1_error)

  /* "cgl_wrapper.pyx":303
 *     return CGL_utils_get_time()
 * 
 * def utils_get_timestamp() -> str:             # <<<<<<<<<<<<<<
 *     cdef CGL_byte buffer[128]
 *     CGL_utils_get_timestamp(buffer)
 */
  __pyx_tuple__54 = PyTuple_Pack(1, __pyx_n_s_buffer); if (unlikely(!__pyx_tuple__54)) __PYX_ERR(0, 303, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__54);
  __Pyx_GIVEREF(__pyx_tuple__54);
  __pyx_codeobj__55 = (PyObject*)__Pyx_PyCode_New(0, 0, 1, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__54, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_cgl_wrapper_pyx, __pyx_n_s_utils_get_timestamp, 303, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__55)) __PYX_ERR(0, 303, __pyx_L1_error)

  /* "cgl_wrapper.pyx":308
 *     return buffer.decode()
 * 
 * def utils_is_little_endian() -> bool:             # <<<<<<<<<<<<<<
 *     return CGL_utils_is_little_endian()
 * 
 */
  __pyx_codeobj__56 = (PyObject*)__Pyx_PyCode_New(0, 0, 0, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_cgl_wrapper_pyx, __pyx_n_s_utils_is_little_endian, 308, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__56)) __PYX_ERR(0, 308, __pyx_L1_error)

  /* "cgl_wrapper.pyx":311
 *     return CGL_utils_is_little_endian()
 * 
 * def utils_is_big_endian() -> bool:             # <<<<<<<<<<<<<<
 *     return not CGL_utils_is_little_endian()
 * 
 */
  __pyx_codeobj__57 = (PyObject*)__Pyx_PyCode_New(0, 0, 0, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_cgl_wrapper_pyx, __pyx_n_s_utils_is_big_endian, 311, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__57)) __PYX_ERR(0, 311, __pyx_L1_error)

  /* "cgl_wrapper.pyx":314
 *     return not CGL_utils_is_little_endian()
 * 
 * def utils_get_random_with_probability(probabilities) -> int:             # <<<<<<<<<<<<<<
 *     cdef CGL_float* c_probabilities
 *     c_probabilities = <CGL_float*>stdlib.malloc(len(probabilities) * sizeof(CGL_float))
 */
  __pyx_tuple__58 = PyTuple_Pack(4, __pyx_n_s_probabilities, __pyx_n_s_c_probabilities, __pyx_n_s_i, __pyx_n_s_result); if (unlikely(!__pyx_tuple__58)) __PYX_ERR(0, 314, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__58);
  __Pyx_GIVEREF(__pyx_tuple__58);
  __pyx_codeobj__59 = (PyObject*)__Pyx_PyCode_New(1, 0, 4, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__58, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_cgl_wrapper_pyx, __pyx_n_s_utils_get_random_with_probabilit, 314, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__59)) __PYX_ERR(0, 314, __pyx_L1_error)

  /* "cgl_wrapper.pyx":326
 *     return result
 * 
 * def utils_reverse_bytes(data: bytes):             # <<<<<<<<<<<<<<
 *     CGL_utils_reverse_bytes(<void*>data, len(data))
 * 
 */
  __pyx_tuple__60 = PyTuple_Pack(1, __pyx_n_s_data); if (unlikely(!__pyx_tuple__60)) __PYX_ERR(0, 326, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__60);
  __Pyx_GIVEREF(__pyx_tuple__60);
  __pyx_codeobj__61 = (PyObject*)__Pyx_PyCode_New(1, 0, 1, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__60, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_cgl_wrapper_pyx, __pyx_n_s_utils_reverse_bytes, 326, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__61)) __PYX_ERR(0, 326, __pyx_L1_error)

  /* "cgl_wrapper.pyx":329
 *     CGL_utils_reverse_bytes(<void*>data, len(data))
 * 
 * def utils_little_endian_to_current(data : bytes):             # <<<<<<<<<<<<<<
 *     CGL_utils_little_endian_to_current(<void*>data, len(data))
 * 
 */
  __pyx_tuple__62 = PyTuple_Pack(1, __pyx_n_s_data); if (unlikely(!__pyx_tuple__62)) __PYX_ERR(0, 329, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__62);
  __Pyx_GIVEREF(__pyx_tuple__62);
  __pyx_codeobj__63 = (PyObject*)__Pyx_PyCode_New(1, 0, 1, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__62, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_cgl_wrapper_pyx, __pyx_n_s_utils_little_endian_to_current, 329, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__63)) __PYX_ERR(0, 329, __pyx_L1_error)

  /* "cgl_wrapper.pyx":332
 *     CGL_utils_little_endian_to_current(<void*>data, len(data))
 * 
 * def utils_big_endian_to_current(data : bytes):             # <<<<<<<<<<<<<<
 *     CGL_utils_big_endian_to_current(<void*>data, len(data))
 * 
 */
  __pyx_tuple__64 = PyTuple_Pack(1, __pyx_n_s_data); if (unlikely(!__pyx_tuple__64)) __PYX_ERR(0, 332, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__64);
  __Pyx_GIVEREF(__pyx_tuple__64);
  __pyx_codeobj__65 = (PyObject*)__Pyx_PyCode_New(1, 0, 1, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__64, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_cgl_wrapper_pyx, __pyx_n_s_utils_big_endian_to_current, 332, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__65)) __PYX_ERR(0, 332, __pyx_L1_error)

  /* "cgl_wrapper.pyx":335
 *     CGL_utils_big_endian_to_current(<void*>data, len(data))
 * 
 * def utils_fast_srand(seed: int):             # <<<<<<<<<<<<<<
 *     CGL_utils_fast_srand(seed)
 * 
 */
  __pyx_tuple__66 = PyTuple_Pack(1, __pyx_n_s_seed); if (unlikely(!__pyx_tuple__66)) __PYX_ERR(0, 335, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__66);
  __Pyx_GIVEREF(__pyx_tuple__66);
  __pyx_codeobj__67 = (PyObject*)__Pyx_PyCode_New(1, 0, 1, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__66, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_cgl_wrapper_pyx, __pyx_n_s_utils_fast_srand, 335, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__67)) __PYX_ERR(0, 335, __pyx_L1_error)

  /* "cgl_wrapper.pyx":338
 *     CGL_utils_fast_srand(seed)
 * 
 * def utils_fast_rand() -> int:             # <<<<<<<<<<<<<<
 *     return CGL_utils_fast_rand()
 * 
 */
  __pyx_codeobj__68 = (PyObject*)__Pyx_PyCode_New(0, 0, 0, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_cgl_wrapper_pyx, __pyx_n_s_utils_fast_rand, 338, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__68)) __PYX_ERR(0, 338, __pyx_L1_error)

  /* "cgl_wrapper.pyx":341
 *     return CGL_utils_fast_rand()
 * 
 * def utils_xorshf96() -> int:             # <<<<<<<<<<<<<<
 *     return CGL_utils_xorshf96()
 * 
 */
  __pyx_codeobj__69 = (PyObject*)__Pyx_PyCode_New(0, 0, 0, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_cgl_wrapper_pyx, __pyx_n_s_utils_xorshf96, 341, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__69)) __PYX_ERR(0, 341, __pyx_L1_error)

  /* "cgl_wrapper.pyx":344
 *     return CGL_utils_xorshf96()
 * 
 * def utils_srand31(seed: int):             # <<<<<<<<<<<<<<
 *     CGL_utils_srand31(seed)
 * 
 */
  __pyx_tuple__70 = PyTuple_Pack(1, __pyx_n_s_seed); if (unlikely(!__pyx_tuple__70)) __PYX_ERR(0, 344, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__70);
  __Pyx_GIVEREF(__pyx_tuple__70);
  __pyx_codeobj__71 = (PyObject*)__Pyx_PyCode_New(1, 0, 1, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__70, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_cgl_wrapper_pyx, __pyx_n_s_utils_srand31, 344, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__71)) __PYX_ERR(0, 344, __pyx_L1_error)

  /* "cgl_wrapper.pyx":347
 *     CGL_utils_srand31(seed)
 * 
 * def utils_rand31() -> int:             # <<<<<<<<<<<<<<
 *     return CGL_utils_rand31()
 * 
 */
  __pyx_codeobj__72 = (PyObject*)__Pyx_PyCode_New(0, 0, 0, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_cgl_wrapper_pyx, __pyx_n_s_utils_rand31, 347, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__72)) __PYX_ERR(0, 347, __pyx_L1_error)

  /* "cgl_wrapper.pyx":350
 *     return CGL_utils_rand31()
 * 
 * def utils_sigmoid(x: float) -> float:             # <<<<<<<<<<<<<<
 *     CGL_utils_sigmoid(x)
 * 
 */
  __pyx_tuple__73 = PyTuple_Pack(2, __pyx_n_s_x, __pyx_n_s_x); if (unlikely(!__pyx_tuple__73)) __PYX_ERR(0, 350, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__73);
  __Pyx_GIVEREF(__pyx_tuple__73);
  __pyx_codeobj__74 = (PyObject*)__Pyx_PyCode_New(1, 0, 2, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__73, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_cgl_wrapper_pyx, __pyx_n_s_utils_sigmoid, 350, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__74)) __PYX_ERR(0, 350, __pyx_L1_error)

  /* "cgl_wrapper.pyx":353
 *     CGL_utils_sigmoid(x)
 * 
 * def utils_sigmoid_derivative(x: float) -> float:             # <<<<<<<<<<<<<<
 *     CGL_utils_sigmoid_derivative(x)
 * 
 */
  __pyx_tuple__75 = PyTuple_Pack(2, __pyx_n_s_x, __pyx_n_s_x); if (unlikely(!__pyx_tuple__75)) __PYX_ERR(0, 353, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__75);
  __Pyx_GIVEREF(__pyx_tuple__75);
  __pyx_codeobj__76 = (PyObject*)__Pyx_PyCode_New(1, 0, 2, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__75, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_cgl_wrapper_pyx, __pyx_n_s_utils_sigmoid_derivative, 353, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__76)) __PYX_ERR(0, 353, __pyx_L1_error)

  /* "cgl_wrapper.pyx":356
 *     CGL_utils_sigmoid_derivative(x)
 * 
 * def utils_relu(x: float) -> float:             # <<<<<<<<<<<<<<
 *     CGL_utils_relu(x)
 * 
 */
  __pyx_tuple__77 = PyTuple_Pack(2, __pyx_n_s_x, __pyx_n_s_x); if (unlikely(!__pyx_tuple__77)) __PYX_ERR(0, 356, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__77);
  __Pyx_GIVEREF(__pyx_tuple__77);
  __pyx_codeobj__78 = (PyObject*)__Pyx_PyCode_New(1, 0, 2, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__77, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_cgl_wrapper_pyx, __pyx_n_s_utils_relu, 356, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__78)) __PYX_ERR(0, 356, __pyx_L1_error)

  /* "cgl_wrapper.pyx":359
 *     CGL_utils_relu(x)
 * 
 * def utils_relu_derivative(x: float) -> float:             # <<<<<<<<<<<<<<
 *     CGL_utils_relu_derivative(x)
 * 
 */
  __pyx_tuple__79 = PyTuple_Pack(2, __pyx_n_s_x, __pyx_n_s_x); if (unlikely(!__pyx_tuple__79)) __PYX_ERR(0, 359, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__79);
  __Pyx_GIVEREF(__pyx_tuple__79);
  __pyx_codeobj__80 = (PyObject*)__Pyx_PyCode_New(1, 0, 2, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__79, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_cgl_wrapper_pyx, __pyx_n_s_utils_relu_derivative, 359, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__80)) __PYX_ERR(0, 359, __pyx_L1_error)

  /* "cgl_wrapper.pyx":362
 *     CGL_utils_relu_derivative(x)
 * 
 * def utils_tanh(x: float) -> float:             # <<<<<<<<<<<<<<
 *     CGL_utils_tanh(x)
 * 
 */
  __pyx_tuple__81 = PyTuple_Pack(2, __pyx_n_s_x, __pyx_n_s_x); if (unlikely(!__pyx_tuple__81)) __PYX_ERR(0, 362, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__81);
  __Pyx_GIVEREF(__pyx_tuple__81);
  __pyx_codeobj__82 = (PyObject*)__Pyx_PyCode_New(1, 0, 2, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__81, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_cgl_wrapper_pyx, __pyx_n_s_utils_tanh, 362, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__82)) __PYX_ERR(0, 362, __pyx_L1_error)

  /* "cgl_wrapper.pyx":365
 *     CGL_utils_tanh(x)
 * 
 * def utils_tanh_derivative(x: float) -> float:             # <<<<<<<<<<<<<<
 *     CGL_utils_tanh_derivative(x)
 * 
 */
  __pyx_tuple__83 = PyTuple_Pack(2, __pyx_n_s_x, __pyx_n_s_x); if (unlikely(!__pyx_tuple__83)) __PYX_ERR(0, 365, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__83);
  __Pyx_GIVEREF(__pyx_tuple__83);
  __pyx_codeobj__84 = (PyObject*)__Pyx_PyCode_New(1, 0, 2, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__83, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_cgl_wrapper_pyx, __pyx_n_s_utils_tanh_derivative, 365, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__84)) __PYX_ERR(0, 365, __pyx_L1_error)

  /* "cgl_wrapper.pyx":368
 *     CGL_utils_tanh_derivative(x)
 * 
 * def utils_step(x: float) -> float:             # <<<<<<<<<<<<<<
 *     CGL_utils_step(x)
 * 
 */
  __pyx_tuple__85 = PyTuple_Pack(2, __pyx_n_s_x, __pyx_n_s_x); if (unlikely(!__pyx_tuple__85)) __PYX_ERR(0, 368, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__85);
  __Pyx_GIVEREF(__pyx_tuple__85);
  __pyx_codeobj__86 = (PyObject*)__Pyx_PyCode_New(1, 0, 2, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__85, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_cgl_wrapper_pyx, __pyx_n_s_utils_step, 368, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__86)) __PYX_ERR(0, 368, __pyx_L1_error)

  /* "cgl_wrapper.pyx":371
 *     CGL_utils_step(x)
 * 
 * def utils_step_derivative(x: float) -> float:             # <<<<<<<<<<<<<<
 *     CGL_utils_step_derivative(x)
 * 
 */
  __pyx_tuple__87 = PyTuple_Pack(2, __pyx_n_s_x, __pyx_n_s_x); if (unlikely(!__pyx_tuple__87)) __PYX_ERR(0, 371, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__87);
  __Pyx_GIVEREF(__pyx_tuple__87);
  __pyx_codeobj__88 = (PyObject*)__Pyx_PyCode_New(1, 0, 2, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__87, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_cgl_wrapper_pyx, __pyx_n_s_utils_step_derivative, 371, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__88)) __PYX_ERR(0, 371, __pyx_L1_error)

  /* "cgl_wrapper.pyx":374
 *     CGL_utils_step_derivative(x)
 * 
 * def utils_relu_leaky(x: float) -> float:             # <<<<<<<<<<<<<<
 *     CGL_utils_relu_leaky(x)
 * 
 */
  __pyx_tuple__89 = PyTuple_Pack(2, __pyx_n_s_x, __pyx_n_s_x); if (unlikely(!__pyx_tuple__89)) __PYX_ERR(0, 374, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__89);
  __Pyx_GIVEREF(__pyx_tuple__89);
  __pyx_codeobj__90 = (PyObject*)__Pyx_PyCode_New(1, 0, 2, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__89, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_cgl_wrapper_pyx, __pyx_n_s_utils_relu_leaky, 374, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__90)) __PYX_ERR(0, 374, __pyx_L1_error)

  /* "cgl_wrapper.pyx":377
 *     CGL_utils_relu_leaky(x)
 * 
 * def utils_relu_leaky_derivative(x: float) -> float:             # <<<<<<<<<<<<<<
 *     CGL_utils_relu_leaky_derivative(x)
 * 
 */
  __pyx_tuple__91 = PyTuple_Pack(2, __pyx_n_s_x, __pyx_n_s_x); if (unlikely(!__pyx_tuple__91)) __PYX_ERR(0, 377, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__91);
  __Pyx_GIVEREF(__pyx_tuple__91);
  __pyx_codeobj__92 = (PyObject*)__Pyx_PyCode_New(1, 0, 2, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__91, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_cgl_wrapper_pyx, __pyx_n_s_utils_relu_leaky_derivative, 377, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__92)) __PYX_ERR(0, 377, __pyx_L1_error)

  /* "cgl_wrapper.pyx":380
 *     CGL_utils_relu_leaky_derivative(x)
 * 
 * def utils_relu_smooth(x: float) -> float:             # <<<<<<<<<<<<<<
 *     CGL_utils_relu_smooth(x)
 * 
 */
  __pyx_tuple__93 = PyTuple_Pack(2, __pyx_n_s_x, __pyx_n_s_x); if (unlikely(!__pyx_tuple__93)) __PYX_ERR(0, 380, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__93);
  __Pyx_GIVEREF(__pyx_tuple__93);
  __pyx_codeobj__94 = (PyObject*)__Pyx_PyCode_New(1, 0, 2, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__93, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_cgl_wrapper_pyx, __pyx_n_s_utils_relu_smooth, 380, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__94)) __PYX_ERR(0, 380, __pyx_L1_error)

  /* "cgl_wrapper.pyx":383
 *     CGL_utils_relu_smooth(x)
 * 
 * def utils_relu_smooth_derivative(x: float) -> float:             # <<<<<<<<<<<<<<
 *     CGL_utils_relu_smooth_derivative(x)
 * 
 */
  __pyx_tuple__95 = PyTuple_Pack(2, __pyx_n_s_x, __pyx_n_s_x); if (unlikely(!__pyx_tuple__95)) __PYX_ERR(0, 383, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__95);
  __Pyx_GIVEREF(__pyx_tuple__95);
  __pyx_codeobj__96 = (PyObject*)__Pyx_PyCode_New(1, 0, 2, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__95, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_cgl_wrapper_pyx, __pyx_n_s_utils_relu_smooth_derivative, 383, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__96)) __PYX_ERR(0, 383, __pyx_L1_error)

  /* "cgl_wrapper.pyx":393
 * CONSOLE_COLOR_BLUE = 4
 * 
 * def console_set_color(color: int):             # <<<<<<<<<<<<<<
 *     if color < 0 or color > 4:
 *         raise ValueError()
 */
  __pyx_tuple__97 = PyTuple_Pack(1, __pyx_n_s_color); if (unlikely(!__pyx_tuple__97)) __PYX_ERR(0, 393, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__97);
  __Pyx_GIVEREF(__pyx_tuple__97);
  __pyx_codeobj__98 = (PyObject*)__Pyx_PyCode_New(1, 0, 1, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__97, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_cgl_wrapper_pyx, __pyx_n_s_console_set_color, 393, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__98)) __PYX_ERR(0, 393, __pyx_L1_error)

  /* "cgl_wrapper.pyx":398
 *     CGL_console_set_color(color)
 * 
 * def printf_red(format: str):             # <<<<<<<<<<<<<<
 *     CGL_printf_red(format.encode())
 * 
 */
  __pyx_tuple__99 = PyTuple_Pack(1, __pyx_n_s_format); if (unlikely(!__pyx_tuple__99)) __PYX_ERR(0, 398, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__99);
  __Pyx_GIVEREF(__pyx_tuple__99);
  __pyx_codeobj__100 = (PyObject*)__Pyx_PyCode_New(1, 0, 1, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__99, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_cgl_wrapper_pyx, __pyx_n_s_printf_red, 398, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__100)) __PYX_ERR(0, 398, __pyx_L1_error)

  /* "cgl_wrapper.pyx":401
 *     CGL_printf_red(format.encode())
 * 
 * def printf_green(format: str):             # <<<<<<<<<<<<<<
 *     CGL_printf_green(format.encode())
 * 
 */
  __pyx_tuple__101 = PyTuple_Pack(1, __pyx_n_s_format); if (unlikely(!__pyx_tuple__101)) __PYX_ERR(0, 401, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__101);
  __Pyx_GIVEREF(__pyx_tuple__101);
  __pyx_codeobj__102 = (PyObject*)__Pyx_PyCode_New(1, 0, 1, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__101, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_cgl_wrapper_pyx, __pyx_n_s_printf_green, 401, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__102)) __PYX_ERR(0, 401, __pyx_L1_error)

  /* "cgl_wrapper.pyx":404
 *     CGL_printf_green(format.encode())
 * 
 * def printf_gray(format: str):             # <<<<<<<<<<<<<<
 *     CGL_printf_gray(format.encode())
 * 
 */
  __pyx_tuple__103 = PyTuple_Pack(1, __pyx_n_s_format); if (unlikely(!__pyx_tuple__103)) __PYX_ERR(0, 404, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__103);
  __Pyx_GIVEREF(__pyx_tuple__103);
  __pyx_codeobj__104 = (PyObject*)__Pyx_PyCode_New(1, 0, 1, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__103, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_cgl_wrapper_pyx, __pyx_n_s_printf_gray, 404, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__104)) __PYX_ERR(0, 404, __pyx_L1_error)

  /* "cgl_wrapper.pyx":407
 *     CGL_printf_gray(format.encode())
 * 
 * def printf_blue(format: str):             # <<<<<<<<<<<<<<
 *     CGL_printf_blue(format.encode())
 * 
 */
  __pyx_tuple__105 = PyTuple_Pack(1, __pyx_n_s_format); if (unlikely(!__pyx_tuple__105)) __PYX_ERR(0, 407, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__105);
  __Pyx_GIVEREF(__pyx_tuple__105);
  __pyx_codeobj__106 = (PyObject*)__Pyx_PyCode_New(1, 0, 1, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__105, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_cgl_wrapper_pyx, __pyx_n_s_printf_blue, 407, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__106)) __PYX_ERR(0, 407, __pyx_L1_error)

  /* "cgl_wrapper.pyx":410
 *     CGL_printf_blue(format.encode())
 * 
 * def console_progress_bar(progress: float, width: int, prefix: str, suffix: str, complete_char: str = "#", incomplete_char: str = "_"):             # <<<<<<<<<<<<<<
 *     CGL_console_progress_bar(progress, width, prefix.encode(), suffix.encode(), complete_char[0], incomplete_char[0])
 * 
 */
  __pyx_tuple__107 = PyTuple_Pack(6, __pyx_n_s_progress, __pyx_n_s_width, __pyx_n_s_prefix, __pyx_n_s_suffix, __pyx_n_s_complete_char, __pyx_n_s_incomplete_char); if (unlikely(!__pyx_tuple__107)) __PYX_ERR(0, 410, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__107);
  __Pyx_GIVEREF(__pyx_tuple__107);
  __pyx_codeobj__108 = (PyObject*)__Pyx_PyCode_New(6, 0, 6, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__107, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_cgl_wrapper_pyx, __pyx_n_s_console_progress_bar, 410, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__108)) __PYX_ERR(0, 410, __pyx_L1_error)

  /* "cgl_wrapper.pyx":422
 * 
 * 
 * def logger_init(enable_console_logging: bool):             # <<<<<<<<<<<<<<
 *     CGL_logger_init(enable_console_logging)
 * 
 */
  __pyx_tuple__109 = PyTuple_Pack(2, __pyx_n_s_enable_console_logging, __pyx_n_s_enable_console_logging); if (unlikely(!__pyx_tuple__109)) __PYX_ERR(0, 422, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__109);
  __Pyx_GIVEREF(__pyx_tuple__109);
  __pyx_codeobj__110 = (PyObject*)__Pyx_PyCode_New(1, 0, 2, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__109, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_cgl_wrapper_pyx, __pyx_n_s_logger_init, 422, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__110)) __PYX_ERR(0, 422, __pyx_L1_error)

  /* "cgl_wrapper.pyx":425
 *     CGL_logger_init(enable_console_logging)
 * 
 * def logger_shutdown():             # <<<<<<<<<<<<<<
 *     CGL_logger_shutdown()
 * 
 */
  __pyx_codeobj__111 = (PyObject*)__Pyx_PyCode_New(0, 0, 0, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_cgl_wrapper_pyx, __pyx_n_s_logger_shutdown, 425, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__111)) __PYX_ERR(0, 425, __pyx_L1_error)

  /* "cgl_wrapper.pyx":428
 *     CGL_logger_shutdown()
 * 
 * def logger_attach_log_file(path: str) -> bool:             # <<<<<<<<<<<<<<
 *     return CGL_logger_attach_log_file(path.encode())
 * 
 */
  __pyx_tuple__112 = PyTuple_Pack(1, __pyx_n_s_path); if (unlikely(!__pyx_tuple__112)) __PYX_ERR(0, 428, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__112);
  __Pyx_GIVEREF(__pyx_tuple__112);
  __pyx_codeobj__113 = (PyObject*)__Pyx_PyCode_New(1, 0, 1, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__112, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_cgl_wrapper_pyx, __pyx_n_s_logger_attach_log_file, 428, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__113)) __PYX_ERR(0, 428, __pyx_L1_error)

  /* "cgl_wrapper.pyx":431
 *     return CGL_logger_attach_log_file(path.encode())
 * 
 * def logger_detach_log_file(path: str) -> bool:             # <<<<<<<<<<<<<<
 *     return CGL_logger_detach_log_file(path.encode())
 * 
 */
  __pyx_tuple__114 = PyTuple_Pack(1, __pyx_n_s_path); if (unlikely(!__pyx_tuple__114)) __PYX_ERR(0, 431, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__114);
  __Pyx_GIVEREF(__pyx_tuple__114);
  __pyx_codeobj__115 = (PyObject*)__Pyx_PyCode_New(1, 0, 1, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__114, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_cgl_wrapper_pyx, __pyx_n_s_logger_detach_log_file, 431, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__115)) __PYX_ERR(0, 431, __pyx_L1_error)

  /* "cgl_wrapper.pyx":434
 *     return CGL_logger_detach_log_file(path.encode())
 * 
 * def logger_flush():             # <<<<<<<<<<<<<<
 *     CGL_logger_flush()
 * 
 */
  __pyx_codeobj__116 = (PyObject*)__Pyx_PyCode_New(0, 0, 0, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_cgl_wrapper_pyx, __pyx_n_s_logger_flush, 434, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__116)) __PYX_ERR(0, 434, __pyx_L1_error)

  /* "cgl_wrapper.pyx":437
 *     CGL_logger_flush()
 * 
 * def logger_disable_console_logging():             # <<<<<<<<<<<<<<
 *     CGL_logger_disable_console_logging()
 * 
 */
  __pyx_codeobj__117 = (PyObject*)__Pyx_PyCode_New(0, 0, 0, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_cgl_wrapper_pyx, __pyx_n_s_logger_disable_console_logging, 437, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__117)) __PYX_ERR(0, 437, __pyx_L1_error)

  /* "cgl_wrapper.pyx":440
 *     CGL_logger_disable_console_logging()
 * 
 * def logger_enable_console_logging():             # <<<<<<<<<<<<<<
 *     CGL_logger_enable_console_logging()
 * 
 */
  __pyx_codeobj__118 = (PyObject*)__Pyx_PyCode_New(0, 0, 0, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_cgl_wrapper_pyx, __pyx_n_s_logger_enable_console_logging, 440, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__118)) __PYX_ERR(0, 440, __pyx_L1_error)

  /* "cgl_wrapper.pyx":443
 *     CGL_logger_enable_console_logging()
 * 
 * def logger_log(level: int, log_format: str):             # <<<<<<<<<<<<<<
 *     CGL_logger_log(level, log_format.encode())
 * 
 */
  __pyx_tuple__119 = PyTuple_Pack(2, __pyx_n_s_level, __pyx_n_s_log_format); if (unlikely(!__pyx_tuple__119)) __PYX_ERR(0, 443, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__119);
  __Pyx_GIVEREF(__pyx_tuple__119);
  __pyx_codeobj__120 = (PyObject*)__Pyx_PyCode_New(2, 0, 2, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__119, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_cgl_wrapper_pyx, __pyx_n_s_logger_log, 443, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__120)) __PYX_ERR(0, 443, __pyx_L1_error)

  /* "cgl_wrapper.pyx":446
 *     CGL_logger_log(level, log_format.encode())
 * 
 * def log_trace(log_format: str):             # <<<<<<<<<<<<<<
 *     CGL_logger_log(LOG_LEVEL_TRACE, log_format.encode())
 * 
 */
  __pyx_tuple__121 = PyTuple_Pack(1, __pyx_n_s_log_format); if (unlikely(!__pyx_tuple__121)) __PYX_ERR(0, 446, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__121);
  __Pyx_GIVEREF(__pyx_tuple__121);
  __pyx_codeobj__122 = (PyObject*)__Pyx_PyCode_New(1, 0, 1, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__121, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_cgl_wrapper_pyx, __pyx_n_s_log_trace, 446, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__122)) __PYX_ERR(0, 446, __pyx_L1_error)

  /* "cgl_wrapper.pyx":449
 *     CGL_logger_log(LOG_LEVEL_TRACE, log_format.encode())
 * 
 * def log_info(log_format: str):             # <<<<<<<<<<<<<<
 *     CGL_logger_log(LOG_LEVEL_INFO, log_format.encode())
 * 
 */
  __pyx_tuple__123 = PyTuple_Pack(1, __pyx_n_s_log_format); if (unlikely(!__pyx_tuple__123)) __PYX_ERR(0, 449, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__123);
  __Pyx_GIVEREF(__pyx_tuple__123);
  __pyx_codeobj__124 = (PyObject*)__Pyx_PyCode_New(1, 0, 1, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__123, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_cgl_wrapper_pyx, __pyx_n_s_log_info, 449, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__124)) __PYX_ERR(0, 449, __pyx_L1_error)

  /* "cgl_wrapper.pyx":452
 *     CGL_logger_log(LOG_LEVEL_INFO, log_format.encode())
 * 
 * def log_warn(log_format: str):             # <<<<<<<<<<<<<<
 *     CGL_logger_log(LOG_LEVEL_WARN, log_format.encode())
 * 
 */
  __pyx_tuple__125 = PyTuple_Pack(1, __pyx_n_s_log_format); if (unlikely(!__pyx_tuple__125)) __PYX_ERR(0, 452, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__125);
  __Pyx_GIVEREF(__pyx_tuple__125);
  __pyx_codeobj__126 = (PyObject*)__Pyx_PyCode_New(1, 0, 1, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__125, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_cgl_wrapper_pyx, __pyx_n_s_log_warn, 452, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__126)) __PYX_ERR(0, 452, __pyx_L1_error)

  /* "cgl_wrapper.pyx":455
 *     CGL_logger_log(LOG_LEVEL_WARN, log_format.encode())
 * 
 * def log_error(log_format: str):             # <<<<<<<<<<<<<<
 *     CGL_logger_log(LOG_LEVEL_ERROR, log_format.encode())
 * 
 */
  __pyx_tuple__127 = PyTuple_Pack(1, __pyx_n_s_log_format); if (unlikely(!__pyx_tuple__127)) __PYX_ERR(0, 455, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__127);
  __Pyx_GIVEREF(__pyx_tuple__127);
  __pyx_codeobj__128 = (PyObject*)__Pyx_PyCode_New(1, 0, 1, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__127, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_cgl_wrapper_pyx, __pyx_n_s_log_error, 455, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__128)) __PYX_ERR(0, 455, __pyx_L1_error)

  /* "cgl_wrapper.pyx":458
 *     CGL_logger_log(LOG_LEVEL_ERROR, log_format.encode())
 * 
 * def log_internal(log_format: str):             # <<<<<<<<<<<<<<
 *     CGL_logger_log(LOG_LEVEL_INTERNAL, log_format.encode())
 * 
 */
  __pyx_tuple__129 = PyTuple_Pack(1, __pyx_n_s_log_format); if (unlikely(!__pyx_tuple__129)) __PYX_ERR(0, 458, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__129);
  __Pyx_GIVEREF(__pyx_tuple__129);
  __pyx_codeobj__130 = (PyObject*)__Pyx_PyCode_New(1, 0, 1, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__129, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_cgl_wrapper_pyx, __pyx_n_s_log_internal, 458, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__130)) __PYX_ERR(0, 458, __pyx_L1_error)

  /* "cgl_wrapper.pyx":461
 *     CGL_logger_log(LOG_LEVEL_INTERNAL, log_format.encode())
 * 
 * def utils_crc32(data: bytes) -> int:             # <<<<<<<<<<<<<<
 *     return CGL_utils_crc32(<void*>data, len(data))
 * 
 */
  __pyx_tuple__131 = PyTuple_Pack(1, __pyx_n_s_data); if (unlikely(!__pyx_tuple__131)) __PYX_ERR(0, 461, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__131);
  __Pyx_GIVEREF(__pyx_tuple__131);
  __pyx_codeobj__132 = (PyObject*)__Pyx_PyCode_New(1, 0, 1, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__131, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_cgl_wrapper_pyx, __pyx_n_s_utils_crc32, 461, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__132)) __PYX_ERR(0, 461, __pyx_L1_error)

  /* "cgl_wrapper.pyx":464
 *     return CGL_utils_crc32(<void*>data, len(data))
 * 
 * def utils_crc64(data: bytes) -> int:             # <<<<<<<<<<<<<<
 *     return CGL_utils_crc64(<void*>data, len(data))
 * 
 */
  __pyx_tuple__133 = PyTuple_Pack(1, __pyx_n_s_data); if (unlikely(!__pyx_tuple__133)) __PYX_ERR(0, 464, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__133);
  __Pyx_GIVEREF(__pyx_tuple__133);
  __pyx_codeobj__134 = (PyObject*)__Pyx_PyCode_New(1, 0, 1, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__133, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_cgl_wrapper_pyx, __pyx_n_s_utils_crc64, 464, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__134)) __PYX_ERR(0, 464, __pyx_L1_error)

  /* "cgl_wrapper.pyx":467
 *     return CGL_utils_crc64(<void*>data, len(data))
 * 
 * def utils_rot13(data: bytes) -> bytes:             # <<<<<<<<<<<<<<
 *     result = bytes(len(data))
 *     CGL_utils_rot13(<char*>data, <char*>result)
 */
  __pyx_tuple__135 = PyTuple_Pack(2, __pyx_n_s_data, __pyx_n_s_result); if (unlikely(!__pyx_tuple__135)) __PYX_ERR(0, 467, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__135);
  __Pyx_GIVEREF(__pyx_tuple__135);
  __pyx_codeobj__136 = (PyObject*)__Pyx_PyCode_New(1, 0, 2, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__135, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_cgl_wrapper_pyx, __pyx_n_s_utils_rot13, 467, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__136)) __PYX_ERR(0, 467, __pyx_L1_error)

  /* "cgl_wrapper.pyx":472
 *     return result
 * 
 * def utils_super_fast_hash(data: bytes) -> int:             # <<<<<<<<<<<<<<
 *     return CGL_utils_super_fast_hash(<void*>data, len(data))
 * 
 */
  __pyx_tuple__137 = PyTuple_Pack(1, __pyx_n_s_data); if (unlikely(!__pyx_tuple__137)) __PYX_ERR(0, 472, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__137);
  __Pyx_GIVEREF(__pyx_tuple__137);
  __pyx_codeobj__138 = (PyObject*)__Pyx_PyCode_New(1, 0, 1, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__137, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_cgl_wrapper_pyx, __pyx_n_s_utils_super_fast_hash, 472, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__138)) __PYX_ERR(0, 472, __pyx_L1_error)

  /* "cgl_wrapper.pyx":487
 * SQRT8 = (2.82842712474619009760)
 * 
 * def deg_to_rad(deg):             # <<<<<<<<<<<<<<
 *     return ((deg) * (PI / 180.0))
 * 
 */
  __pyx_tuple__139 = PyTuple_Pack(1, __pyx_n_s_deg); if (unlikely(!__pyx_tuple__139)) __PYX_ERR(0, 487, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__139);
  __Pyx_GIVEREF(__pyx_tuple__139);
  __pyx_codeobj__140 = (PyObject*)__Pyx_PyCode_New(1, 0, 1, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__139, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_cgl_wrapper_pyx, __pyx_n_s_deg_to_rad, 487, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__140)) __PYX_ERR(0, 487, __pyx_L1_error)

  /* "cgl_wrapper.pyx":490
 *     return ((deg) * (PI / 180.0))
 * 
 * def rad_to_deg(rad):             # <<<<<<<<<<<<<<
 *     return ((rad) * (180.0 / PI))
 * 
 */
  __pyx_tuple__141 = PyTuple_Pack(1, __pyx_n_s_rad); if (unlikely(!__pyx_tuple__141)) __PYX_ERR(0, 490, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__141);
  __Pyx_GIVEREF(__pyx_tuple__141);
  __pyx_codeobj__142 = (PyObject*)__Pyx_PyCode_New(1, 0, 1, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__141, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_cgl_wrapper_pyx, __pyx_n_s_rad_to_deg, 490, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__142)) __PYX_ERR(0, 490, __pyx_L1_error)

  /* "cgl_wrapper.pyx":493
 *     return ((rad) * (180.0 / PI))
 * 
 * def float_lerp(a: float, b: float, t: float):             # <<<<<<<<<<<<<<
 *     return ((a) + ((b) - (a)) * (t))
 * 
 */
  __pyx_tuple__143 = PyTuple_Pack(3, __pyx_n_s_a, __pyx_n_s_b, __pyx_n_s_t); if (unlikely(!__pyx_tuple__143)) __PYX_ERR(0, 493, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__143);
  __Pyx_GIVEREF(__pyx_tuple__143);
  __pyx_codeobj__144 = (PyObject*)__Pyx_PyCode_New(3, 0, 3, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__143, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_cgl_wrapper_pyx, __pyx_n_s_float_lerp, 493, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__144)) __PYX_ERR(0, 493, __pyx_L1_error)

  /* "cgl_wrapper.pyx":496
 *     return ((a) + ((b) - (a)) * (t))
 * 
 * def float_quadratic_lerp(a: float, b: float, c: float, t: float) -> float:             # <<<<<<<<<<<<<<
 *     return CGL_float_quadratic_lerp(a, b, c, t)
 * 
 */
  __pyx_tuple__145 = PyTuple_Pack(4, __pyx_n_s_a, __pyx_n_s_b, __pyx_n_s_c, __pyx_n_s_t); if (unlikely(!__pyx_tuple__145)) __PYX_ERR(0, 496, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__145);
  __Pyx_GIVEREF(__pyx_tuple__145);
  __pyx_codeobj__146 = (PyObject*)__Pyx_PyCode_New(4, 0, 4, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__145, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_cgl_wrapper_pyx, __pyx_n_s_float_quadratic_lerp, 496, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__146)) __PYX_ERR(0, 496, __pyx_L1_error)

  /* "cgl_wrapper.pyx":499
 *     return CGL_float_quadratic_lerp(a, b, c, t)
 * 
 * def float_cubic_lerp(a: float, b: float, c: float, d: float, t: float) -> float:             # <<<<<<<<<<<<<<
 *     return CGL_float_cubic_lerp(a, b, c, d, t)
 * 
 */
  __pyx_tuple__147 = PyTuple_Pack(5, __pyx_n_s_a, __pyx_n_s_b, __pyx_n_s_c, __pyx_n_s_d, __pyx_n_s_t); if (unlikely(!__pyx_tuple__147)) __PYX_ERR(0, 499, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__147);
  __Pyx_GIVEREF(__pyx_tuple__147);
  __pyx_codeobj__148 = (PyObject*)__Pyx_PyCode_New(5, 0, 5, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__147, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_cgl_wrapper_pyx, __pyx_n_s_float_cubic_lerp, 499, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__148)) __PYX_ERR(0, 499, __pyx_L1_error)

  /* "cgl_wrapper.pyx":592
 *         return vec2(self.x / length, self.y / length)
 * 
 * def vec2_triple_product(a: vec2, b: vec2, c: vec2) -> vec2:             # <<<<<<<<<<<<<<
 *     cdef CGL_vec2 obj = vec2(CGL_vec2_triple_product(a.c_vec2, b.c_vec2, c.c_vec2))
 *     return vec2(obj.x, obj.y)
 */
  __pyx_tuple__149 = PyTuple_Pack(4, __pyx_n_s_a, __pyx_n_s_b, __pyx_n_s_c, __pyx_n_s_obj); if (unlikely(!__pyx_tuple__149)) __PYX_ERR(0, 592, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__149);
  __Pyx_GIVEREF(__pyx_tuple__149);
  __pyx_codeobj__150 = (PyObject*)__Pyx_PyCode_New(3, 0, 4, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__149, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_cgl_wrapper_pyx, __pyx_n_s_vec2_triple_product, 592, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__150)) __PYX_ERR(0, 592, __pyx_L1_error)

  /* "cgl_wrapper.pyx":696
 *         return vec3(self.x / length, self.y / length, self.z / length)
 * 
 * def vec3_reflect(a: vec3, n: vec3) -> vec3:             # <<<<<<<<<<<<<<
 *     cdef CGL_vec3 obj = vec3(CGL_vec3_reflect(a.c_vec3, n.c_vec3))
 *     return vec3(obj.x, obj.y, obj.z)
 */
  __pyx_tuple__151 = PyTuple_Pack(3, __pyx_n_s_a, __pyx_n_s_n, __pyx_n_s_obj); if (unlikely(!__pyx_tuple__151)) __PYX_ERR(0, 696, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__151);
  __Pyx_GIVEREF(__pyx_tuple__151);
  __pyx_codeobj__152 = (PyObject*)__Pyx_PyCode_New(2, 0, 3, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__151, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_cgl_wrapper_pyx, __pyx_n_s_vec3_reflect, 696, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__152)) __PYX_ERR(0, 696, __pyx_L1_error)

  /* "cgl_wrapper.pyx":700
 *     return vec3(obj.x, obj.y, obj.z)
 * 
 * def vec3_rotate_about_axis(v: vec3, axis: vec3, theta: float) -> vec3:             # <<<<<<<<<<<<<<
 *     cdef CGL_vec3 obj = vec3(CGL_vec3_rotate_about_axis(v.c_vec3, axis.c_vec3, theta))
 *     return vec3(obj.x, obj.y, obj.z)
 */
  __pyx_tuple__153 = PyTuple_Pack(4, __pyx_n_s_v, __pyx_n_s_axis, __pyx_n_s_theta, __pyx_n_s_obj); if (unlikely(!__pyx_tuple__153)) __PYX_ERR(0, 700, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__153);
  __Pyx_GIVEREF(__pyx_tuple__153);
  __pyx_codeobj__154 = (PyObject*)__Pyx_PyCode_New(3, 0, 4, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__153, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_cgl_wrapper_pyx, __pyx_n_s_vec3_rotate_about_axis, 700, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__154)) __PYX_ERR(0, 700, __pyx_L1_error)

  /* "cgl_wrapper.pyx":704
 *     return vec3(obj.x, obj.y, obj.z)
 * 
 * def vec3_triple_product(a: vec3, b: vec3, c: vec3) -> vec3:             # <<<<<<<<<<<<<<
 *     cdef CGL_vec3 obj = vec3(CGL_vec3_triple_product(a.c_vec3, b.c_vec3, c.c_vec3))
 *     return vec3(obj.x, obj.y, obj.z)
 */
  __pyx_tuple__155 = PyTuple_Pack(4, __pyx_n_s_a, __pyx_n_s_b, __pyx_n_s_c, __pyx_n_s_obj); if (unlikely(!__pyx_tuple__155)) __PYX_ERR(0, 704, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__155);
  __Pyx_GIVEREF(__pyx_tuple__155);
  __pyx_codeobj__156 = (PyObject*)__Pyx_PyCode_New(3, 0, 4, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__155, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_cgl_wrapper_pyx, __pyx_n_s_vec3_triple_product, 704, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__156)) __PYX_ERR(0, 704, __pyx_L1_error)

  /* "cgl_wrapper.pyx":814
 *         return vec4(self.x / length, self.y / length, self.z / length, self.w / length)
 * 
 * def vec4_triple_product(a: vec4, b: vec4, c: vec4) -> vec4:             # <<<<<<<<<<<<<<
 *     cdef CGL_vec4 obj = vec4(CGL_vec4_triple_product(a.c_vec4, b.c_vec4, c.c_vec4))
 *     return vec4(obj.x, obj.y, obj.z, obj.w)
 */
  __pyx_tuple__157 = PyTuple_Pack(4, __pyx_n_s_a, __pyx_n_s_b, __pyx_n_s_c, __pyx_n_s_obj); if (unlikely(!__pyx_tuple__157)) __PYX_ERR(0, 814, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__157);
  __Pyx_GIVEREF(__pyx_tuple__157);
  __pyx_codeobj__158 = (PyObject*)__Pyx_PyCode_New(3, 0, 4, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__157, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_cgl_wrapper_pyx, __pyx_n_s_vec4_triple_product, 814, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__158)) __PYX_ERR(0, 814, __pyx_L1_error)

  /* "cgl_wrapper.pyx":916
 *         return hash((self.c_mat4.m[0], self.c_mat4.m[1], self.c_mat4.m[2], self.c_mat4.m[3], self.c_mat4.m[4], self.c_mat4.m[5], self.c_mat4.m[6], self.c_mat4.m[7], self.c_mat4.m[8], self.c_mat4.m[9], self.c_mat4.m[10], self.c_mat4.m[11], self.c_mat4.m[12], self.c_mat4.m[13], self.c_mat4.m[14], self.c_mat4.m[15]))
 * 
 * def mat4_mul(a: mat4, b: mat4) -> mat4:             # <<<<<<<<<<<<<<
 *     cdef CGL_mat4 obj = CGL_mat4_mul(a.c_mat4, b.c_mat4)
 *     result = mat4()
 */
  __pyx_tuple__159 = PyTuple_Pack(4, __pyx_n_s_a, __pyx_n_s_b, __pyx_n_s_obj, __pyx_n_s_result); if (unlikely(!__pyx_tuple__159)) __PYX_ERR(0, 916, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__159);
  __Pyx_GIVEREF(__pyx_tuple__159);
  __pyx_codeobj__160 = (PyObject*)__Pyx_PyCode_New(2, 0, 4, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__159, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_cgl_wrapper_pyx, __pyx_n_s_mat4_mul, 916, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__160)) __PYX_ERR(0, 916, __pyx_L1_error)

  /* "cgl_wrapper.pyx":922
 *     return result
 * 
 * def mat4_det(m: mat4) -> float:             # <<<<<<<<<<<<<<
 *     return CGL_mat4_det(m.c_mat4)
 * 
 */
  __pyx_tuple__161 = PyTuple_Pack(1, __pyx_n_s_m); if (unlikely(!__pyx_tuple__161)) __PYX_ERR(0, 922, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__161);
  __Pyx_GIVEREF(__pyx_tuple__161);
  __pyx_codeobj__162 = (PyObject*)__Pyx_PyCode_New(1, 0, 1, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__161, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_cgl_wrapper_pyx, __pyx_n_s_mat4_det, 922, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__162)) __PYX_ERR(0, 922, __pyx_L1_error)

  /* "cgl_wrapper.pyx":925
 *     return CGL_mat4_det(m.c_mat4)
 * 
 * def mat4_det_by_lu(m: mat4) -> float:             # <<<<<<<<<<<<<<
 *     return CGL_mat4_det_by_lu(m.c_mat4)
 * 
 */
  __pyx_tuple__163 = PyTuple_Pack(1, __pyx_n_s_m); if (unlikely(!__pyx_tuple__163)) __PYX_ERR(0, 925, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__163);
  __Pyx_GIVEREF(__pyx_tuple__163);
  __pyx_codeobj__164 = (PyObject*)__Pyx_PyCode_New(1, 0, 1, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__163, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_cgl_wrapper_pyx, __pyx_n_s_mat4_det_by_lu, 925, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__164)) __PYX_ERR(0, 925, __pyx_L1_error)

  /* "cgl_wrapper.pyx":928
 *     return CGL_mat4_det_by_lu(m.c_mat4)
 * 
 * def mat4_det_by_gauss(m: mat4) -> float:             # <<<<<<<<<<<<<<
 *     return CGL_mat4_det_by_gauss(m.c_mat4)
 * 
 */
  __pyx_tuple__165 = PyTuple_Pack(1, __pyx_n_s_m); if (unlikely(!__pyx_tuple__165)) __PYX_ERR(0, 928, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__165);
  __Pyx_GIVEREF(__pyx_tuple__165);
  __pyx_codeobj__166 = (PyObject*)__Pyx_PyCode_New(1, 0, 1, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__165, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_cgl_wrapper_pyx, __pyx_n_s_mat4_det_by_gauss, 928, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__166)) __PYX_ERR(0, 928, __pyx_L1_error)

  /* "cgl_wrapper.pyx":931
 *     return CGL_mat4_det_by_gauss(m.c_mat4)
 * 
 * def mat4_mul_vec4(m: mat4, v: vec4) -> vec4:             # <<<<<<<<<<<<<<
 *     cdef CGL_vec4 obj = CGL_mat4_mul_vec4(m.c_mat4, v.c_vec4)
 *     return vec4(obj.x, obj.y, obj.z, obj.w)
 */
  __pyx_tuple__167 = PyTuple_Pack(3, __pyx_n_s_m, __pyx_n_s_v, __pyx_n_s_obj); if (unlikely(!__pyx_tuple__167)) __PYX_ERR(0, 931, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__167);
  __Pyx_GIVEREF(__pyx_tuple__167);
  __pyx_codeobj__168 = (PyObject*)__Pyx_PyCode_New(2, 0, 3, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__167, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_cgl_wrapper_pyx, __pyx_n_s_mat4_mul_vec4, 931, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__168)) __PYX_ERR(0, 931, __pyx_L1_error)

  /* "cgl_wrapper.pyx":935
 *     return vec4(obj.x, obj.y, obj.z, obj.w)
 * 
 * def mat4_inverse(m: mat4) -> mat4:             # <<<<<<<<<<<<<<
 *     cdef CGL_mat4 obj = CGL_mat4_inverse(m.c_mat4)
 *     result = mat4()
 */
  __pyx_tuple__169 = PyTuple_Pack(3, __pyx_n_s_m, __pyx_n_s_obj, __pyx_n_s_result); if (unlikely(!__pyx_tuple__169)) __PYX_ERR(0, 935, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__169);
  __Pyx_GIVEREF(__pyx_tuple__169);
  __pyx_codeobj__170 = (PyObject*)__Pyx_PyCode_New(1, 0, 3, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__169, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_cgl_wrapper_pyx, __pyx_n_s_mat4_inverse, 935, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__170)) __PYX_ERR(0, 935, __pyx_L1_error)

  /* "cgl_wrapper.pyx":941
 *     return result
 * 
 * def mat4_transpose(m: mat4) -> mat4:             # <<<<<<<<<<<<<<
 *     cdef CGL_mat4 obj = CGL_mat4_transpose(m.c_mat4)
 *     result = mat4()
 */
  __pyx_tuple__171 = PyTuple_Pack(3, __pyx_n_s_m, __pyx_n_s_obj, __pyx_n_s_result); if (unlikely(!__pyx_tuple__171)) __PYX_ERR(0, 941, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__171);
  __Pyx_GIVEREF(__pyx_tuple__171);
  __pyx_codeobj__172 = (PyObject*)__Pyx_PyCode_New(1, 0, 3, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__171, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_cgl_wrapper_pyx, __pyx_n_s_mat4_transpose, 941, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__172)) __PYX_ERR(0, 941, __pyx_L1_error)

  /* "cgl_wrapper.pyx":947
 *     return result
 * 
 * def mat4_adjoint(m: mat4) -> mat4:             # <<<<<<<<<<<<<<
 *     cdef CGL_mat4 obj = CGL_mat4_adjoint(m.c_mat4)
 *     result = mat4()
 */
  __pyx_tuple__173 = PyTuple_Pack(3, __pyx_n_s_m, __pyx_n_s_obj, __pyx_n_s_result); if (unlikely(!__pyx_tuple__173)) __PYX_ERR(0, 947, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__173);
  __Pyx_GIVEREF(__pyx_tuple__173);
  __pyx_codeobj__174 = (PyObject*)__Pyx_PyCode_New(1, 0, 3, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__173, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_cgl_wrapper_pyx, __pyx_n_s_mat4_adjoint, 947, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__174)) __PYX_ERR(0, 947, __pyx_L1_error)

  /* "cgl_wrapper.pyx":953
 *     return result
 * 
 * def mat4_gauss_elim(m: mat4) -> mat4:             # <<<<<<<<<<<<<<
 *     cdef CGL_mat4 obj = CGL_mat4_gauss_elim(m.c_mat4)
 *     result = mat4()
 */
  __pyx_tuple__175 = PyTuple_Pack(3, __pyx_n_s_m, __pyx_n_s_obj, __pyx_n_s_result); if (unlikely(!__pyx_tuple__175)) __PYX_ERR(0, 953, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__175);
  __Pyx_GIVEREF(__pyx_tuple__175);
  __pyx_codeobj__176 = (PyObject*)__Pyx_PyCode_New(1, 0, 3, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__175, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_cgl_wrapper_pyx, __pyx_n_s_mat4_gauss_elim, 953, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__176)) __PYX_ERR(0, 953, __pyx_L1_error)

  /* "cgl_wrapper.pyx":959
 *     return result
 * 
 * def mat4_rank(m: mat4) -> int:             # <<<<<<<<<<<<<<
 *     return CGL_mat4_rank(m.c_mat4)
 * 
 */
  __pyx_tuple__177 = PyTuple_Pack(1, __pyx_n_s_m); if (unlikely(!__pyx_tuple__177)) __PYX_ERR(0, 959, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__177);
  __Pyx_GIVEREF(__pyx_tuple__177);
  __pyx_codeobj__178 = (PyObject*)__Pyx_PyCode_New(1, 0, 1, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__177, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_cgl_wrapper_pyx, __pyx_n_s_mat4_rank, 959, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__178)) __PYX_ERR(0, 959, __pyx_L1_error)

  /* "cgl_wrapper.pyx":962
 *     return CGL_mat4_rank(m.c_mat4)
 * 
 * def mat4_trace(m: mat4) -> float:             # <<<<<<<<<<<<<<
 *     return CGL_mat4_trace(m.c_mat4)
 * 
 */
  __pyx_tuple__179 = PyTuple_Pack(1, __pyx_n_s_m); if (unlikely(!__pyx_tuple__179)) __PYX_ERR(0, 962, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__179);
  __Pyx_GIVEREF(__pyx_tuple__179);
  __pyx_codeobj__180 = (PyObject*)__Pyx_PyCode_New(1, 0, 1, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__179, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_cgl_wrapper_pyx, __pyx_n_s_mat4_trace, 962, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__180)) __PYX_ERR(0, 962, __pyx_L1_error)

  /* "cgl_wrapper.pyx":965
 *     return CGL_mat4_trace(m.c_mat4)
 * 
 * def mat4_rotate_about_axis(axis: vec3, angle: float) -> mat4:             # <<<<<<<<<<<<<<
 *     cdef CGL_mat4 obj = CGL_mat4_rotate_about_axis(axis.c_vec3, angle)
 *     result = mat4()
 */
  __pyx_tuple__181 = PyTuple_Pack(4, __pyx_n_s_axis, __pyx_n_s_angle, __pyx_n_s_obj, __pyx_n_s_result); if (unlikely(!__pyx_tuple__181)) __PYX_ERR(0, 965, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__181);
  __Pyx_GIVEREF(__pyx_tuple__181);
  __pyx_codeobj__182 = (PyObject*)__Pyx_PyCode_New(2, 0, 4, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__181, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_cgl_wrapper_pyx, __pyx_n_s_mat4_rotate_about_axis, 965, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__182)) __PYX_ERR(0, 965, __pyx_L1_error)

  /* "cgl_wrapper.pyx":971
 *     return result
 * 
 * def mat4_look_at(eye: vec3, target: vec3, up: vec3) -> mat4:             # <<<<<<<<<<<<<<
 *     cdef CGL_mat4 obj = CGL_mat4_look_at(eye.c_vec3, target.c_vec3, up.c_vec3)
 *     result = mat4()
 */
  __pyx_tuple__183 = PyTuple_Pack(5, __pyx_n_s_eye, __pyx_n_s_target, __pyx_n_s_up, __pyx_n_s_obj, __pyx_n_s_result); if (unlikely(!__pyx_tuple__183)) __PYX_ERR(0, 971, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__183);
  __Pyx_GIVEREF(__pyx_tuple__183);
  __pyx_codeobj__184 = (PyObject*)__Pyx_PyCode_New(3, 0, 5, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__183, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_cgl_wrapper_pyx, __pyx_n_s_mat4_look_at, 971, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__184)) __PYX_ERR(0, 971, __pyx_L1_error)

  /* "cgl_wrapper.pyx":977
 *     return result
 * 
 * def mat4_lerp(a: mat4, b: mat4, t: float) -> mat4:             # <<<<<<<<<<<<<<
 *     cdef CGL_mat4 obj = CGL_mat4_lerp(a.c_mat4, b.c_mat4, t)
 *     result = mat4()
 */
  __pyx_tuple__185 = PyTuple_Pack(5, __pyx_n_s_a, __pyx_n_s_b, __pyx_n_s_t, __pyx_n_s_obj, __pyx_n_s_result); if (unlikely(!__pyx_tuple__185)) __PYX_ERR(0, 977, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__185);
  __Pyx_GIVEREF(__pyx_tuple__185);
  __pyx_codeobj__186 = (PyObject*)__Pyx_PyCode_New(3, 0, 5, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__185, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_cgl_wrapper_pyx, __pyx_n_s_mat4_lerp, 977, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__186)) __PYX_ERR(0, 977, __pyx_L1_error)

  /* "cgl_wrapper.pyx":983
 *     return result
 * 
 * def mat4_decompose_lu(m: mat4, l: mat4, u: mat4):             # <<<<<<<<<<<<<<
 *     cdef CGL_mat4 l_obj = CGL_mat4()
 *     cdef CGL_mat4 u_obj = CGL_mat4()
 */
  __pyx_tuple__187 = PyTuple_Pack(5, __pyx_n_s_m, __pyx_n_s_l, __pyx_n_s_u, __pyx_n_s_l_obj, __pyx_n_s_u_obj); if (unlikely(!__pyx_tuple__187)) __PYX_ERR(0, 983, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__187);
  __Pyx_GIVEREF(__pyx_tuple__187);
  __pyx_codeobj__188 = (PyObject*)__Pyx_PyCode_New(3, 0, 5, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__187, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_cgl_wrapper_pyx, __pyx_n_s_mat4_decompose_lu, 983, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__188)) __PYX_ERR(0, 983, __pyx_L1_error)

  /* "cgl_wrapper.pyx":993
 *     return (l, u)
 * 
 * def mat4_perspective(fov: float, aspect: float, near: float, far: float) -> mat4:             # <<<<<<<<<<<<<<
 *     cdef CGL_mat4 obj = CGL_mat4_perspective(fov, aspect, near, far)
 *     result = mat4()
 */
  __pyx_tuple__189 = PyTuple_Pack(6, __pyx_n_s_fov, __pyx_n_s_aspect, __pyx_n_s_near, __pyx_n_s_far, __pyx_n_s_obj, __pyx_n_s_result); if (unlikely(!__pyx_tuple__189)) __PYX_ERR(0, 993, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__189);
  __Pyx_GIVEREF(__pyx_tuple__189);
  __pyx_codeobj__190 = (PyObject*)__Pyx_PyCode_New(4, 0, 6, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__189, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_cgl_wrapper_pyx, __pyx_n_s_mat4_perspective, 993, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__190)) __PYX_ERR(0, 993, __pyx_L1_error)

  /* "cgl_wrapper.pyx":999
 *     return result
 * 
 * def mat4_orthographic(left: float, right: float, bottom: float, top: float, near: float, far: float) -> mat4:             # <<<<<<<<<<<<<<
 *     cdef CGL_mat4 obj = CGL_mat4_orthographic(left, right, bottom, top, near, far)
 *     result = mat4()
 */
  __pyx_tuple__191 = PyTuple_Pack(8, __pyx_n_s_left, __pyx_n_s_right, __pyx_n_s_bottom, __pyx_n_s_top, __pyx_n_s_near, __pyx_n_s_far, __pyx_n_s_obj, __pyx_n_s_result); if (unlikely(!__pyx_tuple__191)) __PYX_ERR(0, 999, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__191);
  __Pyx_GIVEREF(__pyx_tuple__191);
  __pyx_codeobj__192 = (PyObject*)__Pyx_PyCode_New(6, 0, 8, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__191, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_cgl_wrapper_pyx, __pyx_n_s_mat4_orthographic, 999, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__192)) __PYX_ERR(0, 999, __pyx_L1_error)

  /* "cgl_wrapper.pyx":1005
 *     return result
 * 
 * def mat4_zero() -> mat4:             # <<<<<<<<<<<<<<
 *     cdef CGL_mat4 obj = CGL_mat4_zero()
 *     result = mat4()
 */
  __pyx_tuple__193 = PyTuple_Pack(2, __pyx_n_s_obj, __pyx_n_s_result); if (unlikely(!__pyx_tuple__193)) __PYX_ERR(0, 1005, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__193);
  __Pyx_GIVEREF(__pyx_tuple__193);
  __pyx_codeobj__194 = (PyObject*)__Pyx_PyCode_New(0, 0, 2, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__193, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_cgl_wrapper_pyx, __pyx_n_s_mat4_zero, 1005, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__194)) __PYX_ERR(0, 1005, __pyx_L1_error)

  /* "cgl_wrapper.pyx":1011
 *     return result
 * 
 * def mat4_identity() -> mat4:             # <<<<<<<<<<<<<<
 *     cdef CGL_mat4 obj = CGL_mat4_identity()
 *     result = mat4()
 */
  __pyx_tuple__195 = PyTuple_Pack(2, __pyx_n_s_obj, __pyx_n_s_result); if (unlikely(!__pyx_tuple__195)) __PYX_ERR(0, 1011, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__195);
  __Pyx_GIVEREF(__pyx_tuple__195);
  __pyx_codeobj__196 = (PyObject*)__Pyx_PyCode_New(0, 0, 2, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__195, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_cgl_wrapper_pyx, __pyx_n_s_mat4_identity, 1011, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__196)) __PYX_ERR(0, 1011, __pyx_L1_error)

  /* "cgl_wrapper.pyx":1018
 * 
 * 
 * def mat4_scale(x: float, y: float, z: float) -> mat4:             # <<<<<<<<<<<<<<
 *     cdef CGL_mat4 obj = CGL_mat4_scale(x, y, z)
 *     result = mat4()
 */
  __pyx_tuple__197 = PyTuple_Pack(5, __pyx_n_s_x, __pyx_n_s_y, __pyx_n_s_z, __pyx_n_s_obj, __pyx_n_s_result); if (unlikely(!__pyx_tuple__197)) __PYX_ERR(0, 1018, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__197);
  __Pyx_GIVEREF(__pyx_tuple__197);
  __pyx_codeobj__198 = (PyObject*)__Pyx_PyCode_New(3, 0, 5, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__197, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_cgl_wrapper_pyx, __pyx_n_s_mat4_scale, 1018, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__198)) __PYX_ERR(0, 1018, __pyx_L1_error)

  /* "cgl_wrapper.pyx":1024
 *     return result
 * 
 * def mat4_translate(x: float, y: float, z: float) -> mat4:             # <<<<<<<<<<<<<<
 *     cdef CGL_mat4 obj = CGL_mat4_translate(x, y, z)
 *     result = mat4()
 */
  __pyx_tuple__199 = PyTuple_Pack(5, __pyx_n_s_x, __pyx_n_s_y, __pyx_n_s_z, __pyx_n_s_obj, __pyx_n_s_result); if (unlikely(!__pyx_tuple__199)) __PYX_ERR(0, 1024, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__199);
  __Pyx_GIVEREF(__pyx_tuple__199);
  __pyx_codeobj__200 = (PyObject*)__Pyx_PyCode_New(3, 0, 5, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__199, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_cgl_wrapper_pyx, __pyx_n_s_mat4_translate, 1024, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__200)) __PYX_ERR(0, 1024, __pyx_L1_error)

  /* "cgl_wrapper.pyx":1030
 *     return result
 * 
 * def mat4_rotate_x(angle: float) -> mat4:             # <<<<<<<<<<<<<<
 *     cdef CGL_mat4 obj = CGL_mat4_rotate_x(angle)
 *     result = mat4()
 */
  __pyx_tuple__201 = PyTuple_Pack(4, __pyx_n_s_angle, __pyx_n_s_angle, __pyx_n_s_obj, __pyx_n_s_result); if (unlikely(!__pyx_tuple__201)) __PYX_ERR(0, 1030, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__201);
  __Pyx_GIVEREF(__pyx_tuple__201);
  __pyx_codeobj__202 = (PyObject*)__Pyx_PyCode_New(1, 0, 4, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__201, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_cgl_wrapper_pyx, __pyx_n_s_mat4_rotate_x, 1030, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__202)) __PYX_ERR(0, 1030, __pyx_L1_error)

  /* "cgl_wrapper.pyx":1036
 *     return result
 * 
 * def mat4_rotate_y(angle: float) -> mat4:             # <<<<<<<<<<<<<<
 *     cdef CGL_mat4 obj = CGL_mat4_rotate_y(angle)
 *     result = mat4()
 */
  __pyx_tuple__203 = PyTuple_Pack(4, __pyx_n_s_angle, __pyx_n_s_angle, __pyx_n_s_obj, __pyx_n_s_result); if (unlikely(!__pyx_tuple__203)) __PYX_ERR(0, 1036, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__203);
  __Pyx_GIVEREF(__pyx_tuple__203);
  __pyx_codeobj__204 = (PyObject*)__Pyx_PyCode_New(1, 0, 4, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__203, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_cgl_wrapper_pyx, __pyx_n_s_mat4_rotate_y, 1036, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__204)) __PYX_ERR(0, 1036, __pyx_L1_error)

  /* "cgl_wrapper.pyx":1042
 *     return result
 * 
 * def mat4_rotate_z(angle: float) -> mat4:             # <<<<<<<<<<<<<<
 *     cdef CGL_mat4 obj = CGL_mat4_rotate_z(angle)
 *     result = mat4()
 */
  __pyx_tuple__205 = PyTuple_Pack(4, __pyx_n_s_angle, __pyx_n_s_angle, __pyx_n_s_obj, __pyx_n_s_result); if (unlikely(!__pyx_tuple__205)) __PYX_ERR(0, 1042, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__205);
  __Pyx_GIVEREF(__pyx_tuple__205);
  __pyx_codeobj__206 = (PyObject*)__Pyx_PyCode_New(1, 0, 4, 0, CO_OPTIMIZED|CO_NEWLOCALS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__205, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_cgl_wrapper_pyx, __pyx_n_s_mat4_rotate_z, 1042, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__206)) __PYX_ERR(0, 1042, __pyx_L1_error)
  __Pyx_RefNannyFinishContext();
  return 0;
  __pyx_L1_error:;
  __Pyx_RefNannyFinishContext();
  return -1;
}

static CYTHON_SMALL_CODE int __Pyx_InitGlobals(void) {
  __pyx_umethod_PyString_Type_encode.type = (PyObject*)&PyString_Type;
  if (__Pyx_InitStrings(__pyx_string_tab) < 0) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_float_0_0 = PyFloat_FromDouble(0.0); if (unlikely(!__pyx_float_0_0)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_float_1_0 = PyFloat_FromDouble(1.0); if (unlikely(!__pyx_float_1_0)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_float_180_0 = PyFloat_FromDouble(180.0); if (unlikely(!__pyx_float_180_0)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_float_1_41421356237309504880 = PyFloat_FromDouble(1.41421356237309504880); if (unlikely(!__pyx_float_1_41421356237309504880)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_float_1_57079632679489661923 = PyFloat_FromDouble(1.57079632679489661923); if (unlikely(!__pyx_float_1_57079632679489661923)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_float_1_73205080756887729352 = PyFloat_FromDouble(1.73205080756887729352); if (unlikely(!__pyx_float_1_73205080756887729352)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_float_2_23606797749978969640 = PyFloat_FromDouble(2.23606797749978969640); if (unlikely(!__pyx_float_2_23606797749978969640)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_float_2_44948974278317809820 = PyFloat_FromDouble(2.44948974278317809820); if (unlikely(!__pyx_float_2_44948974278317809820)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_float_2_64575131106459059050 = PyFloat_FromDouble(2.64575131106459059050); if (unlikely(!__pyx_float_2_64575131106459059050)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_float_2_71828182845904523536 = PyFloat_FromDouble(2.71828182845904523536); if (unlikely(!__pyx_float_2_71828182845904523536)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_float_2_82842712474619009760 = PyFloat_FromDouble(2.82842712474619009760); if (unlikely(!__pyx_float_2_82842712474619009760)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_float_3_14159265358979323846 = PyFloat_FromDouble(3.14159265358979323846); if (unlikely(!__pyx_float_3_14159265358979323846)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_float_6_28318530717958647692 = PyFloat_FromDouble(6.28318530717958647692); if (unlikely(!__pyx_float_6_28318530717958647692)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_0 = PyInt_FromLong(0); if (unlikely(!__pyx_int_0)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_1 = PyInt_FromLong(1); if (unlikely(!__pyx_int_1)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_2 = PyInt_FromLong(2); if (unlikely(!__pyx_int_2)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_3 = PyInt_FromLong(3); if (unlikely(!__pyx_int_3)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_4 = PyInt_FromLong(4); if (unlikely(!__pyx_int_4)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_5 = PyInt_FromLong(5); if (unlikely(!__pyx_int_5)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_6 = PyInt_FromLong(6); if (unlikely(!__pyx_int_6)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_7 = PyInt_FromLong(7); if (unlikely(!__pyx_int_7)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_32 = PyInt_FromLong(32); if (unlikely(!__pyx_int_32)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_39 = PyInt_FromLong(39); if (unlikely(!__pyx_int_39)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_44 = PyInt_FromLong(44); if (unlikely(!__pyx_int_44)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_45 = PyInt_FromLong(45); if (unlikely(!__pyx_int_45)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_46 = PyInt_FromLong(46); if (unlikely(!__pyx_int_46)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_47 = PyInt_FromLong(47); if (unlikely(!__pyx_int_47)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_48 = PyInt_FromLong(48); if (unlikely(!__pyx_int_48)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_49 = PyInt_FromLong(49); if (unlikely(!__pyx_int_49)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_50 = PyInt_FromLong(50); if (unlikely(!__pyx_int_50)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_51 = PyInt_FromLong(51); if (unlikely(!__pyx_int_51)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_52 = PyInt_FromLong(52); if (unlikely(!__pyx_int_52)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_53 = PyInt_FromLong(53); if (unlikely(!__pyx_int_53)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_54 = PyInt_FromLong(54); if (unlikely(!__pyx_int_54)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_55 = PyInt_FromLong(55); if (unlikely(!__pyx_int_55)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_56 = PyInt_FromLong(56); if (unlikely(!__pyx_int_56)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_57 = PyInt_FromLong(57); if (unlikely(!__pyx_int_57)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_59 = PyInt_FromLong(59); if (unlikely(!__pyx_int_59)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_61 = PyInt_FromLong(61); if (unlikely(!__pyx_int_61)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_65 = PyInt_FromLong(65); if (unlikely(!__pyx_int_65)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_66 = PyInt_FromLong(66); if (unlikely(!__pyx_int_66)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_67 = PyInt_FromLong(67); if (unlikely(!__pyx_int_67)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_68 = PyInt_FromLong(68); if (unlikely(!__pyx_int_68)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_69 = PyInt_FromLong(69); if (unlikely(!__pyx_int_69)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_70 = PyInt_FromLong(70); if (unlikely(!__pyx_int_70)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_71 = PyInt_FromLong(71); if (unlikely(!__pyx_int_71)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_72 = PyInt_FromLong(72); if (unlikely(!__pyx_int_72)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_73 = PyInt_FromLong(73); if (unlikely(!__pyx_int_73)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_74 = PyInt_FromLong(74); if (unlikely(!__pyx_int_74)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_75 = PyInt_FromLong(75); if (unlikely(!__pyx_int_75)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_76 = PyInt_FromLong(76); if (unlikely(!__pyx_int_76)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_77 = PyInt_FromLong(77); if (unlikely(!__pyx_int_77)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_78 = PyInt_FromLong(78); if (unlikely(!__pyx_int_78)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_79 = PyInt_FromLong(79); if (unlikely(!__pyx_int_79)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_80 = PyInt_FromLong(80); if (unlikely(!__pyx_int_80)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_81 = PyInt_FromLong(81); if (unlikely(!__pyx_int_81)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_82 = PyInt_FromLong(82); if (unlikely(!__pyx_int_82)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_83 = PyInt_FromLong(83); if (unlikely(!__pyx_int_83)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_84 = PyInt_FromLong(84); if (unlikely(!__pyx_int_84)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_85 = PyInt_FromLong(85); if (unlikely(!__pyx_int_85)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_86 = PyInt_FromLong(86); if (unlikely(!__pyx_int_86)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_87 = PyInt_FromLong(87); if (unlikely(!__pyx_int_87)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_88 = PyInt_FromLong(88); if (unlikely(!__pyx_int_88)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_89 = PyInt_FromLong(89); if (unlikely(!__pyx_int_89)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_90 = PyInt_FromLong(90); if (unlikely(!__pyx_int_90)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_91 = PyInt_FromLong(91); if (unlikely(!__pyx_int_91)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_92 = PyInt_FromLong(92); if (unlikely(!__pyx_int_92)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_93 = PyInt_FromLong(93); if (unlikely(!__pyx_int_93)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_96 = PyInt_FromLong(96); if (unlikely(!__pyx_int_96)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_161 = PyInt_FromLong(161); if (unlikely(!__pyx_int_161)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_162 = PyInt_FromLong(162); if (unlikely(!__pyx_int_162)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_256 = PyInt_FromLong(256); if (unlikely(!__pyx_int_256)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_257 = PyInt_FromLong(257); if (unlikely(!__pyx_int_257)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_258 = PyInt_FromLong(258); if (unlikely(!__pyx_int_258)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_259 = PyInt_FromLong(259); if (unlikely(!__pyx_int_259)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_260 = PyInt_FromLong(260); if (unlikely(!__pyx_int_260)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_261 = PyInt_FromLong(261); if (unlikely(!__pyx_int_261)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_262 = PyInt_FromLong(262); if (unlikely(!__pyx_int_262)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_263 = PyInt_FromLong(263); if (unlikely(!__pyx_int_263)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_264 = PyInt_FromLong(264); if (unlikely(!__pyx_int_264)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_265 = PyInt_FromLong(265); if (unlikely(!__pyx_int_265)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_266 = PyInt_FromLong(266); if (unlikely(!__pyx_int_266)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_267 = PyInt_FromLong(267); if (unlikely(!__pyx_int_267)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_268 = PyInt_FromLong(268); if (unlikely(!__pyx_int_268)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_269 = PyInt_FromLong(269); if (unlikely(!__pyx_int_269)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_280 = PyInt_FromLong(280); if (unlikely(!__pyx_int_280)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_281 = PyInt_FromLong(281); if (unlikely(!__pyx_int_281)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_282 = PyInt_FromLong(282); if (unlikely(!__pyx_int_282)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_283 = PyInt_FromLong(283); if (unlikely(!__pyx_int_283)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_284 = PyInt_FromLong(284); if (unlikely(!__pyx_int_284)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_290 = PyInt_FromLong(290); if (unlikely(!__pyx_int_290)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_291 = PyInt_FromLong(291); if (unlikely(!__pyx_int_291)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_292 = PyInt_FromLong(292); if (unlikely(!__pyx_int_292)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_293 = PyInt_FromLong(293); if (unlikely(!__pyx_int_293)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_294 = PyInt_FromLong(294); if (unlikely(!__pyx_int_294)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_295 = PyInt_FromLong(295); if (unlikely(!__pyx_int_295)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_296 = PyInt_FromLong(296); if (unlikely(!__pyx_int_296)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_297 = PyInt_FromLong(297); if (unlikely(!__pyx_int_297)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_298 = PyInt_FromLong(298); if (unlikely(!__pyx_int_298)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_299 = PyInt_FromLong(299); if (unlikely(!__pyx_int_299)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_300 = PyInt_FromLong(300); if (unlikely(!__pyx_int_300)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_301 = PyInt_FromLong(301); if (unlikely(!__pyx_int_301)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_302 = PyInt_FromLong(302); if (unlikely(!__pyx_int_302)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_303 = PyInt_FromLong(303); if (unlikely(!__pyx_int_303)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_304 = PyInt_FromLong(304); if (unlikely(!__pyx_int_304)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_305 = PyInt_FromLong(305); if (unlikely(!__pyx_int_305)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_306 = PyInt_FromLong(306); if (unlikely(!__pyx_int_306)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_307 = PyInt_FromLong(307); if (unlikely(!__pyx_int_307)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_308 = PyInt_FromLong(308); if (unlikely(!__pyx_int_308)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_309 = PyInt_FromLong(309); if (unlikely(!__pyx_int_309)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_310 = PyInt_FromLong(310); if (unlikely(!__pyx_int_310)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_311 = PyInt_FromLong(311); if (unlikely(!__pyx_int_311)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_312 = PyInt_FromLong(312); if (unlikely(!__pyx_int_312)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_313 = PyInt_FromLong(313); if (unlikely(!__pyx_int_313)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_314 = PyInt_FromLong(314); if (unlikely(!__pyx_int_314)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_320 = PyInt_FromLong(320); if (unlikely(!__pyx_int_320)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_321 = PyInt_FromLong(321); if (unlikely(!__pyx_int_321)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_322 = PyInt_FromLong(322); if (unlikely(!__pyx_int_322)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_323 = PyInt_FromLong(323); if (unlikely(!__pyx_int_323)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_324 = PyInt_FromLong(324); if (unlikely(!__pyx_int_324)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_325 = PyInt_FromLong(325); if (unlikely(!__pyx_int_325)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_326 = PyInt_FromLong(326); if (unlikely(!__pyx_int_326)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_327 = PyInt_FromLong(327); if (unlikely(!__pyx_int_327)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_328 = PyInt_FromLong(328); if (unlikely(!__pyx_int_328)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_329 = PyInt_FromLong(329); if (unlikely(!__pyx_int_329)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_330 = PyInt_FromLong(330); if (unlikely(!__pyx_int_330)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_331 = PyInt_FromLong(331); if (unlikely(!__pyx_int_331)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_332 = PyInt_FromLong(332); if (unlikely(!__pyx_int_332)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_333 = PyInt_FromLong(333); if (unlikely(!__pyx_int_333)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_334 = PyInt_FromLong(334); if (unlikely(!__pyx_int_334)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_335 = PyInt_FromLong(335); if (unlikely(!__pyx_int_335)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_336 = PyInt_FromLong(336); if (unlikely(!__pyx_int_336)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_340 = PyInt_FromLong(340); if (unlikely(!__pyx_int_340)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_341 = PyInt_FromLong(341); if (unlikely(!__pyx_int_341)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_342 = PyInt_FromLong(342); if (unlikely(!__pyx_int_342)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_343 = PyInt_FromLong(343); if (unlikely(!__pyx_int_343)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_344 = PyInt_FromLong(344); if (unlikely(!__pyx_int_344)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_345 = PyInt_FromLong(345); if (unlikely(!__pyx_int_345)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_346 = PyInt_FromLong(346); if (unlikely(!__pyx_int_346)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_347 = PyInt_FromLong(347); if (unlikely(!__pyx_int_347)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_348 = PyInt_FromLong(348); if (unlikely(!__pyx_int_348)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_4096 = PyInt_FromLong(4096); if (unlikely(!__pyx_int_4096)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_neg_1 = PyInt_FromLong(-1); if (unlikely(!__pyx_int_neg_1)) __PYX_ERR(0, 1, __pyx_L1_error)
  return 0;
  __pyx_L1_error:;
  return -1;
}

static CYTHON_SMALL_CODE int __Pyx_modinit_global_init_code(void); /*proto*/
static CYTHON_SMALL_CODE int __Pyx_modinit_variable_export_code(void); /*proto*/
static CYTHON_SMALL_CODE int __Pyx_modinit_function_export_code(void); /*proto*/
static CYTHON_SMALL_CODE int __Pyx_modinit_type_init_code(void); /*proto*/
static CYTHON_SMALL_CODE int __Pyx_modinit_type_import_code(void); /*proto*/
static CYTHON_SMALL_CODE int __Pyx_modinit_variable_import_code(void); /*proto*/
static CYTHON_SMALL_CODE int __Pyx_modinit_function_import_code(void); /*proto*/

static int __Pyx_modinit_global_init_code(void) {
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__Pyx_modinit_global_init_code", 0);
  /*--- Global init code ---*/
  __Pyx_RefNannyFinishContext();
  return 0;
}

static int __Pyx_modinit_variable_export_code(void) {
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__Pyx_modinit_variable_export_code", 0);
  /*--- Variable export code ---*/
  __Pyx_RefNannyFinishContext();
  return 0;
}

static int __Pyx_modinit_function_export_code(void) {
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__Pyx_modinit_function_export_code", 0);
  /*--- Function export code ---*/
  __Pyx_RefNannyFinishContext();
  return 0;
}

static int __Pyx_modinit_type_init_code(void) {
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__Pyx_modinit_type_init_code", 0);
  /*--- Type init code ---*/
  if (PyType_Ready(&__pyx_type_3cgl_vec2) < 0) __PYX_ERR(0, 502, __pyx_L1_error)
  #if PY_VERSION_HEX < 0x030800B1
  __pyx_type_3cgl_vec2.tp_print = 0;
  #endif
  if (PyObject_SetAttr(__pyx_m, __pyx_n_s_vec2_2, (PyObject *)&__pyx_type_3cgl_vec2) < 0) __PYX_ERR(0, 502, __pyx_L1_error)
  if (__Pyx_setup_reduce((PyObject*)&__pyx_type_3cgl_vec2) < 0) __PYX_ERR(0, 502, __pyx_L1_error)
  __pyx_ptype_3cgl_vec2 = &__pyx_type_3cgl_vec2;
  if (PyType_Ready(&__pyx_type_3cgl_vec3) < 0) __PYX_ERR(0, 597, __pyx_L1_error)
  #if PY_VERSION_HEX < 0x030800B1
  __pyx_type_3cgl_vec3.tp_print = 0;
  #endif
  if (PyObject_SetAttr(__pyx_m, __pyx_n_s_vec3_2, (PyObject *)&__pyx_type_3cgl_vec3) < 0) __PYX_ERR(0, 597, __pyx_L1_error)
  if (__Pyx_setup_reduce((PyObject*)&__pyx_type_3cgl_vec3) < 0) __PYX_ERR(0, 597, __pyx_L1_error)
  __pyx_ptype_3cgl_vec3 = &__pyx_type_3cgl_vec3;
  if (PyType_Ready(&__pyx_type_3cgl_vec4) < 0) __PYX_ERR(0, 708, __pyx_L1_error)
  #if PY_VERSION_HEX < 0x030800B1
  __pyx_type_3cgl_vec4.tp_print = 0;
  #endif
  if (PyObject_SetAttr(__pyx_m, __pyx_n_s_vec4_2, (PyObject *)&__pyx_type_3cgl_vec4) < 0) __PYX_ERR(0, 708, __pyx_L1_error)
  if (__Pyx_setup_reduce((PyObject*)&__pyx_type_3cgl_vec4) < 0) __PYX_ERR(0, 708, __pyx_L1_error)
  __pyx_ptype_3cgl_vec4 = &__pyx_type_3cgl_vec4;
  if (PyType_Ready(&__pyx_type_3cgl_ivec4) < 0) __PYX_ERR(0, 818, __pyx_L1_error)
  #if PY_VERSION_HEX < 0x030800B1
  __pyx_type_3cgl_ivec4.tp_print = 0;
  #endif
  if (PyObject_SetAttr(__pyx_m, __pyx_n_s_ivec4_2, (PyObject *)&__pyx_type_3cgl_ivec4) < 0) __PYX_ERR(0, 818, __pyx_L1_error)
  if (__Pyx_setup_reduce((PyObject*)&__pyx_type_3cgl_ivec4) < 0) __PYX_ERR(0, 818, __pyx_L1_error)
  __pyx_ptype_3cgl_ivec4 = &__pyx_type_3cgl_ivec4;
  __pyx_vtabptr_3cgl_mat4 = &__pyx_vtable_3cgl_mat4;
  __pyx_vtable_3cgl_mat4.set_c_mat4 = (PyObject *(*)(struct __pyx_obj_3cgl_mat4 *, struct CGL_mat4))__pyx_f_3cgl_4mat4_set_c_mat4;
  if (PyType_Ready(&__pyx_type_3cgl_mat4) < 0) __PYX_ERR(0, 881, __pyx_L1_error)
  #if PY_VERSION_HEX < 0x030800B1
  __pyx_type_3cgl_mat4.tp_print = 0;
  #endif
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_type_3cgl_mat4.tp_dictoffset && __pyx_type_3cgl_mat4.tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_type_3cgl_mat4.tp_getattro = __Pyx_PyObject_GenericGetAttr;
  }
  if (__Pyx_SetVtable(__pyx_type_3cgl_mat4.tp_dict, __pyx_vtabptr_3cgl_mat4) < 0) __PYX_ERR(0, 881, __pyx_L1_error)
  if (PyObject_SetAttr(__pyx_m, __pyx_n_s_mat4, (PyObject *)&__pyx_type_3cgl_mat4) < 0) __PYX_ERR(0, 881, __pyx_L1_error)
  if (__Pyx_setup_reduce((PyObject*)&__pyx_type_3cgl_mat4) < 0) __PYX_ERR(0, 881, __pyx_L1_error)
  __pyx_ptype_3cgl_mat4 = &__pyx_type_3cgl_mat4;
  if (PyType_Ready(&__pyx_type_3cgl_transform) < 0) __PYX_ERR(0, 1049, __pyx_L1_error)
  #if PY_VERSION_HEX < 0x030800B1
  __pyx_type_3cgl_transform.tp_print = 0;
  #endif
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_type_3cgl_transform.tp_dictoffset && __pyx_type_3cgl_transform.tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_type_3cgl_transform.tp_getattro = __Pyx_PyObject_GenericGetAttr;
  }
  if (PyObject_SetAttr(__pyx_m, __pyx_n_s_transform, (PyObject *)&__pyx_type_3cgl_transform) < 0) __PYX_ERR(0, 1049, __pyx_L1_error)
  if (__Pyx_setup_reduce((PyObject*)&__pyx_type_3cgl_transform) < 0) __PYX_ERR(0, 1049, __pyx_L1_error)
  __pyx_ptype_3cgl_transform = &__pyx_type_3cgl_transform;
  if (PyType_Ready(&__pyx_type_3cgl_window) < 0) __PYX_ERR(0, 1306, __pyx_L1_error)
  #if PY_VERSION_HEX < 0x030800B1
  __pyx_type_3cgl_window.tp_print = 0;
  #endif
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_type_3cgl_window.tp_dictoffset && __pyx_type_3cgl_window.tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_type_3cgl_window.tp_getattro = __Pyx_PyObject_GenericGetAttr;
  }
  if (PyObject_SetAttr(__pyx_m, __pyx_n_s_window_2, (PyObject *)&__pyx_type_3cgl_window) < 0) __PYX_ERR(0, 1306, __pyx_L1_error)
  if (__Pyx_setup_reduce((PyObject*)&__pyx_type_3cgl_window) < 0) __PYX_ERR(0, 1306, __pyx_L1_error)
  __pyx_ptype_3cgl_window = &__pyx_type_3cgl_window;
  if (PyType_Ready(&__pyx_type_3cgl_image) < 0) __PYX_ERR(0, 1491, __pyx_L1_error)
  #if PY_VERSION_HEX < 0x030800B1
  __pyx_type_3cgl_image.tp_print = 0;
  #endif
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_type_3cgl_image.tp_dictoffset && __pyx_type_3cgl_image.tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_type_3cgl_image.tp_getattro = __Pyx_PyObject_GenericGetAttr;
  }
  if (PyObject_SetAttr(__pyx_m, __pyx_n_s_image_2, (PyObject *)&__pyx_type_3cgl_image) < 0) __PYX_ERR(0, 1491, __pyx_L1_error)
  if (__Pyx_setup_reduce((PyObject*)&__pyx_type_3cgl_image) < 0) __PYX_ERR(0, 1491, __pyx_L1_error)
  __pyx_ptype_3cgl_image = &__pyx_type_3cgl_image;
  if (PyType_Ready(&__pyx_type_3cgl_mesh_vertex) < 0) __PYX_ERR(0, 1528, __pyx_L1_error)
  #if PY_VERSION_HEX < 0x030800B1
  __pyx_type_3cgl_mesh_vertex.tp_print = 0;
  #endif
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_type_3cgl_mesh_vertex.tp_dictoffset && __pyx_type_3cgl_mesh_vertex.tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_type_3cgl_mesh_vertex.tp_getattro = __Pyx_PyObject_GenericGetAttr;
  }
  if (PyObject_SetAttr(__pyx_m, __pyx_n_s_mesh_vertex_2, (PyObject *)&__pyx_type_3cgl_mesh_vertex) < 0) __PYX_ERR(0, 1528, __pyx_L1_error)
  if (__Pyx_setup_reduce((PyObject*)&__pyx_type_3cgl_mesh_vertex) < 0) __PYX_ERR(0, 1528, __pyx_L1_error)
  __pyx_ptype_3cgl_mesh_vertex = &__pyx_type_3cgl_mesh_vertex;
  if (PyType_Ready(&__pyx_type_3cgl_mesh_cpu) < 0) __PYX_ERR(0, 1602, __pyx_L1_error)
  #if PY_VERSION_HEX < 0x030800B1
  __pyx_type_3cgl_mesh_cpu.tp_print = 0;
  #endif
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_type_3cgl_mesh_cpu.tp_dictoffset && __pyx_type_3cgl_mesh_cpu.tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_type_3cgl_mesh_cpu.tp_getattro = __Pyx_PyObject_GenericGetAttr;
  }
  if (PyObject_SetAttr(__pyx_m, __pyx_n_s_mesh_cpu_2, (PyObject *)&__pyx_type_3cgl_mesh_cpu) < 0) __PYX_ERR(0, 1602, __pyx_L1_error)
  if (__Pyx_setup_reduce((PyObject*)&__pyx_type_3cgl_mesh_cpu) < 0) __PYX_ERR(0, 1602, __pyx_L1_error)
  __pyx_ptype_3cgl_mesh_cpu = &__pyx_type_3cgl_mesh_cpu;
  __Pyx_RefNannyFinishContext();
  return 0;
  __pyx_L1_error:;
  __Pyx_RefNannyFinishContext();
  return -1;
}

static int __Pyx_modinit_type_import_code(void) {
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__Pyx_modinit_type_import_code", 0);
  /*--- Type import code ---*/
  __Pyx_RefNannyFinishContext();
  return 0;
}

static int __Pyx_modinit_variable_import_code(void) {
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__Pyx_modinit_variable_import_code", 0);
  /*--- Variable import code ---*/
  __Pyx_RefNannyFinishContext();
  return 0;
}

static int __Pyx_modinit_function_import_code(void) {
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__Pyx_modinit_function_import_code", 0);
  /*--- Function import code ---*/
  __Pyx_RefNannyFinishContext();
  return 0;
}


#ifndef CYTHON_NO_PYINIT_EXPORT
#define __Pyx_PyMODINIT_FUNC PyMODINIT_FUNC
#elif PY_MAJOR_VERSION < 3
#ifdef __cplusplus
#define __Pyx_PyMODINIT_FUNC extern "C" void
#else
#define __Pyx_PyMODINIT_FUNC void
#endif
#else
#ifdef __cplusplus
#define __Pyx_PyMODINIT_FUNC extern "C" PyObject *
#else
#define __Pyx_PyMODINIT_FUNC PyObject *
#endif
#endif


#if PY_MAJOR_VERSION < 3
__Pyx_PyMODINIT_FUNC initcgl(void) CYTHON_SMALL_CODE; /*proto*/
__Pyx_PyMODINIT_FUNC initcgl(void)
#else
__Pyx_PyMODINIT_FUNC PyInit_cgl(void) CYTHON_SMALL_CODE; /*proto*/
__Pyx_PyMODINIT_FUNC PyInit_cgl(void)
#if CYTHON_PEP489_MULTI_PHASE_INIT
{
  return PyModuleDef_Init(&__pyx_moduledef);
}
static CYTHON_SMALL_CODE int __Pyx_check_single_interpreter(void) {
    #if PY_VERSION_HEX >= 0x030700A1
    static PY_INT64_T main_interpreter_id = -1;
    PY_INT64_T current_id = PyInterpreterState_GetID(PyThreadState_Get()->interp);
    if (main_interpreter_id == -1) {
        main_interpreter_id = current_id;
        return (unlikely(current_id == -1)) ? -1 : 0;
    } else if (unlikely(main_interpreter_id != current_id))
    #else
    static PyInterpreterState *main_interpreter = NULL;
    PyInterpreterState *current_interpreter = PyThreadState_Get()->interp;
    if (!main_interpreter) {
        main_interpreter = current_interpreter;
    } else if (unlikely(main_interpreter != current_interpreter))
    #endif
    {
        PyErr_SetString(
            PyExc_ImportError,
            "Interpreter change detected - this module can only be loaded into one interpreter per process.");
        return -1;
    }
    return 0;
}
static CYTHON_SMALL_CODE int __Pyx_copy_spec_to_module(PyObject *spec, PyObject *moddict, const char* from_name, const char* to_name, int allow_none) {
    PyObject *value = PyObject_GetAttrString(spec, from_name);
    int result = 0;
    if (likely(value)) {
        if (allow_none || value != Py_None) {
            result = PyDict_SetItemString(moddict, to_name, value);
        }
        Py_DECREF(value);
    } else if (PyErr_ExceptionMatches(PyExc_AttributeError)) {
        PyErr_Clear();
    } else {
        result = -1;
    }
    return result;
}
static CYTHON_SMALL_CODE PyObject* __pyx_pymod_create(PyObject *spec, CYTHON_UNUSED PyModuleDef *def) {
    PyObject *module = NULL, *moddict, *modname;
    if (__Pyx_check_single_interpreter())
        return NULL;
    if (__pyx_m)
        return __Pyx_NewRef(__pyx_m);
    modname = PyObject_GetAttrString(spec, "name");
    if (unlikely(!modname)) goto bad;
    module = PyModule_NewObject(modname);
    Py_DECREF(modname);
    if (unlikely(!module)) goto bad;
    moddict = PyModule_GetDict(module);
    if (unlikely(!moddict)) goto bad;
    if (unlikely(__Pyx_copy_spec_to_module(spec, moddict, "loader", "__loader__", 1) < 0)) goto bad;
    if (unlikely(__Pyx_copy_spec_to_module(spec, moddict, "origin", "__file__", 1) < 0)) goto bad;
    if (unlikely(__Pyx_copy_spec_to_module(spec, moddict, "parent", "__package__", 1) < 0)) goto bad;
    if (unlikely(__Pyx_copy_spec_to_module(spec, moddict, "submodule_search_locations", "__path__", 0) < 0)) goto bad;
    return module;
bad:
    Py_XDECREF(module);
    return NULL;
}


static CYTHON_SMALL_CODE int __pyx_pymod_exec_cgl(PyObject *__pyx_pyinit_module)
#endif
#endif
{
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannyDeclarations
  #if CYTHON_PEP489_MULTI_PHASE_INIT
  if (__pyx_m) {
    if (__pyx_m == __pyx_pyinit_module) return 0;
    PyErr_SetString(PyExc_RuntimeError, "Module 'cgl' has already been imported. Re-initialisation is not supported.");
    return -1;
  }
  #elif PY_MAJOR_VERSION >= 3
  if (__pyx_m) return __Pyx_NewRef(__pyx_m);
  #endif
  #if CYTHON_REFNANNY
__Pyx_RefNanny = __Pyx_RefNannyImportAPI("refnanny");
if (!__Pyx_RefNanny) {
  PyErr_Clear();
  __Pyx_RefNanny = __Pyx_RefNannyImportAPI("Cython.Runtime.refnanny");
  if (!__Pyx_RefNanny)
      Py_FatalError("failed to import 'refnanny' module");
}
#endif
  __Pyx_RefNannySetupContext("__Pyx_PyMODINIT_FUNC PyInit_cgl(void)", 0);
  if (__Pyx_check_binary_version() < 0) __PYX_ERR(0, 1, __pyx_L1_error)
  #ifdef __Pxy_PyFrame_Initialize_Offsets
  __Pxy_PyFrame_Initialize_Offsets();
  #endif
  __pyx_empty_tuple = PyTuple_New(0); if (unlikely(!__pyx_empty_tuple)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_empty_bytes = PyBytes_FromStringAndSize("", 0); if (unlikely(!__pyx_empty_bytes)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_empty_unicode = PyUnicode_FromStringAndSize("", 0); if (unlikely(!__pyx_empty_unicode)) __PYX_ERR(0, 1, __pyx_L1_error)
  #ifdef __Pyx_CyFunction_USED
  if (__pyx_CyFunction_init() < 0) __PYX_ERR(0, 1, __pyx_L1_error)
  #endif
  #ifdef __Pyx_FusedFunction_USED
  if (__pyx_FusedFunction_init() < 0) __PYX_ERR(0, 1, __pyx_L1_error)
  #endif
  #ifdef __Pyx_Coroutine_USED
  if (__pyx_Coroutine_init() < 0) __PYX_ERR(0, 1, __pyx_L1_error)
  #endif
  #ifdef __Pyx_Generator_USED
  if (__pyx_Generator_init() < 0) __PYX_ERR(0, 1, __pyx_L1_error)
  #endif
  #ifdef __Pyx_AsyncGen_USED
  if (__pyx_AsyncGen_init() < 0) __PYX_ERR(0, 1, __pyx_L1_error)
  #endif
  #ifdef __Pyx_StopAsyncIteration_USED
  if (__pyx_StopAsyncIteration_init() < 0) __PYX_ERR(0, 1, __pyx_L1_error)
  #endif
  /*--- Library function declarations ---*/
  /*--- Threads initialization code ---*/
  #if defined(WITH_THREAD) && PY_VERSION_HEX < 0x030700F0 && defined(__PYX_FORCE_INIT_THREADS) && __PYX_FORCE_INIT_THREADS
  PyEval_InitThreads();
  #endif
  /*--- Module creation code ---*/
  #if CYTHON_PEP489_MULTI_PHASE_INIT
  __pyx_m = __pyx_pyinit_module;
  Py_INCREF(__pyx_m);
  #else
  #if PY_MAJOR_VERSION < 3
  __pyx_m = Py_InitModule4("cgl", __pyx_methods, 0, 0, PYTHON_API_VERSION); Py_XINCREF(__pyx_m);
  #else
  __pyx_m = PyModule_Create(&__pyx_moduledef);
  #endif
  if (unlikely(!__pyx_m)) __PYX_ERR(0, 1, __pyx_L1_error)
  #endif
  __pyx_d = PyModule_GetDict(__pyx_m); if (unlikely(!__pyx_d)) __PYX_ERR(0, 1, __pyx_L1_error)
  Py_INCREF(__pyx_d);
  __pyx_b = PyImport_AddModule(__Pyx_BUILTIN_MODULE_NAME); if (unlikely(!__pyx_b)) __PYX_ERR(0, 1, __pyx_L1_error)
  Py_INCREF(__pyx_b);
  __pyx_cython_runtime = PyImport_AddModule((char *) "cython_runtime"); if (unlikely(!__pyx_cython_runtime)) __PYX_ERR(0, 1, __pyx_L1_error)
  Py_INCREF(__pyx_cython_runtime);
  if (PyObject_SetAttrString(__pyx_m, "__builtins__", __pyx_b) < 0) __PYX_ERR(0, 1, __pyx_L1_error)
  /*--- Initialize various global constants etc. ---*/
  if (__Pyx_InitGlobals() < 0) __PYX_ERR(0, 1, __pyx_L1_error)
  #if PY_MAJOR_VERSION < 3 && (__PYX_DEFAULT_STRING_ENCODING_IS_ASCII || __PYX_DEFAULT_STRING_ENCODING_IS_DEFAULT)
  if (__Pyx_init_sys_getdefaultencoding_params() < 0) __PYX_ERR(0, 1, __pyx_L1_error)
  #endif
  if (__pyx_module_is_main_cgl) {
    if (PyObject_SetAttr(__pyx_m, __pyx_n_s_name, __pyx_n_s_main) < 0) __PYX_ERR(0, 1, __pyx_L1_error)
  }
  #if PY_MAJOR_VERSION >= 3
  {
    PyObject *modules = PyImport_GetModuleDict(); if (unlikely(!modules)) __PYX_ERR(0, 1, __pyx_L1_error)
    if (!PyDict_GetItemString(modules, "cgl")) {
      if (unlikely(PyDict_SetItemString(modules, "cgl", __pyx_m) < 0)) __PYX_ERR(0, 1, __pyx_L1_error)
    }
  }
  #endif
  /*--- Builtin init code ---*/
  if (__Pyx_InitCachedBuiltins() < 0) __PYX_ERR(0, 1, __pyx_L1_error)
  /*--- Constants init code ---*/
  if (__Pyx_InitCachedConstants() < 0) __PYX_ERR(0, 1, __pyx_L1_error)
  /*--- Global type/function init code ---*/
  (void)__Pyx_modinit_global_init_code();
  (void)__Pyx_modinit_variable_export_code();
  (void)__Pyx_modinit_function_export_code();
  if (unlikely(__Pyx_modinit_type_init_code() < 0)) __PYX_ERR(0, 1, __pyx_L1_error)
  (void)__Pyx_modinit_type_import_code();
  (void)__Pyx_modinit_variable_import_code();
  (void)__Pyx_modinit_function_import_code();
  /*--- Execution code ---*/
  #if defined(__Pyx_Generator_USED) || defined(__Pyx_Coroutine_USED)
  if (__Pyx_patch_abc() < 0) __PYX_ERR(0, 1, __pyx_L1_error)
  #endif

  /* "cgl_wrapper.pyx":5
 * cimport libc.stdlib as stdlib
 * cimport libc.math as math
 * import copy             # <<<<<<<<<<<<<<
 * from typing import Callable
 * from PIL.Image import Image
 */
  __pyx_t_1 = __Pyx_Import(__pyx_n_s_copy, 0, -1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 5, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_copy, __pyx_t_1) < 0) __PYX_ERR(0, 5, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "cgl_wrapper.pyx":6
 * cimport libc.math as math
 * import copy
 * from typing import Callable             # <<<<<<<<<<<<<<
 * from PIL.Image import Image
 * 
 */
  __pyx_t_1 = PyList_New(1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 6, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_INCREF(__pyx_n_s_Callable);
  __Pyx_GIVEREF(__pyx_n_s_Callable);
  PyList_SET_ITEM(__pyx_t_1, 0, __pyx_n_s_Callable);
  __pyx_t_2 = __Pyx_Import(__pyx_n_s_typing, __pyx_t_1, -1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_1 = __Pyx_ImportFrom(__pyx_t_2, __pyx_n_s_Callable); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 6, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_Callable, __pyx_t_1) < 0) __PYX_ERR(0, 6, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "cgl_wrapper.pyx":7
 * import copy
 * from typing import Callable
 * from PIL.Image import Image             # <<<<<<<<<<<<<<
 * 
 * # CGL typedefs of standard types
 */
  __pyx_t_2 = PyList_New(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 7, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_INCREF(__pyx_n_s_Image);
  __Pyx_GIVEREF(__pyx_n_s_Image);
  PyList_SET_ITEM(__pyx_t_2, 0, __pyx_n_s_Image);
  __pyx_t_1 = __Pyx_Import(__pyx_n_s_PIL_Image, __pyx_t_2, -1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 7, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_t_2 = __Pyx_ImportFrom(__pyx_t_1, __pyx_n_s_Image); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 7, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_Image, __pyx_t_2) < 0) __PYX_ERR(0, 7, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "cgl_wrapper.pyx":266
 * 
 * 
 * CGL_TRUE = 1             # <<<<<<<<<<<<<<
 * CGL_FALSE = 0
 * 
 */
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_CGL_TRUE, __pyx_int_1) < 0) __PYX_ERR(0, 266, __pyx_L1_error)

  /* "cgl_wrapper.pyx":267
 * 
 * CGL_TRUE = 1
 * CGL_FALSE = 0             # <<<<<<<<<<<<<<
 * 
 * def free(ptr):
 */
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_CGL_FALSE, __pyx_int_0) < 0) __PYX_ERR(0, 267, __pyx_L1_error)

  /* "cgl_wrapper.pyx":269
 * CGL_FALSE = 0
 * 
 * def free(ptr):             # <<<<<<<<<<<<<<
 *     stdlib.free(<void*>ptr)
 * 
 */
  __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_3cgl_1free, NULL, __pyx_n_s_cgl); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 269, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_free, __pyx_t_1) < 0) __PYX_ERR(0, 269, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "cgl_wrapper.pyx":272
 *     stdlib.free(<void*>ptr)
 * 
 * def init() -> bool:             # <<<<<<<<<<<<<<
 *     return CGL_init()
 * 
 */
  __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_3cgl_3init, NULL, __pyx_n_s_cgl); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 272, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_init, __pyx_t_1) < 0) __PYX_ERR(0, 272, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "cgl_wrapper.pyx":275
 *     return CGL_init()
 * 
 * def shutdown():             # <<<<<<<<<<<<<<
 *     CGL_shutdown()
 * 
 */
  __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_3cgl_5shutdown, NULL, __pyx_n_s_cgl); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 275, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_shutdown, __pyx_t_1) < 0) __PYX_ERR(0, 275, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "cgl_wrapper.pyx":278
 *     CGL_shutdown()
 * 
 * def utils_sleep(milliseconds: int):             # <<<<<<<<<<<<<<
 *     CGL_utils_sleep(milliseconds)
 * 
 */
  __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_3cgl_7utils_sleep, NULL, __pyx_n_s_cgl); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 278, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_utils_sleep, __pyx_t_1) < 0) __PYX_ERR(0, 278, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "cgl_wrapper.pyx":281
 *     CGL_utils_sleep(milliseconds)
 * 
 * def utils_read_file(path: str) -> bytes:             # <<<<<<<<<<<<<<
 *     cdef CGL_sizei size
 *     cdef CGL_byte* data = CGL_utils_read_file(path.encode(), &size)
 */
  __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_3cgl_9utils_read_file, NULL, __pyx_n_s_cgl); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 281, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_utils_read_file, __pyx_t_1) < 0) __PYX_ERR(0, 281, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "cgl_wrapper.pyx":291
 *     return result
 * 
 * def utils_get_file_size(path: str) -> int:             # <<<<<<<<<<<<<<
 *     return CGL_utils_get_file_size(path.encode())
 * 
 */
  __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_3cgl_11utils_get_file_size, NULL, __pyx_n_s_cgl); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 291, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_utils_get_file_size, __pyx_t_1) < 0) __PYX_ERR(0, 291, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "cgl_wrapper.pyx":294
 *     return CGL_utils_get_file_size(path.encode())
 * 
 * def utils_append_file(path: str, data: bytes) -> bool:             # <<<<<<<<<<<<<<
 *     return CGL_utils_append_file(path.encode(), data, len(data))
 * 
 */
  __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_3cgl_13utils_append_file, NULL, __pyx_n_s_cgl); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 294, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_utils_append_file, __pyx_t_1) < 0) __PYX_ERR(0, 294, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "cgl_wrapper.pyx":297
 *     return CGL_utils_append_file(path.encode(), data, len(data))
 * 
 * def utils_write_file(path : str, data : bytes) -> bool:             # <<<<<<<<<<<<<<
 *     return CGL_utils_write_file(path.encode(), data, len(data))
 * 
 */
  __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_3cgl_15utils_write_file, NULL, __pyx_n_s_cgl); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 297, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_utils_write_file, __pyx_t_1) < 0) __PYX_ERR(0, 297, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "cgl_wrapper.pyx":300
 *     return CGL_utils_write_file(path.encode(), data, len(data))
 * 
 * def utils_get_time() -> float:             # <<<<<<<<<<<<<<
 *     return CGL_utils_get_time()
 * 
 */
  __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_3cgl_17utils_get_time, NULL, __pyx_n_s_cgl); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 300, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_utils_get_time, __pyx_t_1) < 0) __PYX_ERR(0, 300, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "cgl_wrapper.pyx":303
 *     return CGL_utils_get_time()
 * 
 * def utils_get_timestamp() -> str:             # <<<<<<<<<<<<<<
 *     cdef CGL_byte buffer[128]
 *     CGL_utils_get_timestamp(buffer)
 */
  __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_3cgl_19utils_get_timestamp, NULL, __pyx_n_s_cgl); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 303, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_utils_get_timestamp, __pyx_t_1) < 0) __PYX_ERR(0, 303, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "cgl_wrapper.pyx":308
 *     return buffer.decode()
 * 
 * def utils_is_little_endian() -> bool:             # <<<<<<<<<<<<<<
 *     return CGL_utils_is_little_endian()
 * 
 */
  __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_3cgl_21utils_is_little_endian, NULL, __pyx_n_s_cgl); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 308, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_utils_is_little_endian, __pyx_t_1) < 0) __PYX_ERR(0, 308, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "cgl_wrapper.pyx":311
 *     return CGL_utils_is_little_endian()
 * 
 * def utils_is_big_endian() -> bool:             # <<<<<<<<<<<<<<
 *     return not CGL_utils_is_little_endian()
 * 
 */
  __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_3cgl_23utils_is_big_endian, NULL, __pyx_n_s_cgl); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 311, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_utils_is_big_endian, __pyx_t_1) < 0) __PYX_ERR(0, 311, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "cgl_wrapper.pyx":314
 *     return not CGL_utils_is_little_endian()
 * 
 * def utils_get_random_with_probability(probabilities) -> int:             # <<<<<<<<<<<<<<
 *     cdef CGL_float* c_probabilities
 *     c_probabilities = <CGL_float*>stdlib.malloc(len(probabilities) * sizeof(CGL_float))
 */
  __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_3cgl_25utils_get_random_with_probability, NULL, __pyx_n_s_cgl); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 314, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_utils_get_random_with_probabilit, __pyx_t_1) < 0) __PYX_ERR(0, 314, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "cgl_wrapper.pyx":326
 *     return result
 * 
 * def utils_reverse_bytes(data: bytes):             # <<<<<<<<<<<<<<
 *     CGL_utils_reverse_bytes(<void*>data, len(data))
 * 
 */
  __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_3cgl_27utils_reverse_bytes, NULL, __pyx_n_s_cgl); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 326, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_utils_reverse_bytes, __pyx_t_1) < 0) __PYX_ERR(0, 326, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "cgl_wrapper.pyx":329
 *     CGL_utils_reverse_bytes(<void*>data, len(data))
 * 
 * def utils_little_endian_to_current(data : bytes):             # <<<<<<<<<<<<<<
 *     CGL_utils_little_endian_to_current(<void*>data, len(data))
 * 
 */
  __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_3cgl_29utils_little_endian_to_current, NULL, __pyx_n_s_cgl); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 329, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_utils_little_endian_to_current, __pyx_t_1) < 0) __PYX_ERR(0, 329, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "cgl_wrapper.pyx":332
 *     CGL_utils_little_endian_to_current(<void*>data, len(data))
 * 
 * def utils_big_endian_to_current(data : bytes):             # <<<<<<<<<<<<<<
 *     CGL_utils_big_endian_to_current(<void*>data, len(data))
 * 
 */
  __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_3cgl_31utils_big_endian_to_current, NULL, __pyx_n_s_cgl); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 332, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_utils_big_endian_to_current, __pyx_t_1) < 0) __PYX_ERR(0, 332, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "cgl_wrapper.pyx":335
 *     CGL_utils_big_endian_to_current(<void*>data, len(data))
 * 
 * def utils_fast_srand(seed: int):             # <<<<<<<<<<<<<<
 *     CGL_utils_fast_srand(seed)
 * 
 */
  __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_3cgl_33utils_fast_srand, NULL, __pyx_n_s_cgl); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 335, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_utils_fast_srand, __pyx_t_1) < 0) __PYX_ERR(0, 335, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "cgl_wrapper.pyx":338
 *     CGL_utils_fast_srand(seed)
 * 
 * def utils_fast_rand() -> int:             # <<<<<<<<<<<<<<
 *     return CGL_utils_fast_rand()
 * 
 */
  __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_3cgl_35utils_fast_rand, NULL, __pyx_n_s_cgl); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 338, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_utils_fast_rand, __pyx_t_1) < 0) __PYX_ERR(0, 338, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "cgl_wrapper.pyx":341
 *     return CGL_utils_fast_rand()
 * 
 * def utils_xorshf96() -> int:             # <<<<<<<<<<<<<<
 *     return CGL_utils_xorshf96()
 * 
 */
  __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_3cgl_37utils_xorshf96, NULL, __pyx_n_s_cgl); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 341, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_utils_xorshf96, __pyx_t_1) < 0) __PYX_ERR(0, 341, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "cgl_wrapper.pyx":344
 *     return CGL_utils_xorshf96()
 * 
 * def utils_srand31(seed: int):             # <<<<<<<<<<<<<<
 *     CGL_utils_srand31(seed)
 * 
 */
  __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_3cgl_39utils_srand31, NULL, __pyx_n_s_cgl); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 344, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_utils_srand31, __pyx_t_1) < 0) __PYX_ERR(0, 344, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "cgl_wrapper.pyx":347
 *     CGL_utils_srand31(seed)
 * 
 * def utils_rand31() -> int:             # <<<<<<<<<<<<<<
 *     return CGL_utils_rand31()
 * 
 */
  __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_3cgl_41utils_rand31, NULL, __pyx_n_s_cgl); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 347, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_utils_rand31, __pyx_t_1) < 0) __PYX_ERR(0, 347, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "cgl_wrapper.pyx":350
 *     return CGL_utils_rand31()
 * 
 * def utils_sigmoid(x: float) -> float:             # <<<<<<<<<<<<<<
 *     CGL_utils_sigmoid(x)
 * 
 */
  __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_3cgl_43utils_sigmoid, NULL, __pyx_n_s_cgl); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 350, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_utils_sigmoid, __pyx_t_1) < 0) __PYX_ERR(0, 350, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "cgl_wrapper.pyx":353
 *     CGL_utils_sigmoid(x)
 * 
 * def utils_sigmoid_derivative(x: float) -> float:             # <<<<<<<<<<<<<<
 *     CGL_utils_sigmoid_derivative(x)
 * 
 */
  __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_3cgl_45utils_sigmoid_derivative, NULL, __pyx_n_s_cgl); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 353, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_utils_sigmoid_derivative, __pyx_t_1) < 0) __PYX_ERR(0, 353, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "cgl_wrapper.pyx":356
 *     CGL_utils_sigmoid_derivative(x)
 * 
 * def utils_relu(x: float) -> float:             # <<<<<<<<<<<<<<
 *     CGL_utils_relu(x)
 * 
 */
  __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_3cgl_47utils_relu, NULL, __pyx_n_s_cgl); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 356, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_utils_relu, __pyx_t_1) < 0) __PYX_ERR(0, 356, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "cgl_wrapper.pyx":359
 *     CGL_utils_relu(x)
 * 
 * def utils_relu_derivative(x: float) -> float:             # <<<<<<<<<<<<<<
 *     CGL_utils_relu_derivative(x)
 * 
 */
  __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_3cgl_49utils_relu_derivative, NULL, __pyx_n_s_cgl); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 359, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_utils_relu_derivative, __pyx_t_1) < 0) __PYX_ERR(0, 359, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "cgl_wrapper.pyx":362
 *     CGL_utils_relu_derivative(x)
 * 
 * def utils_tanh(x: float) -> float:             # <<<<<<<<<<<<<<
 *     CGL_utils_tanh(x)
 * 
 */
  __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_3cgl_51utils_tanh, NULL, __pyx_n_s_cgl); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 362, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_utils_tanh, __pyx_t_1) < 0) __PYX_ERR(0, 362, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "cgl_wrapper.pyx":365
 *     CGL_utils_tanh(x)
 * 
 * def utils_tanh_derivative(x: float) -> float:             # <<<<<<<<<<<<<<
 *     CGL_utils_tanh_derivative(x)
 * 
 */
  __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_3cgl_53utils_tanh_derivative, NULL, __pyx_n_s_cgl); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 365, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_utils_tanh_derivative, __pyx_t_1) < 0) __PYX_ERR(0, 365, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "cgl_wrapper.pyx":368
 *     CGL_utils_tanh_derivative(x)
 * 
 * def utils_step(x: float) -> float:             # <<<<<<<<<<<<<<
 *     CGL_utils_step(x)
 * 
 */
  __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_3cgl_55utils_step, NULL, __pyx_n_s_cgl); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 368, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_utils_step, __pyx_t_1) < 0) __PYX_ERR(0, 368, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "cgl_wrapper.pyx":371
 *     CGL_utils_step(x)
 * 
 * def utils_step_derivative(x: float) -> float:             # <<<<<<<<<<<<<<
 *     CGL_utils_step_derivative(x)
 * 
 */
  __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_3cgl_57utils_step_derivative, NULL, __pyx_n_s_cgl); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 371, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_utils_step_derivative, __pyx_t_1) < 0) __PYX_ERR(0, 371, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "cgl_wrapper.pyx":374
 *     CGL_utils_step_derivative(x)
 * 
 * def utils_relu_leaky(x: float) -> float:             # <<<<<<<<<<<<<<
 *     CGL_utils_relu_leaky(x)
 * 
 */
  __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_3cgl_59utils_relu_leaky, NULL, __pyx_n_s_cgl); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 374, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_utils_relu_leaky, __pyx_t_1) < 0) __PYX_ERR(0, 374, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "cgl_wrapper.pyx":377
 *     CGL_utils_relu_leaky(x)
 * 
 * def utils_relu_leaky_derivative(x: float) -> float:             # <<<<<<<<<<<<<<
 *     CGL_utils_relu_leaky_derivative(x)
 * 
 */
  __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_3cgl_61utils_relu_leaky_derivative, NULL, __pyx_n_s_cgl); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 377, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_utils_relu_leaky_derivative, __pyx_t_1) < 0) __PYX_ERR(0, 377, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "cgl_wrapper.pyx":380
 *     CGL_utils_relu_leaky_derivative(x)
 * 
 * def utils_relu_smooth(x: float) -> float:             # <<<<<<<<<<<<<<
 *     CGL_utils_relu_smooth(x)
 * 
 */
  __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_3cgl_63utils_relu_smooth, NULL, __pyx_n_s_cgl); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 380, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_utils_relu_smooth, __pyx_t_1) < 0) __PYX_ERR(0, 380, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "cgl_wrapper.pyx":383
 *     CGL_utils_relu_smooth(x)
 * 
 * def utils_relu_smooth_derivative(x: float) -> float:             # <<<<<<<<<<<<<<
 *     CGL_utils_relu_smooth_derivative(x)
 * 
 */
  __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_3cgl_65utils_relu_smooth_derivative, NULL, __pyx_n_s_cgl); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 383, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_utils_relu_smooth_derivative, __pyx_t_1) < 0) __PYX_ERR(0, 383, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "cgl_wrapper.pyx":387
 * 
 * 
 * CONSOLE_COLOR_RESET = 0             # <<<<<<<<<<<<<<
 * CONSOLE_COLOR_RED = 1
 * CONSOLE_COLOR_GREEN = 2
 */
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_CONSOLE_COLOR_RESET, __pyx_int_0) < 0) __PYX_ERR(0, 387, __pyx_L1_error)

  /* "cgl_wrapper.pyx":388
 * 
 * CONSOLE_COLOR_RESET = 0
 * CONSOLE_COLOR_RED = 1             # <<<<<<<<<<<<<<
 * CONSOLE_COLOR_GREEN = 2
 * CONSOLE_COLOR_GRAY = 3
 */
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_CONSOLE_COLOR_RED, __pyx_int_1) < 0) __PYX_ERR(0, 388, __pyx_L1_error)

  /* "cgl_wrapper.pyx":389
 * CONSOLE_COLOR_RESET = 0
 * CONSOLE_COLOR_RED = 1
 * CONSOLE_COLOR_GREEN = 2             # <<<<<<<<<<<<<<
 * CONSOLE_COLOR_GRAY = 3
 * CONSOLE_COLOR_BLUE = 4
 */
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_CONSOLE_COLOR_GREEN, __pyx_int_2) < 0) __PYX_ERR(0, 389, __pyx_L1_error)

  /* "cgl_wrapper.pyx":390
 * CONSOLE_COLOR_RED = 1
 * CONSOLE_COLOR_GREEN = 2
 * CONSOLE_COLOR_GRAY = 3             # <<<<<<<<<<<<<<
 * CONSOLE_COLOR_BLUE = 4
 * 
 */
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_CONSOLE_COLOR_GRAY, __pyx_int_3) < 0) __PYX_ERR(0, 390, __pyx_L1_error)

  /* "cgl_wrapper.pyx":391
 * CONSOLE_COLOR_GREEN = 2
 * CONSOLE_COLOR_GRAY = 3
 * CONSOLE_COLOR_BLUE = 4             # <<<<<<<<<<<<<<
 * 
 * def console_set_color(color: int):
 */
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_CONSOLE_COLOR_BLUE, __pyx_int_4) < 0) __PYX_ERR(0, 391, __pyx_L1_error)

  /* "cgl_wrapper.pyx":393
 * CONSOLE_COLOR_BLUE = 4
 * 
 * def console_set_color(color: int):             # <<<<<<<<<<<<<<
 *     if color < 0 or color > 4:
 *         raise ValueError()
 */
  __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_3cgl_67console_set_color, NULL, __pyx_n_s_cgl); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 393, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_console_set_color, __pyx_t_1) < 0) __PYX_ERR(0, 393, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "cgl_wrapper.pyx":398
 *     CGL_console_set_color(color)
 * 
 * def printf_red(format: str):             # <<<<<<<<<<<<<<
 *     CGL_printf_red(format.encode())
 * 
 */
  __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_3cgl_69printf_red, NULL, __pyx_n_s_cgl); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 398, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_printf_red, __pyx_t_1) < 0) __PYX_ERR(0, 398, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "cgl_wrapper.pyx":401
 *     CGL_printf_red(format.encode())
 * 
 * def printf_green(format: str):             # <<<<<<<<<<<<<<
 *     CGL_printf_green(format.encode())
 * 
 */
  __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_3cgl_71printf_green, NULL, __pyx_n_s_cgl); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 401, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_printf_green, __pyx_t_1) < 0) __PYX_ERR(0, 401, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "cgl_wrapper.pyx":404
 *     CGL_printf_green(format.encode())
 * 
 * def printf_gray(format: str):             # <<<<<<<<<<<<<<
 *     CGL_printf_gray(format.encode())
 * 
 */
  __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_3cgl_73printf_gray, NULL, __pyx_n_s_cgl); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 404, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_printf_gray, __pyx_t_1) < 0) __PYX_ERR(0, 404, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "cgl_wrapper.pyx":407
 *     CGL_printf_gray(format.encode())
 * 
 * def printf_blue(format: str):             # <<<<<<<<<<<<<<
 *     CGL_printf_blue(format.encode())
 * 
 */
  __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_3cgl_75printf_blue, NULL, __pyx_n_s_cgl); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 407, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_printf_blue, __pyx_t_1) < 0) __PYX_ERR(0, 407, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "cgl_wrapper.pyx":410
 *     CGL_printf_blue(format.encode())
 * 
 * def console_progress_bar(progress: float, width: int, prefix: str, suffix: str, complete_char: str = "#", incomplete_char: str = "_"):             # <<<<<<<<<<<<<<
 *     CGL_console_progress_bar(progress, width, prefix.encode(), suffix.encode(), complete_char[0], incomplete_char[0])
 * 
 */
  __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_3cgl_77console_progress_bar, NULL, __pyx_n_s_cgl); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 410, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_console_progress_bar, __pyx_t_1) < 0) __PYX_ERR(0, 410, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "cgl_wrapper.pyx":413
 *     CGL_console_progress_bar(progress, width, prefix.encode(), suffix.encode(), complete_char[0], incomplete_char[0])
 * 
 * LOG_LEVEL_TRACE        = 0             # <<<<<<<<<<<<<<
 * LOG_LEVEL_INFO         = 1
 * LOG_LEVEL_WARN         = 2
 */
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_LOG_LEVEL_TRACE, __pyx_int_0) < 0) __PYX_ERR(0, 413, __pyx_L1_error)

  /* "cgl_wrapper.pyx":414
 * 
 * LOG_LEVEL_TRACE        = 0
 * LOG_LEVEL_INFO         = 1             # <<<<<<<<<<<<<<
 * LOG_LEVEL_WARN         = 2
 * LOG_LEVEL_ERROR        = 3
 */
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_LOG_LEVEL_INFO, __pyx_int_1) < 0) __PYX_ERR(0, 414, __pyx_L1_error)

  /* "cgl_wrapper.pyx":415
 * LOG_LEVEL_TRACE        = 0
 * LOG_LEVEL_INFO         = 1
 * LOG_LEVEL_WARN         = 2             # <<<<<<<<<<<<<<
 * LOG_LEVEL_ERROR        = 3
 * LOG_LEVEL_INTERNAL     = 4
 */
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_LOG_LEVEL_WARN, __pyx_int_2) < 0) __PYX_ERR(0, 415, __pyx_L1_error)

  /* "cgl_wrapper.pyx":416
 * LOG_LEVEL_INFO         = 1
 * LOG_LEVEL_WARN         = 2
 * LOG_LEVEL_ERROR        = 3             # <<<<<<<<<<<<<<
 * LOG_LEVEL_INTERNAL     = 4
 * LOGGER_MAX_LOG_FILES   = 32
 */
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_LOG_LEVEL_ERROR, __pyx_int_3) < 0) __PYX_ERR(0, 416, __pyx_L1_error)

  /* "cgl_wrapper.pyx":417
 * LOG_LEVEL_WARN         = 2
 * LOG_LEVEL_ERROR        = 3
 * LOG_LEVEL_INTERNAL     = 4             # <<<<<<<<<<<<<<
 * LOGGER_MAX_LOG_FILES   = 32
 * LOGGER_LOG_BUFFER_SIZE = (1024 * 4)
 */
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_LOG_LEVEL_INTERNAL, __pyx_int_4) < 0) __PYX_ERR(0, 417, __pyx_L1_error)

  /* "cgl_wrapper.pyx":418
 * LOG_LEVEL_ERROR        = 3
 * LOG_LEVEL_INTERNAL     = 4
 * LOGGER_MAX_LOG_FILES   = 32             # <<<<<<<<<<<<<<
 * LOGGER_LOG_BUFFER_SIZE = (1024 * 4)
 * 
 */
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_LOGGER_MAX_LOG_FILES, __pyx_int_32) < 0) __PYX_ERR(0, 418, __pyx_L1_error)

  /* "cgl_wrapper.pyx":419
 * LOG_LEVEL_INTERNAL     = 4
 * LOGGER_MAX_LOG_FILES   = 32
 * LOGGER_LOG_BUFFER_SIZE = (1024 * 4)             # <<<<<<<<<<<<<<
 * 
 * 
 */
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_LOGGER_LOG_BUFFER_SIZE, __pyx_int_4096) < 0) __PYX_ERR(0, 419, __pyx_L1_error)

  /* "cgl_wrapper.pyx":422
 * 
 * 
 * def logger_init(enable_console_logging: bool):             # <<<<<<<<<<<<<<
 *     CGL_logger_init(enable_console_logging)
 * 
 */
  __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_3cgl_79logger_init, NULL, __pyx_n_s_cgl); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 422, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_logger_init, __pyx_t_1) < 0) __PYX_ERR(0, 422, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "cgl_wrapper.pyx":425
 *     CGL_logger_init(enable_console_logging)
 * 
 * def logger_shutdown():             # <<<<<<<<<<<<<<
 *     CGL_logger_shutdown()
 * 
 */
  __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_3cgl_81logger_shutdown, NULL, __pyx_n_s_cgl); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 425, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_logger_shutdown, __pyx_t_1) < 0) __PYX_ERR(0, 425, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "cgl_wrapper.pyx":428
 *     CGL_logger_shutdown()
 * 
 * def logger_attach_log_file(path: str) -> bool:             # <<<<<<<<<<<<<<
 *     return CGL_logger_attach_log_file(path.encode())
 * 
 */
  __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_3cgl_83logger_attach_log_file, NULL, __pyx_n_s_cgl); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 428, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_logger_attach_log_file, __pyx_t_1) < 0) __PYX_ERR(0, 428, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "cgl_wrapper.pyx":431
 *     return CGL_logger_attach_log_file(path.encode())
 * 
 * def logger_detach_log_file(path: str) -> bool:             # <<<<<<<<<<<<<<
 *     return CGL_logger_detach_log_file(path.encode())
 * 
 */
  __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_3cgl_85logger_detach_log_file, NULL, __pyx_n_s_cgl); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 431, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_logger_detach_log_file, __pyx_t_1) < 0) __PYX_ERR(0, 431, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "cgl_wrapper.pyx":434
 *     return CGL_logger_detach_log_file(path.encode())
 * 
 * def logger_flush():             # <<<<<<<<<<<<<<
 *     CGL_logger_flush()
 * 
 */
  __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_3cgl_87logger_flush, NULL, __pyx_n_s_cgl); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 434, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_logger_flush, __pyx_t_1) < 0) __PYX_ERR(0, 434, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "cgl_wrapper.pyx":437
 *     CGL_logger_flush()
 * 
 * def logger_disable_console_logging():             # <<<<<<<<<<<<<<
 *     CGL_logger_disable_console_logging()
 * 
 */
  __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_3cgl_89logger_disable_console_logging, NULL, __pyx_n_s_cgl); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 437, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_logger_disable_console_logging, __pyx_t_1) < 0) __PYX_ERR(0, 437, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "cgl_wrapper.pyx":440
 *     CGL_logger_disable_console_logging()
 * 
 * def logger_enable_console_logging():             # <<<<<<<<<<<<<<
 *     CGL_logger_enable_console_logging()
 * 
 */
  __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_3cgl_91logger_enable_console_logging, NULL, __pyx_n_s_cgl); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 440, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_logger_enable_console_logging, __pyx_t_1) < 0) __PYX_ERR(0, 440, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "cgl_wrapper.pyx":443
 *     CGL_logger_enable_console_logging()
 * 
 * def logger_log(level: int, log_format: str):             # <<<<<<<<<<<<<<
 *     CGL_logger_log(level, log_format.encode())
 * 
 */
  __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_3cgl_93logger_log, NULL, __pyx_n_s_cgl); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 443, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_logger_log, __pyx_t_1) < 0) __PYX_ERR(0, 443, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "cgl_wrapper.pyx":446
 *     CGL_logger_log(level, log_format.encode())
 * 
 * def log_trace(log_format: str):             # <<<<<<<<<<<<<<
 *     CGL_logger_log(LOG_LEVEL_TRACE, log_format.encode())
 * 
 */
  __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_3cgl_95log_trace, NULL, __pyx_n_s_cgl); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 446, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_log_trace, __pyx_t_1) < 0) __PYX_ERR(0, 446, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "cgl_wrapper.pyx":449
 *     CGL_logger_log(LOG_LEVEL_TRACE, log_format.encode())
 * 
 * def log_info(log_format: str):             # <<<<<<<<<<<<<<
 *     CGL_logger_log(LOG_LEVEL_INFO, log_format.encode())
 * 
 */
  __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_3cgl_97log_info, NULL, __pyx_n_s_cgl); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 449, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_log_info, __pyx_t_1) < 0) __PYX_ERR(0, 449, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "cgl_wrapper.pyx":452
 *     CGL_logger_log(LOG_LEVEL_INFO, log_format.encode())
 * 
 * def log_warn(log_format: str):             # <<<<<<<<<<<<<<
 *     CGL_logger_log(LOG_LEVEL_WARN, log_format.encode())
 * 
 */
  __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_3cgl_99log_warn, NULL, __pyx_n_s_cgl); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 452, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_log_warn, __pyx_t_1) < 0) __PYX_ERR(0, 452, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "cgl_wrapper.pyx":455
 *     CGL_logger_log(LOG_LEVEL_WARN, log_format.encode())
 * 
 * def log_error(log_format: str):             # <<<<<<<<<<<<<<
 *     CGL_logger_log(LOG_LEVEL_ERROR, log_format.encode())
 * 
 */
  __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_3cgl_101log_error, NULL, __pyx_n_s_cgl); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 455, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_log_error, __pyx_t_1) < 0) __PYX_ERR(0, 455, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "cgl_wrapper.pyx":458
 *     CGL_logger_log(LOG_LEVEL_ERROR, log_format.encode())
 * 
 * def log_internal(log_format: str):             # <<<<<<<<<<<<<<
 *     CGL_logger_log(LOG_LEVEL_INTERNAL, log_format.encode())
 * 
 */
  __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_3cgl_103log_internal, NULL, __pyx_n_s_cgl); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 458, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_log_internal, __pyx_t_1) < 0) __PYX_ERR(0, 458, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "cgl_wrapper.pyx":461
 *     CGL_logger_log(LOG_LEVEL_INTERNAL, log_format.encode())
 * 
 * def utils_crc32(data: bytes) -> int:             # <<<<<<<<<<<<<<
 *     return CGL_utils_crc32(<void*>data, len(data))
 * 
 */
  __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_3cgl_105utils_crc32, NULL, __pyx_n_s_cgl); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 461, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_utils_crc32, __pyx_t_1) < 0) __PYX_ERR(0, 461, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "cgl_wrapper.pyx":464
 *     return CGL_utils_crc32(<void*>data, len(data))
 * 
 * def utils_crc64(data: bytes) -> int:             # <<<<<<<<<<<<<<
 *     return CGL_utils_crc64(<void*>data, len(data))
 * 
 */
  __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_3cgl_107utils_crc64, NULL, __pyx_n_s_cgl); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 464, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_utils_crc64, __pyx_t_1) < 0) __PYX_ERR(0, 464, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "cgl_wrapper.pyx":467
 *     return CGL_utils_crc64(<void*>data, len(data))
 * 
 * def utils_rot13(data: bytes) -> bytes:             # <<<<<<<<<<<<<<
 *     result = bytes(len(data))
 *     CGL_utils_rot13(<char*>data, <char*>result)
 */
  __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_3cgl_109utils_rot13, NULL, __pyx_n_s_cgl); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 467, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_utils_rot13, __pyx_t_1) < 0) __PYX_ERR(0, 467, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "cgl_wrapper.pyx":472
 *     return result
 * 
 * def utils_super_fast_hash(data: bytes) -> int:             # <<<<<<<<<<<<<<
 *     return CGL_utils_super_fast_hash(<void*>data, len(data))
 * 
 */
  __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_3cgl_111utils_super_fast_hash, NULL, __pyx_n_s_cgl); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 472, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_utils_super_fast_hash, __pyx_t_1) < 0) __PYX_ERR(0, 472, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "cgl_wrapper.pyx":476
 * 
 * 
 * PI = (3.14159265358979323846)             # <<<<<<<<<<<<<<
 * TWO_PI = (6.28318530717958647692)
 * PI_2 = (1.57079632679489661923)
 */
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_PI, __pyx_float_3_14159265358979323846) < 0) __PYX_ERR(0, 476, __pyx_L1_error)

  /* "cgl_wrapper.pyx":477
 * 
 * PI = (3.14159265358979323846)
 * TWO_PI = (6.28318530717958647692)             # <<<<<<<<<<<<<<
 * PI_2 = (1.57079632679489661923)
 * E = (2.71828182845904523536)
 */
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_TWO_PI, __pyx_float_6_28318530717958647692) < 0) __PYX_ERR(0, 477, __pyx_L1_error)

  /* "cgl_wrapper.pyx":478
 * PI = (3.14159265358979323846)
 * TWO_PI = (6.28318530717958647692)
 * PI_2 = (1.57079632679489661923)             # <<<<<<<<<<<<<<
 * E = (2.71828182845904523536)
 * SQRT2 = (1.41421356237309504880)
 */
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_PI_2, __pyx_float_1_57079632679489661923) < 0) __PYX_ERR(0, 478, __pyx_L1_error)

  /* "cgl_wrapper.pyx":479
 * TWO_PI = (6.28318530717958647692)
 * PI_2 = (1.57079632679489661923)
 * E = (2.71828182845904523536)             # <<<<<<<<<<<<<<
 * SQRT2 = (1.41421356237309504880)
 * SQRT3 = (1.73205080756887729352)
 */
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_E, __pyx_float_2_71828182845904523536) < 0) __PYX_ERR(0, 479, __pyx_L1_error)

  /* "cgl_wrapper.pyx":480
 * PI_2 = (1.57079632679489661923)
 * E = (2.71828182845904523536)
 * SQRT2 = (1.41421356237309504880)             # <<<<<<<<<<<<<<
 * SQRT3 = (1.73205080756887729352)
 * SQRT5 = (2.23606797749978969640)
 */
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_SQRT2, __pyx_float_1_41421356237309504880) < 0) __PYX_ERR(0, 480, __pyx_L1_error)

  /* "cgl_wrapper.pyx":481
 * E = (2.71828182845904523536)
 * SQRT2 = (1.41421356237309504880)
 * SQRT3 = (1.73205080756887729352)             # <<<<<<<<<<<<<<
 * SQRT5 = (2.23606797749978969640)
 * SQRT6 = (2.44948974278317809820)
 */
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_SQRT3, __pyx_float_1_73205080756887729352) < 0) __PYX_ERR(0, 481, __pyx_L1_error)

  /* "cgl_wrapper.pyx":482
 * SQRT2 = (1.41421356237309504880)
 * SQRT3 = (1.73205080756887729352)
 * SQRT5 = (2.23606797749978969640)             # <<<<<<<<<<<<<<
 * SQRT6 = (2.44948974278317809820)
 * SQRT7 = (2.64575131106459059050)
 */
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_SQRT5, __pyx_float_2_23606797749978969640) < 0) __PYX_ERR(0, 482, __pyx_L1_error)

  /* "cgl_wrapper.pyx":483
 * SQRT3 = (1.73205080756887729352)
 * SQRT5 = (2.23606797749978969640)
 * SQRT6 = (2.44948974278317809820)             # <<<<<<<<<<<<<<
 * SQRT7 = (2.64575131106459059050)
 * SQRT8 = (2.82842712474619009760)
 */
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_SQRT6, __pyx_float_2_44948974278317809820) < 0) __PYX_ERR(0, 483, __pyx_L1_error)

  /* "cgl_wrapper.pyx":484
 * SQRT5 = (2.23606797749978969640)
 * SQRT6 = (2.44948974278317809820)
 * SQRT7 = (2.64575131106459059050)             # <<<<<<<<<<<<<<
 * SQRT8 = (2.82842712474619009760)
 * 
 */
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_SQRT7, __pyx_float_2_64575131106459059050) < 0) __PYX_ERR(0, 484, __pyx_L1_error)

  /* "cgl_wrapper.pyx":485
 * SQRT6 = (2.44948974278317809820)
 * SQRT7 = (2.64575131106459059050)
 * SQRT8 = (2.82842712474619009760)             # <<<<<<<<<<<<<<
 * 
 * def deg_to_rad(deg):
 */
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_SQRT8, __pyx_float_2_82842712474619009760) < 0) __PYX_ERR(0, 485, __pyx_L1_error)

  /* "cgl_wrapper.pyx":487
 * SQRT8 = (2.82842712474619009760)
 * 
 * def deg_to_rad(deg):             # <<<<<<<<<<<<<<
 *     return ((deg) * (PI / 180.0))
 * 
 */
  __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_3cgl_113deg_to_rad, NULL, __pyx_n_s_cgl); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 487, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_deg_to_rad, __pyx_t_1) < 0) __PYX_ERR(0, 487, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "cgl_wrapper.pyx":490
 *     return ((deg) * (PI / 180.0))
 * 
 * def rad_to_deg(rad):             # <<<<<<<<<<<<<<
 *     return ((rad) * (180.0 / PI))
 * 
 */
  __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_3cgl_115rad_to_deg, NULL, __pyx_n_s_cgl); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 490, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_rad_to_deg, __pyx_t_1) < 0) __PYX_ERR(0, 490, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "cgl_wrapper.pyx":493
 *     return ((rad) * (180.0 / PI))
 * 
 * def float_lerp(a: float, b: float, t: float):             # <<<<<<<<<<<<<<
 *     return ((a) + ((b) - (a)) * (t))
 * 
 */
  __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_3cgl_117float_lerp, NULL, __pyx_n_s_cgl); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 493, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_float_lerp, __pyx_t_1) < 0) __PYX_ERR(0, 493, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "cgl_wrapper.pyx":496
 *     return ((a) + ((b) - (a)) * (t))
 * 
 * def float_quadratic_lerp(a: float, b: float, c: float, t: float) -> float:             # <<<<<<<<<<<<<<
 *     return CGL_float_quadratic_lerp(a, b, c, t)
 * 
 */
  __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_3cgl_119float_quadratic_lerp, NULL, __pyx_n_s_cgl); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 496, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_float_quadratic_lerp, __pyx_t_1) < 0) __PYX_ERR(0, 496, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "cgl_wrapper.pyx":499
 *     return CGL_float_quadratic_lerp(a, b, c, t)
 * 
 * def float_cubic_lerp(a: float, b: float, c: float, d: float, t: float) -> float:             # <<<<<<<<<<<<<<
 *     return CGL_float_cubic_lerp(a, b, c, d, t)
 * 
 */
  __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_3cgl_121float_cubic_lerp, NULL, __pyx_n_s_cgl); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 499, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_float_cubic_lerp, __pyx_t_1) < 0) __PYX_ERR(0, 499, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "cgl_wrapper.pyx":592
 *         return vec2(self.x / length, self.y / length)
 * 
 * def vec2_triple_product(a: vec2, b: vec2, c: vec2) -> vec2:             # <<<<<<<<<<<<<<
 *     cdef CGL_vec2 obj = vec2(CGL_vec2_triple_product(a.c_vec2, b.c_vec2, c.c_vec2))
 *     return vec2(obj.x, obj.y)
 */
  __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_3cgl_123vec2_triple_product, NULL, __pyx_n_s_cgl); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 592, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_vec2_triple_product, __pyx_t_1) < 0) __PYX_ERR(0, 592, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "cgl_wrapper.pyx":696
 *         return vec3(self.x / length, self.y / length, self.z / length)
 * 
 * def vec3_reflect(a: vec3, n: vec3) -> vec3:             # <<<<<<<<<<<<<<
 *     cdef CGL_vec3 obj = vec3(CGL_vec3_reflect(a.c_vec3, n.c_vec3))
 *     return vec3(obj.x, obj.y, obj.z)
 */
  __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_3cgl_125vec3_reflect, NULL, __pyx_n_s_cgl); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 696, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_vec3_reflect, __pyx_t_1) < 0) __PYX_ERR(0, 696, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "cgl_wrapper.pyx":700
 *     return vec3(obj.x, obj.y, obj.z)
 * 
 * def vec3_rotate_about_axis(v: vec3, axis: vec3, theta: float) -> vec3:             # <<<<<<<<<<<<<<
 *     cdef CGL_vec3 obj = vec3(CGL_vec3_rotate_about_axis(v.c_vec3, axis.c_vec3, theta))
 *     return vec3(obj.x, obj.y, obj.z)
 */
  __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_3cgl_127vec3_rotate_about_axis, NULL, __pyx_n_s_cgl); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 700, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_vec3_rotate_about_axis, __pyx_t_1) < 0) __PYX_ERR(0, 700, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "cgl_wrapper.pyx":704
 *     return vec3(obj.x, obj.y, obj.z)
 * 
 * def vec3_triple_product(a: vec3, b: vec3, c: vec3) -> vec3:             # <<<<<<<<<<<<<<
 *     cdef CGL_vec3 obj = vec3(CGL_vec3_triple_product(a.c_vec3, b.c_vec3, c.c_vec3))
 *     return vec3(obj.x, obj.y, obj.z)
 */
  __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_3cgl_129vec3_triple_product, NULL, __pyx_n_s_cgl); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 704, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_vec3_triple_product, __pyx_t_1) < 0) __PYX_ERR(0, 704, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "cgl_wrapper.pyx":814
 *         return vec4(self.x / length, self.y / length, self.z / length, self.w / length)
 * 
 * def vec4_triple_product(a: vec4, b: vec4, c: vec4) -> vec4:             # <<<<<<<<<<<<<<
 *     cdef CGL_vec4 obj = vec4(CGL_vec4_triple_product(a.c_vec4, b.c_vec4, c.c_vec4))
 *     return vec4(obj.x, obj.y, obj.z, obj.w)
 */
  __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_3cgl_131vec4_triple_product, NULL, __pyx_n_s_cgl); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 814, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_vec4_triple_product, __pyx_t_1) < 0) __PYX_ERR(0, 814, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "cgl_wrapper.pyx":916
 *         return hash((self.c_mat4.m[0], self.c_mat4.m[1], self.c_mat4.m[2], self.c_mat4.m[3], self.c_mat4.m[4], self.c_mat4.m[5], self.c_mat4.m[6], self.c_mat4.m[7], self.c_mat4.m[8], self.c_mat4.m[9], self.c_mat4.m[10], self.c_mat4.m[11], self.c_mat4.m[12], self.c_mat4.m[13], self.c_mat4.m[14], self.c_mat4.m[15]))
 * 
 * def mat4_mul(a: mat4, b: mat4) -> mat4:             # <<<<<<<<<<<<<<
 *     cdef CGL_mat4 obj = CGL_mat4_mul(a.c_mat4, b.c_mat4)
 *     result = mat4()
 */
  __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_3cgl_133mat4_mul, NULL, __pyx_n_s_cgl); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 916, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_mat4_mul, __pyx_t_1) < 0) __PYX_ERR(0, 916, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "cgl_wrapper.pyx":922
 *     return result
 * 
 * def mat4_det(m: mat4) -> float:             # <<<<<<<<<<<<<<
 *     return CGL_mat4_det(m.c_mat4)
 * 
 */
  __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_3cgl_135mat4_det, NULL, __pyx_n_s_cgl); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 922, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_mat4_det, __pyx_t_1) < 0) __PYX_ERR(0, 922, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "cgl_wrapper.pyx":925
 *     return CGL_mat4_det(m.c_mat4)
 * 
 * def mat4_det_by_lu(m: mat4) -> float:             # <<<<<<<<<<<<<<
 *     return CGL_mat4_det_by_lu(m.c_mat4)
 * 
 */
  __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_3cgl_137mat4_det_by_lu, NULL, __pyx_n_s_cgl); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 925, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_mat4_det_by_lu, __pyx_t_1) < 0) __PYX_ERR(0, 925, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "cgl_wrapper.pyx":928
 *     return CGL_mat4_det_by_lu(m.c_mat4)
 * 
 * def mat4_det_by_gauss(m: mat4) -> float:             # <<<<<<<<<<<<<<
 *     return CGL_mat4_det_by_gauss(m.c_mat4)
 * 
 */
  __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_3cgl_139mat4_det_by_gauss, NULL, __pyx_n_s_cgl); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 928, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_mat4_det_by_gauss, __pyx_t_1) < 0) __PYX_ERR(0, 928, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "cgl_wrapper.pyx":931
 *     return CGL_mat4_det_by_gauss(m.c_mat4)
 * 
 * def mat4_mul_vec4(m: mat4, v: vec4) -> vec4:             # <<<<<<<<<<<<<<
 *     cdef CGL_vec4 obj = CGL_mat4_mul_vec4(m.c_mat4, v.c_vec4)
 *     return vec4(obj.x, obj.y, obj.z, obj.w)
 */
  __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_3cgl_141mat4_mul_vec4, NULL, __pyx_n_s_cgl); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 931, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_mat4_mul_vec4, __pyx_t_1) < 0) __PYX_ERR(0, 931, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "cgl_wrapper.pyx":935
 *     return vec4(obj.x, obj.y, obj.z, obj.w)
 * 
 * def mat4_inverse(m: mat4) -> mat4:             # <<<<<<<<<<<<<<
 *     cdef CGL_mat4 obj = CGL_mat4_inverse(m.c_mat4)
 *     result = mat4()
 */
  __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_3cgl_143mat4_inverse, NULL, __pyx_n_s_cgl); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 935, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_mat4_inverse, __pyx_t_1) < 0) __PYX_ERR(0, 935, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "cgl_wrapper.pyx":941
 *     return result
 * 
 * def mat4_transpose(m: mat4) -> mat4:             # <<<<<<<<<<<<<<
 *     cdef CGL_mat4 obj = CGL_mat4_transpose(m.c_mat4)
 *     result = mat4()
 */
  __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_3cgl_145mat4_transpose, NULL, __pyx_n_s_cgl); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 941, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_mat4_transpose, __pyx_t_1) < 0) __PYX_ERR(0, 941, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "cgl_wrapper.pyx":947
 *     return result
 * 
 * def mat4_adjoint(m: mat4) -> mat4:             # <<<<<<<<<<<<<<
 *     cdef CGL_mat4 obj = CGL_mat4_adjoint(m.c_mat4)
 *     result = mat4()
 */
  __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_3cgl_147mat4_adjoint, NULL, __pyx_n_s_cgl); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 947, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_mat4_adjoint, __pyx_t_1) < 0) __PYX_ERR(0, 947, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "cgl_wrapper.pyx":953
 *     return result
 * 
 * def mat4_gauss_elim(m: mat4) -> mat4:             # <<<<<<<<<<<<<<
 *     cdef CGL_mat4 obj = CGL_mat4_gauss_elim(m.c_mat4)
 *     result = mat4()
 */
  __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_3cgl_149mat4_gauss_elim, NULL, __pyx_n_s_cgl); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 953, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_mat4_gauss_elim, __pyx_t_1) < 0) __PYX_ERR(0, 953, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "cgl_wrapper.pyx":959
 *     return result
 * 
 * def mat4_rank(m: mat4) -> int:             # <<<<<<<<<<<<<<
 *     return CGL_mat4_rank(m.c_mat4)
 * 
 */
  __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_3cgl_151mat4_rank, NULL, __pyx_n_s_cgl); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 959, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_mat4_rank, __pyx_t_1) < 0) __PYX_ERR(0, 959, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "cgl_wrapper.pyx":962
 *     return CGL_mat4_rank(m.c_mat4)
 * 
 * def mat4_trace(m: mat4) -> float:             # <<<<<<<<<<<<<<
 *     return CGL_mat4_trace(m.c_mat4)
 * 
 */
  __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_3cgl_153mat4_trace, NULL, __pyx_n_s_cgl); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 962, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_mat4_trace, __pyx_t_1) < 0) __PYX_ERR(0, 962, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "cgl_wrapper.pyx":965
 *     return CGL_mat4_trace(m.c_mat4)
 * 
 * def mat4_rotate_about_axis(axis: vec3, angle: float) -> mat4:             # <<<<<<<<<<<<<<
 *     cdef CGL_mat4 obj = CGL_mat4_rotate_about_axis(axis.c_vec3, angle)
 *     result = mat4()
 */
  __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_3cgl_155mat4_rotate_about_axis, NULL, __pyx_n_s_cgl); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 965, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_mat4_rotate_about_axis, __pyx_t_1) < 0) __PYX_ERR(0, 965, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "cgl_wrapper.pyx":971
 *     return result
 * 
 * def mat4_look_at(eye: vec3, target: vec3, up: vec3) -> mat4:             # <<<<<<<<<<<<<<
 *     cdef CGL_mat4 obj = CGL_mat4_look_at(eye.c_vec3, target.c_vec3, up.c_vec3)
 *     result = mat4()
 */
  __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_3cgl_157mat4_look_at, NULL, __pyx_n_s_cgl); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 971, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_mat4_look_at, __pyx_t_1) < 0) __PYX_ERR(0, 971, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "cgl_wrapper.pyx":977
 *     return result
 * 
 * def mat4_lerp(a: mat4, b: mat4, t: float) -> mat4:             # <<<<<<<<<<<<<<
 *     cdef CGL_mat4 obj = CGL_mat4_lerp(a.c_mat4, b.c_mat4, t)
 *     result = mat4()
 */
  __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_3cgl_159mat4_lerp, NULL, __pyx_n_s_cgl); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 977, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_mat4_lerp, __pyx_t_1) < 0) __PYX_ERR(0, 977, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "cgl_wrapper.pyx":983
 *     return result
 * 
 * def mat4_decompose_lu(m: mat4, l: mat4, u: mat4):             # <<<<<<<<<<<<<<
 *     cdef CGL_mat4 l_obj = CGL_mat4()
 *     cdef CGL_mat4 u_obj = CGL_mat4()
 */
  __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_3cgl_161mat4_decompose_lu, NULL, __pyx_n_s_cgl); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 983, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_mat4_decompose_lu, __pyx_t_1) < 0) __PYX_ERR(0, 983, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "cgl_wrapper.pyx":993
 *     return (l, u)
 * 
 * def mat4_perspective(fov: float, aspect: float, near: float, far: float) -> mat4:             # <<<<<<<<<<<<<<
 *     cdef CGL_mat4 obj = CGL_mat4_perspective(fov, aspect, near, far)
 *     result = mat4()
 */
  __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_3cgl_163mat4_perspective, NULL, __pyx_n_s_cgl); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 993, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_mat4_perspective, __pyx_t_1) < 0) __PYX_ERR(0, 993, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "cgl_wrapper.pyx":999
 *     return result
 * 
 * def mat4_orthographic(left: float, right: float, bottom: float, top: float, near: float, far: float) -> mat4:             # <<<<<<<<<<<<<<
 *     cdef CGL_mat4 obj = CGL_mat4_orthographic(left, right, bottom, top, near, far)
 *     result = mat4()
 */
  __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_3cgl_165mat4_orthographic, NULL, __pyx_n_s_cgl); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 999, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_mat4_orthographic, __pyx_t_1) < 0) __PYX_ERR(0, 999, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "cgl_wrapper.pyx":1005
 *     return result
 * 
 * def mat4_zero() -> mat4:             # <<<<<<<<<<<<<<
 *     cdef CGL_mat4 obj = CGL_mat4_zero()
 *     result = mat4()
 */
  __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_3cgl_167mat4_zero, NULL, __pyx_n_s_cgl); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1005, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_mat4_zero, __pyx_t_1) < 0) __PYX_ERR(0, 1005, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "cgl_wrapper.pyx":1011
 *     return result
 * 
 * def mat4_identity() -> mat4:             # <<<<<<<<<<<<<<
 *     cdef CGL_mat4 obj = CGL_mat4_identity()
 *     result = mat4()
 */
  __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_3cgl_169mat4_identity, NULL, __pyx_n_s_cgl); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1011, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_mat4_identity, __pyx_t_1) < 0) __PYX_ERR(0, 1011, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "cgl_wrapper.pyx":1018
 * 
 * 
 * def mat4_scale(x: float, y: float, z: float) -> mat4:             # <<<<<<<<<<<<<<
 *     cdef CGL_mat4 obj = CGL_mat4_scale(x, y, z)
 *     result = mat4()
 */
  __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_3cgl_171mat4_scale, NULL, __pyx_n_s_cgl); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1018, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_mat4_scale, __pyx_t_1) < 0) __PYX_ERR(0, 1018, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "cgl_wrapper.pyx":1024
 *     return result
 * 
 * def mat4_translate(x: float, y: float, z: float) -> mat4:             # <<<<<<<<<<<<<<
 *     cdef CGL_mat4 obj = CGL_mat4_translate(x, y, z)
 *     result = mat4()
 */
  __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_3cgl_173mat4_translate, NULL, __pyx_n_s_cgl); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1024, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_mat4_translate, __pyx_t_1) < 0) __PYX_ERR(0, 1024, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "cgl_wrapper.pyx":1030
 *     return result
 * 
 * def mat4_rotate_x(angle: float) -> mat4:             # <<<<<<<<<<<<<<
 *     cdef CGL_mat4 obj = CGL_mat4_rotate_x(angle)
 *     result = mat4()
 */
  __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_3cgl_175mat4_rotate_x, NULL, __pyx_n_s_cgl); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1030, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_mat4_rotate_x, __pyx_t_1) < 0) __PYX_ERR(0, 1030, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "cgl_wrapper.pyx":1036
 *     return result
 * 
 * def mat4_rotate_y(angle: float) -> mat4:             # <<<<<<<<<<<<<<
 *     cdef CGL_mat4 obj = CGL_mat4_rotate_y(angle)
 *     result = mat4()
 */
  __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_3cgl_177mat4_rotate_y, NULL, __pyx_n_s_cgl); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1036, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_mat4_rotate_y, __pyx_t_1) < 0) __PYX_ERR(0, 1036, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "cgl_wrapper.pyx":1042
 *     return result
 * 
 * def mat4_rotate_z(angle: float) -> mat4:             # <<<<<<<<<<<<<<
 *     cdef CGL_mat4 obj = CGL_mat4_rotate_z(angle)
 *     result = mat4()
 */
  __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_3cgl_179mat4_rotate_z, NULL, __pyx_n_s_cgl); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1042, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_mat4_rotate_z, __pyx_t_1) < 0) __PYX_ERR(0, 1042, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "cgl_wrapper.pyx":1136
 * 
 * 
 * KEY_UNKNOWN            = -1             # <<<<<<<<<<<<<<
 * KEY_SPACE              = 32
 * KEY_APOSTROPHE         = 39
 */
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_KEY_UNKNOWN, __pyx_int_neg_1) < 0) __PYX_ERR(0, 1136, __pyx_L1_error)

  /* "cgl_wrapper.pyx":1137
 * 
 * KEY_UNKNOWN            = -1
 * KEY_SPACE              = 32             # <<<<<<<<<<<<<<
 * KEY_APOSTROPHE         = 39
 * KEY_COMMA              = 44
 */
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_KEY_SPACE, __pyx_int_32) < 0) __PYX_ERR(0, 1137, __pyx_L1_error)

  /* "cgl_wrapper.pyx":1138
 * KEY_UNKNOWN            = -1
 * KEY_SPACE              = 32
 * KEY_APOSTROPHE         = 39             # <<<<<<<<<<<<<<
 * KEY_COMMA              = 44
 * KEY_MINUS              = 45
 */
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_KEY_APOSTROPHE, __pyx_int_39) < 0) __PYX_ERR(0, 1138, __pyx_L1_error)

  /* "cgl_wrapper.pyx":1139
 * KEY_SPACE              = 32
 * KEY_APOSTROPHE         = 39
 * KEY_COMMA              = 44             # <<<<<<<<<<<<<<
 * KEY_MINUS              = 45
 * KEY_PERIOD             = 46
 */
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_KEY_COMMA, __pyx_int_44) < 0) __PYX_ERR(0, 1139, __pyx_L1_error)

  /* "cgl_wrapper.pyx":1140
 * KEY_APOSTROPHE         = 39
 * KEY_COMMA              = 44
 * KEY_MINUS              = 45             # <<<<<<<<<<<<<<
 * KEY_PERIOD             = 46
 * KEY_SLASH              = 47
 */
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_KEY_MINUS, __pyx_int_45) < 0) __PYX_ERR(0, 1140, __pyx_L1_error)

  /* "cgl_wrapper.pyx":1141
 * KEY_COMMA              = 44
 * KEY_MINUS              = 45
 * KEY_PERIOD             = 46             # <<<<<<<<<<<<<<
 * KEY_SLASH              = 47
 * KEY_0                  = 48
 */
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_KEY_PERIOD, __pyx_int_46) < 0) __PYX_ERR(0, 1141, __pyx_L1_error)

  /* "cgl_wrapper.pyx":1142
 * KEY_MINUS              = 45
 * KEY_PERIOD             = 46
 * KEY_SLASH              = 47             # <<<<<<<<<<<<<<
 * KEY_0                  = 48
 * KEY_1                  = 49
 */
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_KEY_SLASH, __pyx_int_47) < 0) __PYX_ERR(0, 1142, __pyx_L1_error)

  /* "cgl_wrapper.pyx":1143
 * KEY_PERIOD             = 46
 * KEY_SLASH              = 47
 * KEY_0                  = 48             # <<<<<<<<<<<<<<
 * KEY_1                  = 49
 * KEY_2                  = 50
 */
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_KEY_0, __pyx_int_48) < 0) __PYX_ERR(0, 1143, __pyx_L1_error)

  /* "cgl_wrapper.pyx":1144
 * KEY_SLASH              = 47
 * KEY_0                  = 48
 * KEY_1                  = 49             # <<<<<<<<<<<<<<
 * KEY_2                  = 50
 * KEY_3                  = 51
 */
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_KEY_1, __pyx_int_49) < 0) __PYX_ERR(0, 1144, __pyx_L1_error)

  /* "cgl_wrapper.pyx":1145
 * KEY_0                  = 48
 * KEY_1                  = 49
 * KEY_2                  = 50             # <<<<<<<<<<<<<<
 * KEY_3                  = 51
 * KEY_4                  = 52
 */
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_KEY_2, __pyx_int_50) < 0) __PYX_ERR(0, 1145, __pyx_L1_error)

  /* "cgl_wrapper.pyx":1146
 * KEY_1                  = 49
 * KEY_2                  = 50
 * KEY_3                  = 51             # <<<<<<<<<<<<<<
 * KEY_4                  = 52
 * KEY_5                  = 53
 */
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_KEY_3, __pyx_int_51) < 0) __PYX_ERR(0, 1146, __pyx_L1_error)

  /* "cgl_wrapper.pyx":1147
 * KEY_2                  = 50
 * KEY_3                  = 51
 * KEY_4                  = 52             # <<<<<<<<<<<<<<
 * KEY_5                  = 53
 * KEY_6                  = 54
 */
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_KEY_4, __pyx_int_52) < 0) __PYX_ERR(0, 1147, __pyx_L1_error)

  /* "cgl_wrapper.pyx":1148
 * KEY_3                  = 51
 * KEY_4                  = 52
 * KEY_5                  = 53             # <<<<<<<<<<<<<<
 * KEY_6                  = 54
 * KEY_7                  = 55
 */
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_KEY_5, __pyx_int_53) < 0) __PYX_ERR(0, 1148, __pyx_L1_error)

  /* "cgl_wrapper.pyx":1149
 * KEY_4                  = 52
 * KEY_5                  = 53
 * KEY_6                  = 54             # <<<<<<<<<<<<<<
 * KEY_7                  = 55
 * KEY_8                  = 56
 */
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_KEY_6, __pyx_int_54) < 0) __PYX_ERR(0, 1149, __pyx_L1_error)

  /* "cgl_wrapper.pyx":1150
 * KEY_5                  = 53
 * KEY_6                  = 54
 * KEY_7                  = 55             # <<<<<<<<<<<<<<
 * KEY_8                  = 56
 * KEY_9                  = 57
 */
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_KEY_7, __pyx_int_55) < 0) __PYX_ERR(0, 1150, __pyx_L1_error)

  /* "cgl_wrapper.pyx":1151
 * KEY_6                  = 54
 * KEY_7                  = 55
 * KEY_8                  = 56             # <<<<<<<<<<<<<<
 * KEY_9                  = 57
 * KEY_SEMICOLON          = 59
 */
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_KEY_8, __pyx_int_56) < 0) __PYX_ERR(0, 1151, __pyx_L1_error)

  /* "cgl_wrapper.pyx":1152
 * KEY_7                  = 55
 * KEY_8                  = 56
 * KEY_9                  = 57             # <<<<<<<<<<<<<<
 * KEY_SEMICOLON          = 59
 * KEY_EQUAL              = 61
 */
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_KEY_9, __pyx_int_57) < 0) __PYX_ERR(0, 1152, __pyx_L1_error)

  /* "cgl_wrapper.pyx":1153
 * KEY_8                  = 56
 * KEY_9                  = 57
 * KEY_SEMICOLON          = 59             # <<<<<<<<<<<<<<
 * KEY_EQUAL              = 61
 * KEY_A                  = 65
 */
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_KEY_SEMICOLON, __pyx_int_59) < 0) __PYX_ERR(0, 1153, __pyx_L1_error)

  /* "cgl_wrapper.pyx":1154
 * KEY_9                  = 57
 * KEY_SEMICOLON          = 59
 * KEY_EQUAL              = 61             # <<<<<<<<<<<<<<
 * KEY_A                  = 65
 * KEY_B                  = 66
 */
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_KEY_EQUAL, __pyx_int_61) < 0) __PYX_ERR(0, 1154, __pyx_L1_error)

  /* "cgl_wrapper.pyx":1155
 * KEY_SEMICOLON          = 59
 * KEY_EQUAL              = 61
 * KEY_A                  = 65             # <<<<<<<<<<<<<<
 * KEY_B                  = 66
 * KEY_C                  = 67
 */
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_KEY_A, __pyx_int_65) < 0) __PYX_ERR(0, 1155, __pyx_L1_error)

  /* "cgl_wrapper.pyx":1156
 * KEY_EQUAL              = 61
 * KEY_A                  = 65
 * KEY_B                  = 66             # <<<<<<<<<<<<<<
 * KEY_C                  = 67
 * KEY_D                  = 68
 */
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_KEY_B, __pyx_int_66) < 0) __PYX_ERR(0, 1156, __pyx_L1_error)

  /* "cgl_wrapper.pyx":1157
 * KEY_A                  = 65
 * KEY_B                  = 66
 * KEY_C                  = 67             # <<<<<<<<<<<<<<
 * KEY_D                  = 68
 * KEY_E                  = 69
 */
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_KEY_C, __pyx_int_67) < 0) __PYX_ERR(0, 1157, __pyx_L1_error)

  /* "cgl_wrapper.pyx":1158
 * KEY_B                  = 66
 * KEY_C                  = 67
 * KEY_D                  = 68             # <<<<<<<<<<<<<<
 * KEY_E                  = 69
 * KEY_F                  = 70
 */
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_KEY_D, __pyx_int_68) < 0) __PYX_ERR(0, 1158, __pyx_L1_error)

  /* "cgl_wrapper.pyx":1159
 * KEY_C                  = 67
 * KEY_D                  = 68
 * KEY_E                  = 69             # <<<<<<<<<<<<<<
 * KEY_F                  = 70
 * KEY_G                  = 71
 */
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_KEY_E, __pyx_int_69) < 0) __PYX_ERR(0, 1159, __pyx_L1_error)

  /* "cgl_wrapper.pyx":1160
 * KEY_D                  = 68
 * KEY_E                  = 69
 * KEY_F                  = 70             # <<<<<<<<<<<<<<
 * KEY_G                  = 71
 * KEY_H                  = 72
 */
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_KEY_F, __pyx_int_70) < 0) __PYX_ERR(0, 1160, __pyx_L1_error)

  /* "cgl_wrapper.pyx":1161
 * KEY_E                  = 69
 * KEY_F                  = 70
 * KEY_G                  = 71             # <<<<<<<<<<<<<<
 * KEY_H                  = 72
 * KEY_I                  = 73
 */
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_KEY_G, __pyx_int_71) < 0) __PYX_ERR(0, 1161, __pyx_L1_error)

  /* "cgl_wrapper.pyx":1162
 * KEY_F                  = 70
 * KEY_G                  = 71
 * KEY_H                  = 72             # <<<<<<<<<<<<<<
 * KEY_I                  = 73
 * KEY_J                  = 74
 */
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_KEY_H, __pyx_int_72) < 0) __PYX_ERR(0, 1162, __pyx_L1_error)

  /* "cgl_wrapper.pyx":1163
 * KEY_G                  = 71
 * KEY_H                  = 72
 * KEY_I                  = 73             # <<<<<<<<<<<<<<
 * KEY_J                  = 74
 * KEY_K                  = 75
 */
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_KEY_I, __pyx_int_73) < 0) __PYX_ERR(0, 1163, __pyx_L1_error)

  /* "cgl_wrapper.pyx":1164
 * KEY_H                  = 72
 * KEY_I                  = 73
 * KEY_J                  = 74             # <<<<<<<<<<<<<<
 * KEY_K                  = 75
 * KEY_L                  = 76
 */
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_KEY_J, __pyx_int_74) < 0) __PYX_ERR(0, 1164, __pyx_L1_error)

  /* "cgl_wrapper.pyx":1165
 * KEY_I                  = 73
 * KEY_J                  = 74
 * KEY_K                  = 75             # <<<<<<<<<<<<<<
 * KEY_L                  = 76
 * KEY_M                  = 77
 */
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_KEY_K, __pyx_int_75) < 0) __PYX_ERR(0, 1165, __pyx_L1_error)

  /* "cgl_wrapper.pyx":1166
 * KEY_J                  = 74
 * KEY_K                  = 75
 * KEY_L                  = 76             # <<<<<<<<<<<<<<
 * KEY_M                  = 77
 * KEY_N                  = 78
 */
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_KEY_L, __pyx_int_76) < 0) __PYX_ERR(0, 1166, __pyx_L1_error)

  /* "cgl_wrapper.pyx":1167
 * KEY_K                  = 75
 * KEY_L                  = 76
 * KEY_M                  = 77             # <<<<<<<<<<<<<<
 * KEY_N                  = 78
 * KEY_O                  = 79
 */
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_KEY_M, __pyx_int_77) < 0) __PYX_ERR(0, 1167, __pyx_L1_error)

  /* "cgl_wrapper.pyx":1168
 * KEY_L                  = 76
 * KEY_M                  = 77
 * KEY_N                  = 78             # <<<<<<<<<<<<<<
 * KEY_O                  = 79
 * KEY_P                  = 80
 */
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_KEY_N, __pyx_int_78) < 0) __PYX_ERR(0, 1168, __pyx_L1_error)

  /* "cgl_wrapper.pyx":1169
 * KEY_M                  = 77
 * KEY_N                  = 78
 * KEY_O                  = 79             # <<<<<<<<<<<<<<
 * KEY_P                  = 80
 * KEY_Q                  = 81
 */
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_KEY_O, __pyx_int_79) < 0) __PYX_ERR(0, 1169, __pyx_L1_error)

  /* "cgl_wrapper.pyx":1170
 * KEY_N                  = 78
 * KEY_O                  = 79
 * KEY_P                  = 80             # <<<<<<<<<<<<<<
 * KEY_Q                  = 81
 * KEY_R                  = 82
 */
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_KEY_P, __pyx_int_80) < 0) __PYX_ERR(0, 1170, __pyx_L1_error)

  /* "cgl_wrapper.pyx":1171
 * KEY_O                  = 79
 * KEY_P                  = 80
 * KEY_Q                  = 81             # <<<<<<<<<<<<<<
 * KEY_R                  = 82
 * KEY_S                  = 83
 */
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_KEY_Q, __pyx_int_81) < 0) __PYX_ERR(0, 1171, __pyx_L1_error)

  /* "cgl_wrapper.pyx":1172
 * KEY_P                  = 80
 * KEY_Q                  = 81
 * KEY_R                  = 82             # <<<<<<<<<<<<<<
 * KEY_S                  = 83
 * KEY_T                  = 84
 */
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_KEY_R, __pyx_int_82) < 0) __PYX_ERR(0, 1172, __pyx_L1_error)

  /* "cgl_wrapper.pyx":1173
 * KEY_Q                  = 81
 * KEY_R                  = 82
 * KEY_S                  = 83             # <<<<<<<<<<<<<<
 * KEY_T                  = 84
 * KEY_U                  = 85
 */
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_KEY_S, __pyx_int_83) < 0) __PYX_ERR(0, 1173, __pyx_L1_error)

  /* "cgl_wrapper.pyx":1174
 * KEY_R                  = 82
 * KEY_S                  = 83
 * KEY_T                  = 84             # <<<<<<<<<<<<<<
 * KEY_U                  = 85
 * KEY_V                  = 86
 */
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_KEY_T, __pyx_int_84) < 0) __PYX_ERR(0, 1174, __pyx_L1_error)

  /* "cgl_wrapper.pyx":1175
 * KEY_S                  = 83
 * KEY_T                  = 84
 * KEY_U                  = 85             # <<<<<<<<<<<<<<
 * KEY_V                  = 86
 * KEY_W                  = 87
 */
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_KEY_U, __pyx_int_85) < 0) __PYX_ERR(0, 1175, __pyx_L1_error)

  /* "cgl_wrapper.pyx":1176
 * KEY_T                  = 84
 * KEY_U                  = 85
 * KEY_V                  = 86             # <<<<<<<<<<<<<<
 * KEY_W                  = 87
 * KEY_X                  = 88
 */
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_KEY_V, __pyx_int_86) < 0) __PYX_ERR(0, 1176, __pyx_L1_error)

  /* "cgl_wrapper.pyx":1177
 * KEY_U                  = 85
 * KEY_V                  = 86
 * KEY_W                  = 87             # <<<<<<<<<<<<<<
 * KEY_X                  = 88
 * KEY_Y                  = 89
 */
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_KEY_W, __pyx_int_87) < 0) __PYX_ERR(0, 1177, __pyx_L1_error)

  /* "cgl_wrapper.pyx":1178
 * KEY_V                  = 86
 * KEY_W                  = 87
 * KEY_X                  = 88             # <<<<<<<<<<<<<<
 * KEY_Y                  = 89
 * KEY_Z                  = 90
 */
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_KEY_X, __pyx_int_88) < 0) __PYX_ERR(0, 1178, __pyx_L1_error)

  /* "cgl_wrapper.pyx":1179
 * KEY_W                  = 87
 * KEY_X                  = 88
 * KEY_Y                  = 89             # <<<<<<<<<<<<<<
 * KEY_Z                  = 90
 * KEY_LEFT_BRACKET       = 91
 */
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_KEY_Y, __pyx_int_89) < 0) __PYX_ERR(0, 1179, __pyx_L1_error)

  /* "cgl_wrapper.pyx":1180
 * KEY_X                  = 88
 * KEY_Y                  = 89
 * KEY_Z                  = 90             # <<<<<<<<<<<<<<
 * KEY_LEFT_BRACKET       = 91
 * KEY_BACKSLASH          = 92
 */
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_KEY_Z, __pyx_int_90) < 0) __PYX_ERR(0, 1180, __pyx_L1_error)

  /* "cgl_wrapper.pyx":1181
 * KEY_Y                  = 89
 * KEY_Z                  = 90
 * KEY_LEFT_BRACKET       = 91             # <<<<<<<<<<<<<<
 * KEY_BACKSLASH          = 92
 * KEY_RIGHT_BRACKET      = 93
 */
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_KEY_LEFT_BRACKET, __pyx_int_91) < 0) __PYX_ERR(0, 1181, __pyx_L1_error)

  /* "cgl_wrapper.pyx":1182
 * KEY_Z                  = 90
 * KEY_LEFT_BRACKET       = 91
 * KEY_BACKSLASH          = 92             # <<<<<<<<<<<<<<
 * KEY_RIGHT_BRACKET      = 93
 * KEY_GRAVE_ACCENT       = 96
 */
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_KEY_BACKSLASH, __pyx_int_92) < 0) __PYX_ERR(0, 1182, __pyx_L1_error)

  /* "cgl_wrapper.pyx":1183
 * KEY_LEFT_BRACKET       = 91
 * KEY_BACKSLASH          = 92
 * KEY_RIGHT_BRACKET      = 93             # <<<<<<<<<<<<<<
 * KEY_GRAVE_ACCENT       = 96
 * KEY_WORLD_1            = 161
 */
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_KEY_RIGHT_BRACKET, __pyx_int_93) < 0) __PYX_ERR(0, 1183, __pyx_L1_error)

  /* "cgl_wrapper.pyx":1184
 * KEY_BACKSLASH          = 92
 * KEY_RIGHT_BRACKET      = 93
 * KEY_GRAVE_ACCENT       = 96             # <<<<<<<<<<<<<<
 * KEY_WORLD_1            = 161
 * KEY_WORLD_2            = 162
 */
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_KEY_GRAVE_ACCENT, __pyx_int_96) < 0) __PYX_ERR(0, 1184, __pyx_L1_error)

  /* "cgl_wrapper.pyx":1185
 * KEY_RIGHT_BRACKET      = 93
 * KEY_GRAVE_ACCENT       = 96
 * KEY_WORLD_1            = 161             # <<<<<<<<<<<<<<
 * KEY_WORLD_2            = 162
 * KEY_ESCAPE             = 256
 */
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_KEY_WORLD_1, __pyx_int_161) < 0) __PYX_ERR(0, 1185, __pyx_L1_error)

  /* "cgl_wrapper.pyx":1186
 * KEY_GRAVE_ACCENT       = 96
 * KEY_WORLD_1            = 161
 * KEY_WORLD_2            = 162             # <<<<<<<<<<<<<<
 * KEY_ESCAPE             = 256
 * KEY_ENTER              = 257
 */
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_KEY_WORLD_2, __pyx_int_162) < 0) __PYX_ERR(0, 1186, __pyx_L1_error)

  /* "cgl_wrapper.pyx":1187
 * KEY_WORLD_1            = 161
 * KEY_WORLD_2            = 162
 * KEY_ESCAPE             = 256             # <<<<<<<<<<<<<<
 * KEY_ENTER              = 257
 * KEY_TAB                = 258
 */
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_KEY_ESCAPE, __pyx_int_256) < 0) __PYX_ERR(0, 1187, __pyx_L1_error)

  /* "cgl_wrapper.pyx":1188
 * KEY_WORLD_2            = 162
 * KEY_ESCAPE             = 256
 * KEY_ENTER              = 257             # <<<<<<<<<<<<<<
 * KEY_TAB                = 258
 * KEY_BACKSPACE          = 259
 */
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_KEY_ENTER, __pyx_int_257) < 0) __PYX_ERR(0, 1188, __pyx_L1_error)

  /* "cgl_wrapper.pyx":1189
 * KEY_ESCAPE             = 256
 * KEY_ENTER              = 257
 * KEY_TAB                = 258             # <<<<<<<<<<<<<<
 * KEY_BACKSPACE          = 259
 * KEY_INSERT             = 260
 */
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_KEY_TAB, __pyx_int_258) < 0) __PYX_ERR(0, 1189, __pyx_L1_error)

  /* "cgl_wrapper.pyx":1190
 * KEY_ENTER              = 257
 * KEY_TAB                = 258
 * KEY_BACKSPACE          = 259             # <<<<<<<<<<<<<<
 * KEY_INSERT             = 260
 * KEY_DELETE             = 261
 */
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_KEY_BACKSPACE, __pyx_int_259) < 0) __PYX_ERR(0, 1190, __pyx_L1_error)

  /* "cgl_wrapper.pyx":1191
 * KEY_TAB                = 258
 * KEY_BACKSPACE          = 259
 * KEY_INSERT             = 260             # <<<<<<<<<<<<<<
 * KEY_DELETE             = 261
 * KEY_RIGHT              = 262
 */
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_KEY_INSERT, __pyx_int_260) < 0) __PYX_ERR(0, 1191, __pyx_L1_error)

  /* "cgl_wrapper.pyx":1192
 * KEY_BACKSPACE          = 259
 * KEY_INSERT             = 260
 * KEY_DELETE             = 261             # <<<<<<<<<<<<<<
 * KEY_RIGHT              = 262
 * KEY_LEFT               = 263
 */
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_KEY_DELETE, __pyx_int_261) < 0) __PYX_ERR(0, 1192, __pyx_L1_error)

  /* "cgl_wrapper.pyx":1193
 * KEY_INSERT             = 260
 * KEY_DELETE             = 261
 * KEY_RIGHT              = 262             # <<<<<<<<<<<<<<
 * KEY_LEFT               = 263
 * KEY_DOWN               = 264
 */
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_KEY_RIGHT, __pyx_int_262) < 0) __PYX_ERR(0, 1193, __pyx_L1_error)

  /* "cgl_wrapper.pyx":1194
 * KEY_DELETE             = 261
 * KEY_RIGHT              = 262
 * KEY_LEFT               = 263             # <<<<<<<<<<<<<<
 * KEY_DOWN               = 264
 * KEY_UP                 = 265
 */
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_KEY_LEFT, __pyx_int_263) < 0) __PYX_ERR(0, 1194, __pyx_L1_error)

  /* "cgl_wrapper.pyx":1195
 * KEY_RIGHT              = 262
 * KEY_LEFT               = 263
 * KEY_DOWN               = 264             # <<<<<<<<<<<<<<
 * KEY_UP                 = 265
 * KEY_PAGE_UP            = 266
 */
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_KEY_DOWN, __pyx_int_264) < 0) __PYX_ERR(0, 1195, __pyx_L1_error)

  /* "cgl_wrapper.pyx":1196
 * KEY_LEFT               = 263
 * KEY_DOWN               = 264
 * KEY_UP                 = 265             # <<<<<<<<<<<<<<
 * KEY_PAGE_UP            = 266
 * KEY_PAGE_DOWN          = 267
 */
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_KEY_UP, __pyx_int_265) < 0) __PYX_ERR(0, 1196, __pyx_L1_error)

  /* "cgl_wrapper.pyx":1197
 * KEY_DOWN               = 264
 * KEY_UP                 = 265
 * KEY_PAGE_UP            = 266             # <<<<<<<<<<<<<<
 * KEY_PAGE_DOWN          = 267
 * KEY_HOME               = 268
 */
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_KEY_PAGE_UP, __pyx_int_266) < 0) __PYX_ERR(0, 1197, __pyx_L1_error)

  /* "cgl_wrapper.pyx":1198
 * KEY_UP                 = 265
 * KEY_PAGE_UP            = 266
 * KEY_PAGE_DOWN          = 267             # <<<<<<<<<<<<<<
 * KEY_HOME               = 268
 * KEY_END                = 269
 */
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_KEY_PAGE_DOWN, __pyx_int_267) < 0) __PYX_ERR(0, 1198, __pyx_L1_error)

  /* "cgl_wrapper.pyx":1199
 * KEY_PAGE_UP            = 266
 * KEY_PAGE_DOWN          = 267
 * KEY_HOME               = 268             # <<<<<<<<<<<<<<
 * KEY_END                = 269
 * KEY_CAPS_LOCK          = 280
 */
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_KEY_HOME, __pyx_int_268) < 0) __PYX_ERR(0, 1199, __pyx_L1_error)

  /* "cgl_wrapper.pyx":1200
 * KEY_PAGE_DOWN          = 267
 * KEY_HOME               = 268
 * KEY_END                = 269             # <<<<<<<<<<<<<<
 * KEY_CAPS_LOCK          = 280
 * KEY_SCROLL_LOCK        = 281
 */
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_KEY_END, __pyx_int_269) < 0) __PYX_ERR(0, 1200, __pyx_L1_error)

  /* "cgl_wrapper.pyx":1201
 * KEY_HOME               = 268
 * KEY_END                = 269
 * KEY_CAPS_LOCK          = 280             # <<<<<<<<<<<<<<
 * KEY_SCROLL_LOCK        = 281
 * KEY_NUM_LOCK           = 282
 */
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_KEY_CAPS_LOCK, __pyx_int_280) < 0) __PYX_ERR(0, 1201, __pyx_L1_error)

  /* "cgl_wrapper.pyx":1202
 * KEY_END                = 269
 * KEY_CAPS_LOCK          = 280
 * KEY_SCROLL_LOCK        = 281             # <<<<<<<<<<<<<<
 * KEY_NUM_LOCK           = 282
 * KEY_PRINT_SCREEN       = 283
 */
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_KEY_SCROLL_LOCK, __pyx_int_281) < 0) __PYX_ERR(0, 1202, __pyx_L1_error)

  /* "cgl_wrapper.pyx":1203
 * KEY_CAPS_LOCK          = 280
 * KEY_SCROLL_LOCK        = 281
 * KEY_NUM_LOCK           = 282             # <<<<<<<<<<<<<<
 * KEY_PRINT_SCREEN       = 283
 * KEY_PAUSE              = 284
 */
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_KEY_NUM_LOCK, __pyx_int_282) < 0) __PYX_ERR(0, 1203, __pyx_L1_error)

  /* "cgl_wrapper.pyx":1204
 * KEY_SCROLL_LOCK        = 281
 * KEY_NUM_LOCK           = 282
 * KEY_PRINT_SCREEN       = 283             # <<<<<<<<<<<<<<
 * KEY_PAUSE              = 284
 * KEY_F1                 = 290
 */
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_KEY_PRINT_SCREEN, __pyx_int_283) < 0) __PYX_ERR(0, 1204, __pyx_L1_error)

  /* "cgl_wrapper.pyx":1205
 * KEY_NUM_LOCK           = 282
 * KEY_PRINT_SCREEN       = 283
 * KEY_PAUSE              = 284             # <<<<<<<<<<<<<<
 * KEY_F1                 = 290
 * KEY_F2                 = 291
 */
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_KEY_PAUSE, __pyx_int_284) < 0) __PYX_ERR(0, 1205, __pyx_L1_error)

  /* "cgl_wrapper.pyx":1206
 * KEY_PRINT_SCREEN       = 283
 * KEY_PAUSE              = 284
 * KEY_F1                 = 290             # <<<<<<<<<<<<<<
 * KEY_F2                 = 291
 * KEY_F3                 = 292
 */
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_KEY_F1, __pyx_int_290) < 0) __PYX_ERR(0, 1206, __pyx_L1_error)

  /* "cgl_wrapper.pyx":1207
 * KEY_PAUSE              = 284
 * KEY_F1                 = 290
 * KEY_F2                 = 291             # <<<<<<<<<<<<<<
 * KEY_F3                 = 292
 * KEY_F4                 = 293
 */
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_KEY_F2, __pyx_int_291) < 0) __PYX_ERR(0, 1207, __pyx_L1_error)

  /* "cgl_wrapper.pyx":1208
 * KEY_F1                 = 290
 * KEY_F2                 = 291
 * KEY_F3                 = 292             # <<<<<<<<<<<<<<
 * KEY_F4                 = 293
 * KEY_F5                 = 294
 */
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_KEY_F3, __pyx_int_292) < 0) __PYX_ERR(0, 1208, __pyx_L1_error)

  /* "cgl_wrapper.pyx":1209
 * KEY_F2                 = 291
 * KEY_F3                 = 292
 * KEY_F4                 = 293             # <<<<<<<<<<<<<<
 * KEY_F5                 = 294
 * KEY_F6                 = 295
 */
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_KEY_F4, __pyx_int_293) < 0) __PYX_ERR(0, 1209, __pyx_L1_error)

  /* "cgl_wrapper.pyx":1210
 * KEY_F3                 = 292
 * KEY_F4                 = 293
 * KEY_F5                 = 294             # <<<<<<<<<<<<<<
 * KEY_F6                 = 295
 * KEY_F7                 = 296
 */
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_KEY_F5, __pyx_int_294) < 0) __PYX_ERR(0, 1210, __pyx_L1_error)

  /* "cgl_wrapper.pyx":1211
 * KEY_F4                 = 293
 * KEY_F5                 = 294
 * KEY_F6                 = 295             # <<<<<<<<<<<<<<
 * KEY_F7                 = 296
 * KEY_F8                 = 297
 */
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_KEY_F6, __pyx_int_295) < 0) __PYX_ERR(0, 1211, __pyx_L1_error)

  /* "cgl_wrapper.pyx":1212
 * KEY_F5                 = 294
 * KEY_F6                 = 295
 * KEY_F7                 = 296             # <<<<<<<<<<<<<<
 * KEY_F8                 = 297
 * KEY_F9                 = 298
 */
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_KEY_F7, __pyx_int_296) < 0) __PYX_ERR(0, 1212, __pyx_L1_error)

  /* "cgl_wrapper.pyx":1213
 * KEY_F6                 = 295
 * KEY_F7                 = 296
 * KEY_F8                 = 297             # <<<<<<<<<<<<<<
 * KEY_F9                 = 298
 * KEY_F10                = 299
 */
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_KEY_F8, __pyx_int_297) < 0) __PYX_ERR(0, 1213, __pyx_L1_error)

  /* "cgl_wrapper.pyx":1214
 * KEY_F7                 = 296
 * KEY_F8                 = 297
 * KEY_F9                 = 298             # <<<<<<<<<<<<<<
 * KEY_F10                = 299
 * KEY_F11                = 300
 */
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_KEY_F9, __pyx_int_298) < 0) __PYX_ERR(0, 1214, __pyx_L1_error)

  /* "cgl_wrapper.pyx":1215
 * KEY_F8                 = 297
 * KEY_F9                 = 298
 * KEY_F10                = 299             # <<<<<<<<<<<<<<
 * KEY_F11                = 300
 * KEY_F12                = 301
 */
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_KEY_F10, __pyx_int_299) < 0) __PYX_ERR(0, 1215, __pyx_L1_error)

  /* "cgl_wrapper.pyx":1216
 * KEY_F9                 = 298
 * KEY_F10                = 299
 * KEY_F11                = 300             # <<<<<<<<<<<<<<
 * KEY_F12                = 301
 * KEY_F13                = 302
 */
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_KEY_F11, __pyx_int_300) < 0) __PYX_ERR(0, 1216, __pyx_L1_error)

  /* "cgl_wrapper.pyx":1217
 * KEY_F10                = 299
 * KEY_F11                = 300
 * KEY_F12                = 301             # <<<<<<<<<<<<<<
 * KEY_F13                = 302
 * KEY_F14                = 303
 */
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_KEY_F12, __pyx_int_301) < 0) __PYX_ERR(0, 1217, __pyx_L1_error)

  /* "cgl_wrapper.pyx":1218
 * KEY_F11                = 300
 * KEY_F12                = 301
 * KEY_F13                = 302             # <<<<<<<<<<<<<<
 * KEY_F14                = 303
 * KEY_F15                = 304
 */
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_KEY_F13, __pyx_int_302) < 0) __PYX_ERR(0, 1218, __pyx_L1_error)

  /* "cgl_wrapper.pyx":1219
 * KEY_F12                = 301
 * KEY_F13                = 302
 * KEY_F14                = 303             # <<<<<<<<<<<<<<
 * KEY_F15                = 304
 * KEY_F16                = 305
 */
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_KEY_F14, __pyx_int_303) < 0) __PYX_ERR(0, 1219, __pyx_L1_error)

  /* "cgl_wrapper.pyx":1220
 * KEY_F13                = 302
 * KEY_F14                = 303
 * KEY_F15                = 304             # <<<<<<<<<<<<<<
 * KEY_F16                = 305
 * KEY_F17                = 306
 */
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_KEY_F15, __pyx_int_304) < 0) __PYX_ERR(0, 1220, __pyx_L1_error)

  /* "cgl_wrapper.pyx":1221
 * KEY_F14                = 303
 * KEY_F15                = 304
 * KEY_F16                = 305             # <<<<<<<<<<<<<<
 * KEY_F17                = 306
 * KEY_F18                = 307
 */
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_KEY_F16, __pyx_int_305) < 0) __PYX_ERR(0, 1221, __pyx_L1_error)

  /* "cgl_wrapper.pyx":1222
 * KEY_F15                = 304
 * KEY_F16                = 305
 * KEY_F17                = 306             # <<<<<<<<<<<<<<
 * KEY_F18                = 307
 * KEY_F19                = 308
 */
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_KEY_F17, __pyx_int_306) < 0) __PYX_ERR(0, 1222, __pyx_L1_error)

  /* "cgl_wrapper.pyx":1223
 * KEY_F16                = 305
 * KEY_F17                = 306
 * KEY_F18                = 307             # <<<<<<<<<<<<<<
 * KEY_F19                = 308
 * KEY_F20                = 309
 */
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_KEY_F18, __pyx_int_307) < 0) __PYX_ERR(0, 1223, __pyx_L1_error)

  /* "cgl_wrapper.pyx":1224
 * KEY_F17                = 306
 * KEY_F18                = 307
 * KEY_F19                = 308             # <<<<<<<<<<<<<<
 * KEY_F20                = 309
 * KEY_F21                = 310
 */
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_KEY_F19, __pyx_int_308) < 0) __PYX_ERR(0, 1224, __pyx_L1_error)

  /* "cgl_wrapper.pyx":1225
 * KEY_F18                = 307
 * KEY_F19                = 308
 * KEY_F20                = 309             # <<<<<<<<<<<<<<
 * KEY_F21                = 310
 * KEY_F22                = 311
 */
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_KEY_F20, __pyx_int_309) < 0) __PYX_ERR(0, 1225, __pyx_L1_error)

  /* "cgl_wrapper.pyx":1226
 * KEY_F19                = 308
 * KEY_F20                = 309
 * KEY_F21                = 310             # <<<<<<<<<<<<<<
 * KEY_F22                = 311
 * KEY_F23                = 312
 */
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_KEY_F21, __pyx_int_310) < 0) __PYX_ERR(0, 1226, __pyx_L1_error)

  /* "cgl_wrapper.pyx":1227
 * KEY_F20                = 309
 * KEY_F21                = 310
 * KEY_F22                = 311             # <<<<<<<<<<<<<<
 * KEY_F23                = 312
 * KEY_F24                = 313
 */
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_KEY_F22, __pyx_int_311) < 0) __PYX_ERR(0, 1227, __pyx_L1_error)

  /* "cgl_wrapper.pyx":1228
 * KEY_F21                = 310
 * KEY_F22                = 311
 * KEY_F23                = 312             # <<<<<<<<<<<<<<
 * KEY_F24                = 313
 * KEY_F25                = 314
 */
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_KEY_F23, __pyx_int_312) < 0) __PYX_ERR(0, 1228, __pyx_L1_error)

  /* "cgl_wrapper.pyx":1229
 * KEY_F22                = 311
 * KEY_F23                = 312
 * KEY_F24                = 313             # <<<<<<<<<<<<<<
 * KEY_F25                = 314
 * KEY_KP_0               = 320
 */
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_KEY_F24, __pyx_int_313) < 0) __PYX_ERR(0, 1229, __pyx_L1_error)

  /* "cgl_wrapper.pyx":1230
 * KEY_F23                = 312
 * KEY_F24                = 313
 * KEY_F25                = 314             # <<<<<<<<<<<<<<
 * KEY_KP_0               = 320
 * KEY_KP_1               = 321
 */
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_KEY_F25, __pyx_int_314) < 0) __PYX_ERR(0, 1230, __pyx_L1_error)

  /* "cgl_wrapper.pyx":1231
 * KEY_F24                = 313
 * KEY_F25                = 314
 * KEY_KP_0               = 320             # <<<<<<<<<<<<<<
 * KEY_KP_1               = 321
 * KEY_KP_2               = 322
 */
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_KEY_KP_0, __pyx_int_320) < 0) __PYX_ERR(0, 1231, __pyx_L1_error)

  /* "cgl_wrapper.pyx":1232
 * KEY_F25                = 314
 * KEY_KP_0               = 320
 * KEY_KP_1               = 321             # <<<<<<<<<<<<<<
 * KEY_KP_2               = 322
 * KEY_KP_3               = 323
 */
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_KEY_KP_1, __pyx_int_321) < 0) __PYX_ERR(0, 1232, __pyx_L1_error)

  /* "cgl_wrapper.pyx":1233
 * KEY_KP_0               = 320
 * KEY_KP_1               = 321
 * KEY_KP_2               = 322             # <<<<<<<<<<<<<<
 * KEY_KP_3               = 323
 * KEY_KP_4               = 324
 */
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_KEY_KP_2, __pyx_int_322) < 0) __PYX_ERR(0, 1233, __pyx_L1_error)

  /* "cgl_wrapper.pyx":1234
 * KEY_KP_1               = 321
 * KEY_KP_2               = 322
 * KEY_KP_3               = 323             # <<<<<<<<<<<<<<
 * KEY_KP_4               = 324
 * KEY_KP_5               = 325
 */
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_KEY_KP_3, __pyx_int_323) < 0) __PYX_ERR(0, 1234, __pyx_L1_error)

  /* "cgl_wrapper.pyx":1235
 * KEY_KP_2               = 322
 * KEY_KP_3               = 323
 * KEY_KP_4               = 324             # <<<<<<<<<<<<<<
 * KEY_KP_5               = 325
 * KEY_KP_6               = 326
 */
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_KEY_KP_4, __pyx_int_324) < 0) __PYX_ERR(0, 1235, __pyx_L1_error)

  /* "cgl_wrapper.pyx":1236
 * KEY_KP_3               = 323
 * KEY_KP_4               = 324
 * KEY_KP_5               = 325             # <<<<<<<<<<<<<<
 * KEY_KP_6               = 326
 * KEY_KP_7               = 327
 */
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_KEY_KP_5, __pyx_int_325) < 0) __PYX_ERR(0, 1236, __pyx_L1_error)

  /* "cgl_wrapper.pyx":1237
 * KEY_KP_4               = 324
 * KEY_KP_5               = 325
 * KEY_KP_6               = 326             # <<<<<<<<<<<<<<
 * KEY_KP_7               = 327
 * KEY_KP_8               = 328
 */
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_KEY_KP_6, __pyx_int_326) < 0) __PYX_ERR(0, 1237, __pyx_L1_error)

  /* "cgl_wrapper.pyx":1238
 * KEY_KP_5               = 325
 * KEY_KP_6               = 326
 * KEY_KP_7               = 327             # <<<<<<<<<<<<<<
 * KEY_KP_8               = 328
 * KEY_KP_9               = 329
 */
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_KEY_KP_7, __pyx_int_327) < 0) __PYX_ERR(0, 1238, __pyx_L1_error)

  /* "cgl_wrapper.pyx":1239
 * KEY_KP_6               = 326
 * KEY_KP_7               = 327
 * KEY_KP_8               = 328             # <<<<<<<<<<<<<<
 * KEY_KP_9               = 329
 * KEY_KP_DECIMAL         = 330
 */
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_KEY_KP_8, __pyx_int_328) < 0) __PYX_ERR(0, 1239, __pyx_L1_error)

  /* "cgl_wrapper.pyx":1240
 * KEY_KP_7               = 327
 * KEY_KP_8               = 328
 * KEY_KP_9               = 329             # <<<<<<<<<<<<<<
 * KEY_KP_DECIMAL         = 330
 * KEY_KP_DIVIDE          = 331
 */
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_KEY_KP_9, __pyx_int_329) < 0) __PYX_ERR(0, 1240, __pyx_L1_error)

  /* "cgl_wrapper.pyx":1241
 * KEY_KP_8               = 328
 * KEY_KP_9               = 329
 * KEY_KP_DECIMAL         = 330             # <<<<<<<<<<<<<<
 * KEY_KP_DIVIDE          = 331
 * KEY_KP_MULTIPLY        = 332
 */
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_KEY_KP_DECIMAL, __pyx_int_330) < 0) __PYX_ERR(0, 1241, __pyx_L1_error)

  /* "cgl_wrapper.pyx":1242
 * KEY_KP_9               = 329
 * KEY_KP_DECIMAL         = 330
 * KEY_KP_DIVIDE          = 331             # <<<<<<<<<<<<<<
 * KEY_KP_MULTIPLY        = 332
 * KEY_KP_SUBTRACT        = 333
 */
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_KEY_KP_DIVIDE, __pyx_int_331) < 0) __PYX_ERR(0, 1242, __pyx_L1_error)

  /* "cgl_wrapper.pyx":1243
 * KEY_KP_DECIMAL         = 330
 * KEY_KP_DIVIDE          = 331
 * KEY_KP_MULTIPLY        = 332             # <<<<<<<<<<<<<<
 * KEY_KP_SUBTRACT        = 333
 * KEY_KP_ADD             = 334
 */
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_KEY_KP_MULTIPLY, __pyx_int_332) < 0) __PYX_ERR(0, 1243, __pyx_L1_error)

  /* "cgl_wrapper.pyx":1244
 * KEY_KP_DIVIDE          = 331
 * KEY_KP_MULTIPLY        = 332
 * KEY_KP_SUBTRACT        = 333             # <<<<<<<<<<<<<<
 * KEY_KP_ADD             = 334
 * KEY_KP_ENTER           = 335
 */
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_KEY_KP_SUBTRACT, __pyx_int_333) < 0) __PYX_ERR(0, 1244, __pyx_L1_error)

  /* "cgl_wrapper.pyx":1245
 * KEY_KP_MULTIPLY        = 332
 * KEY_KP_SUBTRACT        = 333
 * KEY_KP_ADD             = 334             # <<<<<<<<<<<<<<
 * KEY_KP_ENTER           = 335
 * KEY_KP_EQUAL           = 336
 */
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_KEY_KP_ADD, __pyx_int_334) < 0) __PYX_ERR(0, 1245, __pyx_L1_error)

  /* "cgl_wrapper.pyx":1246
 * KEY_KP_SUBTRACT        = 333
 * KEY_KP_ADD             = 334
 * KEY_KP_ENTER           = 335             # <<<<<<<<<<<<<<
 * KEY_KP_EQUAL           = 336
 * KEY_LEFT_SHIFT         = 340
 */
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_KEY_KP_ENTER, __pyx_int_335) < 0) __PYX_ERR(0, 1246, __pyx_L1_error)

  /* "cgl_wrapper.pyx":1247
 * KEY_KP_ADD             = 334
 * KEY_KP_ENTER           = 335
 * KEY_KP_EQUAL           = 336             # <<<<<<<<<<<<<<
 * KEY_LEFT_SHIFT         = 340
 * KEY_LEFT_CONTROL       = 341
 */
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_KEY_KP_EQUAL, __pyx_int_336) < 0) __PYX_ERR(0, 1247, __pyx_L1_error)

  /* "cgl_wrapper.pyx":1248
 * KEY_KP_ENTER           = 335
 * KEY_KP_EQUAL           = 336
 * KEY_LEFT_SHIFT         = 340             # <<<<<<<<<<<<<<
 * KEY_LEFT_CONTROL       = 341
 * KEY_LEFT_ALT           = 342
 */
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_KEY_LEFT_SHIFT, __pyx_int_340) < 0) __PYX_ERR(0, 1248, __pyx_L1_error)

  /* "cgl_wrapper.pyx":1249
 * KEY_KP_EQUAL           = 336
 * KEY_LEFT_SHIFT         = 340
 * KEY_LEFT_CONTROL       = 341             # <<<<<<<<<<<<<<
 * KEY_LEFT_ALT           = 342
 * KEY_LEFT_SUPER         = 343
 */
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_KEY_LEFT_CONTROL, __pyx_int_341) < 0) __PYX_ERR(0, 1249, __pyx_L1_error)

  /* "cgl_wrapper.pyx":1250
 * KEY_LEFT_SHIFT         = 340
 * KEY_LEFT_CONTROL       = 341
 * KEY_LEFT_ALT           = 342             # <<<<<<<<<<<<<<
 * KEY_LEFT_SUPER         = 343
 * KEY_RIGHT_SHIFT        = 344
 */
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_KEY_LEFT_ALT, __pyx_int_342) < 0) __PYX_ERR(0, 1250, __pyx_L1_error)

  /* "cgl_wrapper.pyx":1251
 * KEY_LEFT_CONTROL       = 341
 * KEY_LEFT_ALT           = 342
 * KEY_LEFT_SUPER         = 343             # <<<<<<<<<<<<<<
 * KEY_RIGHT_SHIFT        = 344
 * KEY_RIGHT_CONTROL      = 345
 */
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_KEY_LEFT_SUPER, __pyx_int_343) < 0) __PYX_ERR(0, 1251, __pyx_L1_error)

  /* "cgl_wrapper.pyx":1252
 * KEY_LEFT_ALT           = 342
 * KEY_LEFT_SUPER         = 343
 * KEY_RIGHT_SHIFT        = 344             # <<<<<<<<<<<<<<
 * KEY_RIGHT_CONTROL      = 345
 * KEY_RIGHT_ALT          = 346
 */
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_KEY_RIGHT_SHIFT, __pyx_int_344) < 0) __PYX_ERR(0, 1252, __pyx_L1_error)

  /* "cgl_wrapper.pyx":1253
 * KEY_LEFT_SUPER         = 343
 * KEY_RIGHT_SHIFT        = 344
 * KEY_RIGHT_CONTROL      = 345             # <<<<<<<<<<<<<<
 * KEY_RIGHT_ALT          = 346
 * KEY_RIGHT_SUPER        = 347
 */
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_KEY_RIGHT_CONTROL, __pyx_int_345) < 0) __PYX_ERR(0, 1253, __pyx_L1_error)

  /* "cgl_wrapper.pyx":1254
 * KEY_RIGHT_SHIFT        = 344
 * KEY_RIGHT_CONTROL      = 345
 * KEY_RIGHT_ALT          = 346             # <<<<<<<<<<<<<<
 * KEY_RIGHT_SUPER        = 347
 * KEY_MENU               = 348
 */
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_KEY_RIGHT_ALT, __pyx_int_346) < 0) __PYX_ERR(0, 1254, __pyx_L1_error)

  /* "cgl_wrapper.pyx":1255
 * KEY_RIGHT_CONTROL      = 345
 * KEY_RIGHT_ALT          = 346
 * KEY_RIGHT_SUPER        = 347             # <<<<<<<<<<<<<<
 * KEY_MENU               = 348
 * MOUSE_BUTTON_1         = 0
 */
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_KEY_RIGHT_SUPER, __pyx_int_347) < 0) __PYX_ERR(0, 1255, __pyx_L1_error)

  /* "cgl_wrapper.pyx":1256
 * KEY_RIGHT_ALT          = 346
 * KEY_RIGHT_SUPER        = 347
 * KEY_MENU               = 348             # <<<<<<<<<<<<<<
 * MOUSE_BUTTON_1         = 0
 * MOUSE_BUTTON_2         = 1
 */
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_KEY_MENU, __pyx_int_348) < 0) __PYX_ERR(0, 1256, __pyx_L1_error)

  /* "cgl_wrapper.pyx":1257
 * KEY_RIGHT_SUPER        = 347
 * KEY_MENU               = 348
 * MOUSE_BUTTON_1         = 0             # <<<<<<<<<<<<<<
 * MOUSE_BUTTON_2         = 1
 * MOUSE_BUTTON_3         = 2
 */
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_MOUSE_BUTTON_1, __pyx_int_0) < 0) __PYX_ERR(0, 1257, __pyx_L1_error)

  /* "cgl_wrapper.pyx":1258
 * KEY_MENU               = 348
 * MOUSE_BUTTON_1         = 0
 * MOUSE_BUTTON_2         = 1             # <<<<<<<<<<<<<<
 * MOUSE_BUTTON_3         = 2
 * MOUSE_BUTTON_4         = 3
 */
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_MOUSE_BUTTON_2, __pyx_int_1) < 0) __PYX_ERR(0, 1258, __pyx_L1_error)

  /* "cgl_wrapper.pyx":1259
 * MOUSE_BUTTON_1         = 0
 * MOUSE_BUTTON_2         = 1
 * MOUSE_BUTTON_3         = 2             # <<<<<<<<<<<<<<
 * MOUSE_BUTTON_4         = 3
 * MOUSE_BUTTON_5         = 4
 */
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_MOUSE_BUTTON_3, __pyx_int_2) < 0) __PYX_ERR(0, 1259, __pyx_L1_error)

  /* "cgl_wrapper.pyx":1260
 * MOUSE_BUTTON_2         = 1
 * MOUSE_BUTTON_3         = 2
 * MOUSE_BUTTON_4         = 3             # <<<<<<<<<<<<<<
 * MOUSE_BUTTON_5         = 4
 * MOUSE_BUTTON_6         = 5
 */
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_MOUSE_BUTTON_4, __pyx_int_3) < 0) __PYX_ERR(0, 1260, __pyx_L1_error)

  /* "cgl_wrapper.pyx":1261
 * MOUSE_BUTTON_3         = 2
 * MOUSE_BUTTON_4         = 3
 * MOUSE_BUTTON_5         = 4             # <<<<<<<<<<<<<<
 * MOUSE_BUTTON_6         = 5
 * MOUSE_BUTTON_7         = 6
 */
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_MOUSE_BUTTON_5, __pyx_int_4) < 0) __PYX_ERR(0, 1261, __pyx_L1_error)

  /* "cgl_wrapper.pyx":1262
 * MOUSE_BUTTON_4         = 3
 * MOUSE_BUTTON_5         = 4
 * MOUSE_BUTTON_6         = 5             # <<<<<<<<<<<<<<
 * MOUSE_BUTTON_7         = 6
 * MOUSE_BUTTON_8         = 7
 */
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_MOUSE_BUTTON_6, __pyx_int_5) < 0) __PYX_ERR(0, 1262, __pyx_L1_error)

  /* "cgl_wrapper.pyx":1263
 * MOUSE_BUTTON_5         = 4
 * MOUSE_BUTTON_6         = 5
 * MOUSE_BUTTON_7         = 6             # <<<<<<<<<<<<<<
 * MOUSE_BUTTON_8         = 7
 * MOUSE_BUTTON_LAST      = MOUSE_BUTTON_8
 */
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_MOUSE_BUTTON_7, __pyx_int_6) < 0) __PYX_ERR(0, 1263, __pyx_L1_error)

  /* "cgl_wrapper.pyx":1264
 * MOUSE_BUTTON_6         = 5
 * MOUSE_BUTTON_7         = 6
 * MOUSE_BUTTON_8         = 7             # <<<<<<<<<<<<<<
 * MOUSE_BUTTON_LAST      = MOUSE_BUTTON_8
 * MOUSE_BUTTON_LEFT      = MOUSE_BUTTON_1
 */
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_MOUSE_BUTTON_8, __pyx_int_7) < 0) __PYX_ERR(0, 1264, __pyx_L1_error)

  /* "cgl_wrapper.pyx":1265
 * MOUSE_BUTTON_7         = 6
 * MOUSE_BUTTON_8         = 7
 * MOUSE_BUTTON_LAST      = MOUSE_BUTTON_8             # <<<<<<<<<<<<<<
 * MOUSE_BUTTON_LEFT      = MOUSE_BUTTON_1
 * MOUSE_BUTTON_RIGHT     = MOUSE_BUTTON_2
 */
  __Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_n_s_MOUSE_BUTTON_8); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1265, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_MOUSE_BUTTON_LAST, __pyx_t_1) < 0) __PYX_ERR(0, 1265, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "cgl_wrapper.pyx":1266
 * MOUSE_BUTTON_8         = 7
 * MOUSE_BUTTON_LAST      = MOUSE_BUTTON_8
 * MOUSE_BUTTON_LEFT      = MOUSE_BUTTON_1             # <<<<<<<<<<<<<<
 * MOUSE_BUTTON_RIGHT     = MOUSE_BUTTON_2
 * MOUSE_BUTTON_MIDDLE    = MOUSE_BUTTON_3
 */
  __Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_n_s_MOUSE_BUTTON_1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1266, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_MOUSE_BUTTON_LEFT, __pyx_t_1) < 0) __PYX_ERR(0, 1266, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "cgl_wrapper.pyx":1267
 * MOUSE_BUTTON_LAST      = MOUSE_BUTTON_8
 * MOUSE_BUTTON_LEFT      = MOUSE_BUTTON_1
 * MOUSE_BUTTON_RIGHT     = MOUSE_BUTTON_2             # <<<<<<<<<<<<<<
 * MOUSE_BUTTON_MIDDLE    = MOUSE_BUTTON_3
 * RELEASE                = 0
 */
  __Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_n_s_MOUSE_BUTTON_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1267, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_MOUSE_BUTTON_RIGHT, __pyx_t_1) < 0) __PYX_ERR(0, 1267, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "cgl_wrapper.pyx":1268
 * MOUSE_BUTTON_LEFT      = MOUSE_BUTTON_1
 * MOUSE_BUTTON_RIGHT     = MOUSE_BUTTON_2
 * MOUSE_BUTTON_MIDDLE    = MOUSE_BUTTON_3             # <<<<<<<<<<<<<<
 * RELEASE                = 0
 * PRESS                  = 1
 */
  __Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_n_s_MOUSE_BUTTON_3); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1268, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_MOUSE_BUTTON_MIDDLE, __pyx_t_1) < 0) __PYX_ERR(0, 1268, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "cgl_wrapper.pyx":1269
 * MOUSE_BUTTON_RIGHT     = MOUSE_BUTTON_2
 * MOUSE_BUTTON_MIDDLE    = MOUSE_BUTTON_3
 * RELEASE                = 0             # <<<<<<<<<<<<<<
 * PRESS                  = 1
 * REPEAT                 = 2
 */
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_RELEASE, __pyx_int_0) < 0) __PYX_ERR(0, 1269, __pyx_L1_error)

  /* "cgl_wrapper.pyx":1270
 * MOUSE_BUTTON_MIDDLE    = MOUSE_BUTTON_3
 * RELEASE                = 0
 * PRESS                  = 1             # <<<<<<<<<<<<<<
 * REPEAT                 = 2
 * 
 */
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_PRESS, __pyx_int_1) < 0) __PYX_ERR(0, 1270, __pyx_L1_error)

  /* "cgl_wrapper.pyx":1271
 * RELEASE                = 0
 * PRESS                  = 1
 * REPEAT                 = 2             # <<<<<<<<<<<<<<
 * 
 * __WINDOW_TABLE = {}
 */
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_REPEAT, __pyx_int_2) < 0) __PYX_ERR(0, 1271, __pyx_L1_error)

  /* "cgl_wrapper.pyx":1273
 * REPEAT                 = 2
 * 
 * __WINDOW_TABLE = {}             # <<<<<<<<<<<<<<
 * 
 * cdef void __pass_through_window_close_callback(CGL_window* window):
 */
  __pyx_t_1 = __Pyx_PyDict_NewPresized(0); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1273, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_WINDOW_TABLE, __pyx_t_1) < 0) __PYX_ERR(0, 1273, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "cgl_wrapper.pyx":1
 * from libcpp cimport bool             # <<<<<<<<<<<<<<
 * from libc.stdint cimport uint8_t, uint16_t, uint32_t, uint64_t, int8_t, int16_t, int32_t, int64_t, uintptr_t, intptr_t
 * cimport libc.stdlib as stdlib
 */
  __pyx_t_1 = __Pyx_PyDict_NewPresized(0); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_test, __pyx_t_1) < 0) __PYX_ERR(0, 1, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "FromPyStructUtility":11
 * 
 * @cname("__pyx_convert__from_py_struct__CGL_mesh_vertex")
 * cdef struct_type __pyx_convert__from_py_struct__CGL_mesh_vertex(obj) except *:             # <<<<<<<<<<<<<<
 *     cdef struct_type result
 *     if not PyMapping_Check(obj):
 */

  /*--- Wrapped vars code ---*/

  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  if (__pyx_m) {
    if (__pyx_d) {
      __Pyx_AddTraceback("init cgl", __pyx_clineno, __pyx_lineno, __pyx_filename);
    }
    Py_CLEAR(__pyx_m);
  } else if (!PyErr_Occurred()) {
    PyErr_SetString(PyExc_ImportError, "init cgl");
  }
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  #if CYTHON_PEP489_MULTI_PHASE_INIT
  return (__pyx_m != NULL) ? 0 : -1;
  #elif PY_MAJOR_VERSION >= 3
  return __pyx_m;
  #else
  return;
  #endif
}

/* --- Runtime support code --- */
/* Refnanny */
#if CYTHON_REFNANNY
static __Pyx_RefNannyAPIStruct *__Pyx_RefNannyImportAPI(const char *modname) {
    PyObject *m = NULL, *p = NULL;
    void *r = NULL;
    m = PyImport_ImportModule(modname);
    if (!m) goto end;
    p = PyObject_GetAttrString(m, "RefNannyAPI");
    if (!p) goto end;
    r = PyLong_AsVoidPtr(p);
end:
    Py_XDECREF(p);
    Py_XDECREF(m);
    return (__Pyx_RefNannyAPIStruct *)r;
}
#endif

/* PyObjectGetAttrStr */
#if CYTHON_USE_TYPE_SLOTS
static CYTHON_INLINE PyObject* __Pyx_PyObject_GetAttrStr(PyObject* obj, PyObject* attr_name) {
    PyTypeObject* tp = Py_TYPE(obj);
    if (likely(tp->tp_getattro))
        return tp->tp_getattro(obj, attr_name);
#if PY_MAJOR_VERSION < 3
    if (likely(tp->tp_getattr))
        return tp->tp_getattr(obj, PyString_AS_STRING(attr_name));
#endif
    return PyObject_GetAttr(obj, attr_name);
}
#endif

/* GetBuiltinName */
static PyObject *__Pyx_GetBuiltinName(PyObject *name) {
    PyObject* result = __Pyx_PyObject_GetAttrStr(__pyx_b, name);
    if (unlikely(!result)) {
        PyErr_Format(PyExc_NameError,
#if PY_MAJOR_VERSION >= 3
            "name '%U' is not defined", name);
#else
            "name '%.200s' is not defined", PyString_AS_STRING(name));
#endif
    }
    return result;
}

/* ArgTypeTest */
static int __Pyx__ArgTypeTest(PyObject *obj, PyTypeObject *type, const char *name, int exact)
{
    if (unlikely(!type)) {
        PyErr_SetString(PyExc_SystemError, "Missing type object");
        return 0;
    }
    else if (exact) {
        #if PY_MAJOR_VERSION == 2
        if ((type == &PyBaseString_Type) && likely(__Pyx_PyBaseString_CheckExact(obj))) return 1;
        #endif
    }
    else {
        if (likely(__Pyx_TypeCheck(obj, type))) return 1;
    }
    PyErr_Format(PyExc_TypeError,
        "Argument '%.200s' has incorrect type (expected %.200s, got %.200s)",
        name, type->tp_name, Py_TYPE(obj)->tp_name);
    return 0;
}

/* PyObjectCall */
#if CYTHON_COMPILING_IN_CPYTHON
static CYTHON_INLINE PyObject* __Pyx_PyObject_Call(PyObject *func, PyObject *arg, PyObject *kw) {
    PyObject *result;
    ternaryfunc call = Py_TYPE(func)->tp_call;
    if (unlikely(!call))
        return PyObject_Call(func, arg, kw);
    if (unlikely(Py_EnterRecursiveCall((char*)" while calling a Python object")))
        return NULL;
    result = (*call)(func, arg, kw);
    Py_LeaveRecursiveCall();
    if (unlikely(!result) && unlikely(!PyErr_Occurred())) {
        PyErr_SetString(
            PyExc_SystemError,
            "NULL result without error in PyObject_Call");
    }
    return result;
}
#endif

/* UnpackUnboundCMethod */
static int __Pyx_TryUnpackUnboundCMethod(__Pyx_CachedCFunction* target) {
    PyObject *method;
    method = __Pyx_PyObject_GetAttrStr(target->type, *target->method_name);
    if (unlikely(!method))
        return -1;
    target->method = method;
#if CYTHON_COMPILING_IN_CPYTHON
    #if PY_MAJOR_VERSION >= 3
    if (likely(__Pyx_TypeCheck(method, &PyMethodDescr_Type)))
    #endif
    {
        PyMethodDescrObject *descr = (PyMethodDescrObject*) method;
        target->func = descr->d_method->ml_meth;
        target->flag = descr->d_method->ml_flags & ~(METH_CLASS | METH_STATIC | METH_COEXIST | METH_STACKLESS);
    }
#endif
    return 0;
}

/* CallUnboundCMethod0 */
static PyObject* __Pyx__CallUnboundCMethod0(__Pyx_CachedCFunction* cfunc, PyObject* self) {
    PyObject *args, *result = NULL;
    if (unlikely(!cfunc->method) && unlikely(__Pyx_TryUnpackUnboundCMethod(cfunc) < 0)) return NULL;
#if CYTHON_ASSUME_SAFE_MACROS
    args = PyTuple_New(1);
    if (unlikely(!args)) goto bad;
    Py_INCREF(self);
    PyTuple_SET_ITEM(args, 0, self);
#else
    args = PyTuple_Pack(1, self);
    if (unlikely(!args)) goto bad;
#endif
    result = __Pyx_PyObject_Call(cfunc->method, args, NULL);
    Py_DECREF(args);
bad:
    return result;
}

/* PyDictVersioning */
#if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_TYPE_SLOTS
static CYTHON_INLINE PY_UINT64_T __Pyx_get_tp_dict_version(PyObject *obj) {
    PyObject *dict = Py_TYPE(obj)->tp_dict;
    return likely(dict) ? __PYX_GET_DICT_VERSION(dict) : 0;
}
static CYTHON_INLINE PY_UINT64_T __Pyx_get_object_dict_version(PyObject *obj) {
    PyObject **dictptr = NULL;
    Py_ssize_t offset = Py_TYPE(obj)->tp_dictoffset;
    if (offset) {
#if CYTHON_COMPILING_IN_CPYTHON
        dictptr = (likely(offset > 0)) ? (PyObject **) ((char *)obj + offset) : _PyObject_GetDictPtr(obj);
#else
        dictptr = _PyObject_GetDictPtr(obj);
#endif
    }
    return (dictptr && *dictptr) ? __PYX_GET_DICT_VERSION(*dictptr) : 0;
}
static CYTHON_INLINE int __Pyx_object_dict_version_matches(PyObject* obj, PY_UINT64_T tp_dict_version, PY_UINT64_T obj_dict_version) {
    PyObject *dict = Py_TYPE(obj)->tp_dict;
    if (unlikely(!dict) || unlikely(tp_dict_version != __PYX_GET_DICT_VERSION(dict)))
        return 0;
    return obj_dict_version == __Pyx_get_object_dict_version(obj);
}
#endif

/* GetModuleGlobalName */
#if CYTHON_USE_DICT_VERSIONS
static PyObject *__Pyx__GetModuleGlobalName(PyObject *name, PY_UINT64_T *dict_version, PyObject **dict_cached_value)
#else
static CYTHON_INLINE PyObject *__Pyx__GetModuleGlobalName(PyObject *name)
#endif
{
    PyObject *result;
#if !CYTHON_AVOID_BORROWED_REFS
#if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030500A1
    result = _PyDict_GetItem_KnownHash(__pyx_d, name, ((PyASCIIObject *) name)->hash);
    __PYX_UPDATE_DICT_CACHE(__pyx_d, result, *dict_cached_value, *dict_version)
    if (likely(result)) {
        return __Pyx_NewRef(result);
    } else if (unlikely(PyErr_Occurred())) {
        return NULL;
    }
#else
    result = PyDict_GetItem(__pyx_d, name);
    __PYX_UPDATE_DICT_CACHE(__pyx_d, result, *dict_cached_value, *dict_version)
    if (likely(result)) {
        return __Pyx_NewRef(result);
    }
#endif
#else
    result = PyObject_GetItem(__pyx_d, name);
    __PYX_UPDATE_DICT_CACHE(__pyx_d, result, *dict_cached_value, *dict_version)
    if (likely(result)) {
        return __Pyx_NewRef(result);
    }
    PyErr_Clear();
#endif
    return __Pyx_GetBuiltinName(name);
}

/* PyCFunctionFastCall */
#if CYTHON_FAST_PYCCALL
static CYTHON_INLINE PyObject * __Pyx_PyCFunction_FastCall(PyObject *func_obj, PyObject **args, Py_ssize_t nargs) {
    PyCFunctionObject *func = (PyCFunctionObject*)func_obj;
    PyCFunction meth = PyCFunction_GET_FUNCTION(func);
    PyObject *self = PyCFunction_GET_SELF(func);
    int flags = PyCFunction_GET_FLAGS(func);
    assert(PyCFunction_Check(func));
    assert(METH_FASTCALL == (flags & ~(METH_CLASS | METH_STATIC | METH_COEXIST | METH_KEYWORDS | METH_STACKLESS)));
    assert(nargs >= 0);
    assert(nargs == 0 || args != NULL);
    /* _PyCFunction_FastCallDict() must not be called with an exception set,
       because it may clear it (directly or indirectly) and so the
       caller loses its exception */
    assert(!PyErr_Occurred());
    if ((PY_VERSION_HEX < 0x030700A0) || unlikely(flags & METH_KEYWORDS)) {
        return (*((__Pyx_PyCFunctionFastWithKeywords)(void*)meth)) (self, args, nargs, NULL);
    } else {
        return (*((__Pyx_PyCFunctionFast)(void*)meth)) (self, args, nargs);
    }
}
#endif

/* PyFunctionFastCall */
#if CYTHON_FAST_PYCALL
static PyObject* __Pyx_PyFunction_FastCallNoKw(PyCodeObject *co, PyObject **args, Py_ssize_t na,
                                               PyObject *globals) {
    PyFrameObject *f;
    PyThreadState *tstate = __Pyx_PyThreadState_Current;
    PyObject **fastlocals;
    Py_ssize_t i;
    PyObject *result;
    assert(globals != NULL);
    /* XXX Perhaps we should create a specialized
       PyFrame_New() that doesn't take locals, but does
       take builtins without sanity checking them.
       */
    assert(tstate != NULL);
    f = PyFrame_New(tstate, co, globals, NULL);
    if (f == NULL) {
        return NULL;
    }
    fastlocals = __Pyx_PyFrame_GetLocalsplus(f);
    for (i = 0; i < na; i++) {
        Py_INCREF(*args);
        fastlocals[i] = *args++;
    }
    result = PyEval_EvalFrameEx(f,0);
    ++tstate->recursion_depth;
    Py_DECREF(f);
    --tstate->recursion_depth;
    return result;
}
#if 1 || PY_VERSION_HEX < 0x030600B1
static PyObject *__Pyx_PyFunction_FastCallDict(PyObject *func, PyObject **args, Py_ssize_t nargs, PyObject *kwargs) {
    PyCodeObject *co = (PyCodeObject *)PyFunction_GET_CODE(func);
    PyObject *globals = PyFunction_GET_GLOBALS(func);
    PyObject *argdefs = PyFunction_GET_DEFAULTS(func);
    PyObject *closure;
#if PY_MAJOR_VERSION >= 3
    PyObject *kwdefs;
#endif
    PyObject *kwtuple, **k;
    PyObject **d;
    Py_ssize_t nd;
    Py_ssize_t nk;
    PyObject *result;
    assert(kwargs == NULL || PyDict_Check(kwargs));
    nk = kwargs ? PyDict_Size(kwargs) : 0;
    if (Py_EnterRecursiveCall((char*)" while calling a Python object")) {
        return NULL;
    }
    if (
#if PY_MAJOR_VERSION >= 3
            co->co_kwonlyargcount == 0 &&
#endif
            likely(kwargs == NULL || nk == 0) &&
            co->co_flags == (CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE)) {
        if (argdefs == NULL && co->co_argcount == nargs) {
            result = __Pyx_PyFunction_FastCallNoKw(co, args, nargs, globals);
            goto done;
        }
        else if (nargs == 0 && argdefs != NULL
                 && co->co_argcount == Py_SIZE(argdefs)) {
            /* function called with no arguments, but all parameters have
               a default value: use default values as arguments .*/
            args = &PyTuple_GET_ITEM(argdefs, 0);
            result =__Pyx_PyFunction_FastCallNoKw(co, args, Py_SIZE(argdefs), globals);
            goto done;
        }
    }
    if (kwargs != NULL) {
        Py_ssize_t pos, i;
        kwtuple = PyTuple_New(2 * nk);
        if (kwtuple == NULL) {
            result = NULL;
            goto done;
        }
        k = &PyTuple_GET_ITEM(kwtuple, 0);
        pos = i = 0;
        while (PyDict_Next(kwargs, &pos, &k[i], &k[i+1])) {
            Py_INCREF(k[i]);
            Py_INCREF(k[i+1]);
            i += 2;
        }
        nk = i / 2;
    }
    else {
        kwtuple = NULL;
        k = NULL;
    }
    closure = PyFunction_GET_CLOSURE(func);
#if PY_MAJOR_VERSION >= 3
    kwdefs = PyFunction_GET_KW_DEFAULTS(func);
#endif
    if (argdefs != NULL) {
        d = &PyTuple_GET_ITEM(argdefs, 0);
        nd = Py_SIZE(argdefs);
    }
    else {
        d = NULL;
        nd = 0;
    }
#if PY_MAJOR_VERSION >= 3
    result = PyEval_EvalCodeEx((PyObject*)co, globals, (PyObject *)NULL,
                               args, (int)nargs,
                               k, (int)nk,
                               d, (int)nd, kwdefs, closure);
#else
    result = PyEval_EvalCodeEx(co, globals, (PyObject *)NULL,
                               args, (int)nargs,
                               k, (int)nk,
                               d, (int)nd, closure);
#endif
    Py_XDECREF(kwtuple);
done:
    Py_LeaveRecursiveCall();
    return result;
}
#endif
#endif

/* PyObjectCall2Args */
static CYTHON_UNUSED PyObject* __Pyx_PyObject_Call2Args(PyObject* function, PyObject* arg1, PyObject* arg2) {
    PyObject *args, *result = NULL;
    #if CYTHON_FAST_PYCALL
    if (PyFunction_Check(function)) {
        PyObject *args[2] = {arg1, arg2};
        return __Pyx_PyFunction_FastCall(function, args, 2);
    }
    #endif
    #if CYTHON_FAST_PYCCALL
    if (__Pyx_PyFastCFunction_Check(function)) {
        PyObject *args[2] = {arg1, arg2};
        return __Pyx_PyCFunction_FastCall(function, args, 2);
    }
    #endif
    args = PyTuple_New(2);
    if (unlikely(!args)) goto done;
    Py_INCREF(arg1);
    PyTuple_SET_ITEM(args, 0, arg1);
    Py_INCREF(arg2);
    PyTuple_SET_ITEM(args, 1, arg2);
    Py_INCREF(function);
    result = __Pyx_PyObject_Call(function, args, NULL);
    Py_DECREF(args);
    Py_DECREF(function);
done:
    return result;
}

/* PyObjectCallMethO */
#if CYTHON_COMPILING_IN_CPYTHON
static CYTHON_INLINE PyObject* __Pyx_PyObject_CallMethO(PyObject *func, PyObject *arg) {
    PyObject *self, *result;
    PyCFunction cfunc;
    cfunc = PyCFunction_GET_FUNCTION(func);
    self = PyCFunction_GET_SELF(func);
    if (unlikely(Py_EnterRecursiveCall((char*)" while calling a Python object")))
        return NULL;
    result = cfunc(self, arg);
    Py_LeaveRecursiveCall();
    if (unlikely(!result) && unlikely(!PyErr_Occurred())) {
        PyErr_SetString(
            PyExc_SystemError,
            "NULL result without error in PyObject_Call");
    }
    return result;
}
#endif

/* PyObjectCallOneArg */
#if CYTHON_COMPILING_IN_CPYTHON
static PyObject* __Pyx__PyObject_CallOneArg(PyObject *func, PyObject *arg) {
    PyObject *result;
    PyObject *args = PyTuple_New(1);
    if (unlikely(!args)) return NULL;
    Py_INCREF(arg);
    PyTuple_SET_ITEM(args, 0, arg);
    result = __Pyx_PyObject_Call(func, args, NULL);
    Py_DECREF(args);
    return result;
}
static CYTHON_INLINE PyObject* __Pyx_PyObject_CallOneArg(PyObject *func, PyObject *arg) {
#if CYTHON_FAST_PYCALL
    if (PyFunction_Check(func)) {
        return __Pyx_PyFunction_FastCall(func, &arg, 1);
    }
#endif
    if (likely(PyCFunction_Check(func))) {
        if (likely(PyCFunction_GET_FLAGS(func) & METH_O)) {
            return __Pyx_PyObject_CallMethO(func, arg);
#if CYTHON_FAST_PYCCALL
        } else if (__Pyx_PyFastCFunction_Check(func)) {
            return __Pyx_PyCFunction_FastCall(func, &arg, 1);
#endif
        }
    }
    return __Pyx__PyObject_CallOneArg(func, arg);
}
#else
static CYTHON_INLINE PyObject* __Pyx_PyObject_CallOneArg(PyObject *func, PyObject *arg) {
    PyObject *result;
    PyObject *args = PyTuple_Pack(1, arg);
    if (unlikely(!args)) return NULL;
    result = __Pyx_PyObject_Call(func, args, NULL);
    Py_DECREF(args);
    return result;
}
#endif

/* RaiseArgTupleInvalid */
static void __Pyx_RaiseArgtupleInvalid(
    const char* func_name,
    int exact,
    Py_ssize_t num_min,
    Py_ssize_t num_max,
    Py_ssize_t num_found)
{
    Py_ssize_t num_expected;
    const char *more_or_less;
    if (num_found < num_min) {
        num_expected = num_min;
        more_or_less = "at least";
    } else {
        num_expected = num_max;
        more_or_less = "at most";
    }
    if (exact) {
        more_or_less = "exactly";
    }
    PyErr_Format(PyExc_TypeError,
                 "%.200s() takes %.8s %" CYTHON_FORMAT_SSIZE_T "d positional argument%.1s (%" CYTHON_FORMAT_SSIZE_T "d given)",
                 func_name, more_or_less, num_expected,
                 (num_expected == 1) ? "" : "s", num_found);
}

/* RaiseDoubleKeywords */
static void __Pyx_RaiseDoubleKeywordsError(
    const char* func_name,
    PyObject* kw_name)
{
    PyErr_Format(PyExc_TypeError,
        #if PY_MAJOR_VERSION >= 3
        "%s() got multiple values for keyword argument '%U'", func_name, kw_name);
        #else
        "%s() got multiple values for keyword argument '%s'", func_name,
        PyString_AsString(kw_name));
        #endif
}

/* ParseKeywords */
static int __Pyx_ParseOptionalKeywords(
    PyObject *kwds,
    PyObject **argnames[],
    PyObject *kwds2,
    PyObject *values[],
    Py_ssize_t num_pos_args,
    const char* function_name)
{
    PyObject *key = 0, *value = 0;
    Py_ssize_t pos = 0;
    PyObject*** name;
    PyObject*** first_kw_arg = argnames + num_pos_args;
    while (PyDict_Next(kwds, &pos, &key, &value)) {
        name = first_kw_arg;
        while (*name && (**name != key)) name++;
        if (*name) {
            values[name-argnames] = value;
            continue;
        }
        name = first_kw_arg;
        #if PY_MAJOR_VERSION < 3
        if (likely(PyString_Check(key))) {
            while (*name) {
                if ((CYTHON_COMPILING_IN_PYPY || PyString_GET_SIZE(**name) == PyString_GET_SIZE(key))
                        && _PyString_Eq(**name, key)) {
                    values[name-argnames] = value;
                    break;
                }
                name++;
            }
            if (*name) continue;
            else {
                PyObject*** argname = argnames;
                while (argname != first_kw_arg) {
                    if ((**argname == key) || (
                            (CYTHON_COMPILING_IN_PYPY || PyString_GET_SIZE(**argname) == PyString_GET_SIZE(key))
                             && _PyString_Eq(**argname, key))) {
                        goto arg_passed_twice;
                    }
                    argname++;
                }
            }
        } else
        #endif
        if (likely(PyUnicode_Check(key))) {
            while (*name) {
                int cmp = (**name == key) ? 0 :
                #if !CYTHON_COMPILING_IN_PYPY && PY_MAJOR_VERSION >= 3
                    (__Pyx_PyUnicode_GET_LENGTH(**name) != __Pyx_PyUnicode_GET_LENGTH(key)) ? 1 :
                #endif
                    PyUnicode_Compare(**name, key);
                if (cmp < 0 && unlikely(PyErr_Occurred())) goto bad;
                if (cmp == 0) {
                    values[name-argnames] = value;
                    break;
                }
                name++;
            }
            if (*name) continue;
            else {
                PyObject*** argname = argnames;
                while (argname != first_kw_arg) {
                    int cmp = (**argname == key) ? 0 :
                    #if !CYTHON_COMPILING_IN_PYPY && PY_MAJOR_VERSION >= 3
                        (__Pyx_PyUnicode_GET_LENGTH(**argname) != __Pyx_PyUnicode_GET_LENGTH(key)) ? 1 :
                    #endif
                        PyUnicode_Compare(**argname, key);
                    if (cmp < 0 && unlikely(PyErr_Occurred())) goto bad;
                    if (cmp == 0) goto arg_passed_twice;
                    argname++;
                }
            }
        } else
            goto invalid_keyword_type;
        if (kwds2) {
            if (unlikely(PyDict_SetItem(kwds2, key, value))) goto bad;
        } else {
            goto invalid_keyword;
        }
    }
    return 0;
arg_passed_twice:
    __Pyx_RaiseDoubleKeywordsError(function_name, key);
    goto bad;
invalid_keyword_type:
    PyErr_Format(PyExc_TypeError,
        "%.200s() keywords must be strings", function_name);
    goto bad;
invalid_keyword:
    PyErr_Format(PyExc_TypeError,
    #if PY_MAJOR_VERSION < 3
        "%.200s() got an unexpected keyword argument '%.200s'",
        function_name, PyString_AsString(key));
    #else
        "%s() got an unexpected keyword argument '%U'",
        function_name, key);
    #endif
bad:
    return -1;
}

/* decode_c_string */
static CYTHON_INLINE PyObject* __Pyx_decode_c_string(
         const char* cstring, Py_ssize_t start, Py_ssize_t stop,
         const char* encoding, const char* errors,
         PyObject* (*decode_func)(const char *s, Py_ssize_t size, const char *errors)) {
    Py_ssize_t length;
    if (unlikely((start < 0) | (stop < 0))) {
        size_t slen = strlen(cstring);
        if (unlikely(slen > (size_t) PY_SSIZE_T_MAX)) {
            PyErr_SetString(PyExc_OverflowError,
                            "c-string too long to convert to Python");
            return NULL;
        }
        length = (Py_ssize_t) slen;
        if (start < 0) {
            start += length;
            if (start < 0)
                start = 0;
        }
        if (stop < 0)
            stop += length;
    }
    if (unlikely(stop <= start))
        return __Pyx_NewRef(__pyx_empty_unicode);
    length = stop - start;
    cstring += start;
    if (decode_func) {
        return decode_func(cstring, length, errors);
    } else {
        return PyUnicode_Decode(cstring, length, encoding, errors);
    }
}

/* GetItemInt */
static PyObject *__Pyx_GetItemInt_Generic(PyObject *o, PyObject* j) {
    PyObject *r;
    if (!j) return NULL;
    r = PyObject_GetItem(o, j);
    Py_DECREF(j);
    return r;
}
static CYTHON_INLINE PyObject *__Pyx_GetItemInt_List_Fast(PyObject *o, Py_ssize_t i,
                                                              CYTHON_NCP_UNUSED int wraparound,
                                                              CYTHON_NCP_UNUSED int boundscheck) {
#if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
    Py_ssize_t wrapped_i = i;
    if (wraparound & unlikely(i < 0)) {
        wrapped_i += PyList_GET_SIZE(o);
    }
    if ((!boundscheck) || likely(__Pyx_is_valid_index(wrapped_i, PyList_GET_SIZE(o)))) {
        PyObject *r = PyList_GET_ITEM(o, wrapped_i);
        Py_INCREF(r);
        return r;
    }
    return __Pyx_GetItemInt_Generic(o, PyInt_FromSsize_t(i));
#else
    return PySequence_GetItem(o, i);
#endif
}
static CYTHON_INLINE PyObject *__Pyx_GetItemInt_Tuple_Fast(PyObject *o, Py_ssize_t i,
                                                              CYTHON_NCP_UNUSED int wraparound,
                                                              CYTHON_NCP_UNUSED int boundscheck) {
#if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
    Py_ssize_t wrapped_i = i;
    if (wraparound & unlikely(i < 0)) {
        wrapped_i += PyTuple_GET_SIZE(o);
    }
    if ((!boundscheck) || likely(__Pyx_is_valid_index(wrapped_i, PyTuple_GET_SIZE(o)))) {
        PyObject *r = PyTuple_GET_ITEM(o, wrapped_i);
        Py_INCREF(r);
        return r;
    }
    return __Pyx_GetItemInt_Generic(o, PyInt_FromSsize_t(i));
#else
    return PySequence_GetItem(o, i);
#endif
}
static CYTHON_INLINE PyObject *__Pyx_GetItemInt_Fast(PyObject *o, Py_ssize_t i, int is_list,
                                                     CYTHON_NCP_UNUSED int wraparound,
                                                     CYTHON_NCP_UNUSED int boundscheck) {
#if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS && CYTHON_USE_TYPE_SLOTS
    if (is_list || PyList_CheckExact(o)) {
        Py_ssize_t n = ((!wraparound) | likely(i >= 0)) ? i : i + PyList_GET_SIZE(o);
        if ((!boundscheck) || (likely(__Pyx_is_valid_index(n, PyList_GET_SIZE(o))))) {
            PyObject *r = PyList_GET_ITEM(o, n);
            Py_INCREF(r);
            return r;
        }
    }
    else if (PyTuple_CheckExact(o)) {
        Py_ssize_t n = ((!wraparound) | likely(i >= 0)) ? i : i + PyTuple_GET_SIZE(o);
        if ((!boundscheck) || likely(__Pyx_is_valid_index(n, PyTuple_GET_SIZE(o)))) {
            PyObject *r = PyTuple_GET_ITEM(o, n);
            Py_INCREF(r);
            return r;
        }
    } else {
        PySequenceMethods *m = Py_TYPE(o)->tp_as_sequence;
        if (likely(m && m->sq_item)) {
            if (wraparound && unlikely(i < 0) && likely(m->sq_length)) {
                Py_ssize_t l = m->sq_length(o);
                if (likely(l >= 0)) {
                    i += l;
                } else {
                    if (!PyErr_ExceptionMatches(PyExc_OverflowError))
                        return NULL;
                    PyErr_Clear();
                }
            }
            return m->sq_item(o, i);
        }
    }
#else
    if (is_list || PySequence_Check(o)) {
        return PySequence_GetItem(o, i);
    }
#endif
    return __Pyx_GetItemInt_Generic(o, PyInt_FromSsize_t(i));
}

/* PyObjectCallNoArg */
#if CYTHON_COMPILING_IN_CPYTHON
static CYTHON_INLINE PyObject* __Pyx_PyObject_CallNoArg(PyObject *func) {
#if CYTHON_FAST_PYCALL
    if (PyFunction_Check(func)) {
        return __Pyx_PyFunction_FastCall(func, NULL, 0);
    }
#endif
#if defined(__Pyx_CyFunction_USED) && defined(NDEBUG)
    if (likely(PyCFunction_Check(func) || __Pyx_CyFunction_Check(func)))
#else
    if (likely(PyCFunction_Check(func)))
#endif
    {
        if (likely(PyCFunction_GET_FLAGS(func) & METH_NOARGS)) {
            return __Pyx_PyObject_CallMethO(func, NULL);
        }
    }
    return __Pyx_PyObject_Call(func, __pyx_empty_tuple, NULL);
}
#endif

/* PyErrFetchRestore */
#if CYTHON_FAST_THREAD_STATE
static CYTHON_INLINE void __Pyx_ErrRestoreInState(PyThreadState *tstate, PyObject *type, PyObject *value, PyObject *tb) {
    PyObject *tmp_type, *tmp_value, *tmp_tb;
    tmp_type = tstate->curexc_type;
    tmp_value = tstate->curexc_value;
    tmp_tb = tstate->curexc_traceback;
    tstate->curexc_type = type;
    tstate->curexc_value = value;
    tstate->curexc_traceback = tb;
    Py_XDECREF(tmp_type);
    Py_XDECREF(tmp_value);
    Py_XDECREF(tmp_tb);
}
static CYTHON_INLINE void __Pyx_ErrFetchInState(PyThreadState *tstate, PyObject **type, PyObject **value, PyObject **tb) {
    *type = tstate->curexc_type;
    *value = tstate->curexc_value;
    *tb = tstate->curexc_traceback;
    tstate->curexc_type = 0;
    tstate->curexc_value = 0;
    tstate->curexc_traceback = 0;
}
#endif

/* RaiseException */
#if PY_MAJOR_VERSION < 3
static void __Pyx_Raise(PyObject *type, PyObject *value, PyObject *tb,
                        CYTHON_UNUSED PyObject *cause) {
    __Pyx_PyThreadState_declare
    Py_XINCREF(type);
    if (!value || value == Py_None)
        value = NULL;
    else
        Py_INCREF(value);
    if (!tb || tb == Py_None)
        tb = NULL;
    else {
        Py_INCREF(tb);
        if (!PyTraceBack_Check(tb)) {
            PyErr_SetString(PyExc_TypeError,
                "raise: arg 3 must be a traceback or None");
            goto raise_error;
        }
    }
    if (PyType_Check(type)) {
#if CYTHON_COMPILING_IN_PYPY
        if (!value) {
            Py_INCREF(Py_None);
            value = Py_None;
        }
#endif
        PyErr_NormalizeException(&type, &value, &tb);
    } else {
        if (value) {
            PyErr_SetString(PyExc_TypeError,
                "instance exception may not have a separate value");
            goto raise_error;
        }
        value = type;
        type = (PyObject*) Py_TYPE(type);
        Py_INCREF(type);
        if (!PyType_IsSubtype((PyTypeObject *)type, (PyTypeObject *)PyExc_BaseException)) {
            PyErr_SetString(PyExc_TypeError,
                "raise: exception class must be a subclass of BaseException");
            goto raise_error;
        }
    }
    __Pyx_PyThreadState_assign
    __Pyx_ErrRestore(type, value, tb);
    return;
raise_error:
    Py_XDECREF(value);
    Py_XDECREF(type);
    Py_XDECREF(tb);
    return;
}
#else
static void __Pyx_Raise(PyObject *type, PyObject *value, PyObject *tb, PyObject *cause) {
    PyObject* owned_instance = NULL;
    if (tb == Py_None) {
        tb = 0;
    } else if (tb && !PyTraceBack_Check(tb)) {
        PyErr_SetString(PyExc_TypeError,
            "raise: arg 3 must be a traceback or None");
        goto bad;
    }
    if (value == Py_None)
        value = 0;
    if (PyExceptionInstance_Check(type)) {
        if (value) {
            PyErr_SetString(PyExc_TypeError,
                "instance exception may not have a separate value");
            goto bad;
        }
        value = type;
        type = (PyObject*) Py_TYPE(value);
    } else if (PyExceptionClass_Check(type)) {
        PyObject *instance_class = NULL;
        if (value && PyExceptionInstance_Check(value)) {
            instance_class = (PyObject*) Py_TYPE(value);
            if (instance_class != type) {
                int is_subclass = PyObject_IsSubclass(instance_class, type);
                if (!is_subclass) {
                    instance_class = NULL;
                } else if (unlikely(is_subclass == -1)) {
                    goto bad;
                } else {
                    type = instance_class;
                }
            }
        }
        if (!instance_class) {
            PyObject *args;
            if (!value)
                args = PyTuple_New(0);
            else if (PyTuple_Check(value)) {
                Py_INCREF(value);
                args = value;
            } else
                args = PyTuple_Pack(1, value);
            if (!args)
                goto bad;
            owned_instance = PyObject_Call(type, args, NULL);
            Py_DECREF(args);
            if (!owned_instance)
                goto bad;
            value = owned_instance;
            if (!PyExceptionInstance_Check(value)) {
                PyErr_Format(PyExc_TypeError,
                             "calling %R should have returned an instance of "
                             "BaseException, not %R",
                             type, Py_TYPE(value));
                goto bad;
            }
        }
    } else {
        PyErr_SetString(PyExc_TypeError,
            "raise: exception class must be a subclass of BaseException");
        goto bad;
    }
    if (cause) {
        PyObject *fixed_cause;
        if (cause == Py_None) {
            fixed_cause = NULL;
        } else if (PyExceptionClass_Check(cause)) {
            fixed_cause = PyObject_CallObject(cause, NULL);
            if (fixed_cause == NULL)
                goto bad;
        } else if (PyExceptionInstance_Check(cause)) {
            fixed_cause = cause;
            Py_INCREF(fixed_cause);
        } else {
            PyErr_SetString(PyExc_TypeError,
                            "exception causes must derive from "
                            "BaseException");
            goto bad;
        }
        PyException_SetCause(value, fixed_cause);
    }
    PyErr_SetObject(type, value);
    if (tb) {
#if CYTHON_FAST_THREAD_STATE
        PyThreadState *tstate = __Pyx_PyThreadState_Current;
        PyObject* tmp_tb = tstate->curexc_traceback;
        if (tb != tmp_tb) {
            Py_INCREF(tb);
            tstate->curexc_traceback = tb;
            Py_XDECREF(tmp_tb);
        }
#else
        PyObject *tmp_type, *tmp_value, *tmp_tb;
        PyErr_Fetch(&tmp_type, &tmp_value, &tmp_tb);
        Py_INCREF(tb);
        PyErr_Restore(tmp_type, tmp_value, tb);
        Py_XDECREF(tmp_tb);
#endif
    }
bad:
    Py_XDECREF(owned_instance);
    return;
}
#endif

/* PyFloatBinop */
#if !CYTHON_COMPILING_IN_PYPY
static PyObject* __Pyx_PyFloat_DivideObjC(PyObject *op1, PyObject *op2, double floatval, int inplace, int zerodivision_check) {
    const double b = floatval;
    double a, result;
    (void)inplace;
    (void)zerodivision_check;
    if (likely(PyFloat_CheckExact(op1))) {
        a = PyFloat_AS_DOUBLE(op1);
        
    } else
    #if PY_MAJOR_VERSION < 3
    if (likely(PyInt_CheckExact(op1))) {
        a = (double) PyInt_AS_LONG(op1);
        
    } else
    #endif
    if (likely(PyLong_CheckExact(op1))) {
        #if CYTHON_USE_PYLONG_INTERNALS
        const digit* digits = ((PyLongObject*)op1)->ob_digit;
        const Py_ssize_t size = Py_SIZE(op1);
        switch (size) {
            case  0: a = 0.0; break;
            case -1: a = -(double) digits[0]; break;
            case  1: a = (double) digits[0]; break;
            case -2:
            case 2:
                if (8 * sizeof(unsigned long) > 2 * PyLong_SHIFT && ((8 * sizeof(unsigned long) < 53) || (1 * PyLong_SHIFT < 53))) {
                    a = (double) (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]));
                    if ((8 * sizeof(unsigned long) < 53) || (2 * PyLong_SHIFT < 53) || (a < (double) ((PY_LONG_LONG)1 << 53))) {
                        if (size == -2)
                            a = -a;
                        break;
                    }
                }
                CYTHON_FALLTHROUGH;
            case -3:
            case 3:
                if (8 * sizeof(unsigned long) > 3 * PyLong_SHIFT && ((8 * sizeof(unsigned long) < 53) || (2 * PyLong_SHIFT < 53))) {
                    a = (double) (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]));
                    if ((8 * sizeof(unsigned long) < 53) || (3 * PyLong_SHIFT < 53) || (a < (double) ((PY_LONG_LONG)1 << 53))) {
                        if (size == -3)
                            a = -a;
                        break;
                    }
                }
                CYTHON_FALLTHROUGH;
            case -4:
            case 4:
                if (8 * sizeof(unsigned long) > 4 * PyLong_SHIFT && ((8 * sizeof(unsigned long) < 53) || (3 * PyLong_SHIFT < 53))) {
                    a = (double) (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]));
                    if ((8 * sizeof(unsigned long) < 53) || (4 * PyLong_SHIFT < 53) || (a < (double) ((PY_LONG_LONG)1 << 53))) {
                        if (size == -4)
                            a = -a;
                        break;
                    }
                }
                CYTHON_FALLTHROUGH;
            default:
        #else
        {
        #endif
            a = PyLong_AsDouble(op1);
            if (unlikely(a == -1.0 && PyErr_Occurred())) return NULL;
            
        }
    } else {
        return (inplace ? __Pyx_PyNumber_InPlaceDivide(op1, op2) : __Pyx_PyNumber_Divide(op1, op2));
    }
        
        PyFPE_START_PROTECT("divide", return NULL)
        result = a / b;
        PyFPE_END_PROTECT(result)
        return PyFloat_FromDouble(result);
}
#endif

/* PyFloatBinop */
  #if !CYTHON_COMPILING_IN_PYPY
#define __Pyx_PyFloat_DivideCObj_ZeroDivisionError(operand) if (unlikely(zerodivision_check && ((operand) == 0))) {\
    PyErr_SetString(PyExc_ZeroDivisionError, "float division by zero");\
    return NULL;\
}
static PyObject* __Pyx_PyFloat_DivideCObj(PyObject *op1, PyObject *op2, double floatval, int inplace, int zerodivision_check) {
    const double a = floatval;
    double b, result;
    (void)inplace;
    (void)zerodivision_check;
    if (likely(PyFloat_CheckExact(op2))) {
        b = PyFloat_AS_DOUBLE(op2);
        __Pyx_PyFloat_DivideCObj_ZeroDivisionError(b)
    } else
    #if PY_MAJOR_VERSION < 3
    if (likely(PyInt_CheckExact(op2))) {
        b = (double) PyInt_AS_LONG(op2);
        __Pyx_PyFloat_DivideCObj_ZeroDivisionError(b)
    } else
    #endif
    if (likely(PyLong_CheckExact(op2))) {
        #if CYTHON_USE_PYLONG_INTERNALS
        const digit* digits = ((PyLongObject*)op2)->ob_digit;
        const Py_ssize_t size = Py_SIZE(op2);
        switch (size) {
            case  0: __Pyx_PyFloat_DivideCObj_ZeroDivisionError(0) break;
            case -1: b = -(double) digits[0]; break;
            case  1: b = (double) digits[0]; break;
            case -2:
            case 2:
                if (8 * sizeof(unsigned long) > 2 * PyLong_SHIFT && ((8 * sizeof(unsigned long) < 53) || (1 * PyLong_SHIFT < 53))) {
                    b = (double) (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]));
                    if ((8 * sizeof(unsigned long) < 53) || (2 * PyLong_SHIFT < 53) || (b < (double) ((PY_LONG_LONG)1 << 53))) {
                        if (size == -2)
                            b = -b;
                        break;
                    }
                }
                CYTHON_FALLTHROUGH;
            case -3:
            case 3:
                if (8 * sizeof(unsigned long) > 3 * PyLong_SHIFT && ((8 * sizeof(unsigned long) < 53) || (2 * PyLong_SHIFT < 53))) {
                    b = (double) (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]));
                    if ((8 * sizeof(unsigned long) < 53) || (3 * PyLong_SHIFT < 53) || (b < (double) ((PY_LONG_LONG)1 << 53))) {
                        if (size == -3)
                            b = -b;
                        break;
                    }
                }
                CYTHON_FALLTHROUGH;
            case -4:
            case 4:
                if (8 * sizeof(unsigned long) > 4 * PyLong_SHIFT && ((8 * sizeof(unsigned long) < 53) || (3 * PyLong_SHIFT < 53))) {
                    b = (double) (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]));
                    if ((8 * sizeof(unsigned long) < 53) || (4 * PyLong_SHIFT < 53) || (b < (double) ((PY_LONG_LONG)1 << 53))) {
                        if (size == -4)
                            b = -b;
                        break;
                    }
                }
                CYTHON_FALLTHROUGH;
            default:
        #else
        {
        #endif
            b = PyLong_AsDouble(op2);
            if (unlikely(b == -1.0 && PyErr_Occurred())) return NULL;
            __Pyx_PyFloat_DivideCObj_ZeroDivisionError(b)
        }
    } else {
        return (inplace ? __Pyx_PyNumber_InPlaceDivide(op1, op2) : __Pyx_PyNumber_Divide(op1, op2));
    }
        __Pyx_PyFloat_DivideCObj_ZeroDivisionError(b)
        PyFPE_START_PROTECT("divide", return NULL)
        result = a / b;
        PyFPE_END_PROTECT(result)
        return PyFloat_FromDouble(result);
}
#endif

/* JoinPyUnicode */
    static PyObject* __Pyx_PyUnicode_Join(PyObject* value_tuple, Py_ssize_t value_count, Py_ssize_t result_ulength,
                                      CYTHON_UNUSED Py_UCS4 max_char) {
#if CYTHON_USE_UNICODE_INTERNALS && CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
    PyObject *result_uval;
    int result_ukind;
    Py_ssize_t i, char_pos;
    void *result_udata;
#if CYTHON_PEP393_ENABLED
    result_uval = PyUnicode_New(result_ulength, max_char);
    if (unlikely(!result_uval)) return NULL;
    result_ukind = (max_char <= 255) ? PyUnicode_1BYTE_KIND : (max_char <= 65535) ? PyUnicode_2BYTE_KIND : PyUnicode_4BYTE_KIND;
    result_udata = PyUnicode_DATA(result_uval);
#else
    result_uval = PyUnicode_FromUnicode(NULL, result_ulength);
    if (unlikely(!result_uval)) return NULL;
    result_ukind = sizeof(Py_UNICODE);
    result_udata = PyUnicode_AS_UNICODE(result_uval);
#endif
    char_pos = 0;
    for (i=0; i < value_count; i++) {
        int ukind;
        Py_ssize_t ulength;
        void *udata;
        PyObject *uval = PyTuple_GET_ITEM(value_tuple, i);
        if (unlikely(__Pyx_PyUnicode_READY(uval)))
            goto bad;
        ulength = __Pyx_PyUnicode_GET_LENGTH(uval);
        if (unlikely(!ulength))
            continue;
        if (unlikely(char_pos + ulength < 0))
            goto overflow;
        ukind = __Pyx_PyUnicode_KIND(uval);
        udata = __Pyx_PyUnicode_DATA(uval);
        if (!CYTHON_PEP393_ENABLED || ukind == result_ukind) {
            memcpy((char *)result_udata + char_pos * result_ukind, udata, (size_t) (ulength * result_ukind));
        } else {
            #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030300F0 || defined(_PyUnicode_FastCopyCharacters)
            _PyUnicode_FastCopyCharacters(result_uval, char_pos, uval, 0, ulength);
            #else
            Py_ssize_t j;
            for (j=0; j < ulength; j++) {
                Py_UCS4 uchar = __Pyx_PyUnicode_READ(ukind, udata, j);
                __Pyx_PyUnicode_WRITE(result_ukind, result_udata, char_pos+j, uchar);
            }
            #endif
        }
        char_pos += ulength;
    }
    return result_uval;
overflow:
    PyErr_SetString(PyExc_OverflowError, "join() result is too long for a Python string");
bad:
    Py_DECREF(result_uval);
    return NULL;
#else
    result_ulength++;
    value_count++;
    return PyUnicode_Join(__pyx_empty_unicode, value_tuple);
#endif
}

/* PyIntCompare */
    static CYTHON_INLINE PyObject* __Pyx_PyInt_EqObjC(PyObject *op1, PyObject *op2, CYTHON_UNUSED long intval, CYTHON_UNUSED long inplace) {
    if (op1 == op2) {
        Py_RETURN_TRUE;
    }
    #if PY_MAJOR_VERSION < 3
    if (likely(PyInt_CheckExact(op1))) {
        const long b = intval;
        long a = PyInt_AS_LONG(op1);
        if (a == b) Py_RETURN_TRUE; else Py_RETURN_FALSE;
    }
    #endif
    #if CYTHON_USE_PYLONG_INTERNALS
    if (likely(PyLong_CheckExact(op1))) {
        int unequal;
        unsigned long uintval;
        Py_ssize_t size = Py_SIZE(op1);
        const digit* digits = ((PyLongObject*)op1)->ob_digit;
        if (intval == 0) {
            if (size == 0) Py_RETURN_TRUE; else Py_RETURN_FALSE;
        } else if (intval < 0) {
            if (size >= 0)
                Py_RETURN_FALSE;
            intval = -intval;
            size = -size;
        } else {
            if (size <= 0)
                Py_RETURN_FALSE;
        }
        uintval = (unsigned long) intval;
#if PyLong_SHIFT * 4 < SIZEOF_LONG*8
        if (uintval >> (PyLong_SHIFT * 4)) {
            unequal = (size != 5) || (digits[0] != (uintval & (unsigned long) PyLong_MASK))
                 | (digits[1] != ((uintval >> (1 * PyLong_SHIFT)) & (unsigned long) PyLong_MASK)) | (digits[2] != ((uintval >> (2 * PyLong_SHIFT)) & (unsigned long) PyLong_MASK)) | (digits[3] != ((uintval >> (3 * PyLong_SHIFT)) & (unsigned long) PyLong_MASK)) | (digits[4] != ((uintval >> (4 * PyLong_SHIFT)) & (unsigned long) PyLong_MASK));
        } else
#endif
#if PyLong_SHIFT * 3 < SIZEOF_LONG*8
        if (uintval >> (PyLong_SHIFT * 3)) {
            unequal = (size != 4) || (digits[0] != (uintval & (unsigned long) PyLong_MASK))
                 | (digits[1] != ((uintval >> (1 * PyLong_SHIFT)) & (unsigned long) PyLong_MASK)) | (digits[2] != ((uintval >> (2 * PyLong_SHIFT)) & (unsigned long) PyLong_MASK)) | (digits[3] != ((uintval >> (3 * PyLong_SHIFT)) & (unsigned long) PyLong_MASK));
        } else
#endif
#if PyLong_SHIFT * 2 < SIZEOF_LONG*8
        if (uintval >> (PyLong_SHIFT * 2)) {
            unequal = (size != 3) || (digits[0] != (uintval & (unsigned long) PyLong_MASK))
                 | (digits[1] != ((uintval >> (1 * PyLong_SHIFT)) & (unsigned long) PyLong_MASK)) | (digits[2] != ((uintval >> (2 * PyLong_SHIFT)) & (unsigned long) PyLong_MASK));
        } else
#endif
#if PyLong_SHIFT * 1 < SIZEOF_LONG*8
        if (uintval >> (PyLong_SHIFT * 1)) {
            unequal = (size != 2) || (digits[0] != (uintval & (unsigned long) PyLong_MASK))
                 | (digits[1] != ((uintval >> (1 * PyLong_SHIFT)) & (unsigned long) PyLong_MASK));
        } else
#endif
            unequal = (size != 1) || (((unsigned long) digits[0]) != (uintval & (unsigned long) PyLong_MASK));
        if (unequal == 0) Py_RETURN_TRUE; else Py_RETURN_FALSE;
    }
    #endif
    if (PyFloat_CheckExact(op1)) {
        const long b = intval;
        double a = PyFloat_AS_DOUBLE(op1);
        if ((double)a == (double)b) Py_RETURN_TRUE; else Py_RETURN_FALSE;
    }
    return (
        PyObject_RichCompare(op1, op2, Py_EQ));
}

/* BytesEquals */
    static CYTHON_INLINE int __Pyx_PyBytes_Equals(PyObject* s1, PyObject* s2, int equals) {
#if CYTHON_COMPILING_IN_PYPY
    return PyObject_RichCompareBool(s1, s2, equals);
#else
    if (s1 == s2) {
        return (equals == Py_EQ);
    } else if (PyBytes_CheckExact(s1) & PyBytes_CheckExact(s2)) {
        const char *ps1, *ps2;
        Py_ssize_t length = PyBytes_GET_SIZE(s1);
        if (length != PyBytes_GET_SIZE(s2))
            return (equals == Py_NE);
        ps1 = PyBytes_AS_STRING(s1);
        ps2 = PyBytes_AS_STRING(s2);
        if (ps1[0] != ps2[0]) {
            return (equals == Py_NE);
        } else if (length == 1) {
            return (equals == Py_EQ);
        } else {
            int result;
#if CYTHON_USE_UNICODE_INTERNALS && (PY_VERSION_HEX < 0x030B0000)
            Py_hash_t hash1, hash2;
            hash1 = ((PyBytesObject*)s1)->ob_shash;
            hash2 = ((PyBytesObject*)s2)->ob_shash;
            if (hash1 != hash2 && hash1 != -1 && hash2 != -1) {
                return (equals == Py_NE);
            }
#endif
            result = memcmp(ps1, ps2, (size_t)length);
            return (equals == Py_EQ) ? (result == 0) : (result != 0);
        }
    } else if ((s1 == Py_None) & PyBytes_CheckExact(s2)) {
        return (equals == Py_NE);
    } else if ((s2 == Py_None) & PyBytes_CheckExact(s1)) {
        return (equals == Py_NE);
    } else {
        int result;
        PyObject* py_result = PyObject_RichCompare(s1, s2, equals);
        if (!py_result)
            return -1;
        result = __Pyx_PyObject_IsTrue(py_result);
        Py_DECREF(py_result);
        return result;
    }
#endif
}

/* UnicodeEquals */
    static CYTHON_INLINE int __Pyx_PyUnicode_Equals(PyObject* s1, PyObject* s2, int equals) {
#if CYTHON_COMPILING_IN_PYPY
    return PyObject_RichCompareBool(s1, s2, equals);
#else
#if PY_MAJOR_VERSION < 3
    PyObject* owned_ref = NULL;
#endif
    int s1_is_unicode, s2_is_unicode;
    if (s1 == s2) {
        goto return_eq;
    }
    s1_is_unicode = PyUnicode_CheckExact(s1);
    s2_is_unicode = PyUnicode_CheckExact(s2);
#if PY_MAJOR_VERSION < 3
    if ((s1_is_unicode & (!s2_is_unicode)) && PyString_CheckExact(s2)) {
        owned_ref = PyUnicode_FromObject(s2);
        if (unlikely(!owned_ref))
            return -1;
        s2 = owned_ref;
        s2_is_unicode = 1;
    } else if ((s2_is_unicode & (!s1_is_unicode)) && PyString_CheckExact(s1)) {
        owned_ref = PyUnicode_FromObject(s1);
        if (unlikely(!owned_ref))
            return -1;
        s1 = owned_ref;
        s1_is_unicode = 1;
    } else if (((!s2_is_unicode) & (!s1_is_unicode))) {
        return __Pyx_PyBytes_Equals(s1, s2, equals);
    }
#endif
    if (s1_is_unicode & s2_is_unicode) {
        Py_ssize_t length;
        int kind;
        void *data1, *data2;
        if (unlikely(__Pyx_PyUnicode_READY(s1) < 0) || unlikely(__Pyx_PyUnicode_READY(s2) < 0))
            return -1;
        length = __Pyx_PyUnicode_GET_LENGTH(s1);
        if (length != __Pyx_PyUnicode_GET_LENGTH(s2)) {
            goto return_ne;
        }
#if CYTHON_USE_UNICODE_INTERNALS
        {
            Py_hash_t hash1, hash2;
        #if CYTHON_PEP393_ENABLED
            hash1 = ((PyASCIIObject*)s1)->hash;
            hash2 = ((PyASCIIObject*)s2)->hash;
        #else
            hash1 = ((PyUnicodeObject*)s1)->hash;
            hash2 = ((PyUnicodeObject*)s2)->hash;
        #endif
            if (hash1 != hash2 && hash1 != -1 && hash2 != -1) {
                goto return_ne;
            }
        }
#endif
        kind = __Pyx_PyUnicode_KIND(s1);
        if (kind != __Pyx_PyUnicode_KIND(s2)) {
            goto return_ne;
        }
        data1 = __Pyx_PyUnicode_DATA(s1);
        data2 = __Pyx_PyUnicode_DATA(s2);
        if (__Pyx_PyUnicode_READ(kind, data1, 0) != __Pyx_PyUnicode_READ(kind, data2, 0)) {
            goto return_ne;
        } else if (length == 1) {
            goto return_eq;
        } else {
            int result = memcmp(data1, data2, (size_t)(length * kind));
            #if PY_MAJOR_VERSION < 3
            Py_XDECREF(owned_ref);
            #endif
            return (equals == Py_EQ) ? (result == 0) : (result != 0);
        }
    } else if ((s1 == Py_None) & s2_is_unicode) {
        goto return_ne;
    } else if ((s2 == Py_None) & s1_is_unicode) {
        goto return_ne;
    } else {
        int result;
        PyObject* py_result = PyObject_RichCompare(s1, s2, equals);
        #if PY_MAJOR_VERSION < 3
        Py_XDECREF(owned_ref);
        #endif
        if (!py_result)
            return -1;
        result = __Pyx_PyObject_IsTrue(py_result);
        Py_DECREF(py_result);
        return result;
    }
return_eq:
    #if PY_MAJOR_VERSION < 3
    Py_XDECREF(owned_ref);
    #endif
    return (equals == Py_EQ);
return_ne:
    #if PY_MAJOR_VERSION < 3
    Py_XDECREF(owned_ref);
    #endif
    return (equals == Py_NE);
#endif
}

/* KeywordStringCheck */
    static int __Pyx_CheckKeywordStrings(
    PyObject *kwdict,
    const char* function_name,
    int kw_allowed)
{
    PyObject* key = 0;
    Py_ssize_t pos = 0;
#if CYTHON_COMPILING_IN_PYPY
    if (!kw_allowed && PyDict_Next(kwdict, &pos, &key, 0))
        goto invalid_keyword;
    return 1;
#else
    while (PyDict_Next(kwdict, &pos, &key, 0)) {
        #if PY_MAJOR_VERSION < 3
        if (unlikely(!PyString_Check(key)))
        #endif
            if (unlikely(!PyUnicode_Check(key)))
                goto invalid_keyword_type;
    }
    if ((!kw_allowed) && unlikely(key))
        goto invalid_keyword;
    return 1;
invalid_keyword_type:
    PyErr_Format(PyExc_TypeError,
        "%.200s() keywords must be strings", function_name);
    return 0;
#endif
invalid_keyword:
    PyErr_Format(PyExc_TypeError,
    #if PY_MAJOR_VERSION < 3
        "%.200s() got an unexpected keyword argument '%.200s'",
        function_name, PyString_AsString(key));
    #else
        "%s() got an unexpected keyword argument '%U'",
        function_name, key);
    #endif
    return 0;
}

/* WriteUnraisableException */
    static void __Pyx_WriteUnraisable(const char *name, CYTHON_UNUSED int clineno,
                                  CYTHON_UNUSED int lineno, CYTHON_UNUSED const char *filename,
                                  int full_traceback, CYTHON_UNUSED int nogil) {
    PyObject *old_exc, *old_val, *old_tb;
    PyObject *ctx;
    __Pyx_PyThreadState_declare
#ifdef WITH_THREAD
    PyGILState_STATE state;
    if (nogil)
        state = PyGILState_Ensure();
    else state = (PyGILState_STATE)0;
#endif
    __Pyx_PyThreadState_assign
    __Pyx_ErrFetch(&old_exc, &old_val, &old_tb);
    if (full_traceback) {
        Py_XINCREF(old_exc);
        Py_XINCREF(old_val);
        Py_XINCREF(old_tb);
        __Pyx_ErrRestore(old_exc, old_val, old_tb);
        PyErr_PrintEx(1);
    }
    #if PY_MAJOR_VERSION < 3
    ctx = PyString_FromString(name);
    #else
    ctx = PyUnicode_FromString(name);
    #endif
    __Pyx_ErrRestore(old_exc, old_val, old_tb);
    if (!ctx) {
        PyErr_WriteUnraisable(Py_None);
    } else {
        PyErr_WriteUnraisable(ctx);
        Py_DECREF(ctx);
    }
#ifdef WITH_THREAD
    if (nogil)
        PyGILState_Release(state);
#endif
}

/* CallUnboundCMethod1 */
    #if CYTHON_COMPILING_IN_CPYTHON
static CYTHON_INLINE PyObject* __Pyx_CallUnboundCMethod1(__Pyx_CachedCFunction* cfunc, PyObject* self, PyObject* arg) {
    if (likely(cfunc->func)) {
        int flag = cfunc->flag;
        if (flag == METH_O) {
            return (*(cfunc->func))(self, arg);
        } else if (PY_VERSION_HEX >= 0x030600B1 && flag == METH_FASTCALL) {
            #if PY_VERSION_HEX >= 0x030700A0
                return (*(__Pyx_PyCFunctionFast)(void*)(PyCFunction)cfunc->func)(self, &arg, 1);
            #else
                return (*(__Pyx_PyCFunctionFastWithKeywords)(void*)(PyCFunction)cfunc->func)(self, &arg, 1, NULL);
            #endif
        } else if (PY_VERSION_HEX >= 0x030700A0 && flag == (METH_FASTCALL | METH_KEYWORDS)) {
            return (*(__Pyx_PyCFunctionFastWithKeywords)(void*)(PyCFunction)cfunc->func)(self, &arg, 1, NULL);
        }
    }
    return __Pyx__CallUnboundCMethod1(cfunc, self, arg);
}
#endif
static PyObject* __Pyx__CallUnboundCMethod1(__Pyx_CachedCFunction* cfunc, PyObject* self, PyObject* arg){
    PyObject *args, *result = NULL;
    if (unlikely(!cfunc->func && !cfunc->method) && unlikely(__Pyx_TryUnpackUnboundCMethod(cfunc) < 0)) return NULL;
#if CYTHON_COMPILING_IN_CPYTHON
    if (cfunc->func && (cfunc->flag & METH_VARARGS)) {
        args = PyTuple_New(1);
        if (unlikely(!args)) goto bad;
        Py_INCREF(arg);
        PyTuple_SET_ITEM(args, 0, arg);
        if (cfunc->flag & METH_KEYWORDS)
            result = (*(PyCFunctionWithKeywords)(void*)(PyCFunction)cfunc->func)(self, args, NULL);
        else
            result = (*cfunc->func)(self, args);
    } else {
        args = PyTuple_New(2);
        if (unlikely(!args)) goto bad;
        Py_INCREF(self);
        PyTuple_SET_ITEM(args, 0, self);
        Py_INCREF(arg);
        PyTuple_SET_ITEM(args, 1, arg);
        result = __Pyx_PyObject_Call(cfunc->method, args, NULL);
    }
#else
    args = PyTuple_Pack(2, self, arg);
    if (unlikely(!args)) goto bad;
    result = __Pyx_PyObject_Call(cfunc->method, args, NULL);
#endif
bad:
    Py_XDECREF(args);
    return result;
}

/* ObjectGetItem */
    #if CYTHON_USE_TYPE_SLOTS
static PyObject *__Pyx_PyObject_GetIndex(PyObject *obj, PyObject* index) {
    PyObject *runerr = NULL;
    Py_ssize_t key_value;
    PySequenceMethods *m = Py_TYPE(obj)->tp_as_sequence;
    if (unlikely(!(m && m->sq_item))) {
        PyErr_Format(PyExc_TypeError, "'%.200s' object is not subscriptable", Py_TYPE(obj)->tp_name);
        return NULL;
    }
    key_value = __Pyx_PyIndex_AsSsize_t(index);
    if (likely(key_value != -1 || !(runerr = PyErr_Occurred()))) {
        return __Pyx_GetItemInt_Fast(obj, key_value, 0, 1, 1);
    }
    if (PyErr_GivenExceptionMatches(runerr, PyExc_OverflowError)) {
        PyErr_Clear();
        PyErr_Format(PyExc_IndexError, "cannot fit '%.200s' into an index-sized integer", Py_TYPE(index)->tp_name);
    }
    return NULL;
}
static PyObject *__Pyx_PyObject_GetItem(PyObject *obj, PyObject* key) {
    PyMappingMethods *m = Py_TYPE(obj)->tp_as_mapping;
    if (likely(m && m->mp_subscript)) {
        return m->mp_subscript(obj, key);
    }
    return __Pyx_PyObject_GetIndex(obj, key);
}
#endif

/* DictGetItem */
    #if PY_MAJOR_VERSION >= 3 && !CYTHON_COMPILING_IN_PYPY
static PyObject *__Pyx_PyDict_GetItem(PyObject *d, PyObject* key) {
    PyObject *value;
    value = PyDict_GetItemWithError(d, key);
    if (unlikely(!value)) {
        if (!PyErr_Occurred()) {
            if (unlikely(PyTuple_Check(key))) {
                PyObject* args = PyTuple_Pack(1, key);
                if (likely(args)) {
                    PyErr_SetObject(PyExc_KeyError, args);
                    Py_DECREF(args);
                }
            } else {
                PyErr_SetObject(PyExc_KeyError, key);
            }
        }
        return NULL;
    }
    Py_INCREF(value);
    return value;
}
#endif

/* GetTopmostException */
    #if CYTHON_USE_EXC_INFO_STACK
static _PyErr_StackItem *
__Pyx_PyErr_GetTopmostException(PyThreadState *tstate)
{
    _PyErr_StackItem *exc_info = tstate->exc_info;
    while ((exc_info->exc_type == NULL || exc_info->exc_type == Py_None) &&
           exc_info->previous_item != NULL)
    {
        exc_info = exc_info->previous_item;
    }
    return exc_info;
}
#endif

/* SaveResetException */
    #if CYTHON_FAST_THREAD_STATE
static CYTHON_INLINE void __Pyx__ExceptionSave(PyThreadState *tstate, PyObject **type, PyObject **value, PyObject **tb) {
    #if CYTHON_USE_EXC_INFO_STACK
    _PyErr_StackItem *exc_info = __Pyx_PyErr_GetTopmostException(tstate);
    *type = exc_info->exc_type;
    *value = exc_info->exc_value;
    *tb = exc_info->exc_traceback;
    #else
    *type = tstate->exc_type;
    *value = tstate->exc_value;
    *tb = tstate->exc_traceback;
    #endif
    Py_XINCREF(*type);
    Py_XINCREF(*value);
    Py_XINCREF(*tb);
}
static CYTHON_INLINE void __Pyx__ExceptionReset(PyThreadState *tstate, PyObject *type, PyObject *value, PyObject *tb) {
    PyObject *tmp_type, *tmp_value, *tmp_tb;
    #if CYTHON_USE_EXC_INFO_STACK
    _PyErr_StackItem *exc_info = tstate->exc_info;
    tmp_type = exc_info->exc_type;
    tmp_value = exc_info->exc_value;
    tmp_tb = exc_info->exc_traceback;
    exc_info->exc_type = type;
    exc_info->exc_value = value;
    exc_info->exc_traceback = tb;
    #else
    tmp_type = tstate->exc_type;
    tmp_value = tstate->exc_value;
    tmp_tb = tstate->exc_traceback;
    tstate->exc_type = type;
    tstate->exc_value = value;
    tstate->exc_traceback = tb;
    #endif
    Py_XDECREF(tmp_type);
    Py_XDECREF(tmp_value);
    Py_XDECREF(tmp_tb);
}
#endif

/* PyErrExceptionMatches */
    #if CYTHON_FAST_THREAD_STATE
static int __Pyx_PyErr_ExceptionMatchesTuple(PyObject *exc_type, PyObject *tuple) {
    Py_ssize_t i, n;
    n = PyTuple_GET_SIZE(tuple);
#if PY_MAJOR_VERSION >= 3
    for (i=0; i<n; i++) {
        if (exc_type == PyTuple_GET_ITEM(tuple, i)) return 1;
    }
#endif
    for (i=0; i<n; i++) {
        if (__Pyx_PyErr_GivenExceptionMatches(exc_type, PyTuple_GET_ITEM(tuple, i))) return 1;
    }
    return 0;
}
static CYTHON_INLINE int __Pyx_PyErr_ExceptionMatchesInState(PyThreadState* tstate, PyObject* err) {
    PyObject *exc_type = tstate->curexc_type;
    if (exc_type == err) return 1;
    if (unlikely(!exc_type)) return 0;
    if (unlikely(PyTuple_Check(err)))
        return __Pyx_PyErr_ExceptionMatchesTuple(exc_type, err);
    return __Pyx_PyErr_GivenExceptionMatches(exc_type, err);
}
#endif

/* GetException */
    #if CYTHON_FAST_THREAD_STATE
static int __Pyx__GetException(PyThreadState *tstate, PyObject **type, PyObject **value, PyObject **tb)
#else
static int __Pyx_GetException(PyObject **type, PyObject **value, PyObject **tb)
#endif
{
    PyObject *local_type, *local_value, *local_tb;
#if CYTHON_FAST_THREAD_STATE
    PyObject *tmp_type, *tmp_value, *tmp_tb;
    local_type = tstate->curexc_type;
    local_value = tstate->curexc_value;
    local_tb = tstate->curexc_traceback;
    tstate->curexc_type = 0;
    tstate->curexc_value = 0;
    tstate->curexc_traceback = 0;
#else
    PyErr_Fetch(&local_type, &local_value, &local_tb);
#endif
    PyErr_NormalizeException(&local_type, &local_value, &local_tb);
#if CYTHON_FAST_THREAD_STATE
    if (unlikely(tstate->curexc_type))
#else
    if (unlikely(PyErr_Occurred()))
#endif
        goto bad;
    #if PY_MAJOR_VERSION >= 3
    if (local_tb) {
        if (unlikely(PyException_SetTraceback(local_value, local_tb) < 0))
            goto bad;
    }
    #endif
    Py_XINCREF(local_tb);
    Py_XINCREF(local_type);
    Py_XINCREF(local_value);
    *type = local_type;
    *value = local_value;
    *tb = local_tb;
#if CYTHON_FAST_THREAD_STATE
    #if CYTHON_USE_EXC_INFO_STACK
    {
        _PyErr_StackItem *exc_info = tstate->exc_info;
        tmp_type = exc_info->exc_type;
        tmp_value = exc_info->exc_value;
        tmp_tb = exc_info->exc_traceback;
        exc_info->exc_type = local_type;
        exc_info->exc_value = local_value;
        exc_info->exc_traceback = local_tb;
    }
    #else
    tmp_type = tstate->exc_type;
    tmp_value = tstate->exc_value;
    tmp_tb = tstate->exc_traceback;
    tstate->exc_type = local_type;
    tstate->exc_value = local_value;
    tstate->exc_traceback = local_tb;
    #endif
    Py_XDECREF(tmp_type);
    Py_XDECREF(tmp_value);
    Py_XDECREF(tmp_tb);
#else
    PyErr_SetExcInfo(local_type, local_value, local_tb);
#endif
    return 0;
bad:
    *type = 0;
    *value = 0;
    *tb = 0;
    Py_XDECREF(local_type);
    Py_XDECREF(local_value);
    Py_XDECREF(local_tb);
    return -1;
}

/* PyObject_GenericGetAttrNoDict */
    #if CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP && PY_VERSION_HEX < 0x03070000
static PyObject *__Pyx_RaiseGenericGetAttributeError(PyTypeObject *tp, PyObject *attr_name) {
    PyErr_Format(PyExc_AttributeError,
#if PY_MAJOR_VERSION >= 3
                 "'%.50s' object has no attribute '%U'",
                 tp->tp_name, attr_name);
#else
                 "'%.50s' object has no attribute '%.400s'",
                 tp->tp_name, PyString_AS_STRING(attr_name));
#endif
    return NULL;
}
static CYTHON_INLINE PyObject* __Pyx_PyObject_GenericGetAttrNoDict(PyObject* obj, PyObject* attr_name) {
    PyObject *descr;
    PyTypeObject *tp = Py_TYPE(obj);
    if (unlikely(!PyString_Check(attr_name))) {
        return PyObject_GenericGetAttr(obj, attr_name);
    }
    assert(!tp->tp_dictoffset);
    descr = _PyType_Lookup(tp, attr_name);
    if (unlikely(!descr)) {
        return __Pyx_RaiseGenericGetAttributeError(tp, attr_name);
    }
    Py_INCREF(descr);
    #if PY_MAJOR_VERSION < 3
    if (likely(PyType_HasFeature(Py_TYPE(descr), Py_TPFLAGS_HAVE_CLASS)))
    #endif
    {
        descrgetfunc f = Py_TYPE(descr)->tp_descr_get;
        if (unlikely(f)) {
            PyObject *res = f(descr, obj, (PyObject *)tp);
            Py_DECREF(descr);
            return res;
        }
    }
    return descr;
}
#endif

/* PyObject_GenericGetAttr */
    #if CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP && PY_VERSION_HEX < 0x03070000
static PyObject* __Pyx_PyObject_GenericGetAttr(PyObject* obj, PyObject* attr_name) {
    if (unlikely(Py_TYPE(obj)->tp_dictoffset)) {
        return PyObject_GenericGetAttr(obj, attr_name);
    }
    return __Pyx_PyObject_GenericGetAttrNoDict(obj, attr_name);
}
#endif

/* PyObjectGetAttrStrNoError */
    static void __Pyx_PyObject_GetAttrStr_ClearAttributeError(void) {
    __Pyx_PyThreadState_declare
    __Pyx_PyThreadState_assign
    if (likely(__Pyx_PyErr_ExceptionMatches(PyExc_AttributeError)))
        __Pyx_PyErr_Clear();
}
static CYTHON_INLINE PyObject* __Pyx_PyObject_GetAttrStrNoError(PyObject* obj, PyObject* attr_name) {
    PyObject *result;
#if CYTHON_COMPILING_IN_CPYTHON && CYTHON_USE_TYPE_SLOTS && PY_VERSION_HEX >= 0x030700B1
    PyTypeObject* tp = Py_TYPE(obj);
    if (likely(tp->tp_getattro == PyObject_GenericGetAttr)) {
        return _PyObject_GenericGetAttrWithDict(obj, attr_name, NULL, 1);
    }
#endif
    result = __Pyx_PyObject_GetAttrStr(obj, attr_name);
    if (unlikely(!result)) {
        __Pyx_PyObject_GetAttrStr_ClearAttributeError();
    }
    return result;
}

/* SetupReduce */
    static int __Pyx_setup_reduce_is_named(PyObject* meth, PyObject* name) {
  int ret;
  PyObject *name_attr;
  name_attr = __Pyx_PyObject_GetAttrStr(meth, __pyx_n_s_name);
  if (likely(name_attr)) {
      ret = PyObject_RichCompareBool(name_attr, name, Py_EQ);
  } else {
      ret = -1;
  }
  if (unlikely(ret < 0)) {
      PyErr_Clear();
      ret = 0;
  }
  Py_XDECREF(name_attr);
  return ret;
}
static int __Pyx_setup_reduce(PyObject* type_obj) {
    int ret = 0;
    PyObject *object_reduce = NULL;
    PyObject *object_getstate = NULL;
    PyObject *object_reduce_ex = NULL;
    PyObject *reduce = NULL;
    PyObject *reduce_ex = NULL;
    PyObject *reduce_cython = NULL;
    PyObject *setstate = NULL;
    PyObject *setstate_cython = NULL;
    PyObject *getstate = NULL;
#if CYTHON_USE_PYTYPE_LOOKUP
    getstate = _PyType_Lookup((PyTypeObject*)type_obj, __pyx_n_s_getstate);
#else
    getstate = __Pyx_PyObject_GetAttrStrNoError(type_obj, __pyx_n_s_getstate);
    if (!getstate && PyErr_Occurred()) {
        goto __PYX_BAD;
    }
#endif
    if (getstate) {
#if CYTHON_USE_PYTYPE_LOOKUP
        object_getstate = _PyType_Lookup(&PyBaseObject_Type, __pyx_n_s_getstate);
#else
        object_getstate = __Pyx_PyObject_GetAttrStrNoError((PyObject*)&PyBaseObject_Type, __pyx_n_s_getstate);
        if (!object_getstate && PyErr_Occurred()) {
            goto __PYX_BAD;
        }
#endif
        if (object_getstate != getstate) {
            goto __PYX_GOOD;
        }
    }
#if CYTHON_USE_PYTYPE_LOOKUP
    object_reduce_ex = _PyType_Lookup(&PyBaseObject_Type, __pyx_n_s_reduce_ex); if (!object_reduce_ex) goto __PYX_BAD;
#else
    object_reduce_ex = __Pyx_PyObject_GetAttrStr((PyObject*)&PyBaseObject_Type, __pyx_n_s_reduce_ex); if (!object_reduce_ex) goto __PYX_BAD;
#endif
    reduce_ex = __Pyx_PyObject_GetAttrStr(type_obj, __pyx_n_s_reduce_ex); if (unlikely(!reduce_ex)) goto __PYX_BAD;
    if (reduce_ex == object_reduce_ex) {
#if CYTHON_USE_PYTYPE_LOOKUP
        object_reduce = _PyType_Lookup(&PyBaseObject_Type, __pyx_n_s_reduce); if (!object_reduce) goto __PYX_BAD;
#else
        object_reduce = __Pyx_PyObject_GetAttrStr((PyObject*)&PyBaseObject_Type, __pyx_n_s_reduce); if (!object_reduce) goto __PYX_BAD;
#endif
        reduce = __Pyx_PyObject_GetAttrStr(type_obj, __pyx_n_s_reduce); if (unlikely(!reduce)) goto __PYX_BAD;
        if (reduce == object_reduce || __Pyx_setup_reduce_is_named(reduce, __pyx_n_s_reduce_cython)) {
            reduce_cython = __Pyx_PyObject_GetAttrStrNoError(type_obj, __pyx_n_s_reduce_cython);
            if (likely(reduce_cython)) {
                ret = PyDict_SetItem(((PyTypeObject*)type_obj)->tp_dict, __pyx_n_s_reduce, reduce_cython); if (unlikely(ret < 0)) goto __PYX_BAD;
                ret = PyDict_DelItem(((PyTypeObject*)type_obj)->tp_dict, __pyx_n_s_reduce_cython); if (unlikely(ret < 0)) goto __PYX_BAD;
            } else if (reduce == object_reduce || PyErr_Occurred()) {
                goto __PYX_BAD;
            }
            setstate = __Pyx_PyObject_GetAttrStr(type_obj, __pyx_n_s_setstate);
            if (!setstate) PyErr_Clear();
            if (!setstate || __Pyx_setup_reduce_is_named(setstate, __pyx_n_s_setstate_cython)) {
                setstate_cython = __Pyx_PyObject_GetAttrStrNoError(type_obj, __pyx_n_s_setstate_cython);
                if (likely(setstate_cython)) {
                    ret = PyDict_SetItem(((PyTypeObject*)type_obj)->tp_dict, __pyx_n_s_setstate, setstate_cython); if (unlikely(ret < 0)) goto __PYX_BAD;
                    ret = PyDict_DelItem(((PyTypeObject*)type_obj)->tp_dict, __pyx_n_s_setstate_cython); if (unlikely(ret < 0)) goto __PYX_BAD;
                } else if (!setstate || PyErr_Occurred()) {
                    goto __PYX_BAD;
                }
            }
            PyType_Modified((PyTypeObject*)type_obj);
        }
    }
    goto __PYX_GOOD;
__PYX_BAD:
    if (!PyErr_Occurred())
        PyErr_Format(PyExc_RuntimeError, "Unable to initialize pickling for %s", ((PyTypeObject*)type_obj)->tp_name);
    ret = -1;
__PYX_GOOD:
#if !CYTHON_USE_PYTYPE_LOOKUP
    Py_XDECREF(object_reduce);
    Py_XDECREF(object_reduce_ex);
    Py_XDECREF(object_getstate);
    Py_XDECREF(getstate);
#endif
    Py_XDECREF(reduce);
    Py_XDECREF(reduce_ex);
    Py_XDECREF(reduce_cython);
    Py_XDECREF(setstate);
    Py_XDECREF(setstate_cython);
    return ret;
}

/* SetVTable */
    static int __Pyx_SetVtable(PyObject *dict, void *vtable) {
#if PY_VERSION_HEX >= 0x02070000
    PyObject *ob = PyCapsule_New(vtable, 0, 0);
#else
    PyObject *ob = PyCObject_FromVoidPtr(vtable, 0);
#endif
    if (!ob)
        goto bad;
    if (PyDict_SetItem(dict, __pyx_n_s_pyx_vtable, ob) < 0)
        goto bad;
    Py_DECREF(ob);
    return 0;
bad:
    Py_XDECREF(ob);
    return -1;
}

/* Import */
    static PyObject *__Pyx_Import(PyObject *name, PyObject *from_list, int level) {
    PyObject *empty_list = 0;
    PyObject *module = 0;
    PyObject *global_dict = 0;
    PyObject *empty_dict = 0;
    PyObject *list;
    #if PY_MAJOR_VERSION < 3
    PyObject *py_import;
    py_import = __Pyx_PyObject_GetAttrStr(__pyx_b, __pyx_n_s_import);
    if (!py_import)
        goto bad;
    #endif
    if (from_list)
        list = from_list;
    else {
        empty_list = PyList_New(0);
        if (!empty_list)
            goto bad;
        list = empty_list;
    }
    global_dict = PyModule_GetDict(__pyx_m);
    if (!global_dict)
        goto bad;
    empty_dict = PyDict_New();
    if (!empty_dict)
        goto bad;
    {
        #if PY_MAJOR_VERSION >= 3
        if (level == -1) {
            if ((1) && (strchr(__Pyx_MODULE_NAME, '.'))) {
                module = PyImport_ImportModuleLevelObject(
                    name, global_dict, empty_dict, list, 1);
                if (!module) {
                    if (!PyErr_ExceptionMatches(PyExc_ImportError))
                        goto bad;
                    PyErr_Clear();
                }
            }
            level = 0;
        }
        #endif
        if (!module) {
            #if PY_MAJOR_VERSION < 3
            PyObject *py_level = PyInt_FromLong(level);
            if (!py_level)
                goto bad;
            module = PyObject_CallFunctionObjArgs(py_import,
                name, global_dict, empty_dict, list, py_level, (PyObject *)NULL);
            Py_DECREF(py_level);
            #else
            module = PyImport_ImportModuleLevelObject(
                name, global_dict, empty_dict, list, level);
            #endif
        }
    }
bad:
    #if PY_MAJOR_VERSION < 3
    Py_XDECREF(py_import);
    #endif
    Py_XDECREF(empty_list);
    Py_XDECREF(empty_dict);
    return module;
}

/* ImportFrom */
    static PyObject* __Pyx_ImportFrom(PyObject* module, PyObject* name) {
    PyObject* value = __Pyx_PyObject_GetAttrStr(module, name);
    if (unlikely(!value) && PyErr_ExceptionMatches(PyExc_AttributeError)) {
        PyErr_Format(PyExc_ImportError,
        #if PY_MAJOR_VERSION < 3
            "cannot import name %.230s", PyString_AS_STRING(name));
        #else
            "cannot import name %S", name);
        #endif
    }
    return value;
}

/* CLineInTraceback */
    #ifndef CYTHON_CLINE_IN_TRACEBACK
static int __Pyx_CLineForTraceback(CYTHON_UNUSED PyThreadState *tstate, int c_line) {
    PyObject *use_cline;
    PyObject *ptype, *pvalue, *ptraceback;
#if CYTHON_COMPILING_IN_CPYTHON
    PyObject **cython_runtime_dict;
#endif
    if (unlikely(!__pyx_cython_runtime)) {
        return c_line;
    }
    __Pyx_ErrFetchInState(tstate, &ptype, &pvalue, &ptraceback);
#if CYTHON_COMPILING_IN_CPYTHON
    cython_runtime_dict = _PyObject_GetDictPtr(__pyx_cython_runtime);
    if (likely(cython_runtime_dict)) {
        __PYX_PY_DICT_LOOKUP_IF_MODIFIED(
            use_cline, *cython_runtime_dict,
            __Pyx_PyDict_GetItemStr(*cython_runtime_dict, __pyx_n_s_cline_in_traceback))
    } else
#endif
    {
      PyObject *use_cline_obj = __Pyx_PyObject_GetAttrStr(__pyx_cython_runtime, __pyx_n_s_cline_in_traceback);
      if (use_cline_obj) {
        use_cline = PyObject_Not(use_cline_obj) ? Py_False : Py_True;
        Py_DECREF(use_cline_obj);
      } else {
        PyErr_Clear();
        use_cline = NULL;
      }
    }
    if (!use_cline) {
        c_line = 0;
        (void) PyObject_SetAttr(__pyx_cython_runtime, __pyx_n_s_cline_in_traceback, Py_False);
    }
    else if (use_cline == Py_False || (use_cline != Py_True && PyObject_Not(use_cline) != 0)) {
        c_line = 0;
    }
    __Pyx_ErrRestoreInState(tstate, ptype, pvalue, ptraceback);
    return c_line;
}
#endif

/* CodeObjectCache */
    static int __pyx_bisect_code_objects(__Pyx_CodeObjectCacheEntry* entries, int count, int code_line) {
    int start = 0, mid = 0, end = count - 1;
    if (end >= 0 && code_line > entries[end].code_line) {
        return count;
    }
    while (start < end) {
        mid = start + (end - start) / 2;
        if (code_line < entries[mid].code_line) {
            end = mid;
        } else if (code_line > entries[mid].code_line) {
             start = mid + 1;
        } else {
            return mid;
        }
    }
    if (code_line <= entries[mid].code_line) {
        return mid;
    } else {
        return mid + 1;
    }
}
static PyCodeObject *__pyx_find_code_object(int code_line) {
    PyCodeObject* code_object;
    int pos;
    if (unlikely(!code_line) || unlikely(!__pyx_code_cache.entries)) {
        return NULL;
    }
    pos = __pyx_bisect_code_objects(__pyx_code_cache.entries, __pyx_code_cache.count, code_line);
    if (unlikely(pos >= __pyx_code_cache.count) || unlikely(__pyx_code_cache.entries[pos].code_line != code_line)) {
        return NULL;
    }
    code_object = __pyx_code_cache.entries[pos].code_object;
    Py_INCREF(code_object);
    return code_object;
}
static void __pyx_insert_code_object(int code_line, PyCodeObject* code_object) {
    int pos, i;
    __Pyx_CodeObjectCacheEntry* entries = __pyx_code_cache.entries;
    if (unlikely(!code_line)) {
        return;
    }
    if (unlikely(!entries)) {
        entries = (__Pyx_CodeObjectCacheEntry*)PyMem_Malloc(64*sizeof(__Pyx_CodeObjectCacheEntry));
        if (likely(entries)) {
            __pyx_code_cache.entries = entries;
            __pyx_code_cache.max_count = 64;
            __pyx_code_cache.count = 1;
            entries[0].code_line = code_line;
            entries[0].code_object = code_object;
            Py_INCREF(code_object);
        }
        return;
    }
    pos = __pyx_bisect_code_objects(__pyx_code_cache.entries, __pyx_code_cache.count, code_line);
    if ((pos < __pyx_code_cache.count) && unlikely(__pyx_code_cache.entries[pos].code_line == code_line)) {
        PyCodeObject* tmp = entries[pos].code_object;
        entries[pos].code_object = code_object;
        Py_DECREF(tmp);
        return;
    }
    if (__pyx_code_cache.count == __pyx_code_cache.max_count) {
        int new_max = __pyx_code_cache.max_count + 64;
        entries = (__Pyx_CodeObjectCacheEntry*)PyMem_Realloc(
            __pyx_code_cache.entries, ((size_t)new_max) * sizeof(__Pyx_CodeObjectCacheEntry));
        if (unlikely(!entries)) {
            return;
        }
        __pyx_code_cache.entries = entries;
        __pyx_code_cache.max_count = new_max;
    }
    for (i=__pyx_code_cache.count; i>pos; i--) {
        entries[i] = entries[i-1];
    }
    entries[pos].code_line = code_line;
    entries[pos].code_object = code_object;
    __pyx_code_cache.count++;
    Py_INCREF(code_object);
}

/* AddTraceback */
    #include "compile.h"
#include "frameobject.h"
#include "traceback.h"
#if PY_VERSION_HEX >= 0x030b00a6
  #ifndef Py_BUILD_CORE
    #define Py_BUILD_CORE 1
  #endif
  #include "internal/pycore_frame.h"
#endif
static PyCodeObject* __Pyx_CreateCodeObjectForTraceback(
            const char *funcname, int c_line,
            int py_line, const char *filename) {
    PyCodeObject *py_code = NULL;
    PyObject *py_funcname = NULL;
    #if PY_MAJOR_VERSION < 3
    PyObject *py_srcfile = NULL;
    py_srcfile = PyString_FromString(filename);
    if (!py_srcfile) goto bad;
    #endif
    if (c_line) {
        #if PY_MAJOR_VERSION < 3
        py_funcname = PyString_FromFormat( "%s (%s:%d)", funcname, __pyx_cfilenm, c_line);
        if (!py_funcname) goto bad;
        #else
        py_funcname = PyUnicode_FromFormat( "%s (%s:%d)", funcname, __pyx_cfilenm, c_line);
        if (!py_funcname) goto bad;
        funcname = PyUnicode_AsUTF8(py_funcname);
        if (!funcname) goto bad;
        #endif
    }
    else {
        #if PY_MAJOR_VERSION < 3
        py_funcname = PyString_FromString(funcname);
        if (!py_funcname) goto bad;
        #endif
    }
    #if PY_MAJOR_VERSION < 3
    py_code = __Pyx_PyCode_New(
        0,
        0,
        0,
        0,
        0,
        __pyx_empty_bytes, /*PyObject *code,*/
        __pyx_empty_tuple, /*PyObject *consts,*/
        __pyx_empty_tuple, /*PyObject *names,*/
        __pyx_empty_tuple, /*PyObject *varnames,*/
        __pyx_empty_tuple, /*PyObject *freevars,*/
        __pyx_empty_tuple, /*PyObject *cellvars,*/
        py_srcfile,   /*PyObject *filename,*/
        py_funcname,  /*PyObject *name,*/
        py_line,
        __pyx_empty_bytes  /*PyObject *lnotab*/
    );
    Py_DECREF(py_srcfile);
    #else
    py_code = PyCode_NewEmpty(filename, funcname, py_line);
    #endif
    Py_XDECREF(py_funcname);  // XDECREF since it's only set on Py3 if cline
    return py_code;
bad:
    Py_XDECREF(py_funcname);
    #if PY_MAJOR_VERSION < 3
    Py_XDECREF(py_srcfile);
    #endif
    return NULL;
}
static void __Pyx_AddTraceback(const char *funcname, int c_line,
                               int py_line, const char *filename) {
    PyCodeObject *py_code = 0;
    PyFrameObject *py_frame = 0;
    PyThreadState *tstate = __Pyx_PyThreadState_Current;
    PyObject *ptype, *pvalue, *ptraceback;
    if (c_line) {
        c_line = __Pyx_CLineForTraceback(tstate, c_line);
    }
    py_code = __pyx_find_code_object(c_line ? -c_line : py_line);
    if (!py_code) {
        __Pyx_ErrFetchInState(tstate, &ptype, &pvalue, &ptraceback);
        py_code = __Pyx_CreateCodeObjectForTraceback(
            funcname, c_line, py_line, filename);
        if (!py_code) {
            /* If the code object creation fails, then we should clear the
               fetched exception references and propagate the new exception */
            Py_XDECREF(ptype);
            Py_XDECREF(pvalue);
            Py_XDECREF(ptraceback);
            goto bad;
        }
        __Pyx_ErrRestoreInState(tstate, ptype, pvalue, ptraceback);
        __pyx_insert_code_object(c_line ? -c_line : py_line, py_code);
    }
    py_frame = PyFrame_New(
        tstate,            /*PyThreadState *tstate,*/
        py_code,           /*PyCodeObject *code,*/
        __pyx_d,    /*PyObject *globals,*/
        0                  /*PyObject *locals*/
    );
    if (!py_frame) goto bad;
    __Pyx_PyFrame_SetLineNumber(py_frame, py_line);
    PyTraceBack_Here(py_frame);
bad:
    Py_XDECREF(py_code);
    Py_XDECREF(py_frame);
}

/* CIntFromPyVerify */
    #define __PYX_VERIFY_RETURN_INT(target_type, func_type, func_value)\
    __PYX__VERIFY_RETURN_INT(target_type, func_type, func_value, 0)
#define __PYX_VERIFY_RETURN_INT_EXC(target_type, func_type, func_value)\
    __PYX__VERIFY_RETURN_INT(target_type, func_type, func_value, 1)
#define __PYX__VERIFY_RETURN_INT(target_type, func_type, func_value, exc)\
    {\
        func_type value = func_value;\
        if (sizeof(target_type) < sizeof(func_type)) {\
            if (unlikely(value != (func_type) (target_type) value)) {\
                func_type zero = 0;\
                if (exc && unlikely(value == (func_type)-1 && PyErr_Occurred()))\
                    return (target_type) -1;\
                if (is_unsigned && unlikely(value < zero))\
                    goto raise_neg_overflow;\
                else\
                    goto raise_overflow;\
            }\
        }\
        return (target_type) value;\
    }

static PyObject* __pyx_convert__to_py_struct__CGL_vec2(struct CGL_vec2 s) {
      PyObject* res;
      PyObject* member;
      res = __Pyx_PyDict_NewPresized(2); if (unlikely(!res)) return NULL;
      member = PyFloat_FromDouble(s.x); if (unlikely(!member)) goto bad;
      if (unlikely(PyDict_SetItem(res, __pyx_n_s_x, member) < 0)) goto bad;
      Py_DECREF(member);
      member = PyFloat_FromDouble(s.y); if (unlikely(!member)) goto bad;
      if (unlikely(PyDict_SetItem(res, __pyx_n_s_y, member) < 0)) goto bad;
      Py_DECREF(member);
      return res;
      bad:
      Py_XDECREF(member);
      Py_DECREF(res);
      return NULL;
    }
    static PyObject* __pyx_convert__to_py_struct__CGL_vec3(struct CGL_vec3 s) {
      PyObject* res;
      PyObject* member;
      res = __Pyx_PyDict_NewPresized(3); if (unlikely(!res)) return NULL;
      member = PyFloat_FromDouble(s.x); if (unlikely(!member)) goto bad;
      if (unlikely(PyDict_SetItem(res, __pyx_n_s_x, member) < 0)) goto bad;
      Py_DECREF(member);
      member = PyFloat_FromDouble(s.y); if (unlikely(!member)) goto bad;
      if (unlikely(PyDict_SetItem(res, __pyx_n_s_y, member) < 0)) goto bad;
      Py_DECREF(member);
      member = PyFloat_FromDouble(s.z); if (unlikely(!member)) goto bad;
      if (unlikely(PyDict_SetItem(res, __pyx_n_s_z, member) < 0)) goto bad;
      Py_DECREF(member);
      return res;
      bad:
      Py_XDECREF(member);
      Py_DECREF(res);
      return NULL;
    }
    static PyObject* __pyx_convert__to_py_struct__CGL_vec4(struct CGL_vec4 s) {
      PyObject* res;
      PyObject* member;
      res = __Pyx_PyDict_NewPresized(4); if (unlikely(!res)) return NULL;
      member = PyFloat_FromDouble(s.x); if (unlikely(!member)) goto bad;
      if (unlikely(PyDict_SetItem(res, __pyx_n_s_x, member) < 0)) goto bad;
      Py_DECREF(member);
      member = PyFloat_FromDouble(s.y); if (unlikely(!member)) goto bad;
      if (unlikely(PyDict_SetItem(res, __pyx_n_s_y, member) < 0)) goto bad;
      Py_DECREF(member);
      member = PyFloat_FromDouble(s.z); if (unlikely(!member)) goto bad;
      if (unlikely(PyDict_SetItem(res, __pyx_n_s_z, member) < 0)) goto bad;
      Py_DECREF(member);
      member = PyFloat_FromDouble(s.w); if (unlikely(!member)) goto bad;
      if (unlikely(PyDict_SetItem(res, __pyx_n_s_w, member) < 0)) goto bad;
      Py_DECREF(member);
      return res;
      bad:
      Py_XDECREF(member);
      Py_DECREF(res);
      return NULL;
    }
    static PyObject* __pyx_convert__to_py_struct__CGL_mat4(struct CGL_mat4 s) {
      PyObject* res;
      PyObject* member;
      res = __Pyx_PyDict_NewPresized(1); if (unlikely(!res)) return NULL;
      member = __Pyx_carray_to_py_CGL_float(s.m, 16); if (unlikely(!member)) goto bad;
      if (unlikely(PyDict_SetItem(res, __pyx_n_s_m, member) < 0)) goto bad;
      Py_DECREF(member);
      return res;
      bad:
      Py_XDECREF(member);
      Py_DECREF(res);
      return NULL;
    }
    static PyObject* __pyx_convert__to_py_struct__CGL_ivec4(struct CGL_ivec4 s) {
      PyObject* res;
      PyObject* member;
      res = __Pyx_PyDict_NewPresized(4); if (unlikely(!res)) return NULL;
      member = __Pyx_PyInt_From_CGL_int(s.x); if (unlikely(!member)) goto bad;
      if (unlikely(PyDict_SetItem(res, __pyx_n_s_x, member) < 0)) goto bad;
      Py_DECREF(member);
      member = __Pyx_PyInt_From_CGL_int(s.y); if (unlikely(!member)) goto bad;
      if (unlikely(PyDict_SetItem(res, __pyx_n_s_y, member) < 0)) goto bad;
      Py_DECREF(member);
      member = __Pyx_PyInt_From_CGL_int(s.z); if (unlikely(!member)) goto bad;
      if (unlikely(PyDict_SetItem(res, __pyx_n_s_z, member) < 0)) goto bad;
      Py_DECREF(member);
      member = __Pyx_PyInt_From_CGL_int(s.w); if (unlikely(!member)) goto bad;
      if (unlikely(PyDict_SetItem(res, __pyx_n_s_w, member) < 0)) goto bad;
      Py_DECREF(member);
      return res;
      bad:
      Py_XDECREF(member);
      Py_DECREF(res);
      return NULL;
    }
    static PyObject* __pyx_convert__to_py_struct__CGL_mesh_vertex(struct CGL_mesh_vertex s) {
      PyObject* res;
      PyObject* member;
      res = __Pyx_PyDict_NewPresized(5); if (unlikely(!res)) return NULL;
      member = __pyx_convert__to_py_struct__CGL_vec4(s.position); if (unlikely(!member)) goto bad;
      if (unlikely(PyDict_SetItem(res, __pyx_n_s_position, member) < 0)) goto bad;
      Py_DECREF(member);
      member = __pyx_convert__to_py_struct__CGL_vec4(s.normal); if (unlikely(!member)) goto bad;
      if (unlikely(PyDict_SetItem(res, __pyx_n_s_normal, member) < 0)) goto bad;
      Py_DECREF(member);
      member = __pyx_convert__to_py_struct__CGL_vec4(s.texture_coordinates); if (unlikely(!member)) goto bad;
      if (unlikely(PyDict_SetItem(res, __pyx_n_s_texture_coordinates, member) < 0)) goto bad;
      Py_DECREF(member);
      member = __pyx_convert__to_py_struct__CGL_vec4(s.bone_wieghts); if (unlikely(!member)) goto bad;
      if (unlikely(PyDict_SetItem(res, __pyx_n_s_bone_wieghts, member) < 0)) goto bad;
      Py_DECREF(member);
      member = __pyx_convert__to_py_struct__CGL_ivec4(s.bone_ids); if (unlikely(!member)) goto bad;
      if (unlikely(PyDict_SetItem(res, __pyx_n_s_bone_ids, member) < 0)) goto bad;
      Py_DECREF(member);
      return res;
      bad:
      Py_XDECREF(member);
      Py_DECREF(res);
      return NULL;
    }
    /* CIntFromPy */
    static CYTHON_INLINE uint64_t __Pyx_PyInt_As_uint64_t(PyObject *x) {
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wconversion"
#endif
    const uint64_t neg_one = (uint64_t) -1, const_zero = (uint64_t) 0;
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic pop
#endif
    const int is_unsigned = neg_one > const_zero;
#if PY_MAJOR_VERSION < 3
    if (likely(PyInt_Check(x))) {
        if (sizeof(uint64_t) < sizeof(long)) {
            __PYX_VERIFY_RETURN_INT(uint64_t, long, PyInt_AS_LONG(x))
        } else {
            long val = PyInt_AS_LONG(x);
            if (is_unsigned && unlikely(val < 0)) {
                goto raise_neg_overflow;
            }
            return (uint64_t) val;
        }
    } else
#endif
    if (likely(PyLong_Check(x))) {
        if (is_unsigned) {
#if CYTHON_USE_PYLONG_INTERNALS
            const digit* digits = ((PyLongObject*)x)->ob_digit;
            switch (Py_SIZE(x)) {
                case  0: return (uint64_t) 0;
                case  1: __PYX_VERIFY_RETURN_INT(uint64_t, digit, digits[0])
                case 2:
                    if (8 * sizeof(uint64_t) > 1 * PyLong_SHIFT) {
                        if (8 * sizeof(unsigned long) > 2 * PyLong_SHIFT) {
                            __PYX_VERIFY_RETURN_INT(uint64_t, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if (8 * sizeof(uint64_t) >= 2 * PyLong_SHIFT) {
                            return (uint64_t) (((((uint64_t)digits[1]) << PyLong_SHIFT) | (uint64_t)digits[0]));
                        }
                    }
                    break;
                case 3:
                    if (8 * sizeof(uint64_t) > 2 * PyLong_SHIFT) {
                        if (8 * sizeof(unsigned long) > 3 * PyLong_SHIFT) {
                            __PYX_VERIFY_RETURN_INT(uint64_t, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if (8 * sizeof(uint64_t) >= 3 * PyLong_SHIFT) {
                            return (uint64_t) (((((((uint64_t)digits[2]) << PyLong_SHIFT) | (uint64_t)digits[1]) << PyLong_SHIFT) | (uint64_t)digits[0]));
                        }
                    }
                    break;
                case 4:
                    if (8 * sizeof(uint64_t) > 3 * PyLong_SHIFT) {
                        if (8 * sizeof(unsigned long) > 4 * PyLong_SHIFT) {
                            __PYX_VERIFY_RETURN_INT(uint64_t, unsigned long, (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if (8 * sizeof(uint64_t) >= 4 * PyLong_SHIFT) {
                            return (uint64_t) (((((((((uint64_t)digits[3]) << PyLong_SHIFT) | (uint64_t)digits[2]) << PyLong_SHIFT) | (uint64_t)digits[1]) << PyLong_SHIFT) | (uint64_t)digits[0]));
                        }
                    }
                    break;
            }
#endif
#if CYTHON_COMPILING_IN_CPYTHON
            if (unlikely(Py_SIZE(x) < 0)) {
                goto raise_neg_overflow;
            }
#else
            {
                int result = PyObject_RichCompareBool(x, Py_False, Py_LT);
                if (unlikely(result < 0))
                    return (uint64_t) -1;
                if (unlikely(result == 1))
                    goto raise_neg_overflow;
            }
#endif
            if (sizeof(uint64_t) <= sizeof(unsigned long)) {
                __PYX_VERIFY_RETURN_INT_EXC(uint64_t, unsigned long, PyLong_AsUnsignedLong(x))
#ifdef HAVE_LONG_LONG
            } else if (sizeof(uint64_t) <= sizeof(unsigned PY_LONG_LONG)) {
                __PYX_VERIFY_RETURN_INT_EXC(uint64_t, unsigned PY_LONG_LONG, PyLong_AsUnsignedLongLong(x))
#endif
            }
        } else {
#if CYTHON_USE_PYLONG_INTERNALS
            const digit* digits = ((PyLongObject*)x)->ob_digit;
            switch (Py_SIZE(x)) {
                case  0: return (uint64_t) 0;
                case -1: __PYX_VERIFY_RETURN_INT(uint64_t, sdigit, (sdigit) (-(sdigit)digits[0]))
                case  1: __PYX_VERIFY_RETURN_INT(uint64_t,  digit, +digits[0])
                case -2:
                    if (8 * sizeof(uint64_t) - 1 > 1 * PyLong_SHIFT) {
                        if (8 * sizeof(unsigned long) > 2 * PyLong_SHIFT) {
                            __PYX_VERIFY_RETURN_INT(uint64_t, long, -(long) (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if (8 * sizeof(uint64_t) - 1 > 2 * PyLong_SHIFT) {
                            return (uint64_t) (((uint64_t)-1)*(((((uint64_t)digits[1]) << PyLong_SHIFT) | (uint64_t)digits[0])));
                        }
                    }
                    break;
                case 2:
                    if (8 * sizeof(uint64_t) > 1 * PyLong_SHIFT) {
                        if (8 * sizeof(unsigned long) > 2 * PyLong_SHIFT) {
                            __PYX_VERIFY_RETURN_INT(uint64_t, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if (8 * sizeof(uint64_t) - 1 > 2 * PyLong_SHIFT) {
                            return (uint64_t) ((((((uint64_t)digits[1]) << PyLong_SHIFT) | (uint64_t)digits[0])));
                        }
                    }
                    break;
                case -3:
                    if (8 * sizeof(uint64_t) - 1 > 2 * PyLong_SHIFT) {
                        if (8 * sizeof(unsigned long) > 3 * PyLong_SHIFT) {
                            __PYX_VERIFY_RETURN_INT(uint64_t, long, -(long) (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if (8 * sizeof(uint64_t) - 1 > 3 * PyLong_SHIFT) {
                            return (uint64_t) (((uint64_t)-1)*(((((((uint64_t)digits[2]) << PyLong_SHIFT) | (uint64_t)digits[1]) << PyLong_SHIFT) | (uint64_t)digits[0])));
                        }
                    }
                    break;
                case 3:
                    if (8 * sizeof(uint64_t) > 2 * PyLong_SHIFT) {
                        if (8 * sizeof(unsigned long) > 3 * PyLong_SHIFT) {
                            __PYX_VERIFY_RETURN_INT(uint64_t, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if (8 * sizeof(uint64_t) - 1 > 3 * PyLong_SHIFT) {
                            return (uint64_t) ((((((((uint64_t)digits[2]) << PyLong_SHIFT) | (uint64_t)digits[1]) << PyLong_SHIFT) | (uint64_t)digits[0])));
                        }
                    }
                    break;
                case -4:
                    if (8 * sizeof(uint64_t) - 1 > 3 * PyLong_SHIFT) {
                        if (8 * sizeof(unsigned long) > 4 * PyLong_SHIFT) {
                            __PYX_VERIFY_RETURN_INT(uint64_t, long, -(long) (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if (8 * sizeof(uint64_t) - 1 > 4 * PyLong_SHIFT) {
                            return (uint64_t) (((uint64_t)-1)*(((((((((uint64_t)digits[3]) << PyLong_SHIFT) | (uint64_t)digits[2]) << PyLong_SHIFT) | (uint64_t)digits[1]) << PyLong_SHIFT) | (uint64_t)digits[0])));
                        }
                    }
                    break;
                case 4:
                    if (8 * sizeof(uint64_t) > 3 * PyLong_SHIFT) {
                        if (8 * sizeof(unsigned long) > 4 * PyLong_SHIFT) {
                            __PYX_VERIFY_RETURN_INT(uint64_t, unsigned long, (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if (8 * sizeof(uint64_t) - 1 > 4 * PyLong_SHIFT) {
                            return (uint64_t) ((((((((((uint64_t)digits[3]) << PyLong_SHIFT) | (uint64_t)digits[2]) << PyLong_SHIFT) | (uint64_t)digits[1]) << PyLong_SHIFT) | (uint64_t)digits[0])));
                        }
                    }
                    break;
            }
#endif
            if (sizeof(uint64_t) <= sizeof(long)) {
                __PYX_VERIFY_RETURN_INT_EXC(uint64_t, long, PyLong_AsLong(x))
#ifdef HAVE_LONG_LONG
            } else if (sizeof(uint64_t) <= sizeof(PY_LONG_LONG)) {
                __PYX_VERIFY_RETURN_INT_EXC(uint64_t, PY_LONG_LONG, PyLong_AsLongLong(x))
#endif
            }
        }
        {
#if CYTHON_COMPILING_IN_PYPY && !defined(_PyLong_AsByteArray)
            PyErr_SetString(PyExc_RuntimeError,
                            "_PyLong_AsByteArray() not available in PyPy, cannot convert large numbers");
#else
            uint64_t val;
            PyObject *v = __Pyx_PyNumber_IntOrLong(x);
 #if PY_MAJOR_VERSION < 3
            if (likely(v) && !PyLong_Check(v)) {
                PyObject *tmp = v;
                v = PyNumber_Long(tmp);
                Py_DECREF(tmp);
            }
 #endif
            if (likely(v)) {
                int one = 1; int is_little = (int)*(unsigned char *)&one;
                unsigned char *bytes = (unsigned char *)&val;
                int ret = _PyLong_AsByteArray((PyLongObject *)v,
                                              bytes, sizeof(val),
                                              is_little, !is_unsigned);
                Py_DECREF(v);
                if (likely(!ret))
                    return val;
            }
#endif
            return (uint64_t) -1;
        }
    } else {
        uint64_t val;
        PyObject *tmp = __Pyx_PyNumber_IntOrLong(x);
        if (!tmp) return (uint64_t) -1;
        val = __Pyx_PyInt_As_uint64_t(tmp);
        Py_DECREF(tmp);
        return val;
    }
raise_overflow:
    PyErr_SetString(PyExc_OverflowError,
        "value too large to convert to uint64_t");
    return (uint64_t) -1;
raise_neg_overflow:
    PyErr_SetString(PyExc_OverflowError,
        "can't convert negative value to uint64_t");
    return (uint64_t) -1;
}

/* CIntToPy */
    static CYTHON_INLINE PyObject* __Pyx_PyInt_From_uint64_t(uint64_t value) {
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wconversion"
#endif
    const uint64_t neg_one = (uint64_t) -1, const_zero = (uint64_t) 0;
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic pop
#endif
    const int is_unsigned = neg_one > const_zero;
    if (is_unsigned) {
        if (sizeof(uint64_t) < sizeof(long)) {
            return PyInt_FromLong((long) value);
        } else if (sizeof(uint64_t) <= sizeof(unsigned long)) {
            return PyLong_FromUnsignedLong((unsigned long) value);
#ifdef HAVE_LONG_LONG
        } else if (sizeof(uint64_t) <= sizeof(unsigned PY_LONG_LONG)) {
            return PyLong_FromUnsignedLongLong((unsigned PY_LONG_LONG) value);
#endif
        }
    } else {
        if (sizeof(uint64_t) <= sizeof(long)) {
            return PyInt_FromLong((long) value);
#ifdef HAVE_LONG_LONG
        } else if (sizeof(uint64_t) <= sizeof(PY_LONG_LONG)) {
            return PyLong_FromLongLong((PY_LONG_LONG) value);
#endif
        }
    }
    {
        int one = 1; int little = (int)*(unsigned char *)&one;
        unsigned char *bytes = (unsigned char *)&value;
        return _PyLong_FromByteArray(bytes, sizeof(uint64_t),
                                     little, !is_unsigned);
    }
}

/* CIntFromPy */
    static CYTHON_INLINE CGL_int __Pyx_PyInt_As_CGL_int(PyObject *x) {
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wconversion"
#endif
    const CGL_int neg_one = (CGL_int) -1, const_zero = (CGL_int) 0;
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic pop
#endif
    const int is_unsigned = neg_one > const_zero;
#if PY_MAJOR_VERSION < 3
    if (likely(PyInt_Check(x))) {
        if (sizeof(CGL_int) < sizeof(long)) {
            __PYX_VERIFY_RETURN_INT(CGL_int, long, PyInt_AS_LONG(x))
        } else {
            long val = PyInt_AS_LONG(x);
            if (is_unsigned && unlikely(val < 0)) {
                goto raise_neg_overflow;
            }
            return (CGL_int) val;
        }
    } else
#endif
    if (likely(PyLong_Check(x))) {
        if (is_unsigned) {
#if CYTHON_USE_PYLONG_INTERNALS
            const digit* digits = ((PyLongObject*)x)->ob_digit;
            switch (Py_SIZE(x)) {
                case  0: return (CGL_int) 0;
                case  1: __PYX_VERIFY_RETURN_INT(CGL_int, digit, digits[0])
                case 2:
                    if (8 * sizeof(CGL_int) > 1 * PyLong_SHIFT) {
                        if (8 * sizeof(unsigned long) > 2 * PyLong_SHIFT) {
                            __PYX_VERIFY_RETURN_INT(CGL_int, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if (8 * sizeof(CGL_int) >= 2 * PyLong_SHIFT) {
                            return (CGL_int) (((((CGL_int)digits[1]) << PyLong_SHIFT) | (CGL_int)digits[0]));
                        }
                    }
                    break;
                case 3:
                    if (8 * sizeof(CGL_int) > 2 * PyLong_SHIFT) {
                        if (8 * sizeof(unsigned long) > 3 * PyLong_SHIFT) {
                            __PYX_VERIFY_RETURN_INT(CGL_int, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if (8 * sizeof(CGL_int) >= 3 * PyLong_SHIFT) {
                            return (CGL_int) (((((((CGL_int)digits[2]) << PyLong_SHIFT) | (CGL_int)digits[1]) << PyLong_SHIFT) | (CGL_int)digits[0]));
                        }
                    }
                    break;
                case 4:
                    if (8 * sizeof(CGL_int) > 3 * PyLong_SHIFT) {
                        if (8 * sizeof(unsigned long) > 4 * PyLong_SHIFT) {
                            __PYX_VERIFY_RETURN_INT(CGL_int, unsigned long, (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if (8 * sizeof(CGL_int) >= 4 * PyLong_SHIFT) {
                            return (CGL_int) (((((((((CGL_int)digits[3]) << PyLong_SHIFT) | (CGL_int)digits[2]) << PyLong_SHIFT) | (CGL_int)digits[1]) << PyLong_SHIFT) | (CGL_int)digits[0]));
                        }
                    }
                    break;
            }
#endif
#if CYTHON_COMPILING_IN_CPYTHON
            if (unlikely(Py_SIZE(x) < 0)) {
                goto raise_neg_overflow;
            }
#else
            {
                int result = PyObject_RichCompareBool(x, Py_False, Py_LT);
                if (unlikely(result < 0))
                    return (CGL_int) -1;
                if (unlikely(result == 1))
                    goto raise_neg_overflow;
            }
#endif
            if (sizeof(CGL_int) <= sizeof(unsigned long)) {
                __PYX_VERIFY_RETURN_INT_EXC(CGL_int, unsigned long, PyLong_AsUnsignedLong(x))
#ifdef HAVE_LONG_LONG
            } else if (sizeof(CGL_int) <= sizeof(unsigned PY_LONG_LONG)) {
                __PYX_VERIFY_RETURN_INT_EXC(CGL_int, unsigned PY_LONG_LONG, PyLong_AsUnsignedLongLong(x))
#endif
            }
        } else {
#if CYTHON_USE_PYLONG_INTERNALS
            const digit* digits = ((PyLongObject*)x)->ob_digit;
            switch (Py_SIZE(x)) {
                case  0: return (CGL_int) 0;
                case -1: __PYX_VERIFY_RETURN_INT(CGL_int, sdigit, (sdigit) (-(sdigit)digits[0]))
                case  1: __PYX_VERIFY_RETURN_INT(CGL_int,  digit, +digits[0])
                case -2:
                    if (8 * sizeof(CGL_int) - 1 > 1 * PyLong_SHIFT) {
                        if (8 * sizeof(unsigned long) > 2 * PyLong_SHIFT) {
                            __PYX_VERIFY_RETURN_INT(CGL_int, long, -(long) (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if (8 * sizeof(CGL_int) - 1 > 2 * PyLong_SHIFT) {
                            return (CGL_int) (((CGL_int)-1)*(((((CGL_int)digits[1]) << PyLong_SHIFT) | (CGL_int)digits[0])));
                        }
                    }
                    break;
                case 2:
                    if (8 * sizeof(CGL_int) > 1 * PyLong_SHIFT) {
                        if (8 * sizeof(unsigned long) > 2 * PyLong_SHIFT) {
                            __PYX_VERIFY_RETURN_INT(CGL_int, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if (8 * sizeof(CGL_int) - 1 > 2 * PyLong_SHIFT) {
                            return (CGL_int) ((((((CGL_int)digits[1]) << PyLong_SHIFT) | (CGL_int)digits[0])));
                        }
                    }
                    break;
                case -3:
                    if (8 * sizeof(CGL_int) - 1 > 2 * PyLong_SHIFT) {
                        if (8 * sizeof(unsigned long) > 3 * PyLong_SHIFT) {
                            __PYX_VERIFY_RETURN_INT(CGL_int, long, -(long) (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if (8 * sizeof(CGL_int) - 1 > 3 * PyLong_SHIFT) {
                            return (CGL_int) (((CGL_int)-1)*(((((((CGL_int)digits[2]) << PyLong_SHIFT) | (CGL_int)digits[1]) << PyLong_SHIFT) | (CGL_int)digits[0])));
                        }
                    }
                    break;
                case 3:
                    if (8 * sizeof(CGL_int) > 2 * PyLong_SHIFT) {
                        if (8 * sizeof(unsigned long) > 3 * PyLong_SHIFT) {
                            __PYX_VERIFY_RETURN_INT(CGL_int, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if (8 * sizeof(CGL_int) - 1 > 3 * PyLong_SHIFT) {
                            return (CGL_int) ((((((((CGL_int)digits[2]) << PyLong_SHIFT) | (CGL_int)digits[1]) << PyLong_SHIFT) | (CGL_int)digits[0])));
                        }
                    }
                    break;
                case -4:
                    if (8 * sizeof(CGL_int) - 1 > 3 * PyLong_SHIFT) {
                        if (8 * sizeof(unsigned long) > 4 * PyLong_SHIFT) {
                            __PYX_VERIFY_RETURN_INT(CGL_int, long, -(long) (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if (8 * sizeof(CGL_int) - 1 > 4 * PyLong_SHIFT) {
                            return (CGL_int) (((CGL_int)-1)*(((((((((CGL_int)digits[3]) << PyLong_SHIFT) | (CGL_int)digits[2]) << PyLong_SHIFT) | (CGL_int)digits[1]) << PyLong_SHIFT) | (CGL_int)digits[0])));
                        }
                    }
                    break;
                case 4:
                    if (8 * sizeof(CGL_int) > 3 * PyLong_SHIFT) {
                        if (8 * sizeof(unsigned long) > 4 * PyLong_SHIFT) {
                            __PYX_VERIFY_RETURN_INT(CGL_int, unsigned long, (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if (8 * sizeof(CGL_int) - 1 > 4 * PyLong_SHIFT) {
                            return (CGL_int) ((((((((((CGL_int)digits[3]) << PyLong_SHIFT) | (CGL_int)digits[2]) << PyLong_SHIFT) | (CGL_int)digits[1]) << PyLong_SHIFT) | (CGL_int)digits[0])));
                        }
                    }
                    break;
            }
#endif
            if (sizeof(CGL_int) <= sizeof(long)) {
                __PYX_VERIFY_RETURN_INT_EXC(CGL_int, long, PyLong_AsLong(x))
#ifdef HAVE_LONG_LONG
            } else if (sizeof(CGL_int) <= sizeof(PY_LONG_LONG)) {
                __PYX_VERIFY_RETURN_INT_EXC(CGL_int, PY_LONG_LONG, PyLong_AsLongLong(x))
#endif
            }
        }
        {
#if CYTHON_COMPILING_IN_PYPY && !defined(_PyLong_AsByteArray)
            PyErr_SetString(PyExc_RuntimeError,
                            "_PyLong_AsByteArray() not available in PyPy, cannot convert large numbers");
#else
            CGL_int val;
            PyObject *v = __Pyx_PyNumber_IntOrLong(x);
 #if PY_MAJOR_VERSION < 3
            if (likely(v) && !PyLong_Check(v)) {
                PyObject *tmp = v;
                v = PyNumber_Long(tmp);
                Py_DECREF(tmp);
            }
 #endif
            if (likely(v)) {
                int one = 1; int is_little = (int)*(unsigned char *)&one;
                unsigned char *bytes = (unsigned char *)&val;
                int ret = _PyLong_AsByteArray((PyLongObject *)v,
                                              bytes, sizeof(val),
                                              is_little, !is_unsigned);
                Py_DECREF(v);
                if (likely(!ret))
                    return val;
            }
#endif
            return (CGL_int) -1;
        }
    } else {
        CGL_int val;
        PyObject *tmp = __Pyx_PyNumber_IntOrLong(x);
        if (!tmp) return (CGL_int) -1;
        val = __Pyx_PyInt_As_CGL_int(tmp);
        Py_DECREF(tmp);
        return val;
    }
raise_overflow:
    PyErr_SetString(PyExc_OverflowError,
        "value too large to convert to CGL_int");
    return (CGL_int) -1;
raise_neg_overflow:
    PyErr_SetString(PyExc_OverflowError,
        "can't convert negative value to CGL_int");
    return (CGL_int) -1;
}

/* CIntToPy */
    static CYTHON_INLINE PyObject* __Pyx_PyInt_From_CGL_int(CGL_int value) {
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wconversion"
#endif
    const CGL_int neg_one = (CGL_int) -1, const_zero = (CGL_int) 0;
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic pop
#endif
    const int is_unsigned = neg_one > const_zero;
    if (is_unsigned) {
        if (sizeof(CGL_int) < sizeof(long)) {
            return PyInt_FromLong((long) value);
        } else if (sizeof(CGL_int) <= sizeof(unsigned long)) {
            return PyLong_FromUnsignedLong((unsigned long) value);
#ifdef HAVE_LONG_LONG
        } else if (sizeof(CGL_int) <= sizeof(unsigned PY_LONG_LONG)) {
            return PyLong_FromUnsignedLongLong((unsigned PY_LONG_LONG) value);
#endif
        }
    } else {
        if (sizeof(CGL_int) <= sizeof(long)) {
            return PyInt_FromLong((long) value);
#ifdef HAVE_LONG_LONG
        } else if (sizeof(CGL_int) <= sizeof(PY_LONG_LONG)) {
            return PyLong_FromLongLong((PY_LONG_LONG) value);
#endif
        }
    }
    {
        int one = 1; int little = (int)*(unsigned char *)&one;
        unsigned char *bytes = (unsigned char *)&value;
        return _PyLong_FromByteArray(bytes, sizeof(CGL_int),
                                     little, !is_unsigned);
    }
}

/* CIntToPy */
    static CYTHON_INLINE PyObject* __Pyx_PyInt_From_CGL_ulong(CGL_ulong value) {
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wconversion"
#endif
    const CGL_ulong neg_one = (CGL_ulong) -1, const_zero = (CGL_ulong) 0;
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic pop
#endif
    const int is_unsigned = neg_one > const_zero;
    if (is_unsigned) {
        if (sizeof(CGL_ulong) < sizeof(long)) {
            return PyInt_FromLong((long) value);
        } else if (sizeof(CGL_ulong) <= sizeof(unsigned long)) {
            return PyLong_FromUnsignedLong((unsigned long) value);
#ifdef HAVE_LONG_LONG
        } else if (sizeof(CGL_ulong) <= sizeof(unsigned PY_LONG_LONG)) {
            return PyLong_FromUnsignedLongLong((unsigned PY_LONG_LONG) value);
#endif
        }
    } else {
        if (sizeof(CGL_ulong) <= sizeof(long)) {
            return PyInt_FromLong((long) value);
#ifdef HAVE_LONG_LONG
        } else if (sizeof(CGL_ulong) <= sizeof(PY_LONG_LONG)) {
            return PyLong_FromLongLong((PY_LONG_LONG) value);
#endif
        }
    }
    {
        int one = 1; int little = (int)*(unsigned char *)&one;
        unsigned char *bytes = (unsigned char *)&value;
        return _PyLong_FromByteArray(bytes, sizeof(CGL_ulong),
                                     little, !is_unsigned);
    }
}

/* CIntFromPy */
    static CYTHON_INLINE CGL_uint __Pyx_PyInt_As_CGL_uint(PyObject *x) {
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wconversion"
#endif
    const CGL_uint neg_one = (CGL_uint) -1, const_zero = (CGL_uint) 0;
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic pop
#endif
    const int is_unsigned = neg_one > const_zero;
#if PY_MAJOR_VERSION < 3
    if (likely(PyInt_Check(x))) {
        if (sizeof(CGL_uint) < sizeof(long)) {
            __PYX_VERIFY_RETURN_INT(CGL_uint, long, PyInt_AS_LONG(x))
        } else {
            long val = PyInt_AS_LONG(x);
            if (is_unsigned && unlikely(val < 0)) {
                goto raise_neg_overflow;
            }
            return (CGL_uint) val;
        }
    } else
#endif
    if (likely(PyLong_Check(x))) {
        if (is_unsigned) {
#if CYTHON_USE_PYLONG_INTERNALS
            const digit* digits = ((PyLongObject*)x)->ob_digit;
            switch (Py_SIZE(x)) {
                case  0: return (CGL_uint) 0;
                case  1: __PYX_VERIFY_RETURN_INT(CGL_uint, digit, digits[0])
                case 2:
                    if (8 * sizeof(CGL_uint) > 1 * PyLong_SHIFT) {
                        if (8 * sizeof(unsigned long) > 2 * PyLong_SHIFT) {
                            __PYX_VERIFY_RETURN_INT(CGL_uint, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if (8 * sizeof(CGL_uint) >= 2 * PyLong_SHIFT) {
                            return (CGL_uint) (((((CGL_uint)digits[1]) << PyLong_SHIFT) | (CGL_uint)digits[0]));
                        }
                    }
                    break;
                case 3:
                    if (8 * sizeof(CGL_uint) > 2 * PyLong_SHIFT) {
                        if (8 * sizeof(unsigned long) > 3 * PyLong_SHIFT) {
                            __PYX_VERIFY_RETURN_INT(CGL_uint, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if (8 * sizeof(CGL_uint) >= 3 * PyLong_SHIFT) {
                            return (CGL_uint) (((((((CGL_uint)digits[2]) << PyLong_SHIFT) | (CGL_uint)digits[1]) << PyLong_SHIFT) | (CGL_uint)digits[0]));
                        }
                    }
                    break;
                case 4:
                    if (8 * sizeof(CGL_uint) > 3 * PyLong_SHIFT) {
                        if (8 * sizeof(unsigned long) > 4 * PyLong_SHIFT) {
                            __PYX_VERIFY_RETURN_INT(CGL_uint, unsigned long, (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if (8 * sizeof(CGL_uint) >= 4 * PyLong_SHIFT) {
                            return (CGL_uint) (((((((((CGL_uint)digits[3]) << PyLong_SHIFT) | (CGL_uint)digits[2]) << PyLong_SHIFT) | (CGL_uint)digits[1]) << PyLong_SHIFT) | (CGL_uint)digits[0]));
                        }
                    }
                    break;
            }
#endif
#if CYTHON_COMPILING_IN_CPYTHON
            if (unlikely(Py_SIZE(x) < 0)) {
                goto raise_neg_overflow;
            }
#else
            {
                int result = PyObject_RichCompareBool(x, Py_False, Py_LT);
                if (unlikely(result < 0))
                    return (CGL_uint) -1;
                if (unlikely(result == 1))
                    goto raise_neg_overflow;
            }
#endif
            if (sizeof(CGL_uint) <= sizeof(unsigned long)) {
                __PYX_VERIFY_RETURN_INT_EXC(CGL_uint, unsigned long, PyLong_AsUnsignedLong(x))
#ifdef HAVE_LONG_LONG
            } else if (sizeof(CGL_uint) <= sizeof(unsigned PY_LONG_LONG)) {
                __PYX_VERIFY_RETURN_INT_EXC(CGL_uint, unsigned PY_LONG_LONG, PyLong_AsUnsignedLongLong(x))
#endif
            }
        } else {
#if CYTHON_USE_PYLONG_INTERNALS
            const digit* digits = ((PyLongObject*)x)->ob_digit;
            switch (Py_SIZE(x)) {
                case  0: return (CGL_uint) 0;
                case -1: __PYX_VERIFY_RETURN_INT(CGL_uint, sdigit, (sdigit) (-(sdigit)digits[0]))
                case  1: __PYX_VERIFY_RETURN_INT(CGL_uint,  digit, +digits[0])
                case -2:
                    if (8 * sizeof(CGL_uint) - 1 > 1 * PyLong_SHIFT) {
                        if (8 * sizeof(unsigned long) > 2 * PyLong_SHIFT) {
                            __PYX_VERIFY_RETURN_INT(CGL_uint, long, -(long) (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if (8 * sizeof(CGL_uint) - 1 > 2 * PyLong_SHIFT) {
                            return (CGL_uint) (((CGL_uint)-1)*(((((CGL_uint)digits[1]) << PyLong_SHIFT) | (CGL_uint)digits[0])));
                        }
                    }
                    break;
                case 2:
                    if (8 * sizeof(CGL_uint) > 1 * PyLong_SHIFT) {
                        if (8 * sizeof(unsigned long) > 2 * PyLong_SHIFT) {
                            __PYX_VERIFY_RETURN_INT(CGL_uint, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if (8 * sizeof(CGL_uint) - 1 > 2 * PyLong_SHIFT) {
                            return (CGL_uint) ((((((CGL_uint)digits[1]) << PyLong_SHIFT) | (CGL_uint)digits[0])));
                        }
                    }
                    break;
                case -3:
                    if (8 * sizeof(CGL_uint) - 1 > 2 * PyLong_SHIFT) {
                        if (8 * sizeof(unsigned long) > 3 * PyLong_SHIFT) {
                            __PYX_VERIFY_RETURN_INT(CGL_uint, long, -(long) (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if (8 * sizeof(CGL_uint) - 1 > 3 * PyLong_SHIFT) {
                            return (CGL_uint) (((CGL_uint)-1)*(((((((CGL_uint)digits[2]) << PyLong_SHIFT) | (CGL_uint)digits[1]) << PyLong_SHIFT) | (CGL_uint)digits[0])));
                        }
                    }
                    break;
                case 3:
                    if (8 * sizeof(CGL_uint) > 2 * PyLong_SHIFT) {
                        if (8 * sizeof(unsigned long) > 3 * PyLong_SHIFT) {
                            __PYX_VERIFY_RETURN_INT(CGL_uint, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if (8 * sizeof(CGL_uint) - 1 > 3 * PyLong_SHIFT) {
                            return (CGL_uint) ((((((((CGL_uint)digits[2]) << PyLong_SHIFT) | (CGL_uint)digits[1]) << PyLong_SHIFT) | (CGL_uint)digits[0])));
                        }
                    }
                    break;
                case -4:
                    if (8 * sizeof(CGL_uint) - 1 > 3 * PyLong_SHIFT) {
                        if (8 * sizeof(unsigned long) > 4 * PyLong_SHIFT) {
                            __PYX_VERIFY_RETURN_INT(CGL_uint, long, -(long) (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if (8 * sizeof(CGL_uint) - 1 > 4 * PyLong_SHIFT) {
                            return (CGL_uint) (((CGL_uint)-1)*(((((((((CGL_uint)digits[3]) << PyLong_SHIFT) | (CGL_uint)digits[2]) << PyLong_SHIFT) | (CGL_uint)digits[1]) << PyLong_SHIFT) | (CGL_uint)digits[0])));
                        }
                    }
                    break;
                case 4:
                    if (8 * sizeof(CGL_uint) > 3 * PyLong_SHIFT) {
                        if (8 * sizeof(unsigned long) > 4 * PyLong_SHIFT) {
                            __PYX_VERIFY_RETURN_INT(CGL_uint, unsigned long, (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if (8 * sizeof(CGL_uint) - 1 > 4 * PyLong_SHIFT) {
                            return (CGL_uint) ((((((((((CGL_uint)digits[3]) << PyLong_SHIFT) | (CGL_uint)digits[2]) << PyLong_SHIFT) | (CGL_uint)digits[1]) << PyLong_SHIFT) | (CGL_uint)digits[0])));
                        }
                    }
                    break;
            }
#endif
            if (sizeof(CGL_uint) <= sizeof(long)) {
                __PYX_VERIFY_RETURN_INT_EXC(CGL_uint, long, PyLong_AsLong(x))
#ifdef HAVE_LONG_LONG
            } else if (sizeof(CGL_uint) <= sizeof(PY_LONG_LONG)) {
                __PYX_VERIFY_RETURN_INT_EXC(CGL_uint, PY_LONG_LONG, PyLong_AsLongLong(x))
#endif
            }
        }
        {
#if CYTHON_COMPILING_IN_PYPY && !defined(_PyLong_AsByteArray)
            PyErr_SetString(PyExc_RuntimeError,
                            "_PyLong_AsByteArray() not available in PyPy, cannot convert large numbers");
#else
            CGL_uint val;
            PyObject *v = __Pyx_PyNumber_IntOrLong(x);
 #if PY_MAJOR_VERSION < 3
            if (likely(v) && !PyLong_Check(v)) {
                PyObject *tmp = v;
                v = PyNumber_Long(tmp);
                Py_DECREF(tmp);
            }
 #endif
            if (likely(v)) {
                int one = 1; int is_little = (int)*(unsigned char *)&one;
                unsigned char *bytes = (unsigned char *)&val;
                int ret = _PyLong_AsByteArray((PyLongObject *)v,
                                              bytes, sizeof(val),
                                              is_little, !is_unsigned);
                Py_DECREF(v);
                if (likely(!ret))
                    return val;
            }
#endif
            return (CGL_uint) -1;
        }
    } else {
        CGL_uint val;
        PyObject *tmp = __Pyx_PyNumber_IntOrLong(x);
        if (!tmp) return (CGL_uint) -1;
        val = __Pyx_PyInt_As_CGL_uint(tmp);
        Py_DECREF(tmp);
        return val;
    }
raise_overflow:
    PyErr_SetString(PyExc_OverflowError,
        "value too large to convert to CGL_uint");
    return (CGL_uint) -1;
raise_neg_overflow:
    PyErr_SetString(PyExc_OverflowError,
        "can't convert negative value to CGL_uint");
    return (CGL_uint) -1;
}

/* CIntToPy */
    static CYTHON_INLINE PyObject* __Pyx_PyInt_From_CGL_uint(CGL_uint value) {
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wconversion"
#endif
    const CGL_uint neg_one = (CGL_uint) -1, const_zero = (CGL_uint) 0;
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic pop
#endif
    const int is_unsigned = neg_one > const_zero;
    if (is_unsigned) {
        if (sizeof(CGL_uint) < sizeof(long)) {
            return PyInt_FromLong((long) value);
        } else if (sizeof(CGL_uint) <= sizeof(unsigned long)) {
            return PyLong_FromUnsignedLong((unsigned long) value);
#ifdef HAVE_LONG_LONG
        } else if (sizeof(CGL_uint) <= sizeof(unsigned PY_LONG_LONG)) {
            return PyLong_FromUnsignedLongLong((unsigned PY_LONG_LONG) value);
#endif
        }
    } else {
        if (sizeof(CGL_uint) <= sizeof(long)) {
            return PyInt_FromLong((long) value);
#ifdef HAVE_LONG_LONG
        } else if (sizeof(CGL_uint) <= sizeof(PY_LONG_LONG)) {
            return PyLong_FromLongLong((PY_LONG_LONG) value);
#endif
        }
    }
    {
        int one = 1; int little = (int)*(unsigned char *)&one;
        unsigned char *bytes = (unsigned char *)&value;
        return _PyLong_FromByteArray(bytes, sizeof(CGL_uint),
                                     little, !is_unsigned);
    }
}

/* CIntFromPy */
    static CYTHON_INLINE uint8_t __Pyx_PyInt_As_uint8_t(PyObject *x) {
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wconversion"
#endif
    const uint8_t neg_one = (uint8_t) -1, const_zero = (uint8_t) 0;
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic pop
#endif
    const int is_unsigned = neg_one > const_zero;
#if PY_MAJOR_VERSION < 3
    if (likely(PyInt_Check(x))) {
        if (sizeof(uint8_t) < sizeof(long)) {
            __PYX_VERIFY_RETURN_INT(uint8_t, long, PyInt_AS_LONG(x))
        } else {
            long val = PyInt_AS_LONG(x);
            if (is_unsigned && unlikely(val < 0)) {
                goto raise_neg_overflow;
            }
            return (uint8_t) val;
        }
    } else
#endif
    if (likely(PyLong_Check(x))) {
        if (is_unsigned) {
#if CYTHON_USE_PYLONG_INTERNALS
            const digit* digits = ((PyLongObject*)x)->ob_digit;
            switch (Py_SIZE(x)) {
                case  0: return (uint8_t) 0;
                case  1: __PYX_VERIFY_RETURN_INT(uint8_t, digit, digits[0])
                case 2:
                    if (8 * sizeof(uint8_t) > 1 * PyLong_SHIFT) {
                        if (8 * sizeof(unsigned long) > 2 * PyLong_SHIFT) {
                            __PYX_VERIFY_RETURN_INT(uint8_t, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if (8 * sizeof(uint8_t) >= 2 * PyLong_SHIFT) {
                            return (uint8_t) (((((uint8_t)digits[1]) << PyLong_SHIFT) | (uint8_t)digits[0]));
                        }
                    }
                    break;
                case 3:
                    if (8 * sizeof(uint8_t) > 2 * PyLong_SHIFT) {
                        if (8 * sizeof(unsigned long) > 3 * PyLong_SHIFT) {
                            __PYX_VERIFY_RETURN_INT(uint8_t, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if (8 * sizeof(uint8_t) >= 3 * PyLong_SHIFT) {
                            return (uint8_t) (((((((uint8_t)digits[2]) << PyLong_SHIFT) | (uint8_t)digits[1]) << PyLong_SHIFT) | (uint8_t)digits[0]));
                        }
                    }
                    break;
                case 4:
                    if (8 * sizeof(uint8_t) > 3 * PyLong_SHIFT) {
                        if (8 * sizeof(unsigned long) > 4 * PyLong_SHIFT) {
                            __PYX_VERIFY_RETURN_INT(uint8_t, unsigned long, (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if (8 * sizeof(uint8_t) >= 4 * PyLong_SHIFT) {
                            return (uint8_t) (((((((((uint8_t)digits[3]) << PyLong_SHIFT) | (uint8_t)digits[2]) << PyLong_SHIFT) | (uint8_t)digits[1]) << PyLong_SHIFT) | (uint8_t)digits[0]));
                        }
                    }
                    break;
            }
#endif
#if CYTHON_COMPILING_IN_CPYTHON
            if (unlikely(Py_SIZE(x) < 0)) {
                goto raise_neg_overflow;
            }
#else
            {
                int result = PyObject_RichCompareBool(x, Py_False, Py_LT);
                if (unlikely(result < 0))
                    return (uint8_t) -1;
                if (unlikely(result == 1))
                    goto raise_neg_overflow;
            }
#endif
            if (sizeof(uint8_t) <= sizeof(unsigned long)) {
                __PYX_VERIFY_RETURN_INT_EXC(uint8_t, unsigned long, PyLong_AsUnsignedLong(x))
#ifdef HAVE_LONG_LONG
            } else if (sizeof(uint8_t) <= sizeof(unsigned PY_LONG_LONG)) {
                __PYX_VERIFY_RETURN_INT_EXC(uint8_t, unsigned PY_LONG_LONG, PyLong_AsUnsignedLongLong(x))
#endif
            }
        } else {
#if CYTHON_USE_PYLONG_INTERNALS
            const digit* digits = ((PyLongObject*)x)->ob_digit;
            switch (Py_SIZE(x)) {
                case  0: return (uint8_t) 0;
                case -1: __PYX_VERIFY_RETURN_INT(uint8_t, sdigit, (sdigit) (-(sdigit)digits[0]))
                case  1: __PYX_VERIFY_RETURN_INT(uint8_t,  digit, +digits[0])
                case -2:
                    if (8 * sizeof(uint8_t) - 1 > 1 * PyLong_SHIFT) {
                        if (8 * sizeof(unsigned long) > 2 * PyLong_SHIFT) {
                            __PYX_VERIFY_RETURN_INT(uint8_t, long, -(long) (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if (8 * sizeof(uint8_t) - 1 > 2 * PyLong_SHIFT) {
                            return (uint8_t) (((uint8_t)-1)*(((((uint8_t)digits[1]) << PyLong_SHIFT) | (uint8_t)digits[0])));
                        }
                    }
                    break;
                case 2:
                    if (8 * sizeof(uint8_t) > 1 * PyLong_SHIFT) {
                        if (8 * sizeof(unsigned long) > 2 * PyLong_SHIFT) {
                            __PYX_VERIFY_RETURN_INT(uint8_t, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if (8 * sizeof(uint8_t) - 1 > 2 * PyLong_SHIFT) {
                            return (uint8_t) ((((((uint8_t)digits[1]) << PyLong_SHIFT) | (uint8_t)digits[0])));
                        }
                    }
                    break;
                case -3:
                    if (8 * sizeof(uint8_t) - 1 > 2 * PyLong_SHIFT) {
                        if (8 * sizeof(unsigned long) > 3 * PyLong_SHIFT) {
                            __PYX_VERIFY_RETURN_INT(uint8_t, long, -(long) (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if (8 * sizeof(uint8_t) - 1 > 3 * PyLong_SHIFT) {
                            return (uint8_t) (((uint8_t)-1)*(((((((uint8_t)digits[2]) << PyLong_SHIFT) | (uint8_t)digits[1]) << PyLong_SHIFT) | (uint8_t)digits[0])));
                        }
                    }
                    break;
                case 3:
                    if (8 * sizeof(uint8_t) > 2 * PyLong_SHIFT) {
                        if (8 * sizeof(unsigned long) > 3 * PyLong_SHIFT) {
                            __PYX_VERIFY_RETURN_INT(uint8_t, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if (8 * sizeof(uint8_t) - 1 > 3 * PyLong_SHIFT) {
                            return (uint8_t) ((((((((uint8_t)digits[2]) << PyLong_SHIFT) | (uint8_t)digits[1]) << PyLong_SHIFT) | (uint8_t)digits[0])));
                        }
                    }
                    break;
                case -4:
                    if (8 * sizeof(uint8_t) - 1 > 3 * PyLong_SHIFT) {
                        if (8 * sizeof(unsigned long) > 4 * PyLong_SHIFT) {
                            __PYX_VERIFY_RETURN_INT(uint8_t, long, -(long) (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if (8 * sizeof(uint8_t) - 1 > 4 * PyLong_SHIFT) {
                            return (uint8_t) (((uint8_t)-1)*(((((((((uint8_t)digits[3]) << PyLong_SHIFT) | (uint8_t)digits[2]) << PyLong_SHIFT) | (uint8_t)digits[1]) << PyLong_SHIFT) | (uint8_t)digits[0])));
                        }
                    }
                    break;
                case 4:
                    if (8 * sizeof(uint8_t) > 3 * PyLong_SHIFT) {
                        if (8 * sizeof(unsigned long) > 4 * PyLong_SHIFT) {
                            __PYX_VERIFY_RETURN_INT(uint8_t, unsigned long, (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if (8 * sizeof(uint8_t) - 1 > 4 * PyLong_SHIFT) {
                            return (uint8_t) ((((((((((uint8_t)digits[3]) << PyLong_SHIFT) | (uint8_t)digits[2]) << PyLong_SHIFT) | (uint8_t)digits[1]) << PyLong_SHIFT) | (uint8_t)digits[0])));
                        }
                    }
                    break;
            }
#endif
            if (sizeof(uint8_t) <= sizeof(long)) {
                __PYX_VERIFY_RETURN_INT_EXC(uint8_t, long, PyLong_AsLong(x))
#ifdef HAVE_LONG_LONG
            } else if (sizeof(uint8_t) <= sizeof(PY_LONG_LONG)) {
                __PYX_VERIFY_RETURN_INT_EXC(uint8_t, PY_LONG_LONG, PyLong_AsLongLong(x))
#endif
            }
        }
        {
#if CYTHON_COMPILING_IN_PYPY && !defined(_PyLong_AsByteArray)
            PyErr_SetString(PyExc_RuntimeError,
                            "_PyLong_AsByteArray() not available in PyPy, cannot convert large numbers");
#else
            uint8_t val;
            PyObject *v = __Pyx_PyNumber_IntOrLong(x);
 #if PY_MAJOR_VERSION < 3
            if (likely(v) && !PyLong_Check(v)) {
                PyObject *tmp = v;
                v = PyNumber_Long(tmp);
                Py_DECREF(tmp);
            }
 #endif
            if (likely(v)) {
                int one = 1; int is_little = (int)*(unsigned char *)&one;
                unsigned char *bytes = (unsigned char *)&val;
                int ret = _PyLong_AsByteArray((PyLongObject *)v,
                                              bytes, sizeof(val),
                                              is_little, !is_unsigned);
                Py_DECREF(v);
                if (likely(!ret))
                    return val;
            }
#endif
            return (uint8_t) -1;
        }
    } else {
        uint8_t val;
        PyObject *tmp = __Pyx_PyNumber_IntOrLong(x);
        if (!tmp) return (uint8_t) -1;
        val = __Pyx_PyInt_As_uint8_t(tmp);
        Py_DECREF(tmp);
        return val;
    }
raise_overflow:
    PyErr_SetString(PyExc_OverflowError,
        "value too large to convert to uint8_t");
    return (uint8_t) -1;
raise_neg_overflow:
    PyErr_SetString(PyExc_OverflowError,
        "can't convert negative value to uint8_t");
    return (uint8_t) -1;
}

/* CIntToPy */
    static CYTHON_INLINE PyObject* __Pyx_PyInt_From_long(long value) {
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wconversion"
#endif
    const long neg_one = (long) -1, const_zero = (long) 0;
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic pop
#endif
    const int is_unsigned = neg_one > const_zero;
    if (is_unsigned) {
        if (sizeof(long) < sizeof(long)) {
            return PyInt_FromLong((long) value);
        } else if (sizeof(long) <= sizeof(unsigned long)) {
            return PyLong_FromUnsignedLong((unsigned long) value);
#ifdef HAVE_LONG_LONG
        } else if (sizeof(long) <= sizeof(unsigned PY_LONG_LONG)) {
            return PyLong_FromUnsignedLongLong((unsigned PY_LONG_LONG) value);
#endif
        }
    } else {
        if (sizeof(long) <= sizeof(long)) {
            return PyInt_FromLong((long) value);
#ifdef HAVE_LONG_LONG
        } else if (sizeof(long) <= sizeof(PY_LONG_LONG)) {
            return PyLong_FromLongLong((PY_LONG_LONG) value);
#endif
        }
    }
    {
        int one = 1; int little = (int)*(unsigned char *)&one;
        unsigned char *bytes = (unsigned char *)&value;
        return _PyLong_FromByteArray(bytes, sizeof(long),
                                     little, !is_unsigned);
    }
}

/* CIntFromPy */
    static CYTHON_INLINE CGL_byte __Pyx_PyInt_As_CGL_byte(PyObject *x) {
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wconversion"
#endif
    const CGL_byte neg_one = (CGL_byte) -1, const_zero = (CGL_byte) 0;
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic pop
#endif
    const int is_unsigned = neg_one > const_zero;
#if PY_MAJOR_VERSION < 3
    if (likely(PyInt_Check(x))) {
        if (sizeof(CGL_byte) < sizeof(long)) {
            __PYX_VERIFY_RETURN_INT(CGL_byte, long, PyInt_AS_LONG(x))
        } else {
            long val = PyInt_AS_LONG(x);
            if (is_unsigned && unlikely(val < 0)) {
                goto raise_neg_overflow;
            }
            return (CGL_byte) val;
        }
    } else
#endif
    if (likely(PyLong_Check(x))) {
        if (is_unsigned) {
#if CYTHON_USE_PYLONG_INTERNALS
            const digit* digits = ((PyLongObject*)x)->ob_digit;
            switch (Py_SIZE(x)) {
                case  0: return (CGL_byte) 0;
                case  1: __PYX_VERIFY_RETURN_INT(CGL_byte, digit, digits[0])
                case 2:
                    if (8 * sizeof(CGL_byte) > 1 * PyLong_SHIFT) {
                        if (8 * sizeof(unsigned long) > 2 * PyLong_SHIFT) {
                            __PYX_VERIFY_RETURN_INT(CGL_byte, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if (8 * sizeof(CGL_byte) >= 2 * PyLong_SHIFT) {
                            return (CGL_byte) (((((CGL_byte)digits[1]) << PyLong_SHIFT) | (CGL_byte)digits[0]));
                        }
                    }
                    break;
                case 3:
                    if (8 * sizeof(CGL_byte) > 2 * PyLong_SHIFT) {
                        if (8 * sizeof(unsigned long) > 3 * PyLong_SHIFT) {
                            __PYX_VERIFY_RETURN_INT(CGL_byte, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if (8 * sizeof(CGL_byte) >= 3 * PyLong_SHIFT) {
                            return (CGL_byte) (((((((CGL_byte)digits[2]) << PyLong_SHIFT) | (CGL_byte)digits[1]) << PyLong_SHIFT) | (CGL_byte)digits[0]));
                        }
                    }
                    break;
                case 4:
                    if (8 * sizeof(CGL_byte) > 3 * PyLong_SHIFT) {
                        if (8 * sizeof(unsigned long) > 4 * PyLong_SHIFT) {
                            __PYX_VERIFY_RETURN_INT(CGL_byte, unsigned long, (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if (8 * sizeof(CGL_byte) >= 4 * PyLong_SHIFT) {
                            return (CGL_byte) (((((((((CGL_byte)digits[3]) << PyLong_SHIFT) | (CGL_byte)digits[2]) << PyLong_SHIFT) | (CGL_byte)digits[1]) << PyLong_SHIFT) | (CGL_byte)digits[0]));
                        }
                    }
                    break;
            }
#endif
#if CYTHON_COMPILING_IN_CPYTHON
            if (unlikely(Py_SIZE(x) < 0)) {
                goto raise_neg_overflow;
            }
#else
            {
                int result = PyObject_RichCompareBool(x, Py_False, Py_LT);
                if (unlikely(result < 0))
                    return (CGL_byte) -1;
                if (unlikely(result == 1))
                    goto raise_neg_overflow;
            }
#endif
            if (sizeof(CGL_byte) <= sizeof(unsigned long)) {
                __PYX_VERIFY_RETURN_INT_EXC(CGL_byte, unsigned long, PyLong_AsUnsignedLong(x))
#ifdef HAVE_LONG_LONG
            } else if (sizeof(CGL_byte) <= sizeof(unsigned PY_LONG_LONG)) {
                __PYX_VERIFY_RETURN_INT_EXC(CGL_byte, unsigned PY_LONG_LONG, PyLong_AsUnsignedLongLong(x))
#endif
            }
        } else {
#if CYTHON_USE_PYLONG_INTERNALS
            const digit* digits = ((PyLongObject*)x)->ob_digit;
            switch (Py_SIZE(x)) {
                case  0: return (CGL_byte) 0;
                case -1: __PYX_VERIFY_RETURN_INT(CGL_byte, sdigit, (sdigit) (-(sdigit)digits[0]))
                case  1: __PYX_VERIFY_RETURN_INT(CGL_byte,  digit, +digits[0])
                case -2:
                    if (8 * sizeof(CGL_byte) - 1 > 1 * PyLong_SHIFT) {
                        if (8 * sizeof(unsigned long) > 2 * PyLong_SHIFT) {
                            __PYX_VERIFY_RETURN_INT(CGL_byte, long, -(long) (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if (8 * sizeof(CGL_byte) - 1 > 2 * PyLong_SHIFT) {
                            return (CGL_byte) (((CGL_byte)-1)*(((((CGL_byte)digits[1]) << PyLong_SHIFT) | (CGL_byte)digits[0])));
                        }
                    }
                    break;
                case 2:
                    if (8 * sizeof(CGL_byte) > 1 * PyLong_SHIFT) {
                        if (8 * sizeof(unsigned long) > 2 * PyLong_SHIFT) {
                            __PYX_VERIFY_RETURN_INT(CGL_byte, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if (8 * sizeof(CGL_byte) - 1 > 2 * PyLong_SHIFT) {
                            return (CGL_byte) ((((((CGL_byte)digits[1]) << PyLong_SHIFT) | (CGL_byte)digits[0])));
                        }
                    }
                    break;
                case -3:
                    if (8 * sizeof(CGL_byte) - 1 > 2 * PyLong_SHIFT) {
                        if (8 * sizeof(unsigned long) > 3 * PyLong_SHIFT) {
                            __PYX_VERIFY_RETURN_INT(CGL_byte, long, -(long) (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if (8 * sizeof(CGL_byte) - 1 > 3 * PyLong_SHIFT) {
                            return (CGL_byte) (((CGL_byte)-1)*(((((((CGL_byte)digits[2]) << PyLong_SHIFT) | (CGL_byte)digits[1]) << PyLong_SHIFT) | (CGL_byte)digits[0])));
                        }
                    }
                    break;
                case 3:
                    if (8 * sizeof(CGL_byte) > 2 * PyLong_SHIFT) {
                        if (8 * sizeof(unsigned long) > 3 * PyLong_SHIFT) {
                            __PYX_VERIFY_RETURN_INT(CGL_byte, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if (8 * sizeof(CGL_byte) - 1 > 3 * PyLong_SHIFT) {
                            return (CGL_byte) ((((((((CGL_byte)digits[2]) << PyLong_SHIFT) | (CGL_byte)digits[1]) << PyLong_SHIFT) | (CGL_byte)digits[0])));
                        }
                    }
                    break;
                case -4:
                    if (8 * sizeof(CGL_byte) - 1 > 3 * PyLong_SHIFT) {
                        if (8 * sizeof(unsigned long) > 4 * PyLong_SHIFT) {
                            __PYX_VERIFY_RETURN_INT(CGL_byte, long, -(long) (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if (8 * sizeof(CGL_byte) - 1 > 4 * PyLong_SHIFT) {
                            return (CGL_byte) (((CGL_byte)-1)*(((((((((CGL_byte)digits[3]) << PyLong_SHIFT) | (CGL_byte)digits[2]) << PyLong_SHIFT) | (CGL_byte)digits[1]) << PyLong_SHIFT) | (CGL_byte)digits[0])));
                        }
                    }
                    break;
                case 4:
                    if (8 * sizeof(CGL_byte) > 3 * PyLong_SHIFT) {
                        if (8 * sizeof(unsigned long) > 4 * PyLong_SHIFT) {
                            __PYX_VERIFY_RETURN_INT(CGL_byte, unsigned long, (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if (8 * sizeof(CGL_byte) - 1 > 4 * PyLong_SHIFT) {
                            return (CGL_byte) ((((((((((CGL_byte)digits[3]) << PyLong_SHIFT) | (CGL_byte)digits[2]) << PyLong_SHIFT) | (CGL_byte)digits[1]) << PyLong_SHIFT) | (CGL_byte)digits[0])));
                        }
                    }
                    break;
            }
#endif
            if (sizeof(CGL_byte) <= sizeof(long)) {
                __PYX_VERIFY_RETURN_INT_EXC(CGL_byte, long, PyLong_AsLong(x))
#ifdef HAVE_LONG_LONG
            } else if (sizeof(CGL_byte) <= sizeof(PY_LONG_LONG)) {
                __PYX_VERIFY_RETURN_INT_EXC(CGL_byte, PY_LONG_LONG, PyLong_AsLongLong(x))
#endif
            }
        }
        {
#if CYTHON_COMPILING_IN_PYPY && !defined(_PyLong_AsByteArray)
            PyErr_SetString(PyExc_RuntimeError,
                            "_PyLong_AsByteArray() not available in PyPy, cannot convert large numbers");
#else
            CGL_byte val;
            PyObject *v = __Pyx_PyNumber_IntOrLong(x);
 #if PY_MAJOR_VERSION < 3
            if (likely(v) && !PyLong_Check(v)) {
                PyObject *tmp = v;
                v = PyNumber_Long(tmp);
                Py_DECREF(tmp);
            }
 #endif
            if (likely(v)) {
                int one = 1; int is_little = (int)*(unsigned char *)&one;
                unsigned char *bytes = (unsigned char *)&val;
                int ret = _PyLong_AsByteArray((PyLongObject *)v,
                                              bytes, sizeof(val),
                                              is_little, !is_unsigned);
                Py_DECREF(v);
                if (likely(!ret))
                    return val;
            }
#endif
            return (CGL_byte) -1;
        }
    } else {
        CGL_byte val;
        PyObject *tmp = __Pyx_PyNumber_IntOrLong(x);
        if (!tmp) return (CGL_byte) -1;
        val = __Pyx_PyInt_As_CGL_byte(tmp);
        Py_DECREF(tmp);
        return val;
    }
raise_overflow:
    PyErr_SetString(PyExc_OverflowError,
        "value too large to convert to CGL_byte");
    return (CGL_byte) -1;
raise_neg_overflow:
    PyErr_SetString(PyExc_OverflowError,
        "can't convert negative value to CGL_byte");
    return (CGL_byte) -1;
}

/* CIntToPy */
    static CYTHON_INLINE PyObject* __Pyx_PyInt_From_uint32_t(uint32_t value) {
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wconversion"
#endif
    const uint32_t neg_one = (uint32_t) -1, const_zero = (uint32_t) 0;
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic pop
#endif
    const int is_unsigned = neg_one > const_zero;
    if (is_unsigned) {
        if (sizeof(uint32_t) < sizeof(long)) {
            return PyInt_FromLong((long) value);
        } else if (sizeof(uint32_t) <= sizeof(unsigned long)) {
            return PyLong_FromUnsignedLong((unsigned long) value);
#ifdef HAVE_LONG_LONG
        } else if (sizeof(uint32_t) <= sizeof(unsigned PY_LONG_LONG)) {
            return PyLong_FromUnsignedLongLong((unsigned PY_LONG_LONG) value);
#endif
        }
    } else {
        if (sizeof(uint32_t) <= sizeof(long)) {
            return PyInt_FromLong((long) value);
#ifdef HAVE_LONG_LONG
        } else if (sizeof(uint32_t) <= sizeof(PY_LONG_LONG)) {
            return PyLong_FromLongLong((PY_LONG_LONG) value);
#endif
        }
    }
    {
        int one = 1; int little = (int)*(unsigned char *)&one;
        unsigned char *bytes = (unsigned char *)&value;
        return _PyLong_FromByteArray(bytes, sizeof(uint32_t),
                                     little, !is_unsigned);
    }
}

/* CIntToPy */
    static CYTHON_INLINE PyObject* __Pyx_PyInt_From_int(int value) {
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wconversion"
#endif
    const int neg_one = (int) -1, const_zero = (int) 0;
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic pop
#endif
    const int is_unsigned = neg_one > const_zero;
    if (is_unsigned) {
        if (sizeof(int) < sizeof(long)) {
            return PyInt_FromLong((long) value);
        } else if (sizeof(int) <= sizeof(unsigned long)) {
            return PyLong_FromUnsignedLong((unsigned long) value);
#ifdef HAVE_LONG_LONG
        } else if (sizeof(int) <= sizeof(unsigned PY_LONG_LONG)) {
            return PyLong_FromUnsignedLongLong((unsigned PY_LONG_LONG) value);
#endif
        }
    } else {
        if (sizeof(int) <= sizeof(long)) {
            return PyInt_FromLong((long) value);
#ifdef HAVE_LONG_LONG
        } else if (sizeof(int) <= sizeof(PY_LONG_LONG)) {
            return PyLong_FromLongLong((PY_LONG_LONG) value);
#endif
        }
    }
    {
        int one = 1; int little = (int)*(unsigned char *)&one;
        unsigned char *bytes = (unsigned char *)&value;
        return _PyLong_FromByteArray(bytes, sizeof(int),
                                     little, !is_unsigned);
    }
}

/* CIntFromPy */
    static CYTHON_INLINE int __Pyx_PyInt_As_int(PyObject *x) {
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wconversion"
#endif
    const int neg_one = (int) -1, const_zero = (int) 0;
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic pop
#endif
    const int is_unsigned = neg_one > const_zero;
#if PY_MAJOR_VERSION < 3
    if (likely(PyInt_Check(x))) {
        if (sizeof(int) < sizeof(long)) {
            __PYX_VERIFY_RETURN_INT(int, long, PyInt_AS_LONG(x))
        } else {
            long val = PyInt_AS_LONG(x);
            if (is_unsigned && unlikely(val < 0)) {
                goto raise_neg_overflow;
            }
            return (int) val;
        }
    } else
#endif
    if (likely(PyLong_Check(x))) {
        if (is_unsigned) {
#if CYTHON_USE_PYLONG_INTERNALS
            const digit* digits = ((PyLongObject*)x)->ob_digit;
            switch (Py_SIZE(x)) {
                case  0: return (int) 0;
                case  1: __PYX_VERIFY_RETURN_INT(int, digit, digits[0])
                case 2:
                    if (8 * sizeof(int) > 1 * PyLong_SHIFT) {
                        if (8 * sizeof(unsigned long) > 2 * PyLong_SHIFT) {
                            __PYX_VERIFY_RETURN_INT(int, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if (8 * sizeof(int) >= 2 * PyLong_SHIFT) {
                            return (int) (((((int)digits[1]) << PyLong_SHIFT) | (int)digits[0]));
                        }
                    }
                    break;
                case 3:
                    if (8 * sizeof(int) > 2 * PyLong_SHIFT) {
                        if (8 * sizeof(unsigned long) > 3 * PyLong_SHIFT) {
                            __PYX_VERIFY_RETURN_INT(int, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if (8 * sizeof(int) >= 3 * PyLong_SHIFT) {
                            return (int) (((((((int)digits[2]) << PyLong_SHIFT) | (int)digits[1]) << PyLong_SHIFT) | (int)digits[0]));
                        }
                    }
                    break;
                case 4:
                    if (8 * sizeof(int) > 3 * PyLong_SHIFT) {
                        if (8 * sizeof(unsigned long) > 4 * PyLong_SHIFT) {
                            __PYX_VERIFY_RETURN_INT(int, unsigned long, (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if (8 * sizeof(int) >= 4 * PyLong_SHIFT) {
                            return (int) (((((((((int)digits[3]) << PyLong_SHIFT) | (int)digits[2]) << PyLong_SHIFT) | (int)digits[1]) << PyLong_SHIFT) | (int)digits[0]));
                        }
                    }
                    break;
            }
#endif
#if CYTHON_COMPILING_IN_CPYTHON
            if (unlikely(Py_SIZE(x) < 0)) {
                goto raise_neg_overflow;
            }
#else
            {
                int result = PyObject_RichCompareBool(x, Py_False, Py_LT);
                if (unlikely(result < 0))
                    return (int) -1;
                if (unlikely(result == 1))
                    goto raise_neg_overflow;
            }
#endif
            if (sizeof(int) <= sizeof(unsigned long)) {
                __PYX_VERIFY_RETURN_INT_EXC(int, unsigned long, PyLong_AsUnsignedLong(x))
#ifdef HAVE_LONG_LONG
            } else if (sizeof(int) <= sizeof(unsigned PY_LONG_LONG)) {
                __PYX_VERIFY_RETURN_INT_EXC(int, unsigned PY_LONG_LONG, PyLong_AsUnsignedLongLong(x))
#endif
            }
        } else {
#if CYTHON_USE_PYLONG_INTERNALS
            const digit* digits = ((PyLongObject*)x)->ob_digit;
            switch (Py_SIZE(x)) {
                case  0: return (int) 0;
                case -1: __PYX_VERIFY_RETURN_INT(int, sdigit, (sdigit) (-(sdigit)digits[0]))
                case  1: __PYX_VERIFY_RETURN_INT(int,  digit, +digits[0])
                case -2:
                    if (8 * sizeof(int) - 1 > 1 * PyLong_SHIFT) {
                        if (8 * sizeof(unsigned long) > 2 * PyLong_SHIFT) {
                            __PYX_VERIFY_RETURN_INT(int, long, -(long) (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if (8 * sizeof(int) - 1 > 2 * PyLong_SHIFT) {
                            return (int) (((int)-1)*(((((int)digits[1]) << PyLong_SHIFT) | (int)digits[0])));
                        }
                    }
                    break;
                case 2:
                    if (8 * sizeof(int) > 1 * PyLong_SHIFT) {
                        if (8 * sizeof(unsigned long) > 2 * PyLong_SHIFT) {
                            __PYX_VERIFY_RETURN_INT(int, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if (8 * sizeof(int) - 1 > 2 * PyLong_SHIFT) {
                            return (int) ((((((int)digits[1]) << PyLong_SHIFT) | (int)digits[0])));
                        }
                    }
                    break;
                case -3:
                    if (8 * sizeof(int) - 1 > 2 * PyLong_SHIFT) {
                        if (8 * sizeof(unsigned long) > 3 * PyLong_SHIFT) {
                            __PYX_VERIFY_RETURN_INT(int, long, -(long) (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if (8 * sizeof(int) - 1 > 3 * PyLong_SHIFT) {
                            return (int) (((int)-1)*(((((((int)digits[2]) << PyLong_SHIFT) | (int)digits[1]) << PyLong_SHIFT) | (int)digits[0])));
                        }
                    }
                    break;
                case 3:
                    if (8 * sizeof(int) > 2 * PyLong_SHIFT) {
                        if (8 * sizeof(unsigned long) > 3 * PyLong_SHIFT) {
                            __PYX_VERIFY_RETURN_INT(int, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if (8 * sizeof(int) - 1 > 3 * PyLong_SHIFT) {
                            return (int) ((((((((int)digits[2]) << PyLong_SHIFT) | (int)digits[1]) << PyLong_SHIFT) | (int)digits[0])));
                        }
                    }
                    break;
                case -4:
                    if (8 * sizeof(int) - 1 > 3 * PyLong_SHIFT) {
                        if (8 * sizeof(unsigned long) > 4 * PyLong_SHIFT) {
                            __PYX_VERIFY_RETURN_INT(int, long, -(long) (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if (8 * sizeof(int) - 1 > 4 * PyLong_SHIFT) {
                            return (int) (((int)-1)*(((((((((int)digits[3]) << PyLong_SHIFT) | (int)digits[2]) << PyLong_SHIFT) | (int)digits[1]) << PyLong_SHIFT) | (int)digits[0])));
                        }
                    }
                    break;
                case 4:
                    if (8 * sizeof(int) > 3 * PyLong_SHIFT) {
                        if (8 * sizeof(unsigned long) > 4 * PyLong_SHIFT) {
                            __PYX_VERIFY_RETURN_INT(int, unsigned long, (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if (8 * sizeof(int) - 1 > 4 * PyLong_SHIFT) {
                            return (int) ((((((((((int)digits[3]) << PyLong_SHIFT) | (int)digits[2]) << PyLong_SHIFT) | (int)digits[1]) << PyLong_SHIFT) | (int)digits[0])));
                        }
                    }
                    break;
            }
#endif
            if (sizeof(int) <= sizeof(long)) {
                __PYX_VERIFY_RETURN_INT_EXC(int, long, PyLong_AsLong(x))
#ifdef HAVE_LONG_LONG
            } else if (sizeof(int) <= sizeof(PY_LONG_LONG)) {
                __PYX_VERIFY_RETURN_INT_EXC(int, PY_LONG_LONG, PyLong_AsLongLong(x))
#endif
            }
        }
        {
#if CYTHON_COMPILING_IN_PYPY && !defined(_PyLong_AsByteArray)
            PyErr_SetString(PyExc_RuntimeError,
                            "_PyLong_AsByteArray() not available in PyPy, cannot convert large numbers");
#else
            int val;
            PyObject *v = __Pyx_PyNumber_IntOrLong(x);
 #if PY_MAJOR_VERSION < 3
            if (likely(v) && !PyLong_Check(v)) {
                PyObject *tmp = v;
                v = PyNumber_Long(tmp);
                Py_DECREF(tmp);
            }
 #endif
            if (likely(v)) {
                int one = 1; int is_little = (int)*(unsigned char *)&one;
                unsigned char *bytes = (unsigned char *)&val;
                int ret = _PyLong_AsByteArray((PyLongObject *)v,
                                              bytes, sizeof(val),
                                              is_little, !is_unsigned);
                Py_DECREF(v);
                if (likely(!ret))
                    return val;
            }
#endif
            return (int) -1;
        }
    } else {
        int val;
        PyObject *tmp = __Pyx_PyNumber_IntOrLong(x);
        if (!tmp) return (int) -1;
        val = __Pyx_PyInt_As_int(tmp);
        Py_DECREF(tmp);
        return val;
    }
raise_overflow:
    PyErr_SetString(PyExc_OverflowError,
        "value too large to convert to int");
    return (int) -1;
raise_neg_overflow:
    PyErr_SetString(PyExc_OverflowError,
        "can't convert negative value to int");
    return (int) -1;
}

/* CIntFromPy */
    static CYTHON_INLINE size_t __Pyx_PyInt_As_size_t(PyObject *x) {
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wconversion"
#endif
    const size_t neg_one = (size_t) -1, const_zero = (size_t) 0;
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic pop
#endif
    const int is_unsigned = neg_one > const_zero;
#if PY_MAJOR_VERSION < 3
    if (likely(PyInt_Check(x))) {
        if (sizeof(size_t) < sizeof(long)) {
            __PYX_VERIFY_RETURN_INT(size_t, long, PyInt_AS_LONG(x))
        } else {
            long val = PyInt_AS_LONG(x);
            if (is_unsigned && unlikely(val < 0)) {
                goto raise_neg_overflow;
            }
            return (size_t) val;
        }
    } else
#endif
    if (likely(PyLong_Check(x))) {
        if (is_unsigned) {
#if CYTHON_USE_PYLONG_INTERNALS
            const digit* digits = ((PyLongObject*)x)->ob_digit;
            switch (Py_SIZE(x)) {
                case  0: return (size_t) 0;
                case  1: __PYX_VERIFY_RETURN_INT(size_t, digit, digits[0])
                case 2:
                    if (8 * sizeof(size_t) > 1 * PyLong_SHIFT) {
                        if (8 * sizeof(unsigned long) > 2 * PyLong_SHIFT) {
                            __PYX_VERIFY_RETURN_INT(size_t, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if (8 * sizeof(size_t) >= 2 * PyLong_SHIFT) {
                            return (size_t) (((((size_t)digits[1]) << PyLong_SHIFT) | (size_t)digits[0]));
                        }
                    }
                    break;
                case 3:
                    if (8 * sizeof(size_t) > 2 * PyLong_SHIFT) {
                        if (8 * sizeof(unsigned long) > 3 * PyLong_SHIFT) {
                            __PYX_VERIFY_RETURN_INT(size_t, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if (8 * sizeof(size_t) >= 3 * PyLong_SHIFT) {
                            return (size_t) (((((((size_t)digits[2]) << PyLong_SHIFT) | (size_t)digits[1]) << PyLong_SHIFT) | (size_t)digits[0]));
                        }
                    }
                    break;
                case 4:
                    if (8 * sizeof(size_t) > 3 * PyLong_SHIFT) {
                        if (8 * sizeof(unsigned long) > 4 * PyLong_SHIFT) {
                            __PYX_VERIFY_RETURN_INT(size_t, unsigned long, (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if (8 * sizeof(size_t) >= 4 * PyLong_SHIFT) {
                            return (size_t) (((((((((size_t)digits[3]) << PyLong_SHIFT) | (size_t)digits[2]) << PyLong_SHIFT) | (size_t)digits[1]) << PyLong_SHIFT) | (size_t)digits[0]));
                        }
                    }
                    break;
            }
#endif
#if CYTHON_COMPILING_IN_CPYTHON
            if (unlikely(Py_SIZE(x) < 0)) {
                goto raise_neg_overflow;
            }
#else
            {
                int result = PyObject_RichCompareBool(x, Py_False, Py_LT);
                if (unlikely(result < 0))
                    return (size_t) -1;
                if (unlikely(result == 1))
                    goto raise_neg_overflow;
            }
#endif
            if (sizeof(size_t) <= sizeof(unsigned long)) {
                __PYX_VERIFY_RETURN_INT_EXC(size_t, unsigned long, PyLong_AsUnsignedLong(x))
#ifdef HAVE_LONG_LONG
            } else if (sizeof(size_t) <= sizeof(unsigned PY_LONG_LONG)) {
                __PYX_VERIFY_RETURN_INT_EXC(size_t, unsigned PY_LONG_LONG, PyLong_AsUnsignedLongLong(x))
#endif
            }
        } else {
#if CYTHON_USE_PYLONG_INTERNALS
            const digit* digits = ((PyLongObject*)x)->ob_digit;
            switch (Py_SIZE(x)) {
                case  0: return (size_t) 0;
                case -1: __PYX_VERIFY_RETURN_INT(size_t, sdigit, (sdigit) (-(sdigit)digits[0]))
                case  1: __PYX_VERIFY_RETURN_INT(size_t,  digit, +digits[0])
                case -2:
                    if (8 * sizeof(size_t) - 1 > 1 * PyLong_SHIFT) {
                        if (8 * sizeof(unsigned long) > 2 * PyLong_SHIFT) {
                            __PYX_VERIFY_RETURN_INT(size_t, long, -(long) (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if (8 * sizeof(size_t) - 1 > 2 * PyLong_SHIFT) {
                            return (size_t) (((size_t)-1)*(((((size_t)digits[1]) << PyLong_SHIFT) | (size_t)digits[0])));
                        }
                    }
                    break;
                case 2:
                    if (8 * sizeof(size_t) > 1 * PyLong_SHIFT) {
                        if (8 * sizeof(unsigned long) > 2 * PyLong_SHIFT) {
                            __PYX_VERIFY_RETURN_INT(size_t, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if (8 * sizeof(size_t) - 1 > 2 * PyLong_SHIFT) {
                            return (size_t) ((((((size_t)digits[1]) << PyLong_SHIFT) | (size_t)digits[0])));
                        }
                    }
                    break;
                case -3:
                    if (8 * sizeof(size_t) - 1 > 2 * PyLong_SHIFT) {
                        if (8 * sizeof(unsigned long) > 3 * PyLong_SHIFT) {
                            __PYX_VERIFY_RETURN_INT(size_t, long, -(long) (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if (8 * sizeof(size_t) - 1 > 3 * PyLong_SHIFT) {
                            return (size_t) (((size_t)-1)*(((((((size_t)digits[2]) << PyLong_SHIFT) | (size_t)digits[1]) << PyLong_SHIFT) | (size_t)digits[0])));
                        }
                    }
                    break;
                case 3:
                    if (8 * sizeof(size_t) > 2 * PyLong_SHIFT) {
                        if (8 * sizeof(unsigned long) > 3 * PyLong_SHIFT) {
                            __PYX_VERIFY_RETURN_INT(size_t, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if (8 * sizeof(size_t) - 1 > 3 * PyLong_SHIFT) {
                            return (size_t) ((((((((size_t)digits[2]) << PyLong_SHIFT) | (size_t)digits[1]) << PyLong_SHIFT) | (size_t)digits[0])));
                        }
                    }
                    break;
                case -4:
                    if (8 * sizeof(size_t) - 1 > 3 * PyLong_SHIFT) {
                        if (8 * sizeof(unsigned long) > 4 * PyLong_SHIFT) {
                            __PYX_VERIFY_RETURN_INT(size_t, long, -(long) (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if (8 * sizeof(size_t) - 1 > 4 * PyLong_SHIFT) {
                            return (size_t) (((size_t)-1)*(((((((((size_t)digits[3]) << PyLong_SHIFT) | (size_t)digits[2]) << PyLong_SHIFT) | (size_t)digits[1]) << PyLong_SHIFT) | (size_t)digits[0])));
                        }
                    }
                    break;
                case 4:
                    if (8 * sizeof(size_t) > 3 * PyLong_SHIFT) {
                        if (8 * sizeof(unsigned long) > 4 * PyLong_SHIFT) {
                            __PYX_VERIFY_RETURN_INT(size_t, unsigned long, (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if (8 * sizeof(size_t) - 1 > 4 * PyLong_SHIFT) {
                            return (size_t) ((((((((((size_t)digits[3]) << PyLong_SHIFT) | (size_t)digits[2]) << PyLong_SHIFT) | (size_t)digits[1]) << PyLong_SHIFT) | (size_t)digits[0])));
                        }
                    }
                    break;
            }
#endif
            if (sizeof(size_t) <= sizeof(long)) {
                __PYX_VERIFY_RETURN_INT_EXC(size_t, long, PyLong_AsLong(x))
#ifdef HAVE_LONG_LONG
            } else if (sizeof(size_t) <= sizeof(PY_LONG_LONG)) {
                __PYX_VERIFY_RETURN_INT_EXC(size_t, PY_LONG_LONG, PyLong_AsLongLong(x))
#endif
            }
        }
        {
#if CYTHON_COMPILING_IN_PYPY && !defined(_PyLong_AsByteArray)
            PyErr_SetString(PyExc_RuntimeError,
                            "_PyLong_AsByteArray() not available in PyPy, cannot convert large numbers");
#else
            size_t val;
            PyObject *v = __Pyx_PyNumber_IntOrLong(x);
 #if PY_MAJOR_VERSION < 3
            if (likely(v) && !PyLong_Check(v)) {
                PyObject *tmp = v;
                v = PyNumber_Long(tmp);
                Py_DECREF(tmp);
            }
 #endif
            if (likely(v)) {
                int one = 1; int is_little = (int)*(unsigned char *)&one;
                unsigned char *bytes = (unsigned char *)&val;
                int ret = _PyLong_AsByteArray((PyLongObject *)v,
                                              bytes, sizeof(val),
                                              is_little, !is_unsigned);
                Py_DECREF(v);
                if (likely(!ret))
                    return val;
            }
#endif
            return (size_t) -1;
        }
    } else {
        size_t val;
        PyObject *tmp = __Pyx_PyNumber_IntOrLong(x);
        if (!tmp) return (size_t) -1;
        val = __Pyx_PyInt_As_size_t(tmp);
        Py_DECREF(tmp);
        return val;
    }
raise_overflow:
    PyErr_SetString(PyExc_OverflowError,
        "value too large to convert to size_t");
    return (size_t) -1;
raise_neg_overflow:
    PyErr_SetString(PyExc_OverflowError,
        "can't convert negative value to size_t");
    return (size_t) -1;
}

/* CIntFromPy */
    static CYTHON_INLINE long __Pyx_PyInt_As_long(PyObject *x) {
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wconversion"
#endif
    const long neg_one = (long) -1, const_zero = (long) 0;
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic pop
#endif
    const int is_unsigned = neg_one > const_zero;
#if PY_MAJOR_VERSION < 3
    if (likely(PyInt_Check(x))) {
        if (sizeof(long) < sizeof(long)) {
            __PYX_VERIFY_RETURN_INT(long, long, PyInt_AS_LONG(x))
        } else {
            long val = PyInt_AS_LONG(x);
            if (is_unsigned && unlikely(val < 0)) {
                goto raise_neg_overflow;
            }
            return (long) val;
        }
    } else
#endif
    if (likely(PyLong_Check(x))) {
        if (is_unsigned) {
#if CYTHON_USE_PYLONG_INTERNALS
            const digit* digits = ((PyLongObject*)x)->ob_digit;
            switch (Py_SIZE(x)) {
                case  0: return (long) 0;
                case  1: __PYX_VERIFY_RETURN_INT(long, digit, digits[0])
                case 2:
                    if (8 * sizeof(long) > 1 * PyLong_SHIFT) {
                        if (8 * sizeof(unsigned long) > 2 * PyLong_SHIFT) {
                            __PYX_VERIFY_RETURN_INT(long, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if (8 * sizeof(long) >= 2 * PyLong_SHIFT) {
                            return (long) (((((long)digits[1]) << PyLong_SHIFT) | (long)digits[0]));
                        }
                    }
                    break;
                case 3:
                    if (8 * sizeof(long) > 2 * PyLong_SHIFT) {
                        if (8 * sizeof(unsigned long) > 3 * PyLong_SHIFT) {
                            __PYX_VERIFY_RETURN_INT(long, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if (8 * sizeof(long) >= 3 * PyLong_SHIFT) {
                            return (long) (((((((long)digits[2]) << PyLong_SHIFT) | (long)digits[1]) << PyLong_SHIFT) | (long)digits[0]));
                        }
                    }
                    break;
                case 4:
                    if (8 * sizeof(long) > 3 * PyLong_SHIFT) {
                        if (8 * sizeof(unsigned long) > 4 * PyLong_SHIFT) {
                            __PYX_VERIFY_RETURN_INT(long, unsigned long, (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if (8 * sizeof(long) >= 4 * PyLong_SHIFT) {
                            return (long) (((((((((long)digits[3]) << PyLong_SHIFT) | (long)digits[2]) << PyLong_SHIFT) | (long)digits[1]) << PyLong_SHIFT) | (long)digits[0]));
                        }
                    }
                    break;
            }
#endif
#if CYTHON_COMPILING_IN_CPYTHON
            if (unlikely(Py_SIZE(x) < 0)) {
                goto raise_neg_overflow;
            }
#else
            {
                int result = PyObject_RichCompareBool(x, Py_False, Py_LT);
                if (unlikely(result < 0))
                    return (long) -1;
                if (unlikely(result == 1))
                    goto raise_neg_overflow;
            }
#endif
            if (sizeof(long) <= sizeof(unsigned long)) {
                __PYX_VERIFY_RETURN_INT_EXC(long, unsigned long, PyLong_AsUnsignedLong(x))
#ifdef HAVE_LONG_LONG
            } else if (sizeof(long) <= sizeof(unsigned PY_LONG_LONG)) {
                __PYX_VERIFY_RETURN_INT_EXC(long, unsigned PY_LONG_LONG, PyLong_AsUnsignedLongLong(x))
#endif
            }
        } else {
#if CYTHON_USE_PYLONG_INTERNALS
            const digit* digits = ((PyLongObject*)x)->ob_digit;
            switch (Py_SIZE(x)) {
                case  0: return (long) 0;
                case -1: __PYX_VERIFY_RETURN_INT(long, sdigit, (sdigit) (-(sdigit)digits[0]))
                case  1: __PYX_VERIFY_RETURN_INT(long,  digit, +digits[0])
                case -2:
                    if (8 * sizeof(long) - 1 > 1 * PyLong_SHIFT) {
                        if (8 * sizeof(unsigned long) > 2 * PyLong_SHIFT) {
                            __PYX_VERIFY_RETURN_INT(long, long, -(long) (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if (8 * sizeof(long) - 1 > 2 * PyLong_SHIFT) {
                            return (long) (((long)-1)*(((((long)digits[1]) << PyLong_SHIFT) | (long)digits[0])));
                        }
                    }
                    break;
                case 2:
                    if (8 * sizeof(long) > 1 * PyLong_SHIFT) {
                        if (8 * sizeof(unsigned long) > 2 * PyLong_SHIFT) {
                            __PYX_VERIFY_RETURN_INT(long, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if (8 * sizeof(long) - 1 > 2 * PyLong_SHIFT) {
                            return (long) ((((((long)digits[1]) << PyLong_SHIFT) | (long)digits[0])));
                        }
                    }
                    break;
                case -3:
                    if (8 * sizeof(long) - 1 > 2 * PyLong_SHIFT) {
                        if (8 * sizeof(unsigned long) > 3 * PyLong_SHIFT) {
                            __PYX_VERIFY_RETURN_INT(long, long, -(long) (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if (8 * sizeof(long) - 1 > 3 * PyLong_SHIFT) {
                            return (long) (((long)-1)*(((((((long)digits[2]) << PyLong_SHIFT) | (long)digits[1]) << PyLong_SHIFT) | (long)digits[0])));
                        }
                    }
                    break;
                case 3:
                    if (8 * sizeof(long) > 2 * PyLong_SHIFT) {
                        if (8 * sizeof(unsigned long) > 3 * PyLong_SHIFT) {
                            __PYX_VERIFY_RETURN_INT(long, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if (8 * sizeof(long) - 1 > 3 * PyLong_SHIFT) {
                            return (long) ((((((((long)digits[2]) << PyLong_SHIFT) | (long)digits[1]) << PyLong_SHIFT) | (long)digits[0])));
                        }
                    }
                    break;
                case -4:
                    if (8 * sizeof(long) - 1 > 3 * PyLong_SHIFT) {
                        if (8 * sizeof(unsigned long) > 4 * PyLong_SHIFT) {
                            __PYX_VERIFY_RETURN_INT(long, long, -(long) (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if (8 * sizeof(long) - 1 > 4 * PyLong_SHIFT) {
                            return (long) (((long)-1)*(((((((((long)digits[3]) << PyLong_SHIFT) | (long)digits[2]) << PyLong_SHIFT) | (long)digits[1]) << PyLong_SHIFT) | (long)digits[0])));
                        }
                    }
                    break;
                case 4:
                    if (8 * sizeof(long) > 3 * PyLong_SHIFT) {
                        if (8 * sizeof(unsigned long) > 4 * PyLong_SHIFT) {
                            __PYX_VERIFY_RETURN_INT(long, unsigned long, (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if (8 * sizeof(long) - 1 > 4 * PyLong_SHIFT) {
                            return (long) ((((((((((long)digits[3]) << PyLong_SHIFT) | (long)digits[2]) << PyLong_SHIFT) | (long)digits[1]) << PyLong_SHIFT) | (long)digits[0])));
                        }
                    }
                    break;
            }
#endif
            if (sizeof(long) <= sizeof(long)) {
                __PYX_VERIFY_RETURN_INT_EXC(long, long, PyLong_AsLong(x))
#ifdef HAVE_LONG_LONG
            } else if (sizeof(long) <= sizeof(PY_LONG_LONG)) {
                __PYX_VERIFY_RETURN_INT_EXC(long, PY_LONG_LONG, PyLong_AsLongLong(x))
#endif
            }
        }
        {
#if CYTHON_COMPILING_IN_PYPY && !defined(_PyLong_AsByteArray)
            PyErr_SetString(PyExc_RuntimeError,
                            "_PyLong_AsByteArray() not available in PyPy, cannot convert large numbers");
#else
            long val;
            PyObject *v = __Pyx_PyNumber_IntOrLong(x);
 #if PY_MAJOR_VERSION < 3
            if (likely(v) && !PyLong_Check(v)) {
                PyObject *tmp = v;
                v = PyNumber_Long(tmp);
                Py_DECREF(tmp);
            }
 #endif
            if (likely(v)) {
                int one = 1; int is_little = (int)*(unsigned char *)&one;
                unsigned char *bytes = (unsigned char *)&val;
                int ret = _PyLong_AsByteArray((PyLongObject *)v,
                                              bytes, sizeof(val),
                                              is_little, !is_unsigned);
                Py_DECREF(v);
                if (likely(!ret))
                    return val;
            }
#endif
            return (long) -1;
        }
    } else {
        long val;
        PyObject *tmp = __Pyx_PyNumber_IntOrLong(x);
        if (!tmp) return (long) -1;
        val = __Pyx_PyInt_As_long(tmp);
        Py_DECREF(tmp);
        return val;
    }
raise_overflow:
    PyErr_SetString(PyExc_OverflowError,
        "value too large to convert to long");
    return (long) -1;
raise_neg_overflow:
    PyErr_SetString(PyExc_OverflowError,
        "can't convert negative value to long");
    return (long) -1;
}

/* FastTypeChecks */
    #if CYTHON_COMPILING_IN_CPYTHON
static int __Pyx_InBases(PyTypeObject *a, PyTypeObject *b) {
    while (a) {
        a = a->tp_base;
        if (a == b)
            return 1;
    }
    return b == &PyBaseObject_Type;
}
static CYTHON_INLINE int __Pyx_IsSubtype(PyTypeObject *a, PyTypeObject *b) {
    PyObject *mro;
    if (a == b) return 1;
    mro = a->tp_mro;
    if (likely(mro)) {
        Py_ssize_t i, n;
        n = PyTuple_GET_SIZE(mro);
        for (i = 0; i < n; i++) {
            if (PyTuple_GET_ITEM(mro, i) == (PyObject *)b)
                return 1;
        }
        return 0;
    }
    return __Pyx_InBases(a, b);
}
#if PY_MAJOR_VERSION == 2
static int __Pyx_inner_PyErr_GivenExceptionMatches2(PyObject *err, PyObject* exc_type1, PyObject* exc_type2) {
    PyObject *exception, *value, *tb;
    int res;
    __Pyx_PyThreadState_declare
    __Pyx_PyThreadState_assign
    __Pyx_ErrFetch(&exception, &value, &tb);
    res = exc_type1 ? PyObject_IsSubclass(err, exc_type1) : 0;
    if (unlikely(res == -1)) {
        PyErr_WriteUnraisable(err);
        res = 0;
    }
    if (!res) {
        res = PyObject_IsSubclass(err, exc_type2);
        if (unlikely(res == -1)) {
            PyErr_WriteUnraisable(err);
            res = 0;
        }
    }
    __Pyx_ErrRestore(exception, value, tb);
    return res;
}
#else
static CYTHON_INLINE int __Pyx_inner_PyErr_GivenExceptionMatches2(PyObject *err, PyObject* exc_type1, PyObject *exc_type2) {
    int res = exc_type1 ? __Pyx_IsSubtype((PyTypeObject*)err, (PyTypeObject*)exc_type1) : 0;
    if (!res) {
        res = __Pyx_IsSubtype((PyTypeObject*)err, (PyTypeObject*)exc_type2);
    }
    return res;
}
#endif
static int __Pyx_PyErr_GivenExceptionMatchesTuple(PyObject *exc_type, PyObject *tuple) {
    Py_ssize_t i, n;
    assert(PyExceptionClass_Check(exc_type));
    n = PyTuple_GET_SIZE(tuple);
#if PY_MAJOR_VERSION >= 3
    for (i=0; i<n; i++) {
        if (exc_type == PyTuple_GET_ITEM(tuple, i)) return 1;
    }
#endif
    for (i=0; i<n; i++) {
        PyObject *t = PyTuple_GET_ITEM(tuple, i);
        #if PY_MAJOR_VERSION < 3
        if (likely(exc_type == t)) return 1;
        #endif
        if (likely(PyExceptionClass_Check(t))) {
            if (__Pyx_inner_PyErr_GivenExceptionMatches2(exc_type, NULL, t)) return 1;
        } else {
        }
    }
    return 0;
}
static CYTHON_INLINE int __Pyx_PyErr_GivenExceptionMatches(PyObject *err, PyObject* exc_type) {
    if (likely(err == exc_type)) return 1;
    if (likely(PyExceptionClass_Check(err))) {
        if (likely(PyExceptionClass_Check(exc_type))) {
            return __Pyx_inner_PyErr_GivenExceptionMatches2(err, NULL, exc_type);
        } else if (likely(PyTuple_Check(exc_type))) {
            return __Pyx_PyErr_GivenExceptionMatchesTuple(err, exc_type);
        } else {
        }
    }
    return PyErr_GivenExceptionMatches(err, exc_type);
}
static CYTHON_INLINE int __Pyx_PyErr_GivenExceptionMatches2(PyObject *err, PyObject *exc_type1, PyObject *exc_type2) {
    assert(PyExceptionClass_Check(exc_type1));
    assert(PyExceptionClass_Check(exc_type2));
    if (likely(err == exc_type1 || err == exc_type2)) return 1;
    if (likely(PyExceptionClass_Check(err))) {
        return __Pyx_inner_PyErr_GivenExceptionMatches2(err, exc_type1, exc_type2);
    }
    return (PyErr_GivenExceptionMatches(err, exc_type1) || PyErr_GivenExceptionMatches(err, exc_type2));
}
#endif

/* CheckBinaryVersion */
    static int __Pyx_check_binary_version(void) {
    char ctversion[5];
    int same=1, i, found_dot;
    const char* rt_from_call = Py_GetVersion();
    PyOS_snprintf(ctversion, 5, "%d.%d", PY_MAJOR_VERSION, PY_MINOR_VERSION);
    found_dot = 0;
    for (i = 0; i < 4; i++) {
        if (!ctversion[i]) {
            same = (rt_from_call[i] < '0' || rt_from_call[i] > '9');
            break;
        }
        if (rt_from_call[i] != ctversion[i]) {
            same = 0;
            break;
        }
    }
    if (!same) {
        char rtversion[5] = {'\0'};
        char message[200];
        for (i=0; i<4; ++i) {
            if (rt_from_call[i] == '.') {
                if (found_dot) break;
                found_dot = 1;
            } else if (rt_from_call[i] < '0' || rt_from_call[i] > '9') {
                break;
            }
            rtversion[i] = rt_from_call[i];
        }
        PyOS_snprintf(message, sizeof(message),
                      "compiletime version %s of module '%.100s' "
                      "does not match runtime version %s",
                      ctversion, __Pyx_MODULE_NAME, rtversion);
        return PyErr_WarnEx(NULL, message, 1);
    }
    return 0;
}

/* InitStrings */
    static int __Pyx_InitStrings(__Pyx_StringTabEntry *t) {
    while (t->p) {
        #if PY_MAJOR_VERSION < 3
        if (t->is_unicode) {
            *t->p = PyUnicode_DecodeUTF8(t->s, t->n - 1, NULL);
        } else if (t->intern) {
            *t->p = PyString_InternFromString(t->s);
        } else {
            *t->p = PyString_FromStringAndSize(t->s, t->n - 1);
        }
        #else
        if (t->is_unicode | t->is_str) {
            if (t->intern) {
                *t->p = PyUnicode_InternFromString(t->s);
            } else if (t->encoding) {
                *t->p = PyUnicode_Decode(t->s, t->n - 1, t->encoding, NULL);
            } else {
                *t->p = PyUnicode_FromStringAndSize(t->s, t->n - 1);
            }
        } else {
            *t->p = PyBytes_FromStringAndSize(t->s, t->n - 1);
        }
        #endif
        if (!*t->p)
            return -1;
        if (PyObject_Hash(*t->p) == -1)
            return -1;
        ++t;
    }
    return 0;
}

static CYTHON_INLINE PyObject* __Pyx_PyUnicode_FromString(const char* c_str) {
    return __Pyx_PyUnicode_FromStringAndSize(c_str, (Py_ssize_t)strlen(c_str));
}
static CYTHON_INLINE const char* __Pyx_PyObject_AsString(PyObject* o) {
    Py_ssize_t ignore;
    return __Pyx_PyObject_AsStringAndSize(o, &ignore);
}
#if __PYX_DEFAULT_STRING_ENCODING_IS_ASCII || __PYX_DEFAULT_STRING_ENCODING_IS_DEFAULT
#if !CYTHON_PEP393_ENABLED
static const char* __Pyx_PyUnicode_AsStringAndSize(PyObject* o, Py_ssize_t *length) {
    char* defenc_c;
    PyObject* defenc = _PyUnicode_AsDefaultEncodedString(o, NULL);
    if (!defenc) return NULL;
    defenc_c = PyBytes_AS_STRING(defenc);
#if __PYX_DEFAULT_STRING_ENCODING_IS_ASCII
    {
        char* end = defenc_c + PyBytes_GET_SIZE(defenc);
        char* c;
        for (c = defenc_c; c < end; c++) {
            if ((unsigned char) (*c) >= 128) {
                PyUnicode_AsASCIIString(o);
                return NULL;
            }
        }
    }
#endif
    *length = PyBytes_GET_SIZE(defenc);
    return defenc_c;
}
#else
static CYTHON_INLINE const char* __Pyx_PyUnicode_AsStringAndSize(PyObject* o, Py_ssize_t *length) {
    if (unlikely(__Pyx_PyUnicode_READY(o) == -1)) return NULL;
#if __PYX_DEFAULT_STRING_ENCODING_IS_ASCII
    if (likely(PyUnicode_IS_ASCII(o))) {
        *length = PyUnicode_GET_LENGTH(o);
        return PyUnicode_AsUTF8(o);
    } else {
        PyUnicode_AsASCIIString(o);
        return NULL;
    }
#else
    return PyUnicode_AsUTF8AndSize(o, length);
#endif
}
#endif
#endif
static CYTHON_INLINE const char* __Pyx_PyObject_AsStringAndSize(PyObject* o, Py_ssize_t *length) {
#if __PYX_DEFAULT_STRING_ENCODING_IS_ASCII || __PYX_DEFAULT_STRING_ENCODING_IS_DEFAULT
    if (
#if PY_MAJOR_VERSION < 3 && __PYX_DEFAULT_STRING_ENCODING_IS_ASCII
            __Pyx_sys_getdefaultencoding_not_ascii &&
#endif
            PyUnicode_Check(o)) {
        return __Pyx_PyUnicode_AsStringAndSize(o, length);
    } else
#endif
#if (!CYTHON_COMPILING_IN_PYPY) || (defined(PyByteArray_AS_STRING) && defined(PyByteArray_GET_SIZE))
    if (PyByteArray_Check(o)) {
        *length = PyByteArray_GET_SIZE(o);
        return PyByteArray_AS_STRING(o);
    } else
#endif
    {
        char* result;
        int r = PyBytes_AsStringAndSize(o, &result, length);
        if (unlikely(r < 0)) {
            return NULL;
        } else {
            return result;
        }
    }
}
static CYTHON_INLINE int __Pyx_PyObject_IsTrue(PyObject* x) {
   int is_true = x == Py_True;
   if (is_true | (x == Py_False) | (x == Py_None)) return is_true;
   else return PyObject_IsTrue(x);
}
static CYTHON_INLINE int __Pyx_PyObject_IsTrueAndDecref(PyObject* x) {
    int retval;
    if (unlikely(!x)) return -1;
    retval = __Pyx_PyObject_IsTrue(x);
    Py_DECREF(x);
    return retval;
}
static PyObject* __Pyx_PyNumber_IntOrLongWrongResultType(PyObject* result, const char* type_name) {
#if PY_MAJOR_VERSION >= 3
    if (PyLong_Check(result)) {
        if (PyErr_WarnFormat(PyExc_DeprecationWarning, 1,
                "__int__ returned non-int (type %.200s).  "
                "The ability to return an instance of a strict subclass of int "
                "is deprecated, and may be removed in a future version of Python.",
                Py_TYPE(result)->tp_name)) {
            Py_DECREF(result);
            return NULL;
        }
        return result;
    }
#endif
    PyErr_Format(PyExc_TypeError,
                 "__%.4s__ returned non-%.4s (type %.200s)",
                 type_name, type_name, Py_TYPE(result)->tp_name);
    Py_DECREF(result);
    return NULL;
}
static CYTHON_INLINE PyObject* __Pyx_PyNumber_IntOrLong(PyObject* x) {
#if CYTHON_USE_TYPE_SLOTS
  PyNumberMethods *m;
#endif
  const char *name = NULL;
  PyObject *res = NULL;
#if PY_MAJOR_VERSION < 3
  if (likely(PyInt_Check(x) || PyLong_Check(x)))
#else
  if (likely(PyLong_Check(x)))
#endif
    return __Pyx_NewRef(x);
#if CYTHON_USE_TYPE_SLOTS
  m = Py_TYPE(x)->tp_as_number;
  #if PY_MAJOR_VERSION < 3
  if (m && m->nb_int) {
    name = "int";
    res = m->nb_int(x);
  }
  else if (m && m->nb_long) {
    name = "long";
    res = m->nb_long(x);
  }
  #else
  if (likely(m && m->nb_int)) {
    name = "int";
    res = m->nb_int(x);
  }
  #endif
#else
  if (!PyBytes_CheckExact(x) && !PyUnicode_CheckExact(x)) {
    res = PyNumber_Int(x);
  }
#endif
  if (likely(res)) {
#if PY_MAJOR_VERSION < 3
    if (unlikely(!PyInt_Check(res) && !PyLong_Check(res))) {
#else
    if (unlikely(!PyLong_CheckExact(res))) {
#endif
        return __Pyx_PyNumber_IntOrLongWrongResultType(res, name);
    }
  }
  else if (!PyErr_Occurred()) {
    PyErr_SetString(PyExc_TypeError,
                    "an integer is required");
  }
  return res;
}
static CYTHON_INLINE Py_ssize_t __Pyx_PyIndex_AsSsize_t(PyObject* b) {
  Py_ssize_t ival;
  PyObject *x;
#if PY_MAJOR_VERSION < 3
  if (likely(PyInt_CheckExact(b))) {
    if (sizeof(Py_ssize_t) >= sizeof(long))
        return PyInt_AS_LONG(b);
    else
        return PyInt_AsSsize_t(b);
  }
#endif
  if (likely(PyLong_CheckExact(b))) {
    #if CYTHON_USE_PYLONG_INTERNALS
    const digit* digits = ((PyLongObject*)b)->ob_digit;
    const Py_ssize_t size = Py_SIZE(b);
    if (likely(__Pyx_sst_abs(size) <= 1)) {
        ival = likely(size) ? digits[0] : 0;
        if (size == -1) ival = -ival;
        return ival;
    } else {
      switch (size) {
         case 2:
           if (8 * sizeof(Py_ssize_t) > 2 * PyLong_SHIFT) {
             return (Py_ssize_t) (((((size_t)digits[1]) << PyLong_SHIFT) | (size_t)digits[0]));
           }
           break;
         case -2:
           if (8 * sizeof(Py_ssize_t) > 2 * PyLong_SHIFT) {
             return -(Py_ssize_t) (((((size_t)digits[1]) << PyLong_SHIFT) | (size_t)digits[0]));
           }
           break;
         case 3:
           if (8 * sizeof(Py_ssize_t) > 3 * PyLong_SHIFT) {
             return (Py_ssize_t) (((((((size_t)digits[2]) << PyLong_SHIFT) | (size_t)digits[1]) << PyLong_SHIFT) | (size_t)digits[0]));
           }
           break;
         case -3:
           if (8 * sizeof(Py_ssize_t) > 3 * PyLong_SHIFT) {
             return -(Py_ssize_t) (((((((size_t)digits[2]) << PyLong_SHIFT) | (size_t)digits[1]) << PyLong_SHIFT) | (size_t)digits[0]));
           }
           break;
         case 4:
           if (8 * sizeof(Py_ssize_t) > 4 * PyLong_SHIFT) {
             return (Py_ssize_t) (((((((((size_t)digits[3]) << PyLong_SHIFT) | (size_t)digits[2]) << PyLong_SHIFT) | (size_t)digits[1]) << PyLong_SHIFT) | (size_t)digits[0]));
           }
           break;
         case -4:
           if (8 * sizeof(Py_ssize_t) > 4 * PyLong_SHIFT) {
             return -(Py_ssize_t) (((((((((size_t)digits[3]) << PyLong_SHIFT) | (size_t)digits[2]) << PyLong_SHIFT) | (size_t)digits[1]) << PyLong_SHIFT) | (size_t)digits[0]));
           }
           break;
      }
    }
    #endif
    return PyLong_AsSsize_t(b);
  }
  x = PyNumber_Index(b);
  if (!x) return -1;
  ival = PyInt_AsSsize_t(x);
  Py_DECREF(x);
  return ival;
}
static CYTHON_INLINE Py_hash_t __Pyx_PyIndex_AsHash_t(PyObject* o) {
  if (sizeof(Py_hash_t) == sizeof(Py_ssize_t)) {
    return (Py_hash_t) __Pyx_PyIndex_AsSsize_t(o);
#if PY_MAJOR_VERSION < 3
  } else if (likely(PyInt_CheckExact(o))) {
    return PyInt_AS_LONG(o);
#endif
  } else {
    Py_ssize_t ival;
    PyObject *x;
    x = PyNumber_Index(o);
    if (!x) return -1;
    ival = PyInt_AsLong(x);
    Py_DECREF(x);
    return ival;
  }
}
static CYTHON_INLINE PyObject * __Pyx_PyBool_FromLong(long b) {
  return b ? __Pyx_NewRef(Py_True) : __Pyx_NewRef(Py_False);
}
static CYTHON_INLINE PyObject * __Pyx_PyInt_FromSize_t(size_t ival) {
    return PyInt_FromSize_t(ival);
}


#endif /* Py_PYTHON_H */
