/* Generated by Cython 3.2.3 */

/* BEGIN: Cython Metadata
{
    "distutils": {
        "depends": [
            "/build/python-kivy/src/kivy/kivy/graphics/cgl.pxd",
            "/build/python-kivy/src/kivy/kivy/graphics/common.pxi",
            "/build/python-kivy/src/kivy/kivy/include/gl_redirect.h"
        ],
        "extra_link_args": [
            "-lm"
        ],
        "include_dirs": [
            "/build/python-kivy/src/kivy/kivy/include",
            "/build/python-kivy/src/kivy/kivy/include"
        ],
        "name": "kivy.graphics.opengl",
        "sources": [
            "/build/python-kivy/src/kivy/kivy/graphics/opengl.pyx"
        ]
    },
    "module_name": "kivy.graphics.opengl"
}
END: Cython Metadata */

#ifndef PY_SSIZE_T_CLEAN
#define PY_SSIZE_T_CLEAN
#endif /* PY_SSIZE_T_CLEAN */
/* InitLimitedAPI */
#if defined(Py_LIMITED_API)
  #if !defined(CYTHON_LIMITED_API)
  #define CYTHON_LIMITED_API 1
  #endif
#elif defined(CYTHON_LIMITED_API)
  #ifdef _MSC_VER
  #pragma message ("Limited API usage is enabled with 'CYTHON_LIMITED_API' but 'Py_LIMITED_API' does not define a Python target version. Consider setting 'Py_LIMITED_API' instead.")
  #else
  #warning Limited API usage is enabled with 'CYTHON_LIMITED_API' but 'Py_LIMITED_API' does not define a Python target version. Consider setting 'Py_LIMITED_API' instead.
  #endif
#endif

#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 < 0x03080000
    #error Cython requires Python 3.8+.
#else
#define __PYX_ABI_VERSION "3_2_3"
#define CYTHON_HEX_VERSION 0x030203F0
#define CYTHON_FUTURE_DIVISION 1
/* CModulePreamble */
#include <stddef.h>
#ifndef offsetof
  #define offsetof(type, member) ( (size_t) & ((type*)0) -> member )
#endif
#if !defined(_WIN32) && !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 PY_LONG_LONG
  #define PY_LONG_LONG LONG_LONG
#endif
#ifndef Py_HUGE_VAL
  #define Py_HUGE_VAL HUGE_VAL
#endif
#define __PYX_LIMITED_VERSION_HEX PY_VERSION_HEX
#if defined(GRAALVM_PYTHON)
  /* For very preliminary testing purposes. Most variables are set the same as PyPy.
     The existence of this section does not imply that anything works or is even tested */
  #define CYTHON_COMPILING_IN_PYPY 0
  #define CYTHON_COMPILING_IN_CPYTHON 0
  #define CYTHON_COMPILING_IN_LIMITED_API 0
  #define CYTHON_COMPILING_IN_GRAAL 1
  #define CYTHON_COMPILING_IN_CPYTHON_FREETHREADING 0
  #undef CYTHON_USE_TYPE_SLOTS
  #define CYTHON_USE_TYPE_SLOTS 0
  #undef CYTHON_USE_TYPE_SPECS
  #define CYTHON_USE_TYPE_SPECS 0
  #undef CYTHON_USE_PYTYPE_LOOKUP
  #define CYTHON_USE_PYTYPE_LOOKUP 0
  #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_AVOID_THREAD_UNSAFE_BORROWED_REFS
  #define CYTHON_AVOID_THREAD_UNSAFE_BORROWED_REFS 0
  #undef CYTHON_ASSUME_SAFE_MACROS
  #define CYTHON_ASSUME_SAFE_MACROS 0
  #undef CYTHON_ASSUME_SAFE_SIZE
  #define CYTHON_ASSUME_SAFE_SIZE 0
  #undef CYTHON_UNPACK_METHODS
  #define CYTHON_UNPACK_METHODS 0
  #undef CYTHON_FAST_THREAD_STATE
  #define CYTHON_FAST_THREAD_STATE 0
  #undef CYTHON_FAST_GIL
  #define CYTHON_FAST_GIL 0
  #undef CYTHON_METH_FASTCALL
  #define CYTHON_METH_FASTCALL 0
  #undef CYTHON_FAST_PYCALL
  #define CYTHON_FAST_PYCALL 0
  #ifndef CYTHON_PEP487_INIT_SUBCLASS
    #define CYTHON_PEP487_INIT_SUBCLASS 1
  #endif
  #undef CYTHON_PEP489_MULTI_PHASE_INIT
  #define CYTHON_PEP489_MULTI_PHASE_INIT 1
  #undef CYTHON_USE_MODULE_STATE
  #define CYTHON_USE_MODULE_STATE 0
  #undef CYTHON_USE_SYS_MONITORING
  #define CYTHON_USE_SYS_MONITORING 0
  #undef CYTHON_USE_TP_FINALIZE
  #define CYTHON_USE_TP_FINALIZE 0
  #undef CYTHON_USE_AM_SEND
  #define CYTHON_USE_AM_SEND 0
  #undef CYTHON_USE_DICT_VERSIONS
  #define CYTHON_USE_DICT_VERSIONS 0
  #undef CYTHON_USE_EXC_INFO_STACK
  #define CYTHON_USE_EXC_INFO_STACK 1
  #ifndef CYTHON_UPDATE_DESCRIPTOR_DOC
    #define CYTHON_UPDATE_DESCRIPTOR_DOC 0
  #endif
  #undef CYTHON_USE_FREELISTS
  #define CYTHON_USE_FREELISTS 0
  #undef CYTHON_IMMORTAL_CONSTANTS
  #define CYTHON_IMMORTAL_CONSTANTS 0
#elif defined(PYPY_VERSION)
  #define CYTHON_COMPILING_IN_PYPY 1
  #define CYTHON_COMPILING_IN_CPYTHON 0
  #define CYTHON_COMPILING_IN_LIMITED_API 0
  #define CYTHON_COMPILING_IN_GRAAL 0
  #define CYTHON_COMPILING_IN_CPYTHON_FREETHREADING 0
  #undef CYTHON_USE_TYPE_SLOTS
  #define CYTHON_USE_TYPE_SLOTS 1
  #ifndef CYTHON_USE_TYPE_SPECS
    #define CYTHON_USE_TYPE_SPECS 0
  #endif
  #undef CYTHON_USE_PYTYPE_LOOKUP
  #define CYTHON_USE_PYTYPE_LOOKUP 0
  #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_AVOID_THREAD_UNSAFE_BORROWED_REFS
  #define CYTHON_AVOID_THREAD_UNSAFE_BORROWED_REFS 1
  #undef CYTHON_ASSUME_SAFE_MACROS
  #define CYTHON_ASSUME_SAFE_MACROS 0
  #ifndef CYTHON_ASSUME_SAFE_SIZE
    #define CYTHON_ASSUME_SAFE_SIZE 1
  #endif
  #undef CYTHON_UNPACK_METHODS
  #define CYTHON_UNPACK_METHODS 0
  #undef CYTHON_FAST_THREAD_STATE
  #define CYTHON_FAST_THREAD_STATE 0
  #undef CYTHON_FAST_GIL
  #define CYTHON_FAST_GIL 0
  #undef CYTHON_METH_FASTCALL
  #define CYTHON_METH_FASTCALL 0
  #undef CYTHON_FAST_PYCALL
  #define CYTHON_FAST_PYCALL 0
  #ifndef CYTHON_PEP487_INIT_SUBCLASS
    #define CYTHON_PEP487_INIT_SUBCLASS 1
  #endif
  #if PY_VERSION_HEX < 0x03090000
    #undef CYTHON_PEP489_MULTI_PHASE_INIT
    #define CYTHON_PEP489_MULTI_PHASE_INIT 0
  #elif !defined(CYTHON_PEP489_MULTI_PHASE_INIT)
    #define CYTHON_PEP489_MULTI_PHASE_INIT 1
  #endif
  #undef CYTHON_USE_MODULE_STATE
  #define CYTHON_USE_MODULE_STATE 0
  #undef CYTHON_USE_SYS_MONITORING
  #define CYTHON_USE_SYS_MONITORING 0
  #ifndef CYTHON_USE_TP_FINALIZE
    #define CYTHON_USE_TP_FINALIZE (PYPY_VERSION_NUM >= 0x07030C00)
  #endif
  #undef CYTHON_USE_AM_SEND
  #define CYTHON_USE_AM_SEND 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 (PYPY_VERSION_NUM >= 0x07031100)
  #endif
  #undef CYTHON_USE_FREELISTS
  #define CYTHON_USE_FREELISTS 0
  #undef CYTHON_IMMORTAL_CONSTANTS
  #define CYTHON_IMMORTAL_CONSTANTS 0
#elif defined(CYTHON_LIMITED_API)
  #ifdef Py_LIMITED_API
    #undef __PYX_LIMITED_VERSION_HEX
    #define __PYX_LIMITED_VERSION_HEX Py_LIMITED_API
  #endif
  #define CYTHON_COMPILING_IN_PYPY 0
  #define CYTHON_COMPILING_IN_CPYTHON 0
  #define CYTHON_COMPILING_IN_LIMITED_API 1
  #define CYTHON_COMPILING_IN_GRAAL 0
  #define CYTHON_COMPILING_IN_CPYTHON_FREETHREADING 0
  #undef CYTHON_USE_TYPE_SLOTS
  #define CYTHON_USE_TYPE_SLOTS 0
  #undef CYTHON_USE_TYPE_SPECS
  #define CYTHON_USE_TYPE_SPECS 1
  #undef CYTHON_USE_PYTYPE_LOOKUP
  #define CYTHON_USE_PYTYPE_LOOKUP 0
  #undef CYTHON_USE_PYLIST_INTERNALS
  #define CYTHON_USE_PYLIST_INTERNALS 0
  #undef CYTHON_USE_UNICODE_INTERNALS
  #define CYTHON_USE_UNICODE_INTERNALS 0
  #ifndef CYTHON_USE_UNICODE_WRITER
    #define CYTHON_USE_UNICODE_WRITER 0
  #endif
  #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_AVOID_THREAD_UNSAFE_BORROWED_REFS
    #define CYTHON_AVOID_THREAD_UNSAFE_BORROWED_REFS 0
  #endif
  #undef CYTHON_ASSUME_SAFE_MACROS
  #define CYTHON_ASSUME_SAFE_MACROS 0
  #undef CYTHON_ASSUME_SAFE_SIZE
  #define CYTHON_ASSUME_SAFE_SIZE 0
  #undef CYTHON_UNPACK_METHODS
  #define CYTHON_UNPACK_METHODS 0
  #undef CYTHON_FAST_THREAD_STATE
  #define CYTHON_FAST_THREAD_STATE 0
  #undef CYTHON_FAST_GIL
  #define CYTHON_FAST_GIL 0
  #undef CYTHON_METH_FASTCALL
  #define CYTHON_METH_FASTCALL (__PYX_LIMITED_VERSION_HEX >= 0x030C0000)
  #undef CYTHON_FAST_PYCALL
  #define CYTHON_FAST_PYCALL 0
  #ifndef CYTHON_PEP487_INIT_SUBCLASS
    #define CYTHON_PEP487_INIT_SUBCLASS 1
  #endif
  #ifndef CYTHON_PEP489_MULTI_PHASE_INIT
    #define CYTHON_PEP489_MULTI_PHASE_INIT 1
  #endif
  #ifndef CYTHON_USE_MODULE_STATE
    #define CYTHON_USE_MODULE_STATE 0
  #endif
  #undef CYTHON_USE_SYS_MONITORING
  #define CYTHON_USE_SYS_MONITORING 0
  #ifndef CYTHON_USE_TP_FINALIZE
    #define CYTHON_USE_TP_FINALIZE 0
  #endif
  #ifndef CYTHON_USE_AM_SEND
    #define CYTHON_USE_AM_SEND (__PYX_LIMITED_VERSION_HEX >= 0x030A0000)
  #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
  #ifndef CYTHON_UPDATE_DESCRIPTOR_DOC
    #define CYTHON_UPDATE_DESCRIPTOR_DOC 0
  #endif
  #ifndef CYTHON_USE_FREELISTS
  #define CYTHON_USE_FREELISTS 1
  #endif
  #undef CYTHON_IMMORTAL_CONSTANTS
  #define CYTHON_IMMORTAL_CONSTANTS 0
#else
  #define CYTHON_COMPILING_IN_PYPY 0
  #define CYTHON_COMPILING_IN_CPYTHON 1
  #define CYTHON_COMPILING_IN_LIMITED_API 0
  #define CYTHON_COMPILING_IN_GRAAL 0
  #ifdef Py_GIL_DISABLED
    #define CYTHON_COMPILING_IN_CPYTHON_FREETHREADING 1
  #else
    #define CYTHON_COMPILING_IN_CPYTHON_FREETHREADING 0
  #endif
  #if PY_VERSION_HEX < 0x030A0000
    #undef CYTHON_USE_TYPE_SLOTS
    #define CYTHON_USE_TYPE_SLOTS 1
  #elif !defined(CYTHON_USE_TYPE_SLOTS)
    #define CYTHON_USE_TYPE_SLOTS 1
  #endif
  #ifndef CYTHON_USE_TYPE_SPECS
    #define CYTHON_USE_TYPE_SPECS 0
  #endif
  #ifndef CYTHON_USE_PYTYPE_LOOKUP
    #define CYTHON_USE_PYTYPE_LOOKUP 1
  #endif
  #ifndef CYTHON_USE_PYLONG_INTERNALS
    #define CYTHON_USE_PYLONG_INTERNALS 1
  #endif
  #if CYTHON_COMPILING_IN_CPYTHON_FREETHREADING
    #undef CYTHON_USE_PYLIST_INTERNALS
    #define CYTHON_USE_PYLIST_INTERNALS 0
  #elif !defined(CYTHON_USE_PYLIST_INTERNALS)
    #define CYTHON_USE_PYLIST_INTERNALS 1
  #endif
  #ifndef CYTHON_USE_UNICODE_INTERNALS
    #define CYTHON_USE_UNICODE_INTERNALS 1
  #endif
  #if CYTHON_COMPILING_IN_CPYTHON_FREETHREADING || 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
  #if CYTHON_COMPILING_IN_CPYTHON_FREETHREADING
    #undef CYTHON_AVOID_THREAD_UNSAFE_BORROWED_REFS
    #define CYTHON_AVOID_THREAD_UNSAFE_BORROWED_REFS 1
  #elif !defined(CYTHON_AVOID_THREAD_UNSAFE_BORROWED_REFS)
    #define CYTHON_AVOID_THREAD_UNSAFE_BORROWED_REFS 0
  #endif
  #ifndef CYTHON_ASSUME_SAFE_MACROS
    #define CYTHON_ASSUME_SAFE_MACROS 1
  #endif
  #ifndef CYTHON_ASSUME_SAFE_SIZE
    #define CYTHON_ASSUME_SAFE_SIZE 1
  #endif
  #ifndef CYTHON_UNPACK_METHODS
    #define CYTHON_UNPACK_METHODS 1
  #endif
  #ifndef CYTHON_FAST_THREAD_STATE
    #define CYTHON_FAST_THREAD_STATE 1
  #endif
  #if CYTHON_COMPILING_IN_CPYTHON_FREETHREADING
    #undef CYTHON_FAST_GIL
    #define CYTHON_FAST_GIL 0
  #elif !defined(CYTHON_FAST_GIL)
    #define CYTHON_FAST_GIL (PY_VERSION_HEX < 0x030C00A6)
  #endif
  #ifndef CYTHON_METH_FASTCALL
    #define CYTHON_METH_FASTCALL 1
  #endif
  #ifndef CYTHON_FAST_PYCALL
    #define CYTHON_FAST_PYCALL 1
  #endif
  #ifndef CYTHON_PEP487_INIT_SUBCLASS
    #define CYTHON_PEP487_INIT_SUBCLASS 1
  #endif
  #ifndef CYTHON_PEP489_MULTI_PHASE_INIT
    #define CYTHON_PEP489_MULTI_PHASE_INIT 1
  #endif
  #ifndef CYTHON_USE_MODULE_STATE
    #define CYTHON_USE_MODULE_STATE 0
  #endif
  #ifndef CYTHON_USE_SYS_MONITORING
    #define CYTHON_USE_SYS_MONITORING (PY_VERSION_HEX >= 0x030d00B1)
  #endif
  #ifndef CYTHON_USE_TP_FINALIZE
    #define CYTHON_USE_TP_FINALIZE 1
  #endif
  #ifndef CYTHON_USE_AM_SEND
    #define CYTHON_USE_AM_SEND 1
  #endif
  #if CYTHON_COMPILING_IN_CPYTHON_FREETHREADING
    #undef CYTHON_USE_DICT_VERSIONS
    #define CYTHON_USE_DICT_VERSIONS 0
  #elif !defined(CYTHON_USE_DICT_VERSIONS)
    #define CYTHON_USE_DICT_VERSIONS  (PY_VERSION_HEX < 0x030C00A5 && !CYTHON_USE_MODULE_STATE)
  #endif
  #ifndef CYTHON_USE_EXC_INFO_STACK
    #define CYTHON_USE_EXC_INFO_STACK 1
  #endif
  #ifndef CYTHON_UPDATE_DESCRIPTOR_DOC
    #define CYTHON_UPDATE_DESCRIPTOR_DOC 1
  #endif
  #ifndef CYTHON_USE_FREELISTS
    #define CYTHON_USE_FREELISTS (!CYTHON_COMPILING_IN_CPYTHON_FREETHREADING)
  #endif
  #if defined(CYTHON_IMMORTAL_CONSTANTS) && PY_VERSION_HEX < 0x030C0000
    #undef CYTHON_IMMORTAL_CONSTANTS
    #define CYTHON_IMMORTAL_CONSTANTS 0  // definitely won't work
  #elif !defined(CYTHON_IMMORTAL_CONSTANTS)
    #define CYTHON_IMMORTAL_CONSTANTS (PY_VERSION_HEX >= 0x030C0000 && !CYTHON_USE_MODULE_STATE && CYTHON_COMPILING_IN_CPYTHON_FREETHREADING)
  #endif
#endif
#ifndef CYTHON_COMPRESS_STRINGS
  #define CYTHON_COMPRESS_STRINGS 1
#endif
#ifndef CYTHON_FAST_PYCCALL
#define CYTHON_FAST_PYCCALL  CYTHON_FAST_PYCALL
#endif
#ifndef CYTHON_VECTORCALL
#if CYTHON_COMPILING_IN_LIMITED_API
#define CYTHON_VECTORCALL  (__PYX_LIMITED_VERSION_HEX >= 0x030C0000)
#else
#define CYTHON_VECTORCALL  (CYTHON_FAST_PYCCALL)
#endif
#endif
#if CYTHON_USE_PYLONG_INTERNALS
  #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(__cplusplus)
    /* for clang __has_cpp_attribute(maybe_unused) is true even before C++17
     * but leads to warnings with -pedantic, since it is a C++17 feature */
    #if ((defined(_MSVC_LANG) && _MSVC_LANG >= 201703L) || __cplusplus >= 201703L)
      #if __has_cpp_attribute(maybe_unused)
        #define CYTHON_UNUSED [[maybe_unused]]
      #endif
    #endif
  #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_UNUSED_VAR
#  if defined(__cplusplus)
     template<class T> void CYTHON_UNUSED_VAR( const T& ) { }
#  else
#    define CYTHON_UNUSED_VAR(x) (void)(x)
#  endif
#endif
#ifndef CYTHON_MAYBE_UNUSED_VAR
  #define CYTHON_MAYBE_UNUSED_VAR(x) CYTHON_UNUSED_VAR(x)
#endif
#ifndef CYTHON_NCP_UNUSED
# if CYTHON_COMPILING_IN_CPYTHON && !CYTHON_COMPILING_IN_CPYTHON_FREETHREADING
#  define CYTHON_NCP_UNUSED
# else
#  define CYTHON_NCP_UNUSED CYTHON_UNUSED
# endif
#endif
#ifndef CYTHON_USE_CPP_STD_MOVE
  #if defined(__cplusplus) && (\
    __cplusplus >= 201103L || (defined(_MSC_VER) && _MSC_VER >= 1600))
    #define CYTHON_USE_CPP_STD_MOVE 1
  #else
    #define CYTHON_USE_CPP_STD_MOVE 0
  #endif
#endif
#define __Pyx_void_to_None(void_result) ((void)(void_result), Py_INCREF(Py_None), Py_None)
#include <stdint.h>
typedef uintptr_t  __pyx_uintptr_t;
#ifndef CYTHON_FALLTHROUGH
  #if defined(__cplusplus)
    /* for clang __has_cpp_attribute(fallthrough) is true even before C++17
     * but leads to warnings with -pedantic, since it is a C++17 feature */
    #if ((defined(_MSVC_LANG) && _MSVC_LANG >= 201703L) || __cplusplus >= 201703L)
      #if __has_cpp_attribute(fallthrough)
        #define CYTHON_FALLTHROUGH [[fallthrough]]
      #endif
    #endif
    #ifndef CYTHON_FALLTHROUGH
      #if __has_cpp_attribute(clang::fallthrough)
        #define CYTHON_FALLTHROUGH [[clang::fallthrough]]
      #elif __has_cpp_attribute(gnu::fallthrough)
        #define CYTHON_FALLTHROUGH [[gnu::fallthrough]]
      #endif
    #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 Py_UNREACHABLE
  #define Py_UNREACHABLE()  assert(0); abort()
#endif
#ifdef __cplusplus
  template <typename T>
  struct __PYX_IS_UNSIGNED_IMPL {static const bool value = T(0) < T(-1);};
  #define __PYX_IS_UNSIGNED(type) (__PYX_IS_UNSIGNED_IMPL<type>::value)
#else
  #define __PYX_IS_UNSIGNED(type) (((type)-1) > 0)
#endif
#if CYTHON_COMPILING_IN_PYPY == 1
  #define __PYX_NEED_TP_PRINT_SLOT  (PY_VERSION_HEX < 0x030A0000)
#else
  #define __PYX_NEED_TP_PRINT_SLOT  (PY_VERSION_HEX < 0x03090000)
#endif
#define __PYX_REINTERPRET_FUNCION(func_pointer, other_pointer) ((func_pointer)(void(*)(void))(other_pointer))

/* CInitCode */
#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

/* PythonCompatibility */
#define __PYX_BUILD_PY_SSIZE_T "n"
#define CYTHON_FORMAT_SSIZE_T "z"
#define __Pyx_BUILTIN_MODULE_NAME "builtins"
#define __Pyx_DefaultClassType PyType_Type
#if CYTHON_COMPILING_IN_LIMITED_API
    #ifndef CO_OPTIMIZED
    static int CO_OPTIMIZED;
    #endif
    #ifndef CO_NEWLOCALS
    static int CO_NEWLOCALS;
    #endif
    #ifndef CO_VARARGS
    static int CO_VARARGS;
    #endif
    #ifndef CO_VARKEYWORDS
    static int CO_VARKEYWORDS;
    #endif
    #ifndef CO_ASYNC_GENERATOR
    static int CO_ASYNC_GENERATOR;
    #endif
    #ifndef CO_GENERATOR
    static int CO_GENERATOR;
    #endif
    #ifndef CO_COROUTINE
    static int CO_COROUTINE;
    #endif
#else
    #ifndef CO_COROUTINE
      #define CO_COROUTINE 0x80
    #endif
    #ifndef CO_ASYNC_GENERATOR
      #define CO_ASYNC_GENERATOR 0x200
    #endif
#endif
static int __Pyx_init_co_variables(void);
#if PY_VERSION_HEX >= 0x030900A4 || defined(Py_IS_TYPE)
  #define __Pyx_IS_TYPE(ob, type) Py_IS_TYPE(ob, type)
#else
  #define __Pyx_IS_TYPE(ob, type) (((const PyObject*)ob)->ob_type == (type))
#endif
#if PY_VERSION_HEX >= 0x030A00B1 || defined(Py_Is)
  #define __Pyx_Py_Is(x, y)  Py_Is(x, y)
#else
  #define __Pyx_Py_Is(x, y) ((x) == (y))
#endif
#if PY_VERSION_HEX >= 0x030A00B1 || defined(Py_IsNone)
  #define __Pyx_Py_IsNone(ob) Py_IsNone(ob)
#else
  #define __Pyx_Py_IsNone(ob) __Pyx_Py_Is((ob), Py_None)
#endif
#if PY_VERSION_HEX >= 0x030A00B1 || defined(Py_IsTrue)
  #define __Pyx_Py_IsTrue(ob) Py_IsTrue(ob)
#else
  #define __Pyx_Py_IsTrue(ob) __Pyx_Py_Is((ob), Py_True)
#endif
#if PY_VERSION_HEX >= 0x030A00B1 || defined(Py_IsFalse)
  #define __Pyx_Py_IsFalse(ob) Py_IsFalse(ob)
#else
  #define __Pyx_Py_IsFalse(ob) __Pyx_Py_Is((ob), Py_False)
#endif
#define __Pyx_NoneAsNull(obj)  (__Pyx_Py_IsNone(obj) ? NULL : (obj))
#if PY_VERSION_HEX >= 0x030900F0 && !CYTHON_COMPILING_IN_PYPY
  #define __Pyx_PyObject_GC_IsFinalized(o) PyObject_GC_IsFinalized(o)
#else
  #define __Pyx_PyObject_GC_IsFinalized(o) _PyGC_FINALIZED(o)
#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 Py_TPFLAGS_SEQUENCE
  #define Py_TPFLAGS_SEQUENCE 0
#endif
#ifndef Py_TPFLAGS_MAPPING
  #define Py_TPFLAGS_MAPPING 0
#endif
#ifndef Py_TPFLAGS_IMMUTABLETYPE
  #define Py_TPFLAGS_IMMUTABLETYPE (1UL << 8)
#endif
#ifndef Py_TPFLAGS_DISALLOW_INSTANTIATION
  #define Py_TPFLAGS_DISALLOW_INSTANTIATION (1UL << 7)
#endif
#ifndef METH_STACKLESS
  #define METH_STACKLESS 0
#endif
#ifndef 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
  #if PY_VERSION_HEX >= 0x030d00A4
  #  define __Pyx_PyCFunctionFast PyCFunctionFast
  #  define __Pyx_PyCFunctionFastWithKeywords PyCFunctionFastWithKeywords
  #else
  #  define __Pyx_PyCFunctionFast _PyCFunctionFast
  #  define __Pyx_PyCFunctionFastWithKeywords _PyCFunctionFastWithKeywords
  #endif
#endif
#if CYTHON_METH_FASTCALL
  #define __Pyx_METH_FASTCALL METH_FASTCALL
  #define __Pyx_PyCFunction_FastCall __Pyx_PyCFunctionFast
  #define __Pyx_PyCFunction_FastCallWithKeywords __Pyx_PyCFunctionFastWithKeywords
#else
  #define __Pyx_METH_FASTCALL METH_VARARGS
  #define __Pyx_PyCFunction_FastCall PyCFunction
  #define __Pyx_PyCFunction_FastCallWithKeywords PyCFunctionWithKeywords
#endif
#if CYTHON_VECTORCALL
  #define __pyx_vectorcallfunc vectorcallfunc
  #define __Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET  PY_VECTORCALL_ARGUMENTS_OFFSET
  #define __Pyx_PyVectorcall_NARGS(n)  PyVectorcall_NARGS((size_t)(n))
#else
  #define __Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET  0
  #define __Pyx_PyVectorcall_NARGS(n)  ((Py_ssize_t)(n))
#endif
#if PY_VERSION_HEX >= 0x030900B1
#define __Pyx_PyCFunction_CheckExact(func)  PyCFunction_CheckExact(func)
#else
#define __Pyx_PyCFunction_CheckExact(func)  PyCFunction_Check(func)
#endif
#define __Pyx_CyOrPyCFunction_Check(func)  PyCFunction_Check(func)
#if CYTHON_COMPILING_IN_CPYTHON
#define __Pyx_CyOrPyCFunction_GET_FUNCTION(func)  (((PyCFunctionObject*)(func))->m_ml->ml_meth)
#elif !CYTHON_COMPILING_IN_LIMITED_API
#define __Pyx_CyOrPyCFunction_GET_FUNCTION(func)  PyCFunction_GET_FUNCTION(func)
#endif
#if CYTHON_COMPILING_IN_CPYTHON
#define __Pyx_CyOrPyCFunction_GET_FLAGS(func)  (((PyCFunctionObject*)(func))->m_ml->ml_flags)
static CYTHON_INLINE PyObject* __Pyx_CyOrPyCFunction_GET_SELF(PyObject *func) {
    return (__Pyx_CyOrPyCFunction_GET_FLAGS(func) & METH_STATIC) ? NULL : ((PyCFunctionObject*)func)->m_self;
}
#endif
static CYTHON_INLINE int __Pyx__IsSameCFunction(PyObject *func, void (*cfunc)(void)) {
#if CYTHON_COMPILING_IN_LIMITED_API
    return PyCFunction_Check(func) && PyCFunction_GetFunction(func) == (PyCFunction) cfunc;
#else
    return PyCFunction_Check(func) && PyCFunction_GET_FUNCTION(func) == (PyCFunction) cfunc;
#endif
}
#define __Pyx_IsSameCFunction(func, cfunc)   __Pyx__IsSameCFunction(func, cfunc)
#if PY_VERSION_HEX < 0x03090000 || (CYTHON_COMPILING_IN_LIMITED_API && __PYX_LIMITED_VERSION_HEX < 0x030A0000)
  #define __Pyx_PyType_FromModuleAndSpec(m, s, b)  ((void)m, PyType_FromSpecWithBases(s, b))
  typedef PyObject *(*__Pyx_PyCMethod)(PyObject *, PyTypeObject *, PyObject *const *, size_t, PyObject *);
#else
  #define __Pyx_PyType_FromModuleAndSpec(m, s, b)  PyType_FromModuleAndSpec(m, s, b)
  #define __Pyx_PyCMethod  PyCMethod
#endif
#ifndef METH_METHOD
  #define METH_METHOD 0x200
#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_LIMITED_API
  #define __Pyx_PyFrame_SetLineNumber(frame, lineno)
#elif CYTHON_COMPILING_IN_GRAAL && defined(GRAALPY_VERSION_NUM) && GRAALPY_VERSION_NUM > 0x19000000
  #define __Pyx_PyCode_HasFreeVars(co)  (PyCode_GetNumFree(co) > 0)
  #define __Pyx_PyFrame_SetLineNumber(frame, lineno) GraalPyFrame_SetLineNumber((frame), (lineno))
#elif CYTHON_COMPILING_IN_GRAAL
  #define __Pyx_PyCode_HasFreeVars(co)  (PyCode_GetNumFree(co) > 0)
  #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_COMPILING_IN_LIMITED_API
  #define __Pyx_PyThreadState_Current PyThreadState_Get()
#elif !CYTHON_FAST_THREAD_STATE
  #define __Pyx_PyThreadState_Current PyThreadState_GET()
#elif PY_VERSION_HEX >= 0x030d00A1
  #define __Pyx_PyThreadState_Current PyThreadState_GetUnchecked()
#else
  #define __Pyx_PyThreadState_Current _PyThreadState_UncheckedGet()
#endif
#if CYTHON_USE_MODULE_STATE
static CYTHON_INLINE void *__Pyx__PyModule_GetState(PyObject *op)
{
    void *result;
    result = PyModule_GetState(op);
    if (!result)
        Py_FatalError("Couldn't find the module state");
    return result;
}
#define __Pyx_PyModule_GetState(o) (__pyx_mstatetype *)__Pyx__PyModule_GetState(o)
#else
#define __Pyx_PyModule_GetState(op) ((void)op,__pyx_mstate_global)
#endif
#define __Pyx_PyObject_GetSlot(obj, name, func_ctype)  __Pyx_PyType_GetSlot(Py_TYPE((PyObject *) obj), name, func_ctype)
#define __Pyx_PyObject_TryGetSlot(obj, name, func_ctype) __Pyx_PyType_TryGetSlot(Py_TYPE(obj), name, func_ctype)
#define __Pyx_PyObject_GetSubSlot(obj, sub, name, func_ctype) __Pyx_PyType_GetSubSlot(Py_TYPE(obj), sub, name, func_ctype)
#define __Pyx_PyObject_TryGetSubSlot(obj, sub, name, func_ctype) __Pyx_PyType_TryGetSubSlot(Py_TYPE(obj), sub, name, func_ctype)
#if CYTHON_USE_TYPE_SLOTS
  #define __Pyx_PyType_GetSlot(type, name, func_ctype)  ((type)->name)
  #define __Pyx_PyType_TryGetSlot(type, name, func_ctype) __Pyx_PyType_GetSlot(type, name, func_ctype)
  #define __Pyx_PyType_GetSubSlot(type, sub, name, func_ctype) (((type)->sub) ? ((type)->sub->name) : NULL)
  #define __Pyx_PyType_TryGetSubSlot(type, sub, name, func_ctype) __Pyx_PyType_GetSubSlot(type, sub, name, func_ctype)
#else
  #define __Pyx_PyType_GetSlot(type, name, func_ctype)  ((func_ctype) PyType_GetSlot((type), Py_##name))
  #define __Pyx_PyType_TryGetSlot(type, name, func_ctype)\
    ((__PYX_LIMITED_VERSION_HEX >= 0x030A0000 ||\
     (PyType_GetFlags(type) & Py_TPFLAGS_HEAPTYPE) || __Pyx_get_runtime_version() >= 0x030A0000) ?\
     __Pyx_PyType_GetSlot(type, name, func_ctype) : NULL)
  #define __Pyx_PyType_GetSubSlot(obj, sub, name, func_ctype) __Pyx_PyType_GetSlot(obj, name, func_ctype)
  #define __Pyx_PyType_TryGetSubSlot(obj, sub, name, func_ctype) __Pyx_PyType_TryGetSlot(obj, name, func_ctype)
#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
#define __Pyx_PyNumber_Divide(x,y)         PyNumber_TrueDivide(x,y)
#define __Pyx_PyNumber_InPlaceDivide(x,y)  PyNumber_InPlaceTrueDivide(x,y)
#if CYTHON_COMPILING_IN_CPYTHON && CYTHON_USE_UNICODE_INTERNALS
#define __Pyx_PyDict_GetItemStrWithError(dict, name)  _PyDict_GetItem_KnownHash(dict, name, ((PyASCIIObject *) name)->hash)
static CYTHON_INLINE PyObject * __Pyx_PyDict_GetItemStr(PyObject *dict, PyObject *name) {
    PyObject *res = __Pyx_PyDict_GetItemStrWithError(dict, name);
    if (res == NULL) PyErr_Clear();
    return res;
}
#elif !CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07020000
#define __Pyx_PyDict_GetItemStrWithError  PyDict_GetItemWithError
#define __Pyx_PyDict_GetItemStr           PyDict_GetItem
#else
static CYTHON_INLINE PyObject * __Pyx_PyDict_GetItemStrWithError(PyObject *dict, PyObject *name) {
#if CYTHON_COMPILING_IN_PYPY
    return PyDict_GetItem(dict, name);
#else
    PyDictEntry *ep;
    PyDictObject *mp = (PyDictObject*) dict;
    long hash = ((PyStringObject *) name)->ob_shash;
    assert(hash != -1);
    ep = (mp->ma_lookup)(mp, name, hash);
    if (ep == NULL) {
        return NULL;
    }
    return ep->me_value;
#endif
}
#define __Pyx_PyDict_GetItemStr           PyDict_GetItem
#endif
#if CYTHON_USE_TYPE_SLOTS
  #define __Pyx_PyType_GetFlags(tp)   (((PyTypeObject *)tp)->tp_flags)
  #define __Pyx_PyType_HasFeature(type, feature)  ((__Pyx_PyType_GetFlags(type) & (feature)) != 0)
#else
  #define __Pyx_PyType_GetFlags(tp)   (PyType_GetFlags((PyTypeObject *)tp))
  #define __Pyx_PyType_HasFeature(type, feature)  PyType_HasFeature(type, feature)
#endif
#define __Pyx_PyObject_GetIterNextFunc(iterator)  __Pyx_PyObject_GetSlot(iterator, tp_iternext, iternextfunc)
#if CYTHON_USE_TYPE_SPECS
#define __Pyx_PyHeapTypeObject_GC_Del(obj)  {\
    PyTypeObject *type = Py_TYPE((PyObject*)obj);\
    assert(__Pyx_PyType_HasFeature(type, Py_TPFLAGS_HEAPTYPE));\
    PyObject_GC_Del(obj);\
    Py_DECREF(type);\
}
#else
#define __Pyx_PyHeapTypeObject_GC_Del(obj)  PyObject_GC_Del(obj)
#endif
#if CYTHON_COMPILING_IN_LIMITED_API
  #define __Pyx_PyUnicode_READY(op)       (0)
  #define __Pyx_PyUnicode_READ_CHAR(u, i) PyUnicode_ReadChar(u, i)
  #define __Pyx_PyUnicode_MAX_CHAR_VALUE(u)   ((void)u, 1114111U)
  #define __Pyx_PyUnicode_KIND(u)         ((void)u, (0))
  #define __Pyx_PyUnicode_DATA(u)         ((void*)u)
  #define __Pyx_PyUnicode_READ(k, d, i)   ((void)k, PyUnicode_ReadChar((PyObject*)(d), i))
  #define __Pyx_PyUnicode_IS_TRUE(u)      (0 != PyUnicode_GetLength(u))
#else
  #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_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)         ((int)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, (Py_UCS4) 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
#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
  #if !defined(PyUnicode_DecodeUnicodeEscape)
    #define PyUnicode_DecodeUnicodeEscape(s, size, errors)  PyUnicode_Decode(s, size, "unicode_escape", errors)
  #endif
  #if !defined(PyUnicode_Contains)
    #define PyUnicode_Contains(u, s)  PySequence_Contains(u, s)
  #endif
  #if !defined(PyByteArray_Check)
    #define PyByteArray_Check(obj)  PyObject_TypeCheck(obj, &PyByteArray_Type)
  #endif
  #if !defined(PyObject_Format)
    #define PyObject_Format(obj, fmt)  PyObject_CallMethod(obj, "__format__", "O", fmt)
  #endif
#endif
#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 CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  #define __Pyx_PySequence_ListKeepNew(obj)\
    (likely(PyList_CheckExact(obj) && PyUnstable_Object_IsUniquelyReferenced(obj)) ? __Pyx_NewRef(obj) : PySequence_List(obj))
#elif CYTHON_COMPILING_IN_CPYTHON
  #define __Pyx_PySequence_ListKeepNew(obj)\
    (likely(PyList_CheckExact(obj) && Py_REFCNT(obj) == 1) ? __Pyx_NewRef(obj) : PySequence_List(obj))
#else
  #define __Pyx_PySequence_ListKeepNew(obj)  PySequence_List(obj)
#endif
#ifndef PySet_CheckExact
  #define PySet_CheckExact(obj)        __Pyx_IS_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
enum __Pyx_ReferenceSharing {
  __Pyx_ReferenceSharing_DefinitelyUnique, // We created it so we know it's unshared - no need to check
  __Pyx_ReferenceSharing_OwnStrongReference,
  __Pyx_ReferenceSharing_FunctionArgument,
  __Pyx_ReferenceSharing_SharedReference, // Never trust it to be unshared because it's a global or similar
};
#if CYTHON_COMPILING_IN_CPYTHON_FREETHREADING && PY_VERSION_HEX >= 0x030E0000
#define __Pyx_IS_UNIQUELY_REFERENCED(o, sharing)\
    (sharing == __Pyx_ReferenceSharing_DefinitelyUnique ? 1 :\
      (sharing == __Pyx_ReferenceSharing_FunctionArgument ? PyUnstable_Object_IsUniqueReferencedTemporary(o) :\
      (sharing == __Pyx_ReferenceSharing_OwnStrongReference ? PyUnstable_Object_IsUniquelyReferenced(o) : 0)))
#elif (CYTHON_COMPILING_IN_CPYTHON && !CYTHON_COMPILING_IN_CPYTHON_FREETHREADING) || CYTHON_COMPILING_IN_LIMITED_API
#define __Pyx_IS_UNIQUELY_REFERENCED(o, sharing) (((void)sharing), Py_REFCNT(o) == 1)
#else
#define __Pyx_IS_UNIQUELY_REFERENCED(o, sharing) (((void)o), ((void)sharing), 0)
#endif
#if CYTHON_AVOID_BORROWED_REFS || CYTHON_AVOID_THREAD_UNSAFE_BORROWED_REFS
  #if __PYX_LIMITED_VERSION_HEX >= 0x030d0000
    #define __Pyx_PyList_GetItemRef(o, i) PyList_GetItemRef(o, i)
  #elif CYTHON_COMPILING_IN_LIMITED_API || !CYTHON_ASSUME_SAFE_MACROS
    #define __Pyx_PyList_GetItemRef(o, i) (likely((i) >= 0) ? PySequence_GetItem(o, i) : (PyErr_SetString(PyExc_IndexError, "list index out of range"), (PyObject*)NULL))
  #else
    #define __Pyx_PyList_GetItemRef(o, i) PySequence_ITEM(o, i)
  #endif
#elif CYTHON_COMPILING_IN_LIMITED_API || !CYTHON_ASSUME_SAFE_MACROS
  #if __PYX_LIMITED_VERSION_HEX >= 0x030d0000
    #define __Pyx_PyList_GetItemRef(o, i) PyList_GetItemRef(o, i)
  #else
    #define __Pyx_PyList_GetItemRef(o, i) __Pyx_XNewRef(PyList_GetItem(o, i))
  #endif
#else
  #define __Pyx_PyList_GetItemRef(o, i) __Pyx_NewRef(PyList_GET_ITEM(o, i))
#endif
#if CYTHON_AVOID_THREAD_UNSAFE_BORROWED_REFS && !CYTHON_COMPILING_IN_LIMITED_API && CYTHON_ASSUME_SAFE_MACROS
  #define __Pyx_PyList_GetItemRefFast(o, i, unsafe_shared) (__Pyx_IS_UNIQUELY_REFERENCED(o, unsafe_shared) ?\
    __Pyx_NewRef(PyList_GET_ITEM(o, i)) : __Pyx_PyList_GetItemRef(o, i))
#else
  #define __Pyx_PyList_GetItemRefFast(o, i, unsafe_shared) __Pyx_PyList_GetItemRef(o, i)
#endif
#if __PYX_LIMITED_VERSION_HEX >= 0x030d0000
#define __Pyx_PyDict_GetItemRef(dict, key, result) PyDict_GetItemRef(dict, key, result)
#elif CYTHON_AVOID_BORROWED_REFS || CYTHON_AVOID_THREAD_UNSAFE_BORROWED_REFS
static CYTHON_INLINE int __Pyx_PyDict_GetItemRef(PyObject *dict, PyObject *key, PyObject **result) {
  *result = PyObject_GetItem(dict, key);
  if (*result == NULL) {
    if (PyErr_ExceptionMatches(PyExc_KeyError)) {
      PyErr_Clear();
      return 0;
    }
    return -1;
  }
  return 1;
}
#else
static CYTHON_INLINE int __Pyx_PyDict_GetItemRef(PyObject *dict, PyObject *key, PyObject **result) {
  *result = PyDict_GetItemWithError(dict, key);
  if (*result == NULL) {
    return PyErr_Occurred() ? -1 : 0;
  }
  Py_INCREF(*result);
  return 1;
}
#endif
#if defined(CYTHON_DEBUG_VISIT_CONST) && CYTHON_DEBUG_VISIT_CONST
  #define __Pyx_VISIT_CONST(obj)  Py_VISIT(obj)
#else
  #define __Pyx_VISIT_CONST(obj)
#endif
#if CYTHON_ASSUME_SAFE_MACROS
  #define __Pyx_PySequence_ITEM(o, i) PySequence_ITEM(o, i)
  #define __Pyx_PySequence_SIZE(seq)  Py_SIZE(seq)
  #define __Pyx_PyTuple_SET_ITEM(o, i, v) (PyTuple_SET_ITEM(o, i, v), (0))
  #define __Pyx_PyTuple_GET_ITEM(o, i) PyTuple_GET_ITEM(o, i)
  #define __Pyx_PyList_SET_ITEM(o, i, v) (PyList_SET_ITEM(o, i, v), (0))
  #define __Pyx_PyList_GET_ITEM(o, i) PyList_GET_ITEM(o, i)
#else
  #define __Pyx_PySequence_ITEM(o, i) PySequence_GetItem(o, i)
  #define __Pyx_PySequence_SIZE(seq)  PySequence_Size(seq)
  #define __Pyx_PyTuple_SET_ITEM(o, i, v) PyTuple_SetItem(o, i, v)
  #define __Pyx_PyTuple_GET_ITEM(o, i) PyTuple_GetItem(o, i)
  #define __Pyx_PyList_SET_ITEM(o, i, v) PyList_SetItem(o, i, v)
  #define __Pyx_PyList_GET_ITEM(o, i) PyList_GetItem(o, i)
#endif
#if CYTHON_ASSUME_SAFE_SIZE
  #define __Pyx_PyTuple_GET_SIZE(o) PyTuple_GET_SIZE(o)
  #define __Pyx_PyList_GET_SIZE(o) PyList_GET_SIZE(o)
  #define __Pyx_PySet_GET_SIZE(o) PySet_GET_SIZE(o)
  #define __Pyx_PyBytes_GET_SIZE(o) PyBytes_GET_SIZE(o)
  #define __Pyx_PyByteArray_GET_SIZE(o) PyByteArray_GET_SIZE(o)
  #define __Pyx_PyUnicode_GET_LENGTH(o) PyUnicode_GET_LENGTH(o)
#else
  #define __Pyx_PyTuple_GET_SIZE(o) PyTuple_Size(o)
  #define __Pyx_PyList_GET_SIZE(o) PyList_Size(o)
  #define __Pyx_PySet_GET_SIZE(o) PySet_Size(o)
  #define __Pyx_PyBytes_GET_SIZE(o) PyBytes_Size(o)
  #define __Pyx_PyByteArray_GET_SIZE(o) PyByteArray_Size(o)
  #define __Pyx_PyUnicode_GET_LENGTH(o) PyUnicode_GetLength(o)
#endif
#if CYTHON_COMPILING_IN_PYPY && !defined(PyUnicode_InternFromString)
  #define PyUnicode_InternFromString(s) PyUnicode_FromString(s)
#endif
#define __Pyx_PyLong_FromHash_t PyLong_FromSsize_t
#define __Pyx_PyLong_AsHash_t   __Pyx_PyIndex_AsSsize_t
#if __PYX_LIMITED_VERSION_HEX >= 0x030A0000
    #define __Pyx_PySendResult PySendResult
#else
    typedef enum {
        PYGEN_RETURN = 0,
        PYGEN_ERROR = -1,
        PYGEN_NEXT = 1,
    } __Pyx_PySendResult;
#endif
#if CYTHON_COMPILING_IN_LIMITED_API || PY_VERSION_HEX < 0x030A00A3
  typedef __Pyx_PySendResult (*__Pyx_pyiter_sendfunc)(PyObject *iter, PyObject *value, PyObject **result);
#else
  #define __Pyx_pyiter_sendfunc sendfunc
#endif
#if !CYTHON_USE_AM_SEND
#define __PYX_HAS_PY_AM_SEND 0
#elif __PYX_LIMITED_VERSION_HEX >= 0x030A0000
#define __PYX_HAS_PY_AM_SEND 1
#else
#define __PYX_HAS_PY_AM_SEND 2  // our own backported implementation
#endif
#if __PYX_HAS_PY_AM_SEND < 2
    #define __Pyx_PyAsyncMethodsStruct PyAsyncMethods
#else
    typedef struct {
        unaryfunc am_await;
        unaryfunc am_aiter;
        unaryfunc am_anext;
        __Pyx_pyiter_sendfunc am_send;
    } __Pyx_PyAsyncMethodsStruct;
    #define __Pyx_SlotTpAsAsync(s) ((PyAsyncMethods*)(s))
#endif
#if CYTHON_USE_AM_SEND && PY_VERSION_HEX < 0x030A00F0
    #define __Pyx_TPFLAGS_HAVE_AM_SEND (1UL << 21)
#else
    #define __Pyx_TPFLAGS_HAVE_AM_SEND (0)
#endif
#if PY_VERSION_HEX >= 0x03090000
#define __Pyx_PyInterpreterState_Get() PyInterpreterState_Get()
#else
#define __Pyx_PyInterpreterState_Get() PyThreadState_Get()->interp
#endif
#if CYTHON_COMPILING_IN_LIMITED_API && PY_VERSION_HEX < 0x030A0000
#ifdef __cplusplus
extern "C"
#endif
PyAPI_FUNC(void *) PyMem_Calloc(size_t nelem, size_t elsize);
#endif
#if CYTHON_COMPILING_IN_LIMITED_API
static int __Pyx_init_co_variable(PyObject *inspect, const char* name, int *write_to) {
    int value;
    PyObject *py_value = PyObject_GetAttrString(inspect, name);
    if (!py_value) return 0;
    value = (int) PyLong_AsLong(py_value);
    Py_DECREF(py_value);
    *write_to = value;
    return value != -1 || !PyErr_Occurred();
}
static int __Pyx_init_co_variables(void) {
    PyObject *inspect;
    int result;
    inspect = PyImport_ImportModule("inspect");
    result =
#if !defined(CO_OPTIMIZED)
        __Pyx_init_co_variable(inspect, "CO_OPTIMIZED", &CO_OPTIMIZED) &&
#endif
#if !defined(CO_NEWLOCALS)
        __Pyx_init_co_variable(inspect, "CO_NEWLOCALS", &CO_NEWLOCALS) &&
#endif
#if !defined(CO_VARARGS)
        __Pyx_init_co_variable(inspect, "CO_VARARGS", &CO_VARARGS) &&
#endif
#if !defined(CO_VARKEYWORDS)
        __Pyx_init_co_variable(inspect, "CO_VARKEYWORDS", &CO_VARKEYWORDS) &&
#endif
#if !defined(CO_ASYNC_GENERATOR)
        __Pyx_init_co_variable(inspect, "CO_ASYNC_GENERATOR", &CO_ASYNC_GENERATOR) &&
#endif
#if !defined(CO_GENERATOR)
        __Pyx_init_co_variable(inspect, "CO_GENERATOR", &CO_GENERATOR) &&
#endif
#if !defined(CO_COROUTINE)
        __Pyx_init_co_variable(inspect, "CO_COROUTINE", &CO_COROUTINE) &&
#endif
        1;
    Py_DECREF(inspect);
    return result ? 0 : -1;
}
#else
static int __Pyx_init_co_variables(void) {
    return 0;  // It's a limited API-only feature
}
#endif

/* MathInitCode */
#if defined(_WIN32) || defined(WIN32) || defined(MS_WINDOWS)
  #ifndef _USE_MATH_DEFINES
    #define _USE_MATH_DEFINES
  #endif
#endif
#include <math.h>
#if defined(__CYGWIN__) && defined(_LDBL_EQ_DBL)
#define __Pyx_truncl trunc
#else
#define __Pyx_truncl truncl
#endif

#ifndef CYTHON_CLINE_IN_TRACEBACK_RUNTIME
#define CYTHON_CLINE_IN_TRACEBACK_RUNTIME 0
#endif
#ifndef CYTHON_CLINE_IN_TRACEBACK
#define CYTHON_CLINE_IN_TRACEBACK CYTHON_CLINE_IN_TRACEBACK_RUNTIME
#endif
#if CYTHON_CLINE_IN_TRACEBACK
#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; }
#else
#define __PYX_MARK_ERR_POS(f_index, lineno)  { __pyx_filename = __pyx_f[f_index]; (void) __pyx_filename; __pyx_lineno = lineno; (void) __pyx_lineno; (void) __pyx_clineno; }
#endif
#define __PYX_ERR(f_index, lineno, Ln_error) \
    { __PYX_MARK_ERR_POS(f_index, lineno) goto Ln_error; }

#ifdef CYTHON_EXTERN_C
    #undef __PYX_EXTERN_C
    #define __PYX_EXTERN_C CYTHON_EXTERN_C
#elif defined(__PYX_EXTERN_C)
    #ifdef _MSC_VER
    #pragma message ("Please do not define the '__PYX_EXTERN_C' macro externally. Use 'CYTHON_EXTERN_C' instead.")
    #else
    #warning Please do not define the '__PYX_EXTERN_C' macro externally. Use 'CYTHON_EXTERN_C' instead.
    #endif
#else
  #ifdef __cplusplus
    #define __PYX_EXTERN_C extern "C"
  #else
    #define __PYX_EXTERN_C extern
  #endif
#endif

#define __PYX_HAVE__kivy__graphics__opengl
#define __PYX_HAVE_API__kivy__graphics__opengl
/* Early includes */
#include "math.h"
#include "stdlib.h"
#include "string.h"
#include "gl_redirect.h"
#ifdef _OPENMP
#include <omp.h>
#endif /* _OPENMP */

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

#ifdef CYTHON_FREETHREADING_COMPATIBLE
#if CYTHON_FREETHREADING_COMPATIBLE
#define __Pyx_FREETHREADING_COMPATIBLE Py_MOD_GIL_NOT_USED
#else
#define __Pyx_FREETHREADING_COMPATIBLE Py_MOD_GIL_USED
#endif
#else
#define __Pyx_FREETHREADING_COMPATIBLE Py_MOD_GIL_USED
#endif
#define __PYX_DEFAULT_STRING_ENCODING_IS_ASCII 0
#define __PYX_DEFAULT_STRING_ENCODING_IS_UTF8 0
#define __PYX_DEFAULT_STRING_ENCODING "utf-8"
#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 Py_ssize_t __Pyx_ssize_strlen(const char *s);
static CYTHON_INLINE const char* __Pyx_PyObject_AsString(PyObject*);
static CYTHON_INLINE const char* __Pyx_PyObject_AsStringAndSize(PyObject*, Py_ssize_t* length);
static CYTHON_INLINE PyObject* __Pyx_PyByteArray_FromString(const char*);
#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 CYTHON_ASSUME_SAFE_MACROS
    #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_PyByteArray_AsString(s) PyByteArray_AS_STRING(s)
#else
    #define __Pyx_PyBytes_AsWritableString(s)     ((char*) PyBytes_AsString(s))
    #define __Pyx_PyBytes_AsWritableSString(s)    ((signed char*) PyBytes_AsString(s))
    #define __Pyx_PyBytes_AsWritableUString(s)    ((unsigned char*) PyBytes_AsString(s))
    #define __Pyx_PyBytes_AsString(s)     ((const char*) PyBytes_AsString(s))
    #define __Pyx_PyBytes_AsSString(s)    ((const signed char*) PyBytes_AsString(s))
    #define __Pyx_PyBytes_AsUString(s)    ((const unsigned char*) PyBytes_AsString(s))
    #define __Pyx_PyByteArray_AsString(s) PyByteArray_AsString(s)
#endif
#define __Pyx_PyObject_AsWritableString(s)    ((char*)(__pyx_uintptr_t) __Pyx_PyObject_AsString(s))
#define __Pyx_PyObject_AsWritableSString(s)    ((signed char*)(__pyx_uintptr_t) __Pyx_PyObject_AsString(s))
#define __Pyx_PyObject_AsWritableUString(s)    ((unsigned char*)(__pyx_uintptr_t) __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_PyUnicode_FromCString(s) __Pyx_PyUnicode_FromString((const char*)s)
#define __Pyx_PyUnicode_FromOrdinal(o)       PyUnicode_FromOrdinal((int)o)
#define __Pyx_PyUnicode_AsUnicode            PyUnicode_AsUnicode
static CYTHON_INLINE PyObject *__Pyx_NewRef(PyObject *obj) {
#if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030a0000 || defined(Py_NewRef)
    return Py_NewRef(obj);
#else
    Py_INCREF(obj);
    return obj;
#endif
}
static CYTHON_INLINE PyObject *__Pyx_XNewRef(PyObject *obj) {
#if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030a0000 || defined(Py_XNewRef)
    return Py_XNewRef(obj);
#else
    Py_XINCREF(obj);
    return obj;
#endif
}
static CYTHON_INLINE PyObject *__Pyx_Owned_Py_None(int b);
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_Long(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_PyLong_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))
#define __Pyx_PyFloat_AS_DOUBLE(x) PyFloat_AS_DOUBLE(x)
#else
#define __Pyx_PyFloat_AsDouble(x) PyFloat_AsDouble(x)
#define __Pyx_PyFloat_AS_DOUBLE(x) PyFloat_AsDouble(x)
#endif
#define __Pyx_PyFloat_AsFloat(x) ((float) __Pyx_PyFloat_AsDouble(x))
#define __Pyx_PyNumber_Int(x) (PyLong_CheckExact(x) ? __Pyx_NewRef(x) : PyNumber_Long(x))
#if CYTHON_USE_PYLONG_INTERNALS
  #if PY_VERSION_HEX >= 0x030C00A7
  #ifndef _PyLong_SIGN_MASK
    #define _PyLong_SIGN_MASK 3
  #endif
  #ifndef _PyLong_NON_SIZE_BITS
    #define _PyLong_NON_SIZE_BITS 3
  #endif
  #define __Pyx_PyLong_Sign(x)  (((PyLongObject*)x)->long_value.lv_tag & _PyLong_SIGN_MASK)
  #define __Pyx_PyLong_IsNeg(x)  ((__Pyx_PyLong_Sign(x) & 2) != 0)
  #define __Pyx_PyLong_IsNonNeg(x)  (!__Pyx_PyLong_IsNeg(x))
  #define __Pyx_PyLong_IsZero(x)  (__Pyx_PyLong_Sign(x) & 1)
  #define __Pyx_PyLong_IsPos(x)  (__Pyx_PyLong_Sign(x) == 0)
  #define __Pyx_PyLong_CompactValueUnsigned(x)  (__Pyx_PyLong_Digits(x)[0])
  #define __Pyx_PyLong_DigitCount(x)  ((Py_ssize_t) (((PyLongObject*)x)->long_value.lv_tag >> _PyLong_NON_SIZE_BITS))
  #define __Pyx_PyLong_SignedDigitCount(x)\
        ((1 - (Py_ssize_t) __Pyx_PyLong_Sign(x)) * __Pyx_PyLong_DigitCount(x))
  #if defined(PyUnstable_Long_IsCompact) && defined(PyUnstable_Long_CompactValue)
    #define __Pyx_PyLong_IsCompact(x)     PyUnstable_Long_IsCompact((PyLongObject*) x)
    #define __Pyx_PyLong_CompactValue(x)  PyUnstable_Long_CompactValue((PyLongObject*) x)
  #else
    #define __Pyx_PyLong_IsCompact(x)     (((PyLongObject*)x)->long_value.lv_tag < (2 << _PyLong_NON_SIZE_BITS))
    #define __Pyx_PyLong_CompactValue(x)  ((1 - (Py_ssize_t) __Pyx_PyLong_Sign(x)) * (Py_ssize_t) __Pyx_PyLong_Digits(x)[0])
  #endif
  typedef Py_ssize_t  __Pyx_compact_pylong;
  typedef size_t  __Pyx_compact_upylong;
  #else
  #define __Pyx_PyLong_IsNeg(x)  (Py_SIZE(x) < 0)
  #define __Pyx_PyLong_IsNonNeg(x)  (Py_SIZE(x) >= 0)
  #define __Pyx_PyLong_IsZero(x)  (Py_SIZE(x) == 0)
  #define __Pyx_PyLong_IsPos(x)  (Py_SIZE(x) > 0)
  #define __Pyx_PyLong_CompactValueUnsigned(x)  ((Py_SIZE(x) == 0) ? 0 : __Pyx_PyLong_Digits(x)[0])
  #define __Pyx_PyLong_DigitCount(x)  __Pyx_sst_abs(Py_SIZE(x))
  #define __Pyx_PyLong_SignedDigitCount(x)  Py_SIZE(x)
  #define __Pyx_PyLong_IsCompact(x)  (Py_SIZE(x) == 0 || Py_SIZE(x) == 1 || Py_SIZE(x) == -1)
  #define __Pyx_PyLong_CompactValue(x)\
        ((Py_SIZE(x) == 0) ? (sdigit) 0 : ((Py_SIZE(x) < 0) ? -(sdigit)__Pyx_PyLong_Digits(x)[0] : (sdigit)__Pyx_PyLong_Digits(x)[0]))
  typedef sdigit  __Pyx_compact_pylong;
  typedef digit  __Pyx_compact_upylong;
  #endif
  #if PY_VERSION_HEX >= 0x030C00A5
  #define __Pyx_PyLong_Digits(x)  (((PyLongObject*)x)->long_value.ob_digit)
  #else
  #define __Pyx_PyLong_Digits(x)  (((PyLongObject*)x)->ob_digit)
  #endif
#endif
#if __PYX_DEFAULT_STRING_ENCODING_IS_UTF8
  #define __Pyx_PyUnicode_FromStringAndSize(c_str, size) PyUnicode_DecodeUTF8(c_str, size, NULL)
#elif __PYX_DEFAULT_STRING_ENCODING_IS_ASCII
  #define __Pyx_PyUnicode_FromStringAndSize(c_str, size) PyUnicode_DecodeASCII(c_str, size, NULL)
#else
  #define __Pyx_PyUnicode_FromStringAndSize(c_str, size) PyUnicode_Decode(c_str, size, __PYX_DEFAULT_STRING_ENCODING, NULL)
#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__ */
/* PretendToInitialize */
#ifdef __cplusplus
#if __cplusplus > 201103L
#include <type_traits>
#endif
template <typename T>
static void __Pyx_pretend_to_initialize(T* ptr) {
#if __cplusplus > 201103L
    if ((std::is_trivially_default_constructible<T>::value))
#endif
        *ptr = T();
    (void)ptr;
}
#else
static CYTHON_INLINE void __Pyx_pretend_to_initialize(void* ptr) { (void)ptr; }
#endif


#if !CYTHON_USE_MODULE_STATE
static PyObject *__pyx_m = NULL;
#endif
static int __pyx_lineno;
static int __pyx_clineno = 0;
static const char * const __pyx_cfilenm = __FILE__;
static const char *__pyx_filename;

/* #### Code section: filename_table ### */

static const char* const __pyx_f[] = {
  "kivy/graphics/opengl.pyx",
};
/* #### Code section: utility_code_proto_before_types ### */
/* Atomics.proto (used by UnpackUnboundCMethod) */
#include <pythread.h>
#ifndef CYTHON_ATOMICS
    #define CYTHON_ATOMICS 1
#endif
#define __PYX_CYTHON_ATOMICS_ENABLED() CYTHON_ATOMICS
#define __PYX_GET_CYTHON_COMPILING_IN_CPYTHON_FREETHREADING() CYTHON_COMPILING_IN_CPYTHON_FREETHREADING
#define __pyx_atomic_int_type int
#define __pyx_nonatomic_int_type int
#if CYTHON_ATOMICS && (defined(__STDC_VERSION__) &&\
                        (__STDC_VERSION__ >= 201112L) &&\
                        !defined(__STDC_NO_ATOMICS__))
    #include <stdatomic.h>
#elif CYTHON_ATOMICS && (defined(__cplusplus) && (\
                    (__cplusplus >= 201103L) ||\
                    (defined(_MSC_VER) && _MSC_VER >= 1700)))
    #include <atomic>
#endif
#if CYTHON_ATOMICS && (defined(__STDC_VERSION__) &&\
                        (__STDC_VERSION__ >= 201112L) &&\
                        !defined(__STDC_NO_ATOMICS__) &&\
                       ATOMIC_INT_LOCK_FREE == 2)
    #undef __pyx_atomic_int_type
    #define __pyx_atomic_int_type atomic_int
    #define __pyx_atomic_ptr_type atomic_uintptr_t
    #define __pyx_nonatomic_ptr_type uintptr_t
    #define __pyx_atomic_incr_relaxed(value) atomic_fetch_add_explicit(value, 1, memory_order_relaxed)
    #define __pyx_atomic_incr_acq_rel(value) atomic_fetch_add_explicit(value, 1, memory_order_acq_rel)
    #define __pyx_atomic_decr_acq_rel(value) atomic_fetch_sub_explicit(value, 1, memory_order_acq_rel)
    #define __pyx_atomic_sub(value, arg) atomic_fetch_sub(value, arg)
    #define __pyx_atomic_int_cmp_exchange(value, expected, desired) atomic_compare_exchange_strong(value, expected, desired)
    #define __pyx_atomic_load(value) atomic_load(value)
    #define __pyx_atomic_store(value, new_value) atomic_store(value, new_value)
    #define __pyx_atomic_pointer_load_relaxed(value) atomic_load_explicit(value, memory_order_relaxed)
    #define __pyx_atomic_pointer_load_acquire(value) atomic_load_explicit(value, memory_order_acquire)
    #define __pyx_atomic_pointer_exchange(value, new_value) atomic_exchange(value, (__pyx_nonatomic_ptr_type)new_value)
    #define __pyx_atomic_pointer_cmp_exchange(value, expected, desired) atomic_compare_exchange_strong(value, expected, desired)
    #if defined(__PYX_DEBUG_ATOMICS) && defined(_MSC_VER)
        #pragma message ("Using standard C atomics")
    #elif defined(__PYX_DEBUG_ATOMICS)
        #warning "Using standard C atomics"
    #endif
#elif CYTHON_ATOMICS && (defined(__cplusplus) && (\
                    (__cplusplus >= 201103L) ||\
\
                    (defined(_MSC_VER) && _MSC_VER >= 1700)) &&\
                    ATOMIC_INT_LOCK_FREE == 2)
    #undef __pyx_atomic_int_type
    #define __pyx_atomic_int_type std::atomic_int
    #define __pyx_atomic_ptr_type std::atomic_uintptr_t
    #define __pyx_nonatomic_ptr_type uintptr_t
    #define __pyx_atomic_incr_relaxed(value) std::atomic_fetch_add_explicit(value, 1, std::memory_order_relaxed)
    #define __pyx_atomic_incr_acq_rel(value) std::atomic_fetch_add_explicit(value, 1, std::memory_order_acq_rel)
    #define __pyx_atomic_decr_acq_rel(value) std::atomic_fetch_sub_explicit(value, 1, std::memory_order_acq_rel)
    #define __pyx_atomic_sub(value, arg) std::atomic_fetch_sub(value, arg)
    #define __pyx_atomic_int_cmp_exchange(value, expected, desired) std::atomic_compare_exchange_strong(value, expected, desired)
    #define __pyx_atomic_load(value) std::atomic_load(value)
    #define __pyx_atomic_store(value, new_value) std::atomic_store(value, new_value)
    #define __pyx_atomic_pointer_load_relaxed(value) std::atomic_load_explicit(value, std::memory_order_relaxed)
    #define __pyx_atomic_pointer_load_acquire(value) std::atomic_load_explicit(value, std::memory_order_acquire)
    #define __pyx_atomic_pointer_exchange(value, new_value) std::atomic_exchange(value, (__pyx_nonatomic_ptr_type)new_value)
    #define __pyx_atomic_pointer_cmp_exchange(value, expected, desired) std::atomic_compare_exchange_strong(value, expected, desired)
    #if defined(__PYX_DEBUG_ATOMICS) && defined(_MSC_VER)
        #pragma message ("Using standard C++ atomics")
    #elif defined(__PYX_DEBUG_ATOMICS)
        #warning "Using standard C++ atomics"
    #endif
#elif CYTHON_ATOMICS && (__GNUC__ >= 5 || (__GNUC__ == 4 &&\
                    (__GNUC_MINOR__ > 1 ||\
                    (__GNUC_MINOR__ == 1 && __GNUC_PATCHLEVEL__ >= 2))))
    #define __pyx_atomic_ptr_type void*
    #define __pyx_nonatomic_ptr_type void*
    #define __pyx_atomic_incr_relaxed(value) __sync_fetch_and_add(value, 1)
    #define __pyx_atomic_incr_acq_rel(value) __sync_fetch_and_add(value, 1)
    #define __pyx_atomic_decr_acq_rel(value) __sync_fetch_and_sub(value, 1)
    #define __pyx_atomic_sub(value, arg) __sync_fetch_and_sub(value, arg)
    static CYTHON_INLINE int __pyx_atomic_int_cmp_exchange(__pyx_atomic_int_type* value, __pyx_nonatomic_int_type* expected, __pyx_nonatomic_int_type desired) {
        __pyx_nonatomic_int_type old = __sync_val_compare_and_swap(value, *expected, desired);
        int result = old == *expected;
        *expected = old;
        return result;
    }
    #define __pyx_atomic_load(value) __sync_fetch_and_add(value, 0)
    #define __pyx_atomic_store(value, new_value) __sync_lock_test_and_set(value, new_value)
    #define __pyx_atomic_pointer_load_relaxed(value) __sync_fetch_and_add(value, 0)
    #define __pyx_atomic_pointer_load_acquire(value) __sync_fetch_and_add(value, 0)
    #define __pyx_atomic_pointer_exchange(value, new_value) __sync_lock_test_and_set(value, (__pyx_atomic_ptr_type)new_value)
    static CYTHON_INLINE int __pyx_atomic_pointer_cmp_exchange(__pyx_atomic_ptr_type* value, __pyx_nonatomic_ptr_type* expected, __pyx_nonatomic_ptr_type desired) {
        __pyx_nonatomic_ptr_type old = __sync_val_compare_and_swap(value, *expected, desired);
        int result = old == *expected;
        *expected = old;
        return result;
    }
    #ifdef __PYX_DEBUG_ATOMICS
        #warning "Using GNU atomics"
    #endif
#elif CYTHON_ATOMICS && defined(_MSC_VER)
    #include <intrin.h>
    #undef __pyx_atomic_int_type
    #define __pyx_atomic_int_type long
    #define __pyx_atomic_ptr_type void*
    #undef __pyx_nonatomic_int_type
    #define __pyx_nonatomic_int_type long
    #define __pyx_nonatomic_ptr_type void*
    #pragma intrinsic (_InterlockedExchangeAdd, _InterlockedExchange, _InterlockedCompareExchange, _InterlockedCompareExchangePointer, _InterlockedExchangePointer)
    #define __pyx_atomic_incr_relaxed(value) _InterlockedExchangeAdd(value, 1)
    #define __pyx_atomic_incr_acq_rel(value) _InterlockedExchangeAdd(value, 1)
    #define __pyx_atomic_decr_acq_rel(value) _InterlockedExchangeAdd(value, -1)
    #define __pyx_atomic_sub(value, arg) _InterlockedExchangeAdd(value, -arg)
    static CYTHON_INLINE int __pyx_atomic_int_cmp_exchange(__pyx_atomic_int_type* value, __pyx_nonatomic_int_type* expected, __pyx_nonatomic_int_type desired) {
        __pyx_nonatomic_int_type old = _InterlockedCompareExchange(value, desired, *expected);
        int result = old == *expected;
        *expected = old;
        return result;
    }
    #define __pyx_atomic_load(value) _InterlockedExchangeAdd(value, 0)
    #define __pyx_atomic_store(value, new_value) _InterlockedExchange(value, new_value)
    #define __pyx_atomic_pointer_load_relaxed(value) *(void * volatile *)value
    #define __pyx_atomic_pointer_load_acquire(value) _InterlockedCompareExchangePointer(value, 0, 0)
    #define __pyx_atomic_pointer_exchange(value, new_value) _InterlockedExchangePointer(value, (__pyx_atomic_ptr_type)new_value)
    static CYTHON_INLINE int __pyx_atomic_pointer_cmp_exchange(__pyx_atomic_ptr_type* value, __pyx_nonatomic_ptr_type* expected, __pyx_nonatomic_ptr_type desired) {
        __pyx_atomic_ptr_type old = _InterlockedCompareExchangePointer(value, desired, *expected);
        int result = old == *expected;
        *expected = old;
        return result;
    }
    #ifdef __PYX_DEBUG_ATOMICS
        #pragma message ("Using MSVC atomics")
    #endif
#else
    #undef CYTHON_ATOMICS
    #define CYTHON_ATOMICS 0
    #ifdef __PYX_DEBUG_ATOMICS
        #warning "Not using atomics"
    #endif
#endif

/* CriticalSectionsDefinition.proto (used by CriticalSections) */
#if !CYTHON_COMPILING_IN_CPYTHON_FREETHREADING
#define __Pyx_PyCriticalSection void*
#define __Pyx_PyCriticalSection2 void*
#define __Pyx_PyCriticalSection_End(cs)
#define __Pyx_PyCriticalSection2_End(cs)
#else
#define __Pyx_PyCriticalSection PyCriticalSection
#define __Pyx_PyCriticalSection2 PyCriticalSection2
#define __Pyx_PyCriticalSection_End PyCriticalSection_End
#define __Pyx_PyCriticalSection2_End PyCriticalSection2_End
#endif

/* CriticalSections.proto (used by ParseKeywordsImpl) */
#if !CYTHON_COMPILING_IN_CPYTHON_FREETHREADING
#define __Pyx_PyCriticalSection_Begin(cs, arg) (void)(cs)
#define __Pyx_PyCriticalSection2_Begin(cs, arg1, arg2) (void)(cs)
#else
#define __Pyx_PyCriticalSection_Begin PyCriticalSection_Begin
#define __Pyx_PyCriticalSection2_Begin PyCriticalSection2_Begin
#endif
#if PY_VERSION_HEX < 0x030d0000 || CYTHON_COMPILING_IN_LIMITED_API
#define __Pyx_BEGIN_CRITICAL_SECTION(o) {
#define __Pyx_END_CRITICAL_SECTION() }
#else
#define __Pyx_BEGIN_CRITICAL_SECTION Py_BEGIN_CRITICAL_SECTION
#define __Pyx_END_CRITICAL_SECTION Py_END_CRITICAL_SECTION
#endif

/* IncludeStructmemberH.proto (used by FixUpExtensionType) */
#include <structmember.h>

/* #### Code section: numeric_typedefs ### */
/* #### Code section: complex_type_declarations ### */
/* #### Code section: type_declarations ### */

/*--- Type declarations ---*/
struct __pyx_defaults;
struct __pyx_t_4kivy_8graphics_3cgl_GLES2_Context;
typedef struct __pyx_t_4kivy_8graphics_3cgl_GLES2_Context __pyx_t_4kivy_8graphics_3cgl_GLES2_Context;
struct __pyx_opt_args_4kivy_8graphics_3cgl_cgl_init;
struct __pyx_opt_args_4kivy_8graphics_3cgl_cgl_get_backend_name;

/* "kivy/graphics/cgl.pxd":381
 *     int GL_FRAMEBUFFER_UNDEFINED_OES
 * 
 * ctypedef const GLubyte* (__stdcall *GLGETSTRINGPTR)(GLenum) nogil             # <<<<<<<<<<<<<<
 * ctypedef GLboolean (__stdcall *GLISBUFFERPTR)(GLuint buffer) nogil
 * ctypedef GLboolean (__stdcall *GLISENABLEDPTR)(GLenum cap) nogil
*/
typedef GLubyte const *(__stdcall *__pyx_t_4kivy_8graphics_3cgl_GLGETSTRINGPTR)(GLenum);

/* "kivy/graphics/cgl.pxd":382
 * 
 * ctypedef const GLubyte* (__stdcall *GLGETSTRINGPTR)(GLenum) nogil
 * ctypedef GLboolean (__stdcall *GLISBUFFERPTR)(GLuint buffer) nogil             # <<<<<<<<<<<<<<
 * ctypedef GLboolean (__stdcall *GLISENABLEDPTR)(GLenum cap) nogil
 * ctypedef GLboolean (__stdcall *GLISFRAMEBUFFERPTR)(GLuint framebuffer) nogil
*/
typedef GLboolean (__stdcall *__pyx_t_4kivy_8graphics_3cgl_GLISBUFFERPTR)(GLuint);

/* "kivy/graphics/cgl.pxd":383
 * ctypedef const GLubyte* (__stdcall *GLGETSTRINGPTR)(GLenum) nogil
 * ctypedef GLboolean (__stdcall *GLISBUFFERPTR)(GLuint buffer) nogil
 * ctypedef GLboolean (__stdcall *GLISENABLEDPTR)(GLenum cap) nogil             # <<<<<<<<<<<<<<
 * ctypedef GLboolean (__stdcall *GLISFRAMEBUFFERPTR)(GLuint framebuffer) nogil
 * ctypedef GLboolean (__stdcall *GLISPROGRAMPTR)(GLuint program) nogil
*/
typedef GLboolean (__stdcall *__pyx_t_4kivy_8graphics_3cgl_GLISENABLEDPTR)(GLenum);

/* "kivy/graphics/cgl.pxd":384
 * ctypedef GLboolean (__stdcall *GLISBUFFERPTR)(GLuint buffer) nogil
 * ctypedef GLboolean (__stdcall *GLISENABLEDPTR)(GLenum cap) nogil
 * ctypedef GLboolean (__stdcall *GLISFRAMEBUFFERPTR)(GLuint framebuffer) nogil             # <<<<<<<<<<<<<<
 * ctypedef GLboolean (__stdcall *GLISPROGRAMPTR)(GLuint program) nogil
 * ctypedef GLboolean (__stdcall *GLISRENDERBUFFERPTR)(GLuint renderbuffer) nogil
*/
typedef GLboolean (__stdcall *__pyx_t_4kivy_8graphics_3cgl_GLISFRAMEBUFFERPTR)(GLuint);

/* "kivy/graphics/cgl.pxd":385
 * ctypedef GLboolean (__stdcall *GLISENABLEDPTR)(GLenum cap) nogil
 * ctypedef GLboolean (__stdcall *GLISFRAMEBUFFERPTR)(GLuint framebuffer) nogil
 * ctypedef GLboolean (__stdcall *GLISPROGRAMPTR)(GLuint program) nogil             # <<<<<<<<<<<<<<
 * ctypedef GLboolean (__stdcall *GLISRENDERBUFFERPTR)(GLuint renderbuffer) nogil
 * ctypedef GLboolean (__stdcall *GLISSHADERPTR)(GLuint shader) nogil
*/
typedef GLboolean (__stdcall *__pyx_t_4kivy_8graphics_3cgl_GLISPROGRAMPTR)(GLuint);

/* "kivy/graphics/cgl.pxd":386
 * ctypedef GLboolean (__stdcall *GLISFRAMEBUFFERPTR)(GLuint framebuffer) nogil
 * ctypedef GLboolean (__stdcall *GLISPROGRAMPTR)(GLuint program) nogil
 * ctypedef GLboolean (__stdcall *GLISRENDERBUFFERPTR)(GLuint renderbuffer) nogil             # <<<<<<<<<<<<<<
 * ctypedef GLboolean (__stdcall *GLISSHADERPTR)(GLuint shader) nogil
 * ctypedef GLboolean (__stdcall *GLISTEXTUREPTR)(GLuint texture) nogil
*/
typedef GLboolean (__stdcall *__pyx_t_4kivy_8graphics_3cgl_GLISRENDERBUFFERPTR)(GLuint);

/* "kivy/graphics/cgl.pxd":387
 * ctypedef GLboolean (__stdcall *GLISPROGRAMPTR)(GLuint program) nogil
 * ctypedef GLboolean (__stdcall *GLISRENDERBUFFERPTR)(GLuint renderbuffer) nogil
 * ctypedef GLboolean (__stdcall *GLISSHADERPTR)(GLuint shader) nogil             # <<<<<<<<<<<<<<
 * ctypedef GLboolean (__stdcall *GLISTEXTUREPTR)(GLuint texture) nogil
 * ctypedef GLenum (__stdcall *GLCHECKFRAMEBUFFERSTATUSPTR)(GLenum) nogil
*/
typedef GLboolean (__stdcall *__pyx_t_4kivy_8graphics_3cgl_GLISSHADERPTR)(GLuint);

/* "kivy/graphics/cgl.pxd":388
 * ctypedef GLboolean (__stdcall *GLISRENDERBUFFERPTR)(GLuint renderbuffer) nogil
 * ctypedef GLboolean (__stdcall *GLISSHADERPTR)(GLuint shader) nogil
 * ctypedef GLboolean (__stdcall *GLISTEXTUREPTR)(GLuint texture) nogil             # <<<<<<<<<<<<<<
 * ctypedef GLenum (__stdcall *GLCHECKFRAMEBUFFERSTATUSPTR)(GLenum) nogil
 * ctypedef GLenum (__stdcall *GLGETERRORPTR)() nogil
*/
typedef GLboolean (__stdcall *__pyx_t_4kivy_8graphics_3cgl_GLISTEXTUREPTR)(GLuint);

/* "kivy/graphics/cgl.pxd":389
 * ctypedef GLboolean (__stdcall *GLISSHADERPTR)(GLuint shader) nogil
 * ctypedef GLboolean (__stdcall *GLISTEXTUREPTR)(GLuint texture) nogil
 * ctypedef GLenum (__stdcall *GLCHECKFRAMEBUFFERSTATUSPTR)(GLenum) nogil             # <<<<<<<<<<<<<<
 * ctypedef GLenum (__stdcall *GLGETERRORPTR)() nogil
 * ctypedef GLint (__stdcall *GLGETATTRIBLOCATIONPTR)(GLuint, const GLchar *) nogil
*/
typedef GLenum (__stdcall *__pyx_t_4kivy_8graphics_3cgl_GLCHECKFRAMEBUFFERSTATUSPTR)(GLenum);

/* "kivy/graphics/cgl.pxd":390
 * ctypedef GLboolean (__stdcall *GLISTEXTUREPTR)(GLuint texture) nogil
 * ctypedef GLenum (__stdcall *GLCHECKFRAMEBUFFERSTATUSPTR)(GLenum) nogil
 * ctypedef GLenum (__stdcall *GLGETERRORPTR)() nogil             # <<<<<<<<<<<<<<
 * ctypedef GLint (__stdcall *GLGETATTRIBLOCATIONPTR)(GLuint, const GLchar *) nogil
 * ctypedef GLint (__stdcall *GLGETUNIFORMLOCATIONPTR)(GLuint, const char *) nogil
*/
typedef GLenum (__stdcall *__pyx_t_4kivy_8graphics_3cgl_GLGETERRORPTR)(void);

/* "kivy/graphics/cgl.pxd":391
 * ctypedef GLenum (__stdcall *GLCHECKFRAMEBUFFERSTATUSPTR)(GLenum) nogil
 * ctypedef GLenum (__stdcall *GLGETERRORPTR)() nogil
 * ctypedef GLint (__stdcall *GLGETATTRIBLOCATIONPTR)(GLuint, const GLchar *) nogil             # <<<<<<<<<<<<<<
 * ctypedef GLint (__stdcall *GLGETUNIFORMLOCATIONPTR)(GLuint, const char *) nogil
 * ctypedef GLuint (__stdcall *GLCREATEPROGRAMPTR)() nogil
*/
typedef GLint (__stdcall *__pyx_t_4kivy_8graphics_3cgl_GLGETATTRIBLOCATIONPTR)(GLuint, GLchar const *);

/* "kivy/graphics/cgl.pxd":392
 * ctypedef GLenum (__stdcall *GLGETERRORPTR)() nogil
 * ctypedef GLint (__stdcall *GLGETATTRIBLOCATIONPTR)(GLuint, const GLchar *) nogil
 * ctypedef GLint (__stdcall *GLGETUNIFORMLOCATIONPTR)(GLuint, const char *) nogil             # <<<<<<<<<<<<<<
 * ctypedef GLuint (__stdcall *GLCREATEPROGRAMPTR)() nogil
 * ctypedef GLuint (__stdcall *GLCREATESHADERPTR)(GLenum) nogil
*/
typedef GLint (__stdcall *__pyx_t_4kivy_8graphics_3cgl_GLGETUNIFORMLOCATIONPTR)(GLuint, char const *);

/* "kivy/graphics/cgl.pxd":393
 * ctypedef GLint (__stdcall *GLGETATTRIBLOCATIONPTR)(GLuint, const GLchar *) nogil
 * ctypedef GLint (__stdcall *GLGETUNIFORMLOCATIONPTR)(GLuint, const char *) nogil
 * ctypedef GLuint (__stdcall *GLCREATEPROGRAMPTR)() nogil             # <<<<<<<<<<<<<<
 * ctypedef GLuint (__stdcall *GLCREATESHADERPTR)(GLenum) nogil
 * ctypedef void (__stdcall *GLACTIVETEXTUREPTR)(GLenum) nogil
*/
typedef GLuint (__stdcall *__pyx_t_4kivy_8graphics_3cgl_GLCREATEPROGRAMPTR)(void);

/* "kivy/graphics/cgl.pxd":394
 * ctypedef GLint (__stdcall *GLGETUNIFORMLOCATIONPTR)(GLuint, const char *) nogil
 * ctypedef GLuint (__stdcall *GLCREATEPROGRAMPTR)() nogil
 * ctypedef GLuint (__stdcall *GLCREATESHADERPTR)(GLenum) nogil             # <<<<<<<<<<<<<<
 * ctypedef void (__stdcall *GLACTIVETEXTUREPTR)(GLenum) nogil
 * ctypedef void (__stdcall *GLATTACHSHADERPTR)(GLuint, GLuint) nogil
*/
typedef GLuint (__stdcall *__pyx_t_4kivy_8graphics_3cgl_GLCREATESHADERPTR)(GLenum);

/* "kivy/graphics/cgl.pxd":395
 * ctypedef GLuint (__stdcall *GLCREATEPROGRAMPTR)() nogil
 * ctypedef GLuint (__stdcall *GLCREATESHADERPTR)(GLenum) nogil
 * ctypedef void (__stdcall *GLACTIVETEXTUREPTR)(GLenum) nogil             # <<<<<<<<<<<<<<
 * ctypedef void (__stdcall *GLATTACHSHADERPTR)(GLuint, GLuint) nogil
 * ctypedef void (__stdcall *GLBINDATTRIBLOCATIONPTR)(GLuint, GLuint, const char *) nogil
*/
typedef void (__stdcall *__pyx_t_4kivy_8graphics_3cgl_GLACTIVETEXTUREPTR)(GLenum);

/* "kivy/graphics/cgl.pxd":396
 * ctypedef GLuint (__stdcall *GLCREATESHADERPTR)(GLenum) nogil
 * ctypedef void (__stdcall *GLACTIVETEXTUREPTR)(GLenum) nogil
 * ctypedef void (__stdcall *GLATTACHSHADERPTR)(GLuint, GLuint) nogil             # <<<<<<<<<<<<<<
 * ctypedef void (__stdcall *GLBINDATTRIBLOCATIONPTR)(GLuint, GLuint, const char *) nogil
 * ctypedef void (__stdcall *GLBINDBUFFERPTR)(GLenum, GLuint) nogil
*/
typedef void (__stdcall *__pyx_t_4kivy_8graphics_3cgl_GLATTACHSHADERPTR)(GLuint, GLuint);

/* "kivy/graphics/cgl.pxd":397
 * ctypedef void (__stdcall *GLACTIVETEXTUREPTR)(GLenum) nogil
 * ctypedef void (__stdcall *GLATTACHSHADERPTR)(GLuint, GLuint) nogil
 * ctypedef void (__stdcall *GLBINDATTRIBLOCATIONPTR)(GLuint, GLuint, const char *) nogil             # <<<<<<<<<<<<<<
 * ctypedef void (__stdcall *GLBINDBUFFERPTR)(GLenum, GLuint) nogil
 * ctypedef void (__stdcall *GLBINDFRAMEBUFFERPTR)(GLenum, GLuint) nogil
*/
typedef void (__stdcall *__pyx_t_4kivy_8graphics_3cgl_GLBINDATTRIBLOCATIONPTR)(GLuint, GLuint, char const *);

/* "kivy/graphics/cgl.pxd":398
 * ctypedef void (__stdcall *GLATTACHSHADERPTR)(GLuint, GLuint) nogil
 * ctypedef void (__stdcall *GLBINDATTRIBLOCATIONPTR)(GLuint, GLuint, const char *) nogil
 * ctypedef void (__stdcall *GLBINDBUFFERPTR)(GLenum, GLuint) nogil             # <<<<<<<<<<<<<<
 * ctypedef void (__stdcall *GLBINDFRAMEBUFFERPTR)(GLenum, GLuint) nogil
 * ctypedef void (__stdcall *GLBINDRENDERBUFFERPTR)(GLenum target, GLuint renderbuffer) nogil
*/
typedef void (__stdcall *__pyx_t_4kivy_8graphics_3cgl_GLBINDBUFFERPTR)(GLenum, GLuint);

/* "kivy/graphics/cgl.pxd":399
 * ctypedef void (__stdcall *GLBINDATTRIBLOCATIONPTR)(GLuint, GLuint, const char *) nogil
 * ctypedef void (__stdcall *GLBINDBUFFERPTR)(GLenum, GLuint) nogil
 * ctypedef void (__stdcall *GLBINDFRAMEBUFFERPTR)(GLenum, GLuint) nogil             # <<<<<<<<<<<<<<
 * ctypedef void (__stdcall *GLBINDRENDERBUFFERPTR)(GLenum target, GLuint renderbuffer) nogil
 * ctypedef void (__stdcall *GLBINDTEXTUREPTR)(GLenum, GLuint) nogil
*/
typedef void (__stdcall *__pyx_t_4kivy_8graphics_3cgl_GLBINDFRAMEBUFFERPTR)(GLenum, GLuint);

/* "kivy/graphics/cgl.pxd":400
 * ctypedef void (__stdcall *GLBINDBUFFERPTR)(GLenum, GLuint) nogil
 * ctypedef void (__stdcall *GLBINDFRAMEBUFFERPTR)(GLenum, GLuint) nogil
 * ctypedef void (__stdcall *GLBINDRENDERBUFFERPTR)(GLenum target, GLuint renderbuffer) nogil             # <<<<<<<<<<<<<<
 * ctypedef void (__stdcall *GLBINDTEXTUREPTR)(GLenum, GLuint) nogil
 * ctypedef void (__stdcall *GLBLENDCOLORPTR)(GLclampf red, GLclampf green, GLclampf blue, GLclampf alpha) nogil
*/
typedef void (__stdcall *__pyx_t_4kivy_8graphics_3cgl_GLBINDRENDERBUFFERPTR)(GLenum, GLuint);

/* "kivy/graphics/cgl.pxd":401
 * ctypedef void (__stdcall *GLBINDFRAMEBUFFERPTR)(GLenum, GLuint) nogil
 * ctypedef void (__stdcall *GLBINDRENDERBUFFERPTR)(GLenum target, GLuint renderbuffer) nogil
 * ctypedef void (__stdcall *GLBINDTEXTUREPTR)(GLenum, GLuint) nogil             # <<<<<<<<<<<<<<
 * ctypedef void (__stdcall *GLBLENDCOLORPTR)(GLclampf red, GLclampf green, GLclampf blue, GLclampf alpha) nogil
 * ctypedef void (__stdcall *GLBLENDEQUATIONPTR)( GLenum mode ) nogil
*/
typedef void (__stdcall *__pyx_t_4kivy_8graphics_3cgl_GLBINDTEXTUREPTR)(GLenum, GLuint);

/* "kivy/graphics/cgl.pxd":402
 * ctypedef void (__stdcall *GLBINDRENDERBUFFERPTR)(GLenum target, GLuint renderbuffer) nogil
 * ctypedef void (__stdcall *GLBINDTEXTUREPTR)(GLenum, GLuint) nogil
 * ctypedef void (__stdcall *GLBLENDCOLORPTR)(GLclampf red, GLclampf green, GLclampf blue, GLclampf alpha) nogil             # <<<<<<<<<<<<<<
 * ctypedef void (__stdcall *GLBLENDEQUATIONPTR)( GLenum mode ) nogil
 * ctypedef void (__stdcall *GLBLENDEQUATIONSEPARATEPTR)(GLenum modeRGB, GLenum modeAlpha) nogil
*/
typedef void (__stdcall *__pyx_t_4kivy_8graphics_3cgl_GLBLENDCOLORPTR)(GLclampf, GLclampf, GLclampf, GLclampf);

/* "kivy/graphics/cgl.pxd":403
 * ctypedef void (__stdcall *GLBINDTEXTUREPTR)(GLenum, GLuint) nogil
 * ctypedef void (__stdcall *GLBLENDCOLORPTR)(GLclampf red, GLclampf green, GLclampf blue, GLclampf alpha) nogil
 * ctypedef void (__stdcall *GLBLENDEQUATIONPTR)( GLenum mode ) nogil             # <<<<<<<<<<<<<<
 * ctypedef void (__stdcall *GLBLENDEQUATIONSEPARATEPTR)(GLenum modeRGB, GLenum modeAlpha) nogil
 * ctypedef void (__stdcall *GLBLENDFUNCPTR)(GLenum sfactor, GLenum dfactor) nogil
*/
typedef void (__stdcall *__pyx_t_4kivy_8graphics_3cgl_GLBLENDEQUATIONPTR)(GLenum);

/* "kivy/graphics/cgl.pxd":404
 * ctypedef void (__stdcall *GLBLENDCOLORPTR)(GLclampf red, GLclampf green, GLclampf blue, GLclampf alpha) nogil
 * ctypedef void (__stdcall *GLBLENDEQUATIONPTR)( GLenum mode ) nogil
 * ctypedef void (__stdcall *GLBLENDEQUATIONSEPARATEPTR)(GLenum modeRGB, GLenum modeAlpha) nogil             # <<<<<<<<<<<<<<
 * ctypedef void (__stdcall *GLBLENDFUNCPTR)(GLenum sfactor, GLenum dfactor) nogil
 * ctypedef void (__stdcall *GLBLENDFUNCSEPARATEPTR)(GLenum, GLenum, GLenum, GLenum) nogil
*/
typedef void (__stdcall *__pyx_t_4kivy_8graphics_3cgl_GLBLENDEQUATIONSEPARATEPTR)(GLenum, GLenum);

/* "kivy/graphics/cgl.pxd":405
 * ctypedef void (__stdcall *GLBLENDEQUATIONPTR)( GLenum mode ) nogil
 * ctypedef void (__stdcall *GLBLENDEQUATIONSEPARATEPTR)(GLenum modeRGB, GLenum modeAlpha) nogil
 * ctypedef void (__stdcall *GLBLENDFUNCPTR)(GLenum sfactor, GLenum dfactor) nogil             # <<<<<<<<<<<<<<
 * ctypedef void (__stdcall *GLBLENDFUNCSEPARATEPTR)(GLenum, GLenum, GLenum, GLenum) nogil
 * ctypedef void (__stdcall *GLBUFFERDATAPTR)(GLenum, GLsizeiptr, const GLvoid *, GLenum) nogil
*/
typedef void (__stdcall *__pyx_t_4kivy_8graphics_3cgl_GLBLENDFUNCPTR)(GLenum, GLenum);

/* "kivy/graphics/cgl.pxd":406
 * ctypedef void (__stdcall *GLBLENDEQUATIONSEPARATEPTR)(GLenum modeRGB, GLenum modeAlpha) nogil
 * ctypedef void (__stdcall *GLBLENDFUNCPTR)(GLenum sfactor, GLenum dfactor) nogil
 * ctypedef void (__stdcall *GLBLENDFUNCSEPARATEPTR)(GLenum, GLenum, GLenum, GLenum) nogil             # <<<<<<<<<<<<<<
 * ctypedef void (__stdcall *GLBUFFERDATAPTR)(GLenum, GLsizeiptr, const GLvoid *, GLenum) nogil
 * ctypedef void (__stdcall *GLBUFFERSUBDATAPTR)(GLenum, GLintptr, GLsizeiptr, const GLvoid *) nogil
*/
typedef void (__stdcall *__pyx_t_4kivy_8graphics_3cgl_GLBLENDFUNCSEPARATEPTR)(GLenum, GLenum, GLenum, GLenum);

/* "kivy/graphics/cgl.pxd":407
 * ctypedef void (__stdcall *GLBLENDFUNCPTR)(GLenum sfactor, GLenum dfactor) nogil
 * ctypedef void (__stdcall *GLBLENDFUNCSEPARATEPTR)(GLenum, GLenum, GLenum, GLenum) nogil
 * ctypedef void (__stdcall *GLBUFFERDATAPTR)(GLenum, GLsizeiptr, const GLvoid *, GLenum) nogil             # <<<<<<<<<<<<<<
 * ctypedef void (__stdcall *GLBUFFERSUBDATAPTR)(GLenum, GLintptr, GLsizeiptr, const GLvoid *) nogil
 * ctypedef void (__stdcall *GLCLEARCOLORPTR)(GLclampf, GLclampf, GLclampf, GLclampf) nogil
*/
typedef void (__stdcall *__pyx_t_4kivy_8graphics_3cgl_GLBUFFERDATAPTR)(GLenum, GLsizeiptr, GLvoid const *, GLenum);

/* "kivy/graphics/cgl.pxd":408
 * ctypedef void (__stdcall *GLBLENDFUNCSEPARATEPTR)(GLenum, GLenum, GLenum, GLenum) nogil
 * ctypedef void (__stdcall *GLBUFFERDATAPTR)(GLenum, GLsizeiptr, const GLvoid *, GLenum) nogil
 * ctypedef void (__stdcall *GLBUFFERSUBDATAPTR)(GLenum, GLintptr, GLsizeiptr, const GLvoid *) nogil             # <<<<<<<<<<<<<<
 * ctypedef void (__stdcall *GLCLEARCOLORPTR)(GLclampf, GLclampf, GLclampf, GLclampf) nogil
 * ctypedef void (__stdcall *GLCLEARPTR)(GLbitfield) nogil
*/
typedef void (__stdcall *__pyx_t_4kivy_8graphics_3cgl_GLBUFFERSUBDATAPTR)(GLenum, GLintptr, GLsizeiptr, GLvoid const *);

/* "kivy/graphics/cgl.pxd":409
 * ctypedef void (__stdcall *GLBUFFERDATAPTR)(GLenum, GLsizeiptr, const GLvoid *, GLenum) nogil
 * ctypedef void (__stdcall *GLBUFFERSUBDATAPTR)(GLenum, GLintptr, GLsizeiptr, const GLvoid *) nogil
 * ctypedef void (__stdcall *GLCLEARCOLORPTR)(GLclampf, GLclampf, GLclampf, GLclampf) nogil             # <<<<<<<<<<<<<<
 * ctypedef void (__stdcall *GLCLEARPTR)(GLbitfield) nogil
 * ctypedef void (__stdcall *GLCLEARSTENCILPTR)(GLint s) nogil
*/
typedef void (__stdcall *__pyx_t_4kivy_8graphics_3cgl_GLCLEARCOLORPTR)(GLclampf, GLclampf, GLclampf, GLclampf);

/* "kivy/graphics/cgl.pxd":410
 * ctypedef void (__stdcall *GLBUFFERSUBDATAPTR)(GLenum, GLintptr, GLsizeiptr, const GLvoid *) nogil
 * ctypedef void (__stdcall *GLCLEARCOLORPTR)(GLclampf, GLclampf, GLclampf, GLclampf) nogil
 * ctypedef void (__stdcall *GLCLEARPTR)(GLbitfield) nogil             # <<<<<<<<<<<<<<
 * ctypedef void (__stdcall *GLCLEARSTENCILPTR)(GLint s) nogil
 * ctypedef void (__stdcall *GLCOLORMASKPTR)(GLboolean red, GLboolean green, GLboolean blue, GLboolean alpha) nogil
*/
typedef void (__stdcall *__pyx_t_4kivy_8graphics_3cgl_GLCLEARPTR)(GLbitfield);

/* "kivy/graphics/cgl.pxd":411
 * ctypedef void (__stdcall *GLCLEARCOLORPTR)(GLclampf, GLclampf, GLclampf, GLclampf) nogil
 * ctypedef void (__stdcall *GLCLEARPTR)(GLbitfield) nogil
 * ctypedef void (__stdcall *GLCLEARSTENCILPTR)(GLint s) nogil             # <<<<<<<<<<<<<<
 * ctypedef void (__stdcall *GLCOLORMASKPTR)(GLboolean red, GLboolean green, GLboolean blue, GLboolean alpha) nogil
 * ctypedef void (__stdcall *GLCOMPILESHADERPTR)(GLuint) nogil
*/
typedef void (__stdcall *__pyx_t_4kivy_8graphics_3cgl_GLCLEARSTENCILPTR)(GLint);

/* "kivy/graphics/cgl.pxd":412
 * ctypedef void (__stdcall *GLCLEARPTR)(GLbitfield) nogil
 * ctypedef void (__stdcall *GLCLEARSTENCILPTR)(GLint s) nogil
 * ctypedef void (__stdcall *GLCOLORMASKPTR)(GLboolean red, GLboolean green, GLboolean blue, GLboolean alpha) nogil             # <<<<<<<<<<<<<<
 * ctypedef void (__stdcall *GLCOMPILESHADERPTR)(GLuint) nogil
 * ctypedef void (__stdcall *GLCOMPRESSEDTEXIMAGE2DPTR)(GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLint border, GLsizei imageSize, const GLvoid* data) nogil
*/
typedef void (__stdcall *__pyx_t_4kivy_8graphics_3cgl_GLCOLORMASKPTR)(GLboolean, GLboolean, GLboolean, GLboolean);

/* "kivy/graphics/cgl.pxd":413
 * ctypedef void (__stdcall *GLCLEARSTENCILPTR)(GLint s) nogil
 * ctypedef void (__stdcall *GLCOLORMASKPTR)(GLboolean red, GLboolean green, GLboolean blue, GLboolean alpha) nogil
 * ctypedef void (__stdcall *GLCOMPILESHADERPTR)(GLuint) nogil             # <<<<<<<<<<<<<<
 * ctypedef void (__stdcall *GLCOMPRESSEDTEXIMAGE2DPTR)(GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLint border, GLsizei imageSize, const GLvoid* data) nogil
 * ctypedef void (__stdcall *GLCOMPRESSEDTEXSUBIMAGE2DPTR)(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLsizei imageSize, const GLvoid* data) nogil
*/
typedef void (__stdcall *__pyx_t_4kivy_8graphics_3cgl_GLCOMPILESHADERPTR)(GLuint);

/* "kivy/graphics/cgl.pxd":414
 * ctypedef void (__stdcall *GLCOLORMASKPTR)(GLboolean red, GLboolean green, GLboolean blue, GLboolean alpha) nogil
 * ctypedef void (__stdcall *GLCOMPILESHADERPTR)(GLuint) nogil
 * ctypedef void (__stdcall *GLCOMPRESSEDTEXIMAGE2DPTR)(GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLint border, GLsizei imageSize, const GLvoid* data) nogil             # <<<<<<<<<<<<<<
 * ctypedef void (__stdcall *GLCOMPRESSEDTEXSUBIMAGE2DPTR)(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLsizei imageSize, const GLvoid* data) nogil
 * ctypedef void (__stdcall *GLCOPYTEXIMAGE2DPTR)(GLenum target, GLint level, GLenum internalformat, GLint x, GLint y, GLsizei width, GLsizei height, GLint border) nogil
*/
typedef void (__stdcall *__pyx_t_4kivy_8graphics_3cgl_GLCOMPRESSEDTEXIMAGE2DPTR)(GLenum, GLint, GLenum, GLsizei, GLsizei, GLint, GLsizei, GLvoid const *);

/* "kivy/graphics/cgl.pxd":415
 * ctypedef void (__stdcall *GLCOMPILESHADERPTR)(GLuint) nogil
 * ctypedef void (__stdcall *GLCOMPRESSEDTEXIMAGE2DPTR)(GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLint border, GLsizei imageSize, const GLvoid* data) nogil
 * ctypedef void (__stdcall *GLCOMPRESSEDTEXSUBIMAGE2DPTR)(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLsizei imageSize, const GLvoid* data) nogil             # <<<<<<<<<<<<<<
 * ctypedef void (__stdcall *GLCOPYTEXIMAGE2DPTR)(GLenum target, GLint level, GLenum internalformat, GLint x, GLint y, GLsizei width, GLsizei height, GLint border) nogil
 * ctypedef void (__stdcall *GLCOPYTEXSUBIMAGE2DPTR)(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint x, GLint y, GLsizei width, GLsizei height) nogil
*/
typedef void (__stdcall *__pyx_t_4kivy_8graphics_3cgl_GLCOMPRESSEDTEXSUBIMAGE2DPTR)(GLenum, GLint, GLint, GLint, GLsizei, GLsizei, GLenum, GLsizei, GLvoid const *);

/* "kivy/graphics/cgl.pxd":416
 * ctypedef void (__stdcall *GLCOMPRESSEDTEXIMAGE2DPTR)(GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLint border, GLsizei imageSize, const GLvoid* data) nogil
 * ctypedef void (__stdcall *GLCOMPRESSEDTEXSUBIMAGE2DPTR)(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLsizei imageSize, const GLvoid* data) nogil
 * ctypedef void (__stdcall *GLCOPYTEXIMAGE2DPTR)(GLenum target, GLint level, GLenum internalformat, GLint x, GLint y, GLsizei width, GLsizei height, GLint border) nogil             # <<<<<<<<<<<<<<
 * ctypedef void (__stdcall *GLCOPYTEXSUBIMAGE2DPTR)(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint x, GLint y, GLsizei width, GLsizei height) nogil
 * ctypedef void (__stdcall *GLCULLFACEPTR)(GLenum mode) nogil
*/
typedef void (__stdcall *__pyx_t_4kivy_8graphics_3cgl_GLCOPYTEXIMAGE2DPTR)(GLenum, GLint, GLenum, GLint, GLint, GLsizei, GLsizei, GLint);

/* "kivy/graphics/cgl.pxd":417
 * ctypedef void (__stdcall *GLCOMPRESSEDTEXSUBIMAGE2DPTR)(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLsizei imageSize, const GLvoid* data) nogil
 * ctypedef void (__stdcall *GLCOPYTEXIMAGE2DPTR)(GLenum target, GLint level, GLenum internalformat, GLint x, GLint y, GLsizei width, GLsizei height, GLint border) nogil
 * ctypedef void (__stdcall *GLCOPYTEXSUBIMAGE2DPTR)(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint x, GLint y, GLsizei width, GLsizei height) nogil             # <<<<<<<<<<<<<<
 * ctypedef void (__stdcall *GLCULLFACEPTR)(GLenum mode) nogil
 * ctypedef void (__stdcall *GLDELETEBUFFERSPTR)(GLsizei n, const GLuint* buffers) nogil
*/
typedef void (__stdcall *__pyx_t_4kivy_8graphics_3cgl_GLCOPYTEXSUBIMAGE2DPTR)(GLenum, GLint, GLint, GLint, GLint, GLint, GLsizei, GLsizei);

/* "kivy/graphics/cgl.pxd":418
 * ctypedef void (__stdcall *GLCOPYTEXIMAGE2DPTR)(GLenum target, GLint level, GLenum internalformat, GLint x, GLint y, GLsizei width, GLsizei height, GLint border) nogil
 * ctypedef void (__stdcall *GLCOPYTEXSUBIMAGE2DPTR)(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint x, GLint y, GLsizei width, GLsizei height) nogil
 * ctypedef void (__stdcall *GLCULLFACEPTR)(GLenum mode) nogil             # <<<<<<<<<<<<<<
 * ctypedef void (__stdcall *GLDELETEBUFFERSPTR)(GLsizei n, const GLuint* buffers) nogil
 * ctypedef void (__stdcall *GLDELETEFRAMEBUFFERSPTR)(GLsizei, const GLuint *) nogil
*/
typedef void (__stdcall *__pyx_t_4kivy_8graphics_3cgl_GLCULLFACEPTR)(GLenum);

/* "kivy/graphics/cgl.pxd":419
 * ctypedef void (__stdcall *GLCOPYTEXSUBIMAGE2DPTR)(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint x, GLint y, GLsizei width, GLsizei height) nogil
 * ctypedef void (__stdcall *GLCULLFACEPTR)(GLenum mode) nogil
 * ctypedef void (__stdcall *GLDELETEBUFFERSPTR)(GLsizei n, const GLuint* buffers) nogil             # <<<<<<<<<<<<<<
 * ctypedef void (__stdcall *GLDELETEFRAMEBUFFERSPTR)(GLsizei, const GLuint *) nogil
 * ctypedef void (__stdcall *GLDELETEPROGRAMPTR)(GLuint) nogil
*/
typedef void (__stdcall *__pyx_t_4kivy_8graphics_3cgl_GLDELETEBUFFERSPTR)(GLsizei, GLuint const *);

/* "kivy/graphics/cgl.pxd":420
 * ctypedef void (__stdcall *GLCULLFACEPTR)(GLenum mode) nogil
 * ctypedef void (__stdcall *GLDELETEBUFFERSPTR)(GLsizei n, const GLuint* buffers) nogil
 * ctypedef void (__stdcall *GLDELETEFRAMEBUFFERSPTR)(GLsizei, const GLuint *) nogil             # <<<<<<<<<<<<<<
 * ctypedef void (__stdcall *GLDELETEPROGRAMPTR)(GLuint) nogil
 * ctypedef void (__stdcall *GLDELETERENDERBUFFERSPTR)(GLsizei n, const GLuint* renderbuffers) nogil
*/
typedef void (__stdcall *__pyx_t_4kivy_8graphics_3cgl_GLDELETEFRAMEBUFFERSPTR)(GLsizei, GLuint const *);

/* "kivy/graphics/cgl.pxd":421
 * ctypedef void (__stdcall *GLDELETEBUFFERSPTR)(GLsizei n, const GLuint* buffers) nogil
 * ctypedef void (__stdcall *GLDELETEFRAMEBUFFERSPTR)(GLsizei, const GLuint *) nogil
 * ctypedef void (__stdcall *GLDELETEPROGRAMPTR)(GLuint) nogil             # <<<<<<<<<<<<<<
 * ctypedef void (__stdcall *GLDELETERENDERBUFFERSPTR)(GLsizei n, const GLuint* renderbuffers) nogil
 * ctypedef void (__stdcall *GLDELETESHADERPTR)(GLuint) nogil
*/
typedef void (__stdcall *__pyx_t_4kivy_8graphics_3cgl_GLDELETEPROGRAMPTR)(GLuint);

/* "kivy/graphics/cgl.pxd":422
 * ctypedef void (__stdcall *GLDELETEFRAMEBUFFERSPTR)(GLsizei, const GLuint *) nogil
 * ctypedef void (__stdcall *GLDELETEPROGRAMPTR)(GLuint) nogil
 * ctypedef void (__stdcall *GLDELETERENDERBUFFERSPTR)(GLsizei n, const GLuint* renderbuffers) nogil             # <<<<<<<<<<<<<<
 * ctypedef void (__stdcall *GLDELETESHADERPTR)(GLuint) nogil
 * ctypedef void (__stdcall *GLDELETETEXTURESPTR)(GLsizei, const GLuint *) nogil
*/
typedef void (__stdcall *__pyx_t_4kivy_8graphics_3cgl_GLDELETERENDERBUFFERSPTR)(GLsizei, GLuint const *);

/* "kivy/graphics/cgl.pxd":423
 * ctypedef void (__stdcall *GLDELETEPROGRAMPTR)(GLuint) nogil
 * ctypedef void (__stdcall *GLDELETERENDERBUFFERSPTR)(GLsizei n, const GLuint* renderbuffers) nogil
 * ctypedef void (__stdcall *GLDELETESHADERPTR)(GLuint) nogil             # <<<<<<<<<<<<<<
 * ctypedef void (__stdcall *GLDELETETEXTURESPTR)(GLsizei, const GLuint *) nogil
 * ctypedef void (__stdcall *GLDEPTHFUNCPTR)(GLenum func) nogil
*/
typedef void (__stdcall *__pyx_t_4kivy_8graphics_3cgl_GLDELETESHADERPTR)(GLuint);

/* "kivy/graphics/cgl.pxd":424
 * ctypedef void (__stdcall *GLDELETERENDERBUFFERSPTR)(GLsizei n, const GLuint* renderbuffers) nogil
 * ctypedef void (__stdcall *GLDELETESHADERPTR)(GLuint) nogil
 * ctypedef void (__stdcall *GLDELETETEXTURESPTR)(GLsizei, const GLuint *) nogil             # <<<<<<<<<<<<<<
 * ctypedef void (__stdcall *GLDEPTHFUNCPTR)(GLenum func) nogil
 * ctypedef void (__stdcall *GLDEPTHMASKPTR)(GLboolean flag) nogil
*/
typedef void (__stdcall *__pyx_t_4kivy_8graphics_3cgl_GLDELETETEXTURESPTR)(GLsizei, GLuint const *);

/* "kivy/graphics/cgl.pxd":425
 * ctypedef void (__stdcall *GLDELETESHADERPTR)(GLuint) nogil
 * ctypedef void (__stdcall *GLDELETETEXTURESPTR)(GLsizei, const GLuint *) nogil
 * ctypedef void (__stdcall *GLDEPTHFUNCPTR)(GLenum func) nogil             # <<<<<<<<<<<<<<
 * ctypedef void (__stdcall *GLDEPTHMASKPTR)(GLboolean flag) nogil
 * ctypedef void (__stdcall *GLDETACHSHADERPTR)(GLuint program, GLuint shader) nogil
*/
typedef void (__stdcall *__pyx_t_4kivy_8graphics_3cgl_GLDEPTHFUNCPTR)(GLenum);

/* "kivy/graphics/cgl.pxd":426
 * ctypedef void (__stdcall *GLDELETETEXTURESPTR)(GLsizei, const GLuint *) nogil
 * ctypedef void (__stdcall *GLDEPTHFUNCPTR)(GLenum func) nogil
 * ctypedef void (__stdcall *GLDEPTHMASKPTR)(GLboolean flag) nogil             # <<<<<<<<<<<<<<
 * ctypedef void (__stdcall *GLDETACHSHADERPTR)(GLuint program, GLuint shader) nogil
 * ctypedef void (__stdcall *GLDISABLEPTR)(GLenum) nogil
*/
typedef void (__stdcall *__pyx_t_4kivy_8graphics_3cgl_GLDEPTHMASKPTR)(GLboolean);

/* "kivy/graphics/cgl.pxd":427
 * ctypedef void (__stdcall *GLDEPTHFUNCPTR)(GLenum func) nogil
 * ctypedef void (__stdcall *GLDEPTHMASKPTR)(GLboolean flag) nogil
 * ctypedef void (__stdcall *GLDETACHSHADERPTR)(GLuint program, GLuint shader) nogil             # <<<<<<<<<<<<<<
 * ctypedef void (__stdcall *GLDISABLEPTR)(GLenum) nogil
 * ctypedef void (__stdcall *GLDISABLEVERTEXATTRIBARRAYPTR)(GLuint) nogil
*/
typedef void (__stdcall *__pyx_t_4kivy_8graphics_3cgl_GLDETACHSHADERPTR)(GLuint, GLuint);

/* "kivy/graphics/cgl.pxd":428
 * ctypedef void (__stdcall *GLDEPTHMASKPTR)(GLboolean flag) nogil
 * ctypedef void (__stdcall *GLDETACHSHADERPTR)(GLuint program, GLuint shader) nogil
 * ctypedef void (__stdcall *GLDISABLEPTR)(GLenum) nogil             # <<<<<<<<<<<<<<
 * ctypedef void (__stdcall *GLDISABLEVERTEXATTRIBARRAYPTR)(GLuint) nogil
 * ctypedef void (__stdcall *GLDRAWARRAYSPTR)(GLenum, GLint, GLsizei) nogil
*/
typedef void (__stdcall *__pyx_t_4kivy_8graphics_3cgl_GLDISABLEPTR)(GLenum);

/* "kivy/graphics/cgl.pxd":429
 * ctypedef void (__stdcall *GLDETACHSHADERPTR)(GLuint program, GLuint shader) nogil
 * ctypedef void (__stdcall *GLDISABLEPTR)(GLenum) nogil
 * ctypedef void (__stdcall *GLDISABLEVERTEXATTRIBARRAYPTR)(GLuint) nogil             # <<<<<<<<<<<<<<
 * ctypedef void (__stdcall *GLDRAWARRAYSPTR)(GLenum, GLint, GLsizei) nogil
 * ctypedef void (__stdcall *GLDRAWELEMENTSPTR)(GLenum mode, GLsizei count, GLenum type, const GLvoid* indices) nogil
*/
typedef void (__stdcall *__pyx_t_4kivy_8graphics_3cgl_GLDISABLEVERTEXATTRIBARRAYPTR)(GLuint);

/* "kivy/graphics/cgl.pxd":430
 * ctypedef void (__stdcall *GLDISABLEPTR)(GLenum) nogil
 * ctypedef void (__stdcall *GLDISABLEVERTEXATTRIBARRAYPTR)(GLuint) nogil
 * ctypedef void (__stdcall *GLDRAWARRAYSPTR)(GLenum, GLint, GLsizei) nogil             # <<<<<<<<<<<<<<
 * ctypedef void (__stdcall *GLDRAWELEMENTSPTR)(GLenum mode, GLsizei count, GLenum type, const GLvoid* indices) nogil
 * ctypedef void (__stdcall *GLENABLEPTR)(GLenum) nogil
*/
typedef void (__stdcall *__pyx_t_4kivy_8graphics_3cgl_GLDRAWARRAYSPTR)(GLenum, GLint, GLsizei);

/* "kivy/graphics/cgl.pxd":431
 * ctypedef void (__stdcall *GLDISABLEVERTEXATTRIBARRAYPTR)(GLuint) nogil
 * ctypedef void (__stdcall *GLDRAWARRAYSPTR)(GLenum, GLint, GLsizei) nogil
 * ctypedef void (__stdcall *GLDRAWELEMENTSPTR)(GLenum mode, GLsizei count, GLenum type, const GLvoid* indices) nogil             # <<<<<<<<<<<<<<
 * ctypedef void (__stdcall *GLENABLEPTR)(GLenum) nogil
 * ctypedef void (__stdcall *GLENABLEVERTEXATTRIBARRAYPTR)(GLuint) nogil
*/
typedef void (__stdcall *__pyx_t_4kivy_8graphics_3cgl_GLDRAWELEMENTSPTR)(GLenum, GLsizei, GLenum, GLvoid const *);

/* "kivy/graphics/cgl.pxd":432
 * ctypedef void (__stdcall *GLDRAWARRAYSPTR)(GLenum, GLint, GLsizei) nogil
 * ctypedef void (__stdcall *GLDRAWELEMENTSPTR)(GLenum mode, GLsizei count, GLenum type, const GLvoid* indices) nogil
 * ctypedef void (__stdcall *GLENABLEPTR)(GLenum) nogil             # <<<<<<<<<<<<<<
 * ctypedef void (__stdcall *GLENABLEVERTEXATTRIBARRAYPTR)(GLuint) nogil
 * ctypedef void (__stdcall *GLFINISHPTR)() nogil
*/
typedef void (__stdcall *__pyx_t_4kivy_8graphics_3cgl_GLENABLEPTR)(GLenum);

/* "kivy/graphics/cgl.pxd":433
 * ctypedef void (__stdcall *GLDRAWELEMENTSPTR)(GLenum mode, GLsizei count, GLenum type, const GLvoid* indices) nogil
 * ctypedef void (__stdcall *GLENABLEPTR)(GLenum) nogil
 * ctypedef void (__stdcall *GLENABLEVERTEXATTRIBARRAYPTR)(GLuint) nogil             # <<<<<<<<<<<<<<
 * ctypedef void (__stdcall *GLFINISHPTR)() nogil
 * ctypedef void (__stdcall *GLFLUSHPTR)() nogil
*/
typedef void (__stdcall *__pyx_t_4kivy_8graphics_3cgl_GLENABLEVERTEXATTRIBARRAYPTR)(GLuint);

/* "kivy/graphics/cgl.pxd":434
 * ctypedef void (__stdcall *GLENABLEPTR)(GLenum) nogil
 * ctypedef void (__stdcall *GLENABLEVERTEXATTRIBARRAYPTR)(GLuint) nogil
 * ctypedef void (__stdcall *GLFINISHPTR)() nogil             # <<<<<<<<<<<<<<
 * ctypedef void (__stdcall *GLFLUSHPTR)() nogil
 * ctypedef void (__stdcall *GLFRAMEBUFFERRENDERBUFFERPTR)(GLenum target, GLenum attachment, GLenum renderbuffertarget, GLuint renderbuffer) nogil
*/
typedef void (__stdcall *__pyx_t_4kivy_8graphics_3cgl_GLFINISHPTR)(void);

/* "kivy/graphics/cgl.pxd":435
 * ctypedef void (__stdcall *GLENABLEVERTEXATTRIBARRAYPTR)(GLuint) nogil
 * ctypedef void (__stdcall *GLFINISHPTR)() nogil
 * ctypedef void (__stdcall *GLFLUSHPTR)() nogil             # <<<<<<<<<<<<<<
 * ctypedef void (__stdcall *GLFRAMEBUFFERRENDERBUFFERPTR)(GLenum target, GLenum attachment, GLenum renderbuffertarget, GLuint renderbuffer) nogil
 * ctypedef void (__stdcall *GLFRAMEBUFFERTEXTURE2DPTR)(GLenum, GLenum, GLenum, GLuint, GLint) nogil
*/
typedef void (__stdcall *__pyx_t_4kivy_8graphics_3cgl_GLFLUSHPTR)(void);

/* "kivy/graphics/cgl.pxd":436
 * ctypedef void (__stdcall *GLFINISHPTR)() nogil
 * ctypedef void (__stdcall *GLFLUSHPTR)() nogil
 * ctypedef void (__stdcall *GLFRAMEBUFFERRENDERBUFFERPTR)(GLenum target, GLenum attachment, GLenum renderbuffertarget, GLuint renderbuffer) nogil             # <<<<<<<<<<<<<<
 * ctypedef void (__stdcall *GLFRAMEBUFFERTEXTURE2DPTR)(GLenum, GLenum, GLenum, GLuint, GLint) nogil
 * ctypedef void (__stdcall *GLFRONTFACEPTR)(GLenum mode) nogil
*/
typedef void (__stdcall *__pyx_t_4kivy_8graphics_3cgl_GLFRAMEBUFFERRENDERBUFFERPTR)(GLenum, GLenum, GLenum, GLuint);

/* "kivy/graphics/cgl.pxd":437
 * ctypedef void (__stdcall *GLFLUSHPTR)() nogil
 * ctypedef void (__stdcall *GLFRAMEBUFFERRENDERBUFFERPTR)(GLenum target, GLenum attachment, GLenum renderbuffertarget, GLuint renderbuffer) nogil
 * ctypedef void (__stdcall *GLFRAMEBUFFERTEXTURE2DPTR)(GLenum, GLenum, GLenum, GLuint, GLint) nogil             # <<<<<<<<<<<<<<
 * ctypedef void (__stdcall *GLFRONTFACEPTR)(GLenum mode) nogil
 * ctypedef void (__stdcall *GLGENBUFFERSPTR)(GLsizei, GLuint *) nogil
*/
typedef void (__stdcall *__pyx_t_4kivy_8graphics_3cgl_GLFRAMEBUFFERTEXTURE2DPTR)(GLenum, GLenum, GLenum, GLuint, GLint);

/* "kivy/graphics/cgl.pxd":438
 * ctypedef void (__stdcall *GLFRAMEBUFFERRENDERBUFFERPTR)(GLenum target, GLenum attachment, GLenum renderbuffertarget, GLuint renderbuffer) nogil
 * ctypedef void (__stdcall *GLFRAMEBUFFERTEXTURE2DPTR)(GLenum, GLenum, GLenum, GLuint, GLint) nogil
 * ctypedef void (__stdcall *GLFRONTFACEPTR)(GLenum mode) nogil             # <<<<<<<<<<<<<<
 * ctypedef void (__stdcall *GLGENBUFFERSPTR)(GLsizei, GLuint *) nogil
 * ctypedef void (__stdcall *GLGENERATEMIPMAPPTR)(GLenum target) nogil
*/
typedef void (__stdcall *__pyx_t_4kivy_8graphics_3cgl_GLFRONTFACEPTR)(GLenum);

/* "kivy/graphics/cgl.pxd":439
 * ctypedef void (__stdcall *GLFRAMEBUFFERTEXTURE2DPTR)(GLenum, GLenum, GLenum, GLuint, GLint) nogil
 * ctypedef void (__stdcall *GLFRONTFACEPTR)(GLenum mode) nogil
 * ctypedef void (__stdcall *GLGENBUFFERSPTR)(GLsizei, GLuint *) nogil             # <<<<<<<<<<<<<<
 * ctypedef void (__stdcall *GLGENERATEMIPMAPPTR)(GLenum target) nogil
 * ctypedef void (__stdcall *GLGENFRAMEBUFFERSPTR)(GLsizei, GLuint *) nogil
*/
typedef void (__stdcall *__pyx_t_4kivy_8graphics_3cgl_GLGENBUFFERSPTR)(GLsizei, GLuint *);

/* "kivy/graphics/cgl.pxd":440
 * ctypedef void (__stdcall *GLFRONTFACEPTR)(GLenum mode) nogil
 * ctypedef void (__stdcall *GLGENBUFFERSPTR)(GLsizei, GLuint *) nogil
 * ctypedef void (__stdcall *GLGENERATEMIPMAPPTR)(GLenum target) nogil             # <<<<<<<<<<<<<<
 * ctypedef void (__stdcall *GLGENFRAMEBUFFERSPTR)(GLsizei, GLuint *) nogil
 * ctypedef void (__stdcall *GLGENRENDERBUFFERSPTR)(GLsizei n, GLuint* renderbuffers) nogil
*/
typedef void (__stdcall *__pyx_t_4kivy_8graphics_3cgl_GLGENERATEMIPMAPPTR)(GLenum);

/* "kivy/graphics/cgl.pxd":441
 * ctypedef void (__stdcall *GLGENBUFFERSPTR)(GLsizei, GLuint *) nogil
 * ctypedef void (__stdcall *GLGENERATEMIPMAPPTR)(GLenum target) nogil
 * ctypedef void (__stdcall *GLGENFRAMEBUFFERSPTR)(GLsizei, GLuint *) nogil             # <<<<<<<<<<<<<<
 * ctypedef void (__stdcall *GLGENRENDERBUFFERSPTR)(GLsizei n, GLuint* renderbuffers) nogil
 * ctypedef void (__stdcall *GLGENTEXTURESPTR)(GLsizei, GLuint *) nogil
*/
typedef void (__stdcall *__pyx_t_4kivy_8graphics_3cgl_GLGENFRAMEBUFFERSPTR)(GLsizei, GLuint *);

/* "kivy/graphics/cgl.pxd":442
 * ctypedef void (__stdcall *GLGENERATEMIPMAPPTR)(GLenum target) nogil
 * ctypedef void (__stdcall *GLGENFRAMEBUFFERSPTR)(GLsizei, GLuint *) nogil
 * ctypedef void (__stdcall *GLGENRENDERBUFFERSPTR)(GLsizei n, GLuint* renderbuffers) nogil             # <<<<<<<<<<<<<<
 * ctypedef void (__stdcall *GLGENTEXTURESPTR)(GLsizei, GLuint *) nogil
 * ctypedef void (__stdcall *GLGETACTIVEATTRIBPTR)(GLuint program, GLuint index, GLsizei bufsize, GLsizei* length, GLint* size, GLenum* type, GLchar* name) nogil
*/
typedef void (__stdcall *__pyx_t_4kivy_8graphics_3cgl_GLGENRENDERBUFFERSPTR)(GLsizei, GLuint *);

/* "kivy/graphics/cgl.pxd":443
 * ctypedef void (__stdcall *GLGENFRAMEBUFFERSPTR)(GLsizei, GLuint *) nogil
 * ctypedef void (__stdcall *GLGENRENDERBUFFERSPTR)(GLsizei n, GLuint* renderbuffers) nogil
 * ctypedef void (__stdcall *GLGENTEXTURESPTR)(GLsizei, GLuint *) nogil             # <<<<<<<<<<<<<<
 * ctypedef void (__stdcall *GLGETACTIVEATTRIBPTR)(GLuint program, GLuint index, GLsizei bufsize, GLsizei* length, GLint* size, GLenum* type, GLchar* name) nogil
 * ctypedef void (__stdcall *GLGETACTIVEUNIFORMPTR)(GLuint program, GLuint index, GLsizei bufsize, GLsizei* length, GLint* size, GLenum* type, GLchar* name) nogil
*/
typedef void (__stdcall *__pyx_t_4kivy_8graphics_3cgl_GLGENTEXTURESPTR)(GLsizei, GLuint *);

/* "kivy/graphics/cgl.pxd":444
 * ctypedef void (__stdcall *GLGENRENDERBUFFERSPTR)(GLsizei n, GLuint* renderbuffers) nogil
 * ctypedef void (__stdcall *GLGENTEXTURESPTR)(GLsizei, GLuint *) nogil
 * ctypedef void (__stdcall *GLGETACTIVEATTRIBPTR)(GLuint program, GLuint index, GLsizei bufsize, GLsizei* length, GLint* size, GLenum* type, GLchar* name) nogil             # <<<<<<<<<<<<<<
 * ctypedef void (__stdcall *GLGETACTIVEUNIFORMPTR)(GLuint program, GLuint index, GLsizei bufsize, GLsizei* length, GLint* size, GLenum* type, GLchar* name) nogil
 * ctypedef void (__stdcall *GLGETATTACHEDSHADERSPTR)(GLuint program, GLsizei maxcount, GLsizei* count, GLuint* shaders) nogil
*/
typedef void (__stdcall *__pyx_t_4kivy_8graphics_3cgl_GLGETACTIVEATTRIBPTR)(GLuint, GLuint, GLsizei, GLsizei *, GLint *, GLenum *, GLchar *);

/* "kivy/graphics/cgl.pxd":445
 * ctypedef void (__stdcall *GLGENTEXTURESPTR)(GLsizei, GLuint *) nogil
 * ctypedef void (__stdcall *GLGETACTIVEATTRIBPTR)(GLuint program, GLuint index, GLsizei bufsize, GLsizei* length, GLint* size, GLenum* type, GLchar* name) nogil
 * ctypedef void (__stdcall *GLGETACTIVEUNIFORMPTR)(GLuint program, GLuint index, GLsizei bufsize, GLsizei* length, GLint* size, GLenum* type, GLchar* name) nogil             # <<<<<<<<<<<<<<
 * ctypedef void (__stdcall *GLGETATTACHEDSHADERSPTR)(GLuint program, GLsizei maxcount, GLsizei* count, GLuint* shaders) nogil
 * ctypedef void (__stdcall *GLGETBOOLEANVPTR)(GLenum, GLboolean *) nogil
*/
typedef void (__stdcall *__pyx_t_4kivy_8graphics_3cgl_GLGETACTIVEUNIFORMPTR)(GLuint, GLuint, GLsizei, GLsizei *, GLint *, GLenum *, GLchar *);

/* "kivy/graphics/cgl.pxd":446
 * ctypedef void (__stdcall *GLGETACTIVEATTRIBPTR)(GLuint program, GLuint index, GLsizei bufsize, GLsizei* length, GLint* size, GLenum* type, GLchar* name) nogil
 * ctypedef void (__stdcall *GLGETACTIVEUNIFORMPTR)(GLuint program, GLuint index, GLsizei bufsize, GLsizei* length, GLint* size, GLenum* type, GLchar* name) nogil
 * ctypedef void (__stdcall *GLGETATTACHEDSHADERSPTR)(GLuint program, GLsizei maxcount, GLsizei* count, GLuint* shaders) nogil             # <<<<<<<<<<<<<<
 * ctypedef void (__stdcall *GLGETBOOLEANVPTR)(GLenum, GLboolean *) nogil
 * ctypedef void (__stdcall *GLGETBUFFERPARAMETERIVPTR)(GLenum target, GLenum pname, GLint* params) nogil
*/
typedef void (__stdcall *__pyx_t_4kivy_8graphics_3cgl_GLGETATTACHEDSHADERSPTR)(GLuint, GLsizei, GLsizei *, GLuint *);

/* "kivy/graphics/cgl.pxd":447
 * ctypedef void (__stdcall *GLGETACTIVEUNIFORMPTR)(GLuint program, GLuint index, GLsizei bufsize, GLsizei* length, GLint* size, GLenum* type, GLchar* name) nogil
 * ctypedef void (__stdcall *GLGETATTACHEDSHADERSPTR)(GLuint program, GLsizei maxcount, GLsizei* count, GLuint* shaders) nogil
 * ctypedef void (__stdcall *GLGETBOOLEANVPTR)(GLenum, GLboolean *) nogil             # <<<<<<<<<<<<<<
 * ctypedef void (__stdcall *GLGETBUFFERPARAMETERIVPTR)(GLenum target, GLenum pname, GLint* params) nogil
 * ctypedef void (__stdcall *GLGETFLOATVPTR)(GLenum pname, GLfloat* params) nogil
*/
typedef void (__stdcall *__pyx_t_4kivy_8graphics_3cgl_GLGETBOOLEANVPTR)(GLenum, GLboolean *);

/* "kivy/graphics/cgl.pxd":448
 * ctypedef void (__stdcall *GLGETATTACHEDSHADERSPTR)(GLuint program, GLsizei maxcount, GLsizei* count, GLuint* shaders) nogil
 * ctypedef void (__stdcall *GLGETBOOLEANVPTR)(GLenum, GLboolean *) nogil
 * ctypedef void (__stdcall *GLGETBUFFERPARAMETERIVPTR)(GLenum target, GLenum pname, GLint* params) nogil             # <<<<<<<<<<<<<<
 * ctypedef void (__stdcall *GLGETFLOATVPTR)(GLenum pname, GLfloat* params) nogil
 * ctypedef void (__stdcall *GLGETFRAMEBUFFERATTACHMENTPARAMETERIVPTR)(GLenum target, GLenum attachment, GLenum pname, GLint* params) nogil
*/
typedef void (__stdcall *__pyx_t_4kivy_8graphics_3cgl_GLGETBUFFERPARAMETERIVPTR)(GLenum, GLenum, GLint *);

/* "kivy/graphics/cgl.pxd":449
 * ctypedef void (__stdcall *GLGETBOOLEANVPTR)(GLenum, GLboolean *) nogil
 * ctypedef void (__stdcall *GLGETBUFFERPARAMETERIVPTR)(GLenum target, GLenum pname, GLint* params) nogil
 * ctypedef void (__stdcall *GLGETFLOATVPTR)(GLenum pname, GLfloat* params) nogil             # <<<<<<<<<<<<<<
 * ctypedef void (__stdcall *GLGETFRAMEBUFFERATTACHMENTPARAMETERIVPTR)(GLenum target, GLenum attachment, GLenum pname, GLint* params) nogil
 * ctypedef void (__stdcall *GLGETINTEGERVPTR)(GLenum, GLint *) nogil
*/
typedef void (__stdcall *__pyx_t_4kivy_8graphics_3cgl_GLGETFLOATVPTR)(GLenum, GLfloat *);

/* "kivy/graphics/cgl.pxd":450
 * ctypedef void (__stdcall *GLGETBUFFERPARAMETERIVPTR)(GLenum target, GLenum pname, GLint* params) nogil
 * ctypedef void (__stdcall *GLGETFLOATVPTR)(GLenum pname, GLfloat* params) nogil
 * ctypedef void (__stdcall *GLGETFRAMEBUFFERATTACHMENTPARAMETERIVPTR)(GLenum target, GLenum attachment, GLenum pname, GLint* params) nogil             # <<<<<<<<<<<<<<
 * ctypedef void (__stdcall *GLGETINTEGERVPTR)(GLenum, GLint *) nogil
 * ctypedef void (__stdcall *GLGETPROGRAMINFOLOGPTR)(GLuint, GLsizei, GLsizei*, GLchar*) nogil
*/
typedef void (__stdcall *__pyx_t_4kivy_8graphics_3cgl_GLGETFRAMEBUFFERATTACHMENTPARAMETERIVPTR)(GLenum, GLenum, GLenum, GLint *);

/* "kivy/graphics/cgl.pxd":451
 * ctypedef void (__stdcall *GLGETFLOATVPTR)(GLenum pname, GLfloat* params) nogil
 * ctypedef void (__stdcall *GLGETFRAMEBUFFERATTACHMENTPARAMETERIVPTR)(GLenum target, GLenum attachment, GLenum pname, GLint* params) nogil
 * ctypedef void (__stdcall *GLGETINTEGERVPTR)(GLenum, GLint *) nogil             # <<<<<<<<<<<<<<
 * ctypedef void (__stdcall *GLGETPROGRAMINFOLOGPTR)(GLuint, GLsizei, GLsizei*, GLchar*) nogil
 * ctypedef void (__stdcall *GLGETPROGRAMIVPTR)(GLuint, GLenum, GLint *) nogil
*/
typedef void (__stdcall *__pyx_t_4kivy_8graphics_3cgl_GLGETINTEGERVPTR)(GLenum, GLint *);

/* "kivy/graphics/cgl.pxd":452
 * ctypedef void (__stdcall *GLGETFRAMEBUFFERATTACHMENTPARAMETERIVPTR)(GLenum target, GLenum attachment, GLenum pname, GLint* params) nogil
 * ctypedef void (__stdcall *GLGETINTEGERVPTR)(GLenum, GLint *) nogil
 * ctypedef void (__stdcall *GLGETPROGRAMINFOLOGPTR)(GLuint, GLsizei, GLsizei*, GLchar*) nogil             # <<<<<<<<<<<<<<
 * ctypedef void (__stdcall *GLGETPROGRAMIVPTR)(GLuint, GLenum, GLint *) nogil
 * ctypedef void (__stdcall *GLGETRENDERBUFFERPARAMETERIVPTR)(GLenum target, GLenum pname, GLint* params) nogil
*/
typedef void (__stdcall *__pyx_t_4kivy_8graphics_3cgl_GLGETPROGRAMINFOLOGPTR)(GLuint, GLsizei, GLsizei *, GLchar *);

/* "kivy/graphics/cgl.pxd":453
 * ctypedef void (__stdcall *GLGETINTEGERVPTR)(GLenum, GLint *) nogil
 * ctypedef void (__stdcall *GLGETPROGRAMINFOLOGPTR)(GLuint, GLsizei, GLsizei*, GLchar*) nogil
 * ctypedef void (__stdcall *GLGETPROGRAMIVPTR)(GLuint, GLenum, GLint *) nogil             # <<<<<<<<<<<<<<
 * ctypedef void (__stdcall *GLGETRENDERBUFFERPARAMETERIVPTR)(GLenum target, GLenum pname, GLint* params) nogil
 * ctypedef void (__stdcall *GLGETSHADERINFOLOGPTR)(GLuint, GLsizei, GLsizei *, char *) nogil
*/
typedef void (__stdcall *__pyx_t_4kivy_8graphics_3cgl_GLGETPROGRAMIVPTR)(GLuint, GLenum, GLint *);

/* "kivy/graphics/cgl.pxd":454
 * ctypedef void (__stdcall *GLGETPROGRAMINFOLOGPTR)(GLuint, GLsizei, GLsizei*, GLchar*) nogil
 * ctypedef void (__stdcall *GLGETPROGRAMIVPTR)(GLuint, GLenum, GLint *) nogil
 * ctypedef void (__stdcall *GLGETRENDERBUFFERPARAMETERIVPTR)(GLenum target, GLenum pname, GLint* params) nogil             # <<<<<<<<<<<<<<
 * ctypedef void (__stdcall *GLGETSHADERINFOLOGPTR)(GLuint, GLsizei, GLsizei *, char *) nogil
 * ctypedef void (__stdcall *GLGETSHADERIVPTR)(GLuint, GLenum, GLint *) nogil
*/
typedef void (__stdcall *__pyx_t_4kivy_8graphics_3cgl_GLGETRENDERBUFFERPARAMETERIVPTR)(GLenum, GLenum, GLint *);

/* "kivy/graphics/cgl.pxd":455
 * ctypedef void (__stdcall *GLGETPROGRAMIVPTR)(GLuint, GLenum, GLint *) nogil
 * ctypedef void (__stdcall *GLGETRENDERBUFFERPARAMETERIVPTR)(GLenum target, GLenum pname, GLint* params) nogil
 * ctypedef void (__stdcall *GLGETSHADERINFOLOGPTR)(GLuint, GLsizei, GLsizei *, char *) nogil             # <<<<<<<<<<<<<<
 * ctypedef void (__stdcall *GLGETSHADERIVPTR)(GLuint, GLenum, GLint *) nogil
 * ctypedef void (__stdcall *GLGETSHADERSOURCEPTR)(GLuint shader, GLsizei bufsize, GLsizei* length, GLchar* source) nogil
*/
typedef void (__stdcall *__pyx_t_4kivy_8graphics_3cgl_GLGETSHADERINFOLOGPTR)(GLuint, GLsizei, GLsizei *, char *);

/* "kivy/graphics/cgl.pxd":456
 * ctypedef void (__stdcall *GLGETRENDERBUFFERPARAMETERIVPTR)(GLenum target, GLenum pname, GLint* params) nogil
 * ctypedef void (__stdcall *GLGETSHADERINFOLOGPTR)(GLuint, GLsizei, GLsizei *, char *) nogil
 * ctypedef void (__stdcall *GLGETSHADERIVPTR)(GLuint, GLenum, GLint *) nogil             # <<<<<<<<<<<<<<
 * ctypedef void (__stdcall *GLGETSHADERSOURCEPTR)(GLuint shader, GLsizei bufsize, GLsizei* length, GLchar* source) nogil
 * ctypedef void (__stdcall *GLGETTEXPARAMETERFVPTR)(GLenum target, GLenum pname, GLfloat* params) nogil
*/
typedef void (__stdcall *__pyx_t_4kivy_8graphics_3cgl_GLGETSHADERIVPTR)(GLuint, GLenum, GLint *);

/* "kivy/graphics/cgl.pxd":457
 * ctypedef void (__stdcall *GLGETSHADERINFOLOGPTR)(GLuint, GLsizei, GLsizei *, char *) nogil
 * ctypedef void (__stdcall *GLGETSHADERIVPTR)(GLuint, GLenum, GLint *) nogil
 * ctypedef void (__stdcall *GLGETSHADERSOURCEPTR)(GLuint shader, GLsizei bufsize, GLsizei* length, GLchar* source) nogil             # <<<<<<<<<<<<<<
 * ctypedef void (__stdcall *GLGETTEXPARAMETERFVPTR)(GLenum target, GLenum pname, GLfloat* params) nogil
 * ctypedef void (__stdcall *GLGETTEXPARAMETERIVPTR)(GLenum target, GLenum pname, GLint* params) nogil
*/
typedef void (__stdcall *__pyx_t_4kivy_8graphics_3cgl_GLGETSHADERSOURCEPTR)(GLuint, GLsizei, GLsizei *, GLchar *);

/* "kivy/graphics/cgl.pxd":458
 * ctypedef void (__stdcall *GLGETSHADERIVPTR)(GLuint, GLenum, GLint *) nogil
 * ctypedef void (__stdcall *GLGETSHADERSOURCEPTR)(GLuint shader, GLsizei bufsize, GLsizei* length, GLchar* source) nogil
 * ctypedef void (__stdcall *GLGETTEXPARAMETERFVPTR)(GLenum target, GLenum pname, GLfloat* params) nogil             # <<<<<<<<<<<<<<
 * ctypedef void (__stdcall *GLGETTEXPARAMETERIVPTR)(GLenum target, GLenum pname, GLint* params) nogil
 * ctypedef void (__stdcall *GLGETUNIFORMFVPTR)(GLuint program, GLint location, GLfloat* params) nogil
*/
typedef void (__stdcall *__pyx_t_4kivy_8graphics_3cgl_GLGETTEXPARAMETERFVPTR)(GLenum, GLenum, GLfloat *);

/* "kivy/graphics/cgl.pxd":459
 * ctypedef void (__stdcall *GLGETSHADERSOURCEPTR)(GLuint shader, GLsizei bufsize, GLsizei* length, GLchar* source) nogil
 * ctypedef void (__stdcall *GLGETTEXPARAMETERFVPTR)(GLenum target, GLenum pname, GLfloat* params) nogil
 * ctypedef void (__stdcall *GLGETTEXPARAMETERIVPTR)(GLenum target, GLenum pname, GLint* params) nogil             # <<<<<<<<<<<<<<
 * ctypedef void (__stdcall *GLGETUNIFORMFVPTR)(GLuint program, GLint location, GLfloat* params) nogil
 * ctypedef void (__stdcall *GLGETUNIFORMIVPTR)(GLuint program, GLint location, GLint* params) nogil
*/
typedef void (__stdcall *__pyx_t_4kivy_8graphics_3cgl_GLGETTEXPARAMETERIVPTR)(GLenum, GLenum, GLint *);

/* "kivy/graphics/cgl.pxd":460
 * ctypedef void (__stdcall *GLGETTEXPARAMETERFVPTR)(GLenum target, GLenum pname, GLfloat* params) nogil
 * ctypedef void (__stdcall *GLGETTEXPARAMETERIVPTR)(GLenum target, GLenum pname, GLint* params) nogil
 * ctypedef void (__stdcall *GLGETUNIFORMFVPTR)(GLuint program, GLint location, GLfloat* params) nogil             # <<<<<<<<<<<<<<
 * ctypedef void (__stdcall *GLGETUNIFORMIVPTR)(GLuint program, GLint location, GLint* params) nogil
 * ctypedef void (__stdcall *GLGETVERTEXATTRIBFVPTR)(GLuint index, GLenum pname, GLfloat* params) nogil
*/
typedef void (__stdcall *__pyx_t_4kivy_8graphics_3cgl_GLGETUNIFORMFVPTR)(GLuint, GLint, GLfloat *);

/* "kivy/graphics/cgl.pxd":461
 * ctypedef void (__stdcall *GLGETTEXPARAMETERIVPTR)(GLenum target, GLenum pname, GLint* params) nogil
 * ctypedef void (__stdcall *GLGETUNIFORMFVPTR)(GLuint program, GLint location, GLfloat* params) nogil
 * ctypedef void (__stdcall *GLGETUNIFORMIVPTR)(GLuint program, GLint location, GLint* params) nogil             # <<<<<<<<<<<<<<
 * ctypedef void (__stdcall *GLGETVERTEXATTRIBFVPTR)(GLuint index, GLenum pname, GLfloat* params) nogil
 * ctypedef void (__stdcall *GLGETVERTEXATTRIBIVPTR)(GLuint index, GLenum pname, GLint* params) nogil
*/
typedef void (__stdcall *__pyx_t_4kivy_8graphics_3cgl_GLGETUNIFORMIVPTR)(GLuint, GLint, GLint *);

/* "kivy/graphics/cgl.pxd":462
 * ctypedef void (__stdcall *GLGETUNIFORMFVPTR)(GLuint program, GLint location, GLfloat* params) nogil
 * ctypedef void (__stdcall *GLGETUNIFORMIVPTR)(GLuint program, GLint location, GLint* params) nogil
 * ctypedef void (__stdcall *GLGETVERTEXATTRIBFVPTR)(GLuint index, GLenum pname, GLfloat* params) nogil             # <<<<<<<<<<<<<<
 * ctypedef void (__stdcall *GLGETVERTEXATTRIBIVPTR)(GLuint index, GLenum pname, GLint* params) nogil
 * ctypedef void (__stdcall *GLHINTPTR)(GLenum target, GLenum mode) nogil
*/
typedef void (__stdcall *__pyx_t_4kivy_8graphics_3cgl_GLGETVERTEXATTRIBFVPTR)(GLuint, GLenum, GLfloat *);

/* "kivy/graphics/cgl.pxd":463
 * ctypedef void (__stdcall *GLGETUNIFORMIVPTR)(GLuint program, GLint location, GLint* params) nogil
 * ctypedef void (__stdcall *GLGETVERTEXATTRIBFVPTR)(GLuint index, GLenum pname, GLfloat* params) nogil
 * ctypedef void (__stdcall *GLGETVERTEXATTRIBIVPTR)(GLuint index, GLenum pname, GLint* params) nogil             # <<<<<<<<<<<<<<
 * ctypedef void (__stdcall *GLHINTPTR)(GLenum target, GLenum mode) nogil
 * ctypedef void (__stdcall *GLLINEWIDTHPTR)(GLfloat width) nogil
*/
typedef void (__stdcall *__pyx_t_4kivy_8graphics_3cgl_GLGETVERTEXATTRIBIVPTR)(GLuint, GLenum, GLint *);

/* "kivy/graphics/cgl.pxd":464
 * ctypedef void (__stdcall *GLGETVERTEXATTRIBFVPTR)(GLuint index, GLenum pname, GLfloat* params) nogil
 * ctypedef void (__stdcall *GLGETVERTEXATTRIBIVPTR)(GLuint index, GLenum pname, GLint* params) nogil
 * ctypedef void (__stdcall *GLHINTPTR)(GLenum target, GLenum mode) nogil             # <<<<<<<<<<<<<<
 * ctypedef void (__stdcall *GLLINEWIDTHPTR)(GLfloat width) nogil
 * ctypedef void (__stdcall *GLLINKPROGRAMPTR)(GLuint) nogil
*/
typedef void (__stdcall *__pyx_t_4kivy_8graphics_3cgl_GLHINTPTR)(GLenum, GLenum);

/* "kivy/graphics/cgl.pxd":465
 * ctypedef void (__stdcall *GLGETVERTEXATTRIBIVPTR)(GLuint index, GLenum pname, GLint* params) nogil
 * ctypedef void (__stdcall *GLHINTPTR)(GLenum target, GLenum mode) nogil
 * ctypedef void (__stdcall *GLLINEWIDTHPTR)(GLfloat width) nogil             # <<<<<<<<<<<<<<
 * ctypedef void (__stdcall *GLLINKPROGRAMPTR)(GLuint) nogil
 * ctypedef void (__stdcall *GLPIXELSTOREIPTR)(GLenum, GLint) nogil
*/
typedef void (__stdcall *__pyx_t_4kivy_8graphics_3cgl_GLLINEWIDTHPTR)(GLfloat);

/* "kivy/graphics/cgl.pxd":466
 * ctypedef void (__stdcall *GLHINTPTR)(GLenum target, GLenum mode) nogil
 * ctypedef void (__stdcall *GLLINEWIDTHPTR)(GLfloat width) nogil
 * ctypedef void (__stdcall *GLLINKPROGRAMPTR)(GLuint) nogil             # <<<<<<<<<<<<<<
 * ctypedef void (__stdcall *GLPIXELSTOREIPTR)(GLenum, GLint) nogil
 * ctypedef void (__stdcall *GLPOLYGONOFFSETPTR)(GLfloat factor, GLfloat units) nogil
*/
typedef void (__stdcall *__pyx_t_4kivy_8graphics_3cgl_GLLINKPROGRAMPTR)(GLuint);

/* "kivy/graphics/cgl.pxd":467
 * ctypedef void (__stdcall *GLLINEWIDTHPTR)(GLfloat width) nogil
 * ctypedef void (__stdcall *GLLINKPROGRAMPTR)(GLuint) nogil
 * ctypedef void (__stdcall *GLPIXELSTOREIPTR)(GLenum, GLint) nogil             # <<<<<<<<<<<<<<
 * ctypedef void (__stdcall *GLPOLYGONOFFSETPTR)(GLfloat factor, GLfloat units) nogil
 * ctypedef void (__stdcall *GLREADPIXELSPTR)(GLint, GLint, GLsizei, GLsizei, GLenum, GLenum, GLvoid*) nogil
*/
typedef void (__stdcall *__pyx_t_4kivy_8graphics_3cgl_GLPIXELSTOREIPTR)(GLenum, GLint);

/* "kivy/graphics/cgl.pxd":468
 * ctypedef void (__stdcall *GLLINKPROGRAMPTR)(GLuint) nogil
 * ctypedef void (__stdcall *GLPIXELSTOREIPTR)(GLenum, GLint) nogil
 * ctypedef void (__stdcall *GLPOLYGONOFFSETPTR)(GLfloat factor, GLfloat units) nogil             # <<<<<<<<<<<<<<
 * ctypedef void (__stdcall *GLREADPIXELSPTR)(GLint, GLint, GLsizei, GLsizei, GLenum, GLenum, GLvoid*) nogil
 * ctypedef void (__stdcall *GLRENDERBUFFERSTORAGEPTR)(GLenum target, GLenum internalformat, GLsizei width, GLsizei height) nogil
*/
typedef void (__stdcall *__pyx_t_4kivy_8graphics_3cgl_GLPOLYGONOFFSETPTR)(GLfloat, GLfloat);

/* "kivy/graphics/cgl.pxd":469
 * ctypedef void (__stdcall *GLPIXELSTOREIPTR)(GLenum, GLint) nogil
 * ctypedef void (__stdcall *GLPOLYGONOFFSETPTR)(GLfloat factor, GLfloat units) nogil
 * ctypedef void (__stdcall *GLREADPIXELSPTR)(GLint, GLint, GLsizei, GLsizei, GLenum, GLenum, GLvoid*) nogil             # <<<<<<<<<<<<<<
 * ctypedef void (__stdcall *GLRENDERBUFFERSTORAGEPTR)(GLenum target, GLenum internalformat, GLsizei width, GLsizei height) nogil
 * ctypedef void (__stdcall *GLSAMPLECOVERAGEPTR)(GLclampf value, GLboolean invert) nogil
*/
typedef void (__stdcall *__pyx_t_4kivy_8graphics_3cgl_GLREADPIXELSPTR)(GLint, GLint, GLsizei, GLsizei, GLenum, GLenum, GLvoid *);

/* "kivy/graphics/cgl.pxd":470
 * ctypedef void (__stdcall *GLPOLYGONOFFSETPTR)(GLfloat factor, GLfloat units) nogil
 * ctypedef void (__stdcall *GLREADPIXELSPTR)(GLint, GLint, GLsizei, GLsizei, GLenum, GLenum, GLvoid*) nogil
 * ctypedef void (__stdcall *GLRENDERBUFFERSTORAGEPTR)(GLenum target, GLenum internalformat, GLsizei width, GLsizei height) nogil             # <<<<<<<<<<<<<<
 * ctypedef void (__stdcall *GLSAMPLECOVERAGEPTR)(GLclampf value, GLboolean invert) nogil
 * ctypedef void (__stdcall *GLSCISSORPTR)(GLint, GLint, GLsizei, GLsizei) nogil
*/
typedef void (__stdcall *__pyx_t_4kivy_8graphics_3cgl_GLRENDERBUFFERSTORAGEPTR)(GLenum, GLenum, GLsizei, GLsizei);

/* "kivy/graphics/cgl.pxd":471
 * ctypedef void (__stdcall *GLREADPIXELSPTR)(GLint, GLint, GLsizei, GLsizei, GLenum, GLenum, GLvoid*) nogil
 * ctypedef void (__stdcall *GLRENDERBUFFERSTORAGEPTR)(GLenum target, GLenum internalformat, GLsizei width, GLsizei height) nogil
 * ctypedef void (__stdcall *GLSAMPLECOVERAGEPTR)(GLclampf value, GLboolean invert) nogil             # <<<<<<<<<<<<<<
 * ctypedef void (__stdcall *GLSCISSORPTR)(GLint, GLint, GLsizei, GLsizei) nogil
 * ctypedef void (__stdcall *GLSHADERBINARYPTR)(GLsizei, const GLuint *, GLenum, const void *, GLsizei) nogil
*/
typedef void (__stdcall *__pyx_t_4kivy_8graphics_3cgl_GLSAMPLECOVERAGEPTR)(GLclampf, GLboolean);

/* "kivy/graphics/cgl.pxd":472
 * ctypedef void (__stdcall *GLRENDERBUFFERSTORAGEPTR)(GLenum target, GLenum internalformat, GLsizei width, GLsizei height) nogil
 * ctypedef void (__stdcall *GLSAMPLECOVERAGEPTR)(GLclampf value, GLboolean invert) nogil
 * ctypedef void (__stdcall *GLSCISSORPTR)(GLint, GLint, GLsizei, GLsizei) nogil             # <<<<<<<<<<<<<<
 * ctypedef void (__stdcall *GLSHADERBINARYPTR)(GLsizei, const GLuint *, GLenum, const void *, GLsizei) nogil
 * ctypedef void (__stdcall *GLSHADERSOURCEPTR)(GLuint, GLsizei, const GLchar* const *, const GLint *) nogil
*/
typedef void (__stdcall *__pyx_t_4kivy_8graphics_3cgl_GLSCISSORPTR)(GLint, GLint, GLsizei, GLsizei);

/* "kivy/graphics/cgl.pxd":473
 * ctypedef void (__stdcall *GLSAMPLECOVERAGEPTR)(GLclampf value, GLboolean invert) nogil
 * ctypedef void (__stdcall *GLSCISSORPTR)(GLint, GLint, GLsizei, GLsizei) nogil
 * ctypedef void (__stdcall *GLSHADERBINARYPTR)(GLsizei, const GLuint *, GLenum, const void *, GLsizei) nogil             # <<<<<<<<<<<<<<
 * ctypedef void (__stdcall *GLSHADERSOURCEPTR)(GLuint, GLsizei, const GLchar* const *, const GLint *) nogil
 * ctypedef void (__stdcall *GLSTENCILFUNCPTR)(GLenum func, GLint ref, GLuint mask) nogil
*/
typedef void (__stdcall *__pyx_t_4kivy_8graphics_3cgl_GLSHADERBINARYPTR)(GLsizei, GLuint const *, GLenum, void const *, GLsizei);

/* "kivy/graphics/cgl.pxd":474
 * ctypedef void (__stdcall *GLSCISSORPTR)(GLint, GLint, GLsizei, GLsizei) nogil
 * ctypedef void (__stdcall *GLSHADERBINARYPTR)(GLsizei, const GLuint *, GLenum, const void *, GLsizei) nogil
 * ctypedef void (__stdcall *GLSHADERSOURCEPTR)(GLuint, GLsizei, const GLchar* const *, const GLint *) nogil             # <<<<<<<<<<<<<<
 * ctypedef void (__stdcall *GLSTENCILFUNCPTR)(GLenum func, GLint ref, GLuint mask) nogil
 * ctypedef void (__stdcall *GLSTENCILFUNCSEPARATEPTR)(GLenum face, GLenum func, GLint ref, GLuint mask) nogil
*/
typedef void (__stdcall *__pyx_t_4kivy_8graphics_3cgl_GLSHADERSOURCEPTR)(GLuint, GLsizei, GLchar const *const *, GLint const *);

/* "kivy/graphics/cgl.pxd":475
 * ctypedef void (__stdcall *GLSHADERBINARYPTR)(GLsizei, const GLuint *, GLenum, const void *, GLsizei) nogil
 * ctypedef void (__stdcall *GLSHADERSOURCEPTR)(GLuint, GLsizei, const GLchar* const *, const GLint *) nogil
 * ctypedef void (__stdcall *GLSTENCILFUNCPTR)(GLenum func, GLint ref, GLuint mask) nogil             # <<<<<<<<<<<<<<
 * ctypedef void (__stdcall *GLSTENCILFUNCSEPARATEPTR)(GLenum face, GLenum func, GLint ref, GLuint mask) nogil
 * ctypedef void (__stdcall *GLSTENCILMASKPTR)(GLuint mask) nogil
*/
typedef void (__stdcall *__pyx_t_4kivy_8graphics_3cgl_GLSTENCILFUNCPTR)(GLenum, GLint, GLuint);

/* "kivy/graphics/cgl.pxd":476
 * ctypedef void (__stdcall *GLSHADERSOURCEPTR)(GLuint, GLsizei, const GLchar* const *, const GLint *) nogil
 * ctypedef void (__stdcall *GLSTENCILFUNCPTR)(GLenum func, GLint ref, GLuint mask) nogil
 * ctypedef void (__stdcall *GLSTENCILFUNCSEPARATEPTR)(GLenum face, GLenum func, GLint ref, GLuint mask) nogil             # <<<<<<<<<<<<<<
 * ctypedef void (__stdcall *GLSTENCILMASKPTR)(GLuint mask) nogil
 * ctypedef void (__stdcall *GLSTENCILMASKSEPARATEPTR)(GLenum face, GLuint mask) nogil
*/
typedef void (__stdcall *__pyx_t_4kivy_8graphics_3cgl_GLSTENCILFUNCSEPARATEPTR)(GLenum, GLenum, GLint, GLuint);

/* "kivy/graphics/cgl.pxd":477
 * ctypedef void (__stdcall *GLSTENCILFUNCPTR)(GLenum func, GLint ref, GLuint mask) nogil
 * ctypedef void (__stdcall *GLSTENCILFUNCSEPARATEPTR)(GLenum face, GLenum func, GLint ref, GLuint mask) nogil
 * ctypedef void (__stdcall *GLSTENCILMASKPTR)(GLuint mask) nogil             # <<<<<<<<<<<<<<
 * ctypedef void (__stdcall *GLSTENCILMASKSEPARATEPTR)(GLenum face, GLuint mask) nogil
 * ctypedef void (__stdcall *GLSTENCILOPPTR)(GLenum fail, GLenum zfail, GLenum zpass) nogil
*/
typedef void (__stdcall *__pyx_t_4kivy_8graphics_3cgl_GLSTENCILMASKPTR)(GLuint);

/* "kivy/graphics/cgl.pxd":478
 * ctypedef void (__stdcall *GLSTENCILFUNCSEPARATEPTR)(GLenum face, GLenum func, GLint ref, GLuint mask) nogil
 * ctypedef void (__stdcall *GLSTENCILMASKPTR)(GLuint mask) nogil
 * ctypedef void (__stdcall *GLSTENCILMASKSEPARATEPTR)(GLenum face, GLuint mask) nogil             # <<<<<<<<<<<<<<
 * ctypedef void (__stdcall *GLSTENCILOPPTR)(GLenum fail, GLenum zfail, GLenum zpass) nogil
 * ctypedef void (__stdcall *GLSTENCILOPSEPARATEPTR)(GLenum face, GLenum fail, GLenum zfail, GLenum zpass) nogil
*/
typedef void (__stdcall *__pyx_t_4kivy_8graphics_3cgl_GLSTENCILMASKSEPARATEPTR)(GLenum, GLuint);

/* "kivy/graphics/cgl.pxd":479
 * ctypedef void (__stdcall *GLSTENCILMASKPTR)(GLuint mask) nogil
 * ctypedef void (__stdcall *GLSTENCILMASKSEPARATEPTR)(GLenum face, GLuint mask) nogil
 * ctypedef void (__stdcall *GLSTENCILOPPTR)(GLenum fail, GLenum zfail, GLenum zpass) nogil             # <<<<<<<<<<<<<<
 * ctypedef void (__stdcall *GLSTENCILOPSEPARATEPTR)(GLenum face, GLenum fail, GLenum zfail, GLenum zpass) nogil
 * ctypedef void (__stdcall *GLTEXIMAGE2DPTR)(GLenum, GLint, GLint, GLsizei, GLsizei, GLint, GLenum, GLenum, const void *) nogil
*/
typedef void (__stdcall *__pyx_t_4kivy_8graphics_3cgl_GLSTENCILOPPTR)(GLenum, GLenum, GLenum);

/* "kivy/graphics/cgl.pxd":480
 * ctypedef void (__stdcall *GLSTENCILMASKSEPARATEPTR)(GLenum face, GLuint mask) nogil
 * ctypedef void (__stdcall *GLSTENCILOPPTR)(GLenum fail, GLenum zfail, GLenum zpass) nogil
 * ctypedef void (__stdcall *GLSTENCILOPSEPARATEPTR)(GLenum face, GLenum fail, GLenum zfail, GLenum zpass) nogil             # <<<<<<<<<<<<<<
 * ctypedef void (__stdcall *GLTEXIMAGE2DPTR)(GLenum, GLint, GLint, GLsizei, GLsizei, GLint, GLenum, GLenum, const void *) nogil
 * ctypedef void (__stdcall *GLTEXPARAMETERFPTR)(GLenum target, GLenum pname, GLfloat param) nogil
*/
typedef void (__stdcall *__pyx_t_4kivy_8graphics_3cgl_GLSTENCILOPSEPARATEPTR)(GLenum, GLenum, GLenum, GLenum);

/* "kivy/graphics/cgl.pxd":481
 * ctypedef void (__stdcall *GLSTENCILOPPTR)(GLenum fail, GLenum zfail, GLenum zpass) nogil
 * ctypedef void (__stdcall *GLSTENCILOPSEPARATEPTR)(GLenum face, GLenum fail, GLenum zfail, GLenum zpass) nogil
 * ctypedef void (__stdcall *GLTEXIMAGE2DPTR)(GLenum, GLint, GLint, GLsizei, GLsizei, GLint, GLenum, GLenum, const void *) nogil             # <<<<<<<<<<<<<<
 * ctypedef void (__stdcall *GLTEXPARAMETERFPTR)(GLenum target, GLenum pname, GLfloat param) nogil
 * ctypedef void (__stdcall *GLTEXPARAMETERIPTR)(GLenum, GLenum, GLint) nogil
*/
typedef void (__stdcall *__pyx_t_4kivy_8graphics_3cgl_GLTEXIMAGE2DPTR)(GLenum, GLint, GLint, GLsizei, GLsizei, GLint, GLenum, GLenum, void const *);

/* "kivy/graphics/cgl.pxd":482
 * ctypedef void (__stdcall *GLSTENCILOPSEPARATEPTR)(GLenum face, GLenum fail, GLenum zfail, GLenum zpass) nogil
 * ctypedef void (__stdcall *GLTEXIMAGE2DPTR)(GLenum, GLint, GLint, GLsizei, GLsizei, GLint, GLenum, GLenum, const void *) nogil
 * ctypedef void (__stdcall *GLTEXPARAMETERFPTR)(GLenum target, GLenum pname, GLfloat param) nogil             # <<<<<<<<<<<<<<
 * ctypedef void (__stdcall *GLTEXPARAMETERIPTR)(GLenum, GLenum, GLint) nogil
 * ctypedef void (__stdcall *GLTEXSUBIMAGE2DPTR)(GLenum, GLint, GLint, GLint, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *) nogil
*/
typedef void (__stdcall *__pyx_t_4kivy_8graphics_3cgl_GLTEXPARAMETERFPTR)(GLenum, GLenum, GLfloat);

/* "kivy/graphics/cgl.pxd":483
 * ctypedef void (__stdcall *GLTEXIMAGE2DPTR)(GLenum, GLint, GLint, GLsizei, GLsizei, GLint, GLenum, GLenum, const void *) nogil
 * ctypedef void (__stdcall *GLTEXPARAMETERFPTR)(GLenum target, GLenum pname, GLfloat param) nogil
 * ctypedef void (__stdcall *GLTEXPARAMETERIPTR)(GLenum, GLenum, GLint) nogil             # <<<<<<<<<<<<<<
 * ctypedef void (__stdcall *GLTEXSUBIMAGE2DPTR)(GLenum, GLint, GLint, GLint, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *) nogil
 * ctypedef void (__stdcall *GLUNIFORM1FPTR)(GLint location, GLfloat x) nogil
*/
typedef void (__stdcall *__pyx_t_4kivy_8graphics_3cgl_GLTEXPARAMETERIPTR)(GLenum, GLenum, GLint);

/* "kivy/graphics/cgl.pxd":484
 * ctypedef void (__stdcall *GLTEXPARAMETERFPTR)(GLenum target, GLenum pname, GLfloat param) nogil
 * ctypedef void (__stdcall *GLTEXPARAMETERIPTR)(GLenum, GLenum, GLint) nogil
 * ctypedef void (__stdcall *GLTEXSUBIMAGE2DPTR)(GLenum, GLint, GLint, GLint, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *) nogil             # <<<<<<<<<<<<<<
 * ctypedef void (__stdcall *GLUNIFORM1FPTR)(GLint location, GLfloat x) nogil
 * ctypedef void (__stdcall *GLUNIFORM1FVPTR)(GLint location, GLsizei count, const GLfloat* v) nogil
*/
typedef void (__stdcall *__pyx_t_4kivy_8graphics_3cgl_GLTEXSUBIMAGE2DPTR)(GLenum, GLint, GLint, GLint, GLsizei, GLsizei, GLenum, GLenum, GLvoid const *);

/* "kivy/graphics/cgl.pxd":485
 * ctypedef void (__stdcall *GLTEXPARAMETERIPTR)(GLenum, GLenum, GLint) nogil
 * ctypedef void (__stdcall *GLTEXSUBIMAGE2DPTR)(GLenum, GLint, GLint, GLint, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *) nogil
 * ctypedef void (__stdcall *GLUNIFORM1FPTR)(GLint location, GLfloat x) nogil             # <<<<<<<<<<<<<<
 * ctypedef void (__stdcall *GLUNIFORM1FVPTR)(GLint location, GLsizei count, const GLfloat* v) nogil
 * ctypedef void (__stdcall *GLUNIFORM1IPTR)(GLint, GLint) nogil
*/
typedef void (__stdcall *__pyx_t_4kivy_8graphics_3cgl_GLUNIFORM1FPTR)(GLint, GLfloat);

/* "kivy/graphics/cgl.pxd":486
 * ctypedef void (__stdcall *GLTEXSUBIMAGE2DPTR)(GLenum, GLint, GLint, GLint, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *) nogil
 * ctypedef void (__stdcall *GLUNIFORM1FPTR)(GLint location, GLfloat x) nogil
 * ctypedef void (__stdcall *GLUNIFORM1FVPTR)(GLint location, GLsizei count, const GLfloat* v) nogil             # <<<<<<<<<<<<<<
 * ctypedef void (__stdcall *GLUNIFORM1IPTR)(GLint, GLint) nogil
 * ctypedef void (__stdcall *GLUNIFORM1IVPTR)(GLint location, GLsizei count, const GLint* v) nogil
*/
typedef void (__stdcall *__pyx_t_4kivy_8graphics_3cgl_GLUNIFORM1FVPTR)(GLint, GLsizei, GLfloat const *);

/* "kivy/graphics/cgl.pxd":487
 * ctypedef void (__stdcall *GLUNIFORM1FPTR)(GLint location, GLfloat x) nogil
 * ctypedef void (__stdcall *GLUNIFORM1FVPTR)(GLint location, GLsizei count, const GLfloat* v) nogil
 * ctypedef void (__stdcall *GLUNIFORM1IPTR)(GLint, GLint) nogil             # <<<<<<<<<<<<<<
 * ctypedef void (__stdcall *GLUNIFORM1IVPTR)(GLint location, GLsizei count, const GLint* v) nogil
 * ctypedef void (__stdcall *GLUNIFORM2FPTR)(GLint location, GLfloat x, GLfloat y) nogil
*/
typedef void (__stdcall *__pyx_t_4kivy_8graphics_3cgl_GLUNIFORM1IPTR)(GLint, GLint);

/* "kivy/graphics/cgl.pxd":488
 * ctypedef void (__stdcall *GLUNIFORM1FVPTR)(GLint location, GLsizei count, const GLfloat* v) nogil
 * ctypedef void (__stdcall *GLUNIFORM1IPTR)(GLint, GLint) nogil
 * ctypedef void (__stdcall *GLUNIFORM1IVPTR)(GLint location, GLsizei count, const GLint* v) nogil             # <<<<<<<<<<<<<<
 * ctypedef void (__stdcall *GLUNIFORM2FPTR)(GLint location, GLfloat x, GLfloat y) nogil
 * ctypedef void (__stdcall *GLUNIFORM2FVPTR)(GLint location, GLsizei count, const GLfloat* v) nogil
*/
typedef void (__stdcall *__pyx_t_4kivy_8graphics_3cgl_GLUNIFORM1IVPTR)(GLint, GLsizei, GLint const *);

/* "kivy/graphics/cgl.pxd":489
 * ctypedef void (__stdcall *GLUNIFORM1IPTR)(GLint, GLint) nogil
 * ctypedef void (__stdcall *GLUNIFORM1IVPTR)(GLint location, GLsizei count, const GLint* v) nogil
 * ctypedef void (__stdcall *GLUNIFORM2FPTR)(GLint location, GLfloat x, GLfloat y) nogil             # <<<<<<<<<<<<<<
 * ctypedef void (__stdcall *GLUNIFORM2FVPTR)(GLint location, GLsizei count, const GLfloat* v) nogil
 * ctypedef void (__stdcall *GLUNIFORM2IPTR)(GLint location, GLint x, GLint y) nogil
*/
typedef void (__stdcall *__pyx_t_4kivy_8graphics_3cgl_GLUNIFORM2FPTR)(GLint, GLfloat, GLfloat);

/* "kivy/graphics/cgl.pxd":490
 * ctypedef void (__stdcall *GLUNIFORM1IVPTR)(GLint location, GLsizei count, const GLint* v) nogil
 * ctypedef void (__stdcall *GLUNIFORM2FPTR)(GLint location, GLfloat x, GLfloat y) nogil
 * ctypedef void (__stdcall *GLUNIFORM2FVPTR)(GLint location, GLsizei count, const GLfloat* v) nogil             # <<<<<<<<<<<<<<
 * ctypedef void (__stdcall *GLUNIFORM2IPTR)(GLint location, GLint x, GLint y) nogil
 * ctypedef void (__stdcall *GLUNIFORM2IVPTR)(GLint location, GLsizei count, const GLint* v) nogil
*/
typedef void (__stdcall *__pyx_t_4kivy_8graphics_3cgl_GLUNIFORM2FVPTR)(GLint, GLsizei, GLfloat const *);

/* "kivy/graphics/cgl.pxd":491
 * ctypedef void (__stdcall *GLUNIFORM2FPTR)(GLint location, GLfloat x, GLfloat y) nogil
 * ctypedef void (__stdcall *GLUNIFORM2FVPTR)(GLint location, GLsizei count, const GLfloat* v) nogil
 * ctypedef void (__stdcall *GLUNIFORM2IPTR)(GLint location, GLint x, GLint y) nogil             # <<<<<<<<<<<<<<
 * ctypedef void (__stdcall *GLUNIFORM2IVPTR)(GLint location, GLsizei count, const GLint* v) nogil
 * ctypedef void (__stdcall *GLUNIFORM3FPTR)(GLint location, GLfloat x, GLfloat y, GLfloat z) nogil
*/
typedef void (__stdcall *__pyx_t_4kivy_8graphics_3cgl_GLUNIFORM2IPTR)(GLint, GLint, GLint);

/* "kivy/graphics/cgl.pxd":492
 * ctypedef void (__stdcall *GLUNIFORM2FVPTR)(GLint location, GLsizei count, const GLfloat* v) nogil
 * ctypedef void (__stdcall *GLUNIFORM2IPTR)(GLint location, GLint x, GLint y) nogil
 * ctypedef void (__stdcall *GLUNIFORM2IVPTR)(GLint location, GLsizei count, const GLint* v) nogil             # <<<<<<<<<<<<<<
 * ctypedef void (__stdcall *GLUNIFORM3FPTR)(GLint location, GLfloat x, GLfloat y, GLfloat z) nogil
 * ctypedef void (__stdcall *GLUNIFORM3FVPTR)(GLint location, GLsizei count, const GLfloat* v) nogil
*/
typedef void (__stdcall *__pyx_t_4kivy_8graphics_3cgl_GLUNIFORM2IVPTR)(GLint, GLsizei, GLint const *);

/* "kivy/graphics/cgl.pxd":493
 * ctypedef void (__stdcall *GLUNIFORM2IPTR)(GLint location, GLint x, GLint y) nogil
 * ctypedef void (__stdcall *GLUNIFORM2IVPTR)(GLint location, GLsizei count, const GLint* v) nogil
 * ctypedef void (__stdcall *GLUNIFORM3FPTR)(GLint location, GLfloat x, GLfloat y, GLfloat z) nogil             # <<<<<<<<<<<<<<
 * ctypedef void (__stdcall *GLUNIFORM3FVPTR)(GLint location, GLsizei count, const GLfloat* v) nogil
 * ctypedef void (__stdcall *GLUNIFORM3IPTR)(GLint location, GLint x, GLint y, GLint z) nogil
*/
typedef void (__stdcall *__pyx_t_4kivy_8graphics_3cgl_GLUNIFORM3FPTR)(GLint, GLfloat, GLfloat, GLfloat);

/* "kivy/graphics/cgl.pxd":494
 * ctypedef void (__stdcall *GLUNIFORM2IVPTR)(GLint location, GLsizei count, const GLint* v) nogil
 * ctypedef void (__stdcall *GLUNIFORM3FPTR)(GLint location, GLfloat x, GLfloat y, GLfloat z) nogil
 * ctypedef void (__stdcall *GLUNIFORM3FVPTR)(GLint location, GLsizei count, const GLfloat* v) nogil             # <<<<<<<<<<<<<<
 * ctypedef void (__stdcall *GLUNIFORM3IPTR)(GLint location, GLint x, GLint y, GLint z) nogil
 * ctypedef void (__stdcall *GLUNIFORM3IVPTR)(GLint location, GLsizei count, const GLint* v) nogil
*/
typedef void (__stdcall *__pyx_t_4kivy_8graphics_3cgl_GLUNIFORM3FVPTR)(GLint, GLsizei, GLfloat const *);

/* "kivy/graphics/cgl.pxd":495
 * ctypedef void (__stdcall *GLUNIFORM3FPTR)(GLint location, GLfloat x, GLfloat y, GLfloat z) nogil
 * ctypedef void (__stdcall *GLUNIFORM3FVPTR)(GLint location, GLsizei count, const GLfloat* v) nogil
 * ctypedef void (__stdcall *GLUNIFORM3IPTR)(GLint location, GLint x, GLint y, GLint z) nogil             # <<<<<<<<<<<<<<
 * ctypedef void (__stdcall *GLUNIFORM3IVPTR)(GLint location, GLsizei count, const GLint* v) nogil
 * ctypedef void (__stdcall *GLUNIFORM4FPTR)(GLint, GLfloat, GLfloat, GLfloat, GLfloat) nogil
*/
typedef void (__stdcall *__pyx_t_4kivy_8graphics_3cgl_GLUNIFORM3IPTR)(GLint, GLint, GLint, GLint);

/* "kivy/graphics/cgl.pxd":496
 * ctypedef void (__stdcall *GLUNIFORM3FVPTR)(GLint location, GLsizei count, const GLfloat* v) nogil
 * ctypedef void (__stdcall *GLUNIFORM3IPTR)(GLint location, GLint x, GLint y, GLint z) nogil
 * ctypedef void (__stdcall *GLUNIFORM3IVPTR)(GLint location, GLsizei count, const GLint* v) nogil             # <<<<<<<<<<<<<<
 * ctypedef void (__stdcall *GLUNIFORM4FPTR)(GLint, GLfloat, GLfloat, GLfloat, GLfloat) nogil
 * ctypedef void (__stdcall *GLUNIFORM4FVPTR)(GLint location, GLsizei count, const GLfloat* v) nogil
*/
typedef void (__stdcall *__pyx_t_4kivy_8graphics_3cgl_GLUNIFORM3IVPTR)(GLint, GLsizei, GLint const *);

/* "kivy/graphics/cgl.pxd":497
 * ctypedef void (__stdcall *GLUNIFORM3IPTR)(GLint location, GLint x, GLint y, GLint z) nogil
 * ctypedef void (__stdcall *GLUNIFORM3IVPTR)(GLint location, GLsizei count, const GLint* v) nogil
 * ctypedef void (__stdcall *GLUNIFORM4FPTR)(GLint, GLfloat, GLfloat, GLfloat, GLfloat) nogil             # <<<<<<<<<<<<<<
 * ctypedef void (__stdcall *GLUNIFORM4FVPTR)(GLint location, GLsizei count, const GLfloat* v) nogil
 * ctypedef void (__stdcall *GLUNIFORM4IPTR)(GLint location, GLint x, GLint y, GLint z, GLint w) nogil
*/
typedef void (__stdcall *__pyx_t_4kivy_8graphics_3cgl_GLUNIFORM4FPTR)(GLint, GLfloat, GLfloat, GLfloat, GLfloat);

/* "kivy/graphics/cgl.pxd":498
 * ctypedef void (__stdcall *GLUNIFORM3IVPTR)(GLint location, GLsizei count, const GLint* v) nogil
 * ctypedef void (__stdcall *GLUNIFORM4FPTR)(GLint, GLfloat, GLfloat, GLfloat, GLfloat) nogil
 * ctypedef void (__stdcall *GLUNIFORM4FVPTR)(GLint location, GLsizei count, const GLfloat* v) nogil             # <<<<<<<<<<<<<<
 * ctypedef void (__stdcall *GLUNIFORM4IPTR)(GLint location, GLint x, GLint y, GLint z, GLint w) nogil
 * ctypedef void (__stdcall *GLUNIFORM4IVPTR)(GLint location, GLsizei count, const GLint* v) nogil
*/
typedef void (__stdcall *__pyx_t_4kivy_8graphics_3cgl_GLUNIFORM4FVPTR)(GLint, GLsizei, GLfloat const *);

/* "kivy/graphics/cgl.pxd":499
 * ctypedef void (__stdcall *GLUNIFORM4FPTR)(GLint, GLfloat, GLfloat, GLfloat, GLfloat) nogil
 * ctypedef void (__stdcall *GLUNIFORM4FVPTR)(GLint location, GLsizei count, const GLfloat* v) nogil
 * ctypedef void (__stdcall *GLUNIFORM4IPTR)(GLint location, GLint x, GLint y, GLint z, GLint w) nogil             # <<<<<<<<<<<<<<
 * ctypedef void (__stdcall *GLUNIFORM4IVPTR)(GLint location, GLsizei count, const GLint* v) nogil
 * ctypedef void (__stdcall *GLUNIFORMMATRIX4FVPTR)(GLint, GLsizei, GLboolean, const GLfloat *) nogil
*/
typedef void (__stdcall *__pyx_t_4kivy_8graphics_3cgl_GLUNIFORM4IPTR)(GLint, GLint, GLint, GLint, GLint);

/* "kivy/graphics/cgl.pxd":500
 * ctypedef void (__stdcall *GLUNIFORM4FVPTR)(GLint location, GLsizei count, const GLfloat* v) nogil
 * ctypedef void (__stdcall *GLUNIFORM4IPTR)(GLint location, GLint x, GLint y, GLint z, GLint w) nogil
 * ctypedef void (__stdcall *GLUNIFORM4IVPTR)(GLint location, GLsizei count, const GLint* v) nogil             # <<<<<<<<<<<<<<
 * ctypedef void (__stdcall *GLUNIFORMMATRIX4FVPTR)(GLint, GLsizei, GLboolean, const GLfloat *) nogil
 * ctypedef void (__stdcall *GLUSEPROGRAMPTR)(GLuint) nogil
*/
typedef void (__stdcall *__pyx_t_4kivy_8graphics_3cgl_GLUNIFORM4IVPTR)(GLint, GLsizei, GLint const *);

/* "kivy/graphics/cgl.pxd":501
 * ctypedef void (__stdcall *GLUNIFORM4IPTR)(GLint location, GLint x, GLint y, GLint z, GLint w) nogil
 * ctypedef void (__stdcall *GLUNIFORM4IVPTR)(GLint location, GLsizei count, const GLint* v) nogil
 * ctypedef void (__stdcall *GLUNIFORMMATRIX4FVPTR)(GLint, GLsizei, GLboolean, const GLfloat *) nogil             # <<<<<<<<<<<<<<
 * ctypedef void (__stdcall *GLUSEPROGRAMPTR)(GLuint) nogil
 * ctypedef void (__stdcall *GLVALIDATEPROGRAMPTR)(GLuint program) nogil
*/
typedef void (__stdcall *__pyx_t_4kivy_8graphics_3cgl_GLUNIFORMMATRIX4FVPTR)(GLint, GLsizei, GLboolean, GLfloat const *);

/* "kivy/graphics/cgl.pxd":502
 * ctypedef void (__stdcall *GLUNIFORM4IVPTR)(GLint location, GLsizei count, const GLint* v) nogil
 * ctypedef void (__stdcall *GLUNIFORMMATRIX4FVPTR)(GLint, GLsizei, GLboolean, const GLfloat *) nogil
 * ctypedef void (__stdcall *GLUSEPROGRAMPTR)(GLuint) nogil             # <<<<<<<<<<<<<<
 * ctypedef void (__stdcall *GLVALIDATEPROGRAMPTR)(GLuint program) nogil
 * ctypedef void (__stdcall *GLVERTEXATTRIB1FPTR)(GLuint indx, GLfloat x) nogil
*/
typedef void (__stdcall *__pyx_t_4kivy_8graphics_3cgl_GLUSEPROGRAMPTR)(GLuint);

/* "kivy/graphics/cgl.pxd":503
 * ctypedef void (__stdcall *GLUNIFORMMATRIX4FVPTR)(GLint, GLsizei, GLboolean, const GLfloat *) nogil
 * ctypedef void (__stdcall *GLUSEPROGRAMPTR)(GLuint) nogil
 * ctypedef void (__stdcall *GLVALIDATEPROGRAMPTR)(GLuint program) nogil             # <<<<<<<<<<<<<<
 * ctypedef void (__stdcall *GLVERTEXATTRIB1FPTR)(GLuint indx, GLfloat x) nogil
 * ctypedef void (__stdcall *GLVERTEXATTRIB2FPTR)(GLuint indx, GLfloat x, GLfloat y) nogil
*/
typedef void (__stdcall *__pyx_t_4kivy_8graphics_3cgl_GLVALIDATEPROGRAMPTR)(GLuint);

/* "kivy/graphics/cgl.pxd":504
 * ctypedef void (__stdcall *GLUSEPROGRAMPTR)(GLuint) nogil
 * ctypedef void (__stdcall *GLVALIDATEPROGRAMPTR)(GLuint program) nogil
 * ctypedef void (__stdcall *GLVERTEXATTRIB1FPTR)(GLuint indx, GLfloat x) nogil             # <<<<<<<<<<<<<<
 * ctypedef void (__stdcall *GLVERTEXATTRIB2FPTR)(GLuint indx, GLfloat x, GLfloat y) nogil
 * ctypedef void (__stdcall *GLVERTEXATTRIB3FPTR)(GLuint indx, GLfloat x, GLfloat y, GLfloat z) nogil
*/
typedef void (__stdcall *__pyx_t_4kivy_8graphics_3cgl_GLVERTEXATTRIB1FPTR)(GLuint, GLfloat);

/* "kivy/graphics/cgl.pxd":505
 * ctypedef void (__stdcall *GLVALIDATEPROGRAMPTR)(GLuint program) nogil
 * ctypedef void (__stdcall *GLVERTEXATTRIB1FPTR)(GLuint indx, GLfloat x) nogil
 * ctypedef void (__stdcall *GLVERTEXATTRIB2FPTR)(GLuint indx, GLfloat x, GLfloat y) nogil             # <<<<<<<<<<<<<<
 * ctypedef void (__stdcall *GLVERTEXATTRIB3FPTR)(GLuint indx, GLfloat x, GLfloat y, GLfloat z) nogil
 * ctypedef void (__stdcall *GLVERTEXATTRIB4FPTR)(GLuint indx, GLfloat x, GLfloat y, GLfloat z, GLfloat w) nogil
*/
typedef void (__stdcall *__pyx_t_4kivy_8graphics_3cgl_GLVERTEXATTRIB2FPTR)(GLuint, GLfloat, GLfloat);

/* "kivy/graphics/cgl.pxd":506
 * ctypedef void (__stdcall *GLVERTEXATTRIB1FPTR)(GLuint indx, GLfloat x) nogil
 * ctypedef void (__stdcall *GLVERTEXATTRIB2FPTR)(GLuint indx, GLfloat x, GLfloat y) nogil
 * ctypedef void (__stdcall *GLVERTEXATTRIB3FPTR)(GLuint indx, GLfloat x, GLfloat y, GLfloat z) nogil             # <<<<<<<<<<<<<<
 * ctypedef void (__stdcall *GLVERTEXATTRIB4FPTR)(GLuint indx, GLfloat x, GLfloat y, GLfloat z, GLfloat w) nogil
 * ctypedef void (__stdcall *GLVERTEXATTRIBPOINTERPTR)(GLuint, GLint, GLenum, GLboolean, GLsizei, const void *) nogil
*/
typedef void (__stdcall *__pyx_t_4kivy_8graphics_3cgl_GLVERTEXATTRIB3FPTR)(GLuint, GLfloat, GLfloat, GLfloat);

/* "kivy/graphics/cgl.pxd":507
 * ctypedef void (__stdcall *GLVERTEXATTRIB2FPTR)(GLuint indx, GLfloat x, GLfloat y) nogil
 * ctypedef void (__stdcall *GLVERTEXATTRIB3FPTR)(GLuint indx, GLfloat x, GLfloat y, GLfloat z) nogil
 * ctypedef void (__stdcall *GLVERTEXATTRIB4FPTR)(GLuint indx, GLfloat x, GLfloat y, GLfloat z, GLfloat w) nogil             # <<<<<<<<<<<<<<
 * ctypedef void (__stdcall *GLVERTEXATTRIBPOINTERPTR)(GLuint, GLint, GLenum, GLboolean, GLsizei, const void *) nogil
 * ctypedef void (__stdcall *GLVIEWPORTPTR)(GLint, GLint, GLsizei, GLsizei) nogil
*/
typedef void (__stdcall *__pyx_t_4kivy_8graphics_3cgl_GLVERTEXATTRIB4FPTR)(GLuint, GLfloat, GLfloat, GLfloat, GLfloat);

/* "kivy/graphics/cgl.pxd":508
 * ctypedef void (__stdcall *GLVERTEXATTRIB3FPTR)(GLuint indx, GLfloat x, GLfloat y, GLfloat z) nogil
 * ctypedef void (__stdcall *GLVERTEXATTRIB4FPTR)(GLuint indx, GLfloat x, GLfloat y, GLfloat z, GLfloat w) nogil
 * ctypedef void (__stdcall *GLVERTEXATTRIBPOINTERPTR)(GLuint, GLint, GLenum, GLboolean, GLsizei, const void *) nogil             # <<<<<<<<<<<<<<
 * ctypedef void (__stdcall *GLVIEWPORTPTR)(GLint, GLint, GLsizei, GLsizei) nogil
 * 
*/
typedef void (__stdcall *__pyx_t_4kivy_8graphics_3cgl_GLVERTEXATTRIBPOINTERPTR)(GLuint, GLint, GLenum, GLboolean, GLsizei, void const *);

/* "kivy/graphics/cgl.pxd":509
 * ctypedef void (__stdcall *GLVERTEXATTRIB4FPTR)(GLuint indx, GLfloat x, GLfloat y, GLfloat z, GLfloat w) nogil
 * ctypedef void (__stdcall *GLVERTEXATTRIBPOINTERPTR)(GLuint, GLint, GLenum, GLboolean, GLsizei, const void *) nogil
 * ctypedef void (__stdcall *GLVIEWPORTPTR)(GLint, GLint, GLsizei, GLsizei) nogil             # <<<<<<<<<<<<<<
 * 
 * ctypedef struct GLES2_Context:
*/
typedef void (__stdcall *__pyx_t_4kivy_8graphics_3cgl_GLVIEWPORTPTR)(GLint, GLint, GLsizei, GLsizei);

/* "kivy/graphics/cgl.pxd":511
 * ctypedef void (__stdcall *GLVIEWPORTPTR)(GLint, GLint, GLsizei, GLsizei) nogil
 * 
 * ctypedef struct GLES2_Context:             # <<<<<<<<<<<<<<
 *     const GLubyte* (__stdcall *glGetString)(GLenum) nogil
 *     GLboolean (__stdcall *glIsBuffer)(GLuint buffer) nogil
*/
struct __pyx_t_4kivy_8graphics_3cgl_GLES2_Context {
  GLubyte const *(__stdcall *glGetString)(GLenum);
  GLboolean (__stdcall *glIsBuffer)(GLuint);
  GLboolean (__stdcall *glIsEnabled)(GLenum);
  GLboolean (__stdcall *glIsFramebuffer)(GLuint);
  GLboolean (__stdcall *glIsProgram)(GLuint);
  GLboolean (__stdcall *glIsRenderbuffer)(GLuint);
  GLboolean (__stdcall *glIsShader)(GLuint);
  GLboolean (__stdcall *glIsTexture)(GLuint);
  GLenum (__stdcall *glCheckFramebufferStatus)(GLenum);
  GLenum (__stdcall *glGetError)(void);
  GLint (__stdcall *glGetAttribLocation)(GLuint, GLchar const *);
  GLint (__stdcall *glGetUniformLocation)(GLuint, char const *);
  GLuint (__stdcall *glCreateProgram)(void);
  GLuint (__stdcall *glCreateShader)(GLenum);
  void (__stdcall *glActiveTexture)(GLenum);
  void (__stdcall *glAttachShader)(GLuint, GLuint);
  void (__stdcall *glBindAttribLocation)(GLuint, GLuint, char const *);
  void (__stdcall *glBindBuffer)(GLenum, GLuint);
  void (__stdcall *glBindFramebuffer)(GLenum, GLuint);
  void (__stdcall *glBindRenderbuffer)(GLenum, GLuint);
  void (__stdcall *glBindTexture)(GLenum, GLuint);
  void (__stdcall *glBlendColor)(GLclampf, GLclampf, GLclampf, GLclampf);
  void (__stdcall *glBlendEquation)(GLenum);
  void (__stdcall *glBlendEquationSeparate)(GLenum, GLenum);
  void (__stdcall *glBlendFunc)(GLenum, GLenum);
  void (__stdcall *glBlendFuncSeparate)(GLenum, GLenum, GLenum, GLenum);
  void (__stdcall *glBufferData)(GLenum, GLsizeiptr, GLvoid const *, GLenum);
  void (__stdcall *glBufferSubData)(GLenum, GLintptr, GLsizeiptr, GLvoid const *);
  void (__stdcall *glClear)(GLbitfield);
  void (__stdcall *glClearColor)(GLclampf, GLclampf, GLclampf, GLclampf);
  void (__stdcall *glClearStencil)(GLint);
  void (__stdcall *glColorMask)(GLboolean, GLboolean, GLboolean, GLboolean);
  void (__stdcall *glCompileShader)(GLuint);
  void (__stdcall *glCompressedTexImage2D)(GLenum, GLint, GLenum, GLsizei, GLsizei, GLint, GLsizei, GLvoid const *);
  void (__stdcall *glCompressedTexSubImage2D)(GLenum, GLint, GLint, GLint, GLsizei, GLsizei, GLenum, GLsizei, GLvoid const *);
  void (__stdcall *glCopyTexImage2D)(GLenum, GLint, GLenum, GLint, GLint, GLsizei, GLsizei, GLint);
  void (__stdcall *glCopyTexSubImage2D)(GLenum, GLint, GLint, GLint, GLint, GLint, GLsizei, GLsizei);
  void (__stdcall *glCullFace)(GLenum);
  void (__stdcall *glDeleteBuffers)(GLsizei, GLuint const *);
  void (__stdcall *glDeleteFramebuffers)(GLsizei, GLuint const *);
  void (__stdcall *glDeleteProgram)(GLuint);
  void (__stdcall *glDeleteRenderbuffers)(GLsizei, GLuint const *);
  void (__stdcall *glDeleteShader)(GLuint);
  void (__stdcall *glDeleteTextures)(GLsizei, GLuint const *);
  void (__stdcall *glDepthFunc)(GLenum);
  void (__stdcall *glDepthMask)(GLboolean);
  void (__stdcall *glDetachShader)(GLuint, GLuint);
  void (__stdcall *glDisable)(GLenum);
  void (__stdcall *glDisableVertexAttribArray)(GLuint);
  void (__stdcall *glDrawArrays)(GLenum, GLint, GLsizei);
  void (__stdcall *glDrawElements)(GLenum, GLsizei, GLenum, GLvoid const *);
  void (__stdcall *glEnable)(GLenum);
  void (__stdcall *glEnableVertexAttribArray)(GLuint);
  void (__stdcall *glFinish)(void);
  void (__stdcall *glFlush)(void);
  void (__stdcall *glFramebufferRenderbuffer)(GLenum, GLenum, GLenum, GLuint);
  void (__stdcall *glFramebufferTexture2D)(GLenum, GLenum, GLenum, GLuint, GLint);
  void (__stdcall *glFrontFace)(GLenum);
  void (__stdcall *glGenBuffers)(GLsizei, GLuint *);
  void (__stdcall *glGenerateMipmap)(GLenum);
  void (__stdcall *glGenFramebuffers)(GLsizei, GLuint *);
  void (__stdcall *glGenRenderbuffers)(GLsizei, GLuint *);
  void (__stdcall *glGenTextures)(GLsizei, GLuint *);
  void (__stdcall *glGetActiveAttrib)(GLuint, GLuint, GLsizei, GLsizei *, GLint *, GLenum *, GLchar *);
  void (__stdcall *glGetActiveUniform)(GLuint, GLuint, GLsizei, GLsizei *, GLint *, GLenum *, GLchar *);
  void (__stdcall *glGetAttachedShaders)(GLuint, GLsizei, GLsizei *, GLuint *);
  void (__stdcall *glGetBooleanv)(GLenum, GLboolean *);
  void (__stdcall *glGetBufferParameteriv)(GLenum, GLenum, GLint *);
  void (__stdcall *glGetFloatv)(GLenum, GLfloat *);
  void (__stdcall *glGetFramebufferAttachmentParameteriv)(GLenum, GLenum, GLenum, GLint *);
  void (__stdcall *glGetIntegerv)(GLenum, GLint *);
  void (__stdcall *glGetProgramInfoLog)(GLuint, GLsizei, GLsizei *, GLchar *);
  void (__stdcall *glGetProgramiv)(GLuint, GLenum, GLint *);
  void (__stdcall *glGetRenderbufferParameteriv)(GLenum, GLenum, GLint *);
  void (__stdcall *glGetShaderInfoLog)(GLuint, GLsizei, GLsizei *, char *);
  void (__stdcall *glGetShaderiv)(GLuint, GLenum, GLint *);
  void (__stdcall *glGetShaderSource)(GLuint, GLsizei, GLsizei *, GLchar *);
  void (__stdcall *glGetTexParameterfv)(GLenum, GLenum, GLfloat *);
  void (__stdcall *glGetTexParameteriv)(GLenum, GLenum, GLint *);
  void (__stdcall *glGetUniformfv)(GLuint, GLint, GLfloat *);
  void (__stdcall *glGetUniformiv)(GLuint, GLint, GLint *);
  void (__stdcall *glGetVertexAttribfv)(GLuint, GLenum, GLfloat *);
  void (__stdcall *glGetVertexAttribiv)(GLuint, GLenum, GLint *);
  void (__stdcall *glHint)(GLenum, GLenum);
  void (__stdcall *glLineWidth)(GLfloat);
  void (__stdcall *glLinkProgram)(GLuint);
  void (__stdcall *glPixelStorei)(GLenum, GLint);
  void (__stdcall *glPolygonOffset)(GLfloat, GLfloat);
  void (__stdcall *glReadPixels)(GLint, GLint, GLsizei, GLsizei, GLenum, GLenum, GLvoid *);
  void (__stdcall *glRenderbufferStorage)(GLenum, GLenum, GLsizei, GLsizei);
  void (__stdcall *glSampleCoverage)(GLclampf, GLboolean);
  void (__stdcall *glScissor)(GLint, GLint, GLsizei, GLsizei);
  void (__stdcall *glShaderBinary)(GLsizei, GLuint const *, GLenum, void const *, GLsizei);
  void (__stdcall *glShaderSource)(GLuint, GLsizei, GLchar const *const *, GLint const *);
  void (__stdcall *glStencilFunc)(GLenum, GLint, GLuint);
  void (__stdcall *glStencilFuncSeparate)(GLenum, GLenum, GLint, GLuint);
  void (__stdcall *glStencilMask)(GLuint);
  void (__stdcall *glStencilMaskSeparate)(GLenum, GLuint);
  void (__stdcall *glStencilOp)(GLenum, GLenum, GLenum);
  void (__stdcall *glStencilOpSeparate)(GLenum, GLenum, GLenum, GLenum);
  void (__stdcall *glTexImage2D)(GLenum, GLint, GLint, GLsizei, GLsizei, GLint, GLenum, GLenum, void const *);
  void (__stdcall *glTexParameterf)(GLenum, GLenum, GLfloat);
  void (__stdcall *glTexParameteri)(GLenum, GLenum, GLint);
  void (__stdcall *glTexSubImage2D)(GLenum, GLint, GLint, GLint, GLsizei, GLsizei, GLenum, GLenum, GLvoid const *);
  void (__stdcall *glUniform1f)(GLint, GLfloat);
  void (__stdcall *glUniform1fv)(GLint, GLsizei, GLfloat const *);
  void (__stdcall *glUniform1i)(GLint, GLint);
  void (__stdcall *glUniform1iv)(GLint, GLsizei, GLint const *);
  void (__stdcall *glUniform2f)(GLint, GLfloat, GLfloat);
  void (__stdcall *glUniform2fv)(GLint, GLsizei, GLfloat const *);
  void (__stdcall *glUniform2i)(GLint, GLint, GLint);
  void (__stdcall *glUniform2iv)(GLint, GLsizei, GLint const *);
  void (__stdcall *glUniform3f)(GLint, GLfloat, GLfloat, GLfloat);
  void (__stdcall *glUniform3fv)(GLint, GLsizei, GLfloat const *);
  void (__stdcall *glUniform3i)(GLint, GLint, GLint, GLint);
  void (__stdcall *glUniform3iv)(GLint, GLsizei, GLint const *);
  void (__stdcall *glUniform4f)(GLint, GLfloat, GLfloat, GLfloat, GLfloat);
  void (__stdcall *glUniform4fv)(GLint, GLsizei, GLfloat const *);
  void (__stdcall *glUniform4i)(GLint, GLint, GLint, GLint, GLint);
  void (__stdcall *glUniform4iv)(GLint, GLsizei, GLint const *);
  void (__stdcall *glUniformMatrix4fv)(GLint, GLsizei, GLboolean, GLfloat const *);
  void (__stdcall *glUseProgram)(GLuint);
  void (__stdcall *glValidateProgram)(GLuint);
  void (__stdcall *glVertexAttrib1f)(GLuint, GLfloat);
  void (__stdcall *glVertexAttrib2f)(GLuint, GLfloat, GLfloat);
  void (__stdcall *glVertexAttrib3f)(GLuint, GLfloat, GLfloat, GLfloat);
  void (__stdcall *glVertexAttrib4f)(GLuint, GLfloat, GLfloat, GLfloat, GLfloat);
  void (__stdcall *glVertexAttribPointer)(GLuint, GLint, GLenum, GLboolean, GLsizei, void const *);
  void (__stdcall *glViewport)(GLint, GLint, GLsizei, GLsizei);
};

/* "kivy/graphics/cgl.pxd":646
 * cdef unsigned long initialized_tid
 * cdef public int verify_gl_main_thread
 * cpdef cgl_init(allowed=*, ignored=*)             # <<<<<<<<<<<<<<
 * cdef GLES2_Context *cgl_get_context()
 * cdef void cgl_set_context(GLES2_Context* ctx)
*/
struct __pyx_opt_args_4kivy_8graphics_3cgl_cgl_init {
  int __pyx_n;
  PyObject *allowed;
  PyObject *ignored;
};

/* "kivy/graphics/cgl.pxd":649
 * cdef GLES2_Context *cgl_get_context()
 * cdef void cgl_set_context(GLES2_Context* ctx)
 * cpdef cgl_get_backend_name(allowed=*, ignored=*)             # <<<<<<<<<<<<<<
 * cpdef cgl_get_initialized_backend_name()
*/
struct __pyx_opt_args_4kivy_8graphics_3cgl_cgl_get_backend_name {
  int __pyx_n;
  PyObject *allowed;
  PyObject *ignored;
};

/* "kivy/graphics/opengl.pyx":1555
 * 
 * 
 * def gl_init_symbols(allowed=[], ignored=[]):             # <<<<<<<<<<<<<<
 *     cgl_init(allowed, ignored)
*/
struct __pyx_defaults {
  PyObject_HEAD
  PyObject *arg0;
  PyObject *arg1;
};

/* #### Code section: utility_code_proto ### */

/* --- Runtime support code (head) --- */
/* Refnanny.proto */
#ifndef CYTHON_REFNANNY
  #define CYTHON_REFNANNY 0
#endif
#if CYTHON_REFNANNY
  typedef struct {
    void (*INCREF)(void*, PyObject*, Py_ssize_t);
    void (*DECREF)(void*, PyObject*, Py_ssize_t);
    void (*GOTREF)(void*, PyObject*, Py_ssize_t);
    void (*GIVEREF)(void*, PyObject*, Py_ssize_t);
    void* (*SetupContext)(const char*, Py_ssize_t, 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;
  #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__));\
          }
  #define __Pyx_RefNannyFinishContextNogil() {\
              PyGILState_STATE __pyx_gilstate_save = PyGILState_Ensure();\
              __Pyx_RefNannyFinishContext();\
              PyGILState_Release(__pyx_gilstate_save);\
          }
  #define __Pyx_RefNannyFinishContextNogil() {\
              PyGILState_STATE __pyx_gilstate_save = PyGILState_Ensure();\
              __Pyx_RefNannyFinishContext();\
              PyGILState_Release(__pyx_gilstate_save);\
          }
  #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); else {__Pyx_INCREF(r); }} while(0)
  #define __Pyx_XDECREF(r)  do { if((r) == NULL); else {__Pyx_DECREF(r); }} while(0)
  #define __Pyx_XGOTREF(r)  do { if((r) == NULL); else {__Pyx_GOTREF(r); }} while(0)
  #define __Pyx_XGIVEREF(r) do { if((r) == NULL); else {__Pyx_GIVEREF(r);}} while(0)
#else
  #define __Pyx_RefNannyDeclarations
  #define __Pyx_RefNannySetupContext(name, acquire_gil)
  #define __Pyx_RefNannyFinishContextNogil()
  #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_Py_XDECREF_SET(r, v) do {\
        PyObject *tmp = (PyObject *) r;\
        r = v; Py_XDECREF(tmp);\
    } while (0)
#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)

/* 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);
        #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030d0000
        L->ob_item[len] = x;
        #else
        PyList_SET_ITEM(list, len, x);
        #endif
        __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

/* TupleAndListFromArray.proto (used by fastcall) */
#if CYTHON_COMPILING_IN_CPYTHON
static CYTHON_INLINE PyObject* __Pyx_PyList_FromArray(PyObject *const *src, Py_ssize_t n);
#endif
#if CYTHON_COMPILING_IN_CPYTHON || CYTHON_METH_FASTCALL
static CYTHON_INLINE PyObject* __Pyx_PyTuple_FromArray(PyObject *const *src, Py_ssize_t n);
#endif

/* IncludeStringH.proto (used by BytesEquals) */
#include <string.h>

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

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

/* fastcall.proto */
#if CYTHON_AVOID_BORROWED_REFS
    #define __Pyx_ArgRef_VARARGS(args, i) __Pyx_PySequence_ITEM(args, i)
#elif CYTHON_ASSUME_SAFE_MACROS
    #define __Pyx_ArgRef_VARARGS(args, i) __Pyx_NewRef(__Pyx_PyTuple_GET_ITEM(args, i))
#else
    #define __Pyx_ArgRef_VARARGS(args, i) __Pyx_XNewRef(PyTuple_GetItem(args, i))
#endif
#define __Pyx_NumKwargs_VARARGS(kwds) PyDict_Size(kwds)
#define __Pyx_KwValues_VARARGS(args, nargs) NULL
#define __Pyx_GetKwValue_VARARGS(kw, kwvalues, s) __Pyx_PyDict_GetItemStrWithError(kw, s)
#define __Pyx_KwargsAsDict_VARARGS(kw, kwvalues) PyDict_Copy(kw)
#if CYTHON_METH_FASTCALL
    #define __Pyx_ArgRef_FASTCALL(args, i) __Pyx_NewRef(args[i])
    #define __Pyx_NumKwargs_FASTCALL(kwds) __Pyx_PyTuple_GET_SIZE(kwds)
    #define __Pyx_KwValues_FASTCALL(args, nargs) ((args) + (nargs))
    static CYTHON_INLINE PyObject * __Pyx_GetKwValue_FASTCALL(PyObject *kwnames, PyObject *const *kwvalues, PyObject *s);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030d0000 || CYTHON_COMPILING_IN_LIMITED_API
    CYTHON_UNUSED static PyObject *__Pyx_KwargsAsDict_FASTCALL(PyObject *kwnames, PyObject *const *kwvalues);
  #else
    #define __Pyx_KwargsAsDict_FASTCALL(kw, kwvalues) _PyStack_AsDict(kwvalues, kw)
  #endif
#else
    #define __Pyx_ArgRef_FASTCALL __Pyx_ArgRef_VARARGS
    #define __Pyx_NumKwargs_FASTCALL __Pyx_NumKwargs_VARARGS
    #define __Pyx_KwValues_FASTCALL __Pyx_KwValues_VARARGS
    #define __Pyx_GetKwValue_FASTCALL __Pyx_GetKwValue_VARARGS
    #define __Pyx_KwargsAsDict_FASTCALL __Pyx_KwargsAsDict_VARARGS
#endif
#define __Pyx_ArgsSlice_VARARGS(args, start, stop) PyTuple_GetSlice(args, start, stop)
#if CYTHON_METH_FASTCALL || (CYTHON_COMPILING_IN_CPYTHON && CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS)
#define __Pyx_ArgsSlice_FASTCALL(args, start, stop) __Pyx_PyTuple_FromArray(args + start, stop - start)
#else
#define __Pyx_ArgsSlice_FASTCALL(args, start, stop) PyTuple_GetSlice(args, start, stop)
#endif

/* py_dict_items.proto (used by OwnedDictNext) */
static CYTHON_INLINE PyObject* __Pyx_PyDict_Items(PyObject* d);

/* CallCFunction.proto (used by CallUnboundCMethod0) */
#define __Pyx_CallCFunction(cfunc, self, args)\
    ((PyCFunction)(void(*)(void))(cfunc)->func)(self, args)
#define __Pyx_CallCFunctionWithKeywords(cfunc, self, args, kwargs)\
    ((PyCFunctionWithKeywords)(void(*)(void))(cfunc)->func)(self, args, kwargs)
#define __Pyx_CallCFunctionFast(cfunc, self, args, nargs)\
    ((__Pyx_PyCFunctionFast)(void(*)(void))(PyCFunction)(cfunc)->func)(self, args, nargs)
#define __Pyx_CallCFunctionFastWithKeywords(cfunc, self, args, nargs, kwnames)\
    ((__Pyx_PyCFunctionFastWithKeywords)(void(*)(void))(PyCFunction)(cfunc)->func)(self, args, nargs, kwnames)

/* PyObjectCall.proto (used by PyObjectFastCall) */
#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

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

/* PyObjectFastCall.proto (used by PyObjectCallOneArg) */
#define __Pyx_PyObject_FastCall(func, args, nargs)  __Pyx_PyObject_FastCallDict(func, args, (size_t)(nargs), NULL)
static CYTHON_INLINE PyObject* __Pyx_PyObject_FastCallDict(PyObject *func, PyObject * const*args, size_t nargs, PyObject *kwargs);

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

/* PyObjectGetAttrStr.proto (used by UnpackUnboundCMethod) */
#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

/* UnpackUnboundCMethod.proto (used by CallUnboundCMethod0) */
typedef struct {
    PyObject *type;
    PyObject **method_name;
#if CYTHON_COMPILING_IN_CPYTHON_FREETHREADING && CYTHON_ATOMICS
    __pyx_atomic_int_type initialized;
#endif
    PyCFunction func;
    PyObject *method;
    int flag;
} __Pyx_CachedCFunction;
#if CYTHON_COMPILING_IN_CPYTHON_FREETHREADING
static CYTHON_INLINE int __Pyx_CachedCFunction_GetAndSetInitializing(__Pyx_CachedCFunction *cfunc) {
#if !CYTHON_ATOMICS
    return 1;
#else
    __pyx_nonatomic_int_type expected = 0;
    if (__pyx_atomic_int_cmp_exchange(&cfunc->initialized, &expected, 1)) {
        return 0;
    }
    return expected;
#endif
}
static CYTHON_INLINE void __Pyx_CachedCFunction_SetFinishedInitializing(__Pyx_CachedCFunction *cfunc) {
#if CYTHON_ATOMICS
    __pyx_atomic_store(&cfunc->initialized, 2);
#endif
}
#else
#define __Pyx_CachedCFunction_GetAndSetInitializing(cfunc) 2
#define __Pyx_CachedCFunction_SetFinishedInitializing(cfunc)
#endif

/* CallUnboundCMethod0.proto */
CYTHON_UNUSED
static PyObject* __Pyx__CallUnboundCMethod0(__Pyx_CachedCFunction* cfunc, PyObject* self);
#if CYTHON_COMPILING_IN_CPYTHON
static CYTHON_INLINE PyObject* __Pyx_CallUnboundCMethod0(__Pyx_CachedCFunction* cfunc, PyObject* self);
#else
#define __Pyx_CallUnboundCMethod0(cfunc, self)  __Pyx__CallUnboundCMethod0(cfunc, self)
#endif

/* py_dict_values.proto (used by OwnedDictNext) */
static CYTHON_INLINE PyObject* __Pyx_PyDict_Values(PyObject* d);

/* OwnedDictNext.proto (used by ParseKeywordsImpl) */
#if CYTHON_AVOID_BORROWED_REFS
static int __Pyx_PyDict_NextRef(PyObject *p, PyObject **ppos, PyObject **pkey, PyObject **pvalue);
#else
CYTHON_INLINE
static int __Pyx_PyDict_NextRef(PyObject *p, Py_ssize_t *ppos, PyObject **pkey, PyObject **pvalue);
#endif

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

/* ParseKeywordsImpl.export */
static int __Pyx_ParseKeywordsTuple(
    PyObject *kwds,
    PyObject * const *kwvalues,
    PyObject ** const argnames[],
    PyObject *kwds2,
    PyObject *values[],
    Py_ssize_t num_pos_args,
    Py_ssize_t num_kwargs,
    const char* function_name,
    int ignore_unknown_kwargs
);
static int __Pyx_ParseKeywordDictToDict(
    PyObject *kwds,
    PyObject ** const argnames[],
    PyObject *kwds2,
    PyObject *values[],
    Py_ssize_t num_pos_args,
    const char* function_name
);
static int __Pyx_ParseKeywordDict(
    PyObject *kwds,
    PyObject ** const argnames[],
    PyObject *values[],
    Py_ssize_t num_pos_args,
    Py_ssize_t num_kwargs,
    const char* function_name,
    int ignore_unknown_kwargs
);

/* CallUnboundCMethod2.proto */
CYTHON_UNUSED
static PyObject* __Pyx__CallUnboundCMethod2(__Pyx_CachedCFunction* cfunc, PyObject* self, PyObject* arg1, PyObject* arg2);
#if CYTHON_COMPILING_IN_CPYTHON
static CYTHON_INLINE PyObject *__Pyx_CallUnboundCMethod2(__Pyx_CachedCFunction *cfunc, PyObject *self, PyObject *arg1, PyObject *arg2);
#else
#define __Pyx_CallUnboundCMethod2(cfunc, self, arg1, arg2)  __Pyx__CallUnboundCMethod2(cfunc, self, arg1, arg2)
#endif

/* ParseKeywords.proto */
static CYTHON_INLINE int __Pyx_ParseKeywords(
    PyObject *kwds, PyObject *const *kwvalues, PyObject ** const argnames[],
    PyObject *kwds2, PyObject *values[],
    Py_ssize_t num_pos_args, Py_ssize_t num_kwargs,
    const char* function_name,
    int ignore_unknown_kwargs
);

/* 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);

/* ArgTypeTestFunc.export */
static int __Pyx__ArgTypeTest(PyObject *obj, PyTypeObject *type, const char *name, int exact);

/* ArgTypeTest.proto */
#define __Pyx_ArgTypeTest(obj, type, none_allowed, name, exact)\
    ((likely(__Pyx_IS_TYPE(obj, type) | (none_allowed && (obj == Py_None)))) ? 1 :\
        __Pyx__ArgTypeTest(obj, type, name, exact))

/* PyTypeError_Check.proto */
#define __Pyx_PyExc_TypeError_Check(obj)  __Pyx_TypeCheck(obj, PyExc_TypeError)

/* PyThreadStateGet.proto (used by PyErrFetchRestore) */
#if CYTHON_FAST_THREAD_STATE
#define __Pyx_PyThreadState_declare  PyThreadState *__pyx_tstate;
#define __Pyx_PyThreadState_assign  __pyx_tstate = __Pyx_PyThreadState_Current;
#if PY_VERSION_HEX >= 0x030C00A6
#define __Pyx_PyErr_Occurred()  (__pyx_tstate->current_exception != NULL)
#define __Pyx_PyErr_CurrentExceptionType()  (__pyx_tstate->current_exception ? (PyObject*) Py_TYPE(__pyx_tstate->current_exception) : (PyObject*) NULL)
#else
#define __Pyx_PyErr_Occurred()  (__pyx_tstate->curexc_type != NULL)
#define __Pyx_PyErr_CurrentExceptionType()  (__pyx_tstate->curexc_type)
#endif
#else
#define __Pyx_PyThreadState_declare
#define __Pyx_PyThreadState_assign
#define __Pyx_PyErr_Occurred()  (PyErr_Occurred() != NULL)
#define __Pyx_PyErr_CurrentExceptionType()  PyErr_Occurred()
#endif

/* PyErrFetchRestore.proto (used by RaiseException) */
#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 && PY_VERSION_HEX < 0x030C00A6
#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.export */
static void __Pyx_Raise(PyObject *type, PyObject *value, PyObject *tb, PyObject *cause);

/* PyMemoryError_Check.proto */
#define __Pyx_PyExc_MemoryError_Check(obj)  __Pyx_TypeCheck(obj, PyExc_MemoryError)

/* PyErrExceptionMatches.proto (used by PyObjectGetAttrStrNoError) */
#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

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

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

/* PyDictVersioning.proto (used by GetModuleGlobalName) */
#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_XNewRef(__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_mstate_global->__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

/* GetItemInt.proto */
#define __Pyx_GetItemInt(o, i, type, is_signed, to_py_func, is_list, wraparound, boundscheck, has_gil, unsafe_shared)\
    (__Pyx_fits_Py_ssize_t(i, type, is_signed) ?\
    __Pyx_GetItemInt_Fast(o, (Py_ssize_t)i, is_list, wraparound, boundscheck, unsafe_shared) :\
    (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, has_gil, unsafe_shared)\
    (__Pyx_fits_Py_ssize_t(i, type, is_signed) ?\
    __Pyx_GetItemInt_List_Fast(o, (Py_ssize_t)i, wraparound, boundscheck, unsafe_shared) :\
    (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, int unsafe_shared);
#define __Pyx_GetItemInt_Tuple(o, i, type, is_signed, to_py_func, is_list, wraparound, boundscheck, has_gil, unsafe_shared)\
    (__Pyx_fits_Py_ssize_t(i, type, is_signed) ?\
    __Pyx_GetItemInt_Tuple_Fast(o, (Py_ssize_t)i, wraparound, boundscheck, unsafe_shared) :\
    (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, int unsafe_shared);
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, int unsafe_shared);

/* PyRange_Check.proto */
#if CYTHON_COMPILING_IN_PYPY && !defined(PyRange_Check)
  #define PyRange_Check(obj)  __Pyx_TypeCheck((obj), &PyRange_Type)
#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);
        #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030d0000
        L->ob_item[len] = x;
        #else
        PyList_SET_ITEM(list, len, x);
        #endif
        __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

/* PyLongBinop.proto */
#if !CYTHON_COMPILING_IN_PYPY
static CYTHON_INLINE PyObject* __Pyx_PyLong_MultiplyObjC(PyObject *op1, PyObject *op2, long intval, int inplace, int zerodivision_check);
#else
#define __Pyx_PyLong_MultiplyObjC(op1, op2, intval, inplace, zerodivision_check)\
    (inplace ? PyNumber_InPlaceMultiply(op1, op2) : PyNumber_Multiply(op1, op2))
#endif

/* PyNotImplementedError_Check.proto */
#define __Pyx_PyExc_NotImplementedError_Check(obj)  __Pyx_TypeCheck(obj, PyExc_NotImplementedError)

/* AssertionsEnabled.proto */
#if CYTHON_COMPILING_IN_LIMITED_API  ||  PY_VERSION_HEX >= 0x030C0000
  static int __pyx_assertions_enabled_flag;
  #define __pyx_assertions_enabled() (__pyx_assertions_enabled_flag)
  #if __clang__ || __GNUC__
  __attribute__((no_sanitize("thread")))
  #endif
  static int __Pyx_init_assertions_enabled(void) {
    PyObject *builtins, *debug, *debug_str;
    int flag;
    builtins = PyEval_GetBuiltins();
    if (!builtins) goto bad;
    debug_str = PyUnicode_FromStringAndSize("__debug__", 9);
    if (!debug_str) goto bad;
    debug = PyObject_GetItem(builtins, debug_str);
    Py_DECREF(debug_str);
    if (!debug) goto bad;
    flag = PyObject_IsTrue(debug);
    Py_DECREF(debug);
    if (flag == -1) goto bad;
    __pyx_assertions_enabled_flag = flag;
    return 0;
  bad:
    __pyx_assertions_enabled_flag = 1;
    return -1;
  }
#else
  #define __Pyx_init_assertions_enabled()  (0)
  #define __pyx_assertions_enabled()  (!Py_OptimizeFlag)
#endif

/* PyAssertionError_Check.proto */
#define __Pyx_PyExc_AssertionError_Check(obj)  __Pyx_TypeCheck(obj, PyExc_AssertionError)

/* 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

/* SwapException.proto */
#if CYTHON_FAST_THREAD_STATE
#define __Pyx_ExceptionSwap(type, value, tb)  __Pyx__ExceptionSwap(__pyx_tstate, type, value, tb)
static CYTHON_INLINE void __Pyx__ExceptionSwap(PyThreadState *tstate, PyObject **type, PyObject **value, PyObject **tb);
#else
static CYTHON_INLINE void __Pyx_ExceptionSwap(PyObject **type, PyObject **value, PyObject **tb);
#endif

/* GetTopmostException.proto (used by SaveResetException) */
#if CYTHON_USE_EXC_INFO_STACK && CYTHON_FAST_THREAD_STATE
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

/* AllocateExtensionType.proto */
static PyObject *__Pyx_AllocateExtensionType(PyTypeObject *t, int is_final);

/* CallTypeTraverse.proto */
#if !CYTHON_USE_TYPE_SPECS || (!CYTHON_COMPILING_IN_LIMITED_API && PY_VERSION_HEX < 0x03090000)
#define __Pyx_call_type_traverse(o, always_call, visit, arg) 0
#else
static int __Pyx_call_type_traverse(PyObject *o, int always_call, visitproc visit, void *arg);
#endif

/* LimitedApiGetTypeDict.proto (used by SetItemOnTypeDict) */
#if CYTHON_COMPILING_IN_LIMITED_API
static PyObject *__Pyx_GetTypeDict(PyTypeObject *tp);
#endif

/* SetItemOnTypeDict.proto (used by FixUpExtensionType) */
static int __Pyx__SetItemOnTypeDict(PyTypeObject *tp, PyObject *k, PyObject *v);
#define __Pyx_SetItemOnTypeDict(tp, k, v) __Pyx__SetItemOnTypeDict((PyTypeObject*)tp, k, v)

/* FixUpExtensionType.proto */
static CYTHON_INLINE int __Pyx_fix_up_extension_type_from_spec(PyType_Spec *spec, PyTypeObject *type);

/* PyObjectCallNoArg.proto (used by PyObjectCallMethod0) */
static CYTHON_INLINE PyObject* __Pyx_PyObject_CallNoArg(PyObject *func);

/* PyObjectGetMethod.proto (used by PyObjectCallMethod0) */
#if !(CYTHON_VECTORCALL && (__PYX_LIMITED_VERSION_HEX >= 0x030C0000 || (!CYTHON_COMPILING_IN_LIMITED_API && PY_VERSION_HEX >= 0x03090000)))
static int __Pyx_PyObject_GetMethod(PyObject *obj, PyObject *name, PyObject **method);
#endif

/* PyObjectCallMethod0.proto (used by PyType_Ready) */
static PyObject* __Pyx_PyObject_CallMethod0(PyObject* obj, PyObject* method_name);

/* ValidateBasesTuple.proto (used by PyType_Ready) */
#if CYTHON_COMPILING_IN_CPYTHON || CYTHON_COMPILING_IN_LIMITED_API || CYTHON_USE_TYPE_SPECS
static int __Pyx_validate_bases_tuple(const char *type_name, Py_ssize_t dictoffset, PyObject *bases);
#endif

/* PyType_Ready.proto */
CYTHON_UNUSED static int __Pyx_PyType_Ready(PyTypeObject *t);

/* VoidPtrImport.proto */
static int __Pyx_ImportVoidPtr_3_2_3(PyObject *module, const char *name, void **p, const char *sig);

/* FunctionImport.proto */
static int __Pyx_ImportFunction_3_2_3(PyObject *module, const char *funcname, void (**f)(void), const char *sig);

/* HasAttr.proto (used by ImportImpl) */
#if __PYX_LIMITED_VERSION_HEX >= 0x030d0000
#define __Pyx_HasAttr(o, n)  PyObject_HasAttrWithError(o, n)
#else
static CYTHON_INLINE int __Pyx_HasAttr(PyObject *, PyObject *);
#endif

/* ImportImpl.export */
static PyObject *__Pyx__Import(PyObject *name, PyObject *const *imported_names, Py_ssize_t len_imported_names, PyObject *qualname, PyObject *moddict, int level);

/* Import.proto */
static CYTHON_INLINE PyObject *__Pyx_Import(PyObject *name, PyObject *const *imported_names, Py_ssize_t len_imported_names, PyObject *qualname, int level);

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

/* SetItemInt.proto */
#define __Pyx_SetItemInt(o, i, v, type, is_signed, to_py_func, is_list, wraparound, boundscheck, has_gil, unsafe_shared)\
    (__Pyx_fits_Py_ssize_t(i, type, is_signed) ?\
    __Pyx_SetItemInt_Fast(o, (Py_ssize_t)i, v, is_list, wraparound, boundscheck, unsafe_shared) :\
    (is_list ? (PyErr_SetString(PyExc_IndexError, "list assignment index out of range"), -1) :\
               __Pyx_SetItemInt_Generic(o, to_py_func(i), v)))
static int __Pyx_SetItemInt_Generic(PyObject *o, PyObject *j, PyObject *v);
static CYTHON_INLINE int __Pyx_SetItemInt_Fast(PyObject *o, Py_ssize_t i, PyObject *v,
                                               int is_list, int wraparound, int boundscheck, int unsafe_shared);

/* dict_setdefault.proto (used by FetchCommonType) */
static CYTHON_INLINE PyObject *__Pyx_PyDict_SetDefault(PyObject *d, PyObject *key, PyObject *default_value);

/* AddModuleRef.proto (used by FetchSharedCythonModule) */
#if ((CYTHON_COMPILING_IN_CPYTHON_FREETHREADING ) ||\
     __PYX_LIMITED_VERSION_HEX < 0x030d0000)
  static PyObject *__Pyx_PyImport_AddModuleRef(const char *name);
#else
  #define __Pyx_PyImport_AddModuleRef(name) PyImport_AddModuleRef(name)
#endif

/* FetchSharedCythonModule.proto (used by FetchCommonType) */
static PyObject *__Pyx_FetchSharedCythonABIModule(void);

/* FetchCommonType.proto (used by CommonTypesMetaclass) */
static PyTypeObject* __Pyx_FetchCommonTypeFromSpec(PyTypeObject *metaclass, PyObject *module, PyType_Spec *spec, PyObject *bases);

/* CommonTypesMetaclass.proto (used by CythonFunctionShared) */
static int __pyx_CommonTypesMetaclass_init(PyObject *module);
#define __Pyx_CommonTypesMetaclass_USED

/* PyMethodNew.proto (used by CythonFunctionShared) */
static PyObject *__Pyx_PyMethod_New(PyObject *func, PyObject *self, PyObject *typ);

/* PyVectorcallFastCallDict.proto (used by CythonFunctionShared) */
#if CYTHON_METH_FASTCALL && CYTHON_VECTORCALL
static CYTHON_INLINE PyObject *__Pyx_PyVectorcall_FastCallDict(PyObject *func, __pyx_vectorcallfunc vc, PyObject *const *args, size_t nargs, PyObject *kw);
#endif

/* CythonFunctionShared.proto (used by CythonFunction) */
#define __Pyx_CyFunction_USED
#define __Pyx_CYFUNCTION_STATICMETHOD  0x01
#define __Pyx_CYFUNCTION_CLASSMETHOD   0x02
#define __Pyx_CYFUNCTION_CCLASS        0x04
#define __Pyx_CYFUNCTION_COROUTINE     0x08
#define __Pyx_CyFunction_GetClosure(f)\
    (((__pyx_CyFunctionObject *) (f))->func_closure)
#if PY_VERSION_HEX < 0x030900B1 || CYTHON_COMPILING_IN_LIMITED_API
  #define __Pyx_CyFunction_GetClassObj(f)\
      (((__pyx_CyFunctionObject *) (f))->func_classobj)
#else
  #define __Pyx_CyFunction_GetClassObj(f)\
      ((PyObject*) ((PyCMethodObject *) (f))->mm_class)
#endif
#define __Pyx_CyFunction_SetClassObj(f, classobj)\
    __Pyx__CyFunction_SetClassObj((__pyx_CyFunctionObject *) (f), (classobj))
#define __Pyx_CyFunction_Defaults(type, f)\
    ((type *)(((__pyx_CyFunctionObject *) (f))->defaults))
#define __Pyx_CyFunction_SetDefaultsGetter(f, g)\
    ((__pyx_CyFunctionObject *) (f))->defaults_getter = (g)
typedef struct {
#if CYTHON_COMPILING_IN_LIMITED_API
    PyObject_HEAD
    PyObject *func;
#elif PY_VERSION_HEX < 0x030900B1
    PyCFunctionObject func;
#else
    PyCMethodObject func;
#endif
#if CYTHON_COMPILING_IN_LIMITED_API && CYTHON_METH_FASTCALL
    __pyx_vectorcallfunc func_vectorcall;
#endif
#if CYTHON_COMPILING_IN_LIMITED_API
    PyObject *func_weakreflist;
#endif
#if PY_VERSION_HEX < 0x030C0000 || CYTHON_COMPILING_IN_LIMITED_API
    PyObject *func_dict;
#endif
    PyObject *func_name;
    PyObject *func_qualname;
    PyObject *func_doc;
    PyObject *func_globals;
    PyObject *func_code;
    PyObject *func_closure;
#if PY_VERSION_HEX < 0x030900B1 || CYTHON_COMPILING_IN_LIMITED_API
    PyObject *func_classobj;
#endif
    PyObject *defaults;
    int flags;
    PyObject *defaults_tuple;
    PyObject *defaults_kwdict;
    PyObject *(*defaults_getter)(PyObject *);
    PyObject *func_annotations;
    PyObject *func_is_coroutine;
} __pyx_CyFunctionObject;
#undef __Pyx_CyOrPyCFunction_Check
#define __Pyx_CyFunction_Check(obj)  __Pyx_TypeCheck(obj, __pyx_mstate_global->__pyx_CyFunctionType)
#define __Pyx_CyOrPyCFunction_Check(obj)  __Pyx_TypeCheck2(obj, __pyx_mstate_global->__pyx_CyFunctionType, &PyCFunction_Type)
#define __Pyx_CyFunction_CheckExact(obj)  __Pyx_IS_TYPE(obj, __pyx_mstate_global->__pyx_CyFunctionType)
static CYTHON_INLINE int __Pyx__IsSameCyOrCFunction(PyObject *func, void (*cfunc)(void));
#undef __Pyx_IsSameCFunction
#define __Pyx_IsSameCFunction(func, cfunc)   __Pyx__IsSameCyOrCFunction(func, cfunc)
static PyObject *__Pyx_CyFunction_Init(__pyx_CyFunctionObject* op, PyMethodDef *ml,
                                      int flags, PyObject* qualname,
                                      PyObject *closure,
                                      PyObject *module, PyObject *globals,
                                      PyObject* code);
static CYTHON_INLINE void __Pyx__CyFunction_SetClassObj(__pyx_CyFunctionObject* f, PyObject* classobj);
static CYTHON_INLINE PyObject *__Pyx_CyFunction_InitDefaults(PyObject *func,
                                                         PyTypeObject *defaults_type);
static CYTHON_INLINE void __Pyx_CyFunction_SetDefaultsTuple(PyObject *m,
                                                            PyObject *tuple);
static CYTHON_INLINE void __Pyx_CyFunction_SetDefaultsKwDict(PyObject *m,
                                                             PyObject *dict);
static CYTHON_INLINE void __Pyx_CyFunction_SetAnnotationsDict(PyObject *m,
                                                              PyObject *dict);
static int __pyx_CyFunction_init(PyObject *module);
#if CYTHON_METH_FASTCALL
static PyObject * __Pyx_CyFunction_Vectorcall_NOARGS(PyObject *func, PyObject *const *args, size_t nargsf, PyObject *kwnames);
static PyObject * __Pyx_CyFunction_Vectorcall_O(PyObject *func, PyObject *const *args, size_t nargsf, PyObject *kwnames);
static PyObject * __Pyx_CyFunction_Vectorcall_FASTCALL_KEYWORDS(PyObject *func, PyObject *const *args, size_t nargsf, PyObject *kwnames);
static PyObject * __Pyx_CyFunction_Vectorcall_FASTCALL_KEYWORDS_METHOD(PyObject *func, PyObject *const *args, size_t nargsf, PyObject *kwnames);
#if CYTHON_COMPILING_IN_LIMITED_API
#define __Pyx_CyFunction_func_vectorcall(f) (((__pyx_CyFunctionObject*)f)->func_vectorcall)
#else
#define __Pyx_CyFunction_func_vectorcall(f) (((PyCFunctionObject*)f)->vectorcall)
#endif
#endif

/* CythonFunction.proto */
static PyObject *__Pyx_CyFunction_New(PyMethodDef *ml,
                                      int flags, PyObject* qualname,
                                      PyObject *closure,
                                      PyObject *module, PyObject *globals,
                                      PyObject* code);

/* CLineInTraceback.proto (used by AddTraceback) */
#if CYTHON_CLINE_IN_TRACEBACK && CYTHON_CLINE_IN_TRACEBACK_RUNTIME
static int __Pyx_CLineForTraceback(PyThreadState *tstate, int c_line);
#else
#define __Pyx_CLineForTraceback(tstate, c_line)  (((CYTHON_CLINE_IN_TRACEBACK)) ? c_line : 0)
#endif

/* CodeObjectCache.proto (used by AddTraceback) */
#if CYTHON_COMPILING_IN_LIMITED_API
typedef PyObject __Pyx_CachedCodeObjectType;
#else
typedef PyCodeObject __Pyx_CachedCodeObjectType;
#endif
typedef struct {
    __Pyx_CachedCodeObjectType* code_object;
    int code_line;
} __Pyx_CodeObjectCacheEntry;
struct __Pyx_CodeObjectCache {
    int count;
    int max_count;
    __Pyx_CodeObjectCacheEntry* entries;
  #if CYTHON_COMPILING_IN_CPYTHON_FREETHREADING
    __pyx_atomic_int_type accessor_count;
  #endif
};
static int __pyx_bisect_code_objects(__Pyx_CodeObjectCacheEntry* entries, int count, int code_line);
static __Pyx_CachedCodeObjectType *__pyx_find_code_object(int code_line);
static void __pyx_insert_code_object(int code_line, __Pyx_CachedCodeObjectType* code_object);

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

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

/* PyObjectVectorCallKwBuilder.proto (used by CIntToPy) */
CYTHON_UNUSED static int __Pyx_VectorcallBuilder_AddArg_Check(PyObject *key, PyObject *value, PyObject *builder, PyObject **args, int n);
#if CYTHON_VECTORCALL
#if PY_VERSION_HEX >= 0x03090000
#define __Pyx_Object_Vectorcall_CallFromBuilder PyObject_Vectorcall
#else
#define __Pyx_Object_Vectorcall_CallFromBuilder _PyObject_Vectorcall
#endif
#define __Pyx_MakeVectorcallBuilderKwds(n) PyTuple_New(n)
static int __Pyx_VectorcallBuilder_AddArg(PyObject *key, PyObject *value, PyObject *builder, PyObject **args, int n);
static int __Pyx_VectorcallBuilder_AddArgStr(const char *key, PyObject *value, PyObject *builder, PyObject **args, int n);
#else
#define __Pyx_Object_Vectorcall_CallFromBuilder __Pyx_PyObject_FastCallDict
#define __Pyx_MakeVectorcallBuilderKwds(n) __Pyx_PyDict_NewPresized(n)
#define __Pyx_VectorcallBuilder_AddArg(key, value, builder, args, n) PyDict_SetItem(builder, key, value)
#define __Pyx_VectorcallBuilder_AddArgStr(key, value, builder, args, n) PyDict_SetItemString(builder, key, value)
#endif

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

/* CIntFromPy.proto */
static CYTHON_INLINE GLenum __Pyx_PyLong_As_GLenum(PyObject *);

/* CIntFromPy.proto */
static CYTHON_INLINE GLuint __Pyx_PyLong_As_GLuint(PyObject *);

/* CIntFromPy.proto */
static CYTHON_INLINE GLsizeiptr __Pyx_PyLong_As_GLsizeiptr(PyObject *);

/* CIntFromPy.proto */
static CYTHON_INLINE GLintptr __Pyx_PyLong_As_GLintptr(PyObject *);

/* CIntFromPy.proto */
static CYTHON_INLINE GLbitfield __Pyx_PyLong_As_GLbitfield(PyObject *);

/* CIntFromPy.proto */
static CYTHON_INLINE GLint __Pyx_PyLong_As_GLint(PyObject *);

/* CIntFromPy.proto */
static CYTHON_INLINE GLboolean __Pyx_PyLong_As_GLboolean(PyObject *);

/* CIntFromPy.proto */
static CYTHON_INLINE GLsizei __Pyx_PyLong_As_GLsizei(PyObject *);

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

/* CIntToPy.proto */
static CYTHON_INLINE PyObject* __Pyx_PyLong_From_GLuint(GLuint value);

/* CIntToPy.proto */
static CYTHON_INLINE PyObject* __Pyx_PyLong_From_GLenum(GLenum value);

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

/* CIntToPy.proto */
static CYTHON_INLINE PyObject* __Pyx_PyLong_From_GLint(GLint value);

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

/* CIntToPy.proto */
static CYTHON_INLINE PyObject* __Pyx_PyLong_From_GLboolean(GLboolean value);

/* FormatTypeName.proto */
#if CYTHON_COMPILING_IN_LIMITED_API
typedef PyObject *__Pyx_TypeName;
#define __Pyx_FMT_TYPENAME "%U"
#define __Pyx_DECREF_TypeName(obj) Py_XDECREF(obj)
#if __PYX_LIMITED_VERSION_HEX >= 0x030d0000
#define __Pyx_PyType_GetFullyQualifiedName PyType_GetFullyQualifiedName
#else
static __Pyx_TypeName __Pyx_PyType_GetFullyQualifiedName(PyTypeObject* tp);
#endif
#else  // !LIMITED_API
typedef const char *__Pyx_TypeName;
#define __Pyx_FMT_TYPENAME "%.200s"
#define __Pyx_PyType_GetFullyQualifiedName(tp) ((tp)->tp_name)
#define __Pyx_DECREF_TypeName(obj)
#endif

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

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

/* FastTypeChecks.proto */
#if CYTHON_COMPILING_IN_CPYTHON
#define __Pyx_TypeCheck(obj, type) __Pyx_IsSubtype(Py_TYPE(obj), (PyTypeObject *)type)
#define __Pyx_TypeCheck2(obj, type1, type2) __Pyx_IsAnySubtype2(Py_TYPE(obj), (PyTypeObject *)type1, (PyTypeObject *)type2)
static CYTHON_INLINE int __Pyx_IsSubtype(PyTypeObject *a, PyTypeObject *b);
static CYTHON_INLINE int __Pyx_IsAnySubtype2(PyTypeObject *cls, 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_TypeCheck2(obj, type1, type2) (PyObject_TypeCheck(obj, (PyTypeObject *)type1) || PyObject_TypeCheck(obj, (PyTypeObject *)type2))
#define __Pyx_PyErr_GivenExceptionMatches(err, type) PyErr_GivenExceptionMatches(err, type)
static CYTHON_INLINE int __Pyx_PyErr_GivenExceptionMatches2(PyObject *err, PyObject *type1, PyObject *type2) {
    return PyErr_GivenExceptionMatches(err, type1) || PyErr_GivenExceptionMatches(err, type2);
}
#endif
#define __Pyx_PyErr_ExceptionMatches2(err1, err2)  __Pyx_PyErr_GivenExceptionMatches2(__Pyx_PyErr_CurrentExceptionType(), err1, err2)
#define __Pyx_PyException_Check(obj) __Pyx_TypeCheck(obj, PyExc_Exception)
#ifdef PyExceptionInstance_Check
  #define __Pyx_PyBaseException_Check(obj) PyExceptionInstance_Check(obj)
#else
  #define __Pyx_PyBaseException_Check(obj) __Pyx_TypeCheck(obj, PyExc_BaseException)
#endif

/* GetRuntimeVersion.proto */
#if __PYX_LIMITED_VERSION_HEX < 0x030b0000
static unsigned long __Pyx_cached_runtime_version = 0;
static void __Pyx_init_runtime_version(void);
#else
#define __Pyx_init_runtime_version()
#endif
static unsigned long __Pyx_get_runtime_version(void);

/* CheckBinaryVersion.proto */
static int __Pyx_check_binary_version(unsigned long ct_version, unsigned long rt_version, int allow_newer);

/* DecompressString.proto */
static PyObject *__Pyx_DecompressString(const char *s, Py_ssize_t length, int algo);

/* MultiPhaseInitModuleState.proto */
#if CYTHON_PEP489_MULTI_PHASE_INIT && CYTHON_USE_MODULE_STATE
static PyObject *__Pyx_State_FindModule(void*);
static int __Pyx_State_AddModule(PyObject* module, void*);
static int __Pyx_State_RemoveModule(void*);
#elif CYTHON_USE_MODULE_STATE
#define __Pyx_State_FindModule PyState_FindModule
#define __Pyx_State_AddModule PyState_AddModule
#define __Pyx_State_RemoveModule PyState_RemoveModule
#endif

/* #### Code section: module_declarations ### */
/* CythonABIVersion.proto */
#if CYTHON_COMPILING_IN_LIMITED_API
    #if CYTHON_METH_FASTCALL
        #define __PYX_FASTCALL_ABI_SUFFIX  "_fastcall"
    #else
        #define __PYX_FASTCALL_ABI_SUFFIX
    #endif
    #define __PYX_LIMITED_ABI_SUFFIX "limited" __PYX_FASTCALL_ABI_SUFFIX __PYX_AM_SEND_ABI_SUFFIX
#else
    #define __PYX_LIMITED_ABI_SUFFIX
#endif
#if __PYX_HAS_PY_AM_SEND == 1
    #define __PYX_AM_SEND_ABI_SUFFIX
#elif __PYX_HAS_PY_AM_SEND == 2
    #define __PYX_AM_SEND_ABI_SUFFIX "amsendbackport"
#else
    #define __PYX_AM_SEND_ABI_SUFFIX "noamsend"
#endif
#ifndef __PYX_MONITORING_ABI_SUFFIX
    #define __PYX_MONITORING_ABI_SUFFIX
#endif
#if CYTHON_USE_TP_FINALIZE
    #define __PYX_TP_FINALIZE_ABI_SUFFIX
#else
    #define __PYX_TP_FINALIZE_ABI_SUFFIX "nofinalize"
#endif
#if CYTHON_USE_FREELISTS || !defined(__Pyx_AsyncGen_USED)
    #define __PYX_FREELISTS_ABI_SUFFIX
#else
    #define __PYX_FREELISTS_ABI_SUFFIX "nofreelists"
#endif
#define CYTHON_ABI  __PYX_ABI_VERSION __PYX_LIMITED_ABI_SUFFIX __PYX_MONITORING_ABI_SUFFIX __PYX_TP_FINALIZE_ABI_SUFFIX __PYX_FREELISTS_ABI_SUFFIX __PYX_AM_SEND_ABI_SUFFIX
#define __PYX_ABI_MODULE_NAME "_cython_" CYTHON_ABI
#define __PYX_TYPE_MODULE_PREFIX __PYX_ABI_MODULE_NAME "."


/* Module declarations from "kivy.graphics.cgl" */
static double *__pyx_vp_4kivy_8graphics_3cgl_pi = 0;
#define __pyx_v_4kivy_8graphics_3cgl_pi (*__pyx_vp_4kivy_8graphics_3cgl_pi)
static __pyx_t_4kivy_8graphics_3cgl_GLES2_Context **__pyx_vp_4kivy_8graphics_3cgl_cgl = 0;
#define __pyx_v_4kivy_8graphics_3cgl_cgl (*__pyx_vp_4kivy_8graphics_3cgl_cgl)
static int *__pyx_vp_4kivy_8graphics_3cgl_kivy_opengl_es2 = 0;
#define __pyx_v_4kivy_8graphics_3cgl_kivy_opengl_es2 (*__pyx_vp_4kivy_8graphics_3cgl_kivy_opengl_es2)
static unsigned long *__pyx_vp_4kivy_8graphics_3cgl_initialized_tid = 0;
#define __pyx_v_4kivy_8graphics_3cgl_initialized_tid (*__pyx_vp_4kivy_8graphics_3cgl_initialized_tid)
static int *__pyx_vp_4kivy_8graphics_3cgl_verify_gl_main_thread = 0;
#define __pyx_v_4kivy_8graphics_3cgl_verify_gl_main_thread (*__pyx_vp_4kivy_8graphics_3cgl_verify_gl_main_thread)
static PyObject *(*__pyx_f_4kivy_8graphics_3cgl_cgl_init)(int __pyx_skip_dispatch, struct __pyx_opt_args_4kivy_8graphics_3cgl_cgl_init *__pyx_optional_args); /*proto*/

/* Module declarations from "kivy.graphics.opengl" */
static double __pyx_v_4kivy_8graphics_6opengl_pi;
static GLuint *__pyx_f_4kivy_8graphics_6opengl__genBegin(int); /*proto*/
static PyObject *__pyx_f_4kivy_8graphics_6opengl__genEnd(int, GLuint *); /*proto*/
/* #### Code section: typeinfo ### */
/* #### Code section: before_global_var ### */
#define __Pyx_MODULE_NAME "kivy.graphics.opengl"
extern int __pyx_module_is_main_kivy__graphics__opengl;
int __pyx_module_is_main_kivy__graphics__opengl = 0;

/* Implementation of "kivy.graphics.opengl" */
/* #### Code section: global_var ### */
/* #### Code section: string_decls ### */
static const char __pyx_k_OpenGL_This_module_is_a_Python[] = "\nOpenGL\n======\n\nThis module is a Python wrapper for OpenGL commands.\n\n.. warning::\n\n    Not every OpenGL command has been wrapped and because we are using the C\n    binding for higher performance, and you should rather stick to the Kivy\n    Graphics API. By using OpenGL commands directly, you might change\n    the OpenGL context and introduce inconsistency between the Kivy state and\n    the OpenGL state.\n\n";
/* #### Code section: decls ### */
static PyObject *__pyx_pf_4kivy_8graphics_6opengl_glActiveTexture(CYTHON_UNUSED PyObject *__pyx_self, GLenum __pyx_v_texture); /* proto */
static PyObject *__pyx_pf_4kivy_8graphics_6opengl_2glAttachShader(CYTHON_UNUSED PyObject *__pyx_self, GLuint __pyx_v_program, GLuint __pyx_v_shader); /* proto */
static PyObject *__pyx_pf_4kivy_8graphics_6opengl_4glBindAttribLocation(CYTHON_UNUSED PyObject *__pyx_self, GLuint __pyx_v_program, GLuint __pyx_v_index, PyObject *__pyx_v_name); /* proto */
static PyObject *__pyx_pf_4kivy_8graphics_6opengl_6glBindBuffer(CYTHON_UNUSED PyObject *__pyx_self, GLenum __pyx_v_target, GLuint __pyx_v_buffer); /* proto */
static PyObject *__pyx_pf_4kivy_8graphics_6opengl_8glBindFramebuffer(CYTHON_UNUSED PyObject *__pyx_self, GLenum __pyx_v_target, GLuint __pyx_v_framebuffer); /* proto */
static PyObject *__pyx_pf_4kivy_8graphics_6opengl_10glBindRenderbuffer(CYTHON_UNUSED PyObject *__pyx_self, GLenum __pyx_v_target, GLuint __pyx_v_renderbuffer); /* proto */
static PyObject *__pyx_pf_4kivy_8graphics_6opengl_12glBindTexture(CYTHON_UNUSED PyObject *__pyx_self, GLenum __pyx_v_target, GLuint __pyx_v_texture); /* proto */
static PyObject *__pyx_pf_4kivy_8graphics_6opengl_14glBlendColor(CYTHON_UNUSED PyObject *__pyx_self, GLclampf __pyx_v_red, GLclampf __pyx_v_green, GLclampf __pyx_v_blue, GLclampf __pyx_v_alpha); /* proto */
static PyObject *__pyx_pf_4kivy_8graphics_6opengl_16glBlendEquation(CYTHON_UNUSED PyObject *__pyx_self, GLenum __pyx_v_mode); /* proto */
static PyObject *__pyx_pf_4kivy_8graphics_6opengl_18glBlendEquationSeparate(CYTHON_UNUSED PyObject *__pyx_self, GLenum __pyx_v_modeRGB, GLenum __pyx_v_modeAlpha); /* proto */
static PyObject *__pyx_pf_4kivy_8graphics_6opengl_20glBlendFunc(CYTHON_UNUSED PyObject *__pyx_self, GLenum __pyx_v_sfactor, GLenum __pyx_v_dfactor); /* proto */
static PyObject *__pyx_pf_4kivy_8graphics_6opengl_22glBlendFuncSeparate(CYTHON_UNUSED PyObject *__pyx_self, GLenum __pyx_v_srcRGB, GLenum __pyx_v_dstRGB, GLenum __pyx_v_srcAlpha, GLenum __pyx_v_dstAlpha); /* proto */
static PyObject *__pyx_pf_4kivy_8graphics_6opengl_24glBufferData(CYTHON_UNUSED PyObject *__pyx_self, GLenum __pyx_v_target, GLsizeiptr __pyx_v_size, PyObject *__pyx_v_data, GLenum __pyx_v_usage); /* proto */
static PyObject *__pyx_pf_4kivy_8graphics_6opengl_26glBufferSubData(CYTHON_UNUSED PyObject *__pyx_self, GLenum __pyx_v_target, GLintptr __pyx_v_offset, GLsizeiptr __pyx_v_size, PyObject *__pyx_v_data); /* proto */
static PyObject *__pyx_pf_4kivy_8graphics_6opengl_28glCheckFramebufferStatus(CYTHON_UNUSED PyObject *__pyx_self, GLenum __pyx_v_target); /* proto */
static PyObject *__pyx_pf_4kivy_8graphics_6opengl_30glClear(CYTHON_UNUSED PyObject *__pyx_self, GLbitfield __pyx_v_mask); /* proto */
static PyObject *__pyx_pf_4kivy_8graphics_6opengl_32glClearColor(CYTHON_UNUSED PyObject *__pyx_self, GLclampf __pyx_v_red, GLclampf __pyx_v_green, GLclampf __pyx_v_blue, GLclampf __pyx_v_alpha); /* proto */
static PyObject *__pyx_pf_4kivy_8graphics_6opengl_34glClearStencil(CYTHON_UNUSED PyObject *__pyx_self, GLint __pyx_v_s); /* proto */
static PyObject *__pyx_pf_4kivy_8graphics_6opengl_36glColorMask(CYTHON_UNUSED PyObject *__pyx_self, GLboolean __pyx_v_red, GLboolean __pyx_v_green, GLboolean __pyx_v_blue, GLboolean __pyx_v_alpha); /* proto */
static PyObject *__pyx_pf_4kivy_8graphics_6opengl_38glCompileShader(CYTHON_UNUSED PyObject *__pyx_self, GLuint __pyx_v_shader); /* proto */
static PyObject *__pyx_pf_4kivy_8graphics_6opengl_40glCompressedTexImage2D(CYTHON_UNUSED PyObject *__pyx_self, GLenum __pyx_v_target, GLint __pyx_v_level, GLenum __pyx_v_internalformat, GLsizei __pyx_v_width, GLsizei __pyx_v_height, GLint __pyx_v_border, GLsizei __pyx_v_imageSize, PyObject *__pyx_v_data); /* proto */
static PyObject *__pyx_pf_4kivy_8graphics_6opengl_42glCompressedTexSubImage2D(CYTHON_UNUSED PyObject *__pyx_self, GLenum __pyx_v_target, GLint __pyx_v_level, GLint __pyx_v_xoffset, GLint __pyx_v_yoffset, GLsizei __pyx_v_width, GLsizei __pyx_v_height, GLenum __pyx_v_format, GLsizei __pyx_v_imageSize, PyObject *__pyx_v_data); /* proto */
static PyObject *__pyx_pf_4kivy_8graphics_6opengl_44glCopyTexImage2D(CYTHON_UNUSED PyObject *__pyx_self, GLenum __pyx_v_target, GLint __pyx_v_level, GLenum __pyx_v_internalformat, GLint __pyx_v_x, GLint __pyx_v_y, GLsizei __pyx_v_width, GLsizei __pyx_v_height, GLint __pyx_v_border); /* proto */
static PyObject *__pyx_pf_4kivy_8graphics_6opengl_46glCopyTexSubImage2D(CYTHON_UNUSED PyObject *__pyx_self, GLenum __pyx_v_target, GLint __pyx_v_level, GLint __pyx_v_xoffset, GLint __pyx_v_yoffset, GLint __pyx_v_x, GLint __pyx_v_y, GLsizei __pyx_v_width, GLsizei __pyx_v_height); /* proto */
static PyObject *__pyx_pf_4kivy_8graphics_6opengl_48glCreateProgram(CYTHON_UNUSED PyObject *__pyx_self); /* proto */
static PyObject *__pyx_pf_4kivy_8graphics_6opengl_50glCreateShader(CYTHON_UNUSED PyObject *__pyx_self, GLenum __pyx_v_type); /* proto */
static PyObject *__pyx_pf_4kivy_8graphics_6opengl_52glCullFace(CYTHON_UNUSED PyObject *__pyx_self, GLenum __pyx_v_mode); /* proto */
static PyObject *__pyx_pf_4kivy_8graphics_6opengl_54glDeleteBuffers(CYTHON_UNUSED PyObject *__pyx_self, GLsizei __pyx_v_n, PyObject *__pyx_v_buffers); /* proto */
static PyObject *__pyx_pf_4kivy_8graphics_6opengl_56glDeleteFramebuffers(CYTHON_UNUSED PyObject *__pyx_self, GLsizei __pyx_v_n, PyObject *__pyx_v_framebuffers); /* proto */
static PyObject *__pyx_pf_4kivy_8graphics_6opengl_58glDeleteProgram(CYTHON_UNUSED PyObject *__pyx_self, GLuint __pyx_v_program); /* proto */
static PyObject *__pyx_pf_4kivy_8graphics_6opengl_60glDeleteRenderbuffers(CYTHON_UNUSED PyObject *__pyx_self, GLsizei __pyx_v_n, PyObject *__pyx_v_renderbuffers); /* proto */
static PyObject *__pyx_pf_4kivy_8graphics_6opengl_62glDeleteShader(CYTHON_UNUSED PyObject *__pyx_self, GLuint __pyx_v_shader); /* proto */
static PyObject *__pyx_pf_4kivy_8graphics_6opengl_64glDeleteTextures(CYTHON_UNUSED PyObject *__pyx_self, GLsizei __pyx_v_n, PyObject *__pyx_v_textures); /* proto */
static PyObject *__pyx_pf_4kivy_8graphics_6opengl_66glDepthFunc(CYTHON_UNUSED PyObject *__pyx_self, GLenum __pyx_v_func); /* proto */
static PyObject *__pyx_pf_4kivy_8graphics_6opengl_68glDepthMask(CYTHON_UNUSED PyObject *__pyx_self, GLboolean __pyx_v_flag); /* proto */
static PyObject *__pyx_pf_4kivy_8graphics_6opengl_70glDetachShader(CYTHON_UNUSED PyObject *__pyx_self, GLuint __pyx_v_program, GLuint __pyx_v_shader); /* proto */
static PyObject *__pyx_pf_4kivy_8graphics_6opengl_72glDisable(CYTHON_UNUSED PyObject *__pyx_self, GLenum __pyx_v_cap); /* proto */
static PyObject *__pyx_pf_4kivy_8graphics_6opengl_74glDisableVertexAttribArray(CYTHON_UNUSED PyObject *__pyx_self, GLuint __pyx_v_index); /* proto */
static PyObject *__pyx_pf_4kivy_8graphics_6opengl_76glDrawArrays(CYTHON_UNUSED PyObject *__pyx_self, GLenum __pyx_v_mode, GLint __pyx_v_first, GLsizei __pyx_v_count); /* proto */
static PyObject *__pyx_pf_4kivy_8graphics_6opengl_78glDrawElements(CYTHON_UNUSED PyObject *__pyx_self, GLenum __pyx_v_mode, GLsizei __pyx_v_count, GLenum __pyx_v_type, PyObject *__pyx_v_indices); /* proto */
static PyObject *__pyx_pf_4kivy_8graphics_6opengl_80glEnable(CYTHON_UNUSED PyObject *__pyx_self, GLenum __pyx_v_cap); /* proto */
static PyObject *__pyx_pf_4kivy_8graphics_6opengl_82glEnableVertexAttribArray(CYTHON_UNUSED PyObject *__pyx_self, GLuint __pyx_v_index); /* proto */
static PyObject *__pyx_pf_4kivy_8graphics_6opengl_84glFinish(CYTHON_UNUSED PyObject *__pyx_self); /* proto */
static PyObject *__pyx_pf_4kivy_8graphics_6opengl_86glFlush(CYTHON_UNUSED PyObject *__pyx_self); /* proto */
static PyObject *__pyx_pf_4kivy_8graphics_6opengl_88glFramebufferRenderbuffer(CYTHON_UNUSED PyObject *__pyx_self, GLenum __pyx_v_target, GLenum __pyx_v_attachment, GLenum __pyx_v_renderbuffertarget, GLuint __pyx_v_renderbuffer); /* proto */
static PyObject *__pyx_pf_4kivy_8graphics_6opengl_90glFramebufferTexture2D(CYTHON_UNUSED PyObject *__pyx_self, GLenum __pyx_v_target, GLenum __pyx_v_attachment, GLenum __pyx_v_textarget, GLuint __pyx_v_texture, GLint __pyx_v_level); /* proto */
static PyObject *__pyx_pf_4kivy_8graphics_6opengl_92glFrontFace(CYTHON_UNUSED PyObject *__pyx_self, GLenum __pyx_v_mode); /* proto */
static PyObject *__pyx_pf_4kivy_8graphics_6opengl_94glGenBuffers(CYTHON_UNUSED PyObject *__pyx_self, GLsizei __pyx_v_n); /* proto */
static PyObject *__pyx_pf_4kivy_8graphics_6opengl_96glGenerateMipmap(CYTHON_UNUSED PyObject *__pyx_self, GLenum __pyx_v_target); /* proto */
static PyObject *__pyx_pf_4kivy_8graphics_6opengl_98glGenFramebuffers(CYTHON_UNUSED PyObject *__pyx_self, GLsizei __pyx_v_n); /* proto */
static PyObject *__pyx_pf_4kivy_8graphics_6opengl_100glGenRenderbuffers(CYTHON_UNUSED PyObject *__pyx_self, GLsizei __pyx_v_n); /* proto */
static PyObject *__pyx_pf_4kivy_8graphics_6opengl_102glGenTextures(CYTHON_UNUSED PyObject *__pyx_self, GLsizei __pyx_v_n); /* proto */
static PyObject *__pyx_pf_4kivy_8graphics_6opengl_104glGetActiveAttrib(CYTHON_UNUSED PyObject *__pyx_self, GLuint __pyx_v_program, GLuint __pyx_v_index); /* proto */
static PyObject *__pyx_pf_4kivy_8graphics_6opengl_106glGetActiveUniform(CYTHON_UNUSED PyObject *__pyx_self, GLuint __pyx_v_program, GLuint __pyx_v_index); /* proto */
static PyObject *__pyx_pf_4kivy_8graphics_6opengl_108glGetAttachedShaders(CYTHON_UNUSED PyObject *__pyx_self, GLuint __pyx_v_program, CYTHON_UNUSED GLsizei __pyx_v_maxcount); /* proto */
static PyObject *__pyx_pf_4kivy_8graphics_6opengl_110glGetAttribLocation(CYTHON_UNUSED PyObject *__pyx_self, GLuint __pyx_v_program, PyObject *__pyx_v_name); /* proto */
static PyObject *__pyx_pf_4kivy_8graphics_6opengl_112glGetBooleanv(CYTHON_UNUSED PyObject *__pyx_self, GLenum __pyx_v_pname); /* proto */
static PyObject *__pyx_pf_4kivy_8graphics_6opengl_114glGetBufferParameteriv(CYTHON_UNUSED PyObject *__pyx_self, GLenum __pyx_v_target, GLenum __pyx_v_pname); /* proto */
static PyObject *__pyx_pf_4kivy_8graphics_6opengl_116glGetError(CYTHON_UNUSED PyObject *__pyx_self); /* proto */
static PyObject *__pyx_pf_4kivy_8graphics_6opengl_118glGetFloatv(CYTHON_UNUSED PyObject *__pyx_self, GLenum __pyx_v_pname); /* proto */
static PyObject *__pyx_pf_4kivy_8graphics_6opengl_120glGetFramebufferAttachmentParameteriv(CYTHON_UNUSED PyObject *__pyx_self, GLenum __pyx_v_target, GLenum __pyx_v_attachment, GLenum __pyx_v_pname); /* proto */
static PyObject *__pyx_pf_4kivy_8graphics_6opengl_122glGetIntegerv(CYTHON_UNUSED PyObject *__pyx_self, GLenum __pyx_v_pname); /* proto */
static PyObject *__pyx_pf_4kivy_8graphics_6opengl_124glGetProgramiv(CYTHON_UNUSED PyObject *__pyx_self, GLuint __pyx_v_program, GLenum __pyx_v_pname); /* proto */
static PyObject *__pyx_pf_4kivy_8graphics_6opengl_126glGetProgramInfoLog(CYTHON_UNUSED PyObject *__pyx_self, GLuint __pyx_v_program, CYTHON_UNUSED GLsizei __pyx_v_bufsize); /* proto */
static PyObject *__pyx_pf_4kivy_8graphics_6opengl_128glGetRenderbufferParameteriv(CYTHON_UNUSED PyObject *__pyx_self, GLenum __pyx_v_target, GLenum __pyx_v_pname); /* proto */
static PyObject *__pyx_pf_4kivy_8graphics_6opengl_130glGetShaderiv(CYTHON_UNUSED PyObject *__pyx_self, GLuint __pyx_v_shader, GLenum __pyx_v_pname); /* proto */
static PyObject *__pyx_pf_4kivy_8graphics_6opengl_132glGetShaderInfoLog(CYTHON_UNUSED PyObject *__pyx_self, GLuint __pyx_v_shader, CYTHON_UNUSED GLsizei __pyx_v_bufsize); /* proto */
static PyObject *__pyx_pf_4kivy_8graphics_6opengl_134glGetShaderPrecisionFormat(CYTHON_UNUSED PyObject *__pyx_self, CYTHON_UNUSED GLenum __pyx_v_shadertype, CYTHON_UNUSED GLenum __pyx_v_precisiontype); /* proto */
static PyObject *__pyx_pf_4kivy_8graphics_6opengl_136glGetShaderSource(CYTHON_UNUSED PyObject *__pyx_self, GLuint __pyx_v_shader); /* proto */
static PyObject *__pyx_pf_4kivy_8graphics_6opengl_138glGetString(CYTHON_UNUSED PyObject *__pyx_self, GLenum __pyx_v_name); /* proto */
static PyObject *__pyx_pf_4kivy_8graphics_6opengl_140glGetTexParameterfv(CYTHON_UNUSED PyObject *__pyx_self, GLenum __pyx_v_target, GLenum __pyx_v_pname); /* proto */
static PyObject *__pyx_pf_4kivy_8graphics_6opengl_142glGetTexParameteriv(CYTHON_UNUSED PyObject *__pyx_self, GLenum __pyx_v_target, GLenum __pyx_v_pname); /* proto */
static PyObject *__pyx_pf_4kivy_8graphics_6opengl_144glGetUniformfv(CYTHON_UNUSED PyObject *__pyx_self, GLuint __pyx_v_program, GLint __pyx_v_location); /* proto */
static PyObject *__pyx_pf_4kivy_8graphics_6opengl_146glGetUniformiv(CYTHON_UNUSED PyObject *__pyx_self, GLuint __pyx_v_program, GLint __pyx_v_location); /* proto */
static PyObject *__pyx_pf_4kivy_8graphics_6opengl_148glGetUniformLocation(CYTHON_UNUSED PyObject *__pyx_self, GLuint __pyx_v_program, PyObject *__pyx_v_name); /* proto */
static PyObject *__pyx_pf_4kivy_8graphics_6opengl_150glGetVertexAttribfv(CYTHON_UNUSED PyObject *__pyx_self, GLuint __pyx_v_index, GLenum __pyx_v_pname); /* proto */
static PyObject *__pyx_pf_4kivy_8graphics_6opengl_152glGetVertexAttribiv(CYTHON_UNUSED PyObject *__pyx_self, GLuint __pyx_v_index, GLenum __pyx_v_pname); /* proto */
static PyObject *__pyx_pf_4kivy_8graphics_6opengl_154glGetVertexAttribPointerv(CYTHON_UNUSED PyObject *__pyx_self, CYTHON_UNUSED GLuint __pyx_v_index, CYTHON_UNUSED GLenum __pyx_v_pname); /* proto */
static PyObject *__pyx_pf_4kivy_8graphics_6opengl_156glHint(CYTHON_UNUSED PyObject *__pyx_self, GLenum __pyx_v_target, GLenum __pyx_v_mode); /* proto */
static PyObject *__pyx_pf_4kivy_8graphics_6opengl_158glIsBuffer(CYTHON_UNUSED PyObject *__pyx_self, GLuint __pyx_v_buffer); /* proto */
static PyObject *__pyx_pf_4kivy_8graphics_6opengl_160glIsEnabled(CYTHON_UNUSED PyObject *__pyx_self, GLenum __pyx_v_cap); /* proto */
static PyObject *__pyx_pf_4kivy_8graphics_6opengl_162glIsFramebuffer(CYTHON_UNUSED PyObject *__pyx_self, GLuint __pyx_v_framebuffer); /* proto */
static PyObject *__pyx_pf_4kivy_8graphics_6opengl_164glIsProgram(CYTHON_UNUSED PyObject *__pyx_self, GLuint __pyx_v_program); /* proto */
static PyObject *__pyx_pf_4kivy_8graphics_6opengl_166glIsRenderbuffer(CYTHON_UNUSED PyObject *__pyx_self, GLuint __pyx_v_renderbuffer); /* proto */
static PyObject *__pyx_pf_4kivy_8graphics_6opengl_168glIsShader(CYTHON_UNUSED PyObject *__pyx_self, GLuint __pyx_v_shader); /* proto */
static PyObject *__pyx_pf_4kivy_8graphics_6opengl_170glIsTexture(CYTHON_UNUSED PyObject *__pyx_self, GLuint __pyx_v_texture); /* proto */
static PyObject *__pyx_pf_4kivy_8graphics_6opengl_172glLineWidth(CYTHON_UNUSED PyObject *__pyx_self, GLfloat __pyx_v_width); /* proto */
static PyObject *__pyx_pf_4kivy_8graphics_6opengl_174glLinkProgram(CYTHON_UNUSED PyObject *__pyx_self, GLuint __pyx_v_program); /* proto */
static PyObject *__pyx_pf_4kivy_8graphics_6opengl_176glPixelStorei(CYTHON_UNUSED PyObject *__pyx_self, GLenum __pyx_v_pname, GLint __pyx_v_param); /* proto */
static PyObject *__pyx_pf_4kivy_8graphics_6opengl_178glPolygonOffset(CYTHON_UNUSED PyObject *__pyx_self, GLfloat __pyx_v_factor, GLfloat __pyx_v_units); /* proto */
static PyObject *__pyx_pf_4kivy_8graphics_6opengl_180glReadPixels(CYTHON_UNUSED PyObject *__pyx_self, GLint __pyx_v_x, GLint __pyx_v_y, GLsizei __pyx_v_width, GLsizei __pyx_v_height, GLenum __pyx_v_format, GLenum __pyx_v_type); /* proto */
static PyObject *__pyx_pf_4kivy_8graphics_6opengl_182glReleaseShaderCompiler(CYTHON_UNUSED PyObject *__pyx_self); /* proto */
static PyObject *__pyx_pf_4kivy_8graphics_6opengl_184glRenderbufferStorage(CYTHON_UNUSED PyObject *__pyx_self, GLenum __pyx_v_target, GLenum __pyx_v_internalformat, GLsizei __pyx_v_width, GLsizei __pyx_v_height); /* proto */
static PyObject *__pyx_pf_4kivy_8graphics_6opengl_186glSampleCoverage(CYTHON_UNUSED PyObject *__pyx_self, GLclampf __pyx_v_value, GLboolean __pyx_v_invert); /* proto */
static PyObject *__pyx_pf_4kivy_8graphics_6opengl_188glScissor(CYTHON_UNUSED PyObject *__pyx_self, GLint __pyx_v_x, GLint __pyx_v_y, GLsizei __pyx_v_width, GLsizei __pyx_v_height); /* proto */
static PyObject *__pyx_pf_4kivy_8graphics_6opengl_190glShaderBinary(CYTHON_UNUSED PyObject *__pyx_self); /* proto */
static PyObject *__pyx_pf_4kivy_8graphics_6opengl_192glShaderSource(CYTHON_UNUSED PyObject *__pyx_self, GLuint __pyx_v_shader, PyObject *__pyx_v_source); /* proto */
static PyObject *__pyx_pf_4kivy_8graphics_6opengl_194glStencilFunc(CYTHON_UNUSED PyObject *__pyx_self, GLenum __pyx_v_func, GLint __pyx_v_ref, GLuint __pyx_v_mask); /* proto */
static PyObject *__pyx_pf_4kivy_8graphics_6opengl_196glStencilFuncSeparate(CYTHON_UNUSED PyObject *__pyx_self, GLenum __pyx_v_face, GLenum __pyx_v_func, GLint __pyx_v_ref, GLuint __pyx_v_mask); /* proto */
static PyObject *__pyx_pf_4kivy_8graphics_6opengl_198glStencilMask(CYTHON_UNUSED PyObject *__pyx_self, GLuint __pyx_v_mask); /* proto */
static PyObject *__pyx_pf_4kivy_8graphics_6opengl_200glStencilMaskSeparate(CYTHON_UNUSED PyObject *__pyx_self, GLenum __pyx_v_face, GLuint __pyx_v_mask); /* proto */
static PyObject *__pyx_pf_4kivy_8graphics_6opengl_202glStencilOp(CYTHON_UNUSED PyObject *__pyx_self, GLenum __pyx_v_fail, GLenum __pyx_v_zfail, GLenum __pyx_v_zpass); /* proto */
static PyObject *__pyx_pf_4kivy_8graphics_6opengl_204glStencilOpSeparate(CYTHON_UNUSED PyObject *__pyx_self, GLenum __pyx_v_face, GLenum __pyx_v_fail, GLenum __pyx_v_zfail, GLenum __pyx_v_zpass); /* proto */
static PyObject *__pyx_pf_4kivy_8graphics_6opengl_206glTexImage2D(CYTHON_UNUSED PyObject *__pyx_self, GLenum __pyx_v_target, GLint __pyx_v_level, GLint __pyx_v_internalformat, GLsizei __pyx_v_width, GLsizei __pyx_v_height, GLint __pyx_v_border, GLenum __pyx_v_format, GLenum __pyx_v_type, PyObject *__pyx_v_pixels); /* proto */
static PyObject *__pyx_pf_4kivy_8graphics_6opengl_208glTexParameterf(CYTHON_UNUSED PyObject *__pyx_self, GLenum __pyx_v_target, GLenum __pyx_v_pname, GLfloat __pyx_v_param); /* proto */
static PyObject *__pyx_pf_4kivy_8graphics_6opengl_210glTexParameterfv(CYTHON_UNUSED PyObject *__pyx_self, CYTHON_UNUSED GLenum __pyx_v_target, CYTHON_UNUSED GLenum __pyx_v_pname); /* proto */
static PyObject *__pyx_pf_4kivy_8graphics_6opengl_212glTexParameteri(CYTHON_UNUSED PyObject *__pyx_self, GLenum __pyx_v_target, GLenum __pyx_v_pname, GLint __pyx_v_param); /* proto */
static PyObject *__pyx_pf_4kivy_8graphics_6opengl_214glTexParameteriv(CYTHON_UNUSED PyObject *__pyx_self, CYTHON_UNUSED GLenum __pyx_v_target, CYTHON_UNUSED GLenum __pyx_v_pname); /* proto */
static PyObject *__pyx_pf_4kivy_8graphics_6opengl_216glTexSubImage2D(CYTHON_UNUSED PyObject *__pyx_self, GLenum __pyx_v_target, GLint __pyx_v_level, GLint __pyx_v_xoffset, GLint __pyx_v_yoffset, GLsizei __pyx_v_width, GLsizei __pyx_v_height, GLenum __pyx_v_format, GLenum __pyx_v_type, PyObject *__pyx_v_pixels); /* proto */
static PyObject *__pyx_pf_4kivy_8graphics_6opengl_218glUniform1f(CYTHON_UNUSED PyObject *__pyx_self, GLint __pyx_v_location, GLfloat __pyx_v_x); /* proto */
static PyObject *__pyx_pf_4kivy_8graphics_6opengl_220glUniform1fv(CYTHON_UNUSED PyObject *__pyx_self, CYTHON_UNUSED GLint __pyx_v_location, CYTHON_UNUSED GLsizei __pyx_v_count); /* proto */
static PyObject *__pyx_pf_4kivy_8graphics_6opengl_222glUniform1i(CYTHON_UNUSED PyObject *__pyx_self, GLint __pyx_v_location, GLint __pyx_v_x); /* proto */
static PyObject *__pyx_pf_4kivy_8graphics_6opengl_224glUniform1iv(CYTHON_UNUSED PyObject *__pyx_self, CYTHON_UNUSED GLint __pyx_v_location, CYTHON_UNUSED GLsizei __pyx_v_count); /* proto */
static PyObject *__pyx_pf_4kivy_8graphics_6opengl_226glUniform2f(CYTHON_UNUSED PyObject *__pyx_self, GLint __pyx_v_location, GLfloat __pyx_v_x, GLfloat __pyx_v_y); /* proto */
static PyObject *__pyx_pf_4kivy_8graphics_6opengl_228glUniform2fv(CYTHON_UNUSED PyObject *__pyx_self, CYTHON_UNUSED GLint __pyx_v_location, CYTHON_UNUSED GLsizei __pyx_v_count); /* proto */
static PyObject *__pyx_pf_4kivy_8graphics_6opengl_230glUniform2i(CYTHON_UNUSED PyObject *__pyx_self, GLint __pyx_v_location, GLint __pyx_v_x, GLint __pyx_v_y); /* proto */
static PyObject *__pyx_pf_4kivy_8graphics_6opengl_232glUniform2iv(CYTHON_UNUSED PyObject *__pyx_self, CYTHON_UNUSED GLint __pyx_v_location, CYTHON_UNUSED GLsizei __pyx_v_count); /* proto */
static PyObject *__pyx_pf_4kivy_8graphics_6opengl_234glUniform3f(CYTHON_UNUSED PyObject *__pyx_self, GLint __pyx_v_location, GLfloat __pyx_v_x, GLfloat __pyx_v_y, GLfloat __pyx_v_z); /* proto */
static PyObject *__pyx_pf_4kivy_8graphics_6opengl_236glUniform3fv(CYTHON_UNUSED PyObject *__pyx_self, CYTHON_UNUSED GLint __pyx_v_location, CYTHON_UNUSED GLsizei __pyx_v_count); /* proto */
static PyObject *__pyx_pf_4kivy_8graphics_6opengl_238glUniform3i(CYTHON_UNUSED PyObject *__pyx_self, GLint __pyx_v_location, GLint __pyx_v_x, GLint __pyx_v_y, GLint __pyx_v_z); /* proto */
static PyObject *__pyx_pf_4kivy_8graphics_6opengl_240glUniform3iv(CYTHON_UNUSED PyObject *__pyx_self, CYTHON_UNUSED GLint __pyx_v_location, CYTHON_UNUSED GLsizei __pyx_v_count); /* proto */
static PyObject *__pyx_pf_4kivy_8graphics_6opengl_242glUniform4f(CYTHON_UNUSED PyObject *__pyx_self, GLint __pyx_v_location, GLfloat __pyx_v_x, GLfloat __pyx_v_y, GLfloat __pyx_v_z, GLfloat __pyx_v_w); /* proto */
static PyObject *__pyx_pf_4kivy_8graphics_6opengl_244glUniform4fv(CYTHON_UNUSED PyObject *__pyx_self, CYTHON_UNUSED GLint __pyx_v_location, CYTHON_UNUSED GLsizei __pyx_v_count); /* proto */
static PyObject *__pyx_pf_4kivy_8graphics_6opengl_246glUniform4i(CYTHON_UNUSED PyObject *__pyx_self, GLint __pyx_v_location, GLint __pyx_v_x, GLint __pyx_v_y, GLint __pyx_v_z, GLint __pyx_v_w); /* proto */
static PyObject *__pyx_pf_4kivy_8graphics_6opengl_248glUniform4iv(CYTHON_UNUSED PyObject *__pyx_self, CYTHON_UNUSED GLint __pyx_v_location, CYTHON_UNUSED GLsizei __pyx_v_count); /* proto */
static PyObject *__pyx_pf_4kivy_8graphics_6opengl_250glUniformMatrix2fv(CYTHON_UNUSED PyObject *__pyx_self, CYTHON_UNUSED GLint __pyx_v_location, CYTHON_UNUSED GLsizei __pyx_v_count); /* proto */
static PyObject *__pyx_pf_4kivy_8graphics_6opengl_252glUniformMatrix3fv(CYTHON_UNUSED PyObject *__pyx_self, CYTHON_UNUSED GLint __pyx_v_location, CYTHON_UNUSED GLsizei __pyx_v_count); /* proto */
static PyObject *__pyx_pf_4kivy_8graphics_6opengl_254glUniformMatrix4fv(CYTHON_UNUSED PyObject *__pyx_self, GLint __pyx_v_location, GLsizei __pyx_v_count, GLboolean __pyx_v_transpose, PyObject *__pyx_v_value); /* proto */
static PyObject *__pyx_pf_4kivy_8graphics_6opengl_256glUseProgram(CYTHON_UNUSED PyObject *__pyx_self, GLuint __pyx_v_program); /* proto */
static PyObject *__pyx_pf_4kivy_8graphics_6opengl_258glValidateProgram(CYTHON_UNUSED PyObject *__pyx_self, GLuint __pyx_v_program); /* proto */
static PyObject *__pyx_pf_4kivy_8graphics_6opengl_260glVertexAttrib1f(CYTHON_UNUSED PyObject *__pyx_self, GLuint __pyx_v_indx, GLfloat __pyx_v_x); /* proto */
static PyObject *__pyx_pf_4kivy_8graphics_6opengl_262glVertexAttrib1fv(CYTHON_UNUSED PyObject *__pyx_self, CYTHON_UNUSED GLuint __pyx_v_indx, CYTHON_UNUSED PyObject *__pyx_v_values); /* proto */
static PyObject *__pyx_pf_4kivy_8graphics_6opengl_264glVertexAttrib2f(CYTHON_UNUSED PyObject *__pyx_self, GLuint __pyx_v_indx, GLfloat __pyx_v_x, GLfloat __pyx_v_y); /* proto */
static PyObject *__pyx_pf_4kivy_8graphics_6opengl_266glVertexAttrib2fv(CYTHON_UNUSED PyObject *__pyx_self, CYTHON_UNUSED GLuint __pyx_v_indx, CYTHON_UNUSED PyObject *__pyx_v_values); /* proto */
static PyObject *__pyx_pf_4kivy_8graphics_6opengl_268glVertexAttrib3f(CYTHON_UNUSED PyObject *__pyx_self, GLuint __pyx_v_indx, GLfloat __pyx_v_x, GLfloat __pyx_v_y, GLfloat __pyx_v_z); /* proto */
static PyObject *__pyx_pf_4kivy_8graphics_6opengl_270glVertexAttrib3fv(CYTHON_UNUSED PyObject *__pyx_self, CYTHON_UNUSED GLuint __pyx_v_indx, CYTHON_UNUSED PyObject *__pyx_v_values); /* proto */
static PyObject *__pyx_pf_4kivy_8graphics_6opengl_272glVertexAttrib4f(CYTHON_UNUSED PyObject *__pyx_self, GLuint __pyx_v_indx, GLfloat __pyx_v_x, GLfloat __pyx_v_y, GLfloat __pyx_v_z, GLfloat __pyx_v_w); /* proto */
static PyObject *__pyx_pf_4kivy_8graphics_6opengl_274glVertexAttrib4fv(CYTHON_UNUSED PyObject *__pyx_self, CYTHON_UNUSED GLuint __pyx_v_indx, CYTHON_UNUSED PyObject *__pyx_v_values); /* proto */
static PyObject *__pyx_pf_4kivy_8graphics_6opengl_276glVertexAttribPointer(CYTHON_UNUSED PyObject *__pyx_self, GLuint __pyx_v_index, GLint __pyx_v_size, GLenum __pyx_v_type, GLboolean __pyx_v_normalized, GLsizei __pyx_v_stride, PyObject *__pyx_v_data); /* proto */
static PyObject *__pyx_pf_4kivy_8graphics_6opengl_278glViewport(CYTHON_UNUSED PyObject *__pyx_self, GLint __pyx_v_x, GLint __pyx_v_y, GLsizei __pyx_v_width, GLsizei __pyx_v_height); /* proto */
static PyObject *__pyx_pf_4kivy_8graphics_6opengl_282__defaults__(CYTHON_UNUSED PyObject *__pyx_self); /* proto */
static PyObject *__pyx_pf_4kivy_8graphics_6opengl_280gl_init_symbols(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_allowed, PyObject *__pyx_v_ignored); /* proto */
static PyObject *__pyx_tp_new_4kivy_8graphics_6opengl___pyx_defaults(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
/* #### Code section: late_includes ### */
/* #### Code section: module_state ### */
/* SmallCodeConfig */
#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

typedef struct {
  PyObject *__pyx_d;
  PyObject *__pyx_b;
  PyObject *__pyx_cython_runtime;
  PyObject *__pyx_empty_tuple;
  PyObject *__pyx_empty_bytes;
  PyObject *__pyx_empty_unicode;
  PyObject *__pyx_type_4kivy_8graphics_6opengl___pyx_defaults;
  PyTypeObject *__pyx_ptype_4kivy_8graphics_6opengl___pyx_defaults;
  __Pyx_CachedCFunction __pyx_umethod_PyDict_Type_items;
  __Pyx_CachedCFunction __pyx_umethod_PyDict_Type_pop;
  __Pyx_CachedCFunction __pyx_umethod_PyDict_Type_values;
  PyObject *__pyx_codeobj_tab[141];
  PyObject *__pyx_string_tab[668];
  PyObject *__pyx_number_tab[3];
/* #### Code section: module_state_contents ### */
/* CommonTypesMetaclass.module_state_decls */
PyTypeObject *__pyx_CommonTypesMetaclassType;

/* CachedMethodType.module_state_decls */
#if CYTHON_COMPILING_IN_LIMITED_API
PyObject *__Pyx_CachedMethodType;
#endif

/* CythonFunctionShared.module_state_decls */
PyTypeObject *__pyx_CyFunctionType;

/* CodeObjectCache.module_state_decls */
struct __Pyx_CodeObjectCache __pyx_code_cache;

/* #### Code section: module_state_end ### */
} __pyx_mstatetype;

#if CYTHON_USE_MODULE_STATE
#ifdef __cplusplus
namespace {
extern struct PyModuleDef __pyx_moduledef;
} /* anonymous namespace */
#else
static struct PyModuleDef __pyx_moduledef;
#endif

#define __pyx_mstate_global (__Pyx_PyModule_GetState(__Pyx_State_FindModule(&__pyx_moduledef)))

#define __pyx_m (__Pyx_State_FindModule(&__pyx_moduledef))
#else
static __pyx_mstatetype __pyx_mstate_global_static =
#ifdef __cplusplus
    {};
#else
    {0};
#endif
static __pyx_mstatetype * const __pyx_mstate_global = &__pyx_mstate_global_static;
#endif
/* #### Code section: constant_name_defines ### */
#define __pyx_kp_u_ __pyx_string_tab[0]
#define __pyx_kp_u_Argument_data_has_incorrect_type __pyx_string_tab[1]
#define __pyx_kp_u_Argument_indices_has_incorrect_t __pyx_string_tab[2]
#define __pyx_kp_u_Note_that_Cython_is_deliberately __pyx_string_tab[3]
#define __pyx_kp_u__2 __pyx_string_tab[4]
#define __pyx_kp_u_add_note __pyx_string_tab[5]
#define __pyx_kp_u_disable __pyx_string_tab[6]
#define __pyx_kp_u_enable __pyx_string_tab[7]
#define __pyx_kp_u_gc __pyx_string_tab[8]
#define __pyx_kp_u_glGetActiveAttrib __pyx_string_tab[9]
#define __pyx_kp_u_glGetActiveUniform __pyx_string_tab[10]
#define __pyx_kp_u_glGetBooleanv __pyx_string_tab[11]
#define __pyx_kp_u_glGetBufferParameteriv __pyx_string_tab[12]
#define __pyx_kp_u_glGetFloatv __pyx_string_tab[13]
#define __pyx_kp_u_glGetFramebufferAttachmentParame __pyx_string_tab[14]
#define __pyx_kp_u_glGetIntegerv __pyx_string_tab[15]
#define __pyx_kp_u_glGetProgramInfoLog __pyx_string_tab[16]
#define __pyx_kp_u_glGetShaderInfoLog __pyx_string_tab[17]
#define __pyx_kp_u_glReadPixels __pyx_string_tab[18]
#define __pyx_kp_u_isenabled __pyx_string_tab[19]
#define __pyx_kp_u_kivy_graphics_opengl_pyx __pyx_string_tab[20]
#define __pyx_n_u_GL_ACTIVE_ATTRIBUTES __pyx_string_tab[21]
#define __pyx_n_u_GL_ACTIVE_ATTRIBUTE_MAX_LENGTH __pyx_string_tab[22]
#define __pyx_n_u_GL_ACTIVE_TEXTURE __pyx_string_tab[23]
#define __pyx_n_u_GL_ACTIVE_UNIFORMS __pyx_string_tab[24]
#define __pyx_n_u_GL_ACTIVE_UNIFORM_MAX_LENGTH __pyx_string_tab[25]
#define __pyx_n_u_GL_ALIASED_LINE_WIDTH_RANGE __pyx_string_tab[26]
#define __pyx_n_u_GL_ALIASED_POINT_SIZE_RANGE __pyx_string_tab[27]
#define __pyx_n_u_GL_ALPHA __pyx_string_tab[28]
#define __pyx_n_u_GL_ALPHA_BITS __pyx_string_tab[29]
#define __pyx_n_u_GL_ALWAYS __pyx_string_tab[30]
#define __pyx_n_u_GL_ARRAY_BUFFER __pyx_string_tab[31]
#define __pyx_n_u_GL_ARRAY_BUFFER_BINDING __pyx_string_tab[32]
#define __pyx_n_u_GL_ATTACHED_SHADERS __pyx_string_tab[33]
#define __pyx_n_u_GL_BACK __pyx_string_tab[34]
#define __pyx_n_u_GL_BLEND __pyx_string_tab[35]
#define __pyx_n_u_GL_BLEND_COLOR __pyx_string_tab[36]
#define __pyx_n_u_GL_BLEND_DST_ALPHA __pyx_string_tab[37]
#define __pyx_n_u_GL_BLEND_DST_RGB __pyx_string_tab[38]
#define __pyx_n_u_GL_BLEND_EQUATION __pyx_string_tab[39]
#define __pyx_n_u_GL_BLEND_EQUATION_ALPHA __pyx_string_tab[40]
#define __pyx_n_u_GL_BLEND_EQUATION_RGB __pyx_string_tab[41]
#define __pyx_n_u_GL_BLEND_SRC_ALPHA __pyx_string_tab[42]
#define __pyx_n_u_GL_BLEND_SRC_RGB __pyx_string_tab[43]
#define __pyx_n_u_GL_BLUE_BITS __pyx_string_tab[44]
#define __pyx_n_u_GL_BOOL __pyx_string_tab[45]
#define __pyx_n_u_GL_BOOL_VEC2 __pyx_string_tab[46]
#define __pyx_n_u_GL_BOOL_VEC3 __pyx_string_tab[47]
#define __pyx_n_u_GL_BOOL_VEC4 __pyx_string_tab[48]
#define __pyx_n_u_GL_BUFFER_SIZE __pyx_string_tab[49]
#define __pyx_n_u_GL_BUFFER_USAGE __pyx_string_tab[50]
#define __pyx_n_u_GL_BYTE __pyx_string_tab[51]
#define __pyx_n_u_GL_CCW __pyx_string_tab[52]
#define __pyx_n_u_GL_CLAMP_TO_EDGE __pyx_string_tab[53]
#define __pyx_n_u_GL_COLOR_ATTACHMENT0 __pyx_string_tab[54]
#define __pyx_n_u_GL_COLOR_BUFFER_BIT __pyx_string_tab[55]
#define __pyx_n_u_GL_COLOR_CLEAR_VALUE __pyx_string_tab[56]
#define __pyx_n_u_GL_COLOR_WRITEMASK __pyx_string_tab[57]
#define __pyx_n_u_GL_COMPILE_STATUS __pyx_string_tab[58]
#define __pyx_n_u_GL_COMPRESSED_TEXTURE_FORMATS __pyx_string_tab[59]
#define __pyx_n_u_GL_CULL_FACE __pyx_string_tab[60]
#define __pyx_n_u_GL_CULL_FACE_MODE __pyx_string_tab[61]
#define __pyx_n_u_GL_CURRENT_PROGRAM __pyx_string_tab[62]
#define __pyx_n_u_GL_CURRENT_VERTEX_ATTRIB __pyx_string_tab[63]
#define __pyx_n_u_GL_CW __pyx_string_tab[64]
#define __pyx_n_u_GL_DECR __pyx_string_tab[65]
#define __pyx_n_u_GL_DECR_WRAP __pyx_string_tab[66]
#define __pyx_n_u_GL_DELETE_STATUS __pyx_string_tab[67]
#define __pyx_n_u_GL_DEPTH_ATTACHMENT __pyx_string_tab[68]
#define __pyx_n_u_GL_DEPTH_BITS __pyx_string_tab[69]
#define __pyx_n_u_GL_DEPTH_BUFFER_BIT __pyx_string_tab[70]
#define __pyx_n_u_GL_DEPTH_CLEAR_VALUE __pyx_string_tab[71]
#define __pyx_n_u_GL_DEPTH_COMPONENT __pyx_string_tab[72]
#define __pyx_n_u_GL_DEPTH_COMPONENT16 __pyx_string_tab[73]
#define __pyx_n_u_GL_DEPTH_FUNC __pyx_string_tab[74]
#define __pyx_n_u_GL_DEPTH_RANGE __pyx_string_tab[75]
#define __pyx_n_u_GL_DEPTH_TEST __pyx_string_tab[76]
#define __pyx_n_u_GL_DEPTH_WRITEMASK __pyx_string_tab[77]
#define __pyx_n_u_GL_DITHER __pyx_string_tab[78]
#define __pyx_n_u_GL_DONT_CARE __pyx_string_tab[79]
#define __pyx_n_u_GL_DST_ALPHA __pyx_string_tab[80]
#define __pyx_n_u_GL_DST_COLOR __pyx_string_tab[81]
#define __pyx_n_u_GL_DYNAMIC_DRAW __pyx_string_tab[82]
#define __pyx_n_u_GL_ELEMENT_ARRAY_BUFFER __pyx_string_tab[83]
#define __pyx_n_u_GL_ELEMENT_ARRAY_BUFFER_BINDING __pyx_string_tab[84]
#define __pyx_n_u_GL_EQUAL __pyx_string_tab[85]
#define __pyx_n_u_GL_EXTENSIONS __pyx_string_tab[86]
#define __pyx_n_u_GL_FALSE __pyx_string_tab[87]
#define __pyx_n_u_GL_FASTEST __pyx_string_tab[88]
#define __pyx_n_u_GL_FLOAT __pyx_string_tab[89]
#define __pyx_n_u_GL_FLOAT_MAT2 __pyx_string_tab[90]
#define __pyx_n_u_GL_FLOAT_MAT3 __pyx_string_tab[91]
#define __pyx_n_u_GL_FLOAT_MAT4 __pyx_string_tab[92]
#define __pyx_n_u_GL_FLOAT_VEC2 __pyx_string_tab[93]
#define __pyx_n_u_GL_FLOAT_VEC3 __pyx_string_tab[94]
#define __pyx_n_u_GL_FLOAT_VEC4 __pyx_string_tab[95]
#define __pyx_n_u_GL_FRAGMENT_SHADER __pyx_string_tab[96]
#define __pyx_n_u_GL_FRAMEBUFFER __pyx_string_tab[97]
#define __pyx_n_u_GL_FRAMEBUFFER_ATTACHMENT_OBJECT __pyx_string_tab[98]
#define __pyx_n_u_GL_FRAMEBUFFER_ATTACHMENT_OBJECT_2 __pyx_string_tab[99]
#define __pyx_n_u_GL_FRAMEBUFFER_ATTACHMENT_TEXTUR __pyx_string_tab[100]
#define __pyx_n_u_GL_FRAMEBUFFER_ATTACHMENT_TEXTUR_2 __pyx_string_tab[101]
#define __pyx_n_u_GL_FRAMEBUFFER_BINDING __pyx_string_tab[102]
#define __pyx_n_u_GL_FRAMEBUFFER_COMPLETE __pyx_string_tab[103]
#define __pyx_n_u_GL_FRAMEBUFFER_INCOMPLETE_ATTACH __pyx_string_tab[104]
#define __pyx_n_u_GL_FRAMEBUFFER_INCOMPLETE_DIMENS __pyx_string_tab[105]
#define __pyx_n_u_GL_FRAMEBUFFER_INCOMPLETE_MISSIN __pyx_string_tab[106]
#define __pyx_n_u_GL_FRAMEBUFFER_UNSUPPORTED __pyx_string_tab[107]
#define __pyx_n_u_GL_FRONT __pyx_string_tab[108]
#define __pyx_n_u_GL_FRONT_AND_BACK __pyx_string_tab[109]
#define __pyx_n_u_GL_FRONT_FACE __pyx_string_tab[110]
#define __pyx_n_u_GL_FUNC_ADD __pyx_string_tab[111]
#define __pyx_n_u_GL_FUNC_REVERSE_SUBTRACT __pyx_string_tab[112]
#define __pyx_n_u_GL_FUNC_SUBTRACT __pyx_string_tab[113]
#define __pyx_n_u_GL_GENERATE_MIPMAP_HINT __pyx_string_tab[114]
#define __pyx_n_u_GL_GEQUAL __pyx_string_tab[115]
#define __pyx_n_u_GL_GET_SIZE __pyx_string_tab[116]
#define __pyx_n_u_GL_GREATER __pyx_string_tab[117]
#define __pyx_n_u_GL_GREEN_BITS __pyx_string_tab[118]
#define __pyx_n_u_GL_INCR __pyx_string_tab[119]
#define __pyx_n_u_GL_INCR_WRAP __pyx_string_tab[120]
#define __pyx_n_u_GL_INFO_LOG_LENGTH __pyx_string_tab[121]
#define __pyx_n_u_GL_INT __pyx_string_tab[122]
#define __pyx_n_u_GL_INT_VEC2 __pyx_string_tab[123]
#define __pyx_n_u_GL_INT_VEC3 __pyx_string_tab[124]
#define __pyx_n_u_GL_INT_VEC4 __pyx_string_tab[125]
#define __pyx_n_u_GL_INVALID_ENUM __pyx_string_tab[126]
#define __pyx_n_u_GL_INVALID_FRAMEBUFFER_OPERATION __pyx_string_tab[127]
#define __pyx_n_u_GL_INVALID_OPERATION __pyx_string_tab[128]
#define __pyx_n_u_GL_INVALID_VALUE __pyx_string_tab[129]
#define __pyx_n_u_GL_INVERT __pyx_string_tab[130]
#define __pyx_n_u_GL_KEEP __pyx_string_tab[131]
#define __pyx_n_u_GL_LEQUAL __pyx_string_tab[132]
#define __pyx_n_u_GL_LESS __pyx_string_tab[133]
#define __pyx_n_u_GL_LINEAR __pyx_string_tab[134]
#define __pyx_n_u_GL_LINEAR_MIPMAP_LINEAR __pyx_string_tab[135]
#define __pyx_n_u_GL_LINEAR_MIPMAP_NEAREST __pyx_string_tab[136]
#define __pyx_n_u_GL_LINES __pyx_string_tab[137]
#define __pyx_n_u_GL_LINE_LOOP __pyx_string_tab[138]
#define __pyx_n_u_GL_LINE_STRIP __pyx_string_tab[139]
#define __pyx_n_u_GL_LINE_WIDTH __pyx_string_tab[140]
#define __pyx_n_u_GL_LINK_STATUS __pyx_string_tab[141]
#define __pyx_n_u_GL_LUMINANCE __pyx_string_tab[142]
#define __pyx_n_u_GL_LUMINANCE_ALPHA __pyx_string_tab[143]
#define __pyx_n_u_GL_MAX_COMBINED_TEXTURE_IMAGE_UN __pyx_string_tab[144]
#define __pyx_n_u_GL_MAX_CUBE_MAP_TEXTURE_SIZE __pyx_string_tab[145]
#define __pyx_n_u_GL_MAX_RENDERBUFFER_SIZE __pyx_string_tab[146]
#define __pyx_n_u_GL_MAX_TEXTURE_IMAGE_UNITS __pyx_string_tab[147]
#define __pyx_n_u_GL_MAX_TEXTURE_SIZE __pyx_string_tab[148]
#define __pyx_n_u_GL_MAX_VERTEX_ATTRIBS __pyx_string_tab[149]
#define __pyx_n_u_GL_MAX_VERTEX_TEXTURE_IMAGE_UNIT __pyx_string_tab[150]
#define __pyx_n_u_GL_MAX_VIEWPORT_DIMS __pyx_string_tab[151]
#define __pyx_n_u_GL_MIRRORED_REPEAT __pyx_string_tab[152]
#define __pyx_n_u_GL_NEAREST __pyx_string_tab[153]
#define __pyx_n_u_GL_NEAREST_MIPMAP_LINEAR __pyx_string_tab[154]
#define __pyx_n_u_GL_NEAREST_MIPMAP_NEAREST __pyx_string_tab[155]
#define __pyx_n_u_GL_NEVER __pyx_string_tab[156]
#define __pyx_n_u_GL_NICEST __pyx_string_tab[157]
#define __pyx_n_u_GL_NONE __pyx_string_tab[158]
#define __pyx_n_u_GL_NOTEQUAL __pyx_string_tab[159]
#define __pyx_n_u_GL_NO_ERROR __pyx_string_tab[160]
#define __pyx_n_u_GL_NUM_COMPRESSED_TEXTURE_FORMAT __pyx_string_tab[161]
#define __pyx_n_u_GL_ONE __pyx_string_tab[162]
#define __pyx_n_u_GL_ONE_MINUS_DST_ALPHA __pyx_string_tab[163]
#define __pyx_n_u_GL_ONE_MINUS_DST_COLOR __pyx_string_tab[164]
#define __pyx_n_u_GL_ONE_MINUS_SRC_ALPHA __pyx_string_tab[165]
#define __pyx_n_u_GL_ONE_MINUS_SRC_COLOR __pyx_string_tab[166]
#define __pyx_n_u_GL_OUT_OF_MEMORY __pyx_string_tab[167]
#define __pyx_n_u_GL_PACK_ALIGNMENT __pyx_string_tab[168]
#define __pyx_n_u_GL_POINTS __pyx_string_tab[169]
#define __pyx_n_u_GL_POLYGON_OFFSET_FACTOR __pyx_string_tab[170]
#define __pyx_n_u_GL_POLYGON_OFFSET_FILL __pyx_string_tab[171]
#define __pyx_n_u_GL_POLYGON_OFFSET_UNITS __pyx_string_tab[172]
#define __pyx_n_u_GL_RED_BITS __pyx_string_tab[173]
#define __pyx_n_u_GL_RENDERBUFFER __pyx_string_tab[174]
#define __pyx_n_u_GL_RENDERBUFFER_ALPHA_SIZE __pyx_string_tab[175]
#define __pyx_n_u_GL_RENDERBUFFER_BINDING __pyx_string_tab[176]
#define __pyx_n_u_GL_RENDERBUFFER_BLUE_SIZE __pyx_string_tab[177]
#define __pyx_n_u_GL_RENDERBUFFER_DEPTH_SIZE __pyx_string_tab[178]
#define __pyx_n_u_GL_RENDERBUFFER_GREEN_SIZE __pyx_string_tab[179]
#define __pyx_n_u_GL_RENDERBUFFER_HEIGHT __pyx_string_tab[180]
#define __pyx_n_u_GL_RENDERBUFFER_INTERNAL_FORMAT __pyx_string_tab[181]
#define __pyx_n_u_GL_RENDERBUFFER_RED_SIZE __pyx_string_tab[182]
#define __pyx_n_u_GL_RENDERBUFFER_STENCIL_SIZE __pyx_string_tab[183]
#define __pyx_n_u_GL_RENDERBUFFER_WIDTH __pyx_string_tab[184]
#define __pyx_n_u_GL_RENDERER __pyx_string_tab[185]
#define __pyx_n_u_GL_REPEAT __pyx_string_tab[186]
#define __pyx_n_u_GL_REPLACE __pyx_string_tab[187]
#define __pyx_n_u_GL_RGB __pyx_string_tab[188]
#define __pyx_n_u_GL_RGB565 __pyx_string_tab[189]
#define __pyx_n_u_GL_RGB5_A1 __pyx_string_tab[190]
#define __pyx_n_u_GL_RGBA __pyx_string_tab[191]
#define __pyx_n_u_GL_RGBA4 __pyx_string_tab[192]
#define __pyx_n_u_GL_SAMPLER_2D __pyx_string_tab[193]
#define __pyx_n_u_GL_SAMPLER_CUBE __pyx_string_tab[194]
#define __pyx_n_u_GL_SAMPLES __pyx_string_tab[195]
#define __pyx_n_u_GL_SAMPLE_ALPHA_TO_COVERAGE __pyx_string_tab[196]
#define __pyx_n_u_GL_SAMPLE_BUFFERS __pyx_string_tab[197]
#define __pyx_n_u_GL_SAMPLE_COVERAGE __pyx_string_tab[198]
#define __pyx_n_u_GL_SAMPLE_COVERAGE_INVERT __pyx_string_tab[199]
#define __pyx_n_u_GL_SAMPLE_COVERAGE_VALUE __pyx_string_tab[200]
#define __pyx_n_u_GL_SCISSOR_BOX __pyx_string_tab[201]
#define __pyx_n_u_GL_SCISSOR_TEST __pyx_string_tab[202]
#define __pyx_n_u_GL_SHADER_BINARY_FORMATS __pyx_string_tab[203]
#define __pyx_n_u_GL_SHADER_SOURCE_LENGTH __pyx_string_tab[204]
#define __pyx_n_u_GL_SHADER_TYPE __pyx_string_tab[205]
#define __pyx_n_u_GL_SHADING_LANGUAGE_VERSION __pyx_string_tab[206]
#define __pyx_n_u_GL_SHORT __pyx_string_tab[207]
#define __pyx_n_u_GL_SRC_ALPHA __pyx_string_tab[208]
#define __pyx_n_u_GL_SRC_ALPHA_SATURATE __pyx_string_tab[209]
#define __pyx_n_u_GL_SRC_COLOR __pyx_string_tab[210]
#define __pyx_n_u_GL_STATIC_DRAW __pyx_string_tab[211]
#define __pyx_n_u_GL_STENCIL_ATTACHMENT __pyx_string_tab[212]
#define __pyx_n_u_GL_STENCIL_BACK_FAIL __pyx_string_tab[213]
#define __pyx_n_u_GL_STENCIL_BACK_FUNC __pyx_string_tab[214]
#define __pyx_n_u_GL_STENCIL_BACK_PASS_DEPTH_FAIL __pyx_string_tab[215]
#define __pyx_n_u_GL_STENCIL_BACK_PASS_DEPTH_PASS __pyx_string_tab[216]
#define __pyx_n_u_GL_STENCIL_BACK_REF __pyx_string_tab[217]
#define __pyx_n_u_GL_STENCIL_BACK_VALUE_MASK __pyx_string_tab[218]
#define __pyx_n_u_GL_STENCIL_BACK_WRITEMASK __pyx_string_tab[219]
#define __pyx_n_u_GL_STENCIL_BITS __pyx_string_tab[220]
#define __pyx_n_u_GL_STENCIL_BUFFER_BIT __pyx_string_tab[221]
#define __pyx_n_u_GL_STENCIL_CLEAR_VALUE __pyx_string_tab[222]
#define __pyx_n_u_GL_STENCIL_FAIL __pyx_string_tab[223]
#define __pyx_n_u_GL_STENCIL_FUNC __pyx_string_tab[224]
#define __pyx_n_u_GL_STENCIL_INDEX8 __pyx_string_tab[225]
#define __pyx_n_u_GL_STENCIL_PASS_DEPTH_FAIL __pyx_string_tab[226]
#define __pyx_n_u_GL_STENCIL_PASS_DEPTH_PASS __pyx_string_tab[227]
#define __pyx_n_u_GL_STENCIL_REF __pyx_string_tab[228]
#define __pyx_n_u_GL_STENCIL_TEST __pyx_string_tab[229]
#define __pyx_n_u_GL_STENCIL_VALUE_MASK __pyx_string_tab[230]
#define __pyx_n_u_GL_STENCIL_WRITEMASK __pyx_string_tab[231]
#define __pyx_n_u_GL_STREAM_DRAW __pyx_string_tab[232]
#define __pyx_n_u_GL_SUBPIXEL_BITS __pyx_string_tab[233]
#define __pyx_n_u_GL_TEXTURE __pyx_string_tab[234]
#define __pyx_n_u_GL_TEXTURE0 __pyx_string_tab[235]
#define __pyx_n_u_GL_TEXTURE1 __pyx_string_tab[236]
#define __pyx_n_u_GL_TEXTURE10 __pyx_string_tab[237]
#define __pyx_n_u_GL_TEXTURE11 __pyx_string_tab[238]
#define __pyx_n_u_GL_TEXTURE12 __pyx_string_tab[239]
#define __pyx_n_u_GL_TEXTURE13 __pyx_string_tab[240]
#define __pyx_n_u_GL_TEXTURE14 __pyx_string_tab[241]
#define __pyx_n_u_GL_TEXTURE15 __pyx_string_tab[242]
#define __pyx_n_u_GL_TEXTURE16 __pyx_string_tab[243]
#define __pyx_n_u_GL_TEXTURE17 __pyx_string_tab[244]
#define __pyx_n_u_GL_TEXTURE18 __pyx_string_tab[245]
#define __pyx_n_u_GL_TEXTURE19 __pyx_string_tab[246]
#define __pyx_n_u_GL_TEXTURE2 __pyx_string_tab[247]
#define __pyx_n_u_GL_TEXTURE20 __pyx_string_tab[248]
#define __pyx_n_u_GL_TEXTURE21 __pyx_string_tab[249]
#define __pyx_n_u_GL_TEXTURE22 __pyx_string_tab[250]
#define __pyx_n_u_GL_TEXTURE23 __pyx_string_tab[251]
#define __pyx_n_u_GL_TEXTURE24 __pyx_string_tab[252]
#define __pyx_n_u_GL_TEXTURE25 __pyx_string_tab[253]
#define __pyx_n_u_GL_TEXTURE26 __pyx_string_tab[254]
#define __pyx_n_u_GL_TEXTURE27 __pyx_string_tab[255]
#define __pyx_n_u_GL_TEXTURE28 __pyx_string_tab[256]
#define __pyx_n_u_GL_TEXTURE29 __pyx_string_tab[257]
#define __pyx_n_u_GL_TEXTURE3 __pyx_string_tab[258]
#define __pyx_n_u_GL_TEXTURE30 __pyx_string_tab[259]
#define __pyx_n_u_GL_TEXTURE31 __pyx_string_tab[260]
#define __pyx_n_u_GL_TEXTURE4 __pyx_string_tab[261]
#define __pyx_n_u_GL_TEXTURE5 __pyx_string_tab[262]
#define __pyx_n_u_GL_TEXTURE6 __pyx_string_tab[263]
#define __pyx_n_u_GL_TEXTURE7 __pyx_string_tab[264]
#define __pyx_n_u_GL_TEXTURE8 __pyx_string_tab[265]
#define __pyx_n_u_GL_TEXTURE9 __pyx_string_tab[266]
#define __pyx_n_u_GL_TEXTURE_2D __pyx_string_tab[267]
#define __pyx_n_u_GL_TEXTURE_BINDING_2D __pyx_string_tab[268]
#define __pyx_n_u_GL_TEXTURE_BINDING_CUBE_MAP __pyx_string_tab[269]
#define __pyx_n_u_GL_TEXTURE_CUBE_MAP __pyx_string_tab[270]
#define __pyx_n_u_GL_TEXTURE_CUBE_MAP_NEGATIVE_X __pyx_string_tab[271]
#define __pyx_n_u_GL_TEXTURE_CUBE_MAP_NEGATIVE_Y __pyx_string_tab[272]
#define __pyx_n_u_GL_TEXTURE_CUBE_MAP_NEGATIVE_Z __pyx_string_tab[273]
#define __pyx_n_u_GL_TEXTURE_CUBE_MAP_POSITIVE_X __pyx_string_tab[274]
#define __pyx_n_u_GL_TEXTURE_CUBE_MAP_POSITIVE_Y __pyx_string_tab[275]
#define __pyx_n_u_GL_TEXTURE_CUBE_MAP_POSITIVE_Z __pyx_string_tab[276]
#define __pyx_n_u_GL_TEXTURE_MAG_FILTER __pyx_string_tab[277]
#define __pyx_n_u_GL_TEXTURE_MIN_FILTER __pyx_string_tab[278]
#define __pyx_n_u_GL_TEXTURE_WRAP_S __pyx_string_tab[279]
#define __pyx_n_u_GL_TEXTURE_WRAP_T __pyx_string_tab[280]
#define __pyx_n_u_GL_TRIANGLES __pyx_string_tab[281]
#define __pyx_n_u_GL_TRIANGLE_FAN __pyx_string_tab[282]
#define __pyx_n_u_GL_TRIANGLE_STRIP __pyx_string_tab[283]
#define __pyx_n_u_GL_TRUE __pyx_string_tab[284]
#define __pyx_n_u_GL_UNPACK_ALIGNMENT __pyx_string_tab[285]
#define __pyx_n_u_GL_UNSIGNED_BYTE __pyx_string_tab[286]
#define __pyx_n_u_GL_UNSIGNED_INT __pyx_string_tab[287]
#define __pyx_n_u_GL_UNSIGNED_SHORT __pyx_string_tab[288]
#define __pyx_n_u_GL_UNSIGNED_SHORT_4_4_4_4 __pyx_string_tab[289]
#define __pyx_n_u_GL_UNSIGNED_SHORT_5_5_5_1 __pyx_string_tab[290]
#define __pyx_n_u_GL_UNSIGNED_SHORT_5_6_5 __pyx_string_tab[291]
#define __pyx_n_u_GL_VALIDATE_STATUS __pyx_string_tab[292]
#define __pyx_n_u_GL_VENDOR __pyx_string_tab[293]
#define __pyx_n_u_GL_VERSION __pyx_string_tab[294]
#define __pyx_n_u_GL_VERTEX_ATTRIB_ARRAY_BUFFER_BI __pyx_string_tab[295]
#define __pyx_n_u_GL_VERTEX_ATTRIB_ARRAY_ENABLED __pyx_string_tab[296]
#define __pyx_n_u_GL_VERTEX_ATTRIB_ARRAY_NORMALIZE __pyx_string_tab[297]
#define __pyx_n_u_GL_VERTEX_ATTRIB_ARRAY_POINTER __pyx_string_tab[298]
#define __pyx_n_u_GL_VERTEX_ATTRIB_ARRAY_SIZE __pyx_string_tab[299]
#define __pyx_n_u_GL_VERTEX_ATTRIB_ARRAY_STRIDE __pyx_string_tab[300]
#define __pyx_n_u_GL_VERTEX_ATTRIB_ARRAY_TYPE __pyx_string_tab[301]
#define __pyx_n_u_GL_VERTEX_SHADER __pyx_string_tab[302]
#define __pyx_n_u_GL_VIEWPORT __pyx_string_tab[303]
#define __pyx_n_u_GL_ZERO __pyx_string_tab[304]
#define __pyx_n_u_Logger __pyx_string_tab[305]
#define __pyx_n_u_Pyx_PyDict_NextRef __pyx_string_tab[306]
#define __pyx_n_u_allowed __pyx_string_tab[307]
#define __pyx_n_u_alpha __pyx_string_tab[308]
#define __pyx_n_u_asyncio_coroutines __pyx_string_tab[309]
#define __pyx_n_u_attachment __pyx_string_tab[310]
#define __pyx_n_u_blue __pyx_string_tab[311]
#define __pyx_n_u_border __pyx_string_tab[312]
#define __pyx_n_u_buffer __pyx_string_tab[313]
#define __pyx_n_u_buffers __pyx_string_tab[314]
#define __pyx_n_u_bufsize __pyx_string_tab[315]
#define __pyx_n_u_c_source __pyx_string_tab[316]
#define __pyx_n_u_cap __pyx_string_tab[317]
#define __pyx_n_u_cline_in_traceback __pyx_string_tab[318]
#define __pyx_n_u_count __pyx_string_tab[319]
#define __pyx_n_u_d __pyx_string_tab[320]
#define __pyx_n_u_data __pyx_string_tab[321]
#define __pyx_n_u_dfactor __pyx_string_tab[322]
#define __pyx_n_u_dstAlpha __pyx_string_tab[323]
#define __pyx_n_u_dstRGB __pyx_string_tab[324]
#define __pyx_n_u_face __pyx_string_tab[325]
#define __pyx_n_u_factor __pyx_string_tab[326]
#define __pyx_n_u_fail __pyx_string_tab[327]
#define __pyx_n_u_first __pyx_string_tab[328]
#define __pyx_n_u_flag __pyx_string_tab[329]
#define __pyx_n_u_format __pyx_string_tab[330]
#define __pyx_n_u_framebuffer __pyx_string_tab[331]
#define __pyx_n_u_framebuffers __pyx_string_tab[332]
#define __pyx_n_u_func __pyx_string_tab[333]
#define __pyx_n_u_func_2 __pyx_string_tab[334]
#define __pyx_n_u_glActiveTexture __pyx_string_tab[335]
#define __pyx_n_u_glAttachShader __pyx_string_tab[336]
#define __pyx_n_u_glBindAttribLocation __pyx_string_tab[337]
#define __pyx_n_u_glBindBuffer __pyx_string_tab[338]
#define __pyx_n_u_glBindFramebuffer __pyx_string_tab[339]
#define __pyx_n_u_glBindRenderbuffer __pyx_string_tab[340]
#define __pyx_n_u_glBindTexture __pyx_string_tab[341]
#define __pyx_n_u_glBlendColor __pyx_string_tab[342]
#define __pyx_n_u_glBlendEquation __pyx_string_tab[343]
#define __pyx_n_u_glBlendEquationSeparate __pyx_string_tab[344]
#define __pyx_n_u_glBlendFunc __pyx_string_tab[345]
#define __pyx_n_u_glBlendFuncSeparate __pyx_string_tab[346]
#define __pyx_n_u_glBufferData __pyx_string_tab[347]
#define __pyx_n_u_glBufferSubData __pyx_string_tab[348]
#define __pyx_n_u_glCheckFramebufferStatus __pyx_string_tab[349]
#define __pyx_n_u_glClear __pyx_string_tab[350]
#define __pyx_n_u_glClearColor __pyx_string_tab[351]
#define __pyx_n_u_glClearStencil __pyx_string_tab[352]
#define __pyx_n_u_glColorMask __pyx_string_tab[353]
#define __pyx_n_u_glCompileShader __pyx_string_tab[354]
#define __pyx_n_u_glCompressedTexImage2D __pyx_string_tab[355]
#define __pyx_n_u_glCompressedTexSubImage2D __pyx_string_tab[356]
#define __pyx_n_u_glCopyTexImage2D __pyx_string_tab[357]
#define __pyx_n_u_glCopyTexSubImage2D __pyx_string_tab[358]
#define __pyx_n_u_glCreateProgram __pyx_string_tab[359]
#define __pyx_n_u_glCreateShader __pyx_string_tab[360]
#define __pyx_n_u_glCullFace __pyx_string_tab[361]
#define __pyx_n_u_glDeleteBuffers __pyx_string_tab[362]
#define __pyx_n_u_glDeleteFramebuffers __pyx_string_tab[363]
#define __pyx_n_u_glDeleteProgram __pyx_string_tab[364]
#define __pyx_n_u_glDeleteRenderbuffers __pyx_string_tab[365]
#define __pyx_n_u_glDeleteShader __pyx_string_tab[366]
#define __pyx_n_u_glDeleteTextures __pyx_string_tab[367]
#define __pyx_n_u_glDepthFunc __pyx_string_tab[368]
#define __pyx_n_u_glDepthMask __pyx_string_tab[369]
#define __pyx_n_u_glDetachShader __pyx_string_tab[370]
#define __pyx_n_u_glDisable __pyx_string_tab[371]
#define __pyx_n_u_glDisableVertexAttribArray __pyx_string_tab[372]
#define __pyx_n_u_glDrawArrays __pyx_string_tab[373]
#define __pyx_n_u_glDrawElements __pyx_string_tab[374]
#define __pyx_n_u_glEnable __pyx_string_tab[375]
#define __pyx_n_u_glEnableVertexAttribArray __pyx_string_tab[376]
#define __pyx_n_u_glFinish __pyx_string_tab[377]
#define __pyx_n_u_glFlush __pyx_string_tab[378]
#define __pyx_n_u_glFramebufferRenderbuffer __pyx_string_tab[379]
#define __pyx_n_u_glFramebufferTexture2D __pyx_string_tab[380]
#define __pyx_n_u_glFrontFace __pyx_string_tab[381]
#define __pyx_n_u_glGenBuffers __pyx_string_tab[382]
#define __pyx_n_u_glGenFramebuffers __pyx_string_tab[383]
#define __pyx_n_u_glGenRenderbuffers __pyx_string_tab[384]
#define __pyx_n_u_glGenTextures __pyx_string_tab[385]
#define __pyx_n_u_glGenerateMipmap __pyx_string_tab[386]
#define __pyx_n_u_glGetActiveAttrib_2 __pyx_string_tab[387]
#define __pyx_n_u_glGetActiveUniform_2 __pyx_string_tab[388]
#define __pyx_n_u_glGetAttachedShaders __pyx_string_tab[389]
#define __pyx_n_u_glGetAttribLocation __pyx_string_tab[390]
#define __pyx_n_u_glGetBooleanv_2 __pyx_string_tab[391]
#define __pyx_n_u_glGetBufferParameteriv_2 __pyx_string_tab[392]
#define __pyx_n_u_glGetError __pyx_string_tab[393]
#define __pyx_n_u_glGetFloatv_2 __pyx_string_tab[394]
#define __pyx_n_u_glGetFramebufferAttachmentParame_2 __pyx_string_tab[395]
#define __pyx_n_u_glGetIntegerv_2 __pyx_string_tab[396]
#define __pyx_n_u_glGetProgramInfoLog_2 __pyx_string_tab[397]
#define __pyx_n_u_glGetProgramiv __pyx_string_tab[398]
#define __pyx_n_u_glGetRenderbufferParameteriv __pyx_string_tab[399]
#define __pyx_n_u_glGetShaderInfoLog_2 __pyx_string_tab[400]
#define __pyx_n_u_glGetShaderPrecisionFormat __pyx_string_tab[401]
#define __pyx_n_u_glGetShaderSource __pyx_string_tab[402]
#define __pyx_n_u_glGetShaderiv __pyx_string_tab[403]
#define __pyx_n_u_glGetString __pyx_string_tab[404]
#define __pyx_n_u_glGetTexParameterfv __pyx_string_tab[405]
#define __pyx_n_u_glGetTexParameteriv __pyx_string_tab[406]
#define __pyx_n_u_glGetUniformLocation __pyx_string_tab[407]
#define __pyx_n_u_glGetUniformfv __pyx_string_tab[408]
#define __pyx_n_u_glGetUniformiv __pyx_string_tab[409]
#define __pyx_n_u_glGetVertexAttribPointerv __pyx_string_tab[410]
#define __pyx_n_u_glGetVertexAttribfv __pyx_string_tab[411]
#define __pyx_n_u_glGetVertexAttribiv __pyx_string_tab[412]
#define __pyx_n_u_glHint __pyx_string_tab[413]
#define __pyx_n_u_glIsBuffer __pyx_string_tab[414]
#define __pyx_n_u_glIsEnabled __pyx_string_tab[415]
#define __pyx_n_u_glIsFramebuffer __pyx_string_tab[416]
#define __pyx_n_u_glIsProgram __pyx_string_tab[417]
#define __pyx_n_u_glIsRenderbuffer __pyx_string_tab[418]
#define __pyx_n_u_glIsShader __pyx_string_tab[419]
#define __pyx_n_u_glIsTexture __pyx_string_tab[420]
#define __pyx_n_u_glLineWidth __pyx_string_tab[421]
#define __pyx_n_u_glLinkProgram __pyx_string_tab[422]
#define __pyx_n_u_glPixelStorei __pyx_string_tab[423]
#define __pyx_n_u_glPolygonOffset __pyx_string_tab[424]
#define __pyx_n_u_glReadPixels_2 __pyx_string_tab[425]
#define __pyx_n_u_glReleaseShaderCompiler __pyx_string_tab[426]
#define __pyx_n_u_glRenderbufferStorage __pyx_string_tab[427]
#define __pyx_n_u_glSampleCoverage __pyx_string_tab[428]
#define __pyx_n_u_glScissor __pyx_string_tab[429]
#define __pyx_n_u_glShaderBinary __pyx_string_tab[430]
#define __pyx_n_u_glShaderSource __pyx_string_tab[431]
#define __pyx_n_u_glStencilFunc __pyx_string_tab[432]
#define __pyx_n_u_glStencilFuncSeparate __pyx_string_tab[433]
#define __pyx_n_u_glStencilMask __pyx_string_tab[434]
#define __pyx_n_u_glStencilMaskSeparate __pyx_string_tab[435]
#define __pyx_n_u_glStencilOp __pyx_string_tab[436]
#define __pyx_n_u_glStencilOpSeparate __pyx_string_tab[437]
#define __pyx_n_u_glTexImage2D __pyx_string_tab[438]
#define __pyx_n_u_glTexParameterf __pyx_string_tab[439]
#define __pyx_n_u_glTexParameterfv __pyx_string_tab[440]
#define __pyx_n_u_glTexParameteri __pyx_string_tab[441]
#define __pyx_n_u_glTexParameteriv __pyx_string_tab[442]
#define __pyx_n_u_glTexSubImage2D __pyx_string_tab[443]
#define __pyx_n_u_glUniform1f __pyx_string_tab[444]
#define __pyx_n_u_glUniform1fv __pyx_string_tab[445]
#define __pyx_n_u_glUniform1i __pyx_string_tab[446]
#define __pyx_n_u_glUniform1iv __pyx_string_tab[447]
#define __pyx_n_u_glUniform2f __pyx_string_tab[448]
#define __pyx_n_u_glUniform2fv __pyx_string_tab[449]
#define __pyx_n_u_glUniform2i __pyx_string_tab[450]
#define __pyx_n_u_glUniform2iv __pyx_string_tab[451]
#define __pyx_n_u_glUniform3f __pyx_string_tab[452]
#define __pyx_n_u_glUniform3fv __pyx_string_tab[453]
#define __pyx_n_u_glUniform3i __pyx_string_tab[454]
#define __pyx_n_u_glUniform3iv __pyx_string_tab[455]
#define __pyx_n_u_glUniform4f __pyx_string_tab[456]
#define __pyx_n_u_glUniform4fv __pyx_string_tab[457]
#define __pyx_n_u_glUniform4i __pyx_string_tab[458]
#define __pyx_n_u_glUniform4iv __pyx_string_tab[459]
#define __pyx_n_u_glUniformMatrix2fv __pyx_string_tab[460]
#define __pyx_n_u_glUniformMatrix3fv __pyx_string_tab[461]
#define __pyx_n_u_glUniformMatrix4fv __pyx_string_tab[462]
#define __pyx_n_u_glUseProgram __pyx_string_tab[463]
#define __pyx_n_u_glValidateProgram __pyx_string_tab[464]
#define __pyx_n_u_glVertexAttrib1f __pyx_string_tab[465]
#define __pyx_n_u_glVertexAttrib1fv __pyx_string_tab[466]
#define __pyx_n_u_glVertexAttrib2f __pyx_string_tab[467]
#define __pyx_n_u_glVertexAttrib2fv __pyx_string_tab[468]
#define __pyx_n_u_glVertexAttrib3f __pyx_string_tab[469]
#define __pyx_n_u_glVertexAttrib3fv __pyx_string_tab[470]
#define __pyx_n_u_glVertexAttrib4f __pyx_string_tab[471]
#define __pyx_n_u_glVertexAttrib4fv __pyx_string_tab[472]
#define __pyx_n_u_glVertexAttribPointer __pyx_string_tab[473]
#define __pyx_n_u_glViewport __pyx_string_tab[474]
#define __pyx_n_u_gl_init_symbols __pyx_string_tab[475]
#define __pyx_n_u_gl_type __pyx_string_tab[476]
#define __pyx_n_u_green __pyx_string_tab[477]
#define __pyx_n_u_height __pyx_string_tab[478]
#define __pyx_n_u_i __pyx_string_tab[479]
#define __pyx_n_u_id __pyx_string_tab[480]
#define __pyx_n_u_ignored __pyx_string_tab[481]
#define __pyx_n_u_imageSize __pyx_string_tab[482]
#define __pyx_n_u_index __pyx_string_tab[483]
#define __pyx_n_u_indices __pyx_string_tab[484]
#define __pyx_n_u_indx __pyx_string_tab[485]
#define __pyx_n_u_infolog __pyx_string_tab[486]
#define __pyx_n_u_internalformat __pyx_string_tab[487]
#define __pyx_n_u_invert __pyx_string_tab[488]
#define __pyx_n_u_is_coroutine __pyx_string_tab[489]
#define __pyx_n_u_items __pyx_string_tab[490]
#define __pyx_n_u_kivy_graphics_opengl __pyx_string_tab[491]
#define __pyx_n_u_kivy_logger __pyx_string_tab[492]
#define __pyx_n_u_level __pyx_string_tab[493]
#define __pyx_n_u_location __pyx_string_tab[494]
#define __pyx_n_u_main __pyx_string_tab[495]
#define __pyx_n_u_mask __pyx_string_tab[496]
#define __pyx_n_u_maxcount __pyx_string_tab[497]
#define __pyx_n_u_mode __pyx_string_tab[498]
#define __pyx_n_u_modeAlpha __pyx_string_tab[499]
#define __pyx_n_u_modeRGB __pyx_string_tab[500]
#define __pyx_n_u_module __pyx_string_tab[501]
#define __pyx_n_u_n __pyx_string_tab[502]
#define __pyx_n_u_name __pyx_string_tab[503]
#define __pyx_n_u_name_2 __pyx_string_tab[504]
#define __pyx_n_u_normalized __pyx_string_tab[505]
#define __pyx_n_u_offset __pyx_string_tab[506]
#define __pyx_n_u_out __pyx_string_tab[507]
#define __pyx_n_u_p_infolog __pyx_string_tab[508]
#define __pyx_n_u_p_name __pyx_string_tab[509]
#define __pyx_n_u_p_source __pyx_string_tab[510]
#define __pyx_n_u_p_string __pyx_string_tab[511]
#define __pyx_n_u_param __pyx_string_tab[512]
#define __pyx_n_u_params __pyx_string_tab[513]
#define __pyx_n_u_pixels __pyx_string_tab[514]
#define __pyx_n_u_pname __pyx_string_tab[515]
#define __pyx_n_u_pop __pyx_string_tab[516]
#define __pyx_n_u_precisiontype __pyx_string_tab[517]
#define __pyx_n_u_program __pyx_string_tab[518]
#define __pyx_n_u_ptr __pyx_string_tab[519]
#define __pyx_n_u_py_pixels __pyx_string_tab[520]
#define __pyx_n_u_qualname __pyx_string_tab[521]
#define __pyx_n_u_red __pyx_string_tab[522]
#define __pyx_n_u_ref __pyx_string_tab[523]
#define __pyx_n_u_renderbuffer __pyx_string_tab[524]
#define __pyx_n_u_renderbuffers __pyx_string_tab[525]
#define __pyx_n_u_renderbuffertarget __pyx_string_tab[526]
#define __pyx_n_u_result __pyx_string_tab[527]
#define __pyx_n_u_s __pyx_string_tab[528]
#define __pyx_n_u_set_name __pyx_string_tab[529]
#define __pyx_n_u_setdefault __pyx_string_tab[530]
#define __pyx_n_u_sfactor __pyx_string_tab[531]
#define __pyx_n_u_shader __pyx_string_tab[532]
#define __pyx_n_u_shaders __pyx_string_tab[533]
#define __pyx_n_u_shadertype __pyx_string_tab[534]
#define __pyx_n_u_size __pyx_string_tab[535]
#define __pyx_n_u_source __pyx_string_tab[536]
#define __pyx_n_u_srcAlpha __pyx_string_tab[537]
#define __pyx_n_u_srcRGB __pyx_string_tab[538]
#define __pyx_n_u_stride __pyx_string_tab[539]
#define __pyx_n_u_target __pyx_string_tab[540]
#define __pyx_n_u_test __pyx_string_tab[541]
#define __pyx_n_u_textarget __pyx_string_tab[542]
#define __pyx_n_u_texture __pyx_string_tab[543]
#define __pyx_n_u_textures __pyx_string_tab[544]
#define __pyx_n_u_transpose __pyx_string_tab[545]
#define __pyx_n_u_type __pyx_string_tab[546]
#define __pyx_n_u_units __pyx_string_tab[547]
#define __pyx_n_u_usage __pyx_string_tab[548]
#define __pyx_n_u_value __pyx_string_tab[549]
#define __pyx_n_u_values __pyx_string_tab[550]
#define __pyx_n_u_w __pyx_string_tab[551]
#define __pyx_n_u_width __pyx_string_tab[552]
#define __pyx_n_u_x __pyx_string_tab[553]
#define __pyx_n_u_xoffset __pyx_string_tab[554]
#define __pyx_n_u_y __pyx_string_tab[555]
#define __pyx_n_u_yoffset __pyx_string_tab[556]
#define __pyx_n_u_z __pyx_string_tab[557]
#define __pyx_n_u_zfail __pyx_string_tab[558]
#define __pyx_n_u_zpass __pyx_string_tab[559]
#define __pyx_kp_b_PyObject_int___pyx_skip_dispatch __pyx_string_tab[560]
#define __pyx_kp_b_iso88591_1 __pyx_string_tab[561]
#define __pyx_kp_b_iso88591_1A __pyx_string_tab[562]
#define __pyx_kp_b_iso88591_1E_a __pyx_string_tab[563]
#define __pyx_kp_b_iso88591_1F __pyx_string_tab[564]
#define __pyx_kp_b_iso88591_1F_q __pyx_string_tab[565]
#define __pyx_kp_b_iso88591_1G7_1_1 __pyx_string_tab[566]
#define __pyx_kp_b_iso88591_1G7_1_1_2 __pyx_string_tab[567]
#define __pyx_kp_b_iso88591_1HG1A_1 __pyx_string_tab[568]
#define __pyx_kp_b_iso88591_1HG1A_1_2 __pyx_string_tab[569]
#define __pyx_kp_b_iso88591_1HG9IS_7 __pyx_string_tab[570]
#define __pyx_kp_b_iso88591_1HHJa __pyx_string_tab[571]
#define __pyx_kp_b_iso88591_1IQ __pyx_string_tab[572]
#define __pyx_kp_b_iso88591_1Ja __pyx_string_tab[573]
#define __pyx_kp_b_iso88591_1Jc __pyx_string_tab[574]
#define __pyx_kp_b_iso88591_1Jc_A __pyx_string_tab[575]
#define __pyx_kp_b_iso88591_1Jc_Cq __pyx_string_tab[576]
#define __pyx_kp_b_iso88591_1Jc_Cq_2 __pyx_string_tab[577]
#define __pyx_kp_b_iso88591_1_2 __pyx_string_tab[578]
#define __pyx_kp_b_iso88591_1_x __pyx_string_tab[579]
#define __pyx_kp_b_iso88591_31_axs_Q __pyx_string_tab[580]
#define __pyx_kp_b_iso88591_3_1IXQ __pyx_string_tab[581]
#define __pyx_kp_b_iso88591_3_9HA __pyx_string_tab[582]
#define __pyx_kp_b_iso88591_3_aq __pyx_string_tab[583]
#define __pyx_kp_b_iso88591_3_q __pyx_string_tab[584]
#define __pyx_kp_b_iso88591_3c __pyx_string_tab[585]
#define __pyx_kp_b_iso88591_3k __pyx_string_tab[586]
#define __pyx_kp_b_iso88591_3k_2 __pyx_string_tab[587]
#define __pyx_kp_b_iso88591_3l_1 __pyx_string_tab[588]
#define __pyx_kp_b_iso88591_6J __pyx_string_tab[589]
#define __pyx_kp_b_iso88591_7_ha_5_1_A_6_7_A_wc_86_uCq_k_Q __pyx_string_tab[590]
#define __pyx_kp_b_iso88591_81 __pyx_string_tab[591]
#define __pyx_kp_b_iso88591_8_3gXQ __pyx_string_tab[592]
#define __pyx_kp_b_iso88591_9AQ_AYgQgQ_7_7 __pyx_string_tab[593]
#define __pyx_kp_b_iso88591_AQ __pyx_string_tab[594]
#define __pyx_kp_b_iso88591_AS __pyx_string_tab[595]
#define __pyx_kp_b_iso88591_AU_q __pyx_string_tab[596]
#define __pyx_kp_b_iso88591_AV7 __pyx_string_tab[597]
#define __pyx_kp_b_iso88591_AXQ __pyx_string_tab[598]
#define __pyx_kp_b_iso88591_AXV86 __pyx_string_tab[599]
#define __pyx_kp_b_iso88591_AXWAQ_1 __pyx_string_tab[600]
#define __pyx_kp_b_iso88591_AXW_4G81 __pyx_string_tab[601]
#define __pyx_kp_b_iso88591_AYgXQ __pyx_string_tab[602]
#define __pyx_kp_b_iso88591_A_1 __pyx_string_tab[603]
#define __pyx_kp_b_iso88591_Jha __pyx_string_tab[604]
#define __pyx_kp_b_iso88591_L_AYa __pyx_string_tab[605]
#define __pyx_kp_b_iso88591_O1A_1 __pyx_string_tab[606]
#define __pyx_kp_b_iso88591_Q_z_1_iy_q_1IQ_i_Q_iq_avWF __pyx_string_tab[607]
#define __pyx_kp_b_iso88591_Q_z_iy_q_1F_i_Q_iq_QgV6_XQ __pyx_string_tab[608]
#define __pyx_kp_b_iso88591_Qa __pyx_string_tab[609]
#define __pyx_kp_b_iso88591_Qc_81 __pyx_string_tab[610]
#define __pyx_kp_b_iso88591_QfA __pyx_string_tab[611]
#define __pyx_kp_b_iso88591_QfE __pyx_string_tab[612]
#define __pyx_kp_b_iso88591_QfF_q __pyx_string_tab[613]
#define __pyx_kp_b_iso88591_QgQ __pyx_string_tab[614]
#define __pyx_kp_b_iso88591_QgR_Rq_wc_k_QgQ_q_as_e6_aq_1 __pyx_string_tab[615]
#define __pyx_kp_b_iso88591_QgRq_wc_k_QgQ_q_as_e6_aq_1 __pyx_string_tab[616]
#define __pyx_kp_b_iso88591_QgRq_wc_k_Qhl_q_as_e6_aq_1 __pyx_string_tab[617]
#define __pyx_kp_b_iso88591_QgRq_wc_k_axwa_q_as_e6_aq_1 __pyx_string_tab[618]
#define __pyx_kp_b_iso88591_Qh_6gQ __pyx_string_tab[619]
#define __pyx_kp_b_iso88591_Qha __pyx_string_tab[620]
#define __pyx_kp_b_iso88591_QhgQa_1 __pyx_string_tab[621]
#define __pyx_kp_b_iso88591_S_1 __pyx_string_tab[622]
#define __pyx_kp_b_iso88591_WK __pyx_string_tab[623]
#define __pyx_kp_b_iso88591_Yaq_3a_7_3a __pyx_string_tab[624]
#define __pyx_kp_b_iso88591_Yaq_AS_7_3a __pyx_string_tab[625]
#define __pyx_kp_b_iso88591_Yaq_Q_7_3a __pyx_string_tab[626]
#define __pyx_kp_b_iso88591_Yaq_Qc_7_3a __pyx_string_tab[627]
#define __pyx_kp_b_iso88591__3 __pyx_string_tab[628]
#define __pyx_kp_b_iso88591__4 __pyx_string_tab[629]
#define __pyx_kp_b_iso88591__5 __pyx_string_tab[630]
#define __pyx_kp_b_iso88591__6 __pyx_string_tab[631]
#define __pyx_kp_b_iso88591__7 __pyx_string_tab[632]
#define __pyx_kp_b_iso88591__8 __pyx_string_tab[633]
#define __pyx_kp_b_iso88591__9 __pyx_string_tab[634]
#define __pyx_kp_b_iso88591_a_V1O2Q_uCq_k_7_vQfAYa_XQ_86 __pyx_string_tab[635]
#define __pyx_kp_b_iso88591_a_V1O2Q_uCq_k_9G5_avQiq_XQ_86 __pyx_string_tab[636]
#define __pyx_kp_b_iso88591_a_ZvQoRq_wc_k_xq_1 __pyx_string_tab[637]
#define __pyx_kp_b_iso88591_a_j_a_b_xs_k_1IV1F_1 __pyx_string_tab[638]
#define __pyx_kp_b_iso88591_a_j_a_b_xs_k_86_1 __pyx_string_tab[639]
#define __pyx_kp_b_iso88591_aq __pyx_string_tab[640]
#define __pyx_kp_b_iso88591_ax_iq __pyx_string_tab[641]
#define __pyx_kp_b_iso88591_axw_a_HKxq __pyx_string_tab[642]
#define __pyx_kp_b_iso88591_ay __pyx_string_tab[643]
#define __pyx_kp_b_iso88591_ay_1_1 __pyx_string_tab[644]
#define __pyx_kp_b_iso88591_ay_1_1_2 __pyx_string_tab[645]
#define __pyx_kp_b_iso88591_ay_q_1 __pyx_string_tab[646]
#define __pyx_kp_b_iso88591_fA_1_wc_k_1G1_q_as_e6_aq_1 __pyx_string_tab[647]
#define __pyx_kp_b_iso88591_q __pyx_string_tab[648]
#define __pyx_kp_b_iso88591_q_2 __pyx_string_tab[649]
#define __pyx_kp_b_iso88591_q_3 __pyx_string_tab[650]
#define __pyx_kp_b_iso88591_q_4 __pyx_string_tab[651]
#define __pyx_kp_b_iso88591_q_XQ __pyx_string_tab[652]
#define __pyx_kp_b_iso88591_q_ha __pyx_string_tab[653]
#define __pyx_kp_b_iso88591_q_q __pyx_string_tab[654]
#define __pyx_kp_b_iso88591_q_y_V_XQ __pyx_string_tab[655]
#define __pyx_kp_b_iso88591_s_2 __pyx_string_tab[656]
#define __pyx_kp_b_iso88591_s_Q __pyx_string_tab[657]
#define __pyx_kp_b_iso88591_s_S __pyx_string_tab[658]
#define __pyx_kp_b_iso88591_waxq __pyx_string_tab[659]
#define __pyx_kp_b_iso88591_xq __pyx_string_tab[660]
#define __pyx_kp_b_iso88591_xq_2 __pyx_string_tab[661]
#define __pyx_kp_b_iso88591_xs_aq_1 __pyx_string_tab[662]
#define __pyx_kp_b_iso88591_y_2 __pyx_string_tab[663]
#define __pyx_kp_b_iso88591_y_3 __pyx_string_tab[664]
#define __pyx_kp_b_iso88591_z_2 __pyx_string_tab[665]
#define __pyx_kp_b_iso88591_z_S_q __pyx_string_tab[666]
#define __pyx_kp_b_pyx_t_4kivy_8graphics_3cgl_GLE __pyx_string_tab[667]
#define __pyx_int_1 __pyx_number_tab[0]
#define __pyx_int_2 __pyx_number_tab[1]
#define __pyx_int_4 __pyx_number_tab[2]
/* #### Code section: module_state_clear ### */
#if CYTHON_USE_MODULE_STATE
static CYTHON_SMALL_CODE int __pyx_m_clear(PyObject *m) {
  __pyx_mstatetype *clear_module_state = __Pyx_PyModule_GetState(m);
  if (!clear_module_state) return 0;
  Py_CLEAR(clear_module_state->__pyx_d);
  Py_CLEAR(clear_module_state->__pyx_b);
  Py_CLEAR(clear_module_state->__pyx_cython_runtime);
  Py_CLEAR(clear_module_state->__pyx_empty_tuple);
  Py_CLEAR(clear_module_state->__pyx_empty_bytes);
  Py_CLEAR(clear_module_state->__pyx_empty_unicode);
  #if CYTHON_PEP489_MULTI_PHASE_INIT
  __Pyx_State_RemoveModule(NULL);
  #endif
  Py_CLEAR(clear_module_state->__pyx_ptype_4kivy_8graphics_6opengl___pyx_defaults);
  Py_CLEAR(clear_module_state->__pyx_type_4kivy_8graphics_6opengl___pyx_defaults);
  for (int i=0; i<141; ++i) { Py_CLEAR(clear_module_state->__pyx_codeobj_tab[i]); }
  for (int i=0; i<668; ++i) { Py_CLEAR(clear_module_state->__pyx_string_tab[i]); }
  for (int i=0; i<3; ++i) { Py_CLEAR(clear_module_state->__pyx_number_tab[i]); }
/* #### Code section: module_state_clear_contents ### */
/* CommonTypesMetaclass.module_state_clear */
Py_CLEAR(clear_module_state->__pyx_CommonTypesMetaclassType);

/* CythonFunctionShared.module_state_clear */
Py_CLEAR(clear_module_state->__pyx_CyFunctionType);

/* #### Code section: module_state_clear_end ### */
return 0;
}
#endif
/* #### Code section: module_state_traverse ### */
#if CYTHON_USE_MODULE_STATE
static CYTHON_SMALL_CODE int __pyx_m_traverse(PyObject *m, visitproc visit, void *arg) {
  __pyx_mstatetype *traverse_module_state = __Pyx_PyModule_GetState(m);
  if (!traverse_module_state) return 0;
  Py_VISIT(traverse_module_state->__pyx_d);
  Py_VISIT(traverse_module_state->__pyx_b);
  Py_VISIT(traverse_module_state->__pyx_cython_runtime);
  __Pyx_VISIT_CONST(traverse_module_state->__pyx_empty_tuple);
  __Pyx_VISIT_CONST(traverse_module_state->__pyx_empty_bytes);
  __Pyx_VISIT_CONST(traverse_module_state->__pyx_empty_unicode);
  Py_VISIT(traverse_module_state->__pyx_ptype_4kivy_8graphics_6opengl___pyx_defaults);
  Py_VISIT(traverse_module_state->__pyx_type_4kivy_8graphics_6opengl___pyx_defaults);
  for (int i=0; i<141; ++i) { __Pyx_VISIT_CONST(traverse_module_state->__pyx_codeobj_tab[i]); }
  for (int i=0; i<668; ++i) { __Pyx_VISIT_CONST(traverse_module_state->__pyx_string_tab[i]); }
  for (int i=0; i<3; ++i) { __Pyx_VISIT_CONST(traverse_module_state->__pyx_number_tab[i]); }
/* #### Code section: module_state_traverse_contents ### */
/* CommonTypesMetaclass.module_state_traverse */
Py_VISIT(traverse_module_state->__pyx_CommonTypesMetaclassType);

/* CythonFunctionShared.module_state_traverse */
Py_VISIT(traverse_module_state->__pyx_CyFunctionType);

/* #### Code section: module_state_traverse_end ### */
return 0;
}
#endif
/* #### Code section: module_code ### */

/* "kivy/graphics/opengl.pyx":28
 * # Utilities
 * 
 * cdef GLuint *_genBegin(int n):             # <<<<<<<<<<<<<<
 *     cdef GLuint *d
 *     d = <GLuint *>malloc(sizeof(GLuint) * n)
*/

static GLuint *__pyx_f_4kivy_8graphics_6opengl__genBegin(int __pyx_v_n) {
  GLuint *__pyx_v_d;
  GLuint *__pyx_r;
  int __pyx_t_1;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;

  /* "kivy/graphics/opengl.pyx":30
 * cdef GLuint *_genBegin(int n):
 *     cdef GLuint *d
 *     d = <GLuint *>malloc(sizeof(GLuint) * n)             # <<<<<<<<<<<<<<
 *     if d == NULL:
 *         raise MemoryError()
*/
  __pyx_v_d = ((GLuint *)malloc(((sizeof(GLuint)) * __pyx_v_n)));

  /* "kivy/graphics/opengl.pyx":31
 *     cdef GLuint *d
 *     d = <GLuint *>malloc(sizeof(GLuint) * n)
 *     if d == NULL:             # <<<<<<<<<<<<<<
 *         raise MemoryError()
 *     return d
*/
  __pyx_t_1 = (__pyx_v_d == NULL);
  if (unlikely(__pyx_t_1)) {

    /* "kivy/graphics/opengl.pyx":32
 *     d = <GLuint *>malloc(sizeof(GLuint) * n)
 *     if d == NULL:
 *         raise MemoryError()             # <<<<<<<<<<<<<<
 *     return d
 * 
*/
    PyErr_NoMemory(); __PYX_ERR(0, 32, __pyx_L1_error)

    /* "kivy/graphics/opengl.pyx":31
 *     cdef GLuint *d
 *     d = <GLuint *>malloc(sizeof(GLuint) * n)
 *     if d == NULL:             # <<<<<<<<<<<<<<
 *         raise MemoryError()
 *     return d
*/
  }

  /* "kivy/graphics/opengl.pyx":33
 *     if d == NULL:
 *         raise MemoryError()
 *     return d             # <<<<<<<<<<<<<<
 * 
 * cdef list _genEnd(int n, GLuint *data):
*/
  __pyx_r = __pyx_v_d;
  goto __pyx_L0;

  /* "kivy/graphics/opengl.pyx":28
 * # Utilities
 * 
 * cdef GLuint *_genBegin(int n):             # <<<<<<<<<<<<<<
 *     cdef GLuint *d
 *     d = <GLuint *>malloc(sizeof(GLuint) * n)
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("kivy.graphics.opengl._genBegin", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  return __pyx_r;
}

/* "kivy/graphics/opengl.pyx":35
 *     return d
 * 
 * cdef list _genEnd(int n, GLuint *data):             # <<<<<<<<<<<<<<
 *     cdef list out = []
 *     for x in xrange(n):
*/

static PyObject *__pyx_f_4kivy_8graphics_6opengl__genEnd(int __pyx_v_n, GLuint *__pyx_v_data) {
  PyObject *__pyx_v_out = 0;
  int __pyx_v_x;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  int __pyx_t_2;
  int __pyx_t_3;
  int __pyx_t_4;
  int __pyx_t_5;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("_genEnd", 0);

  /* "kivy/graphics/opengl.pyx":36
 * 
 * cdef list _genEnd(int n, GLuint *data):
 *     cdef list out = []             # <<<<<<<<<<<<<<
 *     for x in xrange(n):
 *         out.append(data[x])
*/
  __pyx_t_1 = PyList_New(0); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 36, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_v_out = ((PyObject*)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "kivy/graphics/opengl.pyx":37
 * cdef list _genEnd(int n, GLuint *data):
 *     cdef list out = []
 *     for x in xrange(n):             # <<<<<<<<<<<<<<
 *         out.append(data[x])
 *     free(data)
*/
  __pyx_t_2 = __pyx_v_n;
  __pyx_t_3 = __pyx_t_2;
  for (__pyx_t_4 = 0; __pyx_t_4 < __pyx_t_3; __pyx_t_4+=1) {
    __pyx_v_x = __pyx_t_4;

    /* "kivy/graphics/opengl.pyx":38
 *     cdef list out = []
 *     for x in xrange(n):
 *         out.append(data[x])             # <<<<<<<<<<<<<<
 *     free(data)
 *     return out
*/
    __pyx_t_1 = __Pyx_PyLong_From_GLuint((__pyx_v_data[__pyx_v_x])); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 38, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_t_5 = __Pyx_PyList_Append(__pyx_v_out, __pyx_t_1); if (unlikely(__pyx_t_5 == ((int)-1))) __PYX_ERR(0, 38, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  }

  /* "kivy/graphics/opengl.pyx":39
 *     for x in xrange(n):
 *         out.append(data[x])
 *     free(data)             # <<<<<<<<<<<<<<
 *     return out
 * 
*/
  free(__pyx_v_data);

  /* "kivy/graphics/opengl.pyx":40
 *         out.append(data[x])
 *     free(data)
 *     return out             # <<<<<<<<<<<<<<
 * 
 * #GL_ES_VERSION_2_0 = cgldef.GL_ES_VERSION_2_0
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF(__pyx_v_out);
  __pyx_r = __pyx_v_out;
  goto __pyx_L0;

  /* "kivy/graphics/opengl.pyx":35
 *     return d
 * 
 * cdef list _genEnd(int n, GLuint *data):             # <<<<<<<<<<<<<<
 *     cdef list out = []
 *     for x in xrange(n):
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("kivy.graphics.opengl._genEnd", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_out);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "kivy/graphics/opengl.pyx":425
 * 
 * 
 * def glActiveTexture(GLenum texture):             # <<<<<<<<<<<<<<
 *     '''See: `glActiveTexture() on Kronos website
 *     <http://www.khronos.org/opengles/sdk/docs/man/xhtml/glActiveTexture.xml>`_
*/

/* Python wrapper */
static PyObject *__pyx_pw_4kivy_8graphics_6opengl_1glActiveTexture(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_4kivy_8graphics_6opengl_glActiveTexture, "glActiveTexture(GLenum texture)\n\nSee: `glActiveTexture() on Kronos website\n<http://www.khronos.org/opengles/sdk/docs/man/xhtml/glActiveTexture.xml>`_");
static PyMethodDef __pyx_mdef_4kivy_8graphics_6opengl_1glActiveTexture = {"glActiveTexture", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4kivy_8graphics_6opengl_1glActiveTexture, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4kivy_8graphics_6opengl_glActiveTexture};
static PyObject *__pyx_pw_4kivy_8graphics_6opengl_1glActiveTexture(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  GLenum __pyx_v_texture;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[1] = {0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("glActiveTexture (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_texture,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(0, 425, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 425, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "glActiveTexture", 0) < (0)) __PYX_ERR(0, 425, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("glActiveTexture", 1, 1, 1, i); __PYX_ERR(0, 425, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 1)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 425, __pyx_L3_error)
    }
    __pyx_v_texture = __Pyx_PyLong_As_GLenum(values[0]); if (unlikely((__pyx_v_texture == ((GLenum)-1)) && PyErr_Occurred())) __PYX_ERR(0, 425, __pyx_L3_error)
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("glActiveTexture", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 425, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("kivy.graphics.opengl.glActiveTexture", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4kivy_8graphics_6opengl_glActiveTexture(__pyx_self, __pyx_v_texture);

  /* function exit code */
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4kivy_8graphics_6opengl_glActiveTexture(CYTHON_UNUSED PyObject *__pyx_self, GLenum __pyx_v_texture) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("glActiveTexture", 0);

  /* "kivy/graphics/opengl.pyx":429
 *     <http://www.khronos.org/opengles/sdk/docs/man/xhtml/glActiveTexture.xml>`_
 *     '''
 *     cgl.glActiveTexture(texture)             # <<<<<<<<<<<<<<
 * 
 * def glAttachShader(GLuint program, GLuint shader):
*/
  __pyx_v_4kivy_8graphics_3cgl_cgl->glActiveTexture(__pyx_v_texture); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 429, __pyx_L1_error)

  /* "kivy/graphics/opengl.pyx":425
 * 
 * 
 * def glActiveTexture(GLenum texture):             # <<<<<<<<<<<<<<
 *     '''See: `glActiveTexture() on Kronos website
 *     <http://www.khronos.org/opengles/sdk/docs/man/xhtml/glActiveTexture.xml>`_
*/

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

/* "kivy/graphics/opengl.pyx":431
 *     cgl.glActiveTexture(texture)
 * 
 * def glAttachShader(GLuint program, GLuint shader):             # <<<<<<<<<<<<<<
 *     '''See: `glAttachShader() on Kronos website
 *     <http://www.khronos.org/opengles/sdk/docs/man/xhtml/glAttachShader.xml>`_
*/

/* Python wrapper */
static PyObject *__pyx_pw_4kivy_8graphics_6opengl_3glAttachShader(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_4kivy_8graphics_6opengl_2glAttachShader, "glAttachShader(GLuint program, GLuint shader)\n\nSee: `glAttachShader() on Kronos website\n<http://www.khronos.org/opengles/sdk/docs/man/xhtml/glAttachShader.xml>`_");
static PyMethodDef __pyx_mdef_4kivy_8graphics_6opengl_3glAttachShader = {"glAttachShader", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4kivy_8graphics_6opengl_3glAttachShader, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4kivy_8graphics_6opengl_2glAttachShader};
static PyObject *__pyx_pw_4kivy_8graphics_6opengl_3glAttachShader(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  GLuint __pyx_v_program;
  GLuint __pyx_v_shader;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[2] = {0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("glAttachShader (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_program,&__pyx_mstate_global->__pyx_n_u_shader,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(0, 431, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 431, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 431, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "glAttachShader", 0) < (0)) __PYX_ERR(0, 431, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 2; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("glAttachShader", 1, 2, 2, i); __PYX_ERR(0, 431, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 2)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 431, __pyx_L3_error)
      values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 431, __pyx_L3_error)
    }
    __pyx_v_program = __Pyx_PyLong_As_GLuint(values[0]); if (unlikely((__pyx_v_program == ((GLuint)-1)) && PyErr_Occurred())) __PYX_ERR(0, 431, __pyx_L3_error)
    __pyx_v_shader = __Pyx_PyLong_As_GLuint(values[1]); if (unlikely((__pyx_v_shader == ((GLuint)-1)) && PyErr_Occurred())) __PYX_ERR(0, 431, __pyx_L3_error)
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("glAttachShader", 1, 2, 2, __pyx_nargs); __PYX_ERR(0, 431, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("kivy.graphics.opengl.glAttachShader", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4kivy_8graphics_6opengl_2glAttachShader(__pyx_self, __pyx_v_program, __pyx_v_shader);

  /* function exit code */
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4kivy_8graphics_6opengl_2glAttachShader(CYTHON_UNUSED PyObject *__pyx_self, GLuint __pyx_v_program, GLuint __pyx_v_shader) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("glAttachShader", 0);

  /* "kivy/graphics/opengl.pyx":435
 *     <http://www.khronos.org/opengles/sdk/docs/man/xhtml/glAttachShader.xml>`_
 *     '''
 *     cgl.glAttachShader(program, shader)             # <<<<<<<<<<<<<<
 * 
 * def glBindAttribLocation(GLuint program, GLuint index, bytes name):
*/
  __pyx_v_4kivy_8graphics_3cgl_cgl->glAttachShader(__pyx_v_program, __pyx_v_shader); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 435, __pyx_L1_error)

  /* "kivy/graphics/opengl.pyx":431
 *     cgl.glActiveTexture(texture)
 * 
 * def glAttachShader(GLuint program, GLuint shader):             # <<<<<<<<<<<<<<
 *     '''See: `glAttachShader() on Kronos website
 *     <http://www.khronos.org/opengles/sdk/docs/man/xhtml/glAttachShader.xml>`_
*/

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

/* "kivy/graphics/opengl.pyx":437
 *     cgl.glAttachShader(program, shader)
 * 
 * def glBindAttribLocation(GLuint program, GLuint index, bytes name):             # <<<<<<<<<<<<<<
 *     '''See: `glBindAttribLocation() on Kronos website
 *     <http://www.khronos.org/opengles/sdk/docs/man/xhtml/glBindAttribLocation.xml>`_
*/

/* Python wrapper */
static PyObject *__pyx_pw_4kivy_8graphics_6opengl_5glBindAttribLocation(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_4kivy_8graphics_6opengl_4glBindAttribLocation, "glBindAttribLocation(GLuint program, GLuint index, bytes name)\n\nSee: `glBindAttribLocation() on Kronos website\n<http://www.khronos.org/opengles/sdk/docs/man/xhtml/glBindAttribLocation.xml>`_");
static PyMethodDef __pyx_mdef_4kivy_8graphics_6opengl_5glBindAttribLocation = {"glBindAttribLocation", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4kivy_8graphics_6opengl_5glBindAttribLocation, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4kivy_8graphics_6opengl_4glBindAttribLocation};
static PyObject *__pyx_pw_4kivy_8graphics_6opengl_5glBindAttribLocation(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  GLuint __pyx_v_program;
  GLuint __pyx_v_index;
  PyObject *__pyx_v_name = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[3] = {0,0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("glBindAttribLocation (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_program,&__pyx_mstate_global->__pyx_n_u_index,&__pyx_mstate_global->__pyx_n_u_name,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(0, 437, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  3:
        values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(0, 437, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 437, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 437, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "glBindAttribLocation", 0) < (0)) __PYX_ERR(0, 437, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 3; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("glBindAttribLocation", 1, 3, 3, i); __PYX_ERR(0, 437, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 3)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 437, __pyx_L3_error)
      values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 437, __pyx_L3_error)
      values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(0, 437, __pyx_L3_error)
    }
    __pyx_v_program = __Pyx_PyLong_As_GLuint(values[0]); if (unlikely((__pyx_v_program == ((GLuint)-1)) && PyErr_Occurred())) __PYX_ERR(0, 437, __pyx_L3_error)
    __pyx_v_index = __Pyx_PyLong_As_GLuint(values[1]); if (unlikely((__pyx_v_index == ((GLuint)-1)) && PyErr_Occurred())) __PYX_ERR(0, 437, __pyx_L3_error)
    __pyx_v_name = ((PyObject*)values[2]);
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("glBindAttribLocation", 1, 3, 3, __pyx_nargs); __PYX_ERR(0, 437, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("kivy.graphics.opengl.glBindAttribLocation", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_name), (&PyBytes_Type), 1, "name", 1))) __PYX_ERR(0, 437, __pyx_L1_error)
  __pyx_r = __pyx_pf_4kivy_8graphics_6opengl_4glBindAttribLocation(__pyx_self, __pyx_v_program, __pyx_v_index, __pyx_v_name);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  goto __pyx_L7_cleaned_up;
  __pyx_L0:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __pyx_L7_cleaned_up:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4kivy_8graphics_6opengl_4glBindAttribLocation(CYTHON_UNUSED PyObject *__pyx_self, GLuint __pyx_v_program, GLuint __pyx_v_index, PyObject *__pyx_v_name) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  char *__pyx_t_1;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("glBindAttribLocation", 0);

  /* "kivy/graphics/opengl.pyx":441
 *     <http://www.khronos.org/opengles/sdk/docs/man/xhtml/glBindAttribLocation.xml>`_
 *     '''
 *     cgl.glBindAttribLocation(program, index, <char *>name)             # <<<<<<<<<<<<<<
 * 
 * def glBindBuffer(GLenum target, GLuint buffer):
*/
  if (unlikely(__pyx_v_name == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "expected bytes, NoneType found");
    __PYX_ERR(0, 441, __pyx_L1_error)
  }
  __pyx_t_1 = __Pyx_PyBytes_AsWritableString(__pyx_v_name); if (unlikely((!__pyx_t_1) && PyErr_Occurred())) __PYX_ERR(0, 441, __pyx_L1_error)
  __pyx_v_4kivy_8graphics_3cgl_cgl->glBindAttribLocation(__pyx_v_program, __pyx_v_index, ((char *)__pyx_t_1)); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 441, __pyx_L1_error)

  /* "kivy/graphics/opengl.pyx":437
 *     cgl.glAttachShader(program, shader)
 * 
 * def glBindAttribLocation(GLuint program, GLuint index, bytes name):             # <<<<<<<<<<<<<<
 *     '''See: `glBindAttribLocation() on Kronos website
 *     <http://www.khronos.org/opengles/sdk/docs/man/xhtml/glBindAttribLocation.xml>`_
*/

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

/* "kivy/graphics/opengl.pyx":443
 *     cgl.glBindAttribLocation(program, index, <char *>name)
 * 
 * def glBindBuffer(GLenum target, GLuint buffer):             # <<<<<<<<<<<<<<
 *     '''See: `glBindBuffer() on Kronos website
 *     <http://www.khronos.org/opengles/sdk/docs/man/xhtml/glBindBuffer.xml>`_
*/

/* Python wrapper */
static PyObject *__pyx_pw_4kivy_8graphics_6opengl_7glBindBuffer(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_4kivy_8graphics_6opengl_6glBindBuffer, "glBindBuffer(GLenum target, GLuint buffer)\n\nSee: `glBindBuffer() on Kronos website\n<http://www.khronos.org/opengles/sdk/docs/man/xhtml/glBindBuffer.xml>`_");
static PyMethodDef __pyx_mdef_4kivy_8graphics_6opengl_7glBindBuffer = {"glBindBuffer", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4kivy_8graphics_6opengl_7glBindBuffer, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4kivy_8graphics_6opengl_6glBindBuffer};
static PyObject *__pyx_pw_4kivy_8graphics_6opengl_7glBindBuffer(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  GLenum __pyx_v_target;
  GLuint __pyx_v_buffer;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[2] = {0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("glBindBuffer (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_target,&__pyx_mstate_global->__pyx_n_u_buffer,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(0, 443, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 443, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 443, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "glBindBuffer", 0) < (0)) __PYX_ERR(0, 443, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 2; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("glBindBuffer", 1, 2, 2, i); __PYX_ERR(0, 443, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 2)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 443, __pyx_L3_error)
      values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 443, __pyx_L3_error)
    }
    __pyx_v_target = __Pyx_PyLong_As_GLenum(values[0]); if (unlikely((__pyx_v_target == ((GLenum)-1)) && PyErr_Occurred())) __PYX_ERR(0, 443, __pyx_L3_error)
    __pyx_v_buffer = __Pyx_PyLong_As_GLuint(values[1]); if (unlikely((__pyx_v_buffer == ((GLuint)-1)) && PyErr_Occurred())) __PYX_ERR(0, 443, __pyx_L3_error)
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("glBindBuffer", 1, 2, 2, __pyx_nargs); __PYX_ERR(0, 443, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("kivy.graphics.opengl.glBindBuffer", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4kivy_8graphics_6opengl_6glBindBuffer(__pyx_self, __pyx_v_target, __pyx_v_buffer);

  /* function exit code */
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4kivy_8graphics_6opengl_6glBindBuffer(CYTHON_UNUSED PyObject *__pyx_self, GLenum __pyx_v_target, GLuint __pyx_v_buffer) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("glBindBuffer", 0);

  /* "kivy/graphics/opengl.pyx":447
 *     <http://www.khronos.org/opengles/sdk/docs/man/xhtml/glBindBuffer.xml>`_
 *     '''
 *     cgl.glBindBuffer(target, buffer)             # <<<<<<<<<<<<<<
 * 
 * def glBindFramebuffer(GLenum target, GLuint framebuffer):
*/
  __pyx_v_4kivy_8graphics_3cgl_cgl->glBindBuffer(__pyx_v_target, __pyx_v_buffer); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 447, __pyx_L1_error)

  /* "kivy/graphics/opengl.pyx":443
 *     cgl.glBindAttribLocation(program, index, <char *>name)
 * 
 * def glBindBuffer(GLenum target, GLuint buffer):             # <<<<<<<<<<<<<<
 *     '''See: `glBindBuffer() on Kronos website
 *     <http://www.khronos.org/opengles/sdk/docs/man/xhtml/glBindBuffer.xml>`_
*/

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

/* "kivy/graphics/opengl.pyx":449
 *     cgl.glBindBuffer(target, buffer)
 * 
 * def glBindFramebuffer(GLenum target, GLuint framebuffer):             # <<<<<<<<<<<<<<
 *     '''See: `glBindFramebuffer() on Kronos website
 *     <http://www.khronos.org/opengles/sdk/docs/man/xhtml/glBindFramebuffer.xml>`_
*/

/* Python wrapper */
static PyObject *__pyx_pw_4kivy_8graphics_6opengl_9glBindFramebuffer(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_4kivy_8graphics_6opengl_8glBindFramebuffer, "glBindFramebuffer(GLenum target, GLuint framebuffer)\n\nSee: `glBindFramebuffer() on Kronos website\n<http://www.khronos.org/opengles/sdk/docs/man/xhtml/glBindFramebuffer.xml>`_");
static PyMethodDef __pyx_mdef_4kivy_8graphics_6opengl_9glBindFramebuffer = {"glBindFramebuffer", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4kivy_8graphics_6opengl_9glBindFramebuffer, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4kivy_8graphics_6opengl_8glBindFramebuffer};
static PyObject *__pyx_pw_4kivy_8graphics_6opengl_9glBindFramebuffer(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  GLenum __pyx_v_target;
  GLuint __pyx_v_framebuffer;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[2] = {0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("glBindFramebuffer (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_target,&__pyx_mstate_global->__pyx_n_u_framebuffer,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(0, 449, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 449, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 449, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "glBindFramebuffer", 0) < (0)) __PYX_ERR(0, 449, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 2; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("glBindFramebuffer", 1, 2, 2, i); __PYX_ERR(0, 449, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 2)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 449, __pyx_L3_error)
      values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 449, __pyx_L3_error)
    }
    __pyx_v_target = __Pyx_PyLong_As_GLenum(values[0]); if (unlikely((__pyx_v_target == ((GLenum)-1)) && PyErr_Occurred())) __PYX_ERR(0, 449, __pyx_L3_error)
    __pyx_v_framebuffer = __Pyx_PyLong_As_GLuint(values[1]); if (unlikely((__pyx_v_framebuffer == ((GLuint)-1)) && PyErr_Occurred())) __PYX_ERR(0, 449, __pyx_L3_error)
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("glBindFramebuffer", 1, 2, 2, __pyx_nargs); __PYX_ERR(0, 449, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("kivy.graphics.opengl.glBindFramebuffer", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4kivy_8graphics_6opengl_8glBindFramebuffer(__pyx_self, __pyx_v_target, __pyx_v_framebuffer);

  /* function exit code */
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4kivy_8graphics_6opengl_8glBindFramebuffer(CYTHON_UNUSED PyObject *__pyx_self, GLenum __pyx_v_target, GLuint __pyx_v_framebuffer) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("glBindFramebuffer", 0);

  /* "kivy/graphics/opengl.pyx":453
 *     <http://www.khronos.org/opengles/sdk/docs/man/xhtml/glBindFramebuffer.xml>`_
 *     '''
 *     cgl.glBindFramebuffer(target, framebuffer)             # <<<<<<<<<<<<<<
 * 
 * def glBindRenderbuffer(GLenum target, GLuint renderbuffer):
*/
  __pyx_v_4kivy_8graphics_3cgl_cgl->glBindFramebuffer(__pyx_v_target, __pyx_v_framebuffer); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 453, __pyx_L1_error)

  /* "kivy/graphics/opengl.pyx":449
 *     cgl.glBindBuffer(target, buffer)
 * 
 * def glBindFramebuffer(GLenum target, GLuint framebuffer):             # <<<<<<<<<<<<<<
 *     '''See: `glBindFramebuffer() on Kronos website
 *     <http://www.khronos.org/opengles/sdk/docs/man/xhtml/glBindFramebuffer.xml>`_
*/

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

/* "kivy/graphics/opengl.pyx":455
 *     cgl.glBindFramebuffer(target, framebuffer)
 * 
 * def glBindRenderbuffer(GLenum target, GLuint renderbuffer):             # <<<<<<<<<<<<<<
 *     '''See: `glBindRenderbuffer() on Kronos website
 *     <http://www.khronos.org/opengles/sdk/docs/man/xhtml/glBindRenderbuffer.xml>`_
*/

/* Python wrapper */
static PyObject *__pyx_pw_4kivy_8graphics_6opengl_11glBindRenderbuffer(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_4kivy_8graphics_6opengl_10glBindRenderbuffer, "glBindRenderbuffer(GLenum target, GLuint renderbuffer)\n\nSee: `glBindRenderbuffer() on Kronos website\n<http://www.khronos.org/opengles/sdk/docs/man/xhtml/glBindRenderbuffer.xml>`_");
static PyMethodDef __pyx_mdef_4kivy_8graphics_6opengl_11glBindRenderbuffer = {"glBindRenderbuffer", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4kivy_8graphics_6opengl_11glBindRenderbuffer, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4kivy_8graphics_6opengl_10glBindRenderbuffer};
static PyObject *__pyx_pw_4kivy_8graphics_6opengl_11glBindRenderbuffer(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  GLenum __pyx_v_target;
  GLuint __pyx_v_renderbuffer;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[2] = {0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("glBindRenderbuffer (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_target,&__pyx_mstate_global->__pyx_n_u_renderbuffer,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(0, 455, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 455, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 455, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "glBindRenderbuffer", 0) < (0)) __PYX_ERR(0, 455, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 2; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("glBindRenderbuffer", 1, 2, 2, i); __PYX_ERR(0, 455, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 2)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 455, __pyx_L3_error)
      values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 455, __pyx_L3_error)
    }
    __pyx_v_target = __Pyx_PyLong_As_GLenum(values[0]); if (unlikely((__pyx_v_target == ((GLenum)-1)) && PyErr_Occurred())) __PYX_ERR(0, 455, __pyx_L3_error)
    __pyx_v_renderbuffer = __Pyx_PyLong_As_GLuint(values[1]); if (unlikely((__pyx_v_renderbuffer == ((GLuint)-1)) && PyErr_Occurred())) __PYX_ERR(0, 455, __pyx_L3_error)
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("glBindRenderbuffer", 1, 2, 2, __pyx_nargs); __PYX_ERR(0, 455, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("kivy.graphics.opengl.glBindRenderbuffer", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4kivy_8graphics_6opengl_10glBindRenderbuffer(__pyx_self, __pyx_v_target, __pyx_v_renderbuffer);

  /* function exit code */
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4kivy_8graphics_6opengl_10glBindRenderbuffer(CYTHON_UNUSED PyObject *__pyx_self, GLenum __pyx_v_target, GLuint __pyx_v_renderbuffer) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("glBindRenderbuffer", 0);

  /* "kivy/graphics/opengl.pyx":459
 *     <http://www.khronos.org/opengles/sdk/docs/man/xhtml/glBindRenderbuffer.xml>`_
 *     '''
 *     cgl.glBindRenderbuffer(target, renderbuffer)             # <<<<<<<<<<<<<<
 * 
 * def glBindTexture(GLenum target, GLuint texture):
*/
  __pyx_v_4kivy_8graphics_3cgl_cgl->glBindRenderbuffer(__pyx_v_target, __pyx_v_renderbuffer); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 459, __pyx_L1_error)

  /* "kivy/graphics/opengl.pyx":455
 *     cgl.glBindFramebuffer(target, framebuffer)
 * 
 * def glBindRenderbuffer(GLenum target, GLuint renderbuffer):             # <<<<<<<<<<<<<<
 *     '''See: `glBindRenderbuffer() on Kronos website
 *     <http://www.khronos.org/opengles/sdk/docs/man/xhtml/glBindRenderbuffer.xml>`_
*/

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

/* "kivy/graphics/opengl.pyx":461
 *     cgl.glBindRenderbuffer(target, renderbuffer)
 * 
 * def glBindTexture(GLenum target, GLuint texture):             # <<<<<<<<<<<<<<
 *     '''See: `glBindTexture() on Kronos website
 *     <http://www.khronos.org/opengles/sdk/docs/man/xhtml/glBindTexture.xml>`_
*/

/* Python wrapper */
static PyObject *__pyx_pw_4kivy_8graphics_6opengl_13glBindTexture(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_4kivy_8graphics_6opengl_12glBindTexture, "glBindTexture(GLenum target, GLuint texture)\n\nSee: `glBindTexture() on Kronos website\n<http://www.khronos.org/opengles/sdk/docs/man/xhtml/glBindTexture.xml>`_");
static PyMethodDef __pyx_mdef_4kivy_8graphics_6opengl_13glBindTexture = {"glBindTexture", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4kivy_8graphics_6opengl_13glBindTexture, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4kivy_8graphics_6opengl_12glBindTexture};
static PyObject *__pyx_pw_4kivy_8graphics_6opengl_13glBindTexture(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  GLenum __pyx_v_target;
  GLuint __pyx_v_texture;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[2] = {0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("glBindTexture (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_target,&__pyx_mstate_global->__pyx_n_u_texture,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(0, 461, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 461, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 461, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "glBindTexture", 0) < (0)) __PYX_ERR(0, 461, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 2; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("glBindTexture", 1, 2, 2, i); __PYX_ERR(0, 461, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 2)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 461, __pyx_L3_error)
      values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 461, __pyx_L3_error)
    }
    __pyx_v_target = __Pyx_PyLong_As_GLenum(values[0]); if (unlikely((__pyx_v_target == ((GLenum)-1)) && PyErr_Occurred())) __PYX_ERR(0, 461, __pyx_L3_error)
    __pyx_v_texture = __Pyx_PyLong_As_GLuint(values[1]); if (unlikely((__pyx_v_texture == ((GLuint)-1)) && PyErr_Occurred())) __PYX_ERR(0, 461, __pyx_L3_error)
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("glBindTexture", 1, 2, 2, __pyx_nargs); __PYX_ERR(0, 461, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("kivy.graphics.opengl.glBindTexture", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4kivy_8graphics_6opengl_12glBindTexture(__pyx_self, __pyx_v_target, __pyx_v_texture);

  /* function exit code */
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4kivy_8graphics_6opengl_12glBindTexture(CYTHON_UNUSED PyObject *__pyx_self, GLenum __pyx_v_target, GLuint __pyx_v_texture) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("glBindTexture", 0);

  /* "kivy/graphics/opengl.pyx":465
 *     <http://www.khronos.org/opengles/sdk/docs/man/xhtml/glBindTexture.xml>`_
 *     '''
 *     cgl.glBindTexture(target, texture)             # <<<<<<<<<<<<<<
 * 
 * def glBlendColor(GLclampf red, GLclampf green, GLclampf blue, GLclampf alpha):
*/
  __pyx_v_4kivy_8graphics_3cgl_cgl->glBindTexture(__pyx_v_target, __pyx_v_texture); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 465, __pyx_L1_error)

  /* "kivy/graphics/opengl.pyx":461
 *     cgl.glBindRenderbuffer(target, renderbuffer)
 * 
 * def glBindTexture(GLenum target, GLuint texture):             # <<<<<<<<<<<<<<
 *     '''See: `glBindTexture() on Kronos website
 *     <http://www.khronos.org/opengles/sdk/docs/man/xhtml/glBindTexture.xml>`_
*/

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

/* "kivy/graphics/opengl.pyx":467
 *     cgl.glBindTexture(target, texture)
 * 
 * def glBlendColor(GLclampf red, GLclampf green, GLclampf blue, GLclampf alpha):             # <<<<<<<<<<<<<<
 *     '''See: `glBlendColor() on Kronos website
 *     <http://www.khronos.org/opengles/sdk/docs/man/xhtml/glBlendColor.xml>`_
*/

/* Python wrapper */
static PyObject *__pyx_pw_4kivy_8graphics_6opengl_15glBlendColor(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_4kivy_8graphics_6opengl_14glBlendColor, "glBlendColor(GLclampf red, GLclampf green, GLclampf blue, GLclampf alpha)\n\nSee: `glBlendColor() on Kronos website\n<http://www.khronos.org/opengles/sdk/docs/man/xhtml/glBlendColor.xml>`_");
static PyMethodDef __pyx_mdef_4kivy_8graphics_6opengl_15glBlendColor = {"glBlendColor", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4kivy_8graphics_6opengl_15glBlendColor, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4kivy_8graphics_6opengl_14glBlendColor};
static PyObject *__pyx_pw_4kivy_8graphics_6opengl_15glBlendColor(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  GLclampf __pyx_v_red;
  GLclampf __pyx_v_green;
  GLclampf __pyx_v_blue;
  GLclampf __pyx_v_alpha;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[4] = {0,0,0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("glBlendColor (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_red,&__pyx_mstate_global->__pyx_n_u_green,&__pyx_mstate_global->__pyx_n_u_blue,&__pyx_mstate_global->__pyx_n_u_alpha,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(0, 467, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  4:
        values[3] = __Pyx_ArgRef_FASTCALL(__pyx_args, 3);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[3])) __PYX_ERR(0, 467, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  3:
        values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(0, 467, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 467, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 467, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "glBlendColor", 0) < (0)) __PYX_ERR(0, 467, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 4; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("glBlendColor", 1, 4, 4, i); __PYX_ERR(0, 467, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 4)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 467, __pyx_L3_error)
      values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 467, __pyx_L3_error)
      values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(0, 467, __pyx_L3_error)
      values[3] = __Pyx_ArgRef_FASTCALL(__pyx_args, 3);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[3])) __PYX_ERR(0, 467, __pyx_L3_error)
    }
    __pyx_v_red = __Pyx_PyFloat_AsFloat(values[0]); if (unlikely((__pyx_v_red == ((GLclampf)-1)) && PyErr_Occurred())) __PYX_ERR(0, 467, __pyx_L3_error)
    __pyx_v_green = __Pyx_PyFloat_AsFloat(values[1]); if (unlikely((__pyx_v_green == ((GLclampf)-1)) && PyErr_Occurred())) __PYX_ERR(0, 467, __pyx_L3_error)
    __pyx_v_blue = __Pyx_PyFloat_AsFloat(values[2]); if (unlikely((__pyx_v_blue == ((GLclampf)-1)) && PyErr_Occurred())) __PYX_ERR(0, 467, __pyx_L3_error)
    __pyx_v_alpha = __Pyx_PyFloat_AsFloat(values[3]); if (unlikely((__pyx_v_alpha == ((GLclampf)-1)) && PyErr_Occurred())) __PYX_ERR(0, 467, __pyx_L3_error)
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("glBlendColor", 1, 4, 4, __pyx_nargs); __PYX_ERR(0, 467, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("kivy.graphics.opengl.glBlendColor", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4kivy_8graphics_6opengl_14glBlendColor(__pyx_self, __pyx_v_red, __pyx_v_green, __pyx_v_blue, __pyx_v_alpha);

  /* function exit code */
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4kivy_8graphics_6opengl_14glBlendColor(CYTHON_UNUSED PyObject *__pyx_self, GLclampf __pyx_v_red, GLclampf __pyx_v_green, GLclampf __pyx_v_blue, GLclampf __pyx_v_alpha) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("glBlendColor", 0);

  /* "kivy/graphics/opengl.pyx":471
 *     <http://www.khronos.org/opengles/sdk/docs/man/xhtml/glBlendColor.xml>`_
 *     '''
 *     cgl.glBlendColor(red, green, blue, alpha)             # <<<<<<<<<<<<<<
 * 
 * def glBlendEquation(GLenum mode):
*/
  __pyx_v_4kivy_8graphics_3cgl_cgl->glBlendColor(__pyx_v_red, __pyx_v_green, __pyx_v_blue, __pyx_v_alpha); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 471, __pyx_L1_error)

  /* "kivy/graphics/opengl.pyx":467
 *     cgl.glBindTexture(target, texture)
 * 
 * def glBlendColor(GLclampf red, GLclampf green, GLclampf blue, GLclampf alpha):             # <<<<<<<<<<<<<<
 *     '''See: `glBlendColor() on Kronos website
 *     <http://www.khronos.org/opengles/sdk/docs/man/xhtml/glBlendColor.xml>`_
*/

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

/* "kivy/graphics/opengl.pyx":473
 *     cgl.glBlendColor(red, green, blue, alpha)
 * 
 * def glBlendEquation(GLenum mode):             # <<<<<<<<<<<<<<
 *     '''See: `glBlendEquation() on Kronos website
 *     <http://www.khronos.org/opengles/sdk/docs/man/xhtml/glBlendEquation.xml>`_
*/

/* Python wrapper */
static PyObject *__pyx_pw_4kivy_8graphics_6opengl_17glBlendEquation(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_4kivy_8graphics_6opengl_16glBlendEquation, "glBlendEquation(GLenum mode)\n\nSee: `glBlendEquation() on Kronos website\n<http://www.khronos.org/opengles/sdk/docs/man/xhtml/glBlendEquation.xml>`_");
static PyMethodDef __pyx_mdef_4kivy_8graphics_6opengl_17glBlendEquation = {"glBlendEquation", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4kivy_8graphics_6opengl_17glBlendEquation, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4kivy_8graphics_6opengl_16glBlendEquation};
static PyObject *__pyx_pw_4kivy_8graphics_6opengl_17glBlendEquation(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  GLenum __pyx_v_mode;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[1] = {0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("glBlendEquation (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_mode,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(0, 473, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 473, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "glBlendEquation", 0) < (0)) __PYX_ERR(0, 473, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("glBlendEquation", 1, 1, 1, i); __PYX_ERR(0, 473, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 1)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 473, __pyx_L3_error)
    }
    __pyx_v_mode = __Pyx_PyLong_As_GLenum(values[0]); if (unlikely((__pyx_v_mode == ((GLenum)-1)) && PyErr_Occurred())) __PYX_ERR(0, 473, __pyx_L3_error)
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("glBlendEquation", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 473, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("kivy.graphics.opengl.glBlendEquation", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4kivy_8graphics_6opengl_16glBlendEquation(__pyx_self, __pyx_v_mode);

  /* function exit code */
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4kivy_8graphics_6opengl_16glBlendEquation(CYTHON_UNUSED PyObject *__pyx_self, GLenum __pyx_v_mode) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("glBlendEquation", 0);

  /* "kivy/graphics/opengl.pyx":477
 *     <http://www.khronos.org/opengles/sdk/docs/man/xhtml/glBlendEquation.xml>`_
 *     '''
 *     cgl.glBlendEquation(mode)             # <<<<<<<<<<<<<<
 * 
 * def glBlendEquationSeparate(GLenum modeRGB, GLenum modeAlpha):
*/
  __pyx_v_4kivy_8graphics_3cgl_cgl->glBlendEquation(__pyx_v_mode); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 477, __pyx_L1_error)

  /* "kivy/graphics/opengl.pyx":473
 *     cgl.glBlendColor(red, green, blue, alpha)
 * 
 * def glBlendEquation(GLenum mode):             # <<<<<<<<<<<<<<
 *     '''See: `glBlendEquation() on Kronos website
 *     <http://www.khronos.org/opengles/sdk/docs/man/xhtml/glBlendEquation.xml>`_
*/

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

/* "kivy/graphics/opengl.pyx":479
 *     cgl.glBlendEquation(mode)
 * 
 * def glBlendEquationSeparate(GLenum modeRGB, GLenum modeAlpha):             # <<<<<<<<<<<<<<
 *     '''See: `glBlendEquationSeparate() on Kronos website
 *     <http://www.khronos.org/opengles/sdk/docs/man/xhtml/glBlendEquationSeparate.xml>`_
*/

/* Python wrapper */
static PyObject *__pyx_pw_4kivy_8graphics_6opengl_19glBlendEquationSeparate(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_4kivy_8graphics_6opengl_18glBlendEquationSeparate, "glBlendEquationSeparate(GLenum modeRGB, GLenum modeAlpha)\n\nSee: `glBlendEquationSeparate() on Kronos website\n<http://www.khronos.org/opengles/sdk/docs/man/xhtml/glBlendEquationSeparate.xml>`_");
static PyMethodDef __pyx_mdef_4kivy_8graphics_6opengl_19glBlendEquationSeparate = {"glBlendEquationSeparate", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4kivy_8graphics_6opengl_19glBlendEquationSeparate, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4kivy_8graphics_6opengl_18glBlendEquationSeparate};
static PyObject *__pyx_pw_4kivy_8graphics_6opengl_19glBlendEquationSeparate(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  GLenum __pyx_v_modeRGB;
  GLenum __pyx_v_modeAlpha;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[2] = {0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("glBlendEquationSeparate (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_modeRGB,&__pyx_mstate_global->__pyx_n_u_modeAlpha,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(0, 479, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 479, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 479, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "glBlendEquationSeparate", 0) < (0)) __PYX_ERR(0, 479, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 2; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("glBlendEquationSeparate", 1, 2, 2, i); __PYX_ERR(0, 479, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 2)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 479, __pyx_L3_error)
      values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 479, __pyx_L3_error)
    }
    __pyx_v_modeRGB = __Pyx_PyLong_As_GLenum(values[0]); if (unlikely((__pyx_v_modeRGB == ((GLenum)-1)) && PyErr_Occurred())) __PYX_ERR(0, 479, __pyx_L3_error)
    __pyx_v_modeAlpha = __Pyx_PyLong_As_GLenum(values[1]); if (unlikely((__pyx_v_modeAlpha == ((GLenum)-1)) && PyErr_Occurred())) __PYX_ERR(0, 479, __pyx_L3_error)
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("glBlendEquationSeparate", 1, 2, 2, __pyx_nargs); __PYX_ERR(0, 479, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("kivy.graphics.opengl.glBlendEquationSeparate", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4kivy_8graphics_6opengl_18glBlendEquationSeparate(__pyx_self, __pyx_v_modeRGB, __pyx_v_modeAlpha);

  /* function exit code */
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4kivy_8graphics_6opengl_18glBlendEquationSeparate(CYTHON_UNUSED PyObject *__pyx_self, GLenum __pyx_v_modeRGB, GLenum __pyx_v_modeAlpha) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("glBlendEquationSeparate", 0);

  /* "kivy/graphics/opengl.pyx":483
 *     <http://www.khronos.org/opengles/sdk/docs/man/xhtml/glBlendEquationSeparate.xml>`_
 *     '''
 *     cgl.glBlendEquationSeparate(modeRGB, modeAlpha)             # <<<<<<<<<<<<<<
 * 
 * def glBlendFunc(GLenum sfactor, GLenum dfactor):
*/
  __pyx_v_4kivy_8graphics_3cgl_cgl->glBlendEquationSeparate(__pyx_v_modeRGB, __pyx_v_modeAlpha); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 483, __pyx_L1_error)

  /* "kivy/graphics/opengl.pyx":479
 *     cgl.glBlendEquation(mode)
 * 
 * def glBlendEquationSeparate(GLenum modeRGB, GLenum modeAlpha):             # <<<<<<<<<<<<<<
 *     '''See: `glBlendEquationSeparate() on Kronos website
 *     <http://www.khronos.org/opengles/sdk/docs/man/xhtml/glBlendEquationSeparate.xml>`_
*/

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

/* "kivy/graphics/opengl.pyx":485
 *     cgl.glBlendEquationSeparate(modeRGB, modeAlpha)
 * 
 * def glBlendFunc(GLenum sfactor, GLenum dfactor):             # <<<<<<<<<<<<<<
 *     '''See: `glBlendFunc() on Kronos website
 *     <http://www.khronos.org/opengles/sdk/docs/man/xhtml/glBlendFunc.xml>`_
*/

/* Python wrapper */
static PyObject *__pyx_pw_4kivy_8graphics_6opengl_21glBlendFunc(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_4kivy_8graphics_6opengl_20glBlendFunc, "glBlendFunc(GLenum sfactor, GLenum dfactor)\n\nSee: `glBlendFunc() on Kronos website\n<http://www.khronos.org/opengles/sdk/docs/man/xhtml/glBlendFunc.xml>`_");
static PyMethodDef __pyx_mdef_4kivy_8graphics_6opengl_21glBlendFunc = {"glBlendFunc", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4kivy_8graphics_6opengl_21glBlendFunc, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4kivy_8graphics_6opengl_20glBlendFunc};
static PyObject *__pyx_pw_4kivy_8graphics_6opengl_21glBlendFunc(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  GLenum __pyx_v_sfactor;
  GLenum __pyx_v_dfactor;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[2] = {0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("glBlendFunc (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_sfactor,&__pyx_mstate_global->__pyx_n_u_dfactor,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(0, 485, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 485, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 485, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "glBlendFunc", 0) < (0)) __PYX_ERR(0, 485, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 2; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("glBlendFunc", 1, 2, 2, i); __PYX_ERR(0, 485, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 2)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 485, __pyx_L3_error)
      values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 485, __pyx_L3_error)
    }
    __pyx_v_sfactor = __Pyx_PyLong_As_GLenum(values[0]); if (unlikely((__pyx_v_sfactor == ((GLenum)-1)) && PyErr_Occurred())) __PYX_ERR(0, 485, __pyx_L3_error)
    __pyx_v_dfactor = __Pyx_PyLong_As_GLenum(values[1]); if (unlikely((__pyx_v_dfactor == ((GLenum)-1)) && PyErr_Occurred())) __PYX_ERR(0, 485, __pyx_L3_error)
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("glBlendFunc", 1, 2, 2, __pyx_nargs); __PYX_ERR(0, 485, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("kivy.graphics.opengl.glBlendFunc", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4kivy_8graphics_6opengl_20glBlendFunc(__pyx_self, __pyx_v_sfactor, __pyx_v_dfactor);

  /* function exit code */
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4kivy_8graphics_6opengl_20glBlendFunc(CYTHON_UNUSED PyObject *__pyx_self, GLenum __pyx_v_sfactor, GLenum __pyx_v_dfactor) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("glBlendFunc", 0);

  /* "kivy/graphics/opengl.pyx":489
 *     <http://www.khronos.org/opengles/sdk/docs/man/xhtml/glBlendFunc.xml>`_
 *     '''
 *     cgl.glBlendFunc(sfactor, dfactor)             # <<<<<<<<<<<<<<
 * 
 * def glBlendFuncSeparate(GLenum srcRGB, GLenum dstRGB, GLenum srcAlpha, GLenum dstAlpha):
*/
  __pyx_v_4kivy_8graphics_3cgl_cgl->glBlendFunc(__pyx_v_sfactor, __pyx_v_dfactor); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 489, __pyx_L1_error)

  /* "kivy/graphics/opengl.pyx":485
 *     cgl.glBlendEquationSeparate(modeRGB, modeAlpha)
 * 
 * def glBlendFunc(GLenum sfactor, GLenum dfactor):             # <<<<<<<<<<<<<<
 *     '''See: `glBlendFunc() on Kronos website
 *     <http://www.khronos.org/opengles/sdk/docs/man/xhtml/glBlendFunc.xml>`_
*/

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

/* "kivy/graphics/opengl.pyx":491
 *     cgl.glBlendFunc(sfactor, dfactor)
 * 
 * def glBlendFuncSeparate(GLenum srcRGB, GLenum dstRGB, GLenum srcAlpha, GLenum dstAlpha):             # <<<<<<<<<<<<<<
 *     '''See: `glBlendFuncSeparate() on Kronos website
 *     <http://www.khronos.org/opengles/sdk/docs/man/xhtml/glBlendFuncSeparate.xml>`_
*/

/* Python wrapper */
static PyObject *__pyx_pw_4kivy_8graphics_6opengl_23glBlendFuncSeparate(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_4kivy_8graphics_6opengl_22glBlendFuncSeparate, "glBlendFuncSeparate(GLenum srcRGB, GLenum dstRGB, GLenum srcAlpha, GLenum dstAlpha)\n\nSee: `glBlendFuncSeparate() on Kronos website\n<http://www.khronos.org/opengles/sdk/docs/man/xhtml/glBlendFuncSeparate.xml>`_");
static PyMethodDef __pyx_mdef_4kivy_8graphics_6opengl_23glBlendFuncSeparate = {"glBlendFuncSeparate", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4kivy_8graphics_6opengl_23glBlendFuncSeparate, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4kivy_8graphics_6opengl_22glBlendFuncSeparate};
static PyObject *__pyx_pw_4kivy_8graphics_6opengl_23glBlendFuncSeparate(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  GLenum __pyx_v_srcRGB;
  GLenum __pyx_v_dstRGB;
  GLenum __pyx_v_srcAlpha;
  GLenum __pyx_v_dstAlpha;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[4] = {0,0,0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("glBlendFuncSeparate (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_srcRGB,&__pyx_mstate_global->__pyx_n_u_dstRGB,&__pyx_mstate_global->__pyx_n_u_srcAlpha,&__pyx_mstate_global->__pyx_n_u_dstAlpha,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(0, 491, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  4:
        values[3] = __Pyx_ArgRef_FASTCALL(__pyx_args, 3);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[3])) __PYX_ERR(0, 491, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  3:
        values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(0, 491, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 491, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 491, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "glBlendFuncSeparate", 0) < (0)) __PYX_ERR(0, 491, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 4; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("glBlendFuncSeparate", 1, 4, 4, i); __PYX_ERR(0, 491, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 4)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 491, __pyx_L3_error)
      values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 491, __pyx_L3_error)
      values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(0, 491, __pyx_L3_error)
      values[3] = __Pyx_ArgRef_FASTCALL(__pyx_args, 3);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[3])) __PYX_ERR(0, 491, __pyx_L3_error)
    }
    __pyx_v_srcRGB = __Pyx_PyLong_As_GLenum(values[0]); if (unlikely((__pyx_v_srcRGB == ((GLenum)-1)) && PyErr_Occurred())) __PYX_ERR(0, 491, __pyx_L3_error)
    __pyx_v_dstRGB = __Pyx_PyLong_As_GLenum(values[1]); if (unlikely((__pyx_v_dstRGB == ((GLenum)-1)) && PyErr_Occurred())) __PYX_ERR(0, 491, __pyx_L3_error)
    __pyx_v_srcAlpha = __Pyx_PyLong_As_GLenum(values[2]); if (unlikely((__pyx_v_srcAlpha == ((GLenum)-1)) && PyErr_Occurred())) __PYX_ERR(0, 491, __pyx_L3_error)
    __pyx_v_dstAlpha = __Pyx_PyLong_As_GLenum(values[3]); if (unlikely((__pyx_v_dstAlpha == ((GLenum)-1)) && PyErr_Occurred())) __PYX_ERR(0, 491, __pyx_L3_error)
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("glBlendFuncSeparate", 1, 4, 4, __pyx_nargs); __PYX_ERR(0, 491, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("kivy.graphics.opengl.glBlendFuncSeparate", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4kivy_8graphics_6opengl_22glBlendFuncSeparate(__pyx_self, __pyx_v_srcRGB, __pyx_v_dstRGB, __pyx_v_srcAlpha, __pyx_v_dstAlpha);

  /* function exit code */
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4kivy_8graphics_6opengl_22glBlendFuncSeparate(CYTHON_UNUSED PyObject *__pyx_self, GLenum __pyx_v_srcRGB, GLenum __pyx_v_dstRGB, GLenum __pyx_v_srcAlpha, GLenum __pyx_v_dstAlpha) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("glBlendFuncSeparate", 0);

  /* "kivy/graphics/opengl.pyx":495
 *     <http://www.khronos.org/opengles/sdk/docs/man/xhtml/glBlendFuncSeparate.xml>`_
 *     '''
 *     cgl.glBlendFuncSeparate(srcRGB, dstRGB, srcAlpha, dstAlpha)             # <<<<<<<<<<<<<<
 * 
 * def glBufferData(GLenum target, GLsizeiptr size, bytes data, GLenum usage):
*/
  __pyx_v_4kivy_8graphics_3cgl_cgl->glBlendFuncSeparate(__pyx_v_srcRGB, __pyx_v_dstRGB, __pyx_v_srcAlpha, __pyx_v_dstAlpha); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 495, __pyx_L1_error)

  /* "kivy/graphics/opengl.pyx":491
 *     cgl.glBlendFunc(sfactor, dfactor)
 * 
 * def glBlendFuncSeparate(GLenum srcRGB, GLenum dstRGB, GLenum srcAlpha, GLenum dstAlpha):             # <<<<<<<<<<<<<<
 *     '''See: `glBlendFuncSeparate() on Kronos website
 *     <http://www.khronos.org/opengles/sdk/docs/man/xhtml/glBlendFuncSeparate.xml>`_
*/

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

/* "kivy/graphics/opengl.pyx":497
 *     cgl.glBlendFuncSeparate(srcRGB, dstRGB, srcAlpha, dstAlpha)
 * 
 * def glBufferData(GLenum target, GLsizeiptr size, bytes data, GLenum usage):             # <<<<<<<<<<<<<<
 *     '''See: `glBufferData() on Kronos website
 *     <http://www.khronos.org/opengles/sdk/docs/man/xhtml/glBufferData.xml>`_
*/

/* Python wrapper */
static PyObject *__pyx_pw_4kivy_8graphics_6opengl_25glBufferData(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_4kivy_8graphics_6opengl_24glBufferData, "glBufferData(GLenum target, GLsizeiptr size, bytes data, GLenum usage)\n\nSee: `glBufferData() on Kronos website\n<http://www.khronos.org/opengles/sdk/docs/man/xhtml/glBufferData.xml>`_");
static PyMethodDef __pyx_mdef_4kivy_8graphics_6opengl_25glBufferData = {"glBufferData", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4kivy_8graphics_6opengl_25glBufferData, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4kivy_8graphics_6opengl_24glBufferData};
static PyObject *__pyx_pw_4kivy_8graphics_6opengl_25glBufferData(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  GLenum __pyx_v_target;
  GLsizeiptr __pyx_v_size;
  PyObject *__pyx_v_data = 0;
  GLenum __pyx_v_usage;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[4] = {0,0,0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("glBufferData (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_target,&__pyx_mstate_global->__pyx_n_u_size,&__pyx_mstate_global->__pyx_n_u_data,&__pyx_mstate_global->__pyx_n_u_usage,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(0, 497, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  4:
        values[3] = __Pyx_ArgRef_FASTCALL(__pyx_args, 3);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[3])) __PYX_ERR(0, 497, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  3:
        values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(0, 497, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 497, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 497, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "glBufferData", 0) < (0)) __PYX_ERR(0, 497, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 4; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("glBufferData", 1, 4, 4, i); __PYX_ERR(0, 497, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 4)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 497, __pyx_L3_error)
      values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 497, __pyx_L3_error)
      values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(0, 497, __pyx_L3_error)
      values[3] = __Pyx_ArgRef_FASTCALL(__pyx_args, 3);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[3])) __PYX_ERR(0, 497, __pyx_L3_error)
    }
    __pyx_v_target = __Pyx_PyLong_As_GLenum(values[0]); if (unlikely((__pyx_v_target == ((GLenum)-1)) && PyErr_Occurred())) __PYX_ERR(0, 497, __pyx_L3_error)
    __pyx_v_size = __Pyx_PyLong_As_GLsizeiptr(values[1]); if (unlikely((__pyx_v_size == ((GLsizeiptr)-1)) && PyErr_Occurred())) __PYX_ERR(0, 497, __pyx_L3_error)
    __pyx_v_data = ((PyObject*)values[2]);
    __pyx_v_usage = __Pyx_PyLong_As_GLenum(values[3]); if (unlikely((__pyx_v_usage == ((GLenum)-1)) && PyErr_Occurred())) __PYX_ERR(0, 497, __pyx_L3_error)
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("glBufferData", 1, 4, 4, __pyx_nargs); __PYX_ERR(0, 497, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("kivy.graphics.opengl.glBufferData", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_data), (&PyBytes_Type), 1, "data", 1))) __PYX_ERR(0, 497, __pyx_L1_error)
  __pyx_r = __pyx_pf_4kivy_8graphics_6opengl_24glBufferData(__pyx_self, __pyx_v_target, __pyx_v_size, __pyx_v_data, __pyx_v_usage);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  goto __pyx_L7_cleaned_up;
  __pyx_L0:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __pyx_L7_cleaned_up:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4kivy_8graphics_6opengl_24glBufferData(CYTHON_UNUSED PyObject *__pyx_self, GLenum __pyx_v_target, GLsizeiptr __pyx_v_size, PyObject *__pyx_v_data, GLenum __pyx_v_usage) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  char *__pyx_t_1;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("glBufferData", 0);

  /* "kivy/graphics/opengl.pyx":501
 *     <http://www.khronos.org/opengles/sdk/docs/man/xhtml/glBufferData.xml>`_
 *     '''
 *     cgl.glBufferData(target, size, <char *>data, usage)             # <<<<<<<<<<<<<<
 * 
 * def glBufferSubData(GLenum target, GLintptr offset, GLsizeiptr size, bytes data):
*/
  if (unlikely(__pyx_v_data == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "expected bytes, NoneType found");
    __PYX_ERR(0, 501, __pyx_L1_error)
  }
  __pyx_t_1 = __Pyx_PyBytes_AsWritableString(__pyx_v_data); if (unlikely((!__pyx_t_1) && PyErr_Occurred())) __PYX_ERR(0, 501, __pyx_L1_error)
  __pyx_v_4kivy_8graphics_3cgl_cgl->glBufferData(__pyx_v_target, __pyx_v_size, ((char *)__pyx_t_1), __pyx_v_usage); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 501, __pyx_L1_error)

  /* "kivy/graphics/opengl.pyx":497
 *     cgl.glBlendFuncSeparate(srcRGB, dstRGB, srcAlpha, dstAlpha)
 * 
 * def glBufferData(GLenum target, GLsizeiptr size, bytes data, GLenum usage):             # <<<<<<<<<<<<<<
 *     '''See: `glBufferData() on Kronos website
 *     <http://www.khronos.org/opengles/sdk/docs/man/xhtml/glBufferData.xml>`_
*/

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

/* "kivy/graphics/opengl.pyx":503
 *     cgl.glBufferData(target, size, <char *>data, usage)
 * 
 * def glBufferSubData(GLenum target, GLintptr offset, GLsizeiptr size, bytes data):             # <<<<<<<<<<<<<<
 *     '''See: `glBufferSubData() on Kronos website
 *     <http://www.khronos.org/opengles/sdk/docs/man/xhtml/glBufferSubData.xml>`_
*/

/* Python wrapper */
static PyObject *__pyx_pw_4kivy_8graphics_6opengl_27glBufferSubData(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_4kivy_8graphics_6opengl_26glBufferSubData, "glBufferSubData(GLenum target, GLintptr offset, GLsizeiptr size, bytes data)\n\nSee: `glBufferSubData() on Kronos website\n<http://www.khronos.org/opengles/sdk/docs/man/xhtml/glBufferSubData.xml>`_");
static PyMethodDef __pyx_mdef_4kivy_8graphics_6opengl_27glBufferSubData = {"glBufferSubData", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4kivy_8graphics_6opengl_27glBufferSubData, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4kivy_8graphics_6opengl_26glBufferSubData};
static PyObject *__pyx_pw_4kivy_8graphics_6opengl_27glBufferSubData(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  GLenum __pyx_v_target;
  GLintptr __pyx_v_offset;
  GLsizeiptr __pyx_v_size;
  PyObject *__pyx_v_data = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[4] = {0,0,0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("glBufferSubData (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_target,&__pyx_mstate_global->__pyx_n_u_offset,&__pyx_mstate_global->__pyx_n_u_size,&__pyx_mstate_global->__pyx_n_u_data,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(0, 503, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  4:
        values[3] = __Pyx_ArgRef_FASTCALL(__pyx_args, 3);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[3])) __PYX_ERR(0, 503, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  3:
        values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(0, 503, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 503, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 503, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "glBufferSubData", 0) < (0)) __PYX_ERR(0, 503, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 4; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("glBufferSubData", 1, 4, 4, i); __PYX_ERR(0, 503, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 4)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 503, __pyx_L3_error)
      values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 503, __pyx_L3_error)
      values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(0, 503, __pyx_L3_error)
      values[3] = __Pyx_ArgRef_FASTCALL(__pyx_args, 3);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[3])) __PYX_ERR(0, 503, __pyx_L3_error)
    }
    __pyx_v_target = __Pyx_PyLong_As_GLenum(values[0]); if (unlikely((__pyx_v_target == ((GLenum)-1)) && PyErr_Occurred())) __PYX_ERR(0, 503, __pyx_L3_error)
    __pyx_v_offset = __Pyx_PyLong_As_GLintptr(values[1]); if (unlikely((__pyx_v_offset == ((GLintptr)-1)) && PyErr_Occurred())) __PYX_ERR(0, 503, __pyx_L3_error)
    __pyx_v_size = __Pyx_PyLong_As_GLsizeiptr(values[2]); if (unlikely((__pyx_v_size == ((GLsizeiptr)-1)) && PyErr_Occurred())) __PYX_ERR(0, 503, __pyx_L3_error)
    __pyx_v_data = ((PyObject*)values[3]);
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("glBufferSubData", 1, 4, 4, __pyx_nargs); __PYX_ERR(0, 503, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("kivy.graphics.opengl.glBufferSubData", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_data), (&PyBytes_Type), 1, "data", 1))) __PYX_ERR(0, 503, __pyx_L1_error)
  __pyx_r = __pyx_pf_4kivy_8graphics_6opengl_26glBufferSubData(__pyx_self, __pyx_v_target, __pyx_v_offset, __pyx_v_size, __pyx_v_data);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  goto __pyx_L7_cleaned_up;
  __pyx_L0:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __pyx_L7_cleaned_up:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4kivy_8graphics_6opengl_26glBufferSubData(CYTHON_UNUSED PyObject *__pyx_self, GLenum __pyx_v_target, GLintptr __pyx_v_offset, GLsizeiptr __pyx_v_size, PyObject *__pyx_v_data) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  char *__pyx_t_1;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("glBufferSubData", 0);

  /* "kivy/graphics/opengl.pyx":507
 *     <http://www.khronos.org/opengles/sdk/docs/man/xhtml/glBufferSubData.xml>`_
 *     '''
 *     cgl.glBufferSubData(target, offset, size, <char *>data)             # <<<<<<<<<<<<<<
 * 
 * def glCheckFramebufferStatus(GLenum target):
*/
  if (unlikely(__pyx_v_data == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "expected bytes, NoneType found");
    __PYX_ERR(0, 507, __pyx_L1_error)
  }
  __pyx_t_1 = __Pyx_PyBytes_AsWritableString(__pyx_v_data); if (unlikely((!__pyx_t_1) && PyErr_Occurred())) __PYX_ERR(0, 507, __pyx_L1_error)
  __pyx_v_4kivy_8graphics_3cgl_cgl->glBufferSubData(__pyx_v_target, __pyx_v_offset, __pyx_v_size, ((char *)__pyx_t_1)); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 507, __pyx_L1_error)

  /* "kivy/graphics/opengl.pyx":503
 *     cgl.glBufferData(target, size, <char *>data, usage)
 * 
 * def glBufferSubData(GLenum target, GLintptr offset, GLsizeiptr size, bytes data):             # <<<<<<<<<<<<<<
 *     '''See: `glBufferSubData() on Kronos website
 *     <http://www.khronos.org/opengles/sdk/docs/man/xhtml/glBufferSubData.xml>`_
*/

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

/* "kivy/graphics/opengl.pyx":509
 *     cgl.glBufferSubData(target, offset, size, <char *>data)
 * 
 * def glCheckFramebufferStatus(GLenum target):             # <<<<<<<<<<<<<<
 *     '''See: `glCheckFramebufferStatus() on Kronos website
 *     <http://www.khronos.org/opengles/sdk/docs/man/xhtml/glCheckFramebufferStatus.xml>`_
*/

/* Python wrapper */
static PyObject *__pyx_pw_4kivy_8graphics_6opengl_29glCheckFramebufferStatus(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_4kivy_8graphics_6opengl_28glCheckFramebufferStatus, "glCheckFramebufferStatus(GLenum target)\n\nSee: `glCheckFramebufferStatus() on Kronos website\n<http://www.khronos.org/opengles/sdk/docs/man/xhtml/glCheckFramebufferStatus.xml>`_");
static PyMethodDef __pyx_mdef_4kivy_8graphics_6opengl_29glCheckFramebufferStatus = {"glCheckFramebufferStatus", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4kivy_8graphics_6opengl_29glCheckFramebufferStatus, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4kivy_8graphics_6opengl_28glCheckFramebufferStatus};
static PyObject *__pyx_pw_4kivy_8graphics_6opengl_29glCheckFramebufferStatus(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  GLenum __pyx_v_target;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[1] = {0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("glCheckFramebufferStatus (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_target,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(0, 509, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 509, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "glCheckFramebufferStatus", 0) < (0)) __PYX_ERR(0, 509, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("glCheckFramebufferStatus", 1, 1, 1, i); __PYX_ERR(0, 509, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 1)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 509, __pyx_L3_error)
    }
    __pyx_v_target = __Pyx_PyLong_As_GLenum(values[0]); if (unlikely((__pyx_v_target == ((GLenum)-1)) && PyErr_Occurred())) __PYX_ERR(0, 509, __pyx_L3_error)
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("glCheckFramebufferStatus", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 509, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("kivy.graphics.opengl.glCheckFramebufferStatus", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4kivy_8graphics_6opengl_28glCheckFramebufferStatus(__pyx_self, __pyx_v_target);

  /* function exit code */
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4kivy_8graphics_6opengl_28glCheckFramebufferStatus(CYTHON_UNUSED PyObject *__pyx_self, GLenum __pyx_v_target) {
  GLenum __pyx_v_result;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  GLenum __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("glCheckFramebufferStatus", 0);

  /* "kivy/graphics/opengl.pyx":514
 *     '''
 *     cdef GLenum result
 *     result = cgl.glCheckFramebufferStatus(target)             # <<<<<<<<<<<<<<
 *     return result
 * 
*/
  __pyx_t_1 = __pyx_v_4kivy_8graphics_3cgl_cgl->glCheckFramebufferStatus(__pyx_v_target); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 514, __pyx_L1_error)
  __pyx_v_result = __pyx_t_1;

  /* "kivy/graphics/opengl.pyx":515
 *     cdef GLenum result
 *     result = cgl.glCheckFramebufferStatus(target)
 *     return result             # <<<<<<<<<<<<<<
 * 
 * def glClear(GLbitfield mask):
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_2 = __Pyx_PyLong_From_GLenum(__pyx_v_result); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 515, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_r = __pyx_t_2;
  __pyx_t_2 = 0;
  goto __pyx_L0;

  /* "kivy/graphics/opengl.pyx":509
 *     cgl.glBufferSubData(target, offset, size, <char *>data)
 * 
 * def glCheckFramebufferStatus(GLenum target):             # <<<<<<<<<<<<<<
 *     '''See: `glCheckFramebufferStatus() on Kronos website
 *     <http://www.khronos.org/opengles/sdk/docs/man/xhtml/glCheckFramebufferStatus.xml>`_
*/

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

/* "kivy/graphics/opengl.pyx":517
 *     return result
 * 
 * def glClear(GLbitfield mask):             # <<<<<<<<<<<<<<
 *     '''See: `glClear() on Kronos website
 *     <http://www.khronos.org/opengles/sdk/docs/man/xhtml/glClear.xml>`_
*/

/* Python wrapper */
static PyObject *__pyx_pw_4kivy_8graphics_6opengl_31glClear(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_4kivy_8graphics_6opengl_30glClear, "glClear(GLbitfield mask)\n\nSee: `glClear() on Kronos website\n<http://www.khronos.org/opengles/sdk/docs/man/xhtml/glClear.xml>`_");
static PyMethodDef __pyx_mdef_4kivy_8graphics_6opengl_31glClear = {"glClear", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4kivy_8graphics_6opengl_31glClear, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4kivy_8graphics_6opengl_30glClear};
static PyObject *__pyx_pw_4kivy_8graphics_6opengl_31glClear(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  GLbitfield __pyx_v_mask;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[1] = {0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("glClear (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_mask,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(0, 517, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 517, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "glClear", 0) < (0)) __PYX_ERR(0, 517, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("glClear", 1, 1, 1, i); __PYX_ERR(0, 517, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 1)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 517, __pyx_L3_error)
    }
    __pyx_v_mask = __Pyx_PyLong_As_GLbitfield(values[0]); if (unlikely((__pyx_v_mask == ((GLbitfield)-1)) && PyErr_Occurred())) __PYX_ERR(0, 517, __pyx_L3_error)
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("glClear", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 517, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("kivy.graphics.opengl.glClear", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4kivy_8graphics_6opengl_30glClear(__pyx_self, __pyx_v_mask);

  /* function exit code */
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4kivy_8graphics_6opengl_30glClear(CYTHON_UNUSED PyObject *__pyx_self, GLbitfield __pyx_v_mask) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("glClear", 0);

  /* "kivy/graphics/opengl.pyx":521
 *     <http://www.khronos.org/opengles/sdk/docs/man/xhtml/glClear.xml>`_
 *     '''
 *     cgl.glClear(mask)             # <<<<<<<<<<<<<<
 * 
 * def glClearColor(GLclampf red, GLclampf green, GLclampf blue, GLclampf alpha):
*/
  __pyx_v_4kivy_8graphics_3cgl_cgl->glClear(__pyx_v_mask); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 521, __pyx_L1_error)

  /* "kivy/graphics/opengl.pyx":517
 *     return result
 * 
 * def glClear(GLbitfield mask):             # <<<<<<<<<<<<<<
 *     '''See: `glClear() on Kronos website
 *     <http://www.khronos.org/opengles/sdk/docs/man/xhtml/glClear.xml>`_
*/

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

/* "kivy/graphics/opengl.pyx":523
 *     cgl.glClear(mask)
 * 
 * def glClearColor(GLclampf red, GLclampf green, GLclampf blue, GLclampf alpha):             # <<<<<<<<<<<<<<
 *     '''See: `glClearColor() on Kronos website
 *     <http://www.khronos.org/opengles/sdk/docs/man/xhtml/glClearColor.xml>`_
*/

/* Python wrapper */
static PyObject *__pyx_pw_4kivy_8graphics_6opengl_33glClearColor(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_4kivy_8graphics_6opengl_32glClearColor, "glClearColor(GLclampf red, GLclampf green, GLclampf blue, GLclampf alpha)\n\nSee: `glClearColor() on Kronos website\n<http://www.khronos.org/opengles/sdk/docs/man/xhtml/glClearColor.xml>`_");
static PyMethodDef __pyx_mdef_4kivy_8graphics_6opengl_33glClearColor = {"glClearColor", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4kivy_8graphics_6opengl_33glClearColor, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4kivy_8graphics_6opengl_32glClearColor};
static PyObject *__pyx_pw_4kivy_8graphics_6opengl_33glClearColor(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  GLclampf __pyx_v_red;
  GLclampf __pyx_v_green;
  GLclampf __pyx_v_blue;
  GLclampf __pyx_v_alpha;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[4] = {0,0,0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("glClearColor (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_red,&__pyx_mstate_global->__pyx_n_u_green,&__pyx_mstate_global->__pyx_n_u_blue,&__pyx_mstate_global->__pyx_n_u_alpha,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(0, 523, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  4:
        values[3] = __Pyx_ArgRef_FASTCALL(__pyx_args, 3);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[3])) __PYX_ERR(0, 523, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  3:
        values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(0, 523, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 523, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 523, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "glClearColor", 0) < (0)) __PYX_ERR(0, 523, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 4; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("glClearColor", 1, 4, 4, i); __PYX_ERR(0, 523, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 4)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 523, __pyx_L3_error)
      values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 523, __pyx_L3_error)
      values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(0, 523, __pyx_L3_error)
      values[3] = __Pyx_ArgRef_FASTCALL(__pyx_args, 3);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[3])) __PYX_ERR(0, 523, __pyx_L3_error)
    }
    __pyx_v_red = __Pyx_PyFloat_AsFloat(values[0]); if (unlikely((__pyx_v_red == ((GLclampf)-1)) && PyErr_Occurred())) __PYX_ERR(0, 523, __pyx_L3_error)
    __pyx_v_green = __Pyx_PyFloat_AsFloat(values[1]); if (unlikely((__pyx_v_green == ((GLclampf)-1)) && PyErr_Occurred())) __PYX_ERR(0, 523, __pyx_L3_error)
    __pyx_v_blue = __Pyx_PyFloat_AsFloat(values[2]); if (unlikely((__pyx_v_blue == ((GLclampf)-1)) && PyErr_Occurred())) __PYX_ERR(0, 523, __pyx_L3_error)
    __pyx_v_alpha = __Pyx_PyFloat_AsFloat(values[3]); if (unlikely((__pyx_v_alpha == ((GLclampf)-1)) && PyErr_Occurred())) __PYX_ERR(0, 523, __pyx_L3_error)
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("glClearColor", 1, 4, 4, __pyx_nargs); __PYX_ERR(0, 523, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("kivy.graphics.opengl.glClearColor", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4kivy_8graphics_6opengl_32glClearColor(__pyx_self, __pyx_v_red, __pyx_v_green, __pyx_v_blue, __pyx_v_alpha);

  /* function exit code */
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4kivy_8graphics_6opengl_32glClearColor(CYTHON_UNUSED PyObject *__pyx_self, GLclampf __pyx_v_red, GLclampf __pyx_v_green, GLclampf __pyx_v_blue, GLclampf __pyx_v_alpha) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("glClearColor", 0);

  /* "kivy/graphics/opengl.pyx":527
 *     <http://www.khronos.org/opengles/sdk/docs/man/xhtml/glClearColor.xml>`_
 *     '''
 *     cgl.glClearColor(red, green, blue, alpha)             # <<<<<<<<<<<<<<
 * 
 * # We don't use this symbol yet, but if we activate it, android platform crash
*/
  __pyx_v_4kivy_8graphics_3cgl_cgl->glClearColor(__pyx_v_red, __pyx_v_green, __pyx_v_blue, __pyx_v_alpha); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 527, __pyx_L1_error)

  /* "kivy/graphics/opengl.pyx":523
 *     cgl.glClear(mask)
 * 
 * def glClearColor(GLclampf red, GLclampf green, GLclampf blue, GLclampf alpha):             # <<<<<<<<<<<<<<
 *     '''See: `glClearColor() on Kronos website
 *     <http://www.khronos.org/opengles/sdk/docs/man/xhtml/glClearColor.xml>`_
*/

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

/* "kivy/graphics/opengl.pyx":537
 * #    cgl.glClearDepthf(depth)
 * 
 * def glClearStencil(GLint s):             # <<<<<<<<<<<<<<
 *     '''See: `glClearStencil() on Kronos website
 *     <http://www.khronos.org/opengles/sdk/docs/man/xhtml/glClearStencil.xml>`_
*/

/* Python wrapper */
static PyObject *__pyx_pw_4kivy_8graphics_6opengl_35glClearStencil(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_4kivy_8graphics_6opengl_34glClearStencil, "glClearStencil(GLint s)\n\nSee: `glClearStencil() on Kronos website\n<http://www.khronos.org/opengles/sdk/docs/man/xhtml/glClearStencil.xml>`_");
static PyMethodDef __pyx_mdef_4kivy_8graphics_6opengl_35glClearStencil = {"glClearStencil", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4kivy_8graphics_6opengl_35glClearStencil, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4kivy_8graphics_6opengl_34glClearStencil};
static PyObject *__pyx_pw_4kivy_8graphics_6opengl_35glClearStencil(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  GLint __pyx_v_s;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[1] = {0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("glClearStencil (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_s,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(0, 537, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 537, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "glClearStencil", 0) < (0)) __PYX_ERR(0, 537, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("glClearStencil", 1, 1, 1, i); __PYX_ERR(0, 537, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 1)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 537, __pyx_L3_error)
    }
    __pyx_v_s = __Pyx_PyLong_As_GLint(values[0]); if (unlikely((__pyx_v_s == ((GLint)-1)) && PyErr_Occurred())) __PYX_ERR(0, 537, __pyx_L3_error)
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("glClearStencil", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 537, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("kivy.graphics.opengl.glClearStencil", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4kivy_8graphics_6opengl_34glClearStencil(__pyx_self, __pyx_v_s);

  /* function exit code */
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4kivy_8graphics_6opengl_34glClearStencil(CYTHON_UNUSED PyObject *__pyx_self, GLint __pyx_v_s) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("glClearStencil", 0);

  /* "kivy/graphics/opengl.pyx":541
 *     <http://www.khronos.org/opengles/sdk/docs/man/xhtml/glClearStencil.xml>`_
 *     '''
 *     cgl.glClearStencil(s)             # <<<<<<<<<<<<<<
 * 
 * def glColorMask(GLboolean red, GLboolean green, GLboolean blue, GLboolean alpha):
*/
  __pyx_v_4kivy_8graphics_3cgl_cgl->glClearStencil(__pyx_v_s); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 541, __pyx_L1_error)

  /* "kivy/graphics/opengl.pyx":537
 * #    cgl.glClearDepthf(depth)
 * 
 * def glClearStencil(GLint s):             # <<<<<<<<<<<<<<
 *     '''See: `glClearStencil() on Kronos website
 *     <http://www.khronos.org/opengles/sdk/docs/man/xhtml/glClearStencil.xml>`_
*/

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

/* "kivy/graphics/opengl.pyx":543
 *     cgl.glClearStencil(s)
 * 
 * def glColorMask(GLboolean red, GLboolean green, GLboolean blue, GLboolean alpha):             # <<<<<<<<<<<<<<
 *     '''See: `glColorMask() on Kronos website
 *     <http://www.khronos.org/opengles/sdk/docs/man/xhtml/glColorMask.xml>`_
*/

/* Python wrapper */
static PyObject *__pyx_pw_4kivy_8graphics_6opengl_37glColorMask(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_4kivy_8graphics_6opengl_36glColorMask, "glColorMask(GLboolean red, GLboolean green, GLboolean blue, GLboolean alpha)\n\nSee: `glColorMask() on Kronos website\n<http://www.khronos.org/opengles/sdk/docs/man/xhtml/glColorMask.xml>`_");
static PyMethodDef __pyx_mdef_4kivy_8graphics_6opengl_37glColorMask = {"glColorMask", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4kivy_8graphics_6opengl_37glColorMask, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4kivy_8graphics_6opengl_36glColorMask};
static PyObject *__pyx_pw_4kivy_8graphics_6opengl_37glColorMask(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  GLboolean __pyx_v_red;
  GLboolean __pyx_v_green;
  GLboolean __pyx_v_blue;
  GLboolean __pyx_v_alpha;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[4] = {0,0,0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("glColorMask (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_red,&__pyx_mstate_global->__pyx_n_u_green,&__pyx_mstate_global->__pyx_n_u_blue,&__pyx_mstate_global->__pyx_n_u_alpha,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(0, 543, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  4:
        values[3] = __Pyx_ArgRef_FASTCALL(__pyx_args, 3);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[3])) __PYX_ERR(0, 543, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  3:
        values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(0, 543, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 543, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 543, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "glColorMask", 0) < (0)) __PYX_ERR(0, 543, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 4; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("glColorMask", 1, 4, 4, i); __PYX_ERR(0, 543, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 4)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 543, __pyx_L3_error)
      values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 543, __pyx_L3_error)
      values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(0, 543, __pyx_L3_error)
      values[3] = __Pyx_ArgRef_FASTCALL(__pyx_args, 3);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[3])) __PYX_ERR(0, 543, __pyx_L3_error)
    }
    __pyx_v_red = __Pyx_PyLong_As_GLboolean(values[0]); if (unlikely((__pyx_v_red == ((GLboolean)-1)) && PyErr_Occurred())) __PYX_ERR(0, 543, __pyx_L3_error)
    __pyx_v_green = __Pyx_PyLong_As_GLboolean(values[1]); if (unlikely((__pyx_v_green == ((GLboolean)-1)) && PyErr_Occurred())) __PYX_ERR(0, 543, __pyx_L3_error)
    __pyx_v_blue = __Pyx_PyLong_As_GLboolean(values[2]); if (unlikely((__pyx_v_blue == ((GLboolean)-1)) && PyErr_Occurred())) __PYX_ERR(0, 543, __pyx_L3_error)
    __pyx_v_alpha = __Pyx_PyLong_As_GLboolean(values[3]); if (unlikely((__pyx_v_alpha == ((GLboolean)-1)) && PyErr_Occurred())) __PYX_ERR(0, 543, __pyx_L3_error)
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("glColorMask", 1, 4, 4, __pyx_nargs); __PYX_ERR(0, 543, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("kivy.graphics.opengl.glColorMask", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4kivy_8graphics_6opengl_36glColorMask(__pyx_self, __pyx_v_red, __pyx_v_green, __pyx_v_blue, __pyx_v_alpha);

  /* function exit code */
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4kivy_8graphics_6opengl_36glColorMask(CYTHON_UNUSED PyObject *__pyx_self, GLboolean __pyx_v_red, GLboolean __pyx_v_green, GLboolean __pyx_v_blue, GLboolean __pyx_v_alpha) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("glColorMask", 0);

  /* "kivy/graphics/opengl.pyx":547
 *     <http://www.khronos.org/opengles/sdk/docs/man/xhtml/glColorMask.xml>`_
 *     '''
 *     cgl.glColorMask(red, green, blue, alpha)             # <<<<<<<<<<<<<<
 * 
 * def glCompileShader(GLuint shader):
*/
  __pyx_v_4kivy_8graphics_3cgl_cgl->glColorMask(__pyx_v_red, __pyx_v_green, __pyx_v_blue, __pyx_v_alpha); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 547, __pyx_L1_error)

  /* "kivy/graphics/opengl.pyx":543
 *     cgl.glClearStencil(s)
 * 
 * def glColorMask(GLboolean red, GLboolean green, GLboolean blue, GLboolean alpha):             # <<<<<<<<<<<<<<
 *     '''See: `glColorMask() on Kronos website
 *     <http://www.khronos.org/opengles/sdk/docs/man/xhtml/glColorMask.xml>`_
*/

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

/* "kivy/graphics/opengl.pyx":549
 *     cgl.glColorMask(red, green, blue, alpha)
 * 
 * def glCompileShader(GLuint shader):             # <<<<<<<<<<<<<<
 *     '''See: `glCompileShader() on Kronos website
 *     <http://www.khronos.org/opengles/sdk/docs/man/xhtml/glCompileShader.xml>`_
*/

/* Python wrapper */
static PyObject *__pyx_pw_4kivy_8graphics_6opengl_39glCompileShader(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_4kivy_8graphics_6opengl_38glCompileShader, "glCompileShader(GLuint shader)\n\nSee: `glCompileShader() on Kronos website\n<http://www.khronos.org/opengles/sdk/docs/man/xhtml/glCompileShader.xml>`_");
static PyMethodDef __pyx_mdef_4kivy_8graphics_6opengl_39glCompileShader = {"glCompileShader", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4kivy_8graphics_6opengl_39glCompileShader, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4kivy_8graphics_6opengl_38glCompileShader};
static PyObject *__pyx_pw_4kivy_8graphics_6opengl_39glCompileShader(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  GLuint __pyx_v_shader;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[1] = {0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("glCompileShader (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_shader,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(0, 549, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 549, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "glCompileShader", 0) < (0)) __PYX_ERR(0, 549, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("glCompileShader", 1, 1, 1, i); __PYX_ERR(0, 549, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 1)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 549, __pyx_L3_error)
    }
    __pyx_v_shader = __Pyx_PyLong_As_GLuint(values[0]); if (unlikely((__pyx_v_shader == ((GLuint)-1)) && PyErr_Occurred())) __PYX_ERR(0, 549, __pyx_L3_error)
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("glCompileShader", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 549, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("kivy.graphics.opengl.glCompileShader", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4kivy_8graphics_6opengl_38glCompileShader(__pyx_self, __pyx_v_shader);

  /* function exit code */
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4kivy_8graphics_6opengl_38glCompileShader(CYTHON_UNUSED PyObject *__pyx_self, GLuint __pyx_v_shader) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("glCompileShader", 0);

  /* "kivy/graphics/opengl.pyx":553
 *     <http://www.khronos.org/opengles/sdk/docs/man/xhtml/glCompileShader.xml>`_
 *     '''
 *     cgl.glCompileShader(shader)             # <<<<<<<<<<<<<<
 * 
 * def glCompressedTexImage2D(GLenum target, GLint level, GLenum internalformat,
*/
  __pyx_v_4kivy_8graphics_3cgl_cgl->glCompileShader(__pyx_v_shader); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 553, __pyx_L1_error)

  /* "kivy/graphics/opengl.pyx":549
 *     cgl.glColorMask(red, green, blue, alpha)
 * 
 * def glCompileShader(GLuint shader):             # <<<<<<<<<<<<<<
 *     '''See: `glCompileShader() on Kronos website
 *     <http://www.khronos.org/opengles/sdk/docs/man/xhtml/glCompileShader.xml>`_
*/

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

/* "kivy/graphics/opengl.pyx":555
 *     cgl.glCompileShader(shader)
 * 
 * def glCompressedTexImage2D(GLenum target, GLint level, GLenum internalformat,             # <<<<<<<<<<<<<<
 *                            GLsizei width, GLsizei height, GLint border, GLsizei
 *                            imageSize,  bytes data):
*/

/* Python wrapper */
static PyObject *__pyx_pw_4kivy_8graphics_6opengl_41glCompressedTexImage2D(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_4kivy_8graphics_6opengl_40glCompressedTexImage2D, "glCompressedTexImage2D(GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLint border, GLsizei imageSize, bytes data)\n\nSee: `glCompressedTexImage2D() on Kronos website\n<http://www.khronos.org/opengles/sdk/docs/man/xhtml/glCompressedTexImage2D.xml>`_");
static PyMethodDef __pyx_mdef_4kivy_8graphics_6opengl_41glCompressedTexImage2D = {"glCompressedTexImage2D", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4kivy_8graphics_6opengl_41glCompressedTexImage2D, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4kivy_8graphics_6opengl_40glCompressedTexImage2D};
static PyObject *__pyx_pw_4kivy_8graphics_6opengl_41glCompressedTexImage2D(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  GLenum __pyx_v_target;
  GLint __pyx_v_level;
  GLenum __pyx_v_internalformat;
  GLsizei __pyx_v_width;
  GLsizei __pyx_v_height;
  GLint __pyx_v_border;
  GLsizei __pyx_v_imageSize;
  PyObject *__pyx_v_data = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[8] = {0,0,0,0,0,0,0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("glCompressedTexImage2D (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_target,&__pyx_mstate_global->__pyx_n_u_level,&__pyx_mstate_global->__pyx_n_u_internalformat,&__pyx_mstate_global->__pyx_n_u_width,&__pyx_mstate_global->__pyx_n_u_height,&__pyx_mstate_global->__pyx_n_u_border,&__pyx_mstate_global->__pyx_n_u_imageSize,&__pyx_mstate_global->__pyx_n_u_data,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(0, 555, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  8:
        values[7] = __Pyx_ArgRef_FASTCALL(__pyx_args, 7);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[7])) __PYX_ERR(0, 555, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  7:
        values[6] = __Pyx_ArgRef_FASTCALL(__pyx_args, 6);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[6])) __PYX_ERR(0, 555, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  6:
        values[5] = __Pyx_ArgRef_FASTCALL(__pyx_args, 5);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[5])) __PYX_ERR(0, 555, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  5:
        values[4] = __Pyx_ArgRef_FASTCALL(__pyx_args, 4);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[4])) __PYX_ERR(0, 555, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  4:
        values[3] = __Pyx_ArgRef_FASTCALL(__pyx_args, 3);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[3])) __PYX_ERR(0, 555, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  3:
        values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(0, 555, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 555, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 555, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "glCompressedTexImage2D", 0) < (0)) __PYX_ERR(0, 555, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 8; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("glCompressedTexImage2D", 1, 8, 8, i); __PYX_ERR(0, 555, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 8)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 555, __pyx_L3_error)
      values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 555, __pyx_L3_error)
      values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(0, 555, __pyx_L3_error)
      values[3] = __Pyx_ArgRef_FASTCALL(__pyx_args, 3);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[3])) __PYX_ERR(0, 555, __pyx_L3_error)
      values[4] = __Pyx_ArgRef_FASTCALL(__pyx_args, 4);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[4])) __PYX_ERR(0, 555, __pyx_L3_error)
      values[5] = __Pyx_ArgRef_FASTCALL(__pyx_args, 5);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[5])) __PYX_ERR(0, 555, __pyx_L3_error)
      values[6] = __Pyx_ArgRef_FASTCALL(__pyx_args, 6);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[6])) __PYX_ERR(0, 555, __pyx_L3_error)
      values[7] = __Pyx_ArgRef_FASTCALL(__pyx_args, 7);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[7])) __PYX_ERR(0, 555, __pyx_L3_error)
    }
    __pyx_v_target = __Pyx_PyLong_As_GLenum(values[0]); if (unlikely((__pyx_v_target == ((GLenum)-1)) && PyErr_Occurred())) __PYX_ERR(0, 555, __pyx_L3_error)
    __pyx_v_level = __Pyx_PyLong_As_GLint(values[1]); if (unlikely((__pyx_v_level == ((GLint)-1)) && PyErr_Occurred())) __PYX_ERR(0, 555, __pyx_L3_error)
    __pyx_v_internalformat = __Pyx_PyLong_As_GLenum(values[2]); if (unlikely((__pyx_v_internalformat == ((GLenum)-1)) && PyErr_Occurred())) __PYX_ERR(0, 555, __pyx_L3_error)
    __pyx_v_width = __Pyx_PyLong_As_GLsizei(values[3]); if (unlikely((__pyx_v_width == ((GLsizei)-1)) && PyErr_Occurred())) __PYX_ERR(0, 556, __pyx_L3_error)
    __pyx_v_height = __Pyx_PyLong_As_GLsizei(values[4]); if (unlikely((__pyx_v_height == ((GLsizei)-1)) && PyErr_Occurred())) __PYX_ERR(0, 556, __pyx_L3_error)
    __pyx_v_border = __Pyx_PyLong_As_GLint(values[5]); if (unlikely((__pyx_v_border == ((GLint)-1)) && PyErr_Occurred())) __PYX_ERR(0, 556, __pyx_L3_error)
    __pyx_v_imageSize = __Pyx_PyLong_As_GLsizei(values[6]); if (unlikely((__pyx_v_imageSize == ((GLsizei)-1)) && PyErr_Occurred())) __PYX_ERR(0, 556, __pyx_L3_error)
    __pyx_v_data = ((PyObject*)values[7]);
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("glCompressedTexImage2D", 1, 8, 8, __pyx_nargs); __PYX_ERR(0, 555, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("kivy.graphics.opengl.glCompressedTexImage2D", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_data), (&PyBytes_Type), 1, "data", 1))) __PYX_ERR(0, 557, __pyx_L1_error)
  __pyx_r = __pyx_pf_4kivy_8graphics_6opengl_40glCompressedTexImage2D(__pyx_self, __pyx_v_target, __pyx_v_level, __pyx_v_internalformat, __pyx_v_width, __pyx_v_height, __pyx_v_border, __pyx_v_imageSize, __pyx_v_data);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  goto __pyx_L7_cleaned_up;
  __pyx_L0:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __pyx_L7_cleaned_up:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4kivy_8graphics_6opengl_40glCompressedTexImage2D(CYTHON_UNUSED PyObject *__pyx_self, GLenum __pyx_v_target, GLint __pyx_v_level, GLenum __pyx_v_internalformat, GLsizei __pyx_v_width, GLsizei __pyx_v_height, GLint __pyx_v_border, GLsizei __pyx_v_imageSize, PyObject *__pyx_v_data) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  char *__pyx_t_1;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("glCompressedTexImage2D", 0);

  /* "kivy/graphics/opengl.pyx":562
 *     '''
 *     cgl.glCompressedTexImage2D(target, level, internalformat, width,
 *                                     height, border, imageSize, <char *>data)             # <<<<<<<<<<<<<<
 * 
 * def glCompressedTexSubImage2D(GLenum target, GLint level, GLint xoffset, GLint
*/
  if (unlikely(__pyx_v_data == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "expected bytes, NoneType found");
    __PYX_ERR(0, 562, __pyx_L1_error)
  }
  __pyx_t_1 = __Pyx_PyBytes_AsWritableString(__pyx_v_data); if (unlikely((!__pyx_t_1) && PyErr_Occurred())) __PYX_ERR(0, 562, __pyx_L1_error)

  /* "kivy/graphics/opengl.pyx":561
 *     <http://www.khronos.org/opengles/sdk/docs/man/xhtml/glCompressedTexImage2D.xml>`_
 *     '''
 *     cgl.glCompressedTexImage2D(target, level, internalformat, width,             # <<<<<<<<<<<<<<
 *                                     height, border, imageSize, <char *>data)
 * 
*/
  __pyx_v_4kivy_8graphics_3cgl_cgl->glCompressedTexImage2D(__pyx_v_target, __pyx_v_level, __pyx_v_internalformat, __pyx_v_width, __pyx_v_height, __pyx_v_border, __pyx_v_imageSize, ((char *)__pyx_t_1)); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 561, __pyx_L1_error)

  /* "kivy/graphics/opengl.pyx":555
 *     cgl.glCompileShader(shader)
 * 
 * def glCompressedTexImage2D(GLenum target, GLint level, GLenum internalformat,             # <<<<<<<<<<<<<<
 *                            GLsizei width, GLsizei height, GLint border, GLsizei
 *                            imageSize,  bytes data):
*/

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

/* "kivy/graphics/opengl.pyx":564
 *                                     height, border, imageSize, <char *>data)
 * 
 * def glCompressedTexSubImage2D(GLenum target, GLint level, GLint xoffset, GLint             # <<<<<<<<<<<<<<
 *                               yoffset, GLsizei width, GLsizei height, GLenum
 *                               format, GLsizei imageSize,  bytes data):
*/

/* Python wrapper */
static PyObject *__pyx_pw_4kivy_8graphics_6opengl_43glCompressedTexSubImage2D(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_4kivy_8graphics_6opengl_42glCompressedTexSubImage2D, "glCompressedTexSubImage2D(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLsizei imageSize, bytes data)\n\nSee: `glCompressedTexSubImage2D() on Kronos website\n<http://www.khronos.org/opengles/sdk/docs/man/xhtml/glCompressedTexSubImage2D.xml>`_");
static PyMethodDef __pyx_mdef_4kivy_8graphics_6opengl_43glCompressedTexSubImage2D = {"glCompressedTexSubImage2D", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4kivy_8graphics_6opengl_43glCompressedTexSubImage2D, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4kivy_8graphics_6opengl_42glCompressedTexSubImage2D};
static PyObject *__pyx_pw_4kivy_8graphics_6opengl_43glCompressedTexSubImage2D(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  GLenum __pyx_v_target;
  GLint __pyx_v_level;
  GLint __pyx_v_xoffset;
  GLint __pyx_v_yoffset;
  GLsizei __pyx_v_width;
  GLsizei __pyx_v_height;
  GLenum __pyx_v_format;
  GLsizei __pyx_v_imageSize;
  PyObject *__pyx_v_data = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[9] = {0,0,0,0,0,0,0,0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("glCompressedTexSubImage2D (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_target,&__pyx_mstate_global->__pyx_n_u_level,&__pyx_mstate_global->__pyx_n_u_xoffset,&__pyx_mstate_global->__pyx_n_u_yoffset,&__pyx_mstate_global->__pyx_n_u_width,&__pyx_mstate_global->__pyx_n_u_height,&__pyx_mstate_global->__pyx_n_u_format,&__pyx_mstate_global->__pyx_n_u_imageSize,&__pyx_mstate_global->__pyx_n_u_data,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(0, 564, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  9:
        values[8] = __Pyx_ArgRef_FASTCALL(__pyx_args, 8);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[8])) __PYX_ERR(0, 564, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  8:
        values[7] = __Pyx_ArgRef_FASTCALL(__pyx_args, 7);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[7])) __PYX_ERR(0, 564, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  7:
        values[6] = __Pyx_ArgRef_FASTCALL(__pyx_args, 6);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[6])) __PYX_ERR(0, 564, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  6:
        values[5] = __Pyx_ArgRef_FASTCALL(__pyx_args, 5);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[5])) __PYX_ERR(0, 564, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  5:
        values[4] = __Pyx_ArgRef_FASTCALL(__pyx_args, 4);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[4])) __PYX_ERR(0, 564, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  4:
        values[3] = __Pyx_ArgRef_FASTCALL(__pyx_args, 3);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[3])) __PYX_ERR(0, 564, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  3:
        values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(0, 564, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 564, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 564, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "glCompressedTexSubImage2D", 0) < (0)) __PYX_ERR(0, 564, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 9; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("glCompressedTexSubImage2D", 1, 9, 9, i); __PYX_ERR(0, 564, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 9)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 564, __pyx_L3_error)
      values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 564, __pyx_L3_error)
      values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(0, 564, __pyx_L3_error)
      values[3] = __Pyx_ArgRef_FASTCALL(__pyx_args, 3);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[3])) __PYX_ERR(0, 564, __pyx_L3_error)
      values[4] = __Pyx_ArgRef_FASTCALL(__pyx_args, 4);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[4])) __PYX_ERR(0, 564, __pyx_L3_error)
      values[5] = __Pyx_ArgRef_FASTCALL(__pyx_args, 5);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[5])) __PYX_ERR(0, 564, __pyx_L3_error)
      values[6] = __Pyx_ArgRef_FASTCALL(__pyx_args, 6);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[6])) __PYX_ERR(0, 564, __pyx_L3_error)
      values[7] = __Pyx_ArgRef_FASTCALL(__pyx_args, 7);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[7])) __PYX_ERR(0, 564, __pyx_L3_error)
      values[8] = __Pyx_ArgRef_FASTCALL(__pyx_args, 8);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[8])) __PYX_ERR(0, 564, __pyx_L3_error)
    }
    __pyx_v_target = __Pyx_PyLong_As_GLenum(values[0]); if (unlikely((__pyx_v_target == ((GLenum)-1)) && PyErr_Occurred())) __PYX_ERR(0, 564, __pyx_L3_error)
    __pyx_v_level = __Pyx_PyLong_As_GLint(values[1]); if (unlikely((__pyx_v_level == ((GLint)-1)) && PyErr_Occurred())) __PYX_ERR(0, 564, __pyx_L3_error)
    __pyx_v_xoffset = __Pyx_PyLong_As_GLint(values[2]); if (unlikely((__pyx_v_xoffset == ((GLint)-1)) && PyErr_Occurred())) __PYX_ERR(0, 564, __pyx_L3_error)
    __pyx_v_yoffset = __Pyx_PyLong_As_GLint(values[3]); if (unlikely((__pyx_v_yoffset == ((GLint)-1)) && PyErr_Occurred())) __PYX_ERR(0, 564, __pyx_L3_error)
    __pyx_v_width = __Pyx_PyLong_As_GLsizei(values[4]); if (unlikely((__pyx_v_width == ((GLsizei)-1)) && PyErr_Occurred())) __PYX_ERR(0, 565, __pyx_L3_error)
    __pyx_v_height = __Pyx_PyLong_As_GLsizei(values[5]); if (unlikely((__pyx_v_height == ((GLsizei)-1)) && PyErr_Occurred())) __PYX_ERR(0, 565, __pyx_L3_error)
    __pyx_v_format = __Pyx_PyLong_As_GLenum(values[6]); if (unlikely((__pyx_v_format == ((GLenum)-1)) && PyErr_Occurred())) __PYX_ERR(0, 565, __pyx_L3_error)
    __pyx_v_imageSize = __Pyx_PyLong_As_GLsizei(values[7]); if (unlikely((__pyx_v_imageSize == ((GLsizei)-1)) && PyErr_Occurred())) __PYX_ERR(0, 566, __pyx_L3_error)
    __pyx_v_data = ((PyObject*)values[8]);
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("glCompressedTexSubImage2D", 1, 9, 9, __pyx_nargs); __PYX_ERR(0, 564, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("kivy.graphics.opengl.glCompressedTexSubImage2D", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_data), (&PyBytes_Type), 1, "data", 1))) __PYX_ERR(0, 566, __pyx_L1_error)
  __pyx_r = __pyx_pf_4kivy_8graphics_6opengl_42glCompressedTexSubImage2D(__pyx_self, __pyx_v_target, __pyx_v_level, __pyx_v_xoffset, __pyx_v_yoffset, __pyx_v_width, __pyx_v_height, __pyx_v_format, __pyx_v_imageSize, __pyx_v_data);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  goto __pyx_L7_cleaned_up;
  __pyx_L0:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __pyx_L7_cleaned_up:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4kivy_8graphics_6opengl_42glCompressedTexSubImage2D(CYTHON_UNUSED PyObject *__pyx_self, GLenum __pyx_v_target, GLint __pyx_v_level, GLint __pyx_v_xoffset, GLint __pyx_v_yoffset, GLsizei __pyx_v_width, GLsizei __pyx_v_height, GLenum __pyx_v_format, GLsizei __pyx_v_imageSize, PyObject *__pyx_v_data) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  char *__pyx_t_1;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("glCompressedTexSubImage2D", 0);

  /* "kivy/graphics/opengl.pyx":571
 *     '''
 *     cgl.glCompressedTexSubImage2D(target, level, xoffset, yoffset, width,
 *                                        height, format, imageSize, <char *>data)             # <<<<<<<<<<<<<<
 * 
 * def glCopyTexImage2D(GLenum target, GLint level, GLenum internalformat, GLint x, GLint y, GLsizei width, GLsizei height, GLint border):
*/
  if (unlikely(__pyx_v_data == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "expected bytes, NoneType found");
    __PYX_ERR(0, 571, __pyx_L1_error)
  }
  __pyx_t_1 = __Pyx_PyBytes_AsWritableString(__pyx_v_data); if (unlikely((!__pyx_t_1) && PyErr_Occurred())) __PYX_ERR(0, 571, __pyx_L1_error)

  /* "kivy/graphics/opengl.pyx":570
 *     <http://www.khronos.org/opengles/sdk/docs/man/xhtml/glCompressedTexSubImage2D.xml>`_
 *     '''
 *     cgl.glCompressedTexSubImage2D(target, level, xoffset, yoffset, width,             # <<<<<<<<<<<<<<
 *                                        height, format, imageSize, <char *>data)
 * 
*/
  __pyx_v_4kivy_8graphics_3cgl_cgl->glCompressedTexSubImage2D(__pyx_v_target, __pyx_v_level, __pyx_v_xoffset, __pyx_v_yoffset, __pyx_v_width, __pyx_v_height, __pyx_v_format, __pyx_v_imageSize, ((char *)__pyx_t_1)); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 570, __pyx_L1_error)

  /* "kivy/graphics/opengl.pyx":564
 *                                     height, border, imageSize, <char *>data)
 * 
 * def glCompressedTexSubImage2D(GLenum target, GLint level, GLint xoffset, GLint             # <<<<<<<<<<<<<<
 *                               yoffset, GLsizei width, GLsizei height, GLenum
 *                               format, GLsizei imageSize,  bytes data):
*/

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

/* "kivy/graphics/opengl.pyx":573
 *                                        height, format, imageSize, <char *>data)
 * 
 * def glCopyTexImage2D(GLenum target, GLint level, GLenum internalformat, GLint x, GLint y, GLsizei width, GLsizei height, GLint border):             # <<<<<<<<<<<<<<
 *     '''See: `glCopyTexImage2D() on Kronos website
 *     <http://www.khronos.org/opengles/sdk/docs/man/xhtml/glCopyTexImage2D.xml>`_
*/

/* Python wrapper */
static PyObject *__pyx_pw_4kivy_8graphics_6opengl_45glCopyTexImage2D(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_4kivy_8graphics_6opengl_44glCopyTexImage2D, "glCopyTexImage2D(GLenum target, GLint level, GLenum internalformat, GLint x, GLint y, GLsizei width, GLsizei height, GLint border)\n\nSee: `glCopyTexImage2D() on Kronos website\n<http://www.khronos.org/opengles/sdk/docs/man/xhtml/glCopyTexImage2D.xml>`_");
static PyMethodDef __pyx_mdef_4kivy_8graphics_6opengl_45glCopyTexImage2D = {"glCopyTexImage2D", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4kivy_8graphics_6opengl_45glCopyTexImage2D, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4kivy_8graphics_6opengl_44glCopyTexImage2D};
static PyObject *__pyx_pw_4kivy_8graphics_6opengl_45glCopyTexImage2D(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  GLenum __pyx_v_target;
  GLint __pyx_v_level;
  GLenum __pyx_v_internalformat;
  GLint __pyx_v_x;
  GLint __pyx_v_y;
  GLsizei __pyx_v_width;
  GLsizei __pyx_v_height;
  GLint __pyx_v_border;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[8] = {0,0,0,0,0,0,0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("glCopyTexImage2D (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_target,&__pyx_mstate_global->__pyx_n_u_level,&__pyx_mstate_global->__pyx_n_u_internalformat,&__pyx_mstate_global->__pyx_n_u_x,&__pyx_mstate_global->__pyx_n_u_y,&__pyx_mstate_global->__pyx_n_u_width,&__pyx_mstate_global->__pyx_n_u_height,&__pyx_mstate_global->__pyx_n_u_border,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(0, 573, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  8:
        values[7] = __Pyx_ArgRef_FASTCALL(__pyx_args, 7);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[7])) __PYX_ERR(0, 573, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  7:
        values[6] = __Pyx_ArgRef_FASTCALL(__pyx_args, 6);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[6])) __PYX_ERR(0, 573, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  6:
        values[5] = __Pyx_ArgRef_FASTCALL(__pyx_args, 5);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[5])) __PYX_ERR(0, 573, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  5:
        values[4] = __Pyx_ArgRef_FASTCALL(__pyx_args, 4);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[4])) __PYX_ERR(0, 573, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  4:
        values[3] = __Pyx_ArgRef_FASTCALL(__pyx_args, 3);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[3])) __PYX_ERR(0, 573, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  3:
        values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(0, 573, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 573, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 573, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "glCopyTexImage2D", 0) < (0)) __PYX_ERR(0, 573, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 8; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("glCopyTexImage2D", 1, 8, 8, i); __PYX_ERR(0, 573, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 8)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 573, __pyx_L3_error)
      values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 573, __pyx_L3_error)
      values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(0, 573, __pyx_L3_error)
      values[3] = __Pyx_ArgRef_FASTCALL(__pyx_args, 3);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[3])) __PYX_ERR(0, 573, __pyx_L3_error)
      values[4] = __Pyx_ArgRef_FASTCALL(__pyx_args, 4);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[4])) __PYX_ERR(0, 573, __pyx_L3_error)
      values[5] = __Pyx_ArgRef_FASTCALL(__pyx_args, 5);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[5])) __PYX_ERR(0, 573, __pyx_L3_error)
      values[6] = __Pyx_ArgRef_FASTCALL(__pyx_args, 6);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[6])) __PYX_ERR(0, 573, __pyx_L3_error)
      values[7] = __Pyx_ArgRef_FASTCALL(__pyx_args, 7);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[7])) __PYX_ERR(0, 573, __pyx_L3_error)
    }
    __pyx_v_target = __Pyx_PyLong_As_GLenum(values[0]); if (unlikely((__pyx_v_target == ((GLenum)-1)) && PyErr_Occurred())) __PYX_ERR(0, 573, __pyx_L3_error)
    __pyx_v_level = __Pyx_PyLong_As_GLint(values[1]); if (unlikely((__pyx_v_level == ((GLint)-1)) && PyErr_Occurred())) __PYX_ERR(0, 573, __pyx_L3_error)
    __pyx_v_internalformat = __Pyx_PyLong_As_GLenum(values[2]); if (unlikely((__pyx_v_internalformat == ((GLenum)-1)) && PyErr_Occurred())) __PYX_ERR(0, 573, __pyx_L3_error)
    __pyx_v_x = __Pyx_PyLong_As_GLint(values[3]); if (unlikely((__pyx_v_x == ((GLint)-1)) && PyErr_Occurred())) __PYX_ERR(0, 573, __pyx_L3_error)
    __pyx_v_y = __Pyx_PyLong_As_GLint(values[4]); if (unlikely((__pyx_v_y == ((GLint)-1)) && PyErr_Occurred())) __PYX_ERR(0, 573, __pyx_L3_error)
    __pyx_v_width = __Pyx_PyLong_As_GLsizei(values[5]); if (unlikely((__pyx_v_width == ((GLsizei)-1)) && PyErr_Occurred())) __PYX_ERR(0, 573, __pyx_L3_error)
    __pyx_v_height = __Pyx_PyLong_As_GLsizei(values[6]); if (unlikely((__pyx_v_height == ((GLsizei)-1)) && PyErr_Occurred())) __PYX_ERR(0, 573, __pyx_L3_error)
    __pyx_v_border = __Pyx_PyLong_As_GLint(values[7]); if (unlikely((__pyx_v_border == ((GLint)-1)) && PyErr_Occurred())) __PYX_ERR(0, 573, __pyx_L3_error)
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("glCopyTexImage2D", 1, 8, 8, __pyx_nargs); __PYX_ERR(0, 573, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("kivy.graphics.opengl.glCopyTexImage2D", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4kivy_8graphics_6opengl_44glCopyTexImage2D(__pyx_self, __pyx_v_target, __pyx_v_level, __pyx_v_internalformat, __pyx_v_x, __pyx_v_y, __pyx_v_width, __pyx_v_height, __pyx_v_border);

  /* function exit code */
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4kivy_8graphics_6opengl_44glCopyTexImage2D(CYTHON_UNUSED PyObject *__pyx_self, GLenum __pyx_v_target, GLint __pyx_v_level, GLenum __pyx_v_internalformat, GLint __pyx_v_x, GLint __pyx_v_y, GLsizei __pyx_v_width, GLsizei __pyx_v_height, GLint __pyx_v_border) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("glCopyTexImage2D", 0);

  /* "kivy/graphics/opengl.pyx":577
 *     <http://www.khronos.org/opengles/sdk/docs/man/xhtml/glCopyTexImage2D.xml>`_
 *     '''
 *     cgl.glCopyTexImage2D(target, level, internalformat, x, y, width, height, border)             # <<<<<<<<<<<<<<
 * 
 * def glCopyTexSubImage2D(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint x, GLint y, GLsizei width, GLsizei height):
*/
  __pyx_v_4kivy_8graphics_3cgl_cgl->glCopyTexImage2D(__pyx_v_target, __pyx_v_level, __pyx_v_internalformat, __pyx_v_x, __pyx_v_y, __pyx_v_width, __pyx_v_height, __pyx_v_border); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 577, __pyx_L1_error)

  /* "kivy/graphics/opengl.pyx":573
 *                                        height, format, imageSize, <char *>data)
 * 
 * def glCopyTexImage2D(GLenum target, GLint level, GLenum internalformat, GLint x, GLint y, GLsizei width, GLsizei height, GLint border):             # <<<<<<<<<<<<<<
 *     '''See: `glCopyTexImage2D() on Kronos website
 *     <http://www.khronos.org/opengles/sdk/docs/man/xhtml/glCopyTexImage2D.xml>`_
*/

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

/* "kivy/graphics/opengl.pyx":579
 *     cgl.glCopyTexImage2D(target, level, internalformat, x, y, width, height, border)
 * 
 * def glCopyTexSubImage2D(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint x, GLint y, GLsizei width, GLsizei height):             # <<<<<<<<<<<<<<
 *     '''See: `glCopyTexSubImage2D() on Kronos website
 *     <http://www.khronos.org/opengles/sdk/docs/man/xhtml/glCopyTexSubImage2D.xml>`_
*/

/* Python wrapper */
static PyObject *__pyx_pw_4kivy_8graphics_6opengl_47glCopyTexSubImage2D(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_4kivy_8graphics_6opengl_46glCopyTexSubImage2D, "glCopyTexSubImage2D(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint x, GLint y, GLsizei width, GLsizei height)\n\nSee: `glCopyTexSubImage2D() on Kronos website\n<http://www.khronos.org/opengles/sdk/docs/man/xhtml/glCopyTexSubImage2D.xml>`_");
static PyMethodDef __pyx_mdef_4kivy_8graphics_6opengl_47glCopyTexSubImage2D = {"glCopyTexSubImage2D", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4kivy_8graphics_6opengl_47glCopyTexSubImage2D, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4kivy_8graphics_6opengl_46glCopyTexSubImage2D};
static PyObject *__pyx_pw_4kivy_8graphics_6opengl_47glCopyTexSubImage2D(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  GLenum __pyx_v_target;
  GLint __pyx_v_level;
  GLint __pyx_v_xoffset;
  GLint __pyx_v_yoffset;
  GLint __pyx_v_x;
  GLint __pyx_v_y;
  GLsizei __pyx_v_width;
  GLsizei __pyx_v_height;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[8] = {0,0,0,0,0,0,0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("glCopyTexSubImage2D (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_target,&__pyx_mstate_global->__pyx_n_u_level,&__pyx_mstate_global->__pyx_n_u_xoffset,&__pyx_mstate_global->__pyx_n_u_yoffset,&__pyx_mstate_global->__pyx_n_u_x,&__pyx_mstate_global->__pyx_n_u_y,&__pyx_mstate_global->__pyx_n_u_width,&__pyx_mstate_global->__pyx_n_u_height,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(0, 579, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  8:
        values[7] = __Pyx_ArgRef_FASTCALL(__pyx_args, 7);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[7])) __PYX_ERR(0, 579, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  7:
        values[6] = __Pyx_ArgRef_FASTCALL(__pyx_args, 6);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[6])) __PYX_ERR(0, 579, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  6:
        values[5] = __Pyx_ArgRef_FASTCALL(__pyx_args, 5);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[5])) __PYX_ERR(0, 579, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  5:
        values[4] = __Pyx_ArgRef_FASTCALL(__pyx_args, 4);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[4])) __PYX_ERR(0, 579, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  4:
        values[3] = __Pyx_ArgRef_FASTCALL(__pyx_args, 3);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[3])) __PYX_ERR(0, 579, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  3:
        values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(0, 579, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 579, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 579, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "glCopyTexSubImage2D", 0) < (0)) __PYX_ERR(0, 579, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 8; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("glCopyTexSubImage2D", 1, 8, 8, i); __PYX_ERR(0, 579, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 8)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 579, __pyx_L3_error)
      values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 579, __pyx_L3_error)
      values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(0, 579, __pyx_L3_error)
      values[3] = __Pyx_ArgRef_FASTCALL(__pyx_args, 3);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[3])) __PYX_ERR(0, 579, __pyx_L3_error)
      values[4] = __Pyx_ArgRef_FASTCALL(__pyx_args, 4);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[4])) __PYX_ERR(0, 579, __pyx_L3_error)
      values[5] = __Pyx_ArgRef_FASTCALL(__pyx_args, 5);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[5])) __PYX_ERR(0, 579, __pyx_L3_error)
      values[6] = __Pyx_ArgRef_FASTCALL(__pyx_args, 6);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[6])) __PYX_ERR(0, 579, __pyx_L3_error)
      values[7] = __Pyx_ArgRef_FASTCALL(__pyx_args, 7);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[7])) __PYX_ERR(0, 579, __pyx_L3_error)
    }
    __pyx_v_target = __Pyx_PyLong_As_GLenum(values[0]); if (unlikely((__pyx_v_target == ((GLenum)-1)) && PyErr_Occurred())) __PYX_ERR(0, 579, __pyx_L3_error)
    __pyx_v_level = __Pyx_PyLong_As_GLint(values[1]); if (unlikely((__pyx_v_level == ((GLint)-1)) && PyErr_Occurred())) __PYX_ERR(0, 579, __pyx_L3_error)
    __pyx_v_xoffset = __Pyx_PyLong_As_GLint(values[2]); if (unlikely((__pyx_v_xoffset == ((GLint)-1)) && PyErr_Occurred())) __PYX_ERR(0, 579, __pyx_L3_error)
    __pyx_v_yoffset = __Pyx_PyLong_As_GLint(values[3]); if (unlikely((__pyx_v_yoffset == ((GLint)-1)) && PyErr_Occurred())) __PYX_ERR(0, 579, __pyx_L3_error)
    __pyx_v_x = __Pyx_PyLong_As_GLint(values[4]); if (unlikely((__pyx_v_x == ((GLint)-1)) && PyErr_Occurred())) __PYX_ERR(0, 579, __pyx_L3_error)
    __pyx_v_y = __Pyx_PyLong_As_GLint(values[5]); if (unlikely((__pyx_v_y == ((GLint)-1)) && PyErr_Occurred())) __PYX_ERR(0, 579, __pyx_L3_error)
    __pyx_v_width = __Pyx_PyLong_As_GLsizei(values[6]); if (unlikely((__pyx_v_width == ((GLsizei)-1)) && PyErr_Occurred())) __PYX_ERR(0, 579, __pyx_L3_error)
    __pyx_v_height = __Pyx_PyLong_As_GLsizei(values[7]); if (unlikely((__pyx_v_height == ((GLsizei)-1)) && PyErr_Occurred())) __PYX_ERR(0, 579, __pyx_L3_error)
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("glCopyTexSubImage2D", 1, 8, 8, __pyx_nargs); __PYX_ERR(0, 579, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("kivy.graphics.opengl.glCopyTexSubImage2D", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4kivy_8graphics_6opengl_46glCopyTexSubImage2D(__pyx_self, __pyx_v_target, __pyx_v_level, __pyx_v_xoffset, __pyx_v_yoffset, __pyx_v_x, __pyx_v_y, __pyx_v_width, __pyx_v_height);

  /* function exit code */
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4kivy_8graphics_6opengl_46glCopyTexSubImage2D(CYTHON_UNUSED PyObject *__pyx_self, GLenum __pyx_v_target, GLint __pyx_v_level, GLint __pyx_v_xoffset, GLint __pyx_v_yoffset, GLint __pyx_v_x, GLint __pyx_v_y, GLsizei __pyx_v_width, GLsizei __pyx_v_height) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("glCopyTexSubImage2D", 0);

  /* "kivy/graphics/opengl.pyx":583
 *     <http://www.khronos.org/opengles/sdk/docs/man/xhtml/glCopyTexSubImage2D.xml>`_
 *     '''
 *     cgl.glCopyTexSubImage2D(target, level, xoffset, yoffset, x, y, width, height)             # <<<<<<<<<<<<<<
 * 
 * def glCreateProgram():
*/
  __pyx_v_4kivy_8graphics_3cgl_cgl->glCopyTexSubImage2D(__pyx_v_target, __pyx_v_level, __pyx_v_xoffset, __pyx_v_yoffset, __pyx_v_x, __pyx_v_y, __pyx_v_width, __pyx_v_height); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 583, __pyx_L1_error)

  /* "kivy/graphics/opengl.pyx":579
 *     cgl.glCopyTexImage2D(target, level, internalformat, x, y, width, height, border)
 * 
 * def glCopyTexSubImage2D(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint x, GLint y, GLsizei width, GLsizei height):             # <<<<<<<<<<<<<<
 *     '''See: `glCopyTexSubImage2D() on Kronos website
 *     <http://www.khronos.org/opengles/sdk/docs/man/xhtml/glCopyTexSubImage2D.xml>`_
*/

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

/* "kivy/graphics/opengl.pyx":585
 *     cgl.glCopyTexSubImage2D(target, level, xoffset, yoffset, x, y, width, height)
 * 
 * def glCreateProgram():             # <<<<<<<<<<<<<<
 *     '''See: `glCreateProgram() on Kronos website
 *     <http://www.khronos.org/opengles/sdk/docs/man/xhtml/glCreateProgram.xml>`_
*/

/* Python wrapper */
static PyObject *__pyx_pw_4kivy_8graphics_6opengl_49glCreateProgram(PyObject *__pyx_self, CYTHON_UNUSED PyObject *unused); /*proto*/
PyDoc_STRVAR(__pyx_doc_4kivy_8graphics_6opengl_48glCreateProgram, "glCreateProgram()\n\nSee: `glCreateProgram() on Kronos website\n<http://www.khronos.org/opengles/sdk/docs/man/xhtml/glCreateProgram.xml>`_");
static PyMethodDef __pyx_mdef_4kivy_8graphics_6opengl_49glCreateProgram = {"glCreateProgram", (PyCFunction)__pyx_pw_4kivy_8graphics_6opengl_49glCreateProgram, METH_NOARGS, __pyx_doc_4kivy_8graphics_6opengl_48glCreateProgram};
static PyObject *__pyx_pw_4kivy_8graphics_6opengl_49glCreateProgram(PyObject *__pyx_self, CYTHON_UNUSED PyObject *unused) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("glCreateProgram (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4kivy_8graphics_6opengl_48glCreateProgram(__pyx_self);

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

static PyObject *__pyx_pf_4kivy_8graphics_6opengl_48glCreateProgram(CYTHON_UNUSED PyObject *__pyx_self) {
  GLuint __pyx_v_id;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  GLuint __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("glCreateProgram", 0);

  /* "kivy/graphics/opengl.pyx":590
 *     '''
 *     cdef GLuint id
 *     id = cgl.glCreateProgram()             # <<<<<<<<<<<<<<
 *     return id
 * 
*/
  __pyx_t_1 = __pyx_v_4kivy_8graphics_3cgl_cgl->glCreateProgram(); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 590, __pyx_L1_error)
  __pyx_v_id = __pyx_t_1;

  /* "kivy/graphics/opengl.pyx":591
 *     cdef GLuint id
 *     id = cgl.glCreateProgram()
 *     return id             # <<<<<<<<<<<<<<
 * 
 * def glCreateShader(GLenum type):
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_2 = __Pyx_PyLong_From_GLuint(__pyx_v_id); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 591, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_r = __pyx_t_2;
  __pyx_t_2 = 0;
  goto __pyx_L0;

  /* "kivy/graphics/opengl.pyx":585
 *     cgl.glCopyTexSubImage2D(target, level, xoffset, yoffset, x, y, width, height)
 * 
 * def glCreateProgram():             # <<<<<<<<<<<<<<
 *     '''See: `glCreateProgram() on Kronos website
 *     <http://www.khronos.org/opengles/sdk/docs/man/xhtml/glCreateProgram.xml>`_
*/

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

/* "kivy/graphics/opengl.pyx":593
 *     return id
 * 
 * def glCreateShader(GLenum type):             # <<<<<<<<<<<<<<
 *     '''See: `glCreateShader() on Kronos website
 *     <http://www.khronos.org/opengles/sdk/docs/man/xhtml/glCreateShader.xml>`_
*/

/* Python wrapper */
static PyObject *__pyx_pw_4kivy_8graphics_6opengl_51glCreateShader(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_4kivy_8graphics_6opengl_50glCreateShader, "glCreateShader(GLenum type)\n\nSee: `glCreateShader() on Kronos website\n<http://www.khronos.org/opengles/sdk/docs/man/xhtml/glCreateShader.xml>`_");
static PyMethodDef __pyx_mdef_4kivy_8graphics_6opengl_51glCreateShader = {"glCreateShader", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4kivy_8graphics_6opengl_51glCreateShader, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4kivy_8graphics_6opengl_50glCreateShader};
static PyObject *__pyx_pw_4kivy_8graphics_6opengl_51glCreateShader(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  GLenum __pyx_v_type;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[1] = {0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("glCreateShader (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_type,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(0, 593, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 593, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "glCreateShader", 0) < (0)) __PYX_ERR(0, 593, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("glCreateShader", 1, 1, 1, i); __PYX_ERR(0, 593, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 1)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 593, __pyx_L3_error)
    }
    __pyx_v_type = __Pyx_PyLong_As_GLenum(values[0]); if (unlikely((__pyx_v_type == ((GLenum)-1)) && PyErr_Occurred())) __PYX_ERR(0, 593, __pyx_L3_error)
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("glCreateShader", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 593, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("kivy.graphics.opengl.glCreateShader", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4kivy_8graphics_6opengl_50glCreateShader(__pyx_self, __pyx_v_type);

  /* function exit code */
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4kivy_8graphics_6opengl_50glCreateShader(CYTHON_UNUSED PyObject *__pyx_self, GLenum __pyx_v_type) {
  GLuint __pyx_v_id;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  GLuint __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("glCreateShader", 0);

  /* "kivy/graphics/opengl.pyx":598
 *     '''
 *     cdef GLuint id
 *     id = cgl.glCreateShader(type)             # <<<<<<<<<<<<<<
 *     return id
 * 
*/
  __pyx_t_1 = __pyx_v_4kivy_8graphics_3cgl_cgl->glCreateShader(__pyx_v_type); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 598, __pyx_L1_error)
  __pyx_v_id = __pyx_t_1;

  /* "kivy/graphics/opengl.pyx":599
 *     cdef GLuint id
 *     id = cgl.glCreateShader(type)
 *     return id             # <<<<<<<<<<<<<<
 * 
 * def glCullFace(GLenum mode):
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_2 = __Pyx_PyLong_From_GLuint(__pyx_v_id); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 599, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_r = __pyx_t_2;
  __pyx_t_2 = 0;
  goto __pyx_L0;

  /* "kivy/graphics/opengl.pyx":593
 *     return id
 * 
 * def glCreateShader(GLenum type):             # <<<<<<<<<<<<<<
 *     '''See: `glCreateShader() on Kronos website
 *     <http://www.khronos.org/opengles/sdk/docs/man/xhtml/glCreateShader.xml>`_
*/

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

/* "kivy/graphics/opengl.pyx":601
 *     return id
 * 
 * def glCullFace(GLenum mode):             # <<<<<<<<<<<<<<
 *     '''See: `glCullFace() on Kronos website
 *     <http://www.khronos.org/opengles/sdk/docs/man/xhtml/glCullFace.xml>`_
*/

/* Python wrapper */
static PyObject *__pyx_pw_4kivy_8graphics_6opengl_53glCullFace(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_4kivy_8graphics_6opengl_52glCullFace, "glCullFace(GLenum mode)\n\nSee: `glCullFace() on Kronos website\n<http://www.khronos.org/opengles/sdk/docs/man/xhtml/glCullFace.xml>`_");
static PyMethodDef __pyx_mdef_4kivy_8graphics_6opengl_53glCullFace = {"glCullFace", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4kivy_8graphics_6opengl_53glCullFace, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4kivy_8graphics_6opengl_52glCullFace};
static PyObject *__pyx_pw_4kivy_8graphics_6opengl_53glCullFace(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  GLenum __pyx_v_mode;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[1] = {0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("glCullFace (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_mode,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(0, 601, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 601, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "glCullFace", 0) < (0)) __PYX_ERR(0, 601, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("glCullFace", 1, 1, 1, i); __PYX_ERR(0, 601, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 1)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 601, __pyx_L3_error)
    }
    __pyx_v_mode = __Pyx_PyLong_As_GLenum(values[0]); if (unlikely((__pyx_v_mode == ((GLenum)-1)) && PyErr_Occurred())) __PYX_ERR(0, 601, __pyx_L3_error)
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("glCullFace", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 601, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("kivy.graphics.opengl.glCullFace", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4kivy_8graphics_6opengl_52glCullFace(__pyx_self, __pyx_v_mode);

  /* function exit code */
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4kivy_8graphics_6opengl_52glCullFace(CYTHON_UNUSED PyObject *__pyx_self, GLenum __pyx_v_mode) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("glCullFace", 0);

  /* "kivy/graphics/opengl.pyx":605
 *     <http://www.khronos.org/opengles/sdk/docs/man/xhtml/glCullFace.xml>`_
 *     '''
 *     cgl.glCullFace(mode)             # <<<<<<<<<<<<<<
 * 
 * def glDeleteBuffers(GLsizei n, bytes buffers):
*/
  __pyx_v_4kivy_8graphics_3cgl_cgl->glCullFace(__pyx_v_mode); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 605, __pyx_L1_error)

  /* "kivy/graphics/opengl.pyx":601
 *     return id
 * 
 * def glCullFace(GLenum mode):             # <<<<<<<<<<<<<<
 *     '''See: `glCullFace() on Kronos website
 *     <http://www.khronos.org/opengles/sdk/docs/man/xhtml/glCullFace.xml>`_
*/

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

/* "kivy/graphics/opengl.pyx":607
 *     cgl.glCullFace(mode)
 * 
 * def glDeleteBuffers(GLsizei n, bytes buffers):             # <<<<<<<<<<<<<<
 *     '''See: `glDeleteBuffers() on Kronos website
 *     <http://www.khronos.org/opengles/sdk/docs/man/xhtml/glDeleteBuffers.xml>`_
*/

/* Python wrapper */
static PyObject *__pyx_pw_4kivy_8graphics_6opengl_55glDeleteBuffers(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_4kivy_8graphics_6opengl_54glDeleteBuffers, "glDeleteBuffers(GLsizei n, bytes buffers)\n\nSee: `glDeleteBuffers() on Kronos website\n<http://www.khronos.org/opengles/sdk/docs/man/xhtml/glDeleteBuffers.xml>`_");
static PyMethodDef __pyx_mdef_4kivy_8graphics_6opengl_55glDeleteBuffers = {"glDeleteBuffers", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4kivy_8graphics_6opengl_55glDeleteBuffers, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4kivy_8graphics_6opengl_54glDeleteBuffers};
static PyObject *__pyx_pw_4kivy_8graphics_6opengl_55glDeleteBuffers(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  GLsizei __pyx_v_n;
  PyObject *__pyx_v_buffers = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[2] = {0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("glDeleteBuffers (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_n,&__pyx_mstate_global->__pyx_n_u_buffers,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(0, 607, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 607, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 607, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "glDeleteBuffers", 0) < (0)) __PYX_ERR(0, 607, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 2; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("glDeleteBuffers", 1, 2, 2, i); __PYX_ERR(0, 607, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 2)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 607, __pyx_L3_error)
      values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 607, __pyx_L3_error)
    }
    __pyx_v_n = __Pyx_PyLong_As_GLsizei(values[0]); if (unlikely((__pyx_v_n == ((GLsizei)-1)) && PyErr_Occurred())) __PYX_ERR(0, 607, __pyx_L3_error)
    __pyx_v_buffers = ((PyObject*)values[1]);
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("glDeleteBuffers", 1, 2, 2, __pyx_nargs); __PYX_ERR(0, 607, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("kivy.graphics.opengl.glDeleteBuffers", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_buffers), (&PyBytes_Type), 1, "buffers", 1))) __PYX_ERR(0, 607, __pyx_L1_error)
  __pyx_r = __pyx_pf_4kivy_8graphics_6opengl_54glDeleteBuffers(__pyx_self, __pyx_v_n, __pyx_v_buffers);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  goto __pyx_L7_cleaned_up;
  __pyx_L0:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __pyx_L7_cleaned_up:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4kivy_8graphics_6opengl_54glDeleteBuffers(CYTHON_UNUSED PyObject *__pyx_self, GLsizei __pyx_v_n, PyObject *__pyx_v_buffers) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  char *__pyx_t_1;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("glDeleteBuffers", 0);

  /* "kivy/graphics/opengl.pyx":611
 *     <http://www.khronos.org/opengles/sdk/docs/man/xhtml/glDeleteBuffers.xml>`_
 *     '''
 *     cgl.glDeleteBuffers(n, <GLuint *><char *>buffers)             # <<<<<<<<<<<<<<
 * 
 * def glDeleteFramebuffers(GLsizei n, bytes framebuffers):
*/
  if (unlikely(__pyx_v_buffers == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "expected bytes, NoneType found");
    __PYX_ERR(0, 611, __pyx_L1_error)
  }
  __pyx_t_1 = __Pyx_PyBytes_AsWritableString(__pyx_v_buffers); if (unlikely((!__pyx_t_1) && PyErr_Occurred())) __PYX_ERR(0, 611, __pyx_L1_error)
  __pyx_v_4kivy_8graphics_3cgl_cgl->glDeleteBuffers(__pyx_v_n, ((GLuint *)((char *)__pyx_t_1))); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 611, __pyx_L1_error)

  /* "kivy/graphics/opengl.pyx":607
 *     cgl.glCullFace(mode)
 * 
 * def glDeleteBuffers(GLsizei n, bytes buffers):             # <<<<<<<<<<<<<<
 *     '''See: `glDeleteBuffers() on Kronos website
 *     <http://www.khronos.org/opengles/sdk/docs/man/xhtml/glDeleteBuffers.xml>`_
*/

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

/* "kivy/graphics/opengl.pyx":613
 *     cgl.glDeleteBuffers(n, <GLuint *><char *>buffers)
 * 
 * def glDeleteFramebuffers(GLsizei n, bytes framebuffers):             # <<<<<<<<<<<<<<
 *     '''See: `glDeleteFramebuffers() on Kronos website
 *     <http://www.khronos.org/opengles/sdk/docs/man/xhtml/glDeleteFramebuffers.xml>`_
*/

/* Python wrapper */
static PyObject *__pyx_pw_4kivy_8graphics_6opengl_57glDeleteFramebuffers(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_4kivy_8graphics_6opengl_56glDeleteFramebuffers, "glDeleteFramebuffers(GLsizei n, bytes framebuffers)\n\nSee: `glDeleteFramebuffers() on Kronos website\n<http://www.khronos.org/opengles/sdk/docs/man/xhtml/glDeleteFramebuffers.xml>`_");
static PyMethodDef __pyx_mdef_4kivy_8graphics_6opengl_57glDeleteFramebuffers = {"glDeleteFramebuffers", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4kivy_8graphics_6opengl_57glDeleteFramebuffers, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4kivy_8graphics_6opengl_56glDeleteFramebuffers};
static PyObject *__pyx_pw_4kivy_8graphics_6opengl_57glDeleteFramebuffers(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  GLsizei __pyx_v_n;
  PyObject *__pyx_v_framebuffers = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[2] = {0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("glDeleteFramebuffers (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_n,&__pyx_mstate_global->__pyx_n_u_framebuffers,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(0, 613, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 613, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 613, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "glDeleteFramebuffers", 0) < (0)) __PYX_ERR(0, 613, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 2; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("glDeleteFramebuffers", 1, 2, 2, i); __PYX_ERR(0, 613, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 2)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 613, __pyx_L3_error)
      values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 613, __pyx_L3_error)
    }
    __pyx_v_n = __Pyx_PyLong_As_GLsizei(values[0]); if (unlikely((__pyx_v_n == ((GLsizei)-1)) && PyErr_Occurred())) __PYX_ERR(0, 613, __pyx_L3_error)
    __pyx_v_framebuffers = ((PyObject*)values[1]);
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("glDeleteFramebuffers", 1, 2, 2, __pyx_nargs); __PYX_ERR(0, 613, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("kivy.graphics.opengl.glDeleteFramebuffers", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_framebuffers), (&PyBytes_Type), 1, "framebuffers", 1))) __PYX_ERR(0, 613, __pyx_L1_error)
  __pyx_r = __pyx_pf_4kivy_8graphics_6opengl_56glDeleteFramebuffers(__pyx_self, __pyx_v_n, __pyx_v_framebuffers);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  goto __pyx_L7_cleaned_up;
  __pyx_L0:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __pyx_L7_cleaned_up:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4kivy_8graphics_6opengl_56glDeleteFramebuffers(CYTHON_UNUSED PyObject *__pyx_self, GLsizei __pyx_v_n, PyObject *__pyx_v_framebuffers) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  char *__pyx_t_1;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("glDeleteFramebuffers", 0);

  /* "kivy/graphics/opengl.pyx":617
 *     <http://www.khronos.org/opengles/sdk/docs/man/xhtml/glDeleteFramebuffers.xml>`_
 *     '''
 *     cgl.glDeleteFramebuffers(n, <GLuint *><char *>framebuffers)             # <<<<<<<<<<<<<<
 * 
 * def glDeleteProgram(GLuint program):
*/
  if (unlikely(__pyx_v_framebuffers == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "expected bytes, NoneType found");
    __PYX_ERR(0, 617, __pyx_L1_error)
  }
  __pyx_t_1 = __Pyx_PyBytes_AsWritableString(__pyx_v_framebuffers); if (unlikely((!__pyx_t_1) && PyErr_Occurred())) __PYX_ERR(0, 617, __pyx_L1_error)
  __pyx_v_4kivy_8graphics_3cgl_cgl->glDeleteFramebuffers(__pyx_v_n, ((GLuint *)((char *)__pyx_t_1))); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 617, __pyx_L1_error)

  /* "kivy/graphics/opengl.pyx":613
 *     cgl.glDeleteBuffers(n, <GLuint *><char *>buffers)
 * 
 * def glDeleteFramebuffers(GLsizei n, bytes framebuffers):             # <<<<<<<<<<<<<<
 *     '''See: `glDeleteFramebuffers() on Kronos website
 *     <http://www.khronos.org/opengles/sdk/docs/man/xhtml/glDeleteFramebuffers.xml>`_
*/

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

/* "kivy/graphics/opengl.pyx":619
 *     cgl.glDeleteFramebuffers(n, <GLuint *><char *>framebuffers)
 * 
 * def glDeleteProgram(GLuint program):             # <<<<<<<<<<<<<<
 *     '''See: `glDeleteProgram() on Kronos website
 *     <http://www.khronos.org/opengles/sdk/docs/man/xhtml/glDeleteProgram.xml>`_
*/

/* Python wrapper */
static PyObject *__pyx_pw_4kivy_8graphics_6opengl_59glDeleteProgram(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_4kivy_8graphics_6opengl_58glDeleteProgram, "glDeleteProgram(GLuint program)\n\nSee: `glDeleteProgram() on Kronos website\n<http://www.khronos.org/opengles/sdk/docs/man/xhtml/glDeleteProgram.xml>`_");
static PyMethodDef __pyx_mdef_4kivy_8graphics_6opengl_59glDeleteProgram = {"glDeleteProgram", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4kivy_8graphics_6opengl_59glDeleteProgram, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4kivy_8graphics_6opengl_58glDeleteProgram};
static PyObject *__pyx_pw_4kivy_8graphics_6opengl_59glDeleteProgram(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  GLuint __pyx_v_program;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[1] = {0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("glDeleteProgram (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_program,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(0, 619, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 619, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "glDeleteProgram", 0) < (0)) __PYX_ERR(0, 619, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("glDeleteProgram", 1, 1, 1, i); __PYX_ERR(0, 619, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 1)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 619, __pyx_L3_error)
    }
    __pyx_v_program = __Pyx_PyLong_As_GLuint(values[0]); if (unlikely((__pyx_v_program == ((GLuint)-1)) && PyErr_Occurred())) __PYX_ERR(0, 619, __pyx_L3_error)
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("glDeleteProgram", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 619, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("kivy.graphics.opengl.glDeleteProgram", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4kivy_8graphics_6opengl_58glDeleteProgram(__pyx_self, __pyx_v_program);

  /* function exit code */
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4kivy_8graphics_6opengl_58glDeleteProgram(CYTHON_UNUSED PyObject *__pyx_self, GLuint __pyx_v_program) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("glDeleteProgram", 0);

  /* "kivy/graphics/opengl.pyx":623
 *     <http://www.khronos.org/opengles/sdk/docs/man/xhtml/glDeleteProgram.xml>`_
 *     '''
 *     cgl.glDeleteProgram(program)             # <<<<<<<<<<<<<<
 * 
 * def glDeleteRenderbuffers(GLsizei n, bytes renderbuffers):
*/
  __pyx_v_4kivy_8graphics_3cgl_cgl->glDeleteProgram(__pyx_v_program); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 623, __pyx_L1_error)

  /* "kivy/graphics/opengl.pyx":619
 *     cgl.glDeleteFramebuffers(n, <GLuint *><char *>framebuffers)
 * 
 * def glDeleteProgram(GLuint program):             # <<<<<<<<<<<<<<
 *     '''See: `glDeleteProgram() on Kronos website
 *     <http://www.khronos.org/opengles/sdk/docs/man/xhtml/glDeleteProgram.xml>`_
*/

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

/* "kivy/graphics/opengl.pyx":625
 *     cgl.glDeleteProgram(program)
 * 
 * def glDeleteRenderbuffers(GLsizei n, bytes renderbuffers):             # <<<<<<<<<<<<<<
 *     '''See: `glDeleteRenderbuffers() on Kronos website
 *     <http://www.khronos.org/opengles/sdk/docs/man/xhtml/glDeleteRenderbuffers.xml>`_
*/

/* Python wrapper */
static PyObject *__pyx_pw_4kivy_8graphics_6opengl_61glDeleteRenderbuffers(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_4kivy_8graphics_6opengl_60glDeleteRenderbuffers, "glDeleteRenderbuffers(GLsizei n, bytes renderbuffers)\n\nSee: `glDeleteRenderbuffers() on Kronos website\n<http://www.khronos.org/opengles/sdk/docs/man/xhtml/glDeleteRenderbuffers.xml>`_");
static PyMethodDef __pyx_mdef_4kivy_8graphics_6opengl_61glDeleteRenderbuffers = {"glDeleteRenderbuffers", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4kivy_8graphics_6opengl_61glDeleteRenderbuffers, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4kivy_8graphics_6opengl_60glDeleteRenderbuffers};
static PyObject *__pyx_pw_4kivy_8graphics_6opengl_61glDeleteRenderbuffers(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  GLsizei __pyx_v_n;
  PyObject *__pyx_v_renderbuffers = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[2] = {0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("glDeleteRenderbuffers (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_n,&__pyx_mstate_global->__pyx_n_u_renderbuffers,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(0, 625, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 625, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 625, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "glDeleteRenderbuffers", 0) < (0)) __PYX_ERR(0, 625, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 2; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("glDeleteRenderbuffers", 1, 2, 2, i); __PYX_ERR(0, 625, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 2)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 625, __pyx_L3_error)
      values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 625, __pyx_L3_error)
    }
    __pyx_v_n = __Pyx_PyLong_As_GLsizei(values[0]); if (unlikely((__pyx_v_n == ((GLsizei)-1)) && PyErr_Occurred())) __PYX_ERR(0, 625, __pyx_L3_error)
    __pyx_v_renderbuffers = ((PyObject*)values[1]);
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("glDeleteRenderbuffers", 1, 2, 2, __pyx_nargs); __PYX_ERR(0, 625, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("kivy.graphics.opengl.glDeleteRenderbuffers", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_renderbuffers), (&PyBytes_Type), 1, "renderbuffers", 1))) __PYX_ERR(0, 625, __pyx_L1_error)
  __pyx_r = __pyx_pf_4kivy_8graphics_6opengl_60glDeleteRenderbuffers(__pyx_self, __pyx_v_n, __pyx_v_renderbuffers);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  goto __pyx_L7_cleaned_up;
  __pyx_L0:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __pyx_L7_cleaned_up:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4kivy_8graphics_6opengl_60glDeleteRenderbuffers(CYTHON_UNUSED PyObject *__pyx_self, GLsizei __pyx_v_n, PyObject *__pyx_v_renderbuffers) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  char *__pyx_t_1;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("glDeleteRenderbuffers", 0);

  /* "kivy/graphics/opengl.pyx":629
 *     <http://www.khronos.org/opengles/sdk/docs/man/xhtml/glDeleteRenderbuffers.xml>`_
 *     '''
 *     cgl.glDeleteRenderbuffers(n, <GLuint *><char *>renderbuffers)             # <<<<<<<<<<<<<<
 * 
 * def glDeleteShader(GLuint shader):
*/
  if (unlikely(__pyx_v_renderbuffers == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "expected bytes, NoneType found");
    __PYX_ERR(0, 629, __pyx_L1_error)
  }
  __pyx_t_1 = __Pyx_PyBytes_AsWritableString(__pyx_v_renderbuffers); if (unlikely((!__pyx_t_1) && PyErr_Occurred())) __PYX_ERR(0, 629, __pyx_L1_error)
  __pyx_v_4kivy_8graphics_3cgl_cgl->glDeleteRenderbuffers(__pyx_v_n, ((GLuint *)((char *)__pyx_t_1))); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 629, __pyx_L1_error)

  /* "kivy/graphics/opengl.pyx":625
 *     cgl.glDeleteProgram(program)
 * 
 * def glDeleteRenderbuffers(GLsizei n, bytes renderbuffers):             # <<<<<<<<<<<<<<
 *     '''See: `glDeleteRenderbuffers() on Kronos website
 *     <http://www.khronos.org/opengles/sdk/docs/man/xhtml/glDeleteRenderbuffers.xml>`_
*/

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

/* "kivy/graphics/opengl.pyx":631
 *     cgl.glDeleteRenderbuffers(n, <GLuint *><char *>renderbuffers)
 * 
 * def glDeleteShader(GLuint shader):             # <<<<<<<<<<<<<<
 *     '''See: `glDeleteShader() on Kronos website
 *     <http://www.khronos.org/opengles/sdk/docs/man/xhtml/glDeleteShader.xml>`_
*/

/* Python wrapper */
static PyObject *__pyx_pw_4kivy_8graphics_6opengl_63glDeleteShader(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_4kivy_8graphics_6opengl_62glDeleteShader, "glDeleteShader(GLuint shader)\n\nSee: `glDeleteShader() on Kronos website\n<http://www.khronos.org/opengles/sdk/docs/man/xhtml/glDeleteShader.xml>`_");
static PyMethodDef __pyx_mdef_4kivy_8graphics_6opengl_63glDeleteShader = {"glDeleteShader", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4kivy_8graphics_6opengl_63glDeleteShader, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4kivy_8graphics_6opengl_62glDeleteShader};
static PyObject *__pyx_pw_4kivy_8graphics_6opengl_63glDeleteShader(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  GLuint __pyx_v_shader;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[1] = {0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("glDeleteShader (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_shader,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(0, 631, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 631, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "glDeleteShader", 0) < (0)) __PYX_ERR(0, 631, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("glDeleteShader", 1, 1, 1, i); __PYX_ERR(0, 631, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 1)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 631, __pyx_L3_error)
    }
    __pyx_v_shader = __Pyx_PyLong_As_GLuint(values[0]); if (unlikely((__pyx_v_shader == ((GLuint)-1)) && PyErr_Occurred())) __PYX_ERR(0, 631, __pyx_L3_error)
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("glDeleteShader", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 631, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("kivy.graphics.opengl.glDeleteShader", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4kivy_8graphics_6opengl_62glDeleteShader(__pyx_self, __pyx_v_shader);

  /* function exit code */
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4kivy_8graphics_6opengl_62glDeleteShader(CYTHON_UNUSED PyObject *__pyx_self, GLuint __pyx_v_shader) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("glDeleteShader", 0);

  /* "kivy/graphics/opengl.pyx":635
 *     <http://www.khronos.org/opengles/sdk/docs/man/xhtml/glDeleteShader.xml>`_
 *     '''
 *     cgl.glDeleteShader(shader)             # <<<<<<<<<<<<<<
 * 
 * def glDeleteTextures(GLsizei n, bytes textures):
*/
  __pyx_v_4kivy_8graphics_3cgl_cgl->glDeleteShader(__pyx_v_shader); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 635, __pyx_L1_error)

  /* "kivy/graphics/opengl.pyx":631
 *     cgl.glDeleteRenderbuffers(n, <GLuint *><char *>renderbuffers)
 * 
 * def glDeleteShader(GLuint shader):             # <<<<<<<<<<<<<<
 *     '''See: `glDeleteShader() on Kronos website
 *     <http://www.khronos.org/opengles/sdk/docs/man/xhtml/glDeleteShader.xml>`_
*/

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

/* "kivy/graphics/opengl.pyx":637
 *     cgl.glDeleteShader(shader)
 * 
 * def glDeleteTextures(GLsizei n, bytes textures):             # <<<<<<<<<<<<<<
 *     '''See: `glDeleteTextures() on Kronos website
 *     <http://www.khronos.org/opengles/sdk/docs/man/xhtml/glDeleteTextures.xml>`_
*/

/* Python wrapper */
static PyObject *__pyx_pw_4kivy_8graphics_6opengl_65glDeleteTextures(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_4kivy_8graphics_6opengl_64glDeleteTextures, "glDeleteTextures(GLsizei n, bytes textures)\n\nSee: `glDeleteTextures() on Kronos website\n<http://www.khronos.org/opengles/sdk/docs/man/xhtml/glDeleteTextures.xml>`_");
static PyMethodDef __pyx_mdef_4kivy_8graphics_6opengl_65glDeleteTextures = {"glDeleteTextures", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4kivy_8graphics_6opengl_65glDeleteTextures, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4kivy_8graphics_6opengl_64glDeleteTextures};
static PyObject *__pyx_pw_4kivy_8graphics_6opengl_65glDeleteTextures(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  GLsizei __pyx_v_n;
  PyObject *__pyx_v_textures = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[2] = {0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("glDeleteTextures (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_n,&__pyx_mstate_global->__pyx_n_u_textures,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(0, 637, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 637, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 637, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "glDeleteTextures", 0) < (0)) __PYX_ERR(0, 637, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 2; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("glDeleteTextures", 1, 2, 2, i); __PYX_ERR(0, 637, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 2)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 637, __pyx_L3_error)
      values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 637, __pyx_L3_error)
    }
    __pyx_v_n = __Pyx_PyLong_As_GLsizei(values[0]); if (unlikely((__pyx_v_n == ((GLsizei)-1)) && PyErr_Occurred())) __PYX_ERR(0, 637, __pyx_L3_error)
    __pyx_v_textures = ((PyObject*)values[1]);
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("glDeleteTextures", 1, 2, 2, __pyx_nargs); __PYX_ERR(0, 637, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("kivy.graphics.opengl.glDeleteTextures", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_textures), (&PyBytes_Type), 1, "textures", 1))) __PYX_ERR(0, 637, __pyx_L1_error)
  __pyx_r = __pyx_pf_4kivy_8graphics_6opengl_64glDeleteTextures(__pyx_self, __pyx_v_n, __pyx_v_textures);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  goto __pyx_L7_cleaned_up;
  __pyx_L0:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __pyx_L7_cleaned_up:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4kivy_8graphics_6opengl_64glDeleteTextures(CYTHON_UNUSED PyObject *__pyx_self, GLsizei __pyx_v_n, PyObject *__pyx_v_textures) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  char *__pyx_t_1;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("glDeleteTextures", 0);

  /* "kivy/graphics/opengl.pyx":641
 *     <http://www.khronos.org/opengles/sdk/docs/man/xhtml/glDeleteTextures.xml>`_
 *     '''
 *     cgl.glDeleteTextures(n, <GLuint *><char *>textures)             # <<<<<<<<<<<<<<
 * 
 * def glDepthFunc(GLenum func):
*/
  if (unlikely(__pyx_v_textures == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "expected bytes, NoneType found");
    __PYX_ERR(0, 641, __pyx_L1_error)
  }
  __pyx_t_1 = __Pyx_PyBytes_AsWritableString(__pyx_v_textures); if (unlikely((!__pyx_t_1) && PyErr_Occurred())) __PYX_ERR(0, 641, __pyx_L1_error)
  __pyx_v_4kivy_8graphics_3cgl_cgl->glDeleteTextures(__pyx_v_n, ((GLuint *)((char *)__pyx_t_1))); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 641, __pyx_L1_error)

  /* "kivy/graphics/opengl.pyx":637
 *     cgl.glDeleteShader(shader)
 * 
 * def glDeleteTextures(GLsizei n, bytes textures):             # <<<<<<<<<<<<<<
 *     '''See: `glDeleteTextures() on Kronos website
 *     <http://www.khronos.org/opengles/sdk/docs/man/xhtml/glDeleteTextures.xml>`_
*/

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

/* "kivy/graphics/opengl.pyx":643
 *     cgl.glDeleteTextures(n, <GLuint *><char *>textures)
 * 
 * def glDepthFunc(GLenum func):             # <<<<<<<<<<<<<<
 *     '''See: `glDepthFunc() on Kronos website
 *     <http://www.khronos.org/opengles/sdk/docs/man/xhtml/glDepthFunc.xml>`_
*/

/* Python wrapper */
static PyObject *__pyx_pw_4kivy_8graphics_6opengl_67glDepthFunc(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_4kivy_8graphics_6opengl_66glDepthFunc, "glDepthFunc(GLenum func)\n\nSee: `glDepthFunc() on Kronos website\n<http://www.khronos.org/opengles/sdk/docs/man/xhtml/glDepthFunc.xml>`_");
static PyMethodDef __pyx_mdef_4kivy_8graphics_6opengl_67glDepthFunc = {"glDepthFunc", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4kivy_8graphics_6opengl_67glDepthFunc, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4kivy_8graphics_6opengl_66glDepthFunc};
static PyObject *__pyx_pw_4kivy_8graphics_6opengl_67glDepthFunc(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  GLenum __pyx_v_func;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[1] = {0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("glDepthFunc (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_func,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(0, 643, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 643, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "glDepthFunc", 0) < (0)) __PYX_ERR(0, 643, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("glDepthFunc", 1, 1, 1, i); __PYX_ERR(0, 643, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 1)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 643, __pyx_L3_error)
    }
    __pyx_v_func = __Pyx_PyLong_As_GLenum(values[0]); if (unlikely((__pyx_v_func == ((GLenum)-1)) && PyErr_Occurred())) __PYX_ERR(0, 643, __pyx_L3_error)
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("glDepthFunc", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 643, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("kivy.graphics.opengl.glDepthFunc", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4kivy_8graphics_6opengl_66glDepthFunc(__pyx_self, __pyx_v_func);

  /* function exit code */
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4kivy_8graphics_6opengl_66glDepthFunc(CYTHON_UNUSED PyObject *__pyx_self, GLenum __pyx_v_func) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("glDepthFunc", 0);

  /* "kivy/graphics/opengl.pyx":647
 *     <http://www.khronos.org/opengles/sdk/docs/man/xhtml/glDepthFunc.xml>`_
 *     '''
 *     cgl.glDepthFunc(func)             # <<<<<<<<<<<<<<
 * 
 * def glDepthMask(GLboolean flag):
*/
  __pyx_v_4kivy_8graphics_3cgl_cgl->glDepthFunc(__pyx_v_func); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 647, __pyx_L1_error)

  /* "kivy/graphics/opengl.pyx":643
 *     cgl.glDeleteTextures(n, <GLuint *><char *>textures)
 * 
 * def glDepthFunc(GLenum func):             # <<<<<<<<<<<<<<
 *     '''See: `glDepthFunc() on Kronos website
 *     <http://www.khronos.org/opengles/sdk/docs/man/xhtml/glDepthFunc.xml>`_
*/

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

/* "kivy/graphics/opengl.pyx":649
 *     cgl.glDepthFunc(func)
 * 
 * def glDepthMask(GLboolean flag):             # <<<<<<<<<<<<<<
 *     '''See: `glDepthMask() on Kronos website
 *     <http://www.khronos.org/opengles/sdk/docs/man/xhtml/glDepthMask.xml>`_
*/

/* Python wrapper */
static PyObject *__pyx_pw_4kivy_8graphics_6opengl_69glDepthMask(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_4kivy_8graphics_6opengl_68glDepthMask, "glDepthMask(GLboolean flag)\n\nSee: `glDepthMask() on Kronos website\n<http://www.khronos.org/opengles/sdk/docs/man/xhtml/glDepthMask.xml>`_");
static PyMethodDef __pyx_mdef_4kivy_8graphics_6opengl_69glDepthMask = {"glDepthMask", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4kivy_8graphics_6opengl_69glDepthMask, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4kivy_8graphics_6opengl_68glDepthMask};
static PyObject *__pyx_pw_4kivy_8graphics_6opengl_69glDepthMask(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  GLboolean __pyx_v_flag;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[1] = {0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("glDepthMask (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_flag,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(0, 649, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 649, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "glDepthMask", 0) < (0)) __PYX_ERR(0, 649, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("glDepthMask", 1, 1, 1, i); __PYX_ERR(0, 649, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 1)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 649, __pyx_L3_error)
    }
    __pyx_v_flag = __Pyx_PyLong_As_GLboolean(values[0]); if (unlikely((__pyx_v_flag == ((GLboolean)-1)) && PyErr_Occurred())) __PYX_ERR(0, 649, __pyx_L3_error)
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("glDepthMask", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 649, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("kivy.graphics.opengl.glDepthMask", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4kivy_8graphics_6opengl_68glDepthMask(__pyx_self, __pyx_v_flag);

  /* function exit code */
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4kivy_8graphics_6opengl_68glDepthMask(CYTHON_UNUSED PyObject *__pyx_self, GLboolean __pyx_v_flag) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("glDepthMask", 0);

  /* "kivy/graphics/opengl.pyx":653
 *     <http://www.khronos.org/opengles/sdk/docs/man/xhtml/glDepthMask.xml>`_
 *     '''
 *     cgl.glDepthMask(flag)             # <<<<<<<<<<<<<<
 * 
 * #def glDepthRangef(GLclampf zNear, GLclampf zFar):
*/
  __pyx_v_4kivy_8graphics_3cgl_cgl->glDepthMask(__pyx_v_flag); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 653, __pyx_L1_error)

  /* "kivy/graphics/opengl.pyx":649
 *     cgl.glDepthFunc(func)
 * 
 * def glDepthMask(GLboolean flag):             # <<<<<<<<<<<<<<
 *     '''See: `glDepthMask() on Kronos website
 *     <http://www.khronos.org/opengles/sdk/docs/man/xhtml/glDepthMask.xml>`_
*/

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

/* "kivy/graphics/opengl.pyx":661
 * #    cgl.glDepthRangef(zNear, zFar)
 * 
 * def glDetachShader(GLuint program, GLuint shader):             # <<<<<<<<<<<<<<
 *     '''See: `glDetachShader() on Kronos website
 *     <http://www.khronos.org/opengles/sdk/docs/man/xhtml/glDetachShader.xml>`_
*/

/* Python wrapper */
static PyObject *__pyx_pw_4kivy_8graphics_6opengl_71glDetachShader(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_4kivy_8graphics_6opengl_70glDetachShader, "glDetachShader(GLuint program, GLuint shader)\n\nSee: `glDetachShader() on Kronos website\n<http://www.khronos.org/opengles/sdk/docs/man/xhtml/glDetachShader.xml>`_");
static PyMethodDef __pyx_mdef_4kivy_8graphics_6opengl_71glDetachShader = {"glDetachShader", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4kivy_8graphics_6opengl_71glDetachShader, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4kivy_8graphics_6opengl_70glDetachShader};
static PyObject *__pyx_pw_4kivy_8graphics_6opengl_71glDetachShader(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  GLuint __pyx_v_program;
  GLuint __pyx_v_shader;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[2] = {0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("glDetachShader (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_program,&__pyx_mstate_global->__pyx_n_u_shader,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(0, 661, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 661, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 661, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "glDetachShader", 0) < (0)) __PYX_ERR(0, 661, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 2; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("glDetachShader", 1, 2, 2, i); __PYX_ERR(0, 661, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 2)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 661, __pyx_L3_error)
      values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 661, __pyx_L3_error)
    }
    __pyx_v_program = __Pyx_PyLong_As_GLuint(values[0]); if (unlikely((__pyx_v_program == ((GLuint)-1)) && PyErr_Occurred())) __PYX_ERR(0, 661, __pyx_L3_error)
    __pyx_v_shader = __Pyx_PyLong_As_GLuint(values[1]); if (unlikely((__pyx_v_shader == ((GLuint)-1)) && PyErr_Occurred())) __PYX_ERR(0, 661, __pyx_L3_error)
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("glDetachShader", 1, 2, 2, __pyx_nargs); __PYX_ERR(0, 661, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("kivy.graphics.opengl.glDetachShader", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4kivy_8graphics_6opengl_70glDetachShader(__pyx_self, __pyx_v_program, __pyx_v_shader);

  /* function exit code */
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4kivy_8graphics_6opengl_70glDetachShader(CYTHON_UNUSED PyObject *__pyx_self, GLuint __pyx_v_program, GLuint __pyx_v_shader) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("glDetachShader", 0);

  /* "kivy/graphics/opengl.pyx":665
 *     <http://www.khronos.org/opengles/sdk/docs/man/xhtml/glDetachShader.xml>`_
 *     '''
 *     cgl.glDetachShader(program, shader)             # <<<<<<<<<<<<<<
 * 
 * def glDisable(GLenum cap):
*/
  __pyx_v_4kivy_8graphics_3cgl_cgl->glDetachShader(__pyx_v_program, __pyx_v_shader); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 665, __pyx_L1_error)

  /* "kivy/graphics/opengl.pyx":661
 * #    cgl.glDepthRangef(zNear, zFar)
 * 
 * def glDetachShader(GLuint program, GLuint shader):             # <<<<<<<<<<<<<<
 *     '''See: `glDetachShader() on Kronos website
 *     <http://www.khronos.org/opengles/sdk/docs/man/xhtml/glDetachShader.xml>`_
*/

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

/* "kivy/graphics/opengl.pyx":667
 *     cgl.glDetachShader(program, shader)
 * 
 * def glDisable(GLenum cap):             # <<<<<<<<<<<<<<
 *     '''See: `glDisable() on Kronos website
 *     <http://www.khronos.org/opengles/sdk/docs/man/xhtml/glDisable.xml>`_
*/

/* Python wrapper */
static PyObject *__pyx_pw_4kivy_8graphics_6opengl_73glDisable(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_4kivy_8graphics_6opengl_72glDisable, "glDisable(GLenum cap)\n\nSee: `glDisable() on Kronos website\n<http://www.khronos.org/opengles/sdk/docs/man/xhtml/glDisable.xml>`_");
static PyMethodDef __pyx_mdef_4kivy_8graphics_6opengl_73glDisable = {"glDisable", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4kivy_8graphics_6opengl_73glDisable, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4kivy_8graphics_6opengl_72glDisable};
static PyObject *__pyx_pw_4kivy_8graphics_6opengl_73glDisable(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  GLenum __pyx_v_cap;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[1] = {0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("glDisable (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_cap,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(0, 667, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 667, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "glDisable", 0) < (0)) __PYX_ERR(0, 667, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("glDisable", 1, 1, 1, i); __PYX_ERR(0, 667, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 1)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 667, __pyx_L3_error)
    }
    __pyx_v_cap = __Pyx_PyLong_As_GLenum(values[0]); if (unlikely((__pyx_v_cap == ((GLenum)-1)) && PyErr_Occurred())) __PYX_ERR(0, 667, __pyx_L3_error)
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("glDisable", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 667, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("kivy.graphics.opengl.glDisable", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4kivy_8graphics_6opengl_72glDisable(__pyx_self, __pyx_v_cap);

  /* function exit code */
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4kivy_8graphics_6opengl_72glDisable(CYTHON_UNUSED PyObject *__pyx_self, GLenum __pyx_v_cap) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("glDisable", 0);

  /* "kivy/graphics/opengl.pyx":671
 *     <http://www.khronos.org/opengles/sdk/docs/man/xhtml/glDisable.xml>`_
 *     '''
 *     cgl.glDisable(cap)             # <<<<<<<<<<<<<<
 * 
 * def glDisableVertexAttribArray(GLuint index):
*/
  __pyx_v_4kivy_8graphics_3cgl_cgl->glDisable(__pyx_v_cap); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 671, __pyx_L1_error)

  /* "kivy/graphics/opengl.pyx":667
 *     cgl.glDetachShader(program, shader)
 * 
 * def glDisable(GLenum cap):             # <<<<<<<<<<<<<<
 *     '''See: `glDisable() on Kronos website
 *     <http://www.khronos.org/opengles/sdk/docs/man/xhtml/glDisable.xml>`_
*/

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

/* "kivy/graphics/opengl.pyx":673
 *     cgl.glDisable(cap)
 * 
 * def glDisableVertexAttribArray(GLuint index):             # <<<<<<<<<<<<<<
 *     '''See: `glDisableVertexAttribArray() on Kronos website
 *     <http://www.khronos.org/opengles/sdk/docs/man/xhtml/glDisableVertexAttribArray.xml>`_
*/

/* Python wrapper */
static PyObject *__pyx_pw_4kivy_8graphics_6opengl_75glDisableVertexAttribArray(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_4kivy_8graphics_6opengl_74glDisableVertexAttribArray, "glDisableVertexAttribArray(GLuint index)\n\nSee: `glDisableVertexAttribArray() on Kronos website\n<http://www.khronos.org/opengles/sdk/docs/man/xhtml/glDisableVertexAttribArray.xml>`_");
static PyMethodDef __pyx_mdef_4kivy_8graphics_6opengl_75glDisableVertexAttribArray = {"glDisableVertexAttribArray", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4kivy_8graphics_6opengl_75glDisableVertexAttribArray, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4kivy_8graphics_6opengl_74glDisableVertexAttribArray};
static PyObject *__pyx_pw_4kivy_8graphics_6opengl_75glDisableVertexAttribArray(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  GLuint __pyx_v_index;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[1] = {0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("glDisableVertexAttribArray (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_index,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(0, 673, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 673, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "glDisableVertexAttribArray", 0) < (0)) __PYX_ERR(0, 673, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("glDisableVertexAttribArray", 1, 1, 1, i); __PYX_ERR(0, 673, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 1)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 673, __pyx_L3_error)
    }
    __pyx_v_index = __Pyx_PyLong_As_GLuint(values[0]); if (unlikely((__pyx_v_index == ((GLuint)-1)) && PyErr_Occurred())) __PYX_ERR(0, 673, __pyx_L3_error)
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("glDisableVertexAttribArray", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 673, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("kivy.graphics.opengl.glDisableVertexAttribArray", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4kivy_8graphics_6opengl_74glDisableVertexAttribArray(__pyx_self, __pyx_v_index);

  /* function exit code */
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4kivy_8graphics_6opengl_74glDisableVertexAttribArray(CYTHON_UNUSED PyObject *__pyx_self, GLuint __pyx_v_index) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("glDisableVertexAttribArray", 0);

  /* "kivy/graphics/opengl.pyx":677
 *     <http://www.khronos.org/opengles/sdk/docs/man/xhtml/glDisableVertexAttribArray.xml>`_
 *     '''
 *     cgl.glDisableVertexAttribArray(index)             # <<<<<<<<<<<<<<
 * 
 * def glDrawArrays(GLenum mode, GLint first, GLsizei count):
*/
  __pyx_v_4kivy_8graphics_3cgl_cgl->glDisableVertexAttribArray(__pyx_v_index); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 677, __pyx_L1_error)

  /* "kivy/graphics/opengl.pyx":673
 *     cgl.glDisable(cap)
 * 
 * def glDisableVertexAttribArray(GLuint index):             # <<<<<<<<<<<<<<
 *     '''See: `glDisableVertexAttribArray() on Kronos website
 *     <http://www.khronos.org/opengles/sdk/docs/man/xhtml/glDisableVertexAttribArray.xml>`_
*/

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

/* "kivy/graphics/opengl.pyx":679
 *     cgl.glDisableVertexAttribArray(index)
 * 
 * def glDrawArrays(GLenum mode, GLint first, GLsizei count):             # <<<<<<<<<<<<<<
 *     '''See: `glDrawArrays() on Kronos website
 *     <http://www.khronos.org/opengles/sdk/docs/man/xhtml/glDrawArrays.xml>`_
*/

/* Python wrapper */
static PyObject *__pyx_pw_4kivy_8graphics_6opengl_77glDrawArrays(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_4kivy_8graphics_6opengl_76glDrawArrays, "glDrawArrays(GLenum mode, GLint first, GLsizei count)\n\nSee: `glDrawArrays() on Kronos website\n<http://www.khronos.org/opengles/sdk/docs/man/xhtml/glDrawArrays.xml>`_");
static PyMethodDef __pyx_mdef_4kivy_8graphics_6opengl_77glDrawArrays = {"glDrawArrays", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4kivy_8graphics_6opengl_77glDrawArrays, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4kivy_8graphics_6opengl_76glDrawArrays};
static PyObject *__pyx_pw_4kivy_8graphics_6opengl_77glDrawArrays(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  GLenum __pyx_v_mode;
  GLint __pyx_v_first;
  GLsizei __pyx_v_count;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[3] = {0,0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("glDrawArrays (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_mode,&__pyx_mstate_global->__pyx_n_u_first,&__pyx_mstate_global->__pyx_n_u_count,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(0, 679, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  3:
        values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(0, 679, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 679, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 679, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "glDrawArrays", 0) < (0)) __PYX_ERR(0, 679, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 3; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("glDrawArrays", 1, 3, 3, i); __PYX_ERR(0, 679, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 3)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 679, __pyx_L3_error)
      values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 679, __pyx_L3_error)
      values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(0, 679, __pyx_L3_error)
    }
    __pyx_v_mode = __Pyx_PyLong_As_GLenum(values[0]); if (unlikely((__pyx_v_mode == ((GLenum)-1)) && PyErr_Occurred())) __PYX_ERR(0, 679, __pyx_L3_error)
    __pyx_v_first = __Pyx_PyLong_As_GLint(values[1]); if (unlikely((__pyx_v_first == ((GLint)-1)) && PyErr_Occurred())) __PYX_ERR(0, 679, __pyx_L3_error)
    __pyx_v_count = __Pyx_PyLong_As_GLsizei(values[2]); if (unlikely((__pyx_v_count == ((GLsizei)-1)) && PyErr_Occurred())) __PYX_ERR(0, 679, __pyx_L3_error)
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("glDrawArrays", 1, 3, 3, __pyx_nargs); __PYX_ERR(0, 679, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("kivy.graphics.opengl.glDrawArrays", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4kivy_8graphics_6opengl_76glDrawArrays(__pyx_self, __pyx_v_mode, __pyx_v_first, __pyx_v_count);

  /* function exit code */
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4kivy_8graphics_6opengl_76glDrawArrays(CYTHON_UNUSED PyObject *__pyx_self, GLenum __pyx_v_mode, GLint __pyx_v_first, GLsizei __pyx_v_count) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("glDrawArrays", 0);

  /* "kivy/graphics/opengl.pyx":683
 *     <http://www.khronos.org/opengles/sdk/docs/man/xhtml/glDrawArrays.xml>`_
 *     '''
 *     cgl.glDrawArrays(mode, first, count)             # <<<<<<<<<<<<<<
 * 
 * def glDrawElements(GLenum mode, GLsizei count, GLenum type, indices):
*/
  __pyx_v_4kivy_8graphics_3cgl_cgl->glDrawArrays(__pyx_v_mode, __pyx_v_first, __pyx_v_count); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 683, __pyx_L1_error)

  /* "kivy/graphics/opengl.pyx":679
 *     cgl.glDisableVertexAttribArray(index)
 * 
 * def glDrawArrays(GLenum mode, GLint first, GLsizei count):             # <<<<<<<<<<<<<<
 *     '''See: `glDrawArrays() on Kronos website
 *     <http://www.khronos.org/opengles/sdk/docs/man/xhtml/glDrawArrays.xml>`_
*/

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

/* "kivy/graphics/opengl.pyx":685
 *     cgl.glDrawArrays(mode, first, count)
 * 
 * def glDrawElements(GLenum mode, GLsizei count, GLenum type, indices):             # <<<<<<<<<<<<<<
 *     '''See: `glDrawElements() on Kronos website
 *     <http://www.khronos.org/opengles/sdk/docs/man/xhtml/glDrawElements.xml>`_
*/

/* Python wrapper */
static PyObject *__pyx_pw_4kivy_8graphics_6opengl_79glDrawElements(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_4kivy_8graphics_6opengl_78glDrawElements, "glDrawElements(GLenum mode, GLsizei count, GLenum type, indices)\n\nSee: `glDrawElements() on Kronos website\n<http://www.khronos.org/opengles/sdk/docs/man/xhtml/glDrawElements.xml>`_");
static PyMethodDef __pyx_mdef_4kivy_8graphics_6opengl_79glDrawElements = {"glDrawElements", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4kivy_8graphics_6opengl_79glDrawElements, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4kivy_8graphics_6opengl_78glDrawElements};
static PyObject *__pyx_pw_4kivy_8graphics_6opengl_79glDrawElements(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  GLenum __pyx_v_mode;
  GLsizei __pyx_v_count;
  GLenum __pyx_v_type;
  PyObject *__pyx_v_indices = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[4] = {0,0,0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("glDrawElements (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_mode,&__pyx_mstate_global->__pyx_n_u_count,&__pyx_mstate_global->__pyx_n_u_type,&__pyx_mstate_global->__pyx_n_u_indices,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(0, 685, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  4:
        values[3] = __Pyx_ArgRef_FASTCALL(__pyx_args, 3);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[3])) __PYX_ERR(0, 685, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  3:
        values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(0, 685, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 685, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 685, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "glDrawElements", 0) < (0)) __PYX_ERR(0, 685, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 4; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("glDrawElements", 1, 4, 4, i); __PYX_ERR(0, 685, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 4)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 685, __pyx_L3_error)
      values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 685, __pyx_L3_error)
      values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(0, 685, __pyx_L3_error)
      values[3] = __Pyx_ArgRef_FASTCALL(__pyx_args, 3);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[3])) __PYX_ERR(0, 685, __pyx_L3_error)
    }
    __pyx_v_mode = __Pyx_PyLong_As_GLenum(values[0]); if (unlikely((__pyx_v_mode == ((GLenum)-1)) && PyErr_Occurred())) __PYX_ERR(0, 685, __pyx_L3_error)
    __pyx_v_count = __Pyx_PyLong_As_GLsizei(values[1]); if (unlikely((__pyx_v_count == ((GLsizei)-1)) && PyErr_Occurred())) __PYX_ERR(0, 685, __pyx_L3_error)
    __pyx_v_type = __Pyx_PyLong_As_GLenum(values[2]); if (unlikely((__pyx_v_type == ((GLenum)-1)) && PyErr_Occurred())) __PYX_ERR(0, 685, __pyx_L3_error)
    __pyx_v_indices = values[3];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("glDrawElements", 1, 4, 4, __pyx_nargs); __PYX_ERR(0, 685, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("kivy.graphics.opengl.glDrawElements", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4kivy_8graphics_6opengl_78glDrawElements(__pyx_self, __pyx_v_mode, __pyx_v_count, __pyx_v_type, __pyx_v_indices);

  /* function exit code */
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4kivy_8graphics_6opengl_78glDrawElements(CYTHON_UNUSED PyObject *__pyx_self, GLenum __pyx_v_mode, GLsizei __pyx_v_count, GLenum __pyx_v_type, PyObject *__pyx_v_indices) {
  void *__pyx_v_ptr;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  char *__pyx_t_2;
  unsigned int __pyx_t_3;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  size_t __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("glDrawElements", 0);

  /* "kivy/graphics/opengl.pyx":689
 *     <http://www.khronos.org/opengles/sdk/docs/man/xhtml/glDrawElements.xml>`_
 *     '''
 *     cdef void *ptr = NULL             # <<<<<<<<<<<<<<
 *     if isinstance(indices, bytes):
 *         ptr = <void *>(<char *>(<bytes>indices))
*/
  __pyx_v_ptr = NULL;

  /* "kivy/graphics/opengl.pyx":690
 *     '''
 *     cdef void *ptr = NULL
 *     if isinstance(indices, bytes):             # <<<<<<<<<<<<<<
 *         ptr = <void *>(<char *>(<bytes>indices))
 *     elif isinstance(indices, int):
*/
  __pyx_t_1 = PyBytes_Check(__pyx_v_indices); 
  if (__pyx_t_1) {

    /* "kivy/graphics/opengl.pyx":691
 *     cdef void *ptr = NULL
 *     if isinstance(indices, bytes):
 *         ptr = <void *>(<char *>(<bytes>indices))             # <<<<<<<<<<<<<<
 *     elif isinstance(indices, int):
 *         ptr = <void *>(<unsigned int>indices)
*/
    if (unlikely(__pyx_v_indices == Py_None)) {
      PyErr_SetString(PyExc_TypeError, "expected bytes, NoneType found");
      __PYX_ERR(0, 691, __pyx_L1_error)
    }
    __pyx_t_2 = __Pyx_PyBytes_AsWritableString(__pyx_v_indices); if (unlikely((!__pyx_t_2) && PyErr_Occurred())) __PYX_ERR(0, 691, __pyx_L1_error)
    __pyx_v_ptr = ((void *)((char *)__pyx_t_2));

    /* "kivy/graphics/opengl.pyx":690
 *     '''
 *     cdef void *ptr = NULL
 *     if isinstance(indices, bytes):             # <<<<<<<<<<<<<<
 *         ptr = <void *>(<char *>(<bytes>indices))
 *     elif isinstance(indices, int):
*/
    goto __pyx_L3;
  }

  /* "kivy/graphics/opengl.pyx":692
 *     if isinstance(indices, bytes):
 *         ptr = <void *>(<char *>(<bytes>indices))
 *     elif isinstance(indices, int):             # <<<<<<<<<<<<<<
 *         ptr = <void *>(<unsigned int>indices)
 *     else:
*/
  __pyx_t_1 = PyLong_Check(__pyx_v_indices); 
  if (likely(__pyx_t_1)) {

    /* "kivy/graphics/opengl.pyx":693
 *         ptr = <void *>(<char *>(<bytes>indices))
 *     elif isinstance(indices, int):
 *         ptr = <void *>(<unsigned int>indices)             # <<<<<<<<<<<<<<
 *     else:
 *         raise TypeError("Argument 'indices' has incorrect type (expected bytes or int).")
*/
    __pyx_t_3 = __Pyx_PyLong_As_unsigned_int(__pyx_v_indices); if (unlikely((__pyx_t_3 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(0, 693, __pyx_L1_error)
    __pyx_v_ptr = ((void *)((unsigned int)__pyx_t_3));

    /* "kivy/graphics/opengl.pyx":692
 *     if isinstance(indices, bytes):
 *         ptr = <void *>(<char *>(<bytes>indices))
 *     elif isinstance(indices, int):             # <<<<<<<<<<<<<<
 *         ptr = <void *>(<unsigned int>indices)
 *     else:
*/
    goto __pyx_L3;
  }

  /* "kivy/graphics/opengl.pyx":695
 *         ptr = <void *>(<unsigned int>indices)
 *     else:
 *         raise TypeError("Argument 'indices' has incorrect type (expected bytes or int).")             # <<<<<<<<<<<<<<
 *     cgl.glDrawElements(mode, count, type, ptr)
 * 
*/
  /*else*/ {
    __pyx_t_5 = NULL;
    __pyx_t_6 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_5, __pyx_mstate_global->__pyx_kp_u_Argument_indices_has_incorrect_t};
      __pyx_t_4 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_TypeError)), __pyx_callargs+__pyx_t_6, (2-__pyx_t_6) | (__pyx_t_6*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 695, __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, 695, __pyx_L1_error)
  }
  __pyx_L3:;

  /* "kivy/graphics/opengl.pyx":696
 *     else:
 *         raise TypeError("Argument 'indices' has incorrect type (expected bytes or int).")
 *     cgl.glDrawElements(mode, count, type, ptr)             # <<<<<<<<<<<<<<
 * 
 * def glEnable(GLenum cap):
*/
  __pyx_v_4kivy_8graphics_3cgl_cgl->glDrawElements(__pyx_v_mode, __pyx_v_count, __pyx_v_type, __pyx_v_ptr); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 696, __pyx_L1_error)

  /* "kivy/graphics/opengl.pyx":685
 *     cgl.glDrawArrays(mode, first, count)
 * 
 * def glDrawElements(GLenum mode, GLsizei count, GLenum type, indices):             # <<<<<<<<<<<<<<
 *     '''See: `glDrawElements() on Kronos website
 *     <http://www.khronos.org/opengles/sdk/docs/man/xhtml/glDrawElements.xml>`_
*/

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("kivy.graphics.opengl.glDrawElements", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "kivy/graphics/opengl.pyx":698
 *     cgl.glDrawElements(mode, count, type, ptr)
 * 
 * def glEnable(GLenum cap):             # <<<<<<<<<<<<<<
 *     '''See: `glEnable() on Kronos website
 *     <http://www.khronos.org/opengles/sdk/docs/man/xhtml/glEnable.xml>`_
*/

/* Python wrapper */
static PyObject *__pyx_pw_4kivy_8graphics_6opengl_81glEnable(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_4kivy_8graphics_6opengl_80glEnable, "glEnable(GLenum cap)\n\nSee: `glEnable() on Kronos website\n<http://www.khronos.org/opengles/sdk/docs/man/xhtml/glEnable.xml>`_");
static PyMethodDef __pyx_mdef_4kivy_8graphics_6opengl_81glEnable = {"glEnable", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4kivy_8graphics_6opengl_81glEnable, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4kivy_8graphics_6opengl_80glEnable};
static PyObject *__pyx_pw_4kivy_8graphics_6opengl_81glEnable(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  GLenum __pyx_v_cap;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[1] = {0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("glEnable (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_cap,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(0, 698, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 698, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "glEnable", 0) < (0)) __PYX_ERR(0, 698, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("glEnable", 1, 1, 1, i); __PYX_ERR(0, 698, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 1)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 698, __pyx_L3_error)
    }
    __pyx_v_cap = __Pyx_PyLong_As_GLenum(values[0]); if (unlikely((__pyx_v_cap == ((GLenum)-1)) && PyErr_Occurred())) __PYX_ERR(0, 698, __pyx_L3_error)
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("glEnable", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 698, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("kivy.graphics.opengl.glEnable", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4kivy_8graphics_6opengl_80glEnable(__pyx_self, __pyx_v_cap);

  /* function exit code */
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4kivy_8graphics_6opengl_80glEnable(CYTHON_UNUSED PyObject *__pyx_self, GLenum __pyx_v_cap) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("glEnable", 0);

  /* "kivy/graphics/opengl.pyx":702
 *     <http://www.khronos.org/opengles/sdk/docs/man/xhtml/glEnable.xml>`_
 *     '''
 *     cgl.glEnable(cap)             # <<<<<<<<<<<<<<
 * 
 * def glEnableVertexAttribArray(GLuint index):
*/
  __pyx_v_4kivy_8graphics_3cgl_cgl->glEnable(__pyx_v_cap); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 702, __pyx_L1_error)

  /* "kivy/graphics/opengl.pyx":698
 *     cgl.glDrawElements(mode, count, type, ptr)
 * 
 * def glEnable(GLenum cap):             # <<<<<<<<<<<<<<
 *     '''See: `glEnable() on Kronos website
 *     <http://www.khronos.org/opengles/sdk/docs/man/xhtml/glEnable.xml>`_
*/

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

/* "kivy/graphics/opengl.pyx":704
 *     cgl.glEnable(cap)
 * 
 * def glEnableVertexAttribArray(GLuint index):             # <<<<<<<<<<<<<<
 *     '''See: `glEnableVertexAttribArray() on Kronos website
 *     <http://www.khronos.org/opengles/sdk/docs/man/xhtml/glEnableVertexAttribArray.xml>`_
*/

/* Python wrapper */
static PyObject *__pyx_pw_4kivy_8graphics_6opengl_83glEnableVertexAttribArray(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_4kivy_8graphics_6opengl_82glEnableVertexAttribArray, "glEnableVertexAttribArray(GLuint index)\n\nSee: `glEnableVertexAttribArray() on Kronos website\n<http://www.khronos.org/opengles/sdk/docs/man/xhtml/glEnableVertexAttribArray.xml>`_");
static PyMethodDef __pyx_mdef_4kivy_8graphics_6opengl_83glEnableVertexAttribArray = {"glEnableVertexAttribArray", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4kivy_8graphics_6opengl_83glEnableVertexAttribArray, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4kivy_8graphics_6opengl_82glEnableVertexAttribArray};
static PyObject *__pyx_pw_4kivy_8graphics_6opengl_83glEnableVertexAttribArray(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  GLuint __pyx_v_index;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[1] = {0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("glEnableVertexAttribArray (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_index,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(0, 704, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 704, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "glEnableVertexAttribArray", 0) < (0)) __PYX_ERR(0, 704, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("glEnableVertexAttribArray", 1, 1, 1, i); __PYX_ERR(0, 704, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 1)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 704, __pyx_L3_error)
    }
    __pyx_v_index = __Pyx_PyLong_As_GLuint(values[0]); if (unlikely((__pyx_v_index == ((GLuint)-1)) && PyErr_Occurred())) __PYX_ERR(0, 704, __pyx_L3_error)
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("glEnableVertexAttribArray", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 704, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("kivy.graphics.opengl.glEnableVertexAttribArray", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4kivy_8graphics_6opengl_82glEnableVertexAttribArray(__pyx_self, __pyx_v_index);

  /* function exit code */
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4kivy_8graphics_6opengl_82glEnableVertexAttribArray(CYTHON_UNUSED PyObject *__pyx_self, GLuint __pyx_v_index) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("glEnableVertexAttribArray", 0);

  /* "kivy/graphics/opengl.pyx":708
 *     <http://www.khronos.org/opengles/sdk/docs/man/xhtml/glEnableVertexAttribArray.xml>`_
 *     '''
 *     cgl.glEnableVertexAttribArray(index)             # <<<<<<<<<<<<<<
 * 
 * def glFinish():
*/
  __pyx_v_4kivy_8graphics_3cgl_cgl->glEnableVertexAttribArray(__pyx_v_index); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 708, __pyx_L1_error)

  /* "kivy/graphics/opengl.pyx":704
 *     cgl.glEnable(cap)
 * 
 * def glEnableVertexAttribArray(GLuint index):             # <<<<<<<<<<<<<<
 *     '''See: `glEnableVertexAttribArray() on Kronos website
 *     <http://www.khronos.org/opengles/sdk/docs/man/xhtml/glEnableVertexAttribArray.xml>`_
*/

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

/* "kivy/graphics/opengl.pyx":710
 *     cgl.glEnableVertexAttribArray(index)
 * 
 * def glFinish():             # <<<<<<<<<<<<<<
 *     '''See: `glFinish() on Kronos website
 *     <http://www.khronos.org/opengles/sdk/docs/man/xhtml/glFinish.xml>`_
*/

/* Python wrapper */
static PyObject *__pyx_pw_4kivy_8graphics_6opengl_85glFinish(PyObject *__pyx_self, CYTHON_UNUSED PyObject *unused); /*proto*/
PyDoc_STRVAR(__pyx_doc_4kivy_8graphics_6opengl_84glFinish, "glFinish()\n\nSee: `glFinish() on Kronos website\n<http://www.khronos.org/opengles/sdk/docs/man/xhtml/glFinish.xml>`_");
static PyMethodDef __pyx_mdef_4kivy_8graphics_6opengl_85glFinish = {"glFinish", (PyCFunction)__pyx_pw_4kivy_8graphics_6opengl_85glFinish, METH_NOARGS, __pyx_doc_4kivy_8graphics_6opengl_84glFinish};
static PyObject *__pyx_pw_4kivy_8graphics_6opengl_85glFinish(PyObject *__pyx_self, CYTHON_UNUSED PyObject *unused) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("glFinish (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4kivy_8graphics_6opengl_84glFinish(__pyx_self);

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

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

  /* "kivy/graphics/opengl.pyx":714
 *     <http://www.khronos.org/opengles/sdk/docs/man/xhtml/glFinish.xml>`_
 *     '''
 *     cgl.glFinish()             # <<<<<<<<<<<<<<
 * 
 * def glFlush():
*/
  __pyx_v_4kivy_8graphics_3cgl_cgl->glFinish(); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 714, __pyx_L1_error)

  /* "kivy/graphics/opengl.pyx":710
 *     cgl.glEnableVertexAttribArray(index)
 * 
 * def glFinish():             # <<<<<<<<<<<<<<
 *     '''See: `glFinish() on Kronos website
 *     <http://www.khronos.org/opengles/sdk/docs/man/xhtml/glFinish.xml>`_
*/

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

/* "kivy/graphics/opengl.pyx":716
 *     cgl.glFinish()
 * 
 * def glFlush():             # <<<<<<<<<<<<<<
 *     '''See: `glFlush() on Kronos website
 *     <http://www.khronos.org/opengles/sdk/docs/man/xhtml/glFlush.xml>`_
*/

/* Python wrapper */
static PyObject *__pyx_pw_4kivy_8graphics_6opengl_87glFlush(PyObject *__pyx_self, CYTHON_UNUSED PyObject *unused); /*proto*/
PyDoc_STRVAR(__pyx_doc_4kivy_8graphics_6opengl_86glFlush, "glFlush()\n\nSee: `glFlush() on Kronos website\n<http://www.khronos.org/opengles/sdk/docs/man/xhtml/glFlush.xml>`_");
static PyMethodDef __pyx_mdef_4kivy_8graphics_6opengl_87glFlush = {"glFlush", (PyCFunction)__pyx_pw_4kivy_8graphics_6opengl_87glFlush, METH_NOARGS, __pyx_doc_4kivy_8graphics_6opengl_86glFlush};
static PyObject *__pyx_pw_4kivy_8graphics_6opengl_87glFlush(PyObject *__pyx_self, CYTHON_UNUSED PyObject *unused) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("glFlush (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4kivy_8graphics_6opengl_86glFlush(__pyx_self);

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

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

  /* "kivy/graphics/opengl.pyx":720
 *     <http://www.khronos.org/opengles/sdk/docs/man/xhtml/glFlush.xml>`_
 *     '''
 *     cgl.glFlush()             # <<<<<<<<<<<<<<
 * 
 * def glFramebufferRenderbuffer(GLenum target, GLenum attachment, GLenum renderbuffertarget, GLuint renderbuffer):
*/
  __pyx_v_4kivy_8graphics_3cgl_cgl->glFlush(); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 720, __pyx_L1_error)

  /* "kivy/graphics/opengl.pyx":716
 *     cgl.glFinish()
 * 
 * def glFlush():             # <<<<<<<<<<<<<<
 *     '''See: `glFlush() on Kronos website
 *     <http://www.khronos.org/opengles/sdk/docs/man/xhtml/glFlush.xml>`_
*/

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

/* "kivy/graphics/opengl.pyx":722
 *     cgl.glFlush()
 * 
 * def glFramebufferRenderbuffer(GLenum target, GLenum attachment, GLenum renderbuffertarget, GLuint renderbuffer):             # <<<<<<<<<<<<<<
 *     '''See: `glFramebufferRenderbuffer() on Kronos website
 *     <http://www.khronos.org/opengles/sdk/docs/man/xhtml/glFramebufferRenderbuffer.xml>`_
*/

/* Python wrapper */
static PyObject *__pyx_pw_4kivy_8graphics_6opengl_89glFramebufferRenderbuffer(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_4kivy_8graphics_6opengl_88glFramebufferRenderbuffer, "glFramebufferRenderbuffer(GLenum target, GLenum attachment, GLenum renderbuffertarget, GLuint renderbuffer)\n\nSee: `glFramebufferRenderbuffer() on Kronos website\n<http://www.khronos.org/opengles/sdk/docs/man/xhtml/glFramebufferRenderbuffer.xml>`_");
static PyMethodDef __pyx_mdef_4kivy_8graphics_6opengl_89glFramebufferRenderbuffer = {"glFramebufferRenderbuffer", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4kivy_8graphics_6opengl_89glFramebufferRenderbuffer, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4kivy_8graphics_6opengl_88glFramebufferRenderbuffer};
static PyObject *__pyx_pw_4kivy_8graphics_6opengl_89glFramebufferRenderbuffer(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  GLenum __pyx_v_target;
  GLenum __pyx_v_attachment;
  GLenum __pyx_v_renderbuffertarget;
  GLuint __pyx_v_renderbuffer;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[4] = {0,0,0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("glFramebufferRenderbuffer (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_target,&__pyx_mstate_global->__pyx_n_u_attachment,&__pyx_mstate_global->__pyx_n_u_renderbuffertarget,&__pyx_mstate_global->__pyx_n_u_renderbuffer,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(0, 722, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  4:
        values[3] = __Pyx_ArgRef_FASTCALL(__pyx_args, 3);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[3])) __PYX_ERR(0, 722, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  3:
        values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(0, 722, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 722, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 722, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "glFramebufferRenderbuffer", 0) < (0)) __PYX_ERR(0, 722, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 4; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("glFramebufferRenderbuffer", 1, 4, 4, i); __PYX_ERR(0, 722, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 4)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 722, __pyx_L3_error)
      values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 722, __pyx_L3_error)
      values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(0, 722, __pyx_L3_error)
      values[3] = __Pyx_ArgRef_FASTCALL(__pyx_args, 3);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[3])) __PYX_ERR(0, 722, __pyx_L3_error)
    }
    __pyx_v_target = __Pyx_PyLong_As_GLenum(values[0]); if (unlikely((__pyx_v_target == ((GLenum)-1)) && PyErr_Occurred())) __PYX_ERR(0, 722, __pyx_L3_error)
    __pyx_v_attachment = __Pyx_PyLong_As_GLenum(values[1]); if (unlikely((__pyx_v_attachment == ((GLenum)-1)) && PyErr_Occurred())) __PYX_ERR(0, 722, __pyx_L3_error)
    __pyx_v_renderbuffertarget = __Pyx_PyLong_As_GLenum(values[2]); if (unlikely((__pyx_v_renderbuffertarget == ((GLenum)-1)) && PyErr_Occurred())) __PYX_ERR(0, 722, __pyx_L3_error)
    __pyx_v_renderbuffer = __Pyx_PyLong_As_GLuint(values[3]); if (unlikely((__pyx_v_renderbuffer == ((GLuint)-1)) && PyErr_Occurred())) __PYX_ERR(0, 722, __pyx_L3_error)
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("glFramebufferRenderbuffer", 1, 4, 4, __pyx_nargs); __PYX_ERR(0, 722, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("kivy.graphics.opengl.glFramebufferRenderbuffer", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4kivy_8graphics_6opengl_88glFramebufferRenderbuffer(__pyx_self, __pyx_v_target, __pyx_v_attachment, __pyx_v_renderbuffertarget, __pyx_v_renderbuffer);

  /* function exit code */
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4kivy_8graphics_6opengl_88glFramebufferRenderbuffer(CYTHON_UNUSED PyObject *__pyx_self, GLenum __pyx_v_target, GLenum __pyx_v_attachment, GLenum __pyx_v_renderbuffertarget, GLuint __pyx_v_renderbuffer) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("glFramebufferRenderbuffer", 0);

  /* "kivy/graphics/opengl.pyx":726
 *     <http://www.khronos.org/opengles/sdk/docs/man/xhtml/glFramebufferRenderbuffer.xml>`_
 *     '''
 *     cgl.glFramebufferRenderbuffer(target, attachment, renderbuffertarget, renderbuffer)             # <<<<<<<<<<<<<<
 * 
 * def glFramebufferTexture2D(GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level):
*/
  __pyx_v_4kivy_8graphics_3cgl_cgl->glFramebufferRenderbuffer(__pyx_v_target, __pyx_v_attachment, __pyx_v_renderbuffertarget, __pyx_v_renderbuffer); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 726, __pyx_L1_error)

  /* "kivy/graphics/opengl.pyx":722
 *     cgl.glFlush()
 * 
 * def glFramebufferRenderbuffer(GLenum target, GLenum attachment, GLenum renderbuffertarget, GLuint renderbuffer):             # <<<<<<<<<<<<<<
 *     '''See: `glFramebufferRenderbuffer() on Kronos website
 *     <http://www.khronos.org/opengles/sdk/docs/man/xhtml/glFramebufferRenderbuffer.xml>`_
*/

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

/* "kivy/graphics/opengl.pyx":728
 *     cgl.glFramebufferRenderbuffer(target, attachment, renderbuffertarget, renderbuffer)
 * 
 * def glFramebufferTexture2D(GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level):             # <<<<<<<<<<<<<<
 *     '''See: `glFramebufferTexture2D() on Kronos website
 *     <http://www.khronos.org/opengles/sdk/docs/man/xhtml/glFramebufferTexture2D.xml>`_
*/

/* Python wrapper */
static PyObject *__pyx_pw_4kivy_8graphics_6opengl_91glFramebufferTexture2D(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_4kivy_8graphics_6opengl_90glFramebufferTexture2D, "glFramebufferTexture2D(GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level)\n\nSee: `glFramebufferTexture2D() on Kronos website\n<http://www.khronos.org/opengles/sdk/docs/man/xhtml/glFramebufferTexture2D.xml>`_");
static PyMethodDef __pyx_mdef_4kivy_8graphics_6opengl_91glFramebufferTexture2D = {"glFramebufferTexture2D", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4kivy_8graphics_6opengl_91glFramebufferTexture2D, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4kivy_8graphics_6opengl_90glFramebufferTexture2D};
static PyObject *__pyx_pw_4kivy_8graphics_6opengl_91glFramebufferTexture2D(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  GLenum __pyx_v_target;
  GLenum __pyx_v_attachment;
  GLenum __pyx_v_textarget;
  GLuint __pyx_v_texture;
  GLint __pyx_v_level;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[5] = {0,0,0,0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("glFramebufferTexture2D (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_target,&__pyx_mstate_global->__pyx_n_u_attachment,&__pyx_mstate_global->__pyx_n_u_textarget,&__pyx_mstate_global->__pyx_n_u_texture,&__pyx_mstate_global->__pyx_n_u_level,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(0, 728, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  5:
        values[4] = __Pyx_ArgRef_FASTCALL(__pyx_args, 4);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[4])) __PYX_ERR(0, 728, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  4:
        values[3] = __Pyx_ArgRef_FASTCALL(__pyx_args, 3);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[3])) __PYX_ERR(0, 728, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  3:
        values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(0, 728, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 728, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 728, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "glFramebufferTexture2D", 0) < (0)) __PYX_ERR(0, 728, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 5; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("glFramebufferTexture2D", 1, 5, 5, i); __PYX_ERR(0, 728, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 5)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 728, __pyx_L3_error)
      values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 728, __pyx_L3_error)
      values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(0, 728, __pyx_L3_error)
      values[3] = __Pyx_ArgRef_FASTCALL(__pyx_args, 3);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[3])) __PYX_ERR(0, 728, __pyx_L3_error)
      values[4] = __Pyx_ArgRef_FASTCALL(__pyx_args, 4);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[4])) __PYX_ERR(0, 728, __pyx_L3_error)
    }
    __pyx_v_target = __Pyx_PyLong_As_GLenum(values[0]); if (unlikely((__pyx_v_target == ((GLenum)-1)) && PyErr_Occurred())) __PYX_ERR(0, 728, __pyx_L3_error)
    __pyx_v_attachment = __Pyx_PyLong_As_GLenum(values[1]); if (unlikely((__pyx_v_attachment == ((GLenum)-1)) && PyErr_Occurred())) __PYX_ERR(0, 728, __pyx_L3_error)
    __pyx_v_textarget = __Pyx_PyLong_As_GLenum(values[2]); if (unlikely((__pyx_v_textarget == ((GLenum)-1)) && PyErr_Occurred())) __PYX_ERR(0, 728, __pyx_L3_error)
    __pyx_v_texture = __Pyx_PyLong_As_GLuint(values[3]); if (unlikely((__pyx_v_texture == ((GLuint)-1)) && PyErr_Occurred())) __PYX_ERR(0, 728, __pyx_L3_error)
    __pyx_v_level = __Pyx_PyLong_As_GLint(values[4]); if (unlikely((__pyx_v_level == ((GLint)-1)) && PyErr_Occurred())) __PYX_ERR(0, 728, __pyx_L3_error)
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("glFramebufferTexture2D", 1, 5, 5, __pyx_nargs); __PYX_ERR(0, 728, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("kivy.graphics.opengl.glFramebufferTexture2D", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4kivy_8graphics_6opengl_90glFramebufferTexture2D(__pyx_self, __pyx_v_target, __pyx_v_attachment, __pyx_v_textarget, __pyx_v_texture, __pyx_v_level);

  /* function exit code */
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4kivy_8graphics_6opengl_90glFramebufferTexture2D(CYTHON_UNUSED PyObject *__pyx_self, GLenum __pyx_v_target, GLenum __pyx_v_attachment, GLenum __pyx_v_textarget, GLuint __pyx_v_texture, GLint __pyx_v_level) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("glFramebufferTexture2D", 0);

  /* "kivy/graphics/opengl.pyx":732
 *     <http://www.khronos.org/opengles/sdk/docs/man/xhtml/glFramebufferTexture2D.xml>`_
 *     '''
 *     cgl.glFramebufferTexture2D(target, attachment, textarget, texture, level)             # <<<<<<<<<<<<<<
 * 
 * def glFrontFace(GLenum mode):
*/
  __pyx_v_4kivy_8graphics_3cgl_cgl->glFramebufferTexture2D(__pyx_v_target, __pyx_v_attachment, __pyx_v_textarget, __pyx_v_texture, __pyx_v_level); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 732, __pyx_L1_error)

  /* "kivy/graphics/opengl.pyx":728
 *     cgl.glFramebufferRenderbuffer(target, attachment, renderbuffertarget, renderbuffer)
 * 
 * def glFramebufferTexture2D(GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level):             # <<<<<<<<<<<<<<
 *     '''See: `glFramebufferTexture2D() on Kronos website
 *     <http://www.khronos.org/opengles/sdk/docs/man/xhtml/glFramebufferTexture2D.xml>`_
*/

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

/* "kivy/graphics/opengl.pyx":734
 *     cgl.glFramebufferTexture2D(target, attachment, textarget, texture, level)
 * 
 * def glFrontFace(GLenum mode):             # <<<<<<<<<<<<<<
 *     '''See: `glFrontFace() on Kronos website
 *     <http://www.khronos.org/opengles/sdk/docs/man/xhtml/glFrontFace.xml>`_
*/

/* Python wrapper */
static PyObject *__pyx_pw_4kivy_8graphics_6opengl_93glFrontFace(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_4kivy_8graphics_6opengl_92glFrontFace, "glFrontFace(GLenum mode)\n\nSee: `glFrontFace() on Kronos website\n<http://www.khronos.org/opengles/sdk/docs/man/xhtml/glFrontFace.xml>`_");
static PyMethodDef __pyx_mdef_4kivy_8graphics_6opengl_93glFrontFace = {"glFrontFace", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4kivy_8graphics_6opengl_93glFrontFace, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4kivy_8graphics_6opengl_92glFrontFace};
static PyObject *__pyx_pw_4kivy_8graphics_6opengl_93glFrontFace(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  GLenum __pyx_v_mode;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[1] = {0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("glFrontFace (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_mode,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(0, 734, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 734, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "glFrontFace", 0) < (0)) __PYX_ERR(0, 734, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("glFrontFace", 1, 1, 1, i); __PYX_ERR(0, 734, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 1)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 734, __pyx_L3_error)
    }
    __pyx_v_mode = __Pyx_PyLong_As_GLenum(values[0]); if (unlikely((__pyx_v_mode == ((GLenum)-1)) && PyErr_Occurred())) __PYX_ERR(0, 734, __pyx_L3_error)
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("glFrontFace", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 734, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("kivy.graphics.opengl.glFrontFace", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4kivy_8graphics_6opengl_92glFrontFace(__pyx_self, __pyx_v_mode);

  /* function exit code */
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4kivy_8graphics_6opengl_92glFrontFace(CYTHON_UNUSED PyObject *__pyx_self, GLenum __pyx_v_mode) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("glFrontFace", 0);

  /* "kivy/graphics/opengl.pyx":738
 *     <http://www.khronos.org/opengles/sdk/docs/man/xhtml/glFrontFace.xml>`_
 *     '''
 *     cgl.glFrontFace(mode)             # <<<<<<<<<<<<<<
 * 
 * def glGenBuffers(GLsizei n):
*/
  __pyx_v_4kivy_8graphics_3cgl_cgl->glFrontFace(__pyx_v_mode); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 738, __pyx_L1_error)

  /* "kivy/graphics/opengl.pyx":734
 *     cgl.glFramebufferTexture2D(target, attachment, textarget, texture, level)
 * 
 * def glFrontFace(GLenum mode):             # <<<<<<<<<<<<<<
 *     '''See: `glFrontFace() on Kronos website
 *     <http://www.khronos.org/opengles/sdk/docs/man/xhtml/glFrontFace.xml>`_
*/

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

/* "kivy/graphics/opengl.pyx":740
 *     cgl.glFrontFace(mode)
 * 
 * def glGenBuffers(GLsizei n):             # <<<<<<<<<<<<<<
 *     '''See: `glGenBuffers() on Kronos website
 *     <http://www.khronos.org/opengles/sdk/docs/man/xhtml/glGenBuffers.xml>`_
*/

/* Python wrapper */
static PyObject *__pyx_pw_4kivy_8graphics_6opengl_95glGenBuffers(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_4kivy_8graphics_6opengl_94glGenBuffers, "glGenBuffers(GLsizei n)\n\nSee: `glGenBuffers() on Kronos website\n<http://www.khronos.org/opengles/sdk/docs/man/xhtml/glGenBuffers.xml>`_\n\nUnlike the C specification, the value will be the result of call.");
static PyMethodDef __pyx_mdef_4kivy_8graphics_6opengl_95glGenBuffers = {"glGenBuffers", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4kivy_8graphics_6opengl_95glGenBuffers, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4kivy_8graphics_6opengl_94glGenBuffers};
static PyObject *__pyx_pw_4kivy_8graphics_6opengl_95glGenBuffers(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  GLsizei __pyx_v_n;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[1] = {0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("glGenBuffers (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_n,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(0, 740, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 740, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "glGenBuffers", 0) < (0)) __PYX_ERR(0, 740, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("glGenBuffers", 1, 1, 1, i); __PYX_ERR(0, 740, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 1)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 740, __pyx_L3_error)
    }
    __pyx_v_n = __Pyx_PyLong_As_GLsizei(values[0]); if (unlikely((__pyx_v_n == ((GLsizei)-1)) && PyErr_Occurred())) __PYX_ERR(0, 740, __pyx_L3_error)
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("glGenBuffers", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 740, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("kivy.graphics.opengl.glGenBuffers", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4kivy_8graphics_6opengl_94glGenBuffers(__pyx_self, __pyx_v_n);

  /* function exit code */
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4kivy_8graphics_6opengl_94glGenBuffers(CYTHON_UNUSED PyObject *__pyx_self, GLsizei __pyx_v_n) {
  GLuint *__pyx_v_d;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  GLuint *__pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("glGenBuffers", 0);

  /* "kivy/graphics/opengl.pyx":746
 *     Unlike the C specification, the value will be the result of call.
 *     '''
 *     cdef GLuint *d = _genBegin(n)             # <<<<<<<<<<<<<<
 *     cgl.glGenBuffers(n, d)
 *     return _genEnd(n, d)
*/
  __pyx_t_1 = __pyx_f_4kivy_8graphics_6opengl__genBegin(__pyx_v_n); if (unlikely(__pyx_t_1 == ((void *)NULL) && PyErr_Occurred())) __PYX_ERR(0, 746, __pyx_L1_error)
  __pyx_v_d = __pyx_t_1;

  /* "kivy/graphics/opengl.pyx":747
 *     '''
 *     cdef GLuint *d = _genBegin(n)
 *     cgl.glGenBuffers(n, d)             # <<<<<<<<<<<<<<
 *     return _genEnd(n, d)
 * 
*/
  __pyx_v_4kivy_8graphics_3cgl_cgl->glGenBuffers(__pyx_v_n, __pyx_v_d); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 747, __pyx_L1_error)

  /* "kivy/graphics/opengl.pyx":748
 *     cdef GLuint *d = _genBegin(n)
 *     cgl.glGenBuffers(n, d)
 *     return _genEnd(n, d)             # <<<<<<<<<<<<<<
 * 
 * def glGenerateMipmap(GLenum target):
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_2 = __pyx_f_4kivy_8graphics_6opengl__genEnd(__pyx_v_n, __pyx_v_d); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 748, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_r = __pyx_t_2;
  __pyx_t_2 = 0;
  goto __pyx_L0;

  /* "kivy/graphics/opengl.pyx":740
 *     cgl.glFrontFace(mode)
 * 
 * def glGenBuffers(GLsizei n):             # <<<<<<<<<<<<<<
 *     '''See: `glGenBuffers() on Kronos website
 *     <http://www.khronos.org/opengles/sdk/docs/man/xhtml/glGenBuffers.xml>`_
*/

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

/* "kivy/graphics/opengl.pyx":750
 *     return _genEnd(n, d)
 * 
 * def glGenerateMipmap(GLenum target):             # <<<<<<<<<<<<<<
 *     '''See: `glGenerateMipmap() on Kronos website
 *     <http://www.khronos.org/opengles/sdk/docs/man/xhtml/glGenerateMipmap.xml>`_
*/

/* Python wrapper */
static PyObject *__pyx_pw_4kivy_8graphics_6opengl_97glGenerateMipmap(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_4kivy_8graphics_6opengl_96glGenerateMipmap, "glGenerateMipmap(GLenum target)\n\nSee: `glGenerateMipmap() on Kronos website\n<http://www.khronos.org/opengles/sdk/docs/man/xhtml/glGenerateMipmap.xml>`_");
static PyMethodDef __pyx_mdef_4kivy_8graphics_6opengl_97glGenerateMipmap = {"glGenerateMipmap", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4kivy_8graphics_6opengl_97glGenerateMipmap, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4kivy_8graphics_6opengl_96glGenerateMipmap};
static PyObject *__pyx_pw_4kivy_8graphics_6opengl_97glGenerateMipmap(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  GLenum __pyx_v_target;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[1] = {0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("glGenerateMipmap (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_target,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(0, 750, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 750, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "glGenerateMipmap", 0) < (0)) __PYX_ERR(0, 750, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("glGenerateMipmap", 1, 1, 1, i); __PYX_ERR(0, 750, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 1)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 750, __pyx_L3_error)
    }
    __pyx_v_target = __Pyx_PyLong_As_GLenum(values[0]); if (unlikely((__pyx_v_target == ((GLenum)-1)) && PyErr_Occurred())) __PYX_ERR(0, 750, __pyx_L3_error)
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("glGenerateMipmap", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 750, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("kivy.graphics.opengl.glGenerateMipmap", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4kivy_8graphics_6opengl_96glGenerateMipmap(__pyx_self, __pyx_v_target);

  /* function exit code */
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4kivy_8graphics_6opengl_96glGenerateMipmap(CYTHON_UNUSED PyObject *__pyx_self, GLenum __pyx_v_target) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("glGenerateMipmap", 0);

  /* "kivy/graphics/opengl.pyx":754
 *     <http://www.khronos.org/opengles/sdk/docs/man/xhtml/glGenerateMipmap.xml>`_
 *     '''
 *     cgl.glGenerateMipmap(target)             # <<<<<<<<<<<<<<
 * 
 * def glGenFramebuffers(GLsizei n):
*/
  __pyx_v_4kivy_8graphics_3cgl_cgl->glGenerateMipmap(__pyx_v_target); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 754, __pyx_L1_error)

  /* "kivy/graphics/opengl.pyx":750
 *     return _genEnd(n, d)
 * 
 * def glGenerateMipmap(GLenum target):             # <<<<<<<<<<<<<<
 *     '''See: `glGenerateMipmap() on Kronos website
 *     <http://www.khronos.org/opengles/sdk/docs/man/xhtml/glGenerateMipmap.xml>`_
*/

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

/* "kivy/graphics/opengl.pyx":756
 *     cgl.glGenerateMipmap(target)
 * 
 * def glGenFramebuffers(GLsizei n):             # <<<<<<<<<<<<<<
 *     '''See: `glGenFramebuffers() on Kronos website
 *     <http://www.khronos.org/opengles/sdk/docs/man/xhtml/glGenFramebuffers.xml>`_
*/

/* Python wrapper */
static PyObject *__pyx_pw_4kivy_8graphics_6opengl_99glGenFramebuffers(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_4kivy_8graphics_6opengl_98glGenFramebuffers, "glGenFramebuffers(GLsizei n)\n\nSee: `glGenFramebuffers() on Kronos website\n<http://www.khronos.org/opengles/sdk/docs/man/xhtml/glGenFramebuffers.xml>`_\n\nUnlike the C specification, the value will be the result of call.");
static PyMethodDef __pyx_mdef_4kivy_8graphics_6opengl_99glGenFramebuffers = {"glGenFramebuffers", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4kivy_8graphics_6opengl_99glGenFramebuffers, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4kivy_8graphics_6opengl_98glGenFramebuffers};
static PyObject *__pyx_pw_4kivy_8graphics_6opengl_99glGenFramebuffers(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  GLsizei __pyx_v_n;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[1] = {0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("glGenFramebuffers (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_n,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(0, 756, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 756, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "glGenFramebuffers", 0) < (0)) __PYX_ERR(0, 756, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("glGenFramebuffers", 1, 1, 1, i); __PYX_ERR(0, 756, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 1)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 756, __pyx_L3_error)
    }
    __pyx_v_n = __Pyx_PyLong_As_GLsizei(values[0]); if (unlikely((__pyx_v_n == ((GLsizei)-1)) && PyErr_Occurred())) __PYX_ERR(0, 756, __pyx_L3_error)
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("glGenFramebuffers", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 756, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("kivy.graphics.opengl.glGenFramebuffers", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4kivy_8graphics_6opengl_98glGenFramebuffers(__pyx_self, __pyx_v_n);

  /* function exit code */
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4kivy_8graphics_6opengl_98glGenFramebuffers(CYTHON_UNUSED PyObject *__pyx_self, GLsizei __pyx_v_n) {
  GLuint *__pyx_v_d;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  GLuint *__pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("glGenFramebuffers", 0);

  /* "kivy/graphics/opengl.pyx":762
 *     Unlike the C specification, the value will be the result of call.
 *     '''
 *     cdef GLuint *d = _genBegin(n)             # <<<<<<<<<<<<<<
 *     cgl.glGenFramebuffers(n, d)
 *     return _genEnd(n, d)
*/
  __pyx_t_1 = __pyx_f_4kivy_8graphics_6opengl__genBegin(__pyx_v_n); if (unlikely(__pyx_t_1 == ((void *)NULL) && PyErr_Occurred())) __PYX_ERR(0, 762, __pyx_L1_error)
  __pyx_v_d = __pyx_t_1;

  /* "kivy/graphics/opengl.pyx":763
 *     '''
 *     cdef GLuint *d = _genBegin(n)
 *     cgl.glGenFramebuffers(n, d)             # <<<<<<<<<<<<<<
 *     return _genEnd(n, d)
 * 
*/
  __pyx_v_4kivy_8graphics_3cgl_cgl->glGenFramebuffers(__pyx_v_n, __pyx_v_d); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 763, __pyx_L1_error)

  /* "kivy/graphics/opengl.pyx":764
 *     cdef GLuint *d = _genBegin(n)
 *     cgl.glGenFramebuffers(n, d)
 *     return _genEnd(n, d)             # <<<<<<<<<<<<<<
 * 
 * def glGenRenderbuffers(GLsizei n):
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_2 = __pyx_f_4kivy_8graphics_6opengl__genEnd(__pyx_v_n, __pyx_v_d); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 764, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_r = __pyx_t_2;
  __pyx_t_2 = 0;
  goto __pyx_L0;

  /* "kivy/graphics/opengl.pyx":756
 *     cgl.glGenerateMipmap(target)
 * 
 * def glGenFramebuffers(GLsizei n):             # <<<<<<<<<<<<<<
 *     '''See: `glGenFramebuffers() on Kronos website
 *     <http://www.khronos.org/opengles/sdk/docs/man/xhtml/glGenFramebuffers.xml>`_
*/

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

/* "kivy/graphics/opengl.pyx":766
 *     return _genEnd(n, d)
 * 
 * def glGenRenderbuffers(GLsizei n):             # <<<<<<<<<<<<<<
 *     '''See: `glGenRenderbuffers() on Kronos website
 *     <http://www.khronos.org/opengles/sdk/docs/man/xhtml/glGenRenderbuffers.xml>`_
*/

/* Python wrapper */
static PyObject *__pyx_pw_4kivy_8graphics_6opengl_101glGenRenderbuffers(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_4kivy_8graphics_6opengl_100glGenRenderbuffers, "glGenRenderbuffers(GLsizei n)\n\nSee: `glGenRenderbuffers() on Kronos website\n<http://www.khronos.org/opengles/sdk/docs/man/xhtml/glGenRenderbuffers.xml>`_\n\nUnlike the C specification, the value will be the result of call.");
static PyMethodDef __pyx_mdef_4kivy_8graphics_6opengl_101glGenRenderbuffers = {"glGenRenderbuffers", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4kivy_8graphics_6opengl_101glGenRenderbuffers, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4kivy_8graphics_6opengl_100glGenRenderbuffers};
static PyObject *__pyx_pw_4kivy_8graphics_6opengl_101glGenRenderbuffers(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  GLsizei __pyx_v_n;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[1] = {0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("glGenRenderbuffers (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_n,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(0, 766, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 766, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "glGenRenderbuffers", 0) < (0)) __PYX_ERR(0, 766, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("glGenRenderbuffers", 1, 1, 1, i); __PYX_ERR(0, 766, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 1)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 766, __pyx_L3_error)
    }
    __pyx_v_n = __Pyx_PyLong_As_GLsizei(values[0]); if (unlikely((__pyx_v_n == ((GLsizei)-1)) && PyErr_Occurred())) __PYX_ERR(0, 766, __pyx_L3_error)
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("glGenRenderbuffers", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 766, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("kivy.graphics.opengl.glGenRenderbuffers", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4kivy_8graphics_6opengl_100glGenRenderbuffers(__pyx_self, __pyx_v_n);

  /* function exit code */
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4kivy_8graphics_6opengl_100glGenRenderbuffers(CYTHON_UNUSED PyObject *__pyx_self, GLsizei __pyx_v_n) {
  GLuint *__pyx_v_d;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  GLuint *__pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("glGenRenderbuffers", 0);

  /* "kivy/graphics/opengl.pyx":772
 *     Unlike the C specification, the value will be the result of call.
 *     '''
 *     cdef GLuint *d = _genBegin(n)             # <<<<<<<<<<<<<<
 *     cgl.glGenRenderbuffers(n, d)
 *     return _genEnd(n, d)
*/
  __pyx_t_1 = __pyx_f_4kivy_8graphics_6opengl__genBegin(__pyx_v_n); if (unlikely(__pyx_t_1 == ((void *)NULL) && PyErr_Occurred())) __PYX_ERR(0, 772, __pyx_L1_error)
  __pyx_v_d = __pyx_t_1;

  /* "kivy/graphics/opengl.pyx":773
 *     '''
 *     cdef GLuint *d = _genBegin(n)
 *     cgl.glGenRenderbuffers(n, d)             # <<<<<<<<<<<<<<
 *     return _genEnd(n, d)
 * 
*/
  __pyx_v_4kivy_8graphics_3cgl_cgl->glGenRenderbuffers(__pyx_v_n, __pyx_v_d); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 773, __pyx_L1_error)

  /* "kivy/graphics/opengl.pyx":774
 *     cdef GLuint *d = _genBegin(n)
 *     cgl.glGenRenderbuffers(n, d)
 *     return _genEnd(n, d)             # <<<<<<<<<<<<<<
 * 
 * def glGenTextures(GLsizei n):
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_2 = __pyx_f_4kivy_8graphics_6opengl__genEnd(__pyx_v_n, __pyx_v_d); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 774, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_r = __pyx_t_2;
  __pyx_t_2 = 0;
  goto __pyx_L0;

  /* "kivy/graphics/opengl.pyx":766
 *     return _genEnd(n, d)
 * 
 * def glGenRenderbuffers(GLsizei n):             # <<<<<<<<<<<<<<
 *     '''See: `glGenRenderbuffers() on Kronos website
 *     <http://www.khronos.org/opengles/sdk/docs/man/xhtml/glGenRenderbuffers.xml>`_
*/

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

/* "kivy/graphics/opengl.pyx":776
 *     return _genEnd(n, d)
 * 
 * def glGenTextures(GLsizei n):             # <<<<<<<<<<<<<<
 *     '''See: `glGenTextures() on Kronos website
 *     <http://www.khronos.org/opengles/sdk/docs/man/xhtml/glGenTextures.xml>`_
*/

/* Python wrapper */
static PyObject *__pyx_pw_4kivy_8graphics_6opengl_103glGenTextures(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_4kivy_8graphics_6opengl_102glGenTextures, "glGenTextures(GLsizei n)\n\nSee: `glGenTextures() on Kronos website\n<http://www.khronos.org/opengles/sdk/docs/man/xhtml/glGenTextures.xml>`_\n\nUnlike the C specification, the value will be the result of call.");
static PyMethodDef __pyx_mdef_4kivy_8graphics_6opengl_103glGenTextures = {"glGenTextures", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4kivy_8graphics_6opengl_103glGenTextures, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4kivy_8graphics_6opengl_102glGenTextures};
static PyObject *__pyx_pw_4kivy_8graphics_6opengl_103glGenTextures(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  GLsizei __pyx_v_n;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[1] = {0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("glGenTextures (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_n,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(0, 776, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 776, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "glGenTextures", 0) < (0)) __PYX_ERR(0, 776, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("glGenTextures", 1, 1, 1, i); __PYX_ERR(0, 776, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 1)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 776, __pyx_L3_error)
    }
    __pyx_v_n = __Pyx_PyLong_As_GLsizei(values[0]); if (unlikely((__pyx_v_n == ((GLsizei)-1)) && PyErr_Occurred())) __PYX_ERR(0, 776, __pyx_L3_error)
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("glGenTextures", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 776, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("kivy.graphics.opengl.glGenTextures", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4kivy_8graphics_6opengl_102glGenTextures(__pyx_self, __pyx_v_n);

  /* function exit code */
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4kivy_8graphics_6opengl_102glGenTextures(CYTHON_UNUSED PyObject *__pyx_self, GLsizei __pyx_v_n) {
  GLuint *__pyx_v_d;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  GLuint *__pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("glGenTextures", 0);

  /* "kivy/graphics/opengl.pyx":782
 *     Unlike the C specification, the value will be the result of call.
 *     '''
 *     cdef GLuint *d = _genBegin(n)             # <<<<<<<<<<<<<<
 *     cgl.glGenTextures(n, d)
 *     return _genEnd(n, d)
*/
  __pyx_t_1 = __pyx_f_4kivy_8graphics_6opengl__genBegin(__pyx_v_n); if (unlikely(__pyx_t_1 == ((void *)NULL) && PyErr_Occurred())) __PYX_ERR(0, 782, __pyx_L1_error)
  __pyx_v_d = __pyx_t_1;

  /* "kivy/graphics/opengl.pyx":783
 *     '''
 *     cdef GLuint *d = _genBegin(n)
 *     cgl.glGenTextures(n, d)             # <<<<<<<<<<<<<<
 *     return _genEnd(n, d)
 * 
*/
  __pyx_v_4kivy_8graphics_3cgl_cgl->glGenTextures(__pyx_v_n, __pyx_v_d); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 783, __pyx_L1_error)

  /* "kivy/graphics/opengl.pyx":784
 *     cdef GLuint *d = _genBegin(n)
 *     cgl.glGenTextures(n, d)
 *     return _genEnd(n, d)             # <<<<<<<<<<<<<<
 * 
 * def glGetActiveAttrib(GLuint program, GLuint index):
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_2 = __pyx_f_4kivy_8graphics_6opengl__genEnd(__pyx_v_n, __pyx_v_d); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 784, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_r = __pyx_t_2;
  __pyx_t_2 = 0;
  goto __pyx_L0;

  /* "kivy/graphics/opengl.pyx":776
 *     return _genEnd(n, d)
 * 
 * def glGenTextures(GLsizei n):             # <<<<<<<<<<<<<<
 *     '''See: `glGenTextures() on Kronos website
 *     <http://www.khronos.org/opengles/sdk/docs/man/xhtml/glGenTextures.xml>`_
*/

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

/* "kivy/graphics/opengl.pyx":786
 *     return _genEnd(n, d)
 * 
 * def glGetActiveAttrib(GLuint program, GLuint index):             # <<<<<<<<<<<<<<
 *     '''See: `glGetActiveAttrib() on Kronos website
 *     <http://www.khronos.org/opengles/sdk/docs/man/xhtml/glGetActiveAttrib.xml>`_
*/

/* Python wrapper */
static PyObject *__pyx_pw_4kivy_8graphics_6opengl_105glGetActiveAttrib(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_4kivy_8graphics_6opengl_104glGetActiveAttrib, "glGetActiveAttrib(GLuint program, GLuint index)\n\nSee: `glGetActiveAttrib() on Kronos website\n<http://www.khronos.org/opengles/sdk/docs/man/xhtml/glGetActiveAttrib.xml>`_\n\nUnlike the C specification, the value will be the result of call.");
static PyMethodDef __pyx_mdef_4kivy_8graphics_6opengl_105glGetActiveAttrib = {"glGetActiveAttrib", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4kivy_8graphics_6opengl_105glGetActiveAttrib, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4kivy_8graphics_6opengl_104glGetActiveAttrib};
static PyObject *__pyx_pw_4kivy_8graphics_6opengl_105glGetActiveAttrib(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  GLuint __pyx_v_program;
  GLuint __pyx_v_index;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[2] = {0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("glGetActiveAttrib (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_program,&__pyx_mstate_global->__pyx_n_u_index,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(0, 786, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 786, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 786, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "glGetActiveAttrib", 0) < (0)) __PYX_ERR(0, 786, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 2; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("glGetActiveAttrib", 1, 2, 2, i); __PYX_ERR(0, 786, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 2)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 786, __pyx_L3_error)
      values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 786, __pyx_L3_error)
    }
    __pyx_v_program = __Pyx_PyLong_As_GLuint(values[0]); if (unlikely((__pyx_v_program == ((GLuint)-1)) && PyErr_Occurred())) __PYX_ERR(0, 786, __pyx_L3_error)
    __pyx_v_index = __Pyx_PyLong_As_GLuint(values[1]); if (unlikely((__pyx_v_index == ((GLuint)-1)) && PyErr_Occurred())) __PYX_ERR(0, 786, __pyx_L3_error)
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("glGetActiveAttrib", 1, 2, 2, __pyx_nargs); __PYX_ERR(0, 786, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("kivy.graphics.opengl.glGetActiveAttrib", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4kivy_8graphics_6opengl_104glGetActiveAttrib(__pyx_self, __pyx_v_program, __pyx_v_index);

  /* function exit code */
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4kivy_8graphics_6opengl_104glGetActiveAttrib(CYTHON_UNUSED PyObject *__pyx_self, GLuint __pyx_v_program, GLuint __pyx_v_index) {
  GLint __pyx_v_size;
  GLenum __pyx_v_gl_type;
  GLchar *__pyx_v_name;
  PyObject *__pyx_v_p_name = 0;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  size_t __pyx_t_4;
  PyObject *__pyx_t_5 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("glGetActiveAttrib", 0);

  /* "kivy/graphics/opengl.pyx":792
 *     Unlike the C specification, the value will be the result of call.
 *     '''
 *     cdef GLint size = 0             # <<<<<<<<<<<<<<
 *     cdef GLenum gl_type = 0
 *     cdef GLchar *name
*/
  __pyx_v_size = 0;

  /* "kivy/graphics/opengl.pyx":793
 *     '''
 *     cdef GLint size = 0
 *     cdef GLenum gl_type = 0             # <<<<<<<<<<<<<<
 *     cdef GLchar *name
 *     cdef bytes p_name
*/
  __pyx_v_gl_type = 0;

  /* "kivy/graphics/opengl.pyx":796
 *     cdef GLchar *name
 *     cdef bytes p_name
 *     name = <GLchar *>malloc(sizeof(GLchar) * 255)             # <<<<<<<<<<<<<<
 *     if name == NULL:
 *         raise MemoryError('glGetActiveAttrib()')
*/
  __pyx_v_name = ((GLchar *)malloc(((sizeof(GLchar)) * 0xFF)));

  /* "kivy/graphics/opengl.pyx":797
 *     cdef bytes p_name
 *     name = <GLchar *>malloc(sizeof(GLchar) * 255)
 *     if name == NULL:             # <<<<<<<<<<<<<<
 *         raise MemoryError('glGetActiveAttrib()')
 *     cgl.glGetActiveAttrib(program, index, 255, NULL, &size, &gl_type, name)
*/
  __pyx_t_1 = (__pyx_v_name == NULL);
  if (unlikely(__pyx_t_1)) {

    /* "kivy/graphics/opengl.pyx":798
 *     name = <GLchar *>malloc(sizeof(GLchar) * 255)
 *     if name == NULL:
 *         raise MemoryError('glGetActiveAttrib()')             # <<<<<<<<<<<<<<
 *     cgl.glGetActiveAttrib(program, index, 255, NULL, &size, &gl_type, name)
 *     p_name = <char *>name
*/
    __pyx_t_3 = NULL;
    __pyx_t_4 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_3, __pyx_mstate_global->__pyx_kp_u_glGetActiveAttrib};
      __pyx_t_2 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_MemoryError)), __pyx_callargs+__pyx_t_4, (2-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 798, __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, 798, __pyx_L1_error)

    /* "kivy/graphics/opengl.pyx":797
 *     cdef bytes p_name
 *     name = <GLchar *>malloc(sizeof(GLchar) * 255)
 *     if name == NULL:             # <<<<<<<<<<<<<<
 *         raise MemoryError('glGetActiveAttrib()')
 *     cgl.glGetActiveAttrib(program, index, 255, NULL, &size, &gl_type, name)
*/
  }

  /* "kivy/graphics/opengl.pyx":799
 *     if name == NULL:
 *         raise MemoryError('glGetActiveAttrib()')
 *     cgl.glGetActiveAttrib(program, index, 255, NULL, &size, &gl_type, name)             # <<<<<<<<<<<<<<
 *     p_name = <char *>name
 *     free(name)
*/
  __pyx_v_4kivy_8graphics_3cgl_cgl->glGetActiveAttrib(__pyx_v_program, __pyx_v_index, 0xFF, NULL, (&__pyx_v_size), (&__pyx_v_gl_type), __pyx_v_name); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 799, __pyx_L1_error)

  /* "kivy/graphics/opengl.pyx":800
 *         raise MemoryError('glGetActiveAttrib()')
 *     cgl.glGetActiveAttrib(program, index, 255, NULL, &size, &gl_type, name)
 *     p_name = <char *>name             # <<<<<<<<<<<<<<
 *     free(name)
 *     return p_name, size, gl_type
*/
  __pyx_t_2 = __Pyx_PyBytes_FromString(((char *)__pyx_v_name)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 800, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_v_p_name = ((PyObject*)__pyx_t_2);
  __pyx_t_2 = 0;

  /* "kivy/graphics/opengl.pyx":801
 *     cgl.glGetActiveAttrib(program, index, 255, NULL, &size, &gl_type, name)
 *     p_name = <char *>name
 *     free(name)             # <<<<<<<<<<<<<<
 *     return p_name, size, gl_type
 * 
*/
  free(__pyx_v_name);

  /* "kivy/graphics/opengl.pyx":802
 *     p_name = <char *>name
 *     free(name)
 *     return p_name, size, gl_type             # <<<<<<<<<<<<<<
 * 
 * def glGetActiveUniform(GLuint program, GLuint index):
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_2 = __Pyx_PyLong_From_GLint(__pyx_v_size); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 802, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = __Pyx_PyLong_From_GLenum(__pyx_v_gl_type); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 802, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_5 = PyTuple_New(3); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 802, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_INCREF(__pyx_v_p_name);
  __Pyx_GIVEREF(__pyx_v_p_name);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_v_p_name) != (0)) __PYX_ERR(0, 802, __pyx_L1_error);
  __Pyx_GIVEREF(__pyx_t_2);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_5, 1, __pyx_t_2) != (0)) __PYX_ERR(0, 802, __pyx_L1_error);
  __Pyx_GIVEREF(__pyx_t_3);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_5, 2, __pyx_t_3) != (0)) __PYX_ERR(0, 802, __pyx_L1_error);
  __pyx_t_2 = 0;
  __pyx_t_3 = 0;
  __pyx_r = __pyx_t_5;
  __pyx_t_5 = 0;
  goto __pyx_L0;

  /* "kivy/graphics/opengl.pyx":786
 *     return _genEnd(n, d)
 * 
 * def glGetActiveAttrib(GLuint program, GLuint index):             # <<<<<<<<<<<<<<
 *     '''See: `glGetActiveAttrib() on Kronos website
 *     <http://www.khronos.org/opengles/sdk/docs/man/xhtml/glGetActiveAttrib.xml>`_
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("kivy.graphics.opengl.glGetActiveAttrib", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_p_name);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "kivy/graphics/opengl.pyx":804
 *     return p_name, size, gl_type
 * 
 * def glGetActiveUniform(GLuint program, GLuint index):             # <<<<<<<<<<<<<<
 *     '''See: `glGetActiveUniform() on Kronos website
 *     <http://www.khronos.org/opengles/sdk/docs/man/xhtml/glGetActiveUniform.xml>`_
*/

/* Python wrapper */
static PyObject *__pyx_pw_4kivy_8graphics_6opengl_107glGetActiveUniform(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_4kivy_8graphics_6opengl_106glGetActiveUniform, "glGetActiveUniform(GLuint program, GLuint index)\n\nSee: `glGetActiveUniform() on Kronos website\n<http://www.khronos.org/opengles/sdk/docs/man/xhtml/glGetActiveUniform.xml>`_\n\nUnlike the C specification, the value will be the result of call.");
static PyMethodDef __pyx_mdef_4kivy_8graphics_6opengl_107glGetActiveUniform = {"glGetActiveUniform", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4kivy_8graphics_6opengl_107glGetActiveUniform, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4kivy_8graphics_6opengl_106glGetActiveUniform};
static PyObject *__pyx_pw_4kivy_8graphics_6opengl_107glGetActiveUniform(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  GLuint __pyx_v_program;
  GLuint __pyx_v_index;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[2] = {0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("glGetActiveUniform (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_program,&__pyx_mstate_global->__pyx_n_u_index,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(0, 804, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 804, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 804, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "glGetActiveUniform", 0) < (0)) __PYX_ERR(0, 804, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 2; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("glGetActiveUniform", 1, 2, 2, i); __PYX_ERR(0, 804, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 2)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 804, __pyx_L3_error)
      values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 804, __pyx_L3_error)
    }
    __pyx_v_program = __Pyx_PyLong_As_GLuint(values[0]); if (unlikely((__pyx_v_program == ((GLuint)-1)) && PyErr_Occurred())) __PYX_ERR(0, 804, __pyx_L3_error)
    __pyx_v_index = __Pyx_PyLong_As_GLuint(values[1]); if (unlikely((__pyx_v_index == ((GLuint)-1)) && PyErr_Occurred())) __PYX_ERR(0, 804, __pyx_L3_error)
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("glGetActiveUniform", 1, 2, 2, __pyx_nargs); __PYX_ERR(0, 804, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("kivy.graphics.opengl.glGetActiveUniform", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4kivy_8graphics_6opengl_106glGetActiveUniform(__pyx_self, __pyx_v_program, __pyx_v_index);

  /* function exit code */
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4kivy_8graphics_6opengl_106glGetActiveUniform(CYTHON_UNUSED PyObject *__pyx_self, GLuint __pyx_v_program, GLuint __pyx_v_index) {
  GLint __pyx_v_size;
  GLenum __pyx_v_gl_type;
  GLchar *__pyx_v_name;
  PyObject *__pyx_v_p_name = 0;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  size_t __pyx_t_4;
  PyObject *__pyx_t_5 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("glGetActiveUniform", 0);

  /* "kivy/graphics/opengl.pyx":810
 *     Unlike the C specification, the value will be the result of call.
 *     '''
 *     cdef GLint size = 0             # <<<<<<<<<<<<<<
 *     cdef GLenum gl_type = 0
 *     cdef GLchar *name
*/
  __pyx_v_size = 0;

  /* "kivy/graphics/opengl.pyx":811
 *     '''
 *     cdef GLint size = 0
 *     cdef GLenum gl_type = 0             # <<<<<<<<<<<<<<
 *     cdef GLchar *name
 *     cdef bytes p_name
*/
  __pyx_v_gl_type = 0;

  /* "kivy/graphics/opengl.pyx":814
 *     cdef GLchar *name
 *     cdef bytes p_name
 *     name = <GLchar *>malloc(sizeof(GLchar) * 255)             # <<<<<<<<<<<<<<
 *     if name == NULL:
 *         raise MemoryError('glGetActiveUniform()')
*/
  __pyx_v_name = ((GLchar *)malloc(((sizeof(GLchar)) * 0xFF)));

  /* "kivy/graphics/opengl.pyx":815
 *     cdef bytes p_name
 *     name = <GLchar *>malloc(sizeof(GLchar) * 255)
 *     if name == NULL:             # <<<<<<<<<<<<<<
 *         raise MemoryError('glGetActiveUniform()')
 *     cgl.glGetActiveUniform(program, index, 255, NULL, &size, &gl_type, name)
*/
  __pyx_t_1 = (__pyx_v_name == NULL);
  if (unlikely(__pyx_t_1)) {

    /* "kivy/graphics/opengl.pyx":816
 *     name = <GLchar *>malloc(sizeof(GLchar) * 255)
 *     if name == NULL:
 *         raise MemoryError('glGetActiveUniform()')             # <<<<<<<<<<<<<<
 *     cgl.glGetActiveUniform(program, index, 255, NULL, &size, &gl_type, name)
 *     p_name = <char *>name
*/
    __pyx_t_3 = NULL;
    __pyx_t_4 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_3, __pyx_mstate_global->__pyx_kp_u_glGetActiveUniform};
      __pyx_t_2 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_MemoryError)), __pyx_callargs+__pyx_t_4, (2-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 816, __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, 816, __pyx_L1_error)

    /* "kivy/graphics/opengl.pyx":815
 *     cdef bytes p_name
 *     name = <GLchar *>malloc(sizeof(GLchar) * 255)
 *     if name == NULL:             # <<<<<<<<<<<<<<
 *         raise MemoryError('glGetActiveUniform()')
 *     cgl.glGetActiveUniform(program, index, 255, NULL, &size, &gl_type, name)
*/
  }

  /* "kivy/graphics/opengl.pyx":817
 *     if name == NULL:
 *         raise MemoryError('glGetActiveUniform()')
 *     cgl.glGetActiveUniform(program, index, 255, NULL, &size, &gl_type, name)             # <<<<<<<<<<<<<<
 *     p_name = <char *>name
 *     free(name)
*/
  __pyx_v_4kivy_8graphics_3cgl_cgl->glGetActiveUniform(__pyx_v_program, __pyx_v_index, 0xFF, NULL, (&__pyx_v_size), (&__pyx_v_gl_type), __pyx_v_name); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 817, __pyx_L1_error)

  /* "kivy/graphics/opengl.pyx":818
 *         raise MemoryError('glGetActiveUniform()')
 *     cgl.glGetActiveUniform(program, index, 255, NULL, &size, &gl_type, name)
 *     p_name = <char *>name             # <<<<<<<<<<<<<<
 *     free(name)
 *     return p_name, size, gl_type
*/
  __pyx_t_2 = __Pyx_PyBytes_FromString(((char *)__pyx_v_name)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 818, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_v_p_name = ((PyObject*)__pyx_t_2);
  __pyx_t_2 = 0;

  /* "kivy/graphics/opengl.pyx":819
 *     cgl.glGetActiveUniform(program, index, 255, NULL, &size, &gl_type, name)
 *     p_name = <char *>name
 *     free(name)             # <<<<<<<<<<<<<<
 *     return p_name, size, gl_type
 * 
*/
  free(__pyx_v_name);

  /* "kivy/graphics/opengl.pyx":820
 *     p_name = <char *>name
 *     free(name)
 *     return p_name, size, gl_type             # <<<<<<<<<<<<<<
 * 
 * def glGetAttachedShaders(GLuint program, GLsizei maxcount):
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_2 = __Pyx_PyLong_From_GLint(__pyx_v_size); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 820, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = __Pyx_PyLong_From_GLenum(__pyx_v_gl_type); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 820, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_5 = PyTuple_New(3); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 820, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_INCREF(__pyx_v_p_name);
  __Pyx_GIVEREF(__pyx_v_p_name);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_v_p_name) != (0)) __PYX_ERR(0, 820, __pyx_L1_error);
  __Pyx_GIVEREF(__pyx_t_2);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_5, 1, __pyx_t_2) != (0)) __PYX_ERR(0, 820, __pyx_L1_error);
  __Pyx_GIVEREF(__pyx_t_3);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_5, 2, __pyx_t_3) != (0)) __PYX_ERR(0, 820, __pyx_L1_error);
  __pyx_t_2 = 0;
  __pyx_t_3 = 0;
  __pyx_r = __pyx_t_5;
  __pyx_t_5 = 0;
  goto __pyx_L0;

  /* "kivy/graphics/opengl.pyx":804
 *     return p_name, size, gl_type
 * 
 * def glGetActiveUniform(GLuint program, GLuint index):             # <<<<<<<<<<<<<<
 *     '''See: `glGetActiveUniform() on Kronos website
 *     <http://www.khronos.org/opengles/sdk/docs/man/xhtml/glGetActiveUniform.xml>`_
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("kivy.graphics.opengl.glGetActiveUniform", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_p_name);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "kivy/graphics/opengl.pyx":822
 *     return p_name, size, gl_type
 * 
 * def glGetAttachedShaders(GLuint program, GLsizei maxcount):             # <<<<<<<<<<<<<<
 *     '''See: `glGetAttachedShaders() on Kronos website
 *     <http://www.khronos.org/opengles/sdk/docs/man/xhtml/glGetAttachedShaders.xml>`_
*/

/* Python wrapper */
static PyObject *__pyx_pw_4kivy_8graphics_6opengl_109glGetAttachedShaders(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_4kivy_8graphics_6opengl_108glGetAttachedShaders, "glGetAttachedShaders(GLuint program, GLsizei maxcount)\n\nSee: `glGetAttachedShaders() on Kronos website\n<http://www.khronos.org/opengles/sdk/docs/man/xhtml/glGetAttachedShaders.xml>`_\n\nUnlike the C specification, the value will be the result of call.");
static PyMethodDef __pyx_mdef_4kivy_8graphics_6opengl_109glGetAttachedShaders = {"glGetAttachedShaders", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4kivy_8graphics_6opengl_109glGetAttachedShaders, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4kivy_8graphics_6opengl_108glGetAttachedShaders};
static PyObject *__pyx_pw_4kivy_8graphics_6opengl_109glGetAttachedShaders(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  GLuint __pyx_v_program;
  CYTHON_UNUSED GLsizei __pyx_v_maxcount;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[2] = {0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("glGetAttachedShaders (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_program,&__pyx_mstate_global->__pyx_n_u_maxcount,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(0, 822, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 822, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 822, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "glGetAttachedShaders", 0) < (0)) __PYX_ERR(0, 822, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 2; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("glGetAttachedShaders", 1, 2, 2, i); __PYX_ERR(0, 822, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 2)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 822, __pyx_L3_error)
      values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 822, __pyx_L3_error)
    }
    __pyx_v_program = __Pyx_PyLong_As_GLuint(values[0]); if (unlikely((__pyx_v_program == ((GLuint)-1)) && PyErr_Occurred())) __PYX_ERR(0, 822, __pyx_L3_error)
    __pyx_v_maxcount = __Pyx_PyLong_As_GLsizei(values[1]); if (unlikely((__pyx_v_maxcount == ((GLsizei)-1)) && PyErr_Occurred())) __PYX_ERR(0, 822, __pyx_L3_error)
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("glGetAttachedShaders", 1, 2, 2, __pyx_nargs); __PYX_ERR(0, 822, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("kivy.graphics.opengl.glGetAttachedShaders", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4kivy_8graphics_6opengl_108glGetAttachedShaders(__pyx_self, __pyx_v_program, __pyx_v_maxcount);

  /* function exit code */
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4kivy_8graphics_6opengl_108glGetAttachedShaders(CYTHON_UNUSED PyObject *__pyx_self, GLuint __pyx_v_program, CYTHON_UNUSED GLsizei __pyx_v_maxcount) {
  GLsizei __pyx_v_count;
  GLuint *__pyx_v_shaders;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  GLuint *__pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("glGetAttachedShaders", 0);

  /* "kivy/graphics/opengl.pyx":828
 *     Unlike the C specification, the value will be the result of call.
 *     '''
 *     cdef GLsizei count = 1024             # <<<<<<<<<<<<<<
 *     cdef GLuint *shaders = _genBegin(count)
 *     cgl.glGetAttachedShaders(program, count, &count, shaders)
*/
  __pyx_v_count = 0x400;

  /* "kivy/graphics/opengl.pyx":829
 *     '''
 *     cdef GLsizei count = 1024
 *     cdef GLuint *shaders = _genBegin(count)             # <<<<<<<<<<<<<<
 *     cgl.glGetAttachedShaders(program, count, &count, shaders)
 *     return _genEnd(count, shaders)
*/
  __pyx_t_1 = __pyx_f_4kivy_8graphics_6opengl__genBegin(__pyx_v_count); if (unlikely(__pyx_t_1 == ((void *)NULL) && PyErr_Occurred())) __PYX_ERR(0, 829, __pyx_L1_error)
  __pyx_v_shaders = __pyx_t_1;

  /* "kivy/graphics/opengl.pyx":830
 *     cdef GLsizei count = 1024
 *     cdef GLuint *shaders = _genBegin(count)
 *     cgl.glGetAttachedShaders(program, count, &count, shaders)             # <<<<<<<<<<<<<<
 *     return _genEnd(count, shaders)
 * 
*/
  __pyx_v_4kivy_8graphics_3cgl_cgl->glGetAttachedShaders(__pyx_v_program, __pyx_v_count, (&__pyx_v_count), __pyx_v_shaders); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 830, __pyx_L1_error)

  /* "kivy/graphics/opengl.pyx":831
 *     cdef GLuint *shaders = _genBegin(count)
 *     cgl.glGetAttachedShaders(program, count, &count, shaders)
 *     return _genEnd(count, shaders)             # <<<<<<<<<<<<<<
 * 
 * def glGetAttribLocation(GLuint program,  bytes name):
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_2 = __pyx_f_4kivy_8graphics_6opengl__genEnd(__pyx_v_count, __pyx_v_shaders); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 831, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_r = __pyx_t_2;
  __pyx_t_2 = 0;
  goto __pyx_L0;

  /* "kivy/graphics/opengl.pyx":822
 *     return p_name, size, gl_type
 * 
 * def glGetAttachedShaders(GLuint program, GLsizei maxcount):             # <<<<<<<<<<<<<<
 *     '''See: `glGetAttachedShaders() on Kronos website
 *     <http://www.khronos.org/opengles/sdk/docs/man/xhtml/glGetAttachedShaders.xml>`_
*/

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

/* "kivy/graphics/opengl.pyx":833
 *     return _genEnd(count, shaders)
 * 
 * def glGetAttribLocation(GLuint program,  bytes name):             # <<<<<<<<<<<<<<
 *     '''See: `glGetAttribLocation() on Kronos website
 *     <http://www.khronos.org/opengles/sdk/docs/man/xhtml/glGetAttribLocation.xml>`_
*/

/* Python wrapper */
static PyObject *__pyx_pw_4kivy_8graphics_6opengl_111glGetAttribLocation(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_4kivy_8graphics_6opengl_110glGetAttribLocation, "glGetAttribLocation(GLuint program, bytes name)\n\nSee: `glGetAttribLocation() on Kronos website\n<http://www.khronos.org/opengles/sdk/docs/man/xhtml/glGetAttribLocation.xml>`_\n\nUnlike the C specification, the value will be the result of call.");
static PyMethodDef __pyx_mdef_4kivy_8graphics_6opengl_111glGetAttribLocation = {"glGetAttribLocation", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4kivy_8graphics_6opengl_111glGetAttribLocation, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4kivy_8graphics_6opengl_110glGetAttribLocation};
static PyObject *__pyx_pw_4kivy_8graphics_6opengl_111glGetAttribLocation(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  GLuint __pyx_v_program;
  PyObject *__pyx_v_name = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[2] = {0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("glGetAttribLocation (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_program,&__pyx_mstate_global->__pyx_n_u_name,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(0, 833, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 833, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 833, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "glGetAttribLocation", 0) < (0)) __PYX_ERR(0, 833, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 2; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("glGetAttribLocation", 1, 2, 2, i); __PYX_ERR(0, 833, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 2)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 833, __pyx_L3_error)
      values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 833, __pyx_L3_error)
    }
    __pyx_v_program = __Pyx_PyLong_As_GLuint(values[0]); if (unlikely((__pyx_v_program == ((GLuint)-1)) && PyErr_Occurred())) __PYX_ERR(0, 833, __pyx_L3_error)
    __pyx_v_name = ((PyObject*)values[1]);
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("glGetAttribLocation", 1, 2, 2, __pyx_nargs); __PYX_ERR(0, 833, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("kivy.graphics.opengl.glGetAttribLocation", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_name), (&PyBytes_Type), 1, "name", 1))) __PYX_ERR(0, 833, __pyx_L1_error)
  __pyx_r = __pyx_pf_4kivy_8graphics_6opengl_110glGetAttribLocation(__pyx_self, __pyx_v_program, __pyx_v_name);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  goto __pyx_L7_cleaned_up;
  __pyx_L0:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __pyx_L7_cleaned_up:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4kivy_8graphics_6opengl_110glGetAttribLocation(CYTHON_UNUSED PyObject *__pyx_self, GLuint __pyx_v_program, PyObject *__pyx_v_name) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  char *__pyx_t_1;
  GLint __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("glGetAttribLocation", 0);

  /* "kivy/graphics/opengl.pyx":839
 *     Unlike the C specification, the value will be the result of call.
 *     '''
 *     return cgl.glGetAttribLocation(program, <char *>name)             # <<<<<<<<<<<<<<
 * 
 * def glGetBooleanv(GLenum pname):
*/
  __Pyx_XDECREF(__pyx_r);
  if (unlikely(__pyx_v_name == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "expected bytes, NoneType found");
    __PYX_ERR(0, 839, __pyx_L1_error)
  }
  __pyx_t_1 = __Pyx_PyBytes_AsWritableString(__pyx_v_name); if (unlikely((!__pyx_t_1) && PyErr_Occurred())) __PYX_ERR(0, 839, __pyx_L1_error)
  __pyx_t_2 = __pyx_v_4kivy_8graphics_3cgl_cgl->glGetAttribLocation(__pyx_v_program, ((char *)__pyx_t_1)); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 839, __pyx_L1_error)
  __pyx_t_3 = __Pyx_PyLong_From_GLint(__pyx_t_2); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 839, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_r = __pyx_t_3;
  __pyx_t_3 = 0;
  goto __pyx_L0;

  /* "kivy/graphics/opengl.pyx":833
 *     return _genEnd(count, shaders)
 * 
 * def glGetAttribLocation(GLuint program,  bytes name):             # <<<<<<<<<<<<<<
 *     '''See: `glGetAttribLocation() on Kronos website
 *     <http://www.khronos.org/opengles/sdk/docs/man/xhtml/glGetAttribLocation.xml>`_
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_AddTraceback("kivy.graphics.opengl.glGetAttribLocation", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "kivy/graphics/opengl.pyx":841
 *     return cgl.glGetAttribLocation(program, <char *>name)
 * 
 * def glGetBooleanv(GLenum pname):             # <<<<<<<<<<<<<<
 *     '''See: `glGetBooleanv() on Kronos website
 *     <http://www.khronos.org/opengles/sdk/docs/man/xhtml/glGetBooleanv.xml>`_
*/

/* Python wrapper */
static PyObject *__pyx_pw_4kivy_8graphics_6opengl_113glGetBooleanv(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_4kivy_8graphics_6opengl_112glGetBooleanv, "glGetBooleanv(GLenum pname)\n\nSee: `glGetBooleanv() on Kronos website\n<http://www.khronos.org/opengles/sdk/docs/man/xhtml/glGetBooleanv.xml>`_\n\nUnlike the C specification, the value will be the result of call.");
static PyMethodDef __pyx_mdef_4kivy_8graphics_6opengl_113glGetBooleanv = {"glGetBooleanv", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4kivy_8graphics_6opengl_113glGetBooleanv, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4kivy_8graphics_6opengl_112glGetBooleanv};
static PyObject *__pyx_pw_4kivy_8graphics_6opengl_113glGetBooleanv(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  GLenum __pyx_v_pname;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[1] = {0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("glGetBooleanv (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_pname,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(0, 841, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 841, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "glGetBooleanv", 0) < (0)) __PYX_ERR(0, 841, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("glGetBooleanv", 1, 1, 1, i); __PYX_ERR(0, 841, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 1)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 841, __pyx_L3_error)
    }
    __pyx_v_pname = __Pyx_PyLong_As_GLenum(values[0]); if (unlikely((__pyx_v_pname == ((GLenum)-1)) && PyErr_Occurred())) __PYX_ERR(0, 841, __pyx_L3_error)
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("glGetBooleanv", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 841, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("kivy.graphics.opengl.glGetBooleanv", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4kivy_8graphics_6opengl_112glGetBooleanv(__pyx_self, __pyx_v_pname);

  /* function exit code */
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4kivy_8graphics_6opengl_112glGetBooleanv(CYTHON_UNUSED PyObject *__pyx_self, GLenum __pyx_v_pname) {
  GLboolean *__pyx_v_params;
  PyObject *__pyx_v_out = 0;
  PyObject *__pyx_7genexpr__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;
  size_t __pyx_t_4;
  int __pyx_t_5;
  PyObject *__pyx_t_6 = NULL;
  PyObject *__pyx_t_7 = NULL;
  PyObject *(*__pyx_t_8)(PyObject *);
  Py_ssize_t __pyx_t_9;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("glGetBooleanv", 0);

  /* "kivy/graphics/opengl.pyx":847
 *     Unlike the C specification, the value will be the result of call.
 *     '''
 *     cdef GLboolean *params = <GLboolean *>malloc(_GL_GET_SIZE[pname] * sizeof(GLboolean))             # <<<<<<<<<<<<<<
 *     if params == NULL:
 *         raise MemoryError('glGetBooleanv()')
*/
  __Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_mstate_global->__pyx_n_u_GL_GET_SIZE); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 847, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = __Pyx_GetItemInt(__pyx_t_1, __pyx_v_pname, GLenum, 0, __Pyx_PyLong_From_GLenum, 0, 0, 1, 1, __Pyx_ReferenceSharing_OwnStrongReference); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 847, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_1 = __Pyx_PyLong_FromSize_t((sizeof(GLboolean))); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 847, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_3 = PyNumber_Multiply(__pyx_t_2, __pyx_t_1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 847, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_4 = __Pyx_PyLong_As_size_t(__pyx_t_3); if (unlikely((__pyx_t_4 == (size_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 847, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __pyx_v_params = ((GLboolean *)malloc(__pyx_t_4));

  /* "kivy/graphics/opengl.pyx":848
 *     '''
 *     cdef GLboolean *params = <GLboolean *>malloc(_GL_GET_SIZE[pname] * sizeof(GLboolean))
 *     if params == NULL:             # <<<<<<<<<<<<<<
 *         raise MemoryError('glGetBooleanv()')
 *     cgl.glGetBooleanv(pname, params)
*/
  __pyx_t_5 = (__pyx_v_params == NULL);
  if (unlikely(__pyx_t_5)) {

    /* "kivy/graphics/opengl.pyx":849
 *     cdef GLboolean *params = <GLboolean *>malloc(_GL_GET_SIZE[pname] * sizeof(GLboolean))
 *     if params == NULL:
 *         raise MemoryError('glGetBooleanv()')             # <<<<<<<<<<<<<<
 *     cgl.glGetBooleanv(pname, params)
 *     cdef out = [params[i] for i in xrange(_GL_GET_SIZE[pname])]
*/
    __pyx_t_1 = NULL;
    __pyx_t_4 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_1, __pyx_mstate_global->__pyx_kp_u_glGetBooleanv};
      __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_MemoryError)), __pyx_callargs+__pyx_t_4, (2-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0;
      if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 849, __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, 849, __pyx_L1_error)

    /* "kivy/graphics/opengl.pyx":848
 *     '''
 *     cdef GLboolean *params = <GLboolean *>malloc(_GL_GET_SIZE[pname] * sizeof(GLboolean))
 *     if params == NULL:             # <<<<<<<<<<<<<<
 *         raise MemoryError('glGetBooleanv()')
 *     cgl.glGetBooleanv(pname, params)
*/
  }

  /* "kivy/graphics/opengl.pyx":850
 *     if params == NULL:
 *         raise MemoryError('glGetBooleanv()')
 *     cgl.glGetBooleanv(pname, params)             # <<<<<<<<<<<<<<
 *     cdef out = [params[i] for i in xrange(_GL_GET_SIZE[pname])]
 *     free(params)
*/
  __pyx_v_4kivy_8graphics_3cgl_cgl->glGetBooleanv(__pyx_v_pname, __pyx_v_params); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 850, __pyx_L1_error)

  /* "kivy/graphics/opengl.pyx":851
 *         raise MemoryError('glGetBooleanv()')
 *     cgl.glGetBooleanv(pname, params)
 *     cdef out = [params[i] for i in xrange(_GL_GET_SIZE[pname])]             # <<<<<<<<<<<<<<
 *     free(params)
 *     return out
*/
  { /* enter inner scope */
    __pyx_t_3 = PyList_New(0); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 851, __pyx_L6_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_2 = NULL;
    __Pyx_GetModuleGlobalName(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_GL_GET_SIZE); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 851, __pyx_L6_error)
    __Pyx_GOTREF(__pyx_t_6);
    __pyx_t_7 = __Pyx_GetItemInt(__pyx_t_6, __pyx_v_pname, GLenum, 0, __Pyx_PyLong_From_GLenum, 0, 0, 1, 1, __Pyx_ReferenceSharing_OwnStrongReference); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 851, __pyx_L6_error)
    __Pyx_GOTREF(__pyx_t_7);
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
    __pyx_t_4 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_2, __pyx_t_7};
      __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)(&PyRange_Type), __pyx_callargs+__pyx_t_4, (2-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
      if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 851, __pyx_L6_error)
      __Pyx_GOTREF(__pyx_t_1);
    }
    __pyx_t_7 = PyObject_GetIter(__pyx_t_1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 851, __pyx_L6_error)
    __Pyx_GOTREF(__pyx_t_7);
    __pyx_t_8 = (CYTHON_COMPILING_IN_LIMITED_API) ? PyIter_Next : __Pyx_PyObject_GetIterNextFunc(__pyx_t_7); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 851, __pyx_L6_error)
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    for (;;) {
      {
        __pyx_t_1 = __pyx_t_8(__pyx_t_7);
        if (unlikely(!__pyx_t_1)) {
          PyObject* exc_type = PyErr_Occurred();
          if (exc_type) {
            if (unlikely(!__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) __PYX_ERR(0, 851, __pyx_L6_error)
            PyErr_Clear();
          }
          break;
        }
      }
      __Pyx_GOTREF(__pyx_t_1);
      __Pyx_XDECREF_SET(__pyx_7genexpr__pyx_v_i, __pyx_t_1);
      __pyx_t_1 = 0;
      __pyx_t_9 = __Pyx_PyIndex_AsSsize_t(__pyx_7genexpr__pyx_v_i); if (unlikely((__pyx_t_9 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 851, __pyx_L6_error)
      __pyx_t_1 = __Pyx_PyLong_From_GLboolean((__pyx_v_params[__pyx_t_9])); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 851, __pyx_L6_error)
      __Pyx_GOTREF(__pyx_t_1);
      if (unlikely(__Pyx_ListComp_Append(__pyx_t_3, (PyObject*)__pyx_t_1))) __PYX_ERR(0, 851, __pyx_L6_error)
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    }
    __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
    __Pyx_XDECREF(__pyx_7genexpr__pyx_v_i); __pyx_7genexpr__pyx_v_i = 0;
    goto __pyx_L10_exit_scope;
    __pyx_L6_error:;
    __Pyx_XDECREF(__pyx_7genexpr__pyx_v_i); __pyx_7genexpr__pyx_v_i = 0;
    goto __pyx_L1_error;
    __pyx_L10_exit_scope:;
  } /* exit inner scope */
  __pyx_v_out = __pyx_t_3;
  __pyx_t_3 = 0;

  /* "kivy/graphics/opengl.pyx":852
 *     cgl.glGetBooleanv(pname, params)
 *     cdef out = [params[i] for i in xrange(_GL_GET_SIZE[pname])]
 *     free(params)             # <<<<<<<<<<<<<<
 *     return out
 * 
*/
  free(__pyx_v_params);

  /* "kivy/graphics/opengl.pyx":853
 *     cdef out = [params[i] for i in xrange(_GL_GET_SIZE[pname])]
 *     free(params)
 *     return out             # <<<<<<<<<<<<<<
 * 
 * def glGetBufferParameteriv(GLenum target, GLenum pname):
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF(__pyx_v_out);
  __pyx_r = __pyx_v_out;
  goto __pyx_L0;

  /* "kivy/graphics/opengl.pyx":841
 *     return cgl.glGetAttribLocation(program, <char *>name)
 * 
 * def glGetBooleanv(GLenum pname):             # <<<<<<<<<<<<<<
 *     '''See: `glGetBooleanv() on Kronos website
 *     <http://www.khronos.org/opengles/sdk/docs/man/xhtml/glGetBooleanv.xml>`_
*/

  /* 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_6);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_AddTraceback("kivy.graphics.opengl.glGetBooleanv", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_out);
  __Pyx_XDECREF(__pyx_7genexpr__pyx_v_i);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "kivy/graphics/opengl.pyx":855
 *     return out
 * 
 * def glGetBufferParameteriv(GLenum target, GLenum pname):             # <<<<<<<<<<<<<<
 *     '''See: `glGetBufferParameteriv() on Kronos website
 *     <http://www.khronos.org/opengles/sdk/docs/man/xhtml/glGetBufferParameteriv.xml>`_
*/

/* Python wrapper */
static PyObject *__pyx_pw_4kivy_8graphics_6opengl_115glGetBufferParameteriv(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_4kivy_8graphics_6opengl_114glGetBufferParameteriv, "glGetBufferParameteriv(GLenum target, GLenum pname)\n\nSee: `glGetBufferParameteriv() on Kronos website\n<http://www.khronos.org/opengles/sdk/docs/man/xhtml/glGetBufferParameteriv.xml>`_\n\nUnlike the C specification, the value will be the result of call.");
static PyMethodDef __pyx_mdef_4kivy_8graphics_6opengl_115glGetBufferParameteriv = {"glGetBufferParameteriv", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4kivy_8graphics_6opengl_115glGetBufferParameteriv, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4kivy_8graphics_6opengl_114glGetBufferParameteriv};
static PyObject *__pyx_pw_4kivy_8graphics_6opengl_115glGetBufferParameteriv(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  GLenum __pyx_v_target;
  GLenum __pyx_v_pname;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[2] = {0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("glGetBufferParameteriv (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_target,&__pyx_mstate_global->__pyx_n_u_pname,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(0, 855, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 855, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 855, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "glGetBufferParameteriv", 0) < (0)) __PYX_ERR(0, 855, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 2; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("glGetBufferParameteriv", 1, 2, 2, i); __PYX_ERR(0, 855, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 2)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 855, __pyx_L3_error)
      values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 855, __pyx_L3_error)
    }
    __pyx_v_target = __Pyx_PyLong_As_GLenum(values[0]); if (unlikely((__pyx_v_target == ((GLenum)-1)) && PyErr_Occurred())) __PYX_ERR(0, 855, __pyx_L3_error)
    __pyx_v_pname = __Pyx_PyLong_As_GLenum(values[1]); if (unlikely((__pyx_v_pname == ((GLenum)-1)) && PyErr_Occurred())) __PYX_ERR(0, 855, __pyx_L3_error)
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("glGetBufferParameteriv", 1, 2, 2, __pyx_nargs); __PYX_ERR(0, 855, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("kivy.graphics.opengl.glGetBufferParameteriv", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4kivy_8graphics_6opengl_114glGetBufferParameteriv(__pyx_self, __pyx_v_target, __pyx_v_pname);

  /* function exit code */
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4kivy_8graphics_6opengl_114glGetBufferParameteriv(CYTHON_UNUSED PyObject *__pyx_self, GLenum __pyx_v_target, GLenum __pyx_v_pname) {
  GLint *__pyx_v_params;
  PyObject *__pyx_v_out = 0;
  PyObject *__pyx_8genexpr1__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;
  size_t __pyx_t_4;
  int __pyx_t_5;
  PyObject *__pyx_t_6 = NULL;
  PyObject *__pyx_t_7 = NULL;
  PyObject *(*__pyx_t_8)(PyObject *);
  Py_ssize_t __pyx_t_9;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("glGetBufferParameteriv", 0);

  /* "kivy/graphics/opengl.pyx":861
 *     Unlike the C specification, the value will be the result of call.
 *     '''
 *     cdef GLint *params = <GLint *>malloc(_GL_GET_SIZE[pname] * sizeof(GLint))             # <<<<<<<<<<<<<<
 *     if params == NULL:
 *         raise MemoryError('glGetBufferParameteriv()')
*/
  __Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_mstate_global->__pyx_n_u_GL_GET_SIZE); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 861, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = __Pyx_GetItemInt(__pyx_t_1, __pyx_v_pname, GLenum, 0, __Pyx_PyLong_From_GLenum, 0, 0, 1, 1, __Pyx_ReferenceSharing_OwnStrongReference); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 861, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_1 = __Pyx_PyLong_FromSize_t((sizeof(GLint))); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 861, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_3 = PyNumber_Multiply(__pyx_t_2, __pyx_t_1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 861, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_4 = __Pyx_PyLong_As_size_t(__pyx_t_3); if (unlikely((__pyx_t_4 == (size_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 861, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __pyx_v_params = ((GLint *)malloc(__pyx_t_4));

  /* "kivy/graphics/opengl.pyx":862
 *     '''
 *     cdef GLint *params = <GLint *>malloc(_GL_GET_SIZE[pname] * sizeof(GLint))
 *     if params == NULL:             # <<<<<<<<<<<<<<
 *         raise MemoryError('glGetBufferParameteriv()')
 *     cgl.glGetBufferParameteriv(target, pname, params)
*/
  __pyx_t_5 = (__pyx_v_params == NULL);
  if (unlikely(__pyx_t_5)) {

    /* "kivy/graphics/opengl.pyx":863
 *     cdef GLint *params = <GLint *>malloc(_GL_GET_SIZE[pname] * sizeof(GLint))
 *     if params == NULL:
 *         raise MemoryError('glGetBufferParameteriv()')             # <<<<<<<<<<<<<<
 *     cgl.glGetBufferParameteriv(target, pname, params)
 *     cdef out = [params[i] for i in xrange(_GL_GET_SIZE[pname])]
*/
    __pyx_t_1 = NULL;
    __pyx_t_4 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_1, __pyx_mstate_global->__pyx_kp_u_glGetBufferParameteriv};
      __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_MemoryError)), __pyx_callargs+__pyx_t_4, (2-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0;
      if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 863, __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, 863, __pyx_L1_error)

    /* "kivy/graphics/opengl.pyx":862
 *     '''
 *     cdef GLint *params = <GLint *>malloc(_GL_GET_SIZE[pname] * sizeof(GLint))
 *     if params == NULL:             # <<<<<<<<<<<<<<
 *         raise MemoryError('glGetBufferParameteriv()')
 *     cgl.glGetBufferParameteriv(target, pname, params)
*/
  }

  /* "kivy/graphics/opengl.pyx":864
 *     if params == NULL:
 *         raise MemoryError('glGetBufferParameteriv()')
 *     cgl.glGetBufferParameteriv(target, pname, params)             # <<<<<<<<<<<<<<
 *     cdef out = [params[i] for i in xrange(_GL_GET_SIZE[pname])]
 *     free(params)
*/
  __pyx_v_4kivy_8graphics_3cgl_cgl->glGetBufferParameteriv(__pyx_v_target, __pyx_v_pname, __pyx_v_params); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 864, __pyx_L1_error)

  /* "kivy/graphics/opengl.pyx":865
 *         raise MemoryError('glGetBufferParameteriv()')
 *     cgl.glGetBufferParameteriv(target, pname, params)
 *     cdef out = [params[i] for i in xrange(_GL_GET_SIZE[pname])]             # <<<<<<<<<<<<<<
 *     free(params)
 *     return out
*/
  { /* enter inner scope */
    __pyx_t_3 = PyList_New(0); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 865, __pyx_L6_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_2 = NULL;
    __Pyx_GetModuleGlobalName(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_GL_GET_SIZE); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 865, __pyx_L6_error)
    __Pyx_GOTREF(__pyx_t_6);
    __pyx_t_7 = __Pyx_GetItemInt(__pyx_t_6, __pyx_v_pname, GLenum, 0, __Pyx_PyLong_From_GLenum, 0, 0, 1, 1, __Pyx_ReferenceSharing_OwnStrongReference); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 865, __pyx_L6_error)
    __Pyx_GOTREF(__pyx_t_7);
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
    __pyx_t_4 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_2, __pyx_t_7};
      __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)(&PyRange_Type), __pyx_callargs+__pyx_t_4, (2-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
      if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 865, __pyx_L6_error)
      __Pyx_GOTREF(__pyx_t_1);
    }
    __pyx_t_7 = PyObject_GetIter(__pyx_t_1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 865, __pyx_L6_error)
    __Pyx_GOTREF(__pyx_t_7);
    __pyx_t_8 = (CYTHON_COMPILING_IN_LIMITED_API) ? PyIter_Next : __Pyx_PyObject_GetIterNextFunc(__pyx_t_7); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 865, __pyx_L6_error)
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    for (;;) {
      {
        __pyx_t_1 = __pyx_t_8(__pyx_t_7);
        if (unlikely(!__pyx_t_1)) {
          PyObject* exc_type = PyErr_Occurred();
          if (exc_type) {
            if (unlikely(!__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) __PYX_ERR(0, 865, __pyx_L6_error)
            PyErr_Clear();
          }
          break;
        }
      }
      __Pyx_GOTREF(__pyx_t_1);
      __Pyx_XDECREF_SET(__pyx_8genexpr1__pyx_v_i, __pyx_t_1);
      __pyx_t_1 = 0;
      __pyx_t_9 = __Pyx_PyIndex_AsSsize_t(__pyx_8genexpr1__pyx_v_i); if (unlikely((__pyx_t_9 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 865, __pyx_L6_error)
      __pyx_t_1 = __Pyx_PyLong_From_GLint((__pyx_v_params[__pyx_t_9])); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 865, __pyx_L6_error)
      __Pyx_GOTREF(__pyx_t_1);
      if (unlikely(__Pyx_ListComp_Append(__pyx_t_3, (PyObject*)__pyx_t_1))) __PYX_ERR(0, 865, __pyx_L6_error)
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    }
    __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
    __Pyx_XDECREF(__pyx_8genexpr1__pyx_v_i); __pyx_8genexpr1__pyx_v_i = 0;
    goto __pyx_L10_exit_scope;
    __pyx_L6_error:;
    __Pyx_XDECREF(__pyx_8genexpr1__pyx_v_i); __pyx_8genexpr1__pyx_v_i = 0;
    goto __pyx_L1_error;
    __pyx_L10_exit_scope:;
  } /* exit inner scope */
  __pyx_v_out = __pyx_t_3;
  __pyx_t_3 = 0;

  /* "kivy/graphics/opengl.pyx":866
 *     cgl.glGetBufferParameteriv(target, pname, params)
 *     cdef out = [params[i] for i in xrange(_GL_GET_SIZE[pname])]
 *     free(params)             # <<<<<<<<<<<<<<
 *     return out
 * 
*/
  free(__pyx_v_params);

  /* "kivy/graphics/opengl.pyx":867
 *     cdef out = [params[i] for i in xrange(_GL_GET_SIZE[pname])]
 *     free(params)
 *     return out             # <<<<<<<<<<<<<<
 * 
 * def glGetError():
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF(__pyx_v_out);
  __pyx_r = __pyx_v_out;
  goto __pyx_L0;

  /* "kivy/graphics/opengl.pyx":855
 *     return out
 * 
 * def glGetBufferParameteriv(GLenum target, GLenum pname):             # <<<<<<<<<<<<<<
 *     '''See: `glGetBufferParameteriv() on Kronos website
 *     <http://www.khronos.org/opengles/sdk/docs/man/xhtml/glGetBufferParameteriv.xml>`_
*/

  /* 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_6);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_AddTraceback("kivy.graphics.opengl.glGetBufferParameteriv", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_out);
  __Pyx_XDECREF(__pyx_8genexpr1__pyx_v_i);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "kivy/graphics/opengl.pyx":869
 *     return out
 * 
 * def glGetError():             # <<<<<<<<<<<<<<
 *     '''See: `glGetError() on Kronos website
 *     <http://www.khronos.org/opengles/sdk/docs/man/xhtml/glGetError.xml>`_
*/

/* Python wrapper */
static PyObject *__pyx_pw_4kivy_8graphics_6opengl_117glGetError(PyObject *__pyx_self, CYTHON_UNUSED PyObject *unused); /*proto*/
PyDoc_STRVAR(__pyx_doc_4kivy_8graphics_6opengl_116glGetError, "glGetError()\n\nSee: `glGetError() on Kronos website\n<http://www.khronos.org/opengles/sdk/docs/man/xhtml/glGetError.xml>`_\n\nUnlike the C specification, the value will be the result of call.");
static PyMethodDef __pyx_mdef_4kivy_8graphics_6opengl_117glGetError = {"glGetError", (PyCFunction)__pyx_pw_4kivy_8graphics_6opengl_117glGetError, METH_NOARGS, __pyx_doc_4kivy_8graphics_6opengl_116glGetError};
static PyObject *__pyx_pw_4kivy_8graphics_6opengl_117glGetError(PyObject *__pyx_self, CYTHON_UNUSED PyObject *unused) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("glGetError (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4kivy_8graphics_6opengl_116glGetError(__pyx_self);

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

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

  /* "kivy/graphics/opengl.pyx":875
 *     Unlike the C specification, the value will be the result of call.
 *     '''
 *     return cgl.glGetError()             # <<<<<<<<<<<<<<
 * 
 * def glGetFloatv(GLenum pname):
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __pyx_v_4kivy_8graphics_3cgl_cgl->glGetError(); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 875, __pyx_L1_error)
  __pyx_t_2 = __Pyx_PyLong_From_GLenum(__pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 875, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_r = __pyx_t_2;
  __pyx_t_2 = 0;
  goto __pyx_L0;

  /* "kivy/graphics/opengl.pyx":869
 *     return out
 * 
 * def glGetError():             # <<<<<<<<<<<<<<
 *     '''See: `glGetError() on Kronos website
 *     <http://www.khronos.org/opengles/sdk/docs/man/xhtml/glGetError.xml>`_
*/

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

/* "kivy/graphics/opengl.pyx":877
 *     return cgl.glGetError()
 * 
 * def glGetFloatv(GLenum pname):             # <<<<<<<<<<<<<<
 *     '''See: `glGetFloatv() on Kronos website
 *     <http://www.khronos.org/opengles/sdk/docs/man/xhtml/glGetFloatv.xml>`_
*/

/* Python wrapper */
static PyObject *__pyx_pw_4kivy_8graphics_6opengl_119glGetFloatv(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_4kivy_8graphics_6opengl_118glGetFloatv, "glGetFloatv(GLenum pname)\n\nSee: `glGetFloatv() on Kronos website\n<http://www.khronos.org/opengles/sdk/docs/man/xhtml/glGetFloatv.xml>`_\n\nUnlike the C specification, the value will be the result of call.");
static PyMethodDef __pyx_mdef_4kivy_8graphics_6opengl_119glGetFloatv = {"glGetFloatv", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4kivy_8graphics_6opengl_119glGetFloatv, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4kivy_8graphics_6opengl_118glGetFloatv};
static PyObject *__pyx_pw_4kivy_8graphics_6opengl_119glGetFloatv(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  GLenum __pyx_v_pname;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[1] = {0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("glGetFloatv (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_pname,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(0, 877, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 877, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "glGetFloatv", 0) < (0)) __PYX_ERR(0, 877, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("glGetFloatv", 1, 1, 1, i); __PYX_ERR(0, 877, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 1)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 877, __pyx_L3_error)
    }
    __pyx_v_pname = __Pyx_PyLong_As_GLenum(values[0]); if (unlikely((__pyx_v_pname == ((GLenum)-1)) && PyErr_Occurred())) __PYX_ERR(0, 877, __pyx_L3_error)
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("glGetFloatv", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 877, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("kivy.graphics.opengl.glGetFloatv", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4kivy_8graphics_6opengl_118glGetFloatv(__pyx_self, __pyx_v_pname);

  /* function exit code */
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4kivy_8graphics_6opengl_118glGetFloatv(CYTHON_UNUSED PyObject *__pyx_self, GLenum __pyx_v_pname) {
  GLfloat *__pyx_v_params;
  PyObject *__pyx_v_out = 0;
  PyObject *__pyx_8genexpr2__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;
  size_t __pyx_t_4;
  int __pyx_t_5;
  PyObject *__pyx_t_6 = NULL;
  PyObject *__pyx_t_7 = NULL;
  PyObject *(*__pyx_t_8)(PyObject *);
  Py_ssize_t __pyx_t_9;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("glGetFloatv", 0);

  /* "kivy/graphics/opengl.pyx":883
 *     Unlike the C specification, the value will be the result of call.
 *     '''
 *     cdef GLfloat *params = <GLfloat *>malloc(_GL_GET_SIZE[pname] * sizeof(GLfloat))             # <<<<<<<<<<<<<<
 *     if params == NULL:
 *         raise MemoryError('glGetFloatv()')
*/
  __Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_mstate_global->__pyx_n_u_GL_GET_SIZE); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 883, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = __Pyx_GetItemInt(__pyx_t_1, __pyx_v_pname, GLenum, 0, __Pyx_PyLong_From_GLenum, 0, 0, 1, 1, __Pyx_ReferenceSharing_OwnStrongReference); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 883, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_1 = __Pyx_PyLong_FromSize_t((sizeof(GLfloat))); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 883, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_3 = PyNumber_Multiply(__pyx_t_2, __pyx_t_1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 883, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_4 = __Pyx_PyLong_As_size_t(__pyx_t_3); if (unlikely((__pyx_t_4 == (size_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 883, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __pyx_v_params = ((GLfloat *)malloc(__pyx_t_4));

  /* "kivy/graphics/opengl.pyx":884
 *     '''
 *     cdef GLfloat *params = <GLfloat *>malloc(_GL_GET_SIZE[pname] * sizeof(GLfloat))
 *     if params == NULL:             # <<<<<<<<<<<<<<
 *         raise MemoryError('glGetFloatv()')
 *     cgl.glGetFloatv(pname, params)
*/
  __pyx_t_5 = (__pyx_v_params == NULL);
  if (unlikely(__pyx_t_5)) {

    /* "kivy/graphics/opengl.pyx":885
 *     cdef GLfloat *params = <GLfloat *>malloc(_GL_GET_SIZE[pname] * sizeof(GLfloat))
 *     if params == NULL:
 *         raise MemoryError('glGetFloatv()')             # <<<<<<<<<<<<<<
 *     cgl.glGetFloatv(pname, params)
 *     cdef out = [params[i] for i in xrange(_GL_GET_SIZE[pname])]
*/
    __pyx_t_1 = NULL;
    __pyx_t_4 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_1, __pyx_mstate_global->__pyx_kp_u_glGetFloatv};
      __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_MemoryError)), __pyx_callargs+__pyx_t_4, (2-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0;
      if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 885, __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, 885, __pyx_L1_error)

    /* "kivy/graphics/opengl.pyx":884
 *     '''
 *     cdef GLfloat *params = <GLfloat *>malloc(_GL_GET_SIZE[pname] * sizeof(GLfloat))
 *     if params == NULL:             # <<<<<<<<<<<<<<
 *         raise MemoryError('glGetFloatv()')
 *     cgl.glGetFloatv(pname, params)
*/
  }

  /* "kivy/graphics/opengl.pyx":886
 *     if params == NULL:
 *         raise MemoryError('glGetFloatv()')
 *     cgl.glGetFloatv(pname, params)             # <<<<<<<<<<<<<<
 *     cdef out = [params[i] for i in xrange(_GL_GET_SIZE[pname])]
 *     free(params)
*/
  __pyx_v_4kivy_8graphics_3cgl_cgl->glGetFloatv(__pyx_v_pname, __pyx_v_params); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 886, __pyx_L1_error)

  /* "kivy/graphics/opengl.pyx":887
 *         raise MemoryError('glGetFloatv()')
 *     cgl.glGetFloatv(pname, params)
 *     cdef out = [params[i] for i in xrange(_GL_GET_SIZE[pname])]             # <<<<<<<<<<<<<<
 *     free(params)
 *     return out
*/
  { /* enter inner scope */
    __pyx_t_3 = PyList_New(0); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 887, __pyx_L6_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_2 = NULL;
    __Pyx_GetModuleGlobalName(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_GL_GET_SIZE); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 887, __pyx_L6_error)
    __Pyx_GOTREF(__pyx_t_6);
    __pyx_t_7 = __Pyx_GetItemInt(__pyx_t_6, __pyx_v_pname, GLenum, 0, __Pyx_PyLong_From_GLenum, 0, 0, 1, 1, __Pyx_ReferenceSharing_OwnStrongReference); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 887, __pyx_L6_error)
    __Pyx_GOTREF(__pyx_t_7);
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
    __pyx_t_4 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_2, __pyx_t_7};
      __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)(&PyRange_Type), __pyx_callargs+__pyx_t_4, (2-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
      if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 887, __pyx_L6_error)
      __Pyx_GOTREF(__pyx_t_1);
    }
    __pyx_t_7 = PyObject_GetIter(__pyx_t_1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 887, __pyx_L6_error)
    __Pyx_GOTREF(__pyx_t_7);
    __pyx_t_8 = (CYTHON_COMPILING_IN_LIMITED_API) ? PyIter_Next : __Pyx_PyObject_GetIterNextFunc(__pyx_t_7); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 887, __pyx_L6_error)
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    for (;;) {
      {
        __pyx_t_1 = __pyx_t_8(__pyx_t_7);
        if (unlikely(!__pyx_t_1)) {
          PyObject* exc_type = PyErr_Occurred();
          if (exc_type) {
            if (unlikely(!__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) __PYX_ERR(0, 887, __pyx_L6_error)
            PyErr_Clear();
          }
          break;
        }
      }
      __Pyx_GOTREF(__pyx_t_1);
      __Pyx_XDECREF_SET(__pyx_8genexpr2__pyx_v_i, __pyx_t_1);
      __pyx_t_1 = 0;
      __pyx_t_9 = __Pyx_PyIndex_AsSsize_t(__pyx_8genexpr2__pyx_v_i); if (unlikely((__pyx_t_9 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 887, __pyx_L6_error)
      __pyx_t_1 = PyFloat_FromDouble((__pyx_v_params[__pyx_t_9])); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 887, __pyx_L6_error)
      __Pyx_GOTREF(__pyx_t_1);
      if (unlikely(__Pyx_ListComp_Append(__pyx_t_3, (PyObject*)__pyx_t_1))) __PYX_ERR(0, 887, __pyx_L6_error)
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    }
    __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
    __Pyx_XDECREF(__pyx_8genexpr2__pyx_v_i); __pyx_8genexpr2__pyx_v_i = 0;
    goto __pyx_L10_exit_scope;
    __pyx_L6_error:;
    __Pyx_XDECREF(__pyx_8genexpr2__pyx_v_i); __pyx_8genexpr2__pyx_v_i = 0;
    goto __pyx_L1_error;
    __pyx_L10_exit_scope:;
  } /* exit inner scope */
  __pyx_v_out = __pyx_t_3;
  __pyx_t_3 = 0;

  /* "kivy/graphics/opengl.pyx":888
 *     cgl.glGetFloatv(pname, params)
 *     cdef out = [params[i] for i in xrange(_GL_GET_SIZE[pname])]
 *     free(params)             # <<<<<<<<<<<<<<
 *     return out
 * 
*/
  free(__pyx_v_params);

  /* "kivy/graphics/opengl.pyx":889
 *     cdef out = [params[i] for i in xrange(_GL_GET_SIZE[pname])]
 *     free(params)
 *     return out             # <<<<<<<<<<<<<<
 * 
 * def glGetFramebufferAttachmentParameteriv(GLenum target, GLenum attachment, GLenum pname):
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF(__pyx_v_out);
  __pyx_r = __pyx_v_out;
  goto __pyx_L0;

  /* "kivy/graphics/opengl.pyx":877
 *     return cgl.glGetError()
 * 
 * def glGetFloatv(GLenum pname):             # <<<<<<<<<<<<<<
 *     '''See: `glGetFloatv() on Kronos website
 *     <http://www.khronos.org/opengles/sdk/docs/man/xhtml/glGetFloatv.xml>`_
*/

  /* 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_6);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_AddTraceback("kivy.graphics.opengl.glGetFloatv", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_out);
  __Pyx_XDECREF(__pyx_8genexpr2__pyx_v_i);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "kivy/graphics/opengl.pyx":891
 *     return out
 * 
 * def glGetFramebufferAttachmentParameteriv(GLenum target, GLenum attachment, GLenum pname):             # <<<<<<<<<<<<<<
 *     '''See: `glGetFramebufferAttachmentParameteriv() on Kronos website
 *     <http://www.khronos.org/opengles/sdk/docs/man/xhtml/glGetFramebufferAttachmentParameteriv.xml>`_
*/

/* Python wrapper */
static PyObject *__pyx_pw_4kivy_8graphics_6opengl_121glGetFramebufferAttachmentParameteriv(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_4kivy_8graphics_6opengl_120glGetFramebufferAttachmentParameteriv, "glGetFramebufferAttachmentParameteriv(GLenum target, GLenum attachment, GLenum pname)\n\nSee: `glGetFramebufferAttachmentParameteriv() on Kronos website\n<http://www.khronos.org/opengles/sdk/docs/man/xhtml/glGetFramebufferAttachmentParameteriv.xml>`_\n\nUnlike the C specification, the value will be the result of call.");
static PyMethodDef __pyx_mdef_4kivy_8graphics_6opengl_121glGetFramebufferAttachmentParameteriv = {"glGetFramebufferAttachmentParameteriv", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4kivy_8graphics_6opengl_121glGetFramebufferAttachmentParameteriv, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4kivy_8graphics_6opengl_120glGetFramebufferAttachmentParameteriv};
static PyObject *__pyx_pw_4kivy_8graphics_6opengl_121glGetFramebufferAttachmentParameteriv(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  GLenum __pyx_v_target;
  GLenum __pyx_v_attachment;
  GLenum __pyx_v_pname;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[3] = {0,0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("glGetFramebufferAttachmentParameteriv (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_target,&__pyx_mstate_global->__pyx_n_u_attachment,&__pyx_mstate_global->__pyx_n_u_pname,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(0, 891, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  3:
        values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(0, 891, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 891, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 891, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "glGetFramebufferAttachmentParameteriv", 0) < (0)) __PYX_ERR(0, 891, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 3; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("glGetFramebufferAttachmentParameteriv", 1, 3, 3, i); __PYX_ERR(0, 891, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 3)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 891, __pyx_L3_error)
      values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 891, __pyx_L3_error)
      values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(0, 891, __pyx_L3_error)
    }
    __pyx_v_target = __Pyx_PyLong_As_GLenum(values[0]); if (unlikely((__pyx_v_target == ((GLenum)-1)) && PyErr_Occurred())) __PYX_ERR(0, 891, __pyx_L3_error)
    __pyx_v_attachment = __Pyx_PyLong_As_GLenum(values[1]); if (unlikely((__pyx_v_attachment == ((GLenum)-1)) && PyErr_Occurred())) __PYX_ERR(0, 891, __pyx_L3_error)
    __pyx_v_pname = __Pyx_PyLong_As_GLenum(values[2]); if (unlikely((__pyx_v_pname == ((GLenum)-1)) && PyErr_Occurred())) __PYX_ERR(0, 891, __pyx_L3_error)
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("glGetFramebufferAttachmentParameteriv", 1, 3, 3, __pyx_nargs); __PYX_ERR(0, 891, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("kivy.graphics.opengl.glGetFramebufferAttachmentParameteriv", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4kivy_8graphics_6opengl_120glGetFramebufferAttachmentParameteriv(__pyx_self, __pyx_v_target, __pyx_v_attachment, __pyx_v_pname);

  /* function exit code */
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4kivy_8graphics_6opengl_120glGetFramebufferAttachmentParameteriv(CYTHON_UNUSED PyObject *__pyx_self, GLenum __pyx_v_target, GLenum __pyx_v_attachment, GLenum __pyx_v_pname) {
  GLint *__pyx_v_params;
  PyObject *__pyx_v_out = 0;
  PyObject *__pyx_8genexpr3__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;
  size_t __pyx_t_4;
  int __pyx_t_5;
  PyObject *__pyx_t_6 = NULL;
  PyObject *__pyx_t_7 = NULL;
  PyObject *(*__pyx_t_8)(PyObject *);
  Py_ssize_t __pyx_t_9;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("glGetFramebufferAttachmentParameteriv", 0);

  /* "kivy/graphics/opengl.pyx":897
 *     Unlike the C specification, the value will be the result of call.
 *     '''
 *     cdef GLint *params = <GLint *>malloc(_GL_GET_SIZE[pname] * sizeof(GLint))             # <<<<<<<<<<<<<<
 *     if params == NULL:
 *         raise MemoryError('glGetFramebufferAttachmentParameteriv()')
*/
  __Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_mstate_global->__pyx_n_u_GL_GET_SIZE); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 897, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = __Pyx_GetItemInt(__pyx_t_1, __pyx_v_pname, GLenum, 0, __Pyx_PyLong_From_GLenum, 0, 0, 1, 1, __Pyx_ReferenceSharing_OwnStrongReference); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 897, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_1 = __Pyx_PyLong_FromSize_t((sizeof(GLint))); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 897, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_3 = PyNumber_Multiply(__pyx_t_2, __pyx_t_1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 897, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_4 = __Pyx_PyLong_As_size_t(__pyx_t_3); if (unlikely((__pyx_t_4 == (size_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 897, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __pyx_v_params = ((GLint *)malloc(__pyx_t_4));

  /* "kivy/graphics/opengl.pyx":898
 *     '''
 *     cdef GLint *params = <GLint *>malloc(_GL_GET_SIZE[pname] * sizeof(GLint))
 *     if params == NULL:             # <<<<<<<<<<<<<<
 *         raise MemoryError('glGetFramebufferAttachmentParameteriv()')
 *     cgl.glGetFramebufferAttachmentParameteriv(target, attachment, pname, params)
*/
  __pyx_t_5 = (__pyx_v_params == NULL);
  if (unlikely(__pyx_t_5)) {

    /* "kivy/graphics/opengl.pyx":899
 *     cdef GLint *params = <GLint *>malloc(_GL_GET_SIZE[pname] * sizeof(GLint))
 *     if params == NULL:
 *         raise MemoryError('glGetFramebufferAttachmentParameteriv()')             # <<<<<<<<<<<<<<
 *     cgl.glGetFramebufferAttachmentParameteriv(target, attachment, pname, params)
 *     cdef out = [params[i] for i in xrange(_GL_GET_SIZE[pname])]
*/
    __pyx_t_1 = NULL;
    __pyx_t_4 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_1, __pyx_mstate_global->__pyx_kp_u_glGetFramebufferAttachmentParame};
      __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_MemoryError)), __pyx_callargs+__pyx_t_4, (2-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0;
      if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 899, __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, 899, __pyx_L1_error)

    /* "kivy/graphics/opengl.pyx":898
 *     '''
 *     cdef GLint *params = <GLint *>malloc(_GL_GET_SIZE[pname] * sizeof(GLint))
 *     if params == NULL:             # <<<<<<<<<<<<<<
 *         raise MemoryError('glGetFramebufferAttachmentParameteriv()')
 *     cgl.glGetFramebufferAttachmentParameteriv(target, attachment, pname, params)
*/
  }

  /* "kivy/graphics/opengl.pyx":900
 *     if params == NULL:
 *         raise MemoryError('glGetFramebufferAttachmentParameteriv()')
 *     cgl.glGetFramebufferAttachmentParameteriv(target, attachment, pname, params)             # <<<<<<<<<<<<<<
 *     cdef out = [params[i] for i in xrange(_GL_GET_SIZE[pname])]
 *     free(params)
*/
  __pyx_v_4kivy_8graphics_3cgl_cgl->glGetFramebufferAttachmentParameteriv(__pyx_v_target, __pyx_v_attachment, __pyx_v_pname, __pyx_v_params); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 900, __pyx_L1_error)

  /* "kivy/graphics/opengl.pyx":901
 *         raise MemoryError('glGetFramebufferAttachmentParameteriv()')
 *     cgl.glGetFramebufferAttachmentParameteriv(target, attachment, pname, params)
 *     cdef out = [params[i] for i in xrange(_GL_GET_SIZE[pname])]             # <<<<<<<<<<<<<<
 *     free(params)
 *     return out
*/
  { /* enter inner scope */
    __pyx_t_3 = PyList_New(0); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 901, __pyx_L6_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_2 = NULL;
    __Pyx_GetModuleGlobalName(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_GL_GET_SIZE); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 901, __pyx_L6_error)
    __Pyx_GOTREF(__pyx_t_6);
    __pyx_t_7 = __Pyx_GetItemInt(__pyx_t_6, __pyx_v_pname, GLenum, 0, __Pyx_PyLong_From_GLenum, 0, 0, 1, 1, __Pyx_ReferenceSharing_OwnStrongReference); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 901, __pyx_L6_error)
    __Pyx_GOTREF(__pyx_t_7);
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
    __pyx_t_4 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_2, __pyx_t_7};
      __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)(&PyRange_Type), __pyx_callargs+__pyx_t_4, (2-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
      if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 901, __pyx_L6_error)
      __Pyx_GOTREF(__pyx_t_1);
    }
    __pyx_t_7 = PyObject_GetIter(__pyx_t_1); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 901, __pyx_L6_error)
    __Pyx_GOTREF(__pyx_t_7);
    __pyx_t_8 = (CYTHON_COMPILING_IN_LIMITED_API) ? PyIter_Next : __Pyx_PyObject_GetIterNextFunc(__pyx_t_7); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 901, __pyx_L6_error)
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    for (;;) {
      {
        __pyx_t_1 = __pyx_t_8(__pyx_t_7);
        if (unlikely(!__pyx_t_1)) {
          PyObject* exc_type = PyErr_Occurred();
          if (exc_type) {
            if (unlikely(!__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) __PYX_ERR(0, 901, __pyx_L6_error)
            PyErr_Clear();
          }
          break;
        }
      }
      __Pyx_GOTREF(__pyx_t_1);
      __Pyx_XDECREF_SET(__pyx_8genexpr3__pyx_v_i, __pyx_t_1);
      __pyx_t_1 = 0;
      __pyx_t_9 = __Pyx_PyIndex_AsSsize_t(__pyx_8genexpr3__pyx_v_i); if (unlikely((__pyx_t_9 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 901, __pyx_L6_error)
      __pyx_t_1 = __Pyx_PyLong_From_GLint((__pyx_v_params[__pyx_t_9])); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 901, __pyx_L6_error)
      __Pyx_GOTREF(__pyx_t_1);
      if (unlikely(__Pyx_ListComp_Append(__pyx_t_3, (PyObject*)__pyx_t_1))) __PYX_ERR(0, 901, __pyx_L6_error)
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    }
    __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
    __Pyx_XDECREF(__pyx_8genexpr3__pyx_v_i); __pyx_8genexpr3__pyx_v_i = 0;
    goto __pyx_L10_exit_scope;
    __pyx_L6_error:;
    __Pyx_XDECREF(__pyx_8genexpr3__pyx_v_i); __pyx_8genexpr3__pyx_v_i = 0;
    goto __pyx_L1_error;
    __pyx_L10_exit_scope:;
  } /* exit inner scope */
  __pyx_v_out = __pyx_t_3;
  __pyx_t_3 = 0;

  /* "kivy/graphics/opengl.pyx":902
 *     cgl.glGetFramebufferAttachmentParameteriv(target, attachment, pname, params)
 *     cdef out = [params[i] for i in xrange(_GL_GET_SIZE[pname])]
 *     free(params)             # <<<<<<<<<<<<<<
 *     return out
 * 
*/
  free(__pyx_v_params);

  /* "kivy/graphics/opengl.pyx":903
 *     cdef out = [params[i] for i in xrange(_GL_GET_SIZE[pname])]
 *     free(params)
 *     return out             # <<<<<<<<<<<<<<
 * 
 * def glGetIntegerv(GLenum pname):
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF(__pyx_v_out);
  __pyx_r = __pyx_v_out;
  goto __pyx_L0;

  /* "kivy/graphics/opengl.pyx":891
 *     return out
 * 
 * def glGetFramebufferAttachmentParameteriv(GLenum target, GLenum attachment, GLenum pname):             # <<<<<<<<<<<<<<
 *     '''See: `glGetFramebufferAttachmentParameteriv() on Kronos website
 *     <http://www.khronos.org/opengles/sdk/docs/man/xhtml/glGetFramebufferAttachmentParameteriv.xml>`_
*/

  /* 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_6);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_AddTraceback("kivy.graphics.opengl.glGetFramebufferAttachmentParameteriv", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_out);
  __Pyx_XDECREF(__pyx_8genexpr3__pyx_v_i);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "kivy/graphics/opengl.pyx":905
 *     return out
 * 
 * def glGetIntegerv(GLenum pname):             # <<<<<<<<<<<<<<
 *     '''See: `glGetIntegerv() on Kronos website
 *     <http://www.khronos.org/opengles/sdk/docs/man/xhtml/glGetIntegerv.xml>`_
*/

/* Python wrapper */
static PyObject *__pyx_pw_4kivy_8graphics_6opengl_123glGetIntegerv(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_4kivy_8graphics_6opengl_122glGetIntegerv, "glGetIntegerv(GLenum pname)\n\nSee: `glGetIntegerv() on Kronos website\n<http://www.khronos.org/opengles/sdk/docs/man/xhtml/glGetIntegerv.xml>`_\n\nUnlike the C specification, the value(s) will be the result of the call");
static PyMethodDef __pyx_mdef_4kivy_8graphics_6opengl_123glGetIntegerv = {"glGetIntegerv", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4kivy_8graphics_6opengl_123glGetIntegerv, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4kivy_8graphics_6opengl_122glGetIntegerv};
static PyObject *__pyx_pw_4kivy_8graphics_6opengl_123glGetIntegerv(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  GLenum __pyx_v_pname;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[1] = {0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("glGetIntegerv (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_pname,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(0, 905, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 905, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "glGetIntegerv", 0) < (0)) __PYX_ERR(0, 905, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("glGetIntegerv", 1, 1, 1, i); __PYX_ERR(0, 905, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 1)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 905, __pyx_L3_error)
    }
    __pyx_v_pname = __Pyx_PyLong_As_GLenum(values[0]); if (unlikely((__pyx_v_pname == ((GLenum)-1)) && PyErr_Occurred())) __PYX_ERR(0, 905, __pyx_L3_error)
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("glGetIntegerv", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 905, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("kivy.graphics.opengl.glGetIntegerv", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4kivy_8graphics_6opengl_122glGetIntegerv(__pyx_self, __pyx_v_pname);

  /* function exit code */
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4kivy_8graphics_6opengl_122glGetIntegerv(CYTHON_UNUSED PyObject *__pyx_self, GLenum __pyx_v_pname) {
  GLint *__pyx_v_params;
  PyObject *__pyx_v_out = 0;
  PyObject *__pyx_8genexpr4__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;
  size_t __pyx_t_4;
  int __pyx_t_5;
  PyObject *__pyx_t_6 = NULL;
  PyObject *__pyx_t_7 = NULL;
  PyObject *(*__pyx_t_8)(PyObject *);
  Py_ssize_t __pyx_t_9;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("glGetIntegerv", 0);

  /* "kivy/graphics/opengl.pyx":911
 *     Unlike the C specification, the value(s) will be the result of the call
 *     '''
 *     cdef GLint *params = <GLint *>malloc(_GL_GET_SIZE[pname] * sizeof(GLint) * 2)             # <<<<<<<<<<<<<<
 *     if params == NULL:
 *         raise MemoryError('glGetIntegerv()')
*/
  __Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_mstate_global->__pyx_n_u_GL_GET_SIZE); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 911, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = __Pyx_GetItemInt(__pyx_t_1, __pyx_v_pname, GLenum, 0, __Pyx_PyLong_From_GLenum, 0, 0, 1, 1, __Pyx_ReferenceSharing_OwnStrongReference); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 911, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_1 = __Pyx_PyLong_FromSize_t((sizeof(GLint))); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 911, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_3 = PyNumber_Multiply(__pyx_t_2, __pyx_t_1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 911, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_1 = __Pyx_PyLong_MultiplyObjC(__pyx_t_3, __pyx_mstate_global->__pyx_int_2, 2, 0, 0); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 911, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __pyx_t_4 = __Pyx_PyLong_As_size_t(__pyx_t_1); if (unlikely((__pyx_t_4 == (size_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 911, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_v_params = ((GLint *)malloc(__pyx_t_4));

  /* "kivy/graphics/opengl.pyx":912
 *     '''
 *     cdef GLint *params = <GLint *>malloc(_GL_GET_SIZE[pname] * sizeof(GLint) * 2)
 *     if params == NULL:             # <<<<<<<<<<<<<<
 *         raise MemoryError('glGetIntegerv()')
 *     cgl.glGetIntegerv(pname, params)
*/
  __pyx_t_5 = (__pyx_v_params == NULL);
  if (unlikely(__pyx_t_5)) {

    /* "kivy/graphics/opengl.pyx":913
 *     cdef GLint *params = <GLint *>malloc(_GL_GET_SIZE[pname] * sizeof(GLint) * 2)
 *     if params == NULL:
 *         raise MemoryError('glGetIntegerv()')             # <<<<<<<<<<<<<<
 *     cgl.glGetIntegerv(pname, params)
 *     cdef out = [params[i] for i in xrange(_GL_GET_SIZE[pname])]
*/
    __pyx_t_3 = NULL;
    __pyx_t_4 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_3, __pyx_mstate_global->__pyx_kp_u_glGetIntegerv};
      __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_MemoryError)), __pyx_callargs+__pyx_t_4, (2-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 913, __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, 913, __pyx_L1_error)

    /* "kivy/graphics/opengl.pyx":912
 *     '''
 *     cdef GLint *params = <GLint *>malloc(_GL_GET_SIZE[pname] * sizeof(GLint) * 2)
 *     if params == NULL:             # <<<<<<<<<<<<<<
 *         raise MemoryError('glGetIntegerv()')
 *     cgl.glGetIntegerv(pname, params)
*/
  }

  /* "kivy/graphics/opengl.pyx":914
 *     if params == NULL:
 *         raise MemoryError('glGetIntegerv()')
 *     cgl.glGetIntegerv(pname, params)             # <<<<<<<<<<<<<<
 *     cdef out = [params[i] for i in xrange(_GL_GET_SIZE[pname])]
 *     free(params)
*/
  __pyx_v_4kivy_8graphics_3cgl_cgl->glGetIntegerv(__pyx_v_pname, __pyx_v_params); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 914, __pyx_L1_error)

  /* "kivy/graphics/opengl.pyx":915
 *         raise MemoryError('glGetIntegerv()')
 *     cgl.glGetIntegerv(pname, params)
 *     cdef out = [params[i] for i in xrange(_GL_GET_SIZE[pname])]             # <<<<<<<<<<<<<<
 *     free(params)
 *     return out
*/
  { /* enter inner scope */
    __pyx_t_1 = PyList_New(0); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 915, __pyx_L6_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_t_2 = NULL;
    __Pyx_GetModuleGlobalName(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_GL_GET_SIZE); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 915, __pyx_L6_error)
    __Pyx_GOTREF(__pyx_t_6);
    __pyx_t_7 = __Pyx_GetItemInt(__pyx_t_6, __pyx_v_pname, GLenum, 0, __Pyx_PyLong_From_GLenum, 0, 0, 1, 1, __Pyx_ReferenceSharing_OwnStrongReference); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 915, __pyx_L6_error)
    __Pyx_GOTREF(__pyx_t_7);
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
    __pyx_t_4 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_2, __pyx_t_7};
      __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(&PyRange_Type), __pyx_callargs+__pyx_t_4, (2-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
      if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 915, __pyx_L6_error)
      __Pyx_GOTREF(__pyx_t_3);
    }
    __pyx_t_7 = PyObject_GetIter(__pyx_t_3); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 915, __pyx_L6_error)
    __Pyx_GOTREF(__pyx_t_7);
    __pyx_t_8 = (CYTHON_COMPILING_IN_LIMITED_API) ? PyIter_Next : __Pyx_PyObject_GetIterNextFunc(__pyx_t_7); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 915, __pyx_L6_error)
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    for (;;) {
      {
        __pyx_t_3 = __pyx_t_8(__pyx_t_7);
        if (unlikely(!__pyx_t_3)) {
          PyObject* exc_type = PyErr_Occurred();
          if (exc_type) {
            if (unlikely(!__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) __PYX_ERR(0, 915, __pyx_L6_error)
            PyErr_Clear();
          }
          break;
        }
      }
      __Pyx_GOTREF(__pyx_t_3);
      __Pyx_XDECREF_SET(__pyx_8genexpr4__pyx_v_i, __pyx_t_3);
      __pyx_t_3 = 0;
      __pyx_t_9 = __Pyx_PyIndex_AsSsize_t(__pyx_8genexpr4__pyx_v_i); if (unlikely((__pyx_t_9 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 915, __pyx_L6_error)
      __pyx_t_3 = __Pyx_PyLong_From_GLint((__pyx_v_params[__pyx_t_9])); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 915, __pyx_L6_error)
      __Pyx_GOTREF(__pyx_t_3);
      if (unlikely(__Pyx_ListComp_Append(__pyx_t_1, (PyObject*)__pyx_t_3))) __PYX_ERR(0, 915, __pyx_L6_error)
      __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    }
    __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
    __Pyx_XDECREF(__pyx_8genexpr4__pyx_v_i); __pyx_8genexpr4__pyx_v_i = 0;
    goto __pyx_L10_exit_scope;
    __pyx_L6_error:;
    __Pyx_XDECREF(__pyx_8genexpr4__pyx_v_i); __pyx_8genexpr4__pyx_v_i = 0;
    goto __pyx_L1_error;
    __pyx_L10_exit_scope:;
  } /* exit inner scope */
  __pyx_v_out = __pyx_t_1;
  __pyx_t_1 = 0;

  /* "kivy/graphics/opengl.pyx":916
 *     cgl.glGetIntegerv(pname, params)
 *     cdef out = [params[i] for i in xrange(_GL_GET_SIZE[pname])]
 *     free(params)             # <<<<<<<<<<<<<<
 *     return out
 * 
*/
  free(__pyx_v_params);

  /* "kivy/graphics/opengl.pyx":917
 *     cdef out = [params[i] for i in xrange(_GL_GET_SIZE[pname])]
 *     free(params)
 *     return out             # <<<<<<<<<<<<<<
 * 
 * def glGetProgramiv(GLuint program, GLenum pname):
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF(__pyx_v_out);
  __pyx_r = __pyx_v_out;
  goto __pyx_L0;

  /* "kivy/graphics/opengl.pyx":905
 *     return out
 * 
 * def glGetIntegerv(GLenum pname):             # <<<<<<<<<<<<<<
 *     '''See: `glGetIntegerv() on Kronos website
 *     <http://www.khronos.org/opengles/sdk/docs/man/xhtml/glGetIntegerv.xml>`_
*/

  /* 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_6);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_AddTraceback("kivy.graphics.opengl.glGetIntegerv", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_out);
  __Pyx_XDECREF(__pyx_8genexpr4__pyx_v_i);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "kivy/graphics/opengl.pyx":919
 *     return out
 * 
 * def glGetProgramiv(GLuint program, GLenum pname):             # <<<<<<<<<<<<<<
 *     '''See: `glGetProgramiv() on Kronos website
 *     <http://www.khronos.org/opengles/sdk/docs/man/xhtml/glGetProgramiv.xml>`_
*/

/* Python wrapper */
static PyObject *__pyx_pw_4kivy_8graphics_6opengl_125glGetProgramiv(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_4kivy_8graphics_6opengl_124glGetProgramiv, "glGetProgramiv(GLuint program, GLenum pname)\n\nSee: `glGetProgramiv() on Kronos website\n<http://www.khronos.org/opengles/sdk/docs/man/xhtml/glGetProgramiv.xml>`_\n\nUnlike the C specification, the value(s) will be the result of the call");
static PyMethodDef __pyx_mdef_4kivy_8graphics_6opengl_125glGetProgramiv = {"glGetProgramiv", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4kivy_8graphics_6opengl_125glGetProgramiv, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4kivy_8graphics_6opengl_124glGetProgramiv};
static PyObject *__pyx_pw_4kivy_8graphics_6opengl_125glGetProgramiv(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  GLuint __pyx_v_program;
  GLenum __pyx_v_pname;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[2] = {0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("glGetProgramiv (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_program,&__pyx_mstate_global->__pyx_n_u_pname,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(0, 919, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 919, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 919, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "glGetProgramiv", 0) < (0)) __PYX_ERR(0, 919, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 2; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("glGetProgramiv", 1, 2, 2, i); __PYX_ERR(0, 919, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 2)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 919, __pyx_L3_error)
      values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 919, __pyx_L3_error)
    }
    __pyx_v_program = __Pyx_PyLong_As_GLuint(values[0]); if (unlikely((__pyx_v_program == ((GLuint)-1)) && PyErr_Occurred())) __PYX_ERR(0, 919, __pyx_L3_error)
    __pyx_v_pname = __Pyx_PyLong_As_GLenum(values[1]); if (unlikely((__pyx_v_pname == ((GLenum)-1)) && PyErr_Occurred())) __PYX_ERR(0, 919, __pyx_L3_error)
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("glGetProgramiv", 1, 2, 2, __pyx_nargs); __PYX_ERR(0, 919, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("kivy.graphics.opengl.glGetProgramiv", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4kivy_8graphics_6opengl_124glGetProgramiv(__pyx_self, __pyx_v_program, __pyx_v_pname);

  /* function exit code */
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4kivy_8graphics_6opengl_124glGetProgramiv(CYTHON_UNUSED PyObject *__pyx_self, GLuint __pyx_v_program, GLenum __pyx_v_pname) {
  GLint __pyx_v_params;
  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("glGetProgramiv", 0);

  /* "kivy/graphics/opengl.pyx":925
 *     Unlike the C specification, the value(s) will be the result of the call
 *     '''
 *     cdef GLint params = 0             # <<<<<<<<<<<<<<
 *     cgl.glGetProgramiv(program, pname, &params)
 *     return params
*/
  __pyx_v_params = 0;

  /* "kivy/graphics/opengl.pyx":926
 *     '''
 *     cdef GLint params = 0
 *     cgl.glGetProgramiv(program, pname, &params)             # <<<<<<<<<<<<<<
 *     return params
 * 
*/
  __pyx_v_4kivy_8graphics_3cgl_cgl->glGetProgramiv(__pyx_v_program, __pyx_v_pname, (&__pyx_v_params)); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 926, __pyx_L1_error)

  /* "kivy/graphics/opengl.pyx":927
 *     cdef GLint params = 0
 *     cgl.glGetProgramiv(program, pname, &params)
 *     return params             # <<<<<<<<<<<<<<
 * 
 * def glGetProgramInfoLog(GLuint program, GLsizei bufsize):
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_From_GLint(__pyx_v_params); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 927, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "kivy/graphics/opengl.pyx":919
 *     return out
 * 
 * def glGetProgramiv(GLuint program, GLenum pname):             # <<<<<<<<<<<<<<
 *     '''See: `glGetProgramiv() on Kronos website
 *     <http://www.khronos.org/opengles/sdk/docs/man/xhtml/glGetProgramiv.xml>`_
*/

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

/* "kivy/graphics/opengl.pyx":929
 *     return params
 * 
 * def glGetProgramInfoLog(GLuint program, GLsizei bufsize):             # <<<<<<<<<<<<<<
 *     '''See: `glGetProgramInfoLog() on Kronos website
 *     <http://www.khronos.org/opengles/sdk/docs/man/xhtml/glGetProgramInfoLog.xml>`_
*/

/* Python wrapper */
static PyObject *__pyx_pw_4kivy_8graphics_6opengl_127glGetProgramInfoLog(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_4kivy_8graphics_6opengl_126glGetProgramInfoLog, "glGetProgramInfoLog(GLuint program, GLsizei bufsize)\n\nSee: `glGetProgramInfoLog() on Kronos website\n<http://www.khronos.org/opengles/sdk/docs/man/xhtml/glGetProgramInfoLog.xml>`_\n\nUnlike the C specification, the source code will be returned as a string.");
static PyMethodDef __pyx_mdef_4kivy_8graphics_6opengl_127glGetProgramInfoLog = {"glGetProgramInfoLog", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4kivy_8graphics_6opengl_127glGetProgramInfoLog, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4kivy_8graphics_6opengl_126glGetProgramInfoLog};
static PyObject *__pyx_pw_4kivy_8graphics_6opengl_127glGetProgramInfoLog(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  GLuint __pyx_v_program;
  CYTHON_UNUSED GLsizei __pyx_v_bufsize;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[2] = {0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("glGetProgramInfoLog (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_program,&__pyx_mstate_global->__pyx_n_u_bufsize,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(0, 929, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 929, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 929, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "glGetProgramInfoLog", 0) < (0)) __PYX_ERR(0, 929, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 2; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("glGetProgramInfoLog", 1, 2, 2, i); __PYX_ERR(0, 929, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 2)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 929, __pyx_L3_error)
      values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 929, __pyx_L3_error)
    }
    __pyx_v_program = __Pyx_PyLong_As_GLuint(values[0]); if (unlikely((__pyx_v_program == ((GLuint)-1)) && PyErr_Occurred())) __PYX_ERR(0, 929, __pyx_L3_error)
    __pyx_v_bufsize = __Pyx_PyLong_As_GLsizei(values[1]); if (unlikely((__pyx_v_bufsize == ((GLsizei)-1)) && PyErr_Occurred())) __PYX_ERR(0, 929, __pyx_L3_error)
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("glGetProgramInfoLog", 1, 2, 2, __pyx_nargs); __PYX_ERR(0, 929, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("kivy.graphics.opengl.glGetProgramInfoLog", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4kivy_8graphics_6opengl_126glGetProgramInfoLog(__pyx_self, __pyx_v_program, __pyx_v_bufsize);

  /* function exit code */
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4kivy_8graphics_6opengl_126glGetProgramInfoLog(CYTHON_UNUSED PyObject *__pyx_self, GLuint __pyx_v_program, CYTHON_UNUSED GLsizei __pyx_v_bufsize) {
  GLint __pyx_v_size;
  GLchar *__pyx_v_infolog;
  PyObject *__pyx_v_p_infolog = 0;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  size_t __pyx_t_4;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("glGetProgramInfoLog", 0);

  /* "kivy/graphics/opengl.pyx":935
 *     Unlike the C specification, the source code will be returned as a string.
 *     '''
 *     cdef GLint size = 0             # <<<<<<<<<<<<<<
 *     cdef GLchar *infolog
 *     cdef bytes p_infolog
*/
  __pyx_v_size = 0;

  /* "kivy/graphics/opengl.pyx":938
 *     cdef GLchar *infolog
 *     cdef bytes p_infolog
 *     infolog = <GLchar *>malloc(sizeof(GLchar) * 2048)             # <<<<<<<<<<<<<<
 *     if infolog == NULL:
 *         raise MemoryError('glGetProgramInfoLog()')
*/
  __pyx_v_infolog = ((GLchar *)malloc(((sizeof(GLchar)) * 0x800)));

  /* "kivy/graphics/opengl.pyx":939
 *     cdef bytes p_infolog
 *     infolog = <GLchar *>malloc(sizeof(GLchar) * 2048)
 *     if infolog == NULL:             # <<<<<<<<<<<<<<
 *         raise MemoryError('glGetProgramInfoLog()')
 *     cgl.glGetProgramInfoLog(program, 2048, &size, infolog)
*/
  __pyx_t_1 = (__pyx_v_infolog == NULL);
  if (unlikely(__pyx_t_1)) {

    /* "kivy/graphics/opengl.pyx":940
 *     infolog = <GLchar *>malloc(sizeof(GLchar) * 2048)
 *     if infolog == NULL:
 *         raise MemoryError('glGetProgramInfoLog()')             # <<<<<<<<<<<<<<
 *     cgl.glGetProgramInfoLog(program, 2048, &size, infolog)
 *     p_infolog = <char *>infolog
*/
    __pyx_t_3 = NULL;
    __pyx_t_4 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_3, __pyx_mstate_global->__pyx_kp_u_glGetProgramInfoLog};
      __pyx_t_2 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_MemoryError)), __pyx_callargs+__pyx_t_4, (2-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 940, __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, 940, __pyx_L1_error)

    /* "kivy/graphics/opengl.pyx":939
 *     cdef bytes p_infolog
 *     infolog = <GLchar *>malloc(sizeof(GLchar) * 2048)
 *     if infolog == NULL:             # <<<<<<<<<<<<<<
 *         raise MemoryError('glGetProgramInfoLog()')
 *     cgl.glGetProgramInfoLog(program, 2048, &size, infolog)
*/
  }

  /* "kivy/graphics/opengl.pyx":941
 *     if infolog == NULL:
 *         raise MemoryError('glGetProgramInfoLog()')
 *     cgl.glGetProgramInfoLog(program, 2048, &size, infolog)             # <<<<<<<<<<<<<<
 *     p_infolog = <char *>infolog
 *     free(infolog)
*/
  __pyx_v_4kivy_8graphics_3cgl_cgl->glGetProgramInfoLog(__pyx_v_program, 0x800, (&__pyx_v_size), __pyx_v_infolog); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 941, __pyx_L1_error)

  /* "kivy/graphics/opengl.pyx":942
 *         raise MemoryError('glGetProgramInfoLog()')
 *     cgl.glGetProgramInfoLog(program, 2048, &size, infolog)
 *     p_infolog = <char *>infolog             # <<<<<<<<<<<<<<
 *     free(infolog)
 *     return p_infolog
*/
  __pyx_t_2 = __Pyx_PyBytes_FromString(((char *)__pyx_v_infolog)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 942, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_v_p_infolog = ((PyObject*)__pyx_t_2);
  __pyx_t_2 = 0;

  /* "kivy/graphics/opengl.pyx":943
 *     cgl.glGetProgramInfoLog(program, 2048, &size, infolog)
 *     p_infolog = <char *>infolog
 *     free(infolog)             # <<<<<<<<<<<<<<
 *     return p_infolog
 * 
*/
  free(__pyx_v_infolog);

  /* "kivy/graphics/opengl.pyx":944
 *     p_infolog = <char *>infolog
 *     free(infolog)
 *     return p_infolog             # <<<<<<<<<<<<<<
 * 
 * def glGetRenderbufferParameteriv(GLenum target, GLenum pname):
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF(__pyx_v_p_infolog);
  __pyx_r = __pyx_v_p_infolog;
  goto __pyx_L0;

  /* "kivy/graphics/opengl.pyx":929
 *     return params
 * 
 * def glGetProgramInfoLog(GLuint program, GLsizei bufsize):             # <<<<<<<<<<<<<<
 *     '''See: `glGetProgramInfoLog() on Kronos website
 *     <http://www.khronos.org/opengles/sdk/docs/man/xhtml/glGetProgramInfoLog.xml>`_
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_AddTraceback("kivy.graphics.opengl.glGetProgramInfoLog", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_p_infolog);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "kivy/graphics/opengl.pyx":946
 *     return p_infolog
 * 
 * def glGetRenderbufferParameteriv(GLenum target, GLenum pname):             # <<<<<<<<<<<<<<
 *     '''See: `glGetRenderbufferParameteriv() on Kronos website
 *     <http://www.khronos.org/opengles/sdk/docs/man/xhtml/glGetRenderbufferParameteriv.xml>`_
*/

/* Python wrapper */
static PyObject *__pyx_pw_4kivy_8graphics_6opengl_129glGetRenderbufferParameteriv(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_4kivy_8graphics_6opengl_128glGetRenderbufferParameteriv, "glGetRenderbufferParameteriv(GLenum target, GLenum pname)\n\nSee: `glGetRenderbufferParameteriv() on Kronos website\n<http://www.khronos.org/opengles/sdk/docs/man/xhtml/glGetRenderbufferParameteriv.xml>`_\n\nUnlike the C specification, the value will be the result of call.");
static PyMethodDef __pyx_mdef_4kivy_8graphics_6opengl_129glGetRenderbufferParameteriv = {"glGetRenderbufferParameteriv", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4kivy_8graphics_6opengl_129glGetRenderbufferParameteriv, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4kivy_8graphics_6opengl_128glGetRenderbufferParameteriv};
static PyObject *__pyx_pw_4kivy_8graphics_6opengl_129glGetRenderbufferParameteriv(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  GLenum __pyx_v_target;
  GLenum __pyx_v_pname;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[2] = {0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("glGetRenderbufferParameteriv (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_target,&__pyx_mstate_global->__pyx_n_u_pname,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(0, 946, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 946, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 946, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "glGetRenderbufferParameteriv", 0) < (0)) __PYX_ERR(0, 946, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 2; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("glGetRenderbufferParameteriv", 1, 2, 2, i); __PYX_ERR(0, 946, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 2)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 946, __pyx_L3_error)
      values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 946, __pyx_L3_error)
    }
    __pyx_v_target = __Pyx_PyLong_As_GLenum(values[0]); if (unlikely((__pyx_v_target == ((GLenum)-1)) && PyErr_Occurred())) __PYX_ERR(0, 946, __pyx_L3_error)
    __pyx_v_pname = __Pyx_PyLong_As_GLenum(values[1]); if (unlikely((__pyx_v_pname == ((GLenum)-1)) && PyErr_Occurred())) __PYX_ERR(0, 946, __pyx_L3_error)
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("glGetRenderbufferParameteriv", 1, 2, 2, __pyx_nargs); __PYX_ERR(0, 946, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("kivy.graphics.opengl.glGetRenderbufferParameteriv", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4kivy_8graphics_6opengl_128glGetRenderbufferParameteriv(__pyx_self, __pyx_v_target, __pyx_v_pname);

  /* function exit code */
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4kivy_8graphics_6opengl_128glGetRenderbufferParameteriv(CYTHON_UNUSED PyObject *__pyx_self, GLenum __pyx_v_target, GLenum __pyx_v_pname) {
  GLint __pyx_v_params;
  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("glGetRenderbufferParameteriv", 0);

  /* "kivy/graphics/opengl.pyx":952
 *     Unlike the C specification, the value will be the result of call.
 *     '''
 *     cdef GLint params = 0             # <<<<<<<<<<<<<<
 *     cgl.glGetRenderbufferParameteriv(target, pname, &params)
 *     return params
*/
  __pyx_v_params = 0;

  /* "kivy/graphics/opengl.pyx":953
 *     '''
 *     cdef GLint params = 0
 *     cgl.glGetRenderbufferParameteriv(target, pname, &params)             # <<<<<<<<<<<<<<
 *     return params
 * 
*/
  __pyx_v_4kivy_8graphics_3cgl_cgl->glGetRenderbufferParameteriv(__pyx_v_target, __pyx_v_pname, (&__pyx_v_params)); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 953, __pyx_L1_error)

  /* "kivy/graphics/opengl.pyx":954
 *     cdef GLint params = 0
 *     cgl.glGetRenderbufferParameteriv(target, pname, &params)
 *     return params             # <<<<<<<<<<<<<<
 * 
 * def glGetShaderiv(GLuint shader, GLenum pname):
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_From_GLint(__pyx_v_params); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 954, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "kivy/graphics/opengl.pyx":946
 *     return p_infolog
 * 
 * def glGetRenderbufferParameteriv(GLenum target, GLenum pname):             # <<<<<<<<<<<<<<
 *     '''See: `glGetRenderbufferParameteriv() on Kronos website
 *     <http://www.khronos.org/opengles/sdk/docs/man/xhtml/glGetRenderbufferParameteriv.xml>`_
*/

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

/* "kivy/graphics/opengl.pyx":956
 *     return params
 * 
 * def glGetShaderiv(GLuint shader, GLenum pname):             # <<<<<<<<<<<<<<
 *     '''See: `glGetShaderiv() on Kronos website
 *     <http://www.khronos.org/opengles/sdk/docs/man/xhtml/glGetShaderiv.xml>`_
*/

/* Python wrapper */
static PyObject *__pyx_pw_4kivy_8graphics_6opengl_131glGetShaderiv(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_4kivy_8graphics_6opengl_130glGetShaderiv, "glGetShaderiv(GLuint shader, GLenum pname)\n\nSee: `glGetShaderiv() on Kronos website\n<http://www.khronos.org/opengles/sdk/docs/man/xhtml/glGetShaderiv.xml>`_\n\nUnlike the C specification, the value will be the result of call.");
static PyMethodDef __pyx_mdef_4kivy_8graphics_6opengl_131glGetShaderiv = {"glGetShaderiv", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4kivy_8graphics_6opengl_131glGetShaderiv, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4kivy_8graphics_6opengl_130glGetShaderiv};
static PyObject *__pyx_pw_4kivy_8graphics_6opengl_131glGetShaderiv(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  GLuint __pyx_v_shader;
  GLenum __pyx_v_pname;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[2] = {0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("glGetShaderiv (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_shader,&__pyx_mstate_global->__pyx_n_u_pname,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(0, 956, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 956, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 956, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "glGetShaderiv", 0) < (0)) __PYX_ERR(0, 956, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 2; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("glGetShaderiv", 1, 2, 2, i); __PYX_ERR(0, 956, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 2)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 956, __pyx_L3_error)
      values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 956, __pyx_L3_error)
    }
    __pyx_v_shader = __Pyx_PyLong_As_GLuint(values[0]); if (unlikely((__pyx_v_shader == ((GLuint)-1)) && PyErr_Occurred())) __PYX_ERR(0, 956, __pyx_L3_error)
    __pyx_v_pname = __Pyx_PyLong_As_GLenum(values[1]); if (unlikely((__pyx_v_pname == ((GLenum)-1)) && PyErr_Occurred())) __PYX_ERR(0, 956, __pyx_L3_error)
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("glGetShaderiv", 1, 2, 2, __pyx_nargs); __PYX_ERR(0, 956, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("kivy.graphics.opengl.glGetShaderiv", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4kivy_8graphics_6opengl_130glGetShaderiv(__pyx_self, __pyx_v_shader, __pyx_v_pname);

  /* function exit code */
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4kivy_8graphics_6opengl_130glGetShaderiv(CYTHON_UNUSED PyObject *__pyx_self, GLuint __pyx_v_shader, GLenum __pyx_v_pname) {
  GLint __pyx_v_params;
  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("glGetShaderiv", 0);

  /* "kivy/graphics/opengl.pyx":962
 *     Unlike the C specification, the value will be the result of call.
 *     '''
 *     cdef GLint params = 0             # <<<<<<<<<<<<<<
 *     cgl.glGetShaderiv(shader, pname, &params)
 *     return params
*/
  __pyx_v_params = 0;

  /* "kivy/graphics/opengl.pyx":963
 *     '''
 *     cdef GLint params = 0
 *     cgl.glGetShaderiv(shader, pname, &params)             # <<<<<<<<<<<<<<
 *     return params
 * 
*/
  __pyx_v_4kivy_8graphics_3cgl_cgl->glGetShaderiv(__pyx_v_shader, __pyx_v_pname, (&__pyx_v_params)); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 963, __pyx_L1_error)

  /* "kivy/graphics/opengl.pyx":964
 *     cdef GLint params = 0
 *     cgl.glGetShaderiv(shader, pname, &params)
 *     return params             # <<<<<<<<<<<<<<
 * 
 * def glGetShaderInfoLog(GLuint shader, GLsizei bufsize):
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_From_GLint(__pyx_v_params); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 964, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "kivy/graphics/opengl.pyx":956
 *     return params
 * 
 * def glGetShaderiv(GLuint shader, GLenum pname):             # <<<<<<<<<<<<<<
 *     '''See: `glGetShaderiv() on Kronos website
 *     <http://www.khronos.org/opengles/sdk/docs/man/xhtml/glGetShaderiv.xml>`_
*/

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

/* "kivy/graphics/opengl.pyx":966
 *     return params
 * 
 * def glGetShaderInfoLog(GLuint shader, GLsizei bufsize):             # <<<<<<<<<<<<<<
 *     '''See: `glGetShaderInfoLog() on Kronos website
 *     <http://www.khronos.org/opengles/sdk/docs/man/xhtml/glGetShaderInfoLog.xml>`_
*/

/* Python wrapper */
static PyObject *__pyx_pw_4kivy_8graphics_6opengl_133glGetShaderInfoLog(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_4kivy_8graphics_6opengl_132glGetShaderInfoLog, "glGetShaderInfoLog(GLuint shader, GLsizei bufsize)\n\nSee: `glGetShaderInfoLog() on Kronos website\n<http://www.khronos.org/opengles/sdk/docs/man/xhtml/glGetShaderInfoLog.xml>`_\n\nUnlike the C specification, the source code will be returned as a string.");
static PyMethodDef __pyx_mdef_4kivy_8graphics_6opengl_133glGetShaderInfoLog = {"glGetShaderInfoLog", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4kivy_8graphics_6opengl_133glGetShaderInfoLog, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4kivy_8graphics_6opengl_132glGetShaderInfoLog};
static PyObject *__pyx_pw_4kivy_8graphics_6opengl_133glGetShaderInfoLog(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  GLuint __pyx_v_shader;
  CYTHON_UNUSED GLsizei __pyx_v_bufsize;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[2] = {0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("glGetShaderInfoLog (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_shader,&__pyx_mstate_global->__pyx_n_u_bufsize,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(0, 966, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 966, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 966, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "glGetShaderInfoLog", 0) < (0)) __PYX_ERR(0, 966, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 2; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("glGetShaderInfoLog", 1, 2, 2, i); __PYX_ERR(0, 966, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 2)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 966, __pyx_L3_error)
      values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 966, __pyx_L3_error)
    }
    __pyx_v_shader = __Pyx_PyLong_As_GLuint(values[0]); if (unlikely((__pyx_v_shader == ((GLuint)-1)) && PyErr_Occurred())) __PYX_ERR(0, 966, __pyx_L3_error)
    __pyx_v_bufsize = __Pyx_PyLong_As_GLsizei(values[1]); if (unlikely((__pyx_v_bufsize == ((GLsizei)-1)) && PyErr_Occurred())) __PYX_ERR(0, 966, __pyx_L3_error)
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("glGetShaderInfoLog", 1, 2, 2, __pyx_nargs); __PYX_ERR(0, 966, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("kivy.graphics.opengl.glGetShaderInfoLog", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4kivy_8graphics_6opengl_132glGetShaderInfoLog(__pyx_self, __pyx_v_shader, __pyx_v_bufsize);

  /* function exit code */
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4kivy_8graphics_6opengl_132glGetShaderInfoLog(CYTHON_UNUSED PyObject *__pyx_self, GLuint __pyx_v_shader, CYTHON_UNUSED GLsizei __pyx_v_bufsize) {
  GLint __pyx_v_size;
  GLchar *__pyx_v_infolog;
  PyObject *__pyx_v_p_infolog = 0;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  size_t __pyx_t_4;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("glGetShaderInfoLog", 0);

  /* "kivy/graphics/opengl.pyx":972
 *     Unlike the C specification, the source code will be returned as a string.
 *     '''
 *     cdef GLint size = 0             # <<<<<<<<<<<<<<
 *     cdef GLchar *infolog
 *     cdef bytes p_infolog
*/
  __pyx_v_size = 0;

  /* "kivy/graphics/opengl.pyx":975
 *     cdef GLchar *infolog
 *     cdef bytes p_infolog
 *     infolog = <GLchar *>malloc(sizeof(GLchar) * 2048)             # <<<<<<<<<<<<<<
 *     if infolog == NULL:
 *         raise MemoryError('glGetShaderInfoLog()')
*/
  __pyx_v_infolog = ((GLchar *)malloc(((sizeof(GLchar)) * 0x800)));

  /* "kivy/graphics/opengl.pyx":976
 *     cdef bytes p_infolog
 *     infolog = <GLchar *>malloc(sizeof(GLchar) * 2048)
 *     if infolog == NULL:             # <<<<<<<<<<<<<<
 *         raise MemoryError('glGetShaderInfoLog()')
 *     cgl.glGetShaderInfoLog(shader, 2048, &size, infolog)
*/
  __pyx_t_1 = (__pyx_v_infolog == NULL);
  if (unlikely(__pyx_t_1)) {

    /* "kivy/graphics/opengl.pyx":977
 *     infolog = <GLchar *>malloc(sizeof(GLchar) * 2048)
 *     if infolog == NULL:
 *         raise MemoryError('glGetShaderInfoLog()')             # <<<<<<<<<<<<<<
 *     cgl.glGetShaderInfoLog(shader, 2048, &size, infolog)
 *     p_infolog = <char *>infolog
*/
    __pyx_t_3 = NULL;
    __pyx_t_4 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_3, __pyx_mstate_global->__pyx_kp_u_glGetShaderInfoLog};
      __pyx_t_2 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_MemoryError)), __pyx_callargs+__pyx_t_4, (2-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 977, __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, 977, __pyx_L1_error)

    /* "kivy/graphics/opengl.pyx":976
 *     cdef bytes p_infolog
 *     infolog = <GLchar *>malloc(sizeof(GLchar) * 2048)
 *     if infolog == NULL:             # <<<<<<<<<<<<<<
 *         raise MemoryError('glGetShaderInfoLog()')
 *     cgl.glGetShaderInfoLog(shader, 2048, &size, infolog)
*/
  }

  /* "kivy/graphics/opengl.pyx":978
 *     if infolog == NULL:
 *         raise MemoryError('glGetShaderInfoLog()')
 *     cgl.glGetShaderInfoLog(shader, 2048, &size, infolog)             # <<<<<<<<<<<<<<
 *     p_infolog = <char *>infolog
 *     free(infolog)
*/
  __pyx_v_4kivy_8graphics_3cgl_cgl->glGetShaderInfoLog(__pyx_v_shader, 0x800, (&__pyx_v_size), __pyx_v_infolog); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 978, __pyx_L1_error)

  /* "kivy/graphics/opengl.pyx":979
 *         raise MemoryError('glGetShaderInfoLog()')
 *     cgl.glGetShaderInfoLog(shader, 2048, &size, infolog)
 *     p_infolog = <char *>infolog             # <<<<<<<<<<<<<<
 *     free(infolog)
 *     return p_infolog
*/
  __pyx_t_2 = __Pyx_PyBytes_FromString(((char *)__pyx_v_infolog)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 979, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_v_p_infolog = ((PyObject*)__pyx_t_2);
  __pyx_t_2 = 0;

  /* "kivy/graphics/opengl.pyx":980
 *     cgl.glGetShaderInfoLog(shader, 2048, &size, infolog)
 *     p_infolog = <char *>infolog
 *     free(infolog)             # <<<<<<<<<<<<<<
 *     return p_infolog
 * 
*/
  free(__pyx_v_infolog);

  /* "kivy/graphics/opengl.pyx":981
 *     p_infolog = <char *>infolog
 *     free(infolog)
 *     return p_infolog             # <<<<<<<<<<<<<<
 * 
 * def glGetShaderPrecisionFormat(GLenum shadertype, GLenum precisiontype): #, GLint* range, GLint* precision):
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF(__pyx_v_p_infolog);
  __pyx_r = __pyx_v_p_infolog;
  goto __pyx_L0;

  /* "kivy/graphics/opengl.pyx":966
 *     return params
 * 
 * def glGetShaderInfoLog(GLuint shader, GLsizei bufsize):             # <<<<<<<<<<<<<<
 *     '''See: `glGetShaderInfoLog() on Kronos website
 *     <http://www.khronos.org/opengles/sdk/docs/man/xhtml/glGetShaderInfoLog.xml>`_
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_AddTraceback("kivy.graphics.opengl.glGetShaderInfoLog", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_p_infolog);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "kivy/graphics/opengl.pyx":983
 *     return p_infolog
 * 
 * def glGetShaderPrecisionFormat(GLenum shadertype, GLenum precisiontype): #, GLint* range, GLint* precision):             # <<<<<<<<<<<<<<
 *     '''See: `glGetShaderPrecisionFormat() on Kronos website
 *     <http://www.khronos.org/opengles/sdk/docs/man/xhtml/glGetShaderPrecisionFormat.xml>`_
*/

/* Python wrapper */
static PyObject *__pyx_pw_4kivy_8graphics_6opengl_135glGetShaderPrecisionFormat(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_4kivy_8graphics_6opengl_134glGetShaderPrecisionFormat, "glGetShaderPrecisionFormat(GLenum shadertype, GLenum precisiontype)\n\nSee: `glGetShaderPrecisionFormat() on Kronos website\n<http://www.khronos.org/opengles/sdk/docs/man/xhtml/glGetShaderPrecisionFormat.xml>`_\n\n.. warning:: Not implemented yet.");
static PyMethodDef __pyx_mdef_4kivy_8graphics_6opengl_135glGetShaderPrecisionFormat = {"glGetShaderPrecisionFormat", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4kivy_8graphics_6opengl_135glGetShaderPrecisionFormat, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4kivy_8graphics_6opengl_134glGetShaderPrecisionFormat};
static PyObject *__pyx_pw_4kivy_8graphics_6opengl_135glGetShaderPrecisionFormat(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  CYTHON_UNUSED GLenum __pyx_v_shadertype;
  CYTHON_UNUSED GLenum __pyx_v_precisiontype;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[2] = {0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("glGetShaderPrecisionFormat (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_shadertype,&__pyx_mstate_global->__pyx_n_u_precisiontype,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(0, 983, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 983, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 983, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "glGetShaderPrecisionFormat", 0) < (0)) __PYX_ERR(0, 983, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 2; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("glGetShaderPrecisionFormat", 1, 2, 2, i); __PYX_ERR(0, 983, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 2)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 983, __pyx_L3_error)
      values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 983, __pyx_L3_error)
    }
    __pyx_v_shadertype = __Pyx_PyLong_As_GLenum(values[0]); if (unlikely((__pyx_v_shadertype == ((GLenum)-1)) && PyErr_Occurred())) __PYX_ERR(0, 983, __pyx_L3_error)
    __pyx_v_precisiontype = __Pyx_PyLong_As_GLenum(values[1]); if (unlikely((__pyx_v_precisiontype == ((GLenum)-1)) && PyErr_Occurred())) __PYX_ERR(0, 983, __pyx_L3_error)
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("glGetShaderPrecisionFormat", 1, 2, 2, __pyx_nargs); __PYX_ERR(0, 983, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("kivy.graphics.opengl.glGetShaderPrecisionFormat", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4kivy_8graphics_6opengl_134glGetShaderPrecisionFormat(__pyx_self, __pyx_v_shadertype, __pyx_v_precisiontype);

  /* function exit code */
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4kivy_8graphics_6opengl_134glGetShaderPrecisionFormat(CYTHON_UNUSED PyObject *__pyx_self, CYTHON_UNUSED GLenum __pyx_v_shadertype, CYTHON_UNUSED GLenum __pyx_v_precisiontype) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("glGetShaderPrecisionFormat", 0);

  /* "kivy/graphics/opengl.pyx":989
 *     .. warning:: Not implemented yet.
 *     '''
 *     raise NotImplementedError             # <<<<<<<<<<<<<<
 *     #cgl.glGetShaderPrecisionFormat(shadertype, precisiontype, range, precision)
 * 
*/
  __Pyx_Raise(((PyObject *)(((PyTypeObject*)PyExc_NotImplementedError))), 0, 0, 0);
  __PYX_ERR(0, 989, __pyx_L1_error)

  /* "kivy/graphics/opengl.pyx":983
 *     return p_infolog
 * 
 * def glGetShaderPrecisionFormat(GLenum shadertype, GLenum precisiontype): #, GLint* range, GLint* precision):             # <<<<<<<<<<<<<<
 *     '''See: `glGetShaderPrecisionFormat() on Kronos website
 *     <http://www.khronos.org/opengles/sdk/docs/man/xhtml/glGetShaderPrecisionFormat.xml>`_
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("kivy.graphics.opengl.glGetShaderPrecisionFormat", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "kivy/graphics/opengl.pyx":992
 *     #cgl.glGetShaderPrecisionFormat(shadertype, precisiontype, range, precision)
 * 
 * def glGetShaderSource(GLuint shader):             # <<<<<<<<<<<<<<
 *     '''See: `glGetShaderSource() on Kronos website
 *     <http://www.khronos.org/opengles/sdk/docs/man/xhtml/glGetShaderSource.xml>`_
*/

/* Python wrapper */
static PyObject *__pyx_pw_4kivy_8graphics_6opengl_137glGetShaderSource(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_4kivy_8graphics_6opengl_136glGetShaderSource, "glGetShaderSource(GLuint shader)\n\nSee: `glGetShaderSource() on Kronos website\n<http://www.khronos.org/opengles/sdk/docs/man/xhtml/glGetShaderSource.xml>`_\n\nUnlike the C specification, the source code will be returned as a string.");
static PyMethodDef __pyx_mdef_4kivy_8graphics_6opengl_137glGetShaderSource = {"glGetShaderSource", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4kivy_8graphics_6opengl_137glGetShaderSource, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4kivy_8graphics_6opengl_136glGetShaderSource};
static PyObject *__pyx_pw_4kivy_8graphics_6opengl_137glGetShaderSource(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  GLuint __pyx_v_shader;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[1] = {0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("glGetShaderSource (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_shader,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(0, 992, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 992, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "glGetShaderSource", 0) < (0)) __PYX_ERR(0, 992, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("glGetShaderSource", 1, 1, 1, i); __PYX_ERR(0, 992, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 1)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 992, __pyx_L3_error)
    }
    __pyx_v_shader = __Pyx_PyLong_As_GLuint(values[0]); if (unlikely((__pyx_v_shader == ((GLuint)-1)) && PyErr_Occurred())) __PYX_ERR(0, 992, __pyx_L3_error)
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("glGetShaderSource", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 992, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("kivy.graphics.opengl.glGetShaderSource", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4kivy_8graphics_6opengl_136glGetShaderSource(__pyx_self, __pyx_v_shader);

  /* function exit code */
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4kivy_8graphics_6opengl_136glGetShaderSource(CYTHON_UNUSED PyObject *__pyx_self, GLuint __pyx_v_shader) {
  GLint __pyx_v_size;
  GLchar *__pyx_v_source;
  PyObject *__pyx_v_p_source = 0;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  size_t __pyx_t_4;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("glGetShaderSource", 0);

  /* "kivy/graphics/opengl.pyx":998
 *     Unlike the C specification, the source code will be returned as a string.
 *     '''
 *     cdef GLint size = 0             # <<<<<<<<<<<<<<
 *     cdef GLchar *source
 *     cdef bytes p_source
*/
  __pyx_v_size = 0;

  /* "kivy/graphics/opengl.pyx":1001
 *     cdef GLchar *source
 *     cdef bytes p_source
 *     source = <GLchar *>malloc(sizeof(GLchar) * 65535)             # <<<<<<<<<<<<<<
 *     if source == NULL:
 *         raise MemoryError('glGetShaderInfoLog()')
*/
  __pyx_v_source = ((GLchar *)malloc(((sizeof(GLchar)) * 0xFFFF)));

  /* "kivy/graphics/opengl.pyx":1002
 *     cdef bytes p_source
 *     source = <GLchar *>malloc(sizeof(GLchar) * 65535)
 *     if source == NULL:             # <<<<<<<<<<<<<<
 *         raise MemoryError('glGetShaderInfoLog()')
 *     cgl.glGetShaderSource(shader, 65535, &size, source)
*/
  __pyx_t_1 = (__pyx_v_source == NULL);
  if (unlikely(__pyx_t_1)) {

    /* "kivy/graphics/opengl.pyx":1003
 *     source = <GLchar *>malloc(sizeof(GLchar) * 65535)
 *     if source == NULL:
 *         raise MemoryError('glGetShaderInfoLog()')             # <<<<<<<<<<<<<<
 *     cgl.glGetShaderSource(shader, 65535, &size, source)
 *     p_source = <char *>source
*/
    __pyx_t_3 = NULL;
    __pyx_t_4 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_3, __pyx_mstate_global->__pyx_kp_u_glGetShaderInfoLog};
      __pyx_t_2 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_MemoryError)), __pyx_callargs+__pyx_t_4, (2-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1003, __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, 1003, __pyx_L1_error)

    /* "kivy/graphics/opengl.pyx":1002
 *     cdef bytes p_source
 *     source = <GLchar *>malloc(sizeof(GLchar) * 65535)
 *     if source == NULL:             # <<<<<<<<<<<<<<
 *         raise MemoryError('glGetShaderInfoLog()')
 *     cgl.glGetShaderSource(shader, 65535, &size, source)
*/
  }

  /* "kivy/graphics/opengl.pyx":1004
 *     if source == NULL:
 *         raise MemoryError('glGetShaderInfoLog()')
 *     cgl.glGetShaderSource(shader, 65535, &size, source)             # <<<<<<<<<<<<<<
 *     p_source = <char *>source
 *     free(source)
*/
  __pyx_v_4kivy_8graphics_3cgl_cgl->glGetShaderSource(__pyx_v_shader, 0xFFFF, (&__pyx_v_size), __pyx_v_source); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 1004, __pyx_L1_error)

  /* "kivy/graphics/opengl.pyx":1005
 *         raise MemoryError('glGetShaderInfoLog()')
 *     cgl.glGetShaderSource(shader, 65535, &size, source)
 *     p_source = <char *>source             # <<<<<<<<<<<<<<
 *     free(source)
 *     return p_source
*/
  __pyx_t_2 = __Pyx_PyBytes_FromString(((char *)__pyx_v_source)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1005, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_v_p_source = ((PyObject*)__pyx_t_2);
  __pyx_t_2 = 0;

  /* "kivy/graphics/opengl.pyx":1006
 *     cgl.glGetShaderSource(shader, 65535, &size, source)
 *     p_source = <char *>source
 *     free(source)             # <<<<<<<<<<<<<<
 *     return p_source
 * 
*/
  free(__pyx_v_source);

  /* "kivy/graphics/opengl.pyx":1007
 *     p_source = <char *>source
 *     free(source)
 *     return p_source             # <<<<<<<<<<<<<<
 * 
 * def glGetString(GLenum name):
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF(__pyx_v_p_source);
  __pyx_r = __pyx_v_p_source;
  goto __pyx_L0;

  /* "kivy/graphics/opengl.pyx":992
 *     #cgl.glGetShaderPrecisionFormat(shadertype, precisiontype, range, precision)
 * 
 * def glGetShaderSource(GLuint shader):             # <<<<<<<<<<<<<<
 *     '''See: `glGetShaderSource() on Kronos website
 *     <http://www.khronos.org/opengles/sdk/docs/man/xhtml/glGetShaderSource.xml>`_
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_AddTraceback("kivy.graphics.opengl.glGetShaderSource", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_p_source);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "kivy/graphics/opengl.pyx":1009
 *     return p_source
 * 
 * def glGetString(GLenum name):             # <<<<<<<<<<<<<<
 *     '''See: `glGetString() on Kronos website
 *     <http://www.khronos.org/opengles/sdk/docs/man/xhtml/glGetString.xml>`_
*/

/* Python wrapper */
static PyObject *__pyx_pw_4kivy_8graphics_6opengl_139glGetString(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_4kivy_8graphics_6opengl_138glGetString, "glGetString(GLenum name)\n\nSee: `glGetString() on Kronos website\n<http://www.khronos.org/opengles/sdk/docs/man/xhtml/glGetString.xml>`_\n\nUnlike the C specification, the value will be returned as a string.");
static PyMethodDef __pyx_mdef_4kivy_8graphics_6opengl_139glGetString = {"glGetString", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4kivy_8graphics_6opengl_139glGetString, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4kivy_8graphics_6opengl_138glGetString};
static PyObject *__pyx_pw_4kivy_8graphics_6opengl_139glGetString(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  GLenum __pyx_v_name;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[1] = {0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("glGetString (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_name,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(0, 1009, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 1009, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "glGetString", 0) < (0)) __PYX_ERR(0, 1009, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("glGetString", 1, 1, 1, i); __PYX_ERR(0, 1009, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 1)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 1009, __pyx_L3_error)
    }
    __pyx_v_name = __Pyx_PyLong_As_GLenum(values[0]); if (unlikely((__pyx_v_name == ((GLenum)-1)) && PyErr_Occurred())) __PYX_ERR(0, 1009, __pyx_L3_error)
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("glGetString", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 1009, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("kivy.graphics.opengl.glGetString", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4kivy_8graphics_6opengl_138glGetString(__pyx_self, __pyx_v_name);

  /* function exit code */
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4kivy_8graphics_6opengl_138glGetString(CYTHON_UNUSED PyObject *__pyx_self, GLenum __pyx_v_name) {
  PyObject *__pyx_v_p_string = 0;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  GLubyte const *__pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("glGetString", 0);

  /* "kivy/graphics/opengl.pyx":1016
 *     '''
 *     cdef bytes p_string
 *     p_string = <char *>cgl.glGetString(name)             # <<<<<<<<<<<<<<
 *     return p_string
 * 
*/
  __pyx_t_1 = __pyx_v_4kivy_8graphics_3cgl_cgl->glGetString(__pyx_v_name); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 1016, __pyx_L1_error)
  __pyx_t_2 = __Pyx_PyBytes_FromString(((char *)__pyx_t_1)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1016, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_v_p_string = ((PyObject*)__pyx_t_2);
  __pyx_t_2 = 0;

  /* "kivy/graphics/opengl.pyx":1017
 *     cdef bytes p_string
 *     p_string = <char *>cgl.glGetString(name)
 *     return p_string             # <<<<<<<<<<<<<<
 * 
 * def glGetTexParameterfv(GLenum target, GLenum pname):
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF(__pyx_v_p_string);
  __pyx_r = __pyx_v_p_string;
  goto __pyx_L0;

  /* "kivy/graphics/opengl.pyx":1009
 *     return p_source
 * 
 * def glGetString(GLenum name):             # <<<<<<<<<<<<<<
 *     '''See: `glGetString() on Kronos website
 *     <http://www.khronos.org/opengles/sdk/docs/man/xhtml/glGetString.xml>`_
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("kivy.graphics.opengl.glGetString", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_p_string);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "kivy/graphics/opengl.pyx":1019
 *     return p_string
 * 
 * def glGetTexParameterfv(GLenum target, GLenum pname):             # <<<<<<<<<<<<<<
 *     '''See: `glGetTexParameterfv() on Kronos website
 *     <http://www.khronos.org/opengles/sdk/docs/man/xhtml/glGetTexParameterfv.xml>`_
*/

/* Python wrapper */
static PyObject *__pyx_pw_4kivy_8graphics_6opengl_141glGetTexParameterfv(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_4kivy_8graphics_6opengl_140glGetTexParameterfv, "glGetTexParameterfv(GLenum target, GLenum pname)\n\nSee: `glGetTexParameterfv() on Kronos website\n<http://www.khronos.org/opengles/sdk/docs/man/xhtml/glGetTexParameterfv.xml>`_");
static PyMethodDef __pyx_mdef_4kivy_8graphics_6opengl_141glGetTexParameterfv = {"glGetTexParameterfv", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4kivy_8graphics_6opengl_141glGetTexParameterfv, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4kivy_8graphics_6opengl_140glGetTexParameterfv};
static PyObject *__pyx_pw_4kivy_8graphics_6opengl_141glGetTexParameterfv(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  GLenum __pyx_v_target;
  GLenum __pyx_v_pname;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[2] = {0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("glGetTexParameterfv (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_target,&__pyx_mstate_global->__pyx_n_u_pname,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(0, 1019, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 1019, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 1019, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "glGetTexParameterfv", 0) < (0)) __PYX_ERR(0, 1019, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 2; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("glGetTexParameterfv", 1, 2, 2, i); __PYX_ERR(0, 1019, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 2)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 1019, __pyx_L3_error)
      values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 1019, __pyx_L3_error)
    }
    __pyx_v_target = __Pyx_PyLong_As_GLenum(values[0]); if (unlikely((__pyx_v_target == ((GLenum)-1)) && PyErr_Occurred())) __PYX_ERR(0, 1019, __pyx_L3_error)
    __pyx_v_pname = __Pyx_PyLong_As_GLenum(values[1]); if (unlikely((__pyx_v_pname == ((GLenum)-1)) && PyErr_Occurred())) __PYX_ERR(0, 1019, __pyx_L3_error)
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("glGetTexParameterfv", 1, 2, 2, __pyx_nargs); __PYX_ERR(0, 1019, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("kivy.graphics.opengl.glGetTexParameterfv", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4kivy_8graphics_6opengl_140glGetTexParameterfv(__pyx_self, __pyx_v_target, __pyx_v_pname);

  /* function exit code */
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4kivy_8graphics_6opengl_140glGetTexParameterfv(CYTHON_UNUSED PyObject *__pyx_self, GLenum __pyx_v_target, GLenum __pyx_v_pname) {
  GLfloat __pyx_v_params;
  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("glGetTexParameterfv", 0);

  /* "kivy/graphics/opengl.pyx":1023
 *     <http://www.khronos.org/opengles/sdk/docs/man/xhtml/glGetTexParameterfv.xml>`_
 *     '''
 *     cdef GLfloat params = 0             # <<<<<<<<<<<<<<
 *     cgl.glGetTexParameterfv(target, pname, &params)
 *     return params
*/
  __pyx_v_params = 0.0;

  /* "kivy/graphics/opengl.pyx":1024
 *     '''
 *     cdef GLfloat params = 0
 *     cgl.glGetTexParameterfv(target, pname, &params)             # <<<<<<<<<<<<<<
 *     return params
 * 
*/
  __pyx_v_4kivy_8graphics_3cgl_cgl->glGetTexParameterfv(__pyx_v_target, __pyx_v_pname, (&__pyx_v_params)); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 1024, __pyx_L1_error)

  /* "kivy/graphics/opengl.pyx":1025
 *     cdef GLfloat params = 0
 *     cgl.glGetTexParameterfv(target, pname, &params)
 *     return params             # <<<<<<<<<<<<<<
 * 
 * def glGetTexParameteriv(GLenum target, GLenum pname):
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = PyFloat_FromDouble(__pyx_v_params); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1025, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "kivy/graphics/opengl.pyx":1019
 *     return p_string
 * 
 * def glGetTexParameterfv(GLenum target, GLenum pname):             # <<<<<<<<<<<<<<
 *     '''See: `glGetTexParameterfv() on Kronos website
 *     <http://www.khronos.org/opengles/sdk/docs/man/xhtml/glGetTexParameterfv.xml>`_
*/

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

/* "kivy/graphics/opengl.pyx":1027
 *     return params
 * 
 * def glGetTexParameteriv(GLenum target, GLenum pname):             # <<<<<<<<<<<<<<
 *     '''See: `glGetTexParameteriv() on Kronos website
 *     <http://www.khronos.org/opengles/sdk/docs/man/xhtml/glGetTexParameteriv.xml>`_
*/

/* Python wrapper */
static PyObject *__pyx_pw_4kivy_8graphics_6opengl_143glGetTexParameteriv(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_4kivy_8graphics_6opengl_142glGetTexParameteriv, "glGetTexParameteriv(GLenum target, GLenum pname)\n\nSee: `glGetTexParameteriv() on Kronos website\n<http://www.khronos.org/opengles/sdk/docs/man/xhtml/glGetTexParameteriv.xml>`_");
static PyMethodDef __pyx_mdef_4kivy_8graphics_6opengl_143glGetTexParameteriv = {"glGetTexParameteriv", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4kivy_8graphics_6opengl_143glGetTexParameteriv, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4kivy_8graphics_6opengl_142glGetTexParameteriv};
static PyObject *__pyx_pw_4kivy_8graphics_6opengl_143glGetTexParameteriv(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  GLenum __pyx_v_target;
  GLenum __pyx_v_pname;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[2] = {0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("glGetTexParameteriv (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_target,&__pyx_mstate_global->__pyx_n_u_pname,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(0, 1027, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 1027, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 1027, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "glGetTexParameteriv", 0) < (0)) __PYX_ERR(0, 1027, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 2; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("glGetTexParameteriv", 1, 2, 2, i); __PYX_ERR(0, 1027, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 2)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 1027, __pyx_L3_error)
      values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 1027, __pyx_L3_error)
    }
    __pyx_v_target = __Pyx_PyLong_As_GLenum(values[0]); if (unlikely((__pyx_v_target == ((GLenum)-1)) && PyErr_Occurred())) __PYX_ERR(0, 1027, __pyx_L3_error)
    __pyx_v_pname = __Pyx_PyLong_As_GLenum(values[1]); if (unlikely((__pyx_v_pname == ((GLenum)-1)) && PyErr_Occurred())) __PYX_ERR(0, 1027, __pyx_L3_error)
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("glGetTexParameteriv", 1, 2, 2, __pyx_nargs); __PYX_ERR(0, 1027, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("kivy.graphics.opengl.glGetTexParameteriv", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4kivy_8graphics_6opengl_142glGetTexParameteriv(__pyx_self, __pyx_v_target, __pyx_v_pname);

  /* function exit code */
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4kivy_8graphics_6opengl_142glGetTexParameteriv(CYTHON_UNUSED PyObject *__pyx_self, GLenum __pyx_v_target, GLenum __pyx_v_pname) {
  GLint __pyx_v_params;
  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("glGetTexParameteriv", 0);

  /* "kivy/graphics/opengl.pyx":1031
 *     <http://www.khronos.org/opengles/sdk/docs/man/xhtml/glGetTexParameteriv.xml>`_
 *     '''
 *     cdef GLint params = 0             # <<<<<<<<<<<<<<
 *     cgl.glGetTexParameteriv(target, pname, &params)
 *     return params
*/
  __pyx_v_params = 0;

  /* "kivy/graphics/opengl.pyx":1032
 *     '''
 *     cdef GLint params = 0
 *     cgl.glGetTexParameteriv(target, pname, &params)             # <<<<<<<<<<<<<<
 *     return params
 * 
*/
  __pyx_v_4kivy_8graphics_3cgl_cgl->glGetTexParameteriv(__pyx_v_target, __pyx_v_pname, (&__pyx_v_params)); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 1032, __pyx_L1_error)

  /* "kivy/graphics/opengl.pyx":1033
 *     cdef GLint params = 0
 *     cgl.glGetTexParameteriv(target, pname, &params)
 *     return params             # <<<<<<<<<<<<<<
 * 
 * def glGetUniformfv(GLuint program, GLint location):
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_From_GLint(__pyx_v_params); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1033, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "kivy/graphics/opengl.pyx":1027
 *     return params
 * 
 * def glGetTexParameteriv(GLenum target, GLenum pname):             # <<<<<<<<<<<<<<
 *     '''See: `glGetTexParameteriv() on Kronos website
 *     <http://www.khronos.org/opengles/sdk/docs/man/xhtml/glGetTexParameteriv.xml>`_
*/

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

/* "kivy/graphics/opengl.pyx":1035
 *     return params
 * 
 * def glGetUniformfv(GLuint program, GLint location):             # <<<<<<<<<<<<<<
 *     '''See: `glGetUniformfv() on Kronos website
 *     <http://www.khronos.org/opengles/sdk/docs/man/xhtml/glGetUniformfv.xml>`_
*/

/* Python wrapper */
static PyObject *__pyx_pw_4kivy_8graphics_6opengl_145glGetUniformfv(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_4kivy_8graphics_6opengl_144glGetUniformfv, "glGetUniformfv(GLuint program, GLint location)\n\nSee: `glGetUniformfv() on Kronos website\n<http://www.khronos.org/opengles/sdk/docs/man/xhtml/glGetUniformfv.xml>`_");
static PyMethodDef __pyx_mdef_4kivy_8graphics_6opengl_145glGetUniformfv = {"glGetUniformfv", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4kivy_8graphics_6opengl_145glGetUniformfv, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4kivy_8graphics_6opengl_144glGetUniformfv};
static PyObject *__pyx_pw_4kivy_8graphics_6opengl_145glGetUniformfv(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  GLuint __pyx_v_program;
  GLint __pyx_v_location;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[2] = {0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("glGetUniformfv (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_program,&__pyx_mstate_global->__pyx_n_u_location,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(0, 1035, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 1035, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 1035, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "glGetUniformfv", 0) < (0)) __PYX_ERR(0, 1035, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 2; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("glGetUniformfv", 1, 2, 2, i); __PYX_ERR(0, 1035, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 2)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 1035, __pyx_L3_error)
      values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 1035, __pyx_L3_error)
    }
    __pyx_v_program = __Pyx_PyLong_As_GLuint(values[0]); if (unlikely((__pyx_v_program == ((GLuint)-1)) && PyErr_Occurred())) __PYX_ERR(0, 1035, __pyx_L3_error)
    __pyx_v_location = __Pyx_PyLong_As_GLint(values[1]); if (unlikely((__pyx_v_location == ((GLint)-1)) && PyErr_Occurred())) __PYX_ERR(0, 1035, __pyx_L3_error)
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("glGetUniformfv", 1, 2, 2, __pyx_nargs); __PYX_ERR(0, 1035, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("kivy.graphics.opengl.glGetUniformfv", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4kivy_8graphics_6opengl_144glGetUniformfv(__pyx_self, __pyx_v_program, __pyx_v_location);

  /* function exit code */
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4kivy_8graphics_6opengl_144glGetUniformfv(CYTHON_UNUSED PyObject *__pyx_self, GLuint __pyx_v_program, GLint __pyx_v_location) {
  GLfloat __pyx_v_params;
  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("glGetUniformfv", 0);

  /* "kivy/graphics/opengl.pyx":1039
 *     <http://www.khronos.org/opengles/sdk/docs/man/xhtml/glGetUniformfv.xml>`_
 *     '''
 *     cdef GLfloat params = 0             # <<<<<<<<<<<<<<
 *     cgl.glGetUniformfv(program, location, &params)
 *     return params
*/
  __pyx_v_params = 0.0;

  /* "kivy/graphics/opengl.pyx":1040
 *     '''
 *     cdef GLfloat params = 0
 *     cgl.glGetUniformfv(program, location, &params)             # <<<<<<<<<<<<<<
 *     return params
 * 
*/
  __pyx_v_4kivy_8graphics_3cgl_cgl->glGetUniformfv(__pyx_v_program, __pyx_v_location, (&__pyx_v_params)); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 1040, __pyx_L1_error)

  /* "kivy/graphics/opengl.pyx":1041
 *     cdef GLfloat params = 0
 *     cgl.glGetUniformfv(program, location, &params)
 *     return params             # <<<<<<<<<<<<<<
 * 
 * def glGetUniformiv(GLuint program, GLint location):
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = PyFloat_FromDouble(__pyx_v_params); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1041, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "kivy/graphics/opengl.pyx":1035
 *     return params
 * 
 * def glGetUniformfv(GLuint program, GLint location):             # <<<<<<<<<<<<<<
 *     '''See: `glGetUniformfv() on Kronos website
 *     <http://www.khronos.org/opengles/sdk/docs/man/xhtml/glGetUniformfv.xml>`_
*/

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

/* "kivy/graphics/opengl.pyx":1043
 *     return params
 * 
 * def glGetUniformiv(GLuint program, GLint location):             # <<<<<<<<<<<<<<
 *     '''See: `glGetUniformiv() on Kronos website
 *     <http://www.khronos.org/opengles/sdk/docs/man/xhtml/glGetUniformiv.xml>`_
*/

/* Python wrapper */
static PyObject *__pyx_pw_4kivy_8graphics_6opengl_147glGetUniformiv(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_4kivy_8graphics_6opengl_146glGetUniformiv, "glGetUniformiv(GLuint program, GLint location)\n\nSee: `glGetUniformiv() on Kronos website\n<http://www.khronos.org/opengles/sdk/docs/man/xhtml/glGetUniformiv.xml>`_");
static PyMethodDef __pyx_mdef_4kivy_8graphics_6opengl_147glGetUniformiv = {"glGetUniformiv", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4kivy_8graphics_6opengl_147glGetUniformiv, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4kivy_8graphics_6opengl_146glGetUniformiv};
static PyObject *__pyx_pw_4kivy_8graphics_6opengl_147glGetUniformiv(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  GLuint __pyx_v_program;
  GLint __pyx_v_location;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[2] = {0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("glGetUniformiv (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_program,&__pyx_mstate_global->__pyx_n_u_location,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(0, 1043, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 1043, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 1043, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "glGetUniformiv", 0) < (0)) __PYX_ERR(0, 1043, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 2; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("glGetUniformiv", 1, 2, 2, i); __PYX_ERR(0, 1043, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 2)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 1043, __pyx_L3_error)
      values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 1043, __pyx_L3_error)
    }
    __pyx_v_program = __Pyx_PyLong_As_GLuint(values[0]); if (unlikely((__pyx_v_program == ((GLuint)-1)) && PyErr_Occurred())) __PYX_ERR(0, 1043, __pyx_L3_error)
    __pyx_v_location = __Pyx_PyLong_As_GLint(values[1]); if (unlikely((__pyx_v_location == ((GLint)-1)) && PyErr_Occurred())) __PYX_ERR(0, 1043, __pyx_L3_error)
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("glGetUniformiv", 1, 2, 2, __pyx_nargs); __PYX_ERR(0, 1043, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("kivy.graphics.opengl.glGetUniformiv", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4kivy_8graphics_6opengl_146glGetUniformiv(__pyx_self, __pyx_v_program, __pyx_v_location);

  /* function exit code */
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4kivy_8graphics_6opengl_146glGetUniformiv(CYTHON_UNUSED PyObject *__pyx_self, GLuint __pyx_v_program, GLint __pyx_v_location) {
  GLint __pyx_v_params;
  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("glGetUniformiv", 0);

  /* "kivy/graphics/opengl.pyx":1047
 *     <http://www.khronos.org/opengles/sdk/docs/man/xhtml/glGetUniformiv.xml>`_
 *     '''
 *     cdef GLint params = 0             # <<<<<<<<<<<<<<
 *     cgl.glGetUniformiv(program, location, &params)
 *     return params
*/
  __pyx_v_params = 0;

  /* "kivy/graphics/opengl.pyx":1048
 *     '''
 *     cdef GLint params = 0
 *     cgl.glGetUniformiv(program, location, &params)             # <<<<<<<<<<<<<<
 *     return params
 * 
*/
  __pyx_v_4kivy_8graphics_3cgl_cgl->glGetUniformiv(__pyx_v_program, __pyx_v_location, (&__pyx_v_params)); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 1048, __pyx_L1_error)

  /* "kivy/graphics/opengl.pyx":1049
 *     cdef GLint params = 0
 *     cgl.glGetUniformiv(program, location, &params)
 *     return params             # <<<<<<<<<<<<<<
 * 
 * def glGetUniformLocation(GLuint program, bytes name):
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_From_GLint(__pyx_v_params); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1049, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "kivy/graphics/opengl.pyx":1043
 *     return params
 * 
 * def glGetUniformiv(GLuint program, GLint location):             # <<<<<<<<<<<<<<
 *     '''See: `glGetUniformiv() on Kronos website
 *     <http://www.khronos.org/opengles/sdk/docs/man/xhtml/glGetUniformiv.xml>`_
*/

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

/* "kivy/graphics/opengl.pyx":1051
 *     return params
 * 
 * def glGetUniformLocation(GLuint program, bytes name):             # <<<<<<<<<<<<<<
 *     '''See: `glGetUniformLocation() on Kronos website
 *     <http://www.khronos.org/opengles/sdk/docs/man/xhtml/glGetUniformLocation.xml>`_
*/

/* Python wrapper */
static PyObject *__pyx_pw_4kivy_8graphics_6opengl_149glGetUniformLocation(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_4kivy_8graphics_6opengl_148glGetUniformLocation, "glGetUniformLocation(GLuint program, bytes name)\n\nSee: `glGetUniformLocation() on Kronos website\n<http://www.khronos.org/opengles/sdk/docs/man/xhtml/glGetUniformLocation.xml>`_");
static PyMethodDef __pyx_mdef_4kivy_8graphics_6opengl_149glGetUniformLocation = {"glGetUniformLocation", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4kivy_8graphics_6opengl_149glGetUniformLocation, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4kivy_8graphics_6opengl_148glGetUniformLocation};
static PyObject *__pyx_pw_4kivy_8graphics_6opengl_149glGetUniformLocation(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  GLuint __pyx_v_program;
  PyObject *__pyx_v_name = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[2] = {0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("glGetUniformLocation (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_program,&__pyx_mstate_global->__pyx_n_u_name,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(0, 1051, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 1051, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 1051, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "glGetUniformLocation", 0) < (0)) __PYX_ERR(0, 1051, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 2; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("glGetUniformLocation", 1, 2, 2, i); __PYX_ERR(0, 1051, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 2)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 1051, __pyx_L3_error)
      values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 1051, __pyx_L3_error)
    }
    __pyx_v_program = __Pyx_PyLong_As_GLuint(values[0]); if (unlikely((__pyx_v_program == ((GLuint)-1)) && PyErr_Occurred())) __PYX_ERR(0, 1051, __pyx_L3_error)
    __pyx_v_name = ((PyObject*)values[1]);
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("glGetUniformLocation", 1, 2, 2, __pyx_nargs); __PYX_ERR(0, 1051, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("kivy.graphics.opengl.glGetUniformLocation", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_name), (&PyBytes_Type), 1, "name", 1))) __PYX_ERR(0, 1051, __pyx_L1_error)
  __pyx_r = __pyx_pf_4kivy_8graphics_6opengl_148glGetUniformLocation(__pyx_self, __pyx_v_program, __pyx_v_name);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  goto __pyx_L7_cleaned_up;
  __pyx_L0:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __pyx_L7_cleaned_up:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4kivy_8graphics_6opengl_148glGetUniformLocation(CYTHON_UNUSED PyObject *__pyx_self, GLuint __pyx_v_program, PyObject *__pyx_v_name) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  char *__pyx_t_1;
  GLint __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("glGetUniformLocation", 0);

  /* "kivy/graphics/opengl.pyx":1055
 *     <http://www.khronos.org/opengles/sdk/docs/man/xhtml/glGetUniformLocation.xml>`_
 *     '''
 *     return cgl.glGetUniformLocation(program, <char *>name)             # <<<<<<<<<<<<<<
 * 
 * def glGetVertexAttribfv(GLuint index, GLenum pname):
*/
  __Pyx_XDECREF(__pyx_r);
  if (unlikely(__pyx_v_name == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "expected bytes, NoneType found");
    __PYX_ERR(0, 1055, __pyx_L1_error)
  }
  __pyx_t_1 = __Pyx_PyBytes_AsWritableString(__pyx_v_name); if (unlikely((!__pyx_t_1) && PyErr_Occurred())) __PYX_ERR(0, 1055, __pyx_L1_error)
  __pyx_t_2 = __pyx_v_4kivy_8graphics_3cgl_cgl->glGetUniformLocation(__pyx_v_program, ((char *)__pyx_t_1)); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 1055, __pyx_L1_error)
  __pyx_t_3 = __Pyx_PyLong_From_GLint(__pyx_t_2); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1055, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_r = __pyx_t_3;
  __pyx_t_3 = 0;
  goto __pyx_L0;

  /* "kivy/graphics/opengl.pyx":1051
 *     return params
 * 
 * def glGetUniformLocation(GLuint program, bytes name):             # <<<<<<<<<<<<<<
 *     '''See: `glGetUniformLocation() on Kronos website
 *     <http://www.khronos.org/opengles/sdk/docs/man/xhtml/glGetUniformLocation.xml>`_
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_AddTraceback("kivy.graphics.opengl.glGetUniformLocation", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "kivy/graphics/opengl.pyx":1057
 *     return cgl.glGetUniformLocation(program, <char *>name)
 * 
 * def glGetVertexAttribfv(GLuint index, GLenum pname):             # <<<<<<<<<<<<<<
 *     '''See: `glGetVertexAttribfv() on Kronos website
 *     <http://www.khronos.org/opengles/sdk/docs/man/xhtml/glGetVertexAttribfv.xml>`_
*/

/* Python wrapper */
static PyObject *__pyx_pw_4kivy_8graphics_6opengl_151glGetVertexAttribfv(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_4kivy_8graphics_6opengl_150glGetVertexAttribfv, "glGetVertexAttribfv(GLuint index, GLenum pname)\n\nSee: `glGetVertexAttribfv() on Kronos website\n<http://www.khronos.org/opengles/sdk/docs/man/xhtml/glGetVertexAttribfv.xml>`_");
static PyMethodDef __pyx_mdef_4kivy_8graphics_6opengl_151glGetVertexAttribfv = {"glGetVertexAttribfv", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4kivy_8graphics_6opengl_151glGetVertexAttribfv, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4kivy_8graphics_6opengl_150glGetVertexAttribfv};
static PyObject *__pyx_pw_4kivy_8graphics_6opengl_151glGetVertexAttribfv(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  GLuint __pyx_v_index;
  GLenum __pyx_v_pname;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[2] = {0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("glGetVertexAttribfv (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_index,&__pyx_mstate_global->__pyx_n_u_pname,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(0, 1057, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 1057, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 1057, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "glGetVertexAttribfv", 0) < (0)) __PYX_ERR(0, 1057, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 2; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("glGetVertexAttribfv", 1, 2, 2, i); __PYX_ERR(0, 1057, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 2)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 1057, __pyx_L3_error)
      values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 1057, __pyx_L3_error)
    }
    __pyx_v_index = __Pyx_PyLong_As_GLuint(values[0]); if (unlikely((__pyx_v_index == ((GLuint)-1)) && PyErr_Occurred())) __PYX_ERR(0, 1057, __pyx_L3_error)
    __pyx_v_pname = __Pyx_PyLong_As_GLenum(values[1]); if (unlikely((__pyx_v_pname == ((GLenum)-1)) && PyErr_Occurred())) __PYX_ERR(0, 1057, __pyx_L3_error)
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("glGetVertexAttribfv", 1, 2, 2, __pyx_nargs); __PYX_ERR(0, 1057, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("kivy.graphics.opengl.glGetVertexAttribfv", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4kivy_8graphics_6opengl_150glGetVertexAttribfv(__pyx_self, __pyx_v_index, __pyx_v_pname);

  /* function exit code */
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4kivy_8graphics_6opengl_150glGetVertexAttribfv(CYTHON_UNUSED PyObject *__pyx_self, GLuint __pyx_v_index, GLenum __pyx_v_pname) {
  GLfloat __pyx_v_params;
  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("glGetVertexAttribfv", 0);

  /* "kivy/graphics/opengl.pyx":1061
 *     <http://www.khronos.org/opengles/sdk/docs/man/xhtml/glGetVertexAttribfv.xml>`_
 *     '''
 *     cdef GLfloat params = 0             # <<<<<<<<<<<<<<
 *     cgl.glGetVertexAttribfv(index, pname, &params)
 *     return params
*/
  __pyx_v_params = 0.0;

  /* "kivy/graphics/opengl.pyx":1062
 *     '''
 *     cdef GLfloat params = 0
 *     cgl.glGetVertexAttribfv(index, pname, &params)             # <<<<<<<<<<<<<<
 *     return params
 * 
*/
  __pyx_v_4kivy_8graphics_3cgl_cgl->glGetVertexAttribfv(__pyx_v_index, __pyx_v_pname, (&__pyx_v_params)); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 1062, __pyx_L1_error)

  /* "kivy/graphics/opengl.pyx":1063
 *     cdef GLfloat params = 0
 *     cgl.glGetVertexAttribfv(index, pname, &params)
 *     return params             # <<<<<<<<<<<<<<
 * 
 * def glGetVertexAttribiv(GLuint index, GLenum pname):
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = PyFloat_FromDouble(__pyx_v_params); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1063, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "kivy/graphics/opengl.pyx":1057
 *     return cgl.glGetUniformLocation(program, <char *>name)
 * 
 * def glGetVertexAttribfv(GLuint index, GLenum pname):             # <<<<<<<<<<<<<<
 *     '''See: `glGetVertexAttribfv() on Kronos website
 *     <http://www.khronos.org/opengles/sdk/docs/man/xhtml/glGetVertexAttribfv.xml>`_
*/

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

/* "kivy/graphics/opengl.pyx":1065
 *     return params
 * 
 * def glGetVertexAttribiv(GLuint index, GLenum pname):             # <<<<<<<<<<<<<<
 *     '''See: `glGetVertexAttribiv() on Kronos website
 *     <http://www.khronos.org/opengles/sdk/docs/man/xhtml/glGetVertexAttribiv.xml>`_
*/

/* Python wrapper */
static PyObject *__pyx_pw_4kivy_8graphics_6opengl_153glGetVertexAttribiv(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_4kivy_8graphics_6opengl_152glGetVertexAttribiv, "glGetVertexAttribiv(GLuint index, GLenum pname)\n\nSee: `glGetVertexAttribiv() on Kronos website\n<http://www.khronos.org/opengles/sdk/docs/man/xhtml/glGetVertexAttribiv.xml>`_");
static PyMethodDef __pyx_mdef_4kivy_8graphics_6opengl_153glGetVertexAttribiv = {"glGetVertexAttribiv", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4kivy_8graphics_6opengl_153glGetVertexAttribiv, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4kivy_8graphics_6opengl_152glGetVertexAttribiv};
static PyObject *__pyx_pw_4kivy_8graphics_6opengl_153glGetVertexAttribiv(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  GLuint __pyx_v_index;
  GLenum __pyx_v_pname;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[2] = {0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("glGetVertexAttribiv (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_index,&__pyx_mstate_global->__pyx_n_u_pname,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(0, 1065, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 1065, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 1065, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "glGetVertexAttribiv", 0) < (0)) __PYX_ERR(0, 1065, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 2; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("glGetVertexAttribiv", 1, 2, 2, i); __PYX_ERR(0, 1065, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 2)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 1065, __pyx_L3_error)
      values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 1065, __pyx_L3_error)
    }
    __pyx_v_index = __Pyx_PyLong_As_GLuint(values[0]); if (unlikely((__pyx_v_index == ((GLuint)-1)) && PyErr_Occurred())) __PYX_ERR(0, 1065, __pyx_L3_error)
    __pyx_v_pname = __Pyx_PyLong_As_GLenum(values[1]); if (unlikely((__pyx_v_pname == ((GLenum)-1)) && PyErr_Occurred())) __PYX_ERR(0, 1065, __pyx_L3_error)
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("glGetVertexAttribiv", 1, 2, 2, __pyx_nargs); __PYX_ERR(0, 1065, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("kivy.graphics.opengl.glGetVertexAttribiv", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4kivy_8graphics_6opengl_152glGetVertexAttribiv(__pyx_self, __pyx_v_index, __pyx_v_pname);

  /* function exit code */
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4kivy_8graphics_6opengl_152glGetVertexAttribiv(CYTHON_UNUSED PyObject *__pyx_self, GLuint __pyx_v_index, GLenum __pyx_v_pname) {
  GLint __pyx_v_params;
  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("glGetVertexAttribiv", 0);

  /* "kivy/graphics/opengl.pyx":1069
 *     <http://www.khronos.org/opengles/sdk/docs/man/xhtml/glGetVertexAttribiv.xml>`_
 *     '''
 *     cdef GLint params = 0             # <<<<<<<<<<<<<<
 *     cgl.glGetVertexAttribiv(index, pname, &params)
 *     return params
*/
  __pyx_v_params = 0;

  /* "kivy/graphics/opengl.pyx":1070
 *     '''
 *     cdef GLint params = 0
 *     cgl.glGetVertexAttribiv(index, pname, &params)             # <<<<<<<<<<<<<<
 *     return params
 * 
*/
  __pyx_v_4kivy_8graphics_3cgl_cgl->glGetVertexAttribiv(__pyx_v_index, __pyx_v_pname, (&__pyx_v_params)); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 1070, __pyx_L1_error)

  /* "kivy/graphics/opengl.pyx":1071
 *     cdef GLint params = 0
 *     cgl.glGetVertexAttribiv(index, pname, &params)
 *     return params             # <<<<<<<<<<<<<<
 * 
 * def glGetVertexAttribPointerv(GLuint index, GLenum pname):#, GLvoid** pointer):
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyLong_From_GLint(__pyx_v_params); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1071, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "kivy/graphics/opengl.pyx":1065
 *     return params
 * 
 * def glGetVertexAttribiv(GLuint index, GLenum pname):             # <<<<<<<<<<<<<<
 *     '''See: `glGetVertexAttribiv() on Kronos website
 *     <http://www.khronos.org/opengles/sdk/docs/man/xhtml/glGetVertexAttribiv.xml>`_
*/

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

/* "kivy/graphics/opengl.pyx":1073
 *     return params
 * 
 * def glGetVertexAttribPointerv(GLuint index, GLenum pname):#, GLvoid** pointer):             # <<<<<<<<<<<<<<
 *     '''See: `glGetVertexAttribPointerv() on Kronos website
 *     <http://www.khronos.org/opengles/sdk/docs/man/xhtml/glGetVertexAttribPointerv.xml>`_
*/

/* Python wrapper */
static PyObject *__pyx_pw_4kivy_8graphics_6opengl_155glGetVertexAttribPointerv(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_4kivy_8graphics_6opengl_154glGetVertexAttribPointerv, "glGetVertexAttribPointerv(GLuint index, GLenum pname)\n\nSee: `glGetVertexAttribPointerv() on Kronos website\n<http://www.khronos.org/opengles/sdk/docs/man/xhtml/glGetVertexAttribPointerv.xml>`_\n\n.. warning:: Not implemented yet.");
static PyMethodDef __pyx_mdef_4kivy_8graphics_6opengl_155glGetVertexAttribPointerv = {"glGetVertexAttribPointerv", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4kivy_8graphics_6opengl_155glGetVertexAttribPointerv, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4kivy_8graphics_6opengl_154glGetVertexAttribPointerv};
static PyObject *__pyx_pw_4kivy_8graphics_6opengl_155glGetVertexAttribPointerv(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  CYTHON_UNUSED GLuint __pyx_v_index;
  CYTHON_UNUSED GLenum __pyx_v_pname;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[2] = {0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("glGetVertexAttribPointerv (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_index,&__pyx_mstate_global->__pyx_n_u_pname,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(0, 1073, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 1073, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 1073, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "glGetVertexAttribPointerv", 0) < (0)) __PYX_ERR(0, 1073, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 2; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("glGetVertexAttribPointerv", 1, 2, 2, i); __PYX_ERR(0, 1073, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 2)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 1073, __pyx_L3_error)
      values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 1073, __pyx_L3_error)
    }
    __pyx_v_index = __Pyx_PyLong_As_GLuint(values[0]); if (unlikely((__pyx_v_index == ((GLuint)-1)) && PyErr_Occurred())) __PYX_ERR(0, 1073, __pyx_L3_error)
    __pyx_v_pname = __Pyx_PyLong_As_GLenum(values[1]); if (unlikely((__pyx_v_pname == ((GLenum)-1)) && PyErr_Occurred())) __PYX_ERR(0, 1073, __pyx_L3_error)
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("glGetVertexAttribPointerv", 1, 2, 2, __pyx_nargs); __PYX_ERR(0, 1073, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("kivy.graphics.opengl.glGetVertexAttribPointerv", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4kivy_8graphics_6opengl_154glGetVertexAttribPointerv(__pyx_self, __pyx_v_index, __pyx_v_pname);

  /* function exit code */
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4kivy_8graphics_6opengl_154glGetVertexAttribPointerv(CYTHON_UNUSED PyObject *__pyx_self, CYTHON_UNUSED GLuint __pyx_v_index, CYTHON_UNUSED GLenum __pyx_v_pname) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("glGetVertexAttribPointerv", 0);

  /* "kivy/graphics/opengl.pyx":1079
 *     .. warning:: Not implemented yet.
 *     '''
 *     raise NotImplementedError             # <<<<<<<<<<<<<<
 *     #cgl.glGetVertexAttribPointerv(index, pname, pointer)
 * 
*/
  __Pyx_Raise(((PyObject *)(((PyTypeObject*)PyExc_NotImplementedError))), 0, 0, 0);
  __PYX_ERR(0, 1079, __pyx_L1_error)

  /* "kivy/graphics/opengl.pyx":1073
 *     return params
 * 
 * def glGetVertexAttribPointerv(GLuint index, GLenum pname):#, GLvoid** pointer):             # <<<<<<<<<<<<<<
 *     '''See: `glGetVertexAttribPointerv() on Kronos website
 *     <http://www.khronos.org/opengles/sdk/docs/man/xhtml/glGetVertexAttribPointerv.xml>`_
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("kivy.graphics.opengl.glGetVertexAttribPointerv", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "kivy/graphics/opengl.pyx":1082
 *     #cgl.glGetVertexAttribPointerv(index, pname, pointer)
 * 
 * def glHint(GLenum target, GLenum mode):             # <<<<<<<<<<<<<<
 *     '''See: `glHint() on Kronos website
 *     <http://www.khronos.org/opengles/sdk/docs/man/xhtml/glHint.xml>`_
*/

/* Python wrapper */
static PyObject *__pyx_pw_4kivy_8graphics_6opengl_157glHint(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_4kivy_8graphics_6opengl_156glHint, "glHint(GLenum target, GLenum mode)\n\nSee: `glHint() on Kronos website\n<http://www.khronos.org/opengles/sdk/docs/man/xhtml/glHint.xml>`_");
static PyMethodDef __pyx_mdef_4kivy_8graphics_6opengl_157glHint = {"glHint", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4kivy_8graphics_6opengl_157glHint, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4kivy_8graphics_6opengl_156glHint};
static PyObject *__pyx_pw_4kivy_8graphics_6opengl_157glHint(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  GLenum __pyx_v_target;
  GLenum __pyx_v_mode;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[2] = {0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("glHint (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_target,&__pyx_mstate_global->__pyx_n_u_mode,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(0, 1082, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 1082, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 1082, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "glHint", 0) < (0)) __PYX_ERR(0, 1082, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 2; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("glHint", 1, 2, 2, i); __PYX_ERR(0, 1082, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 2)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 1082, __pyx_L3_error)
      values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 1082, __pyx_L3_error)
    }
    __pyx_v_target = __Pyx_PyLong_As_GLenum(values[0]); if (unlikely((__pyx_v_target == ((GLenum)-1)) && PyErr_Occurred())) __PYX_ERR(0, 1082, __pyx_L3_error)
    __pyx_v_mode = __Pyx_PyLong_As_GLenum(values[1]); if (unlikely((__pyx_v_mode == ((GLenum)-1)) && PyErr_Occurred())) __PYX_ERR(0, 1082, __pyx_L3_error)
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("glHint", 1, 2, 2, __pyx_nargs); __PYX_ERR(0, 1082, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("kivy.graphics.opengl.glHint", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4kivy_8graphics_6opengl_156glHint(__pyx_self, __pyx_v_target, __pyx_v_mode);

  /* function exit code */
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4kivy_8graphics_6opengl_156glHint(CYTHON_UNUSED PyObject *__pyx_self, GLenum __pyx_v_target, GLenum __pyx_v_mode) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("glHint", 0);

  /* "kivy/graphics/opengl.pyx":1086
 *     <http://www.khronos.org/opengles/sdk/docs/man/xhtml/glHint.xml>`_
 *     '''
 *     cgl.glHint(target, mode)             # <<<<<<<<<<<<<<
 * 
 * def glIsBuffer(GLuint buffer):
*/
  __pyx_v_4kivy_8graphics_3cgl_cgl->glHint(__pyx_v_target, __pyx_v_mode); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 1086, __pyx_L1_error)

  /* "kivy/graphics/opengl.pyx":1082
 *     #cgl.glGetVertexAttribPointerv(index, pname, pointer)
 * 
 * def glHint(GLenum target, GLenum mode):             # <<<<<<<<<<<<<<
 *     '''See: `glHint() on Kronos website
 *     <http://www.khronos.org/opengles/sdk/docs/man/xhtml/glHint.xml>`_
*/

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

/* "kivy/graphics/opengl.pyx":1088
 *     cgl.glHint(target, mode)
 * 
 * def glIsBuffer(GLuint buffer):             # <<<<<<<<<<<<<<
 *     '''See: `glIsBuffer() on Kronos website
 *     <http://www.khronos.org/opengles/sdk/docs/man/xhtml/glIsBuffer.xml>`_
*/

/* Python wrapper */
static PyObject *__pyx_pw_4kivy_8graphics_6opengl_159glIsBuffer(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_4kivy_8graphics_6opengl_158glIsBuffer, "glIsBuffer(GLuint buffer)\n\nSee: `glIsBuffer() on Kronos website\n<http://www.khronos.org/opengles/sdk/docs/man/xhtml/glIsBuffer.xml>`_");
static PyMethodDef __pyx_mdef_4kivy_8graphics_6opengl_159glIsBuffer = {"glIsBuffer", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4kivy_8graphics_6opengl_159glIsBuffer, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4kivy_8graphics_6opengl_158glIsBuffer};
static PyObject *__pyx_pw_4kivy_8graphics_6opengl_159glIsBuffer(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  GLuint __pyx_v_buffer;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[1] = {0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("glIsBuffer (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_buffer,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(0, 1088, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 1088, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "glIsBuffer", 0) < (0)) __PYX_ERR(0, 1088, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("glIsBuffer", 1, 1, 1, i); __PYX_ERR(0, 1088, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 1)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 1088, __pyx_L3_error)
    }
    __pyx_v_buffer = __Pyx_PyLong_As_GLuint(values[0]); if (unlikely((__pyx_v_buffer == ((GLuint)-1)) && PyErr_Occurred())) __PYX_ERR(0, 1088, __pyx_L3_error)
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("glIsBuffer", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 1088, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("kivy.graphics.opengl.glIsBuffer", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4kivy_8graphics_6opengl_158glIsBuffer(__pyx_self, __pyx_v_buffer);

  /* function exit code */
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4kivy_8graphics_6opengl_158glIsBuffer(CYTHON_UNUSED PyObject *__pyx_self, GLuint __pyx_v_buffer) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  GLboolean __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("glIsBuffer", 0);

  /* "kivy/graphics/opengl.pyx":1092
 *     <http://www.khronos.org/opengles/sdk/docs/man/xhtml/glIsBuffer.xml>`_
 *     '''
 *     return cgl.glIsBuffer(buffer)             # <<<<<<<<<<<<<<
 * 
 * def glIsEnabled(GLenum cap):
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __pyx_v_4kivy_8graphics_3cgl_cgl->glIsBuffer(__pyx_v_buffer); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 1092, __pyx_L1_error)
  __pyx_t_2 = __Pyx_PyLong_From_GLboolean(__pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1092, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_r = __pyx_t_2;
  __pyx_t_2 = 0;
  goto __pyx_L0;

  /* "kivy/graphics/opengl.pyx":1088
 *     cgl.glHint(target, mode)
 * 
 * def glIsBuffer(GLuint buffer):             # <<<<<<<<<<<<<<
 *     '''See: `glIsBuffer() on Kronos website
 *     <http://www.khronos.org/opengles/sdk/docs/man/xhtml/glIsBuffer.xml>`_
*/

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

/* "kivy/graphics/opengl.pyx":1094
 *     return cgl.glIsBuffer(buffer)
 * 
 * def glIsEnabled(GLenum cap):             # <<<<<<<<<<<<<<
 *     '''See: `glIsEnabled() on Kronos website
 *     <http://www.khronos.org/opengles/sdk/docs/man/xhtml/glIsEnabled.xml>`_
*/

/* Python wrapper */
static PyObject *__pyx_pw_4kivy_8graphics_6opengl_161glIsEnabled(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_4kivy_8graphics_6opengl_160glIsEnabled, "glIsEnabled(GLenum cap)\n\nSee: `glIsEnabled() on Kronos website\n<http://www.khronos.org/opengles/sdk/docs/man/xhtml/glIsEnabled.xml>`_");
static PyMethodDef __pyx_mdef_4kivy_8graphics_6opengl_161glIsEnabled = {"glIsEnabled", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4kivy_8graphics_6opengl_161glIsEnabled, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4kivy_8graphics_6opengl_160glIsEnabled};
static PyObject *__pyx_pw_4kivy_8graphics_6opengl_161glIsEnabled(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  GLenum __pyx_v_cap;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[1] = {0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("glIsEnabled (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_cap,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(0, 1094, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 1094, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "glIsEnabled", 0) < (0)) __PYX_ERR(0, 1094, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("glIsEnabled", 1, 1, 1, i); __PYX_ERR(0, 1094, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 1)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 1094, __pyx_L3_error)
    }
    __pyx_v_cap = __Pyx_PyLong_As_GLenum(values[0]); if (unlikely((__pyx_v_cap == ((GLenum)-1)) && PyErr_Occurred())) __PYX_ERR(0, 1094, __pyx_L3_error)
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("glIsEnabled", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 1094, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("kivy.graphics.opengl.glIsEnabled", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4kivy_8graphics_6opengl_160glIsEnabled(__pyx_self, __pyx_v_cap);

  /* function exit code */
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4kivy_8graphics_6opengl_160glIsEnabled(CYTHON_UNUSED PyObject *__pyx_self, GLenum __pyx_v_cap) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  GLboolean __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("glIsEnabled", 0);

  /* "kivy/graphics/opengl.pyx":1098
 *     <http://www.khronos.org/opengles/sdk/docs/man/xhtml/glIsEnabled.xml>`_
 *     '''
 *     return cgl.glIsEnabled(cap)             # <<<<<<<<<<<<<<
 * 
 * def glIsFramebuffer(GLuint framebuffer):
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __pyx_v_4kivy_8graphics_3cgl_cgl->glIsEnabled(__pyx_v_cap); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 1098, __pyx_L1_error)
  __pyx_t_2 = __Pyx_PyLong_From_GLboolean(__pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1098, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_r = __pyx_t_2;
  __pyx_t_2 = 0;
  goto __pyx_L0;

  /* "kivy/graphics/opengl.pyx":1094
 *     return cgl.glIsBuffer(buffer)
 * 
 * def glIsEnabled(GLenum cap):             # <<<<<<<<<<<<<<
 *     '''See: `glIsEnabled() on Kronos website
 *     <http://www.khronos.org/opengles/sdk/docs/man/xhtml/glIsEnabled.xml>`_
*/

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

/* "kivy/graphics/opengl.pyx":1100
 *     return cgl.glIsEnabled(cap)
 * 
 * def glIsFramebuffer(GLuint framebuffer):             # <<<<<<<<<<<<<<
 *     '''See: `glIsFramebuffer() on Kronos website
 *     <http://www.khronos.org/opengles/sdk/docs/man/xhtml/glIsFramebuffer.xml>`_
*/

/* Python wrapper */
static PyObject *__pyx_pw_4kivy_8graphics_6opengl_163glIsFramebuffer(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_4kivy_8graphics_6opengl_162glIsFramebuffer, "glIsFramebuffer(GLuint framebuffer)\n\nSee: `glIsFramebuffer() on Kronos website\n<http://www.khronos.org/opengles/sdk/docs/man/xhtml/glIsFramebuffer.xml>`_");
static PyMethodDef __pyx_mdef_4kivy_8graphics_6opengl_163glIsFramebuffer = {"glIsFramebuffer", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4kivy_8graphics_6opengl_163glIsFramebuffer, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4kivy_8graphics_6opengl_162glIsFramebuffer};
static PyObject *__pyx_pw_4kivy_8graphics_6opengl_163glIsFramebuffer(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  GLuint __pyx_v_framebuffer;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[1] = {0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("glIsFramebuffer (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_framebuffer,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(0, 1100, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 1100, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "glIsFramebuffer", 0) < (0)) __PYX_ERR(0, 1100, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("glIsFramebuffer", 1, 1, 1, i); __PYX_ERR(0, 1100, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 1)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 1100, __pyx_L3_error)
    }
    __pyx_v_framebuffer = __Pyx_PyLong_As_GLuint(values[0]); if (unlikely((__pyx_v_framebuffer == ((GLuint)-1)) && PyErr_Occurred())) __PYX_ERR(0, 1100, __pyx_L3_error)
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("glIsFramebuffer", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 1100, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("kivy.graphics.opengl.glIsFramebuffer", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4kivy_8graphics_6opengl_162glIsFramebuffer(__pyx_self, __pyx_v_framebuffer);

  /* function exit code */
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4kivy_8graphics_6opengl_162glIsFramebuffer(CYTHON_UNUSED PyObject *__pyx_self, GLuint __pyx_v_framebuffer) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  GLboolean __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("glIsFramebuffer", 0);

  /* "kivy/graphics/opengl.pyx":1104
 *     <http://www.khronos.org/opengles/sdk/docs/man/xhtml/glIsFramebuffer.xml>`_
 *     '''
 *     return cgl.glIsFramebuffer(framebuffer)             # <<<<<<<<<<<<<<
 * 
 * def glIsProgram(GLuint program):
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __pyx_v_4kivy_8graphics_3cgl_cgl->glIsFramebuffer(__pyx_v_framebuffer); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 1104, __pyx_L1_error)
  __pyx_t_2 = __Pyx_PyLong_From_GLboolean(__pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1104, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_r = __pyx_t_2;
  __pyx_t_2 = 0;
  goto __pyx_L0;

  /* "kivy/graphics/opengl.pyx":1100
 *     return cgl.glIsEnabled(cap)
 * 
 * def glIsFramebuffer(GLuint framebuffer):             # <<<<<<<<<<<<<<
 *     '''See: `glIsFramebuffer() on Kronos website
 *     <http://www.khronos.org/opengles/sdk/docs/man/xhtml/glIsFramebuffer.xml>`_
*/

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

/* "kivy/graphics/opengl.pyx":1106
 *     return cgl.glIsFramebuffer(framebuffer)
 * 
 * def glIsProgram(GLuint program):             # <<<<<<<<<<<<<<
 *     '''See: `glIsProgram() on Kronos website
 *     <http://www.khronos.org/opengles/sdk/docs/man/xhtml/glIsProgram.xml>`_
*/

/* Python wrapper */
static PyObject *__pyx_pw_4kivy_8graphics_6opengl_165glIsProgram(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_4kivy_8graphics_6opengl_164glIsProgram, "glIsProgram(GLuint program)\n\nSee: `glIsProgram() on Kronos website\n<http://www.khronos.org/opengles/sdk/docs/man/xhtml/glIsProgram.xml>`_");
static PyMethodDef __pyx_mdef_4kivy_8graphics_6opengl_165glIsProgram = {"glIsProgram", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4kivy_8graphics_6opengl_165glIsProgram, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4kivy_8graphics_6opengl_164glIsProgram};
static PyObject *__pyx_pw_4kivy_8graphics_6opengl_165glIsProgram(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  GLuint __pyx_v_program;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[1] = {0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("glIsProgram (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_program,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(0, 1106, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 1106, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "glIsProgram", 0) < (0)) __PYX_ERR(0, 1106, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("glIsProgram", 1, 1, 1, i); __PYX_ERR(0, 1106, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 1)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 1106, __pyx_L3_error)
    }
    __pyx_v_program = __Pyx_PyLong_As_GLuint(values[0]); if (unlikely((__pyx_v_program == ((GLuint)-1)) && PyErr_Occurred())) __PYX_ERR(0, 1106, __pyx_L3_error)
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("glIsProgram", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 1106, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("kivy.graphics.opengl.glIsProgram", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4kivy_8graphics_6opengl_164glIsProgram(__pyx_self, __pyx_v_program);

  /* function exit code */
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4kivy_8graphics_6opengl_164glIsProgram(CYTHON_UNUSED PyObject *__pyx_self, GLuint __pyx_v_program) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  GLboolean __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("glIsProgram", 0);

  /* "kivy/graphics/opengl.pyx":1110
 *     <http://www.khronos.org/opengles/sdk/docs/man/xhtml/glIsProgram.xml>`_
 *     '''
 *     return cgl.glIsProgram(program)             # <<<<<<<<<<<<<<
 * 
 * def glIsRenderbuffer(GLuint renderbuffer):
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __pyx_v_4kivy_8graphics_3cgl_cgl->glIsProgram(__pyx_v_program); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 1110, __pyx_L1_error)
  __pyx_t_2 = __Pyx_PyLong_From_GLboolean(__pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1110, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_r = __pyx_t_2;
  __pyx_t_2 = 0;
  goto __pyx_L0;

  /* "kivy/graphics/opengl.pyx":1106
 *     return cgl.glIsFramebuffer(framebuffer)
 * 
 * def glIsProgram(GLuint program):             # <<<<<<<<<<<<<<
 *     '''See: `glIsProgram() on Kronos website
 *     <http://www.khronos.org/opengles/sdk/docs/man/xhtml/glIsProgram.xml>`_
*/

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

/* "kivy/graphics/opengl.pyx":1112
 *     return cgl.glIsProgram(program)
 * 
 * def glIsRenderbuffer(GLuint renderbuffer):             # <<<<<<<<<<<<<<
 *     '''See: `glIsRenderbuffer() on Kronos website
 *     <http://www.khronos.org/opengles/sdk/docs/man/xhtml/glIsRenderbuffer.xml>`_
*/

/* Python wrapper */
static PyObject *__pyx_pw_4kivy_8graphics_6opengl_167glIsRenderbuffer(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_4kivy_8graphics_6opengl_166glIsRenderbuffer, "glIsRenderbuffer(GLuint renderbuffer)\n\nSee: `glIsRenderbuffer() on Kronos website\n<http://www.khronos.org/opengles/sdk/docs/man/xhtml/glIsRenderbuffer.xml>`_");
static PyMethodDef __pyx_mdef_4kivy_8graphics_6opengl_167glIsRenderbuffer = {"glIsRenderbuffer", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4kivy_8graphics_6opengl_167glIsRenderbuffer, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4kivy_8graphics_6opengl_166glIsRenderbuffer};
static PyObject *__pyx_pw_4kivy_8graphics_6opengl_167glIsRenderbuffer(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  GLuint __pyx_v_renderbuffer;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[1] = {0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("glIsRenderbuffer (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_renderbuffer,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(0, 1112, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 1112, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "glIsRenderbuffer", 0) < (0)) __PYX_ERR(0, 1112, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("glIsRenderbuffer", 1, 1, 1, i); __PYX_ERR(0, 1112, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 1)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 1112, __pyx_L3_error)
    }
    __pyx_v_renderbuffer = __Pyx_PyLong_As_GLuint(values[0]); if (unlikely((__pyx_v_renderbuffer == ((GLuint)-1)) && PyErr_Occurred())) __PYX_ERR(0, 1112, __pyx_L3_error)
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("glIsRenderbuffer", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 1112, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("kivy.graphics.opengl.glIsRenderbuffer", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4kivy_8graphics_6opengl_166glIsRenderbuffer(__pyx_self, __pyx_v_renderbuffer);

  /* function exit code */
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4kivy_8graphics_6opengl_166glIsRenderbuffer(CYTHON_UNUSED PyObject *__pyx_self, GLuint __pyx_v_renderbuffer) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  GLboolean __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("glIsRenderbuffer", 0);

  /* "kivy/graphics/opengl.pyx":1116
 *     <http://www.khronos.org/opengles/sdk/docs/man/xhtml/glIsRenderbuffer.xml>`_
 *     '''
 *     return cgl.glIsRenderbuffer(renderbuffer)             # <<<<<<<<<<<<<<
 * 
 * def glIsShader(GLuint shader):
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __pyx_v_4kivy_8graphics_3cgl_cgl->glIsRenderbuffer(__pyx_v_renderbuffer); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 1116, __pyx_L1_error)
  __pyx_t_2 = __Pyx_PyLong_From_GLboolean(__pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1116, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_r = __pyx_t_2;
  __pyx_t_2 = 0;
  goto __pyx_L0;

  /* "kivy/graphics/opengl.pyx":1112
 *     return cgl.glIsProgram(program)
 * 
 * def glIsRenderbuffer(GLuint renderbuffer):             # <<<<<<<<<<<<<<
 *     '''See: `glIsRenderbuffer() on Kronos website
 *     <http://www.khronos.org/opengles/sdk/docs/man/xhtml/glIsRenderbuffer.xml>`_
*/

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

/* "kivy/graphics/opengl.pyx":1118
 *     return cgl.glIsRenderbuffer(renderbuffer)
 * 
 * def glIsShader(GLuint shader):             # <<<<<<<<<<<<<<
 *     '''See: `glIsShader() on Kronos website
 *     <http://www.khronos.org/opengles/sdk/docs/man/xhtml/glIsShader.xml>`_
*/

/* Python wrapper */
static PyObject *__pyx_pw_4kivy_8graphics_6opengl_169glIsShader(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_4kivy_8graphics_6opengl_168glIsShader, "glIsShader(GLuint shader)\n\nSee: `glIsShader() on Kronos website\n<http://www.khronos.org/opengles/sdk/docs/man/xhtml/glIsShader.xml>`_");
static PyMethodDef __pyx_mdef_4kivy_8graphics_6opengl_169glIsShader = {"glIsShader", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4kivy_8graphics_6opengl_169glIsShader, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4kivy_8graphics_6opengl_168glIsShader};
static PyObject *__pyx_pw_4kivy_8graphics_6opengl_169glIsShader(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  GLuint __pyx_v_shader;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[1] = {0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("glIsShader (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_shader,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(0, 1118, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 1118, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "glIsShader", 0) < (0)) __PYX_ERR(0, 1118, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("glIsShader", 1, 1, 1, i); __PYX_ERR(0, 1118, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 1)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 1118, __pyx_L3_error)
    }
    __pyx_v_shader = __Pyx_PyLong_As_GLuint(values[0]); if (unlikely((__pyx_v_shader == ((GLuint)-1)) && PyErr_Occurred())) __PYX_ERR(0, 1118, __pyx_L3_error)
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("glIsShader", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 1118, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("kivy.graphics.opengl.glIsShader", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4kivy_8graphics_6opengl_168glIsShader(__pyx_self, __pyx_v_shader);

  /* function exit code */
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4kivy_8graphics_6opengl_168glIsShader(CYTHON_UNUSED PyObject *__pyx_self, GLuint __pyx_v_shader) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  GLboolean __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("glIsShader", 0);

  /* "kivy/graphics/opengl.pyx":1122
 *     <http://www.khronos.org/opengles/sdk/docs/man/xhtml/glIsShader.xml>`_
 *     '''
 *     return cgl.glIsShader(shader)             # <<<<<<<<<<<<<<
 * 
 * def glIsTexture(GLuint texture):
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __pyx_v_4kivy_8graphics_3cgl_cgl->glIsShader(__pyx_v_shader); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 1122, __pyx_L1_error)
  __pyx_t_2 = __Pyx_PyLong_From_GLboolean(__pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1122, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_r = __pyx_t_2;
  __pyx_t_2 = 0;
  goto __pyx_L0;

  /* "kivy/graphics/opengl.pyx":1118
 *     return cgl.glIsRenderbuffer(renderbuffer)
 * 
 * def glIsShader(GLuint shader):             # <<<<<<<<<<<<<<
 *     '''See: `glIsShader() on Kronos website
 *     <http://www.khronos.org/opengles/sdk/docs/man/xhtml/glIsShader.xml>`_
*/

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

/* "kivy/graphics/opengl.pyx":1124
 *     return cgl.glIsShader(shader)
 * 
 * def glIsTexture(GLuint texture):             # <<<<<<<<<<<<<<
 *     '''See: `glIsTexture() on Kronos website
 *     <http://www.khronos.org/opengles/sdk/docs/man/xhtml/glIsTexture.xml>`_
*/

/* Python wrapper */
static PyObject *__pyx_pw_4kivy_8graphics_6opengl_171glIsTexture(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_4kivy_8graphics_6opengl_170glIsTexture, "glIsTexture(GLuint texture)\n\nSee: `glIsTexture() on Kronos website\n<http://www.khronos.org/opengles/sdk/docs/man/xhtml/glIsTexture.xml>`_");
static PyMethodDef __pyx_mdef_4kivy_8graphics_6opengl_171glIsTexture = {"glIsTexture", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4kivy_8graphics_6opengl_171glIsTexture, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4kivy_8graphics_6opengl_170glIsTexture};
static PyObject *__pyx_pw_4kivy_8graphics_6opengl_171glIsTexture(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  GLuint __pyx_v_texture;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[1] = {0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("glIsTexture (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_texture,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(0, 1124, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 1124, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "glIsTexture", 0) < (0)) __PYX_ERR(0, 1124, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("glIsTexture", 1, 1, 1, i); __PYX_ERR(0, 1124, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 1)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 1124, __pyx_L3_error)
    }
    __pyx_v_texture = __Pyx_PyLong_As_GLuint(values[0]); if (unlikely((__pyx_v_texture == ((GLuint)-1)) && PyErr_Occurred())) __PYX_ERR(0, 1124, __pyx_L3_error)
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("glIsTexture", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 1124, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("kivy.graphics.opengl.glIsTexture", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4kivy_8graphics_6opengl_170glIsTexture(__pyx_self, __pyx_v_texture);

  /* function exit code */
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4kivy_8graphics_6opengl_170glIsTexture(CYTHON_UNUSED PyObject *__pyx_self, GLuint __pyx_v_texture) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  GLboolean __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("glIsTexture", 0);

  /* "kivy/graphics/opengl.pyx":1128
 *     <http://www.khronos.org/opengles/sdk/docs/man/xhtml/glIsTexture.xml>`_
 *     '''
 *     return cgl.glIsTexture(texture)             # <<<<<<<<<<<<<<
 * 
 * def glLineWidth(GLfloat width):
*/
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __pyx_v_4kivy_8graphics_3cgl_cgl->glIsTexture(__pyx_v_texture); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 1128, __pyx_L1_error)
  __pyx_t_2 = __Pyx_PyLong_From_GLboolean(__pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1128, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_r = __pyx_t_2;
  __pyx_t_2 = 0;
  goto __pyx_L0;

  /* "kivy/graphics/opengl.pyx":1124
 *     return cgl.glIsShader(shader)
 * 
 * def glIsTexture(GLuint texture):             # <<<<<<<<<<<<<<
 *     '''See: `glIsTexture() on Kronos website
 *     <http://www.khronos.org/opengles/sdk/docs/man/xhtml/glIsTexture.xml>`_
*/

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

/* "kivy/graphics/opengl.pyx":1130
 *     return cgl.glIsTexture(texture)
 * 
 * def glLineWidth(GLfloat width):             # <<<<<<<<<<<<<<
 *     '''See: `glLineWidth() on Kronos website
 *     <http://www.khronos.org/opengles/sdk/docs/man/xhtml/glLineWidth.xml>`_
*/

/* Python wrapper */
static PyObject *__pyx_pw_4kivy_8graphics_6opengl_173glLineWidth(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_4kivy_8graphics_6opengl_172glLineWidth, "glLineWidth(GLfloat width)\n\nSee: `glLineWidth() on Kronos website\n<http://www.khronos.org/opengles/sdk/docs/man/xhtml/glLineWidth.xml>`_");
static PyMethodDef __pyx_mdef_4kivy_8graphics_6opengl_173glLineWidth = {"glLineWidth", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4kivy_8graphics_6opengl_173glLineWidth, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4kivy_8graphics_6opengl_172glLineWidth};
static PyObject *__pyx_pw_4kivy_8graphics_6opengl_173glLineWidth(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  GLfloat __pyx_v_width;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[1] = {0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("glLineWidth (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_width,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(0, 1130, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 1130, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "glLineWidth", 0) < (0)) __PYX_ERR(0, 1130, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("glLineWidth", 1, 1, 1, i); __PYX_ERR(0, 1130, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 1)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 1130, __pyx_L3_error)
    }
    __pyx_v_width = __Pyx_PyFloat_AsFloat(values[0]); if (unlikely((__pyx_v_width == ((GLfloat)-1)) && PyErr_Occurred())) __PYX_ERR(0, 1130, __pyx_L3_error)
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("glLineWidth", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 1130, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("kivy.graphics.opengl.glLineWidth", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4kivy_8graphics_6opengl_172glLineWidth(__pyx_self, __pyx_v_width);

  /* function exit code */
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4kivy_8graphics_6opengl_172glLineWidth(CYTHON_UNUSED PyObject *__pyx_self, GLfloat __pyx_v_width) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("glLineWidth", 0);

  /* "kivy/graphics/opengl.pyx":1134
 *     <http://www.khronos.org/opengles/sdk/docs/man/xhtml/glLineWidth.xml>`_
 *     '''
 *     cgl.glLineWidth(width)             # <<<<<<<<<<<<<<
 * 
 * def glLinkProgram(GLuint program):
*/
  __pyx_v_4kivy_8graphics_3cgl_cgl->glLineWidth(__pyx_v_width); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 1134, __pyx_L1_error)

  /* "kivy/graphics/opengl.pyx":1130
 *     return cgl.glIsTexture(texture)
 * 
 * def glLineWidth(GLfloat width):             # <<<<<<<<<<<<<<
 *     '''See: `glLineWidth() on Kronos website
 *     <http://www.khronos.org/opengles/sdk/docs/man/xhtml/glLineWidth.xml>`_
*/

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

/* "kivy/graphics/opengl.pyx":1136
 *     cgl.glLineWidth(width)
 * 
 * def glLinkProgram(GLuint program):             # <<<<<<<<<<<<<<
 *     '''See: `glLinkProgram() on Kronos website
 *     <http://www.khronos.org/opengles/sdk/docs/man/xhtml/glLinkProgram.xml>`_
*/

/* Python wrapper */
static PyObject *__pyx_pw_4kivy_8graphics_6opengl_175glLinkProgram(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_4kivy_8graphics_6opengl_174glLinkProgram, "glLinkProgram(GLuint program)\n\nSee: `glLinkProgram() on Kronos website\n<http://www.khronos.org/opengles/sdk/docs/man/xhtml/glLinkProgram.xml>`_");
static PyMethodDef __pyx_mdef_4kivy_8graphics_6opengl_175glLinkProgram = {"glLinkProgram", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4kivy_8graphics_6opengl_175glLinkProgram, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4kivy_8graphics_6opengl_174glLinkProgram};
static PyObject *__pyx_pw_4kivy_8graphics_6opengl_175glLinkProgram(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  GLuint __pyx_v_program;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[1] = {0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("glLinkProgram (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_program,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(0, 1136, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 1136, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "glLinkProgram", 0) < (0)) __PYX_ERR(0, 1136, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("glLinkProgram", 1, 1, 1, i); __PYX_ERR(0, 1136, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 1)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 1136, __pyx_L3_error)
    }
    __pyx_v_program = __Pyx_PyLong_As_GLuint(values[0]); if (unlikely((__pyx_v_program == ((GLuint)-1)) && PyErr_Occurred())) __PYX_ERR(0, 1136, __pyx_L3_error)
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("glLinkProgram", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 1136, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("kivy.graphics.opengl.glLinkProgram", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4kivy_8graphics_6opengl_174glLinkProgram(__pyx_self, __pyx_v_program);

  /* function exit code */
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4kivy_8graphics_6opengl_174glLinkProgram(CYTHON_UNUSED PyObject *__pyx_self, GLuint __pyx_v_program) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("glLinkProgram", 0);

  /* "kivy/graphics/opengl.pyx":1140
 *     <http://www.khronos.org/opengles/sdk/docs/man/xhtml/glLinkProgram.xml>`_
 *     '''
 *     cgl.glLinkProgram(program)             # <<<<<<<<<<<<<<
 * 
 * def glPixelStorei(GLenum pname, GLint param):
*/
  __pyx_v_4kivy_8graphics_3cgl_cgl->glLinkProgram(__pyx_v_program); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 1140, __pyx_L1_error)

  /* "kivy/graphics/opengl.pyx":1136
 *     cgl.glLineWidth(width)
 * 
 * def glLinkProgram(GLuint program):             # <<<<<<<<<<<<<<
 *     '''See: `glLinkProgram() on Kronos website
 *     <http://www.khronos.org/opengles/sdk/docs/man/xhtml/glLinkProgram.xml>`_
*/

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

/* "kivy/graphics/opengl.pyx":1142
 *     cgl.glLinkProgram(program)
 * 
 * def glPixelStorei(GLenum pname, GLint param):             # <<<<<<<<<<<<<<
 *     '''See: `glPixelStorei() on Kronos website
 *     <http://www.khronos.org/opengles/sdk/docs/man/xhtml/glPixelStorei.xml>`_
*/

/* Python wrapper */
static PyObject *__pyx_pw_4kivy_8graphics_6opengl_177glPixelStorei(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_4kivy_8graphics_6opengl_176glPixelStorei, "glPixelStorei(GLenum pname, GLint param)\n\nSee: `glPixelStorei() on Kronos website\n<http://www.khronos.org/opengles/sdk/docs/man/xhtml/glPixelStorei.xml>`_");
static PyMethodDef __pyx_mdef_4kivy_8graphics_6opengl_177glPixelStorei = {"glPixelStorei", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4kivy_8graphics_6opengl_177glPixelStorei, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4kivy_8graphics_6opengl_176glPixelStorei};
static PyObject *__pyx_pw_4kivy_8graphics_6opengl_177glPixelStorei(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  GLenum __pyx_v_pname;
  GLint __pyx_v_param;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[2] = {0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("glPixelStorei (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_pname,&__pyx_mstate_global->__pyx_n_u_param,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(0, 1142, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 1142, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 1142, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "glPixelStorei", 0) < (0)) __PYX_ERR(0, 1142, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 2; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("glPixelStorei", 1, 2, 2, i); __PYX_ERR(0, 1142, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 2)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 1142, __pyx_L3_error)
      values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 1142, __pyx_L3_error)
    }
    __pyx_v_pname = __Pyx_PyLong_As_GLenum(values[0]); if (unlikely((__pyx_v_pname == ((GLenum)-1)) && PyErr_Occurred())) __PYX_ERR(0, 1142, __pyx_L3_error)
    __pyx_v_param = __Pyx_PyLong_As_GLint(values[1]); if (unlikely((__pyx_v_param == ((GLint)-1)) && PyErr_Occurred())) __PYX_ERR(0, 1142, __pyx_L3_error)
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("glPixelStorei", 1, 2, 2, __pyx_nargs); __PYX_ERR(0, 1142, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("kivy.graphics.opengl.glPixelStorei", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4kivy_8graphics_6opengl_176glPixelStorei(__pyx_self, __pyx_v_pname, __pyx_v_param);

  /* function exit code */
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4kivy_8graphics_6opengl_176glPixelStorei(CYTHON_UNUSED PyObject *__pyx_self, GLenum __pyx_v_pname, GLint __pyx_v_param) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("glPixelStorei", 0);

  /* "kivy/graphics/opengl.pyx":1146
 *     <http://www.khronos.org/opengles/sdk/docs/man/xhtml/glPixelStorei.xml>`_
 *     '''
 *     cgl.glPixelStorei(pname, param)             # <<<<<<<<<<<<<<
 * 
 * def glPolygonOffset(GLfloat factor, GLfloat units):
*/
  __pyx_v_4kivy_8graphics_3cgl_cgl->glPixelStorei(__pyx_v_pname, __pyx_v_param); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 1146, __pyx_L1_error)

  /* "kivy/graphics/opengl.pyx":1142
 *     cgl.glLinkProgram(program)
 * 
 * def glPixelStorei(GLenum pname, GLint param):             # <<<<<<<<<<<<<<
 *     '''See: `glPixelStorei() on Kronos website
 *     <http://www.khronos.org/opengles/sdk/docs/man/xhtml/glPixelStorei.xml>`_
*/

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

/* "kivy/graphics/opengl.pyx":1148
 *     cgl.glPixelStorei(pname, param)
 * 
 * def glPolygonOffset(GLfloat factor, GLfloat units):             # <<<<<<<<<<<<<<
 *     '''See: `glPolygonOffset() on Kronos website
 *     <http://www.khronos.org/opengles/sdk/docs/man/xhtml/glPolygonOffset.xml>`_
*/

/* Python wrapper */
static PyObject *__pyx_pw_4kivy_8graphics_6opengl_179glPolygonOffset(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_4kivy_8graphics_6opengl_178glPolygonOffset, "glPolygonOffset(GLfloat factor, GLfloat units)\n\nSee: `glPolygonOffset() on Kronos website\n<http://www.khronos.org/opengles/sdk/docs/man/xhtml/glPolygonOffset.xml>`_");
static PyMethodDef __pyx_mdef_4kivy_8graphics_6opengl_179glPolygonOffset = {"glPolygonOffset", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4kivy_8graphics_6opengl_179glPolygonOffset, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4kivy_8graphics_6opengl_178glPolygonOffset};
static PyObject *__pyx_pw_4kivy_8graphics_6opengl_179glPolygonOffset(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  GLfloat __pyx_v_factor;
  GLfloat __pyx_v_units;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[2] = {0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("glPolygonOffset (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_factor,&__pyx_mstate_global->__pyx_n_u_units,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(0, 1148, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 1148, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 1148, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "glPolygonOffset", 0) < (0)) __PYX_ERR(0, 1148, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 2; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("glPolygonOffset", 1, 2, 2, i); __PYX_ERR(0, 1148, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 2)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 1148, __pyx_L3_error)
      values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 1148, __pyx_L3_error)
    }
    __pyx_v_factor = __Pyx_PyFloat_AsFloat(values[0]); if (unlikely((__pyx_v_factor == ((GLfloat)-1)) && PyErr_Occurred())) __PYX_ERR(0, 1148, __pyx_L3_error)
    __pyx_v_units = __Pyx_PyFloat_AsFloat(values[1]); if (unlikely((__pyx_v_units == ((GLfloat)-1)) && PyErr_Occurred())) __PYX_ERR(0, 1148, __pyx_L3_error)
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("glPolygonOffset", 1, 2, 2, __pyx_nargs); __PYX_ERR(0, 1148, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("kivy.graphics.opengl.glPolygonOffset", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4kivy_8graphics_6opengl_178glPolygonOffset(__pyx_self, __pyx_v_factor, __pyx_v_units);

  /* function exit code */
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4kivy_8graphics_6opengl_178glPolygonOffset(CYTHON_UNUSED PyObject *__pyx_self, GLfloat __pyx_v_factor, GLfloat __pyx_v_units) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("glPolygonOffset", 0);

  /* "kivy/graphics/opengl.pyx":1152
 *     <http://www.khronos.org/opengles/sdk/docs/man/xhtml/glPolygonOffset.xml>`_
 *     '''
 *     cgl.glPolygonOffset(factor, units)             # <<<<<<<<<<<<<<
 * 
 * def glReadPixels(GLint x, GLint y, GLsizei width, GLsizei height, GLenum format,
*/
  __pyx_v_4kivy_8graphics_3cgl_cgl->glPolygonOffset(__pyx_v_factor, __pyx_v_units); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 1152, __pyx_L1_error)

  /* "kivy/graphics/opengl.pyx":1148
 *     cgl.glPixelStorei(pname, param)
 * 
 * def glPolygonOffset(GLfloat factor, GLfloat units):             # <<<<<<<<<<<<<<
 *     '''See: `glPolygonOffset() on Kronos website
 *     <http://www.khronos.org/opengles/sdk/docs/man/xhtml/glPolygonOffset.xml>`_
*/

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

/* "kivy/graphics/opengl.pyx":1154
 *     cgl.glPolygonOffset(factor, units)
 * 
 * def glReadPixels(GLint x, GLint y, GLsizei width, GLsizei height, GLenum format,             # <<<<<<<<<<<<<<
 *                  GLenum type): #, GLvoid* pixels):
 *     '''See: `glReadPixels() on Kronos website
*/

/* Python wrapper */
static PyObject *__pyx_pw_4kivy_8graphics_6opengl_181glReadPixels(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_4kivy_8graphics_6opengl_180glReadPixels, "glReadPixels(GLint x, GLint y, GLsizei width, GLsizei height, GLenum format, GLenum type)\n\nSee: `glReadPixels() on Kronos website\n<http://www.khronos.org/opengles/sdk/docs/man/xhtml/glReadPixels.xml>`_\n\nWe support only GL_RGB/GL_RGBA as a format and GL_UNSIGNED_BYTE as a\ntype.");
static PyMethodDef __pyx_mdef_4kivy_8graphics_6opengl_181glReadPixels = {"glReadPixels", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4kivy_8graphics_6opengl_181glReadPixels, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4kivy_8graphics_6opengl_180glReadPixels};
static PyObject *__pyx_pw_4kivy_8graphics_6opengl_181glReadPixels(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  GLint __pyx_v_x;
  GLint __pyx_v_y;
  GLsizei __pyx_v_width;
  GLsizei __pyx_v_height;
  GLenum __pyx_v_format;
  GLenum __pyx_v_type;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[6] = {0,0,0,0,0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("glReadPixels (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_x,&__pyx_mstate_global->__pyx_n_u_y,&__pyx_mstate_global->__pyx_n_u_width,&__pyx_mstate_global->__pyx_n_u_height,&__pyx_mstate_global->__pyx_n_u_format,&__pyx_mstate_global->__pyx_n_u_type,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(0, 1154, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  6:
        values[5] = __Pyx_ArgRef_FASTCALL(__pyx_args, 5);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[5])) __PYX_ERR(0, 1154, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  5:
        values[4] = __Pyx_ArgRef_FASTCALL(__pyx_args, 4);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[4])) __PYX_ERR(0, 1154, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  4:
        values[3] = __Pyx_ArgRef_FASTCALL(__pyx_args, 3);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[3])) __PYX_ERR(0, 1154, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  3:
        values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(0, 1154, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 1154, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 1154, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "glReadPixels", 0) < (0)) __PYX_ERR(0, 1154, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 6; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("glReadPixels", 1, 6, 6, i); __PYX_ERR(0, 1154, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 6)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 1154, __pyx_L3_error)
      values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 1154, __pyx_L3_error)
      values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(0, 1154, __pyx_L3_error)
      values[3] = __Pyx_ArgRef_FASTCALL(__pyx_args, 3);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[3])) __PYX_ERR(0, 1154, __pyx_L3_error)
      values[4] = __Pyx_ArgRef_FASTCALL(__pyx_args, 4);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[4])) __PYX_ERR(0, 1154, __pyx_L3_error)
      values[5] = __Pyx_ArgRef_FASTCALL(__pyx_args, 5);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[5])) __PYX_ERR(0, 1154, __pyx_L3_error)
    }
    __pyx_v_x = __Pyx_PyLong_As_GLint(values[0]); if (unlikely((__pyx_v_x == ((GLint)-1)) && PyErr_Occurred())) __PYX_ERR(0, 1154, __pyx_L3_error)
    __pyx_v_y = __Pyx_PyLong_As_GLint(values[1]); if (unlikely((__pyx_v_y == ((GLint)-1)) && PyErr_Occurred())) __PYX_ERR(0, 1154, __pyx_L3_error)
    __pyx_v_width = __Pyx_PyLong_As_GLsizei(values[2]); if (unlikely((__pyx_v_width == ((GLsizei)-1)) && PyErr_Occurred())) __PYX_ERR(0, 1154, __pyx_L3_error)
    __pyx_v_height = __Pyx_PyLong_As_GLsizei(values[3]); if (unlikely((__pyx_v_height == ((GLsizei)-1)) && PyErr_Occurred())) __PYX_ERR(0, 1154, __pyx_L3_error)
    __pyx_v_format = __Pyx_PyLong_As_GLenum(values[4]); if (unlikely((__pyx_v_format == ((GLenum)-1)) && PyErr_Occurred())) __PYX_ERR(0, 1154, __pyx_L3_error)
    __pyx_v_type = __Pyx_PyLong_As_GLenum(values[5]); if (unlikely((__pyx_v_type == ((GLenum)-1)) && PyErr_Occurred())) __PYX_ERR(0, 1155, __pyx_L3_error)
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("glReadPixels", 1, 6, 6, __pyx_nargs); __PYX_ERR(0, 1154, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("kivy.graphics.opengl.glReadPixels", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4kivy_8graphics_6opengl_180glReadPixels(__pyx_self, __pyx_v_x, __pyx_v_y, __pyx_v_width, __pyx_v_height, __pyx_v_format, __pyx_v_type);

  /* function exit code */
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4kivy_8graphics_6opengl_180glReadPixels(CYTHON_UNUSED PyObject *__pyx_self, GLint __pyx_v_x, GLint __pyx_v_y, GLsizei __pyx_v_width, GLsizei __pyx_v_height, GLenum __pyx_v_format, GLenum __pyx_v_type) {
  PyObject *__pyx_v_py_pixels = 0;
  long __pyx_v_size;
  char *__pyx_v_data;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  GLenum __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  int __pyx_t_6;
  size_t __pyx_t_7;
  int __pyx_t_8;
  int __pyx_t_9;
  char const *__pyx_t_10;
  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;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("glReadPixels", 0);

  /* "kivy/graphics/opengl.pyx":1162
 *     type.
 *     '''
 *     assert format in (GL_RGB, GL_RGBA)             # <<<<<<<<<<<<<<
 *     assert type == GL_UNSIGNED_BYTE
 * 
*/
  #ifndef CYTHON_WITHOUT_ASSERTIONS
  if (unlikely(__pyx_assertions_enabled())) {
    __pyx_t_1 = __pyx_v_format;
    __pyx_t_3 = __Pyx_PyLong_From_GLenum(__pyx_t_1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1162, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_GL_RGB); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1162, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __pyx_t_5 = PyObject_RichCompare(__pyx_t_3, __pyx_t_4, Py_EQ); __Pyx_XGOTREF(__pyx_t_5); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1162, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __pyx_t_6 = __Pyx_PyObject_IsTrue(__pyx_t_5); if (unlikely((__pyx_t_6 < 0))) __PYX_ERR(0, 1162, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    if (!__pyx_t_6) {
    } else {
      __pyx_t_2 = __pyx_t_6;
      goto __pyx_L3_bool_binop_done;
    }
    __pyx_t_5 = __Pyx_PyLong_From_GLenum(__pyx_t_1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1162, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_GL_RGBA); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1162, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __pyx_t_3 = PyObject_RichCompare(__pyx_t_5, __pyx_t_4, Py_EQ); __Pyx_XGOTREF(__pyx_t_3); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1162, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __pyx_t_6 = __Pyx_PyObject_IsTrue(__pyx_t_3); if (unlikely((__pyx_t_6 < 0))) __PYX_ERR(0, 1162, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __pyx_t_2 = __pyx_t_6;
    __pyx_L3_bool_binop_done:;
    __pyx_t_6 = __pyx_t_2;
    if (unlikely(!__pyx_t_6)) {
      __Pyx_Raise(((PyObject *)(((PyTypeObject*)PyExc_AssertionError))), 0, 0, 0);
      __PYX_ERR(0, 1162, __pyx_L1_error)
    }
  }
  #else
  if ((1)); else __PYX_ERR(0, 1162, __pyx_L1_error)
  #endif

  /* "kivy/graphics/opengl.pyx":1163
 *     '''
 *     assert format in (GL_RGB, GL_RGBA)
 *     assert type == GL_UNSIGNED_BYTE             # <<<<<<<<<<<<<<
 * 
 *     cdef object py_pixels = None
*/
  #ifndef CYTHON_WITHOUT_ASSERTIONS
  if (unlikely(__pyx_assertions_enabled())) {
    __pyx_t_3 = __Pyx_PyLong_From_GLenum(__pyx_v_type); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1163, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_GL_UNSIGNED_BYTE); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1163, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __pyx_t_5 = PyObject_RichCompare(__pyx_t_3, __pyx_t_4, Py_EQ); __Pyx_XGOTREF(__pyx_t_5); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1163, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __pyx_t_6 = __Pyx_PyObject_IsTrue(__pyx_t_5); if (unlikely((__pyx_t_6 < 0))) __PYX_ERR(0, 1163, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    if (unlikely(!__pyx_t_6)) {
      __Pyx_Raise(((PyObject *)(((PyTypeObject*)PyExc_AssertionError))), 0, 0, 0);
      __PYX_ERR(0, 1163, __pyx_L1_error)
    }
  }
  #else
  if ((1)); else __PYX_ERR(0, 1163, __pyx_L1_error)
  #endif

  /* "kivy/graphics/opengl.pyx":1165
 *     assert type == GL_UNSIGNED_BYTE
 * 
 *     cdef object py_pixels = None             # <<<<<<<<<<<<<<
 *     cdef long size
 *     cdef char *data
*/
  __Pyx_INCREF(Py_None);
  __pyx_v_py_pixels = Py_None;

  /* "kivy/graphics/opengl.pyx":1169
 *     cdef char *data
 * 
 *     size = width * height * sizeof(GLubyte)             # <<<<<<<<<<<<<<
 *     if format == GL_RGB:
 *         size *= 3
*/
  __pyx_v_size = ((__pyx_v_width * __pyx_v_height) * (sizeof(GLubyte)));

  /* "kivy/graphics/opengl.pyx":1170
 * 
 *     size = width * height * sizeof(GLubyte)
 *     if format == GL_RGB:             # <<<<<<<<<<<<<<
 *         size *= 3
 *     else:
*/
  __pyx_t_5 = __Pyx_PyLong_From_GLenum(__pyx_v_format); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1170, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_GL_RGB); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1170, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_3 = PyObject_RichCompare(__pyx_t_5, __pyx_t_4, Py_EQ); __Pyx_XGOTREF(__pyx_t_3); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1170, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __pyx_t_6 = __Pyx_PyObject_IsTrue(__pyx_t_3); if (unlikely((__pyx_t_6 < 0))) __PYX_ERR(0, 1170, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  if (__pyx_t_6) {

    /* "kivy/graphics/opengl.pyx":1171
 *     size = width * height * sizeof(GLubyte)
 *     if format == GL_RGB:
 *         size *= 3             # <<<<<<<<<<<<<<
 *     else:
 *         size *= 4
*/
    __pyx_v_size = (__pyx_v_size * 3);

    /* "kivy/graphics/opengl.pyx":1170
 * 
 *     size = width * height * sizeof(GLubyte)
 *     if format == GL_RGB:             # <<<<<<<<<<<<<<
 *         size *= 3
 *     else:
*/
    goto __pyx_L5;
  }

  /* "kivy/graphics/opengl.pyx":1173
 *         size *= 3
 *     else:
 *         size *= 4             # <<<<<<<<<<<<<<
 *     data = <char *>malloc(size)
 *     if data == NULL:
*/
  /*else*/ {
    __pyx_v_size = (__pyx_v_size * 4);
  }
  __pyx_L5:;

  /* "kivy/graphics/opengl.pyx":1174
 *     else:
 *         size *= 4
 *     data = <char *>malloc(size)             # <<<<<<<<<<<<<<
 *     if data == NULL:
 *         raise MemoryError('glReadPixels()')
*/
  __pyx_v_data = ((char *)malloc(__pyx_v_size));

  /* "kivy/graphics/opengl.pyx":1175
 *         size *= 4
 *     data = <char *>malloc(size)
 *     if data == NULL:             # <<<<<<<<<<<<<<
 *         raise MemoryError('glReadPixels()')
 * 
*/
  __pyx_t_6 = (__pyx_v_data == NULL);
  if (unlikely(__pyx_t_6)) {

    /* "kivy/graphics/opengl.pyx":1176
 *     data = <char *>malloc(size)
 *     if data == NULL:
 *         raise MemoryError('glReadPixels()')             # <<<<<<<<<<<<<<
 * 
 *     cgl.glPixelStorei(GL_PACK_ALIGNMENT, 1)
*/
    __pyx_t_4 = NULL;
    __pyx_t_7 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_mstate_global->__pyx_kp_u_glReadPixels};
      __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_MemoryError)), __pyx_callargs+__pyx_t_7, (2-__pyx_t_7) | (__pyx_t_7*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1176, __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, 1176, __pyx_L1_error)

    /* "kivy/graphics/opengl.pyx":1175
 *         size *= 4
 *     data = <char *>malloc(size)
 *     if data == NULL:             # <<<<<<<<<<<<<<
 *         raise MemoryError('glReadPixels()')
 * 
*/
  }

  /* "kivy/graphics/opengl.pyx":1178
 *         raise MemoryError('glReadPixels()')
 * 
 *     cgl.glPixelStorei(GL_PACK_ALIGNMENT, 1)             # <<<<<<<<<<<<<<
 *     cgl.glReadPixels(x, y, width, height, format, type, data)
 *     try:
*/
  __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_GL_PACK_ALIGNMENT); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1178, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_1 = __Pyx_PyLong_As_GLenum(__pyx_t_3); if (unlikely((__pyx_t_1 == ((GLenum)-1)) && PyErr_Occurred())) __PYX_ERR(0, 1178, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __pyx_v_4kivy_8graphics_3cgl_cgl->glPixelStorei(__pyx_t_1, 1); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 1178, __pyx_L1_error)

  /* "kivy/graphics/opengl.pyx":1179
 * 
 *     cgl.glPixelStorei(GL_PACK_ALIGNMENT, 1)
 *     cgl.glReadPixels(x, y, width, height, format, type, data)             # <<<<<<<<<<<<<<
 *     try:
 *         py_pixels = data[:size]
*/
  __pyx_v_4kivy_8graphics_3cgl_cgl->glReadPixels(__pyx_v_x, __pyx_v_y, __pyx_v_width, __pyx_v_height, __pyx_v_format, __pyx_v_type, __pyx_v_data); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 1179, __pyx_L1_error)

  /* "kivy/graphics/opengl.pyx":1180
 *     cgl.glPixelStorei(GL_PACK_ALIGNMENT, 1)
 *     cgl.glReadPixels(x, y, width, height, format, type, data)
 *     try:             # <<<<<<<<<<<<<<
 *         py_pixels = data[:size]
 *     finally:
*/
  /*try:*/ {

    /* "kivy/graphics/opengl.pyx":1181
 *     cgl.glReadPixels(x, y, width, height, format, type, data)
 *     try:
 *         py_pixels = data[:size]             # <<<<<<<<<<<<<<
 *     finally:
 *         free(data)
*/
    __pyx_t_3 = __Pyx_PyBytes_FromStringAndSize(__pyx_v_data + 0, __pyx_v_size - 0); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1181, __pyx_L8_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF_SET(__pyx_v_py_pixels, __pyx_t_3);
    __pyx_t_3 = 0;
  }

  /* "kivy/graphics/opengl.pyx":1183
 *         py_pixels = data[:size]
 *     finally:
 *         free(data)             # <<<<<<<<<<<<<<
 * 
 *     return py_pixels
*/
  /*finally:*/ {
    /*normal exit:*/{
      free(__pyx_v_data);
      goto __pyx_L9;
    }
    __pyx_L8_error:;
    /*exception exit:*/{
      __Pyx_PyThreadState_declare
      __Pyx_PyThreadState_assign
      __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_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;
       __Pyx_ExceptionSwap(&__pyx_t_14, &__pyx_t_15, &__pyx_t_16);
      if ( unlikely(__Pyx_GetException(&__pyx_t_11, &__pyx_t_12, &__pyx_t_13) < 0)) __Pyx_ErrFetch(&__pyx_t_11, &__pyx_t_12, &__pyx_t_13);
      __Pyx_XGOTREF(__pyx_t_11);
      __Pyx_XGOTREF(__pyx_t_12);
      __Pyx_XGOTREF(__pyx_t_13);
      __Pyx_XGOTREF(__pyx_t_14);
      __Pyx_XGOTREF(__pyx_t_15);
      __Pyx_XGOTREF(__pyx_t_16);
      __pyx_t_8 = __pyx_lineno; __pyx_t_9 = __pyx_clineno; __pyx_t_10 = __pyx_filename;
      {
        free(__pyx_v_data);
      }
      __Pyx_XGIVEREF(__pyx_t_14);
      __Pyx_XGIVEREF(__pyx_t_15);
      __Pyx_XGIVEREF(__pyx_t_16);
      __Pyx_ExceptionReset(__pyx_t_14, __pyx_t_15, __pyx_t_16);
      __Pyx_XGIVEREF(__pyx_t_11);
      __Pyx_XGIVEREF(__pyx_t_12);
      __Pyx_XGIVEREF(__pyx_t_13);
      __Pyx_ErrRestore(__pyx_t_11, __pyx_t_12, __pyx_t_13);
      __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_lineno = __pyx_t_8; __pyx_clineno = __pyx_t_9; __pyx_filename = __pyx_t_10;
      goto __pyx_L1_error;
    }
    __pyx_L9:;
  }

  /* "kivy/graphics/opengl.pyx":1185
 *         free(data)
 * 
 *     return py_pixels             # <<<<<<<<<<<<<<
 * 
 * # XXX This one is commented out because a) it's not necessary and
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF(__pyx_v_py_pixels);
  __pyx_r = __pyx_v_py_pixels;
  goto __pyx_L0;

  /* "kivy/graphics/opengl.pyx":1154
 *     cgl.glPolygonOffset(factor, units)
 * 
 * def glReadPixels(GLint x, GLint y, GLsizei width, GLsizei height, GLenum format,             # <<<<<<<<<<<<<<
 *                  GLenum type): #, GLvoid* pixels):
 *     '''See: `glReadPixels() on Kronos website
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("kivy.graphics.opengl.glReadPixels", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_py_pixels);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "kivy/graphics/opengl.pyx":1189
 * # XXX This one is commented out because a) it's not necessary and
 * #                       b) it's breaking on OSX for some reason
 * def glReleaseShaderCompiler():             # <<<<<<<<<<<<<<
 *     '''See: `glReleaseShaderCompiler() on Kronos website
 *     <http://www.khronos.org/opengles/sdk/docs/man/xhtml/glReleaseShaderCompiler.xml>`_
*/

/* Python wrapper */
static PyObject *__pyx_pw_4kivy_8graphics_6opengl_183glReleaseShaderCompiler(PyObject *__pyx_self, CYTHON_UNUSED PyObject *unused); /*proto*/
PyDoc_STRVAR(__pyx_doc_4kivy_8graphics_6opengl_182glReleaseShaderCompiler, "glReleaseShaderCompiler()\n\nSee: `glReleaseShaderCompiler() on Kronos website\n<http://www.khronos.org/opengles/sdk/docs/man/xhtml/glReleaseShaderCompiler.xml>`_\n\n.. warning:: Not implemented yet.");
static PyMethodDef __pyx_mdef_4kivy_8graphics_6opengl_183glReleaseShaderCompiler = {"glReleaseShaderCompiler", (PyCFunction)__pyx_pw_4kivy_8graphics_6opengl_183glReleaseShaderCompiler, METH_NOARGS, __pyx_doc_4kivy_8graphics_6opengl_182glReleaseShaderCompiler};
static PyObject *__pyx_pw_4kivy_8graphics_6opengl_183glReleaseShaderCompiler(PyObject *__pyx_self, CYTHON_UNUSED PyObject *unused) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("glReleaseShaderCompiler (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4kivy_8graphics_6opengl_182glReleaseShaderCompiler(__pyx_self);

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

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

  /* "kivy/graphics/opengl.pyx":1195
 *     .. warning:: Not implemented yet.
 *     '''
 *     raise NotImplementedError             # <<<<<<<<<<<<<<
 * #    cgl.glReleaseShaderCompiler()
 * 
*/
  __Pyx_Raise(((PyObject *)(((PyTypeObject*)PyExc_NotImplementedError))), 0, 0, 0);
  __PYX_ERR(0, 1195, __pyx_L1_error)

  /* "kivy/graphics/opengl.pyx":1189
 * # XXX This one is commented out because a) it's not necessary and
 * #                       b) it's breaking on OSX for some reason
 * def glReleaseShaderCompiler():             # <<<<<<<<<<<<<<
 *     '''See: `glReleaseShaderCompiler() on Kronos website
 *     <http://www.khronos.org/opengles/sdk/docs/man/xhtml/glReleaseShaderCompiler.xml>`_
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("kivy.graphics.opengl.glReleaseShaderCompiler", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "kivy/graphics/opengl.pyx":1198
 * #    cgl.glReleaseShaderCompiler()
 * 
 * def glRenderbufferStorage(GLenum target, GLenum internalformat, GLsizei width, GLsizei height):             # <<<<<<<<<<<<<<
 *     '''See: `glRenderbufferStorage() on Kronos website
 *     <http://www.khronos.org/opengles/sdk/docs/man/xhtml/glRenderbufferStorage.xml>`_
*/

/* Python wrapper */
static PyObject *__pyx_pw_4kivy_8graphics_6opengl_185glRenderbufferStorage(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_4kivy_8graphics_6opengl_184glRenderbufferStorage, "glRenderbufferStorage(GLenum target, GLenum internalformat, GLsizei width, GLsizei height)\n\nSee: `glRenderbufferStorage() on Kronos website\n<http://www.khronos.org/opengles/sdk/docs/man/xhtml/glRenderbufferStorage.xml>`_");
static PyMethodDef __pyx_mdef_4kivy_8graphics_6opengl_185glRenderbufferStorage = {"glRenderbufferStorage", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4kivy_8graphics_6opengl_185glRenderbufferStorage, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4kivy_8graphics_6opengl_184glRenderbufferStorage};
static PyObject *__pyx_pw_4kivy_8graphics_6opengl_185glRenderbufferStorage(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  GLenum __pyx_v_target;
  GLenum __pyx_v_internalformat;
  GLsizei __pyx_v_width;
  GLsizei __pyx_v_height;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[4] = {0,0,0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("glRenderbufferStorage (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_target,&__pyx_mstate_global->__pyx_n_u_internalformat,&__pyx_mstate_global->__pyx_n_u_width,&__pyx_mstate_global->__pyx_n_u_height,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(0, 1198, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  4:
        values[3] = __Pyx_ArgRef_FASTCALL(__pyx_args, 3);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[3])) __PYX_ERR(0, 1198, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  3:
        values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(0, 1198, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 1198, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 1198, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "glRenderbufferStorage", 0) < (0)) __PYX_ERR(0, 1198, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 4; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("glRenderbufferStorage", 1, 4, 4, i); __PYX_ERR(0, 1198, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 4)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 1198, __pyx_L3_error)
      values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 1198, __pyx_L3_error)
      values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(0, 1198, __pyx_L3_error)
      values[3] = __Pyx_ArgRef_FASTCALL(__pyx_args, 3);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[3])) __PYX_ERR(0, 1198, __pyx_L3_error)
    }
    __pyx_v_target = __Pyx_PyLong_As_GLenum(values[0]); if (unlikely((__pyx_v_target == ((GLenum)-1)) && PyErr_Occurred())) __PYX_ERR(0, 1198, __pyx_L3_error)
    __pyx_v_internalformat = __Pyx_PyLong_As_GLenum(values[1]); if (unlikely((__pyx_v_internalformat == ((GLenum)-1)) && PyErr_Occurred())) __PYX_ERR(0, 1198, __pyx_L3_error)
    __pyx_v_width = __Pyx_PyLong_As_GLsizei(values[2]); if (unlikely((__pyx_v_width == ((GLsizei)-1)) && PyErr_Occurred())) __PYX_ERR(0, 1198, __pyx_L3_error)
    __pyx_v_height = __Pyx_PyLong_As_GLsizei(values[3]); if (unlikely((__pyx_v_height == ((GLsizei)-1)) && PyErr_Occurred())) __PYX_ERR(0, 1198, __pyx_L3_error)
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("glRenderbufferStorage", 1, 4, 4, __pyx_nargs); __PYX_ERR(0, 1198, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("kivy.graphics.opengl.glRenderbufferStorage", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4kivy_8graphics_6opengl_184glRenderbufferStorage(__pyx_self, __pyx_v_target, __pyx_v_internalformat, __pyx_v_width, __pyx_v_height);

  /* function exit code */
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4kivy_8graphics_6opengl_184glRenderbufferStorage(CYTHON_UNUSED PyObject *__pyx_self, GLenum __pyx_v_target, GLenum __pyx_v_internalformat, GLsizei __pyx_v_width, GLsizei __pyx_v_height) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("glRenderbufferStorage", 0);

  /* "kivy/graphics/opengl.pyx":1202
 *     <http://www.khronos.org/opengles/sdk/docs/man/xhtml/glRenderbufferStorage.xml>`_
 *     '''
 *     cgl.glRenderbufferStorage(target, internalformat, width, height)             # <<<<<<<<<<<<<<
 * 
 * def glSampleCoverage(GLclampf value, GLboolean invert):
*/
  __pyx_v_4kivy_8graphics_3cgl_cgl->glRenderbufferStorage(__pyx_v_target, __pyx_v_internalformat, __pyx_v_width, __pyx_v_height); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 1202, __pyx_L1_error)

  /* "kivy/graphics/opengl.pyx":1198
 * #    cgl.glReleaseShaderCompiler()
 * 
 * def glRenderbufferStorage(GLenum target, GLenum internalformat, GLsizei width, GLsizei height):             # <<<<<<<<<<<<<<
 *     '''See: `glRenderbufferStorage() on Kronos website
 *     <http://www.khronos.org/opengles/sdk/docs/man/xhtml/glRenderbufferStorage.xml>`_
*/

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

/* "kivy/graphics/opengl.pyx":1204
 *     cgl.glRenderbufferStorage(target, internalformat, width, height)
 * 
 * def glSampleCoverage(GLclampf value, GLboolean invert):             # <<<<<<<<<<<<<<
 *     '''See: `glSampleCoverage() on Kronos website
 *     <http://www.khronos.org/opengles/sdk/docs/man/xhtml/glSampleCoverage.xml>`_
*/

/* Python wrapper */
static PyObject *__pyx_pw_4kivy_8graphics_6opengl_187glSampleCoverage(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_4kivy_8graphics_6opengl_186glSampleCoverage, "glSampleCoverage(GLclampf value, GLboolean invert)\n\nSee: `glSampleCoverage() on Kronos website\n<http://www.khronos.org/opengles/sdk/docs/man/xhtml/glSampleCoverage.xml>`_");
static PyMethodDef __pyx_mdef_4kivy_8graphics_6opengl_187glSampleCoverage = {"glSampleCoverage", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4kivy_8graphics_6opengl_187glSampleCoverage, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4kivy_8graphics_6opengl_186glSampleCoverage};
static PyObject *__pyx_pw_4kivy_8graphics_6opengl_187glSampleCoverage(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  GLclampf __pyx_v_value;
  GLboolean __pyx_v_invert;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[2] = {0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("glSampleCoverage (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_value,&__pyx_mstate_global->__pyx_n_u_invert,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(0, 1204, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 1204, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 1204, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "glSampleCoverage", 0) < (0)) __PYX_ERR(0, 1204, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 2; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("glSampleCoverage", 1, 2, 2, i); __PYX_ERR(0, 1204, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 2)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 1204, __pyx_L3_error)
      values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 1204, __pyx_L3_error)
    }
    __pyx_v_value = __Pyx_PyFloat_AsFloat(values[0]); if (unlikely((__pyx_v_value == ((GLclampf)-1)) && PyErr_Occurred())) __PYX_ERR(0, 1204, __pyx_L3_error)
    __pyx_v_invert = __Pyx_PyLong_As_GLboolean(values[1]); if (unlikely((__pyx_v_invert == ((GLboolean)-1)) && PyErr_Occurred())) __PYX_ERR(0, 1204, __pyx_L3_error)
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("glSampleCoverage", 1, 2, 2, __pyx_nargs); __PYX_ERR(0, 1204, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("kivy.graphics.opengl.glSampleCoverage", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4kivy_8graphics_6opengl_186glSampleCoverage(__pyx_self, __pyx_v_value, __pyx_v_invert);

  /* function exit code */
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4kivy_8graphics_6opengl_186glSampleCoverage(CYTHON_UNUSED PyObject *__pyx_self, GLclampf __pyx_v_value, GLboolean __pyx_v_invert) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("glSampleCoverage", 0);

  /* "kivy/graphics/opengl.pyx":1208
 *     <http://www.khronos.org/opengles/sdk/docs/man/xhtml/glSampleCoverage.xml>`_
 *     '''
 *     cgl.glSampleCoverage(value, invert)             # <<<<<<<<<<<<<<
 * 
 * def glScissor(GLint x, GLint y, GLsizei width, GLsizei height):
*/
  __pyx_v_4kivy_8graphics_3cgl_cgl->glSampleCoverage(__pyx_v_value, __pyx_v_invert); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 1208, __pyx_L1_error)

  /* "kivy/graphics/opengl.pyx":1204
 *     cgl.glRenderbufferStorage(target, internalformat, width, height)
 * 
 * def glSampleCoverage(GLclampf value, GLboolean invert):             # <<<<<<<<<<<<<<
 *     '''See: `glSampleCoverage() on Kronos website
 *     <http://www.khronos.org/opengles/sdk/docs/man/xhtml/glSampleCoverage.xml>`_
*/

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

/* "kivy/graphics/opengl.pyx":1210
 *     cgl.glSampleCoverage(value, invert)
 * 
 * def glScissor(GLint x, GLint y, GLsizei width, GLsizei height):             # <<<<<<<<<<<<<<
 *     '''See: `glScissor() on Kronos website
 *     <http://www.khronos.org/opengles/sdk/docs/man/xhtml/glScissor.xml>`_
*/

/* Python wrapper */
static PyObject *__pyx_pw_4kivy_8graphics_6opengl_189glScissor(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_4kivy_8graphics_6opengl_188glScissor, "glScissor(GLint x, GLint y, GLsizei width, GLsizei height)\n\nSee: `glScissor() on Kronos website\n<http://www.khronos.org/opengles/sdk/docs/man/xhtml/glScissor.xml>`_");
static PyMethodDef __pyx_mdef_4kivy_8graphics_6opengl_189glScissor = {"glScissor", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4kivy_8graphics_6opengl_189glScissor, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4kivy_8graphics_6opengl_188glScissor};
static PyObject *__pyx_pw_4kivy_8graphics_6opengl_189glScissor(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  GLint __pyx_v_x;
  GLint __pyx_v_y;
  GLsizei __pyx_v_width;
  GLsizei __pyx_v_height;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[4] = {0,0,0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("glScissor (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_x,&__pyx_mstate_global->__pyx_n_u_y,&__pyx_mstate_global->__pyx_n_u_width,&__pyx_mstate_global->__pyx_n_u_height,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(0, 1210, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  4:
        values[3] = __Pyx_ArgRef_FASTCALL(__pyx_args, 3);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[3])) __PYX_ERR(0, 1210, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  3:
        values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(0, 1210, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 1210, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 1210, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "glScissor", 0) < (0)) __PYX_ERR(0, 1210, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 4; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("glScissor", 1, 4, 4, i); __PYX_ERR(0, 1210, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 4)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 1210, __pyx_L3_error)
      values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 1210, __pyx_L3_error)
      values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(0, 1210, __pyx_L3_error)
      values[3] = __Pyx_ArgRef_FASTCALL(__pyx_args, 3);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[3])) __PYX_ERR(0, 1210, __pyx_L3_error)
    }
    __pyx_v_x = __Pyx_PyLong_As_GLint(values[0]); if (unlikely((__pyx_v_x == ((GLint)-1)) && PyErr_Occurred())) __PYX_ERR(0, 1210, __pyx_L3_error)
    __pyx_v_y = __Pyx_PyLong_As_GLint(values[1]); if (unlikely((__pyx_v_y == ((GLint)-1)) && PyErr_Occurred())) __PYX_ERR(0, 1210, __pyx_L3_error)
    __pyx_v_width = __Pyx_PyLong_As_GLsizei(values[2]); if (unlikely((__pyx_v_width == ((GLsizei)-1)) && PyErr_Occurred())) __PYX_ERR(0, 1210, __pyx_L3_error)
    __pyx_v_height = __Pyx_PyLong_As_GLsizei(values[3]); if (unlikely((__pyx_v_height == ((GLsizei)-1)) && PyErr_Occurred())) __PYX_ERR(0, 1210, __pyx_L3_error)
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("glScissor", 1, 4, 4, __pyx_nargs); __PYX_ERR(0, 1210, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("kivy.graphics.opengl.glScissor", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4kivy_8graphics_6opengl_188glScissor(__pyx_self, __pyx_v_x, __pyx_v_y, __pyx_v_width, __pyx_v_height);

  /* function exit code */
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4kivy_8graphics_6opengl_188glScissor(CYTHON_UNUSED PyObject *__pyx_self, GLint __pyx_v_x, GLint __pyx_v_y, GLsizei __pyx_v_width, GLsizei __pyx_v_height) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("glScissor", 0);

  /* "kivy/graphics/opengl.pyx":1214
 *     <http://www.khronos.org/opengles/sdk/docs/man/xhtml/glScissor.xml>`_
 *     '''
 *     cgl.glScissor(x, y, width, height)             # <<<<<<<<<<<<<<
 * 
 * def glShaderBinary():#GLsizei n,  GLuint* shaders, GLenum binaryformat,  bytes GLvoid* binary, GLsizei length):
*/
  __pyx_v_4kivy_8graphics_3cgl_cgl->glScissor(__pyx_v_x, __pyx_v_y, __pyx_v_width, __pyx_v_height); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 1214, __pyx_L1_error)

  /* "kivy/graphics/opengl.pyx":1210
 *     cgl.glSampleCoverage(value, invert)
 * 
 * def glScissor(GLint x, GLint y, GLsizei width, GLsizei height):             # <<<<<<<<<<<<<<
 *     '''See: `glScissor() on Kronos website
 *     <http://www.khronos.org/opengles/sdk/docs/man/xhtml/glScissor.xml>`_
*/

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

/* "kivy/graphics/opengl.pyx":1216
 *     cgl.glScissor(x, y, width, height)
 * 
 * def glShaderBinary():#GLsizei n,  GLuint* shaders, GLenum binaryformat,  bytes GLvoid* binary, GLsizei length):             # <<<<<<<<<<<<<<
 *     '''See: `glShaderBinary() on Kronos website
 *     <http://www.khronos.org/opengles/sdk/docs/man/xhtml/glShaderBinary.xml>`_
*/

/* Python wrapper */
static PyObject *__pyx_pw_4kivy_8graphics_6opengl_191glShaderBinary(PyObject *__pyx_self, CYTHON_UNUSED PyObject *unused); /*proto*/
PyDoc_STRVAR(__pyx_doc_4kivy_8graphics_6opengl_190glShaderBinary, "glShaderBinary()\n\nSee: `glShaderBinary() on Kronos website\n<http://www.khronos.org/opengles/sdk/docs/man/xhtml/glShaderBinary.xml>`_\n\n.. warning:: Not implemented yet.");
static PyMethodDef __pyx_mdef_4kivy_8graphics_6opengl_191glShaderBinary = {"glShaderBinary", (PyCFunction)__pyx_pw_4kivy_8graphics_6opengl_191glShaderBinary, METH_NOARGS, __pyx_doc_4kivy_8graphics_6opengl_190glShaderBinary};
static PyObject *__pyx_pw_4kivy_8graphics_6opengl_191glShaderBinary(PyObject *__pyx_self, CYTHON_UNUSED PyObject *unused) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("glShaderBinary (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4kivy_8graphics_6opengl_190glShaderBinary(__pyx_self);

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

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

  /* "kivy/graphics/opengl.pyx":1223
 *     '''
 *     #cgl.glShaderBinary(n, shaders, binaryformat, binary, length)
 *     raise NotImplementedError             # <<<<<<<<<<<<<<
 * 
 * def glShaderSource(GLuint shader, bytes source):
*/
  __Pyx_Raise(((PyObject *)(((PyTypeObject*)PyExc_NotImplementedError))), 0, 0, 0);
  __PYX_ERR(0, 1223, __pyx_L1_error)

  /* "kivy/graphics/opengl.pyx":1216
 *     cgl.glScissor(x, y, width, height)
 * 
 * def glShaderBinary():#GLsizei n,  GLuint* shaders, GLenum binaryformat,  bytes GLvoid* binary, GLsizei length):             # <<<<<<<<<<<<<<
 *     '''See: `glShaderBinary() on Kronos website
 *     <http://www.khronos.org/opengles/sdk/docs/man/xhtml/glShaderBinary.xml>`_
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("kivy.graphics.opengl.glShaderBinary", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "kivy/graphics/opengl.pyx":1225
 *     raise NotImplementedError
 * 
 * def glShaderSource(GLuint shader, bytes source):             # <<<<<<<<<<<<<<
 *     '''See: `glShaderSource() on Kronos website
 *     <http://www.khronos.org/opengles/sdk/docs/man/xhtml/glShaderSource.xml>`_
*/

/* Python wrapper */
static PyObject *__pyx_pw_4kivy_8graphics_6opengl_193glShaderSource(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_4kivy_8graphics_6opengl_192glShaderSource, "glShaderSource(GLuint shader, bytes source)\n\nSee: `glShaderSource() on Kronos website\n<http://www.khronos.org/opengles/sdk/docs/man/xhtml/glShaderSource.xml>`_");
static PyMethodDef __pyx_mdef_4kivy_8graphics_6opengl_193glShaderSource = {"glShaderSource", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4kivy_8graphics_6opengl_193glShaderSource, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4kivy_8graphics_6opengl_192glShaderSource};
static PyObject *__pyx_pw_4kivy_8graphics_6opengl_193glShaderSource(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  GLuint __pyx_v_shader;
  PyObject *__pyx_v_source = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[2] = {0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("glShaderSource (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_shader,&__pyx_mstate_global->__pyx_n_u_source,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(0, 1225, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 1225, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 1225, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "glShaderSource", 0) < (0)) __PYX_ERR(0, 1225, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 2; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("glShaderSource", 1, 2, 2, i); __PYX_ERR(0, 1225, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 2)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 1225, __pyx_L3_error)
      values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 1225, __pyx_L3_error)
    }
    __pyx_v_shader = __Pyx_PyLong_As_GLuint(values[0]); if (unlikely((__pyx_v_shader == ((GLuint)-1)) && PyErr_Occurred())) __PYX_ERR(0, 1225, __pyx_L3_error)
    __pyx_v_source = ((PyObject*)values[1]);
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("glShaderSource", 1, 2, 2, __pyx_nargs); __PYX_ERR(0, 1225, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("kivy.graphics.opengl.glShaderSource", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_source), (&PyBytes_Type), 1, "source", 1))) __PYX_ERR(0, 1225, __pyx_L1_error)
  __pyx_r = __pyx_pf_4kivy_8graphics_6opengl_192glShaderSource(__pyx_self, __pyx_v_shader, __pyx_v_source);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  goto __pyx_L7_cleaned_up;
  __pyx_L0:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __pyx_L7_cleaned_up:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4kivy_8graphics_6opengl_192glShaderSource(CYTHON_UNUSED PyObject *__pyx_self, GLuint __pyx_v_shader, PyObject *__pyx_v_source) {
  const char* __pyx_v_c_source;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  const char* __pyx_t_1;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("glShaderSource", 0);

  /* "kivy/graphics/opengl.pyx":1229
 *     <http://www.khronos.org/opengles/sdk/docs/man/xhtml/glShaderSource.xml>`_
 *     '''
 *     cdef const_char_ptr c_source = <const_char_ptr>source             # <<<<<<<<<<<<<<
 *     cgl.glShaderSource(shader, 1, &c_source, NULL)
 * 
*/
  if (unlikely(__pyx_v_source == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "expected bytes, NoneType found");
    __PYX_ERR(0, 1229, __pyx_L1_error)
  }
  __pyx_t_1 = __Pyx_PyBytes_AsWritableString(__pyx_v_source); if (unlikely((__pyx_t_1 == ((const char*)NULL)) && PyErr_Occurred())) __PYX_ERR(0, 1229, __pyx_L1_error)
  __pyx_v_c_source = ((const char*)__pyx_t_1);

  /* "kivy/graphics/opengl.pyx":1230
 *     '''
 *     cdef const_char_ptr c_source = <const_char_ptr>source
 *     cgl.glShaderSource(shader, 1, &c_source, NULL)             # <<<<<<<<<<<<<<
 * 
 * def glStencilFunc(GLenum func, GLint ref, GLuint mask):
*/
  __pyx_v_4kivy_8graphics_3cgl_cgl->glShaderSource(__pyx_v_shader, 1, (&__pyx_v_c_source), NULL); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 1230, __pyx_L1_error)

  /* "kivy/graphics/opengl.pyx":1225
 *     raise NotImplementedError
 * 
 * def glShaderSource(GLuint shader, bytes source):             # <<<<<<<<<<<<<<
 *     '''See: `glShaderSource() on Kronos website
 *     <http://www.khronos.org/opengles/sdk/docs/man/xhtml/glShaderSource.xml>`_
*/

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

/* "kivy/graphics/opengl.pyx":1232
 *     cgl.glShaderSource(shader, 1, &c_source, NULL)
 * 
 * def glStencilFunc(GLenum func, GLint ref, GLuint mask):             # <<<<<<<<<<<<<<
 *     '''See: `glStencilFunc() on Kronos website
 *     <http://www.khronos.org/opengles/sdk/docs/man/xhtml/glStencilFunc.xml>`_
*/

/* Python wrapper */
static PyObject *__pyx_pw_4kivy_8graphics_6opengl_195glStencilFunc(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_4kivy_8graphics_6opengl_194glStencilFunc, "glStencilFunc(GLenum func, GLint ref, GLuint mask)\n\nSee: `glStencilFunc() on Kronos website\n<http://www.khronos.org/opengles/sdk/docs/man/xhtml/glStencilFunc.xml>`_");
static PyMethodDef __pyx_mdef_4kivy_8graphics_6opengl_195glStencilFunc = {"glStencilFunc", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4kivy_8graphics_6opengl_195glStencilFunc, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4kivy_8graphics_6opengl_194glStencilFunc};
static PyObject *__pyx_pw_4kivy_8graphics_6opengl_195glStencilFunc(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  GLenum __pyx_v_func;
  GLint __pyx_v_ref;
  GLuint __pyx_v_mask;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[3] = {0,0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("glStencilFunc (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_func,&__pyx_mstate_global->__pyx_n_u_ref,&__pyx_mstate_global->__pyx_n_u_mask,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(0, 1232, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  3:
        values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(0, 1232, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 1232, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 1232, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "glStencilFunc", 0) < (0)) __PYX_ERR(0, 1232, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 3; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("glStencilFunc", 1, 3, 3, i); __PYX_ERR(0, 1232, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 3)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 1232, __pyx_L3_error)
      values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 1232, __pyx_L3_error)
      values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(0, 1232, __pyx_L3_error)
    }
    __pyx_v_func = __Pyx_PyLong_As_GLenum(values[0]); if (unlikely((__pyx_v_func == ((GLenum)-1)) && PyErr_Occurred())) __PYX_ERR(0, 1232, __pyx_L3_error)
    __pyx_v_ref = __Pyx_PyLong_As_GLint(values[1]); if (unlikely((__pyx_v_ref == ((GLint)-1)) && PyErr_Occurred())) __PYX_ERR(0, 1232, __pyx_L3_error)
    __pyx_v_mask = __Pyx_PyLong_As_GLuint(values[2]); if (unlikely((__pyx_v_mask == ((GLuint)-1)) && PyErr_Occurred())) __PYX_ERR(0, 1232, __pyx_L3_error)
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("glStencilFunc", 1, 3, 3, __pyx_nargs); __PYX_ERR(0, 1232, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("kivy.graphics.opengl.glStencilFunc", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4kivy_8graphics_6opengl_194glStencilFunc(__pyx_self, __pyx_v_func, __pyx_v_ref, __pyx_v_mask);

  /* function exit code */
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4kivy_8graphics_6opengl_194glStencilFunc(CYTHON_UNUSED PyObject *__pyx_self, GLenum __pyx_v_func, GLint __pyx_v_ref, GLuint __pyx_v_mask) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("glStencilFunc", 0);

  /* "kivy/graphics/opengl.pyx":1236
 *     <http://www.khronos.org/opengles/sdk/docs/man/xhtml/glStencilFunc.xml>`_
 *     '''
 *     cgl.glStencilFunc(func, ref, mask)             # <<<<<<<<<<<<<<
 * 
 * def glStencilFuncSeparate(GLenum face, GLenum func, GLint ref, GLuint mask):
*/
  __pyx_v_4kivy_8graphics_3cgl_cgl->glStencilFunc(__pyx_v_func, __pyx_v_ref, __pyx_v_mask); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 1236, __pyx_L1_error)

  /* "kivy/graphics/opengl.pyx":1232
 *     cgl.glShaderSource(shader, 1, &c_source, NULL)
 * 
 * def glStencilFunc(GLenum func, GLint ref, GLuint mask):             # <<<<<<<<<<<<<<
 *     '''See: `glStencilFunc() on Kronos website
 *     <http://www.khronos.org/opengles/sdk/docs/man/xhtml/glStencilFunc.xml>`_
*/

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

/* "kivy/graphics/opengl.pyx":1238
 *     cgl.glStencilFunc(func, ref, mask)
 * 
 * def glStencilFuncSeparate(GLenum face, GLenum func, GLint ref, GLuint mask):             # <<<<<<<<<<<<<<
 *     '''See: `glStencilFuncSeparate() on Kronos website
 *     <http://www.khronos.org/opengles/sdk/docs/man/xhtml/glStencilFuncSeparate.xml>`_
*/

/* Python wrapper */
static PyObject *__pyx_pw_4kivy_8graphics_6opengl_197glStencilFuncSeparate(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_4kivy_8graphics_6opengl_196glStencilFuncSeparate, "glStencilFuncSeparate(GLenum face, GLenum func, GLint ref, GLuint mask)\n\nSee: `glStencilFuncSeparate() on Kronos website\n<http://www.khronos.org/opengles/sdk/docs/man/xhtml/glStencilFuncSeparate.xml>`_");
static PyMethodDef __pyx_mdef_4kivy_8graphics_6opengl_197glStencilFuncSeparate = {"glStencilFuncSeparate", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4kivy_8graphics_6opengl_197glStencilFuncSeparate, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4kivy_8graphics_6opengl_196glStencilFuncSeparate};
static PyObject *__pyx_pw_4kivy_8graphics_6opengl_197glStencilFuncSeparate(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  GLenum __pyx_v_face;
  GLenum __pyx_v_func;
  GLint __pyx_v_ref;
  GLuint __pyx_v_mask;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[4] = {0,0,0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("glStencilFuncSeparate (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_face,&__pyx_mstate_global->__pyx_n_u_func,&__pyx_mstate_global->__pyx_n_u_ref,&__pyx_mstate_global->__pyx_n_u_mask,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(0, 1238, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  4:
        values[3] = __Pyx_ArgRef_FASTCALL(__pyx_args, 3);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[3])) __PYX_ERR(0, 1238, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  3:
        values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(0, 1238, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 1238, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 1238, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "glStencilFuncSeparate", 0) < (0)) __PYX_ERR(0, 1238, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 4; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("glStencilFuncSeparate", 1, 4, 4, i); __PYX_ERR(0, 1238, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 4)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 1238, __pyx_L3_error)
      values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 1238, __pyx_L3_error)
      values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(0, 1238, __pyx_L3_error)
      values[3] = __Pyx_ArgRef_FASTCALL(__pyx_args, 3);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[3])) __PYX_ERR(0, 1238, __pyx_L3_error)
    }
    __pyx_v_face = __Pyx_PyLong_As_GLenum(values[0]); if (unlikely((__pyx_v_face == ((GLenum)-1)) && PyErr_Occurred())) __PYX_ERR(0, 1238, __pyx_L3_error)
    __pyx_v_func = __Pyx_PyLong_As_GLenum(values[1]); if (unlikely((__pyx_v_func == ((GLenum)-1)) && PyErr_Occurred())) __PYX_ERR(0, 1238, __pyx_L3_error)
    __pyx_v_ref = __Pyx_PyLong_As_GLint(values[2]); if (unlikely((__pyx_v_ref == ((GLint)-1)) && PyErr_Occurred())) __PYX_ERR(0, 1238, __pyx_L3_error)
    __pyx_v_mask = __Pyx_PyLong_As_GLuint(values[3]); if (unlikely((__pyx_v_mask == ((GLuint)-1)) && PyErr_Occurred())) __PYX_ERR(0, 1238, __pyx_L3_error)
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("glStencilFuncSeparate", 1, 4, 4, __pyx_nargs); __PYX_ERR(0, 1238, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("kivy.graphics.opengl.glStencilFuncSeparate", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4kivy_8graphics_6opengl_196glStencilFuncSeparate(__pyx_self, __pyx_v_face, __pyx_v_func, __pyx_v_ref, __pyx_v_mask);

  /* function exit code */
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4kivy_8graphics_6opengl_196glStencilFuncSeparate(CYTHON_UNUSED PyObject *__pyx_self, GLenum __pyx_v_face, GLenum __pyx_v_func, GLint __pyx_v_ref, GLuint __pyx_v_mask) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("glStencilFuncSeparate", 0);

  /* "kivy/graphics/opengl.pyx":1242
 *     <http://www.khronos.org/opengles/sdk/docs/man/xhtml/glStencilFuncSeparate.xml>`_
 *     '''
 *     cgl.glStencilFuncSeparate(face, func, ref, mask)             # <<<<<<<<<<<<<<
 * 
 * def glStencilMask(GLuint mask):
*/
  __pyx_v_4kivy_8graphics_3cgl_cgl->glStencilFuncSeparate(__pyx_v_face, __pyx_v_func, __pyx_v_ref, __pyx_v_mask); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 1242, __pyx_L1_error)

  /* "kivy/graphics/opengl.pyx":1238
 *     cgl.glStencilFunc(func, ref, mask)
 * 
 * def glStencilFuncSeparate(GLenum face, GLenum func, GLint ref, GLuint mask):             # <<<<<<<<<<<<<<
 *     '''See: `glStencilFuncSeparate() on Kronos website
 *     <http://www.khronos.org/opengles/sdk/docs/man/xhtml/glStencilFuncSeparate.xml>`_
*/

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

/* "kivy/graphics/opengl.pyx":1244
 *     cgl.glStencilFuncSeparate(face, func, ref, mask)
 * 
 * def glStencilMask(GLuint mask):             # <<<<<<<<<<<<<<
 *     '''See: `glStencilMask() on Kronos website
 *     <http://www.khronos.org/opengles/sdk/docs/man/xhtml/glStencilMask.xml>`_
*/

/* Python wrapper */
static PyObject *__pyx_pw_4kivy_8graphics_6opengl_199glStencilMask(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_4kivy_8graphics_6opengl_198glStencilMask, "glStencilMask(GLuint mask)\n\nSee: `glStencilMask() on Kronos website\n<http://www.khronos.org/opengles/sdk/docs/man/xhtml/glStencilMask.xml>`_");
static PyMethodDef __pyx_mdef_4kivy_8graphics_6opengl_199glStencilMask = {"glStencilMask", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4kivy_8graphics_6opengl_199glStencilMask, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4kivy_8graphics_6opengl_198glStencilMask};
static PyObject *__pyx_pw_4kivy_8graphics_6opengl_199glStencilMask(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  GLuint __pyx_v_mask;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[1] = {0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("glStencilMask (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_mask,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(0, 1244, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 1244, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "glStencilMask", 0) < (0)) __PYX_ERR(0, 1244, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("glStencilMask", 1, 1, 1, i); __PYX_ERR(0, 1244, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 1)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 1244, __pyx_L3_error)
    }
    __pyx_v_mask = __Pyx_PyLong_As_GLuint(values[0]); if (unlikely((__pyx_v_mask == ((GLuint)-1)) && PyErr_Occurred())) __PYX_ERR(0, 1244, __pyx_L3_error)
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("glStencilMask", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 1244, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("kivy.graphics.opengl.glStencilMask", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4kivy_8graphics_6opengl_198glStencilMask(__pyx_self, __pyx_v_mask);

  /* function exit code */
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4kivy_8graphics_6opengl_198glStencilMask(CYTHON_UNUSED PyObject *__pyx_self, GLuint __pyx_v_mask) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("glStencilMask", 0);

  /* "kivy/graphics/opengl.pyx":1248
 *     <http://www.khronos.org/opengles/sdk/docs/man/xhtml/glStencilMask.xml>`_
 *     '''
 *     cgl.glStencilMask(mask)             # <<<<<<<<<<<<<<
 * 
 * def glStencilMaskSeparate(GLenum face, GLuint mask):
*/
  __pyx_v_4kivy_8graphics_3cgl_cgl->glStencilMask(__pyx_v_mask); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 1248, __pyx_L1_error)

  /* "kivy/graphics/opengl.pyx":1244
 *     cgl.glStencilFuncSeparate(face, func, ref, mask)
 * 
 * def glStencilMask(GLuint mask):             # <<<<<<<<<<<<<<
 *     '''See: `glStencilMask() on Kronos website
 *     <http://www.khronos.org/opengles/sdk/docs/man/xhtml/glStencilMask.xml>`_
*/

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

/* "kivy/graphics/opengl.pyx":1250
 *     cgl.glStencilMask(mask)
 * 
 * def glStencilMaskSeparate(GLenum face, GLuint mask):             # <<<<<<<<<<<<<<
 *     '''See: `glStencilMaskSeparate() on Kronos website
 *     <http://www.khronos.org/opengles/sdk/docs/man/xhtml/glStencilMaskSeparate.xml>`_
*/

/* Python wrapper */
static PyObject *__pyx_pw_4kivy_8graphics_6opengl_201glStencilMaskSeparate(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_4kivy_8graphics_6opengl_200glStencilMaskSeparate, "glStencilMaskSeparate(GLenum face, GLuint mask)\n\nSee: `glStencilMaskSeparate() on Kronos website\n<http://www.khronos.org/opengles/sdk/docs/man/xhtml/glStencilMaskSeparate.xml>`_");
static PyMethodDef __pyx_mdef_4kivy_8graphics_6opengl_201glStencilMaskSeparate = {"glStencilMaskSeparate", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4kivy_8graphics_6opengl_201glStencilMaskSeparate, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4kivy_8graphics_6opengl_200glStencilMaskSeparate};
static PyObject *__pyx_pw_4kivy_8graphics_6opengl_201glStencilMaskSeparate(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  GLenum __pyx_v_face;
  GLuint __pyx_v_mask;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[2] = {0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("glStencilMaskSeparate (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_face,&__pyx_mstate_global->__pyx_n_u_mask,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(0, 1250, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 1250, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 1250, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "glStencilMaskSeparate", 0) < (0)) __PYX_ERR(0, 1250, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 2; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("glStencilMaskSeparate", 1, 2, 2, i); __PYX_ERR(0, 1250, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 2)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 1250, __pyx_L3_error)
      values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 1250, __pyx_L3_error)
    }
    __pyx_v_face = __Pyx_PyLong_As_GLenum(values[0]); if (unlikely((__pyx_v_face == ((GLenum)-1)) && PyErr_Occurred())) __PYX_ERR(0, 1250, __pyx_L3_error)
    __pyx_v_mask = __Pyx_PyLong_As_GLuint(values[1]); if (unlikely((__pyx_v_mask == ((GLuint)-1)) && PyErr_Occurred())) __PYX_ERR(0, 1250, __pyx_L3_error)
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("glStencilMaskSeparate", 1, 2, 2, __pyx_nargs); __PYX_ERR(0, 1250, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("kivy.graphics.opengl.glStencilMaskSeparate", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4kivy_8graphics_6opengl_200glStencilMaskSeparate(__pyx_self, __pyx_v_face, __pyx_v_mask);

  /* function exit code */
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4kivy_8graphics_6opengl_200glStencilMaskSeparate(CYTHON_UNUSED PyObject *__pyx_self, GLenum __pyx_v_face, GLuint __pyx_v_mask) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("glStencilMaskSeparate", 0);

  /* "kivy/graphics/opengl.pyx":1254
 *     <http://www.khronos.org/opengles/sdk/docs/man/xhtml/glStencilMaskSeparate.xml>`_
 *     '''
 *     cgl.glStencilMaskSeparate(face, mask)             # <<<<<<<<<<<<<<
 * 
 * def glStencilOp(GLenum fail, GLenum zfail, GLenum zpass):
*/
  __pyx_v_4kivy_8graphics_3cgl_cgl->glStencilMaskSeparate(__pyx_v_face, __pyx_v_mask); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 1254, __pyx_L1_error)

  /* "kivy/graphics/opengl.pyx":1250
 *     cgl.glStencilMask(mask)
 * 
 * def glStencilMaskSeparate(GLenum face, GLuint mask):             # <<<<<<<<<<<<<<
 *     '''See: `glStencilMaskSeparate() on Kronos website
 *     <http://www.khronos.org/opengles/sdk/docs/man/xhtml/glStencilMaskSeparate.xml>`_
*/

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

/* "kivy/graphics/opengl.pyx":1256
 *     cgl.glStencilMaskSeparate(face, mask)
 * 
 * def glStencilOp(GLenum fail, GLenum zfail, GLenum zpass):             # <<<<<<<<<<<<<<
 *     '''See: `glStencilOp() on Kronos website
 *     <http://www.khronos.org/opengles/sdk/docs/man/xhtml/glStencilOp.xml>`_
*/

/* Python wrapper */
static PyObject *__pyx_pw_4kivy_8graphics_6opengl_203glStencilOp(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_4kivy_8graphics_6opengl_202glStencilOp, "glStencilOp(GLenum fail, GLenum zfail, GLenum zpass)\n\nSee: `glStencilOp() on Kronos website\n<http://www.khronos.org/opengles/sdk/docs/man/xhtml/glStencilOp.xml>`_");
static PyMethodDef __pyx_mdef_4kivy_8graphics_6opengl_203glStencilOp = {"glStencilOp", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4kivy_8graphics_6opengl_203glStencilOp, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4kivy_8graphics_6opengl_202glStencilOp};
static PyObject *__pyx_pw_4kivy_8graphics_6opengl_203glStencilOp(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  GLenum __pyx_v_fail;
  GLenum __pyx_v_zfail;
  GLenum __pyx_v_zpass;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[3] = {0,0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("glStencilOp (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_fail,&__pyx_mstate_global->__pyx_n_u_zfail,&__pyx_mstate_global->__pyx_n_u_zpass,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(0, 1256, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  3:
        values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(0, 1256, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 1256, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 1256, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "glStencilOp", 0) < (0)) __PYX_ERR(0, 1256, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 3; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("glStencilOp", 1, 3, 3, i); __PYX_ERR(0, 1256, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 3)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 1256, __pyx_L3_error)
      values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 1256, __pyx_L3_error)
      values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(0, 1256, __pyx_L3_error)
    }
    __pyx_v_fail = __Pyx_PyLong_As_GLenum(values[0]); if (unlikely((__pyx_v_fail == ((GLenum)-1)) && PyErr_Occurred())) __PYX_ERR(0, 1256, __pyx_L3_error)
    __pyx_v_zfail = __Pyx_PyLong_As_GLenum(values[1]); if (unlikely((__pyx_v_zfail == ((GLenum)-1)) && PyErr_Occurred())) __PYX_ERR(0, 1256, __pyx_L3_error)
    __pyx_v_zpass = __Pyx_PyLong_As_GLenum(values[2]); if (unlikely((__pyx_v_zpass == ((GLenum)-1)) && PyErr_Occurred())) __PYX_ERR(0, 1256, __pyx_L3_error)
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("glStencilOp", 1, 3, 3, __pyx_nargs); __PYX_ERR(0, 1256, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("kivy.graphics.opengl.glStencilOp", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4kivy_8graphics_6opengl_202glStencilOp(__pyx_self, __pyx_v_fail, __pyx_v_zfail, __pyx_v_zpass);

  /* function exit code */
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4kivy_8graphics_6opengl_202glStencilOp(CYTHON_UNUSED PyObject *__pyx_self, GLenum __pyx_v_fail, GLenum __pyx_v_zfail, GLenum __pyx_v_zpass) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("glStencilOp", 0);

  /* "kivy/graphics/opengl.pyx":1260
 *     <http://www.khronos.org/opengles/sdk/docs/man/xhtml/glStencilOp.xml>`_
 *     '''
 *     cgl.glStencilOp(fail, zfail, zpass)             # <<<<<<<<<<<<<<
 * 
 * def glStencilOpSeparate(GLenum face, GLenum fail, GLenum zfail, GLenum zpass):
*/
  __pyx_v_4kivy_8graphics_3cgl_cgl->glStencilOp(__pyx_v_fail, __pyx_v_zfail, __pyx_v_zpass); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 1260, __pyx_L1_error)

  /* "kivy/graphics/opengl.pyx":1256
 *     cgl.glStencilMaskSeparate(face, mask)
 * 
 * def glStencilOp(GLenum fail, GLenum zfail, GLenum zpass):             # <<<<<<<<<<<<<<
 *     '''See: `glStencilOp() on Kronos website
 *     <http://www.khronos.org/opengles/sdk/docs/man/xhtml/glStencilOp.xml>`_
*/

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

/* "kivy/graphics/opengl.pyx":1262
 *     cgl.glStencilOp(fail, zfail, zpass)
 * 
 * def glStencilOpSeparate(GLenum face, GLenum fail, GLenum zfail, GLenum zpass):             # <<<<<<<<<<<<<<
 *     '''See: `glStencilOpSeparate() on Kronos website
 *     <http://www.khronos.org/opengles/sdk/docs/man/xhtml/glStencilOpSeparate.xml>`_
*/

/* Python wrapper */
static PyObject *__pyx_pw_4kivy_8graphics_6opengl_205glStencilOpSeparate(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_4kivy_8graphics_6opengl_204glStencilOpSeparate, "glStencilOpSeparate(GLenum face, GLenum fail, GLenum zfail, GLenum zpass)\n\nSee: `glStencilOpSeparate() on Kronos website\n<http://www.khronos.org/opengles/sdk/docs/man/xhtml/glStencilOpSeparate.xml>`_");
static PyMethodDef __pyx_mdef_4kivy_8graphics_6opengl_205glStencilOpSeparate = {"glStencilOpSeparate", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4kivy_8graphics_6opengl_205glStencilOpSeparate, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4kivy_8graphics_6opengl_204glStencilOpSeparate};
static PyObject *__pyx_pw_4kivy_8graphics_6opengl_205glStencilOpSeparate(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  GLenum __pyx_v_face;
  GLenum __pyx_v_fail;
  GLenum __pyx_v_zfail;
  GLenum __pyx_v_zpass;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[4] = {0,0,0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("glStencilOpSeparate (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_face,&__pyx_mstate_global->__pyx_n_u_fail,&__pyx_mstate_global->__pyx_n_u_zfail,&__pyx_mstate_global->__pyx_n_u_zpass,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(0, 1262, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  4:
        values[3] = __Pyx_ArgRef_FASTCALL(__pyx_args, 3);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[3])) __PYX_ERR(0, 1262, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  3:
        values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(0, 1262, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 1262, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 1262, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "glStencilOpSeparate", 0) < (0)) __PYX_ERR(0, 1262, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 4; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("glStencilOpSeparate", 1, 4, 4, i); __PYX_ERR(0, 1262, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 4)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 1262, __pyx_L3_error)
      values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 1262, __pyx_L3_error)
      values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(0, 1262, __pyx_L3_error)
      values[3] = __Pyx_ArgRef_FASTCALL(__pyx_args, 3);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[3])) __PYX_ERR(0, 1262, __pyx_L3_error)
    }
    __pyx_v_face = __Pyx_PyLong_As_GLenum(values[0]); if (unlikely((__pyx_v_face == ((GLenum)-1)) && PyErr_Occurred())) __PYX_ERR(0, 1262, __pyx_L3_error)
    __pyx_v_fail = __Pyx_PyLong_As_GLenum(values[1]); if (unlikely((__pyx_v_fail == ((GLenum)-1)) && PyErr_Occurred())) __PYX_ERR(0, 1262, __pyx_L3_error)
    __pyx_v_zfail = __Pyx_PyLong_As_GLenum(values[2]); if (unlikely((__pyx_v_zfail == ((GLenum)-1)) && PyErr_Occurred())) __PYX_ERR(0, 1262, __pyx_L3_error)
    __pyx_v_zpass = __Pyx_PyLong_As_GLenum(values[3]); if (unlikely((__pyx_v_zpass == ((GLenum)-1)) && PyErr_Occurred())) __PYX_ERR(0, 1262, __pyx_L3_error)
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("glStencilOpSeparate", 1, 4, 4, __pyx_nargs); __PYX_ERR(0, 1262, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("kivy.graphics.opengl.glStencilOpSeparate", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4kivy_8graphics_6opengl_204glStencilOpSeparate(__pyx_self, __pyx_v_face, __pyx_v_fail, __pyx_v_zfail, __pyx_v_zpass);

  /* function exit code */
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4kivy_8graphics_6opengl_204glStencilOpSeparate(CYTHON_UNUSED PyObject *__pyx_self, GLenum __pyx_v_face, GLenum __pyx_v_fail, GLenum __pyx_v_zfail, GLenum __pyx_v_zpass) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("glStencilOpSeparate", 0);

  /* "kivy/graphics/opengl.pyx":1266
 *     <http://www.khronos.org/opengles/sdk/docs/man/xhtml/glStencilOpSeparate.xml>`_
 *     '''
 *     cgl.glStencilOpSeparate(face, fail, zfail, zpass)             # <<<<<<<<<<<<<<
 * 
 * def glTexImage2D(GLenum target, GLint level, GLint internalformat, GLsizei
*/
  __pyx_v_4kivy_8graphics_3cgl_cgl->glStencilOpSeparate(__pyx_v_face, __pyx_v_fail, __pyx_v_zfail, __pyx_v_zpass); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 1266, __pyx_L1_error)

  /* "kivy/graphics/opengl.pyx":1262
 *     cgl.glStencilOp(fail, zfail, zpass)
 * 
 * def glStencilOpSeparate(GLenum face, GLenum fail, GLenum zfail, GLenum zpass):             # <<<<<<<<<<<<<<
 *     '''See: `glStencilOpSeparate() on Kronos website
 *     <http://www.khronos.org/opengles/sdk/docs/man/xhtml/glStencilOpSeparate.xml>`_
*/

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

/* "kivy/graphics/opengl.pyx":1268
 *     cgl.glStencilOpSeparate(face, fail, zfail, zpass)
 * 
 * def glTexImage2D(GLenum target, GLint level, GLint internalformat, GLsizei             # <<<<<<<<<<<<<<
 *                  width, GLsizei height, GLint border, GLenum format, GLenum
 *                  type,  bytes pixels):
*/

/* Python wrapper */
static PyObject *__pyx_pw_4kivy_8graphics_6opengl_207glTexImage2D(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_4kivy_8graphics_6opengl_206glTexImage2D, "glTexImage2D(GLenum target, GLint level, GLint internalformat, GLsizei width, GLsizei height, GLint border, GLenum format, GLenum type, bytes pixels)\n\nSee: `glTexImage2D() on Kronos website\n<http://www.khronos.org/opengles/sdk/docs/man/xhtml/glTexImage2D.xml>`_");
static PyMethodDef __pyx_mdef_4kivy_8graphics_6opengl_207glTexImage2D = {"glTexImage2D", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4kivy_8graphics_6opengl_207glTexImage2D, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4kivy_8graphics_6opengl_206glTexImage2D};
static PyObject *__pyx_pw_4kivy_8graphics_6opengl_207glTexImage2D(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  GLenum __pyx_v_target;
  GLint __pyx_v_level;
  GLint __pyx_v_internalformat;
  GLsizei __pyx_v_width;
  GLsizei __pyx_v_height;
  GLint __pyx_v_border;
  GLenum __pyx_v_format;
  GLenum __pyx_v_type;
  PyObject *__pyx_v_pixels = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[9] = {0,0,0,0,0,0,0,0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("glTexImage2D (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_target,&__pyx_mstate_global->__pyx_n_u_level,&__pyx_mstate_global->__pyx_n_u_internalformat,&__pyx_mstate_global->__pyx_n_u_width,&__pyx_mstate_global->__pyx_n_u_height,&__pyx_mstate_global->__pyx_n_u_border,&__pyx_mstate_global->__pyx_n_u_format,&__pyx_mstate_global->__pyx_n_u_type,&__pyx_mstate_global->__pyx_n_u_pixels,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(0, 1268, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  9:
        values[8] = __Pyx_ArgRef_FASTCALL(__pyx_args, 8);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[8])) __PYX_ERR(0, 1268, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  8:
        values[7] = __Pyx_ArgRef_FASTCALL(__pyx_args, 7);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[7])) __PYX_ERR(0, 1268, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  7:
        values[6] = __Pyx_ArgRef_FASTCALL(__pyx_args, 6);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[6])) __PYX_ERR(0, 1268, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  6:
        values[5] = __Pyx_ArgRef_FASTCALL(__pyx_args, 5);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[5])) __PYX_ERR(0, 1268, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  5:
        values[4] = __Pyx_ArgRef_FASTCALL(__pyx_args, 4);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[4])) __PYX_ERR(0, 1268, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  4:
        values[3] = __Pyx_ArgRef_FASTCALL(__pyx_args, 3);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[3])) __PYX_ERR(0, 1268, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  3:
        values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(0, 1268, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 1268, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 1268, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "glTexImage2D", 0) < (0)) __PYX_ERR(0, 1268, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 9; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("glTexImage2D", 1, 9, 9, i); __PYX_ERR(0, 1268, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 9)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 1268, __pyx_L3_error)
      values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 1268, __pyx_L3_error)
      values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(0, 1268, __pyx_L3_error)
      values[3] = __Pyx_ArgRef_FASTCALL(__pyx_args, 3);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[3])) __PYX_ERR(0, 1268, __pyx_L3_error)
      values[4] = __Pyx_ArgRef_FASTCALL(__pyx_args, 4);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[4])) __PYX_ERR(0, 1268, __pyx_L3_error)
      values[5] = __Pyx_ArgRef_FASTCALL(__pyx_args, 5);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[5])) __PYX_ERR(0, 1268, __pyx_L3_error)
      values[6] = __Pyx_ArgRef_FASTCALL(__pyx_args, 6);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[6])) __PYX_ERR(0, 1268, __pyx_L3_error)
      values[7] = __Pyx_ArgRef_FASTCALL(__pyx_args, 7);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[7])) __PYX_ERR(0, 1268, __pyx_L3_error)
      values[8] = __Pyx_ArgRef_FASTCALL(__pyx_args, 8);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[8])) __PYX_ERR(0, 1268, __pyx_L3_error)
    }
    __pyx_v_target = __Pyx_PyLong_As_GLenum(values[0]); if (unlikely((__pyx_v_target == ((GLenum)-1)) && PyErr_Occurred())) __PYX_ERR(0, 1268, __pyx_L3_error)
    __pyx_v_level = __Pyx_PyLong_As_GLint(values[1]); if (unlikely((__pyx_v_level == ((GLint)-1)) && PyErr_Occurred())) __PYX_ERR(0, 1268, __pyx_L3_error)
    __pyx_v_internalformat = __Pyx_PyLong_As_GLint(values[2]); if (unlikely((__pyx_v_internalformat == ((GLint)-1)) && PyErr_Occurred())) __PYX_ERR(0, 1268, __pyx_L3_error)
    __pyx_v_width = __Pyx_PyLong_As_GLsizei(values[3]); if (unlikely((__pyx_v_width == ((GLsizei)-1)) && PyErr_Occurred())) __PYX_ERR(0, 1268, __pyx_L3_error)
    __pyx_v_height = __Pyx_PyLong_As_GLsizei(values[4]); if (unlikely((__pyx_v_height == ((GLsizei)-1)) && PyErr_Occurred())) __PYX_ERR(0, 1269, __pyx_L3_error)
    __pyx_v_border = __Pyx_PyLong_As_GLint(values[5]); if (unlikely((__pyx_v_border == ((GLint)-1)) && PyErr_Occurred())) __PYX_ERR(0, 1269, __pyx_L3_error)
    __pyx_v_format = __Pyx_PyLong_As_GLenum(values[6]); if (unlikely((__pyx_v_format == ((GLenum)-1)) && PyErr_Occurred())) __PYX_ERR(0, 1269, __pyx_L3_error)
    __pyx_v_type = __Pyx_PyLong_As_GLenum(values[7]); if (unlikely((__pyx_v_type == ((GLenum)-1)) && PyErr_Occurred())) __PYX_ERR(0, 1269, __pyx_L3_error)
    __pyx_v_pixels = ((PyObject*)values[8]);
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("glTexImage2D", 1, 9, 9, __pyx_nargs); __PYX_ERR(0, 1268, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("kivy.graphics.opengl.glTexImage2D", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_pixels), (&PyBytes_Type), 1, "pixels", 1))) __PYX_ERR(0, 1270, __pyx_L1_error)
  __pyx_r = __pyx_pf_4kivy_8graphics_6opengl_206glTexImage2D(__pyx_self, __pyx_v_target, __pyx_v_level, __pyx_v_internalformat, __pyx_v_width, __pyx_v_height, __pyx_v_border, __pyx_v_format, __pyx_v_type, __pyx_v_pixels);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  goto __pyx_L7_cleaned_up;
  __pyx_L0:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __pyx_L7_cleaned_up:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4kivy_8graphics_6opengl_206glTexImage2D(CYTHON_UNUSED PyObject *__pyx_self, GLenum __pyx_v_target, GLint __pyx_v_level, GLint __pyx_v_internalformat, GLsizei __pyx_v_width, GLsizei __pyx_v_height, GLint __pyx_v_border, GLenum __pyx_v_format, GLenum __pyx_v_type, PyObject *__pyx_v_pixels) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  char *__pyx_t_1;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("glTexImage2D", 0);

  /* "kivy/graphics/opengl.pyx":1275
 *     '''
 *     cgl.glTexImage2D(target, level, internalformat, width, height, border,
 *                           format, type, <GLvoid *><char *>pixels)             # <<<<<<<<<<<<<<
 * 
 * def glTexParameterf(GLenum target, GLenum pname, GLfloat param):
*/
  if (unlikely(__pyx_v_pixels == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "expected bytes, NoneType found");
    __PYX_ERR(0, 1275, __pyx_L1_error)
  }
  __pyx_t_1 = __Pyx_PyBytes_AsWritableString(__pyx_v_pixels); if (unlikely((!__pyx_t_1) && PyErr_Occurred())) __PYX_ERR(0, 1275, __pyx_L1_error)

  /* "kivy/graphics/opengl.pyx":1274
 *     <http://www.khronos.org/opengles/sdk/docs/man/xhtml/glTexImage2D.xml>`_
 *     '''
 *     cgl.glTexImage2D(target, level, internalformat, width, height, border,             # <<<<<<<<<<<<<<
 *                           format, type, <GLvoid *><char *>pixels)
 * 
*/
  __pyx_v_4kivy_8graphics_3cgl_cgl->glTexImage2D(__pyx_v_target, __pyx_v_level, __pyx_v_internalformat, __pyx_v_width, __pyx_v_height, __pyx_v_border, __pyx_v_format, __pyx_v_type, ((GLvoid *)((char *)__pyx_t_1))); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 1274, __pyx_L1_error)

  /* "kivy/graphics/opengl.pyx":1268
 *     cgl.glStencilOpSeparate(face, fail, zfail, zpass)
 * 
 * def glTexImage2D(GLenum target, GLint level, GLint internalformat, GLsizei             # <<<<<<<<<<<<<<
 *                  width, GLsizei height, GLint border, GLenum format, GLenum
 *                  type,  bytes pixels):
*/

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

/* "kivy/graphics/opengl.pyx":1277
 *                           format, type, <GLvoid *><char *>pixels)
 * 
 * def glTexParameterf(GLenum target, GLenum pname, GLfloat param):             # <<<<<<<<<<<<<<
 *     '''See: `glTexParameterf() on Kronos website
 *     <http://www.khronos.org/opengles/sdk/docs/man/xhtml/glTexParameterf.xml>`_
*/

/* Python wrapper */
static PyObject *__pyx_pw_4kivy_8graphics_6opengl_209glTexParameterf(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_4kivy_8graphics_6opengl_208glTexParameterf, "glTexParameterf(GLenum target, GLenum pname, GLfloat param)\n\nSee: `glTexParameterf() on Kronos website\n<http://www.khronos.org/opengles/sdk/docs/man/xhtml/glTexParameterf.xml>`_");
static PyMethodDef __pyx_mdef_4kivy_8graphics_6opengl_209glTexParameterf = {"glTexParameterf", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4kivy_8graphics_6opengl_209glTexParameterf, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4kivy_8graphics_6opengl_208glTexParameterf};
static PyObject *__pyx_pw_4kivy_8graphics_6opengl_209glTexParameterf(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  GLenum __pyx_v_target;
  GLenum __pyx_v_pname;
  GLfloat __pyx_v_param;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[3] = {0,0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("glTexParameterf (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_target,&__pyx_mstate_global->__pyx_n_u_pname,&__pyx_mstate_global->__pyx_n_u_param,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(0, 1277, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  3:
        values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(0, 1277, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 1277, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 1277, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "glTexParameterf", 0) < (0)) __PYX_ERR(0, 1277, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 3; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("glTexParameterf", 1, 3, 3, i); __PYX_ERR(0, 1277, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 3)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 1277, __pyx_L3_error)
      values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 1277, __pyx_L3_error)
      values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(0, 1277, __pyx_L3_error)
    }
    __pyx_v_target = __Pyx_PyLong_As_GLenum(values[0]); if (unlikely((__pyx_v_target == ((GLenum)-1)) && PyErr_Occurred())) __PYX_ERR(0, 1277, __pyx_L3_error)
    __pyx_v_pname = __Pyx_PyLong_As_GLenum(values[1]); if (unlikely((__pyx_v_pname == ((GLenum)-1)) && PyErr_Occurred())) __PYX_ERR(0, 1277, __pyx_L3_error)
    __pyx_v_param = __Pyx_PyFloat_AsFloat(values[2]); if (unlikely((__pyx_v_param == ((GLfloat)-1)) && PyErr_Occurred())) __PYX_ERR(0, 1277, __pyx_L3_error)
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("glTexParameterf", 1, 3, 3, __pyx_nargs); __PYX_ERR(0, 1277, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("kivy.graphics.opengl.glTexParameterf", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4kivy_8graphics_6opengl_208glTexParameterf(__pyx_self, __pyx_v_target, __pyx_v_pname, __pyx_v_param);

  /* function exit code */
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4kivy_8graphics_6opengl_208glTexParameterf(CYTHON_UNUSED PyObject *__pyx_self, GLenum __pyx_v_target, GLenum __pyx_v_pname, GLfloat __pyx_v_param) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("glTexParameterf", 0);

  /* "kivy/graphics/opengl.pyx":1281
 *     <http://www.khronos.org/opengles/sdk/docs/man/xhtml/glTexParameterf.xml>`_
 *     '''
 *     cgl.glTexParameterf(target, pname, param)             # <<<<<<<<<<<<<<
 * 
 * def glTexParameterfv(GLenum target, GLenum pname):#,  GLfloat* params):
*/
  __pyx_v_4kivy_8graphics_3cgl_cgl->glTexParameterf(__pyx_v_target, __pyx_v_pname, __pyx_v_param); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 1281, __pyx_L1_error)

  /* "kivy/graphics/opengl.pyx":1277
 *                           format, type, <GLvoid *><char *>pixels)
 * 
 * def glTexParameterf(GLenum target, GLenum pname, GLfloat param):             # <<<<<<<<<<<<<<
 *     '''See: `glTexParameterf() on Kronos website
 *     <http://www.khronos.org/opengles/sdk/docs/man/xhtml/glTexParameterf.xml>`_
*/

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

/* "kivy/graphics/opengl.pyx":1283
 *     cgl.glTexParameterf(target, pname, param)
 * 
 * def glTexParameterfv(GLenum target, GLenum pname):#,  GLfloat* params):             # <<<<<<<<<<<<<<
 *     '''See: `glTexParameterfv() on Kronos website
 *     <http://www.khronos.org/opengles/sdk/docs/man/xhtml/glTexParameterfv.xml>`_
*/

/* Python wrapper */
static PyObject *__pyx_pw_4kivy_8graphics_6opengl_211glTexParameterfv(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_4kivy_8graphics_6opengl_210glTexParameterfv, "glTexParameterfv(GLenum target, GLenum pname)\n\nSee: `glTexParameterfv() on Kronos website\n<http://www.khronos.org/opengles/sdk/docs/man/xhtml/glTexParameterfv.xml>`_\n\n.. warning:: Not implemented yet.");
static PyMethodDef __pyx_mdef_4kivy_8graphics_6opengl_211glTexParameterfv = {"glTexParameterfv", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4kivy_8graphics_6opengl_211glTexParameterfv, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4kivy_8graphics_6opengl_210glTexParameterfv};
static PyObject *__pyx_pw_4kivy_8graphics_6opengl_211glTexParameterfv(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  CYTHON_UNUSED GLenum __pyx_v_target;
  CYTHON_UNUSED GLenum __pyx_v_pname;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[2] = {0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("glTexParameterfv (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_target,&__pyx_mstate_global->__pyx_n_u_pname,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(0, 1283, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 1283, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 1283, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "glTexParameterfv", 0) < (0)) __PYX_ERR(0, 1283, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 2; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("glTexParameterfv", 1, 2, 2, i); __PYX_ERR(0, 1283, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 2)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 1283, __pyx_L3_error)
      values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 1283, __pyx_L3_error)
    }
    __pyx_v_target = __Pyx_PyLong_As_GLenum(values[0]); if (unlikely((__pyx_v_target == ((GLenum)-1)) && PyErr_Occurred())) __PYX_ERR(0, 1283, __pyx_L3_error)
    __pyx_v_pname = __Pyx_PyLong_As_GLenum(values[1]); if (unlikely((__pyx_v_pname == ((GLenum)-1)) && PyErr_Occurred())) __PYX_ERR(0, 1283, __pyx_L3_error)
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("glTexParameterfv", 1, 2, 2, __pyx_nargs); __PYX_ERR(0, 1283, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("kivy.graphics.opengl.glTexParameterfv", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4kivy_8graphics_6opengl_210glTexParameterfv(__pyx_self, __pyx_v_target, __pyx_v_pname);

  /* function exit code */
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4kivy_8graphics_6opengl_210glTexParameterfv(CYTHON_UNUSED PyObject *__pyx_self, CYTHON_UNUSED GLenum __pyx_v_target, CYTHON_UNUSED GLenum __pyx_v_pname) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("glTexParameterfv", 0);

  /* "kivy/graphics/opengl.pyx":1290
 *     '''
 *     #cgl.glTexParameterfv(target, pname, params)
 *     raise NotImplementedError             # <<<<<<<<<<<<<<
 * 
 * def glTexParameteri(GLenum target, GLenum pname, GLint param):
*/
  __Pyx_Raise(((PyObject *)(((PyTypeObject*)PyExc_NotImplementedError))), 0, 0, 0);
  __PYX_ERR(0, 1290, __pyx_L1_error)

  /* "kivy/graphics/opengl.pyx":1283
 *     cgl.glTexParameterf(target, pname, param)
 * 
 * def glTexParameterfv(GLenum target, GLenum pname):#,  GLfloat* params):             # <<<<<<<<<<<<<<
 *     '''See: `glTexParameterfv() on Kronos website
 *     <http://www.khronos.org/opengles/sdk/docs/man/xhtml/glTexParameterfv.xml>`_
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("kivy.graphics.opengl.glTexParameterfv", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "kivy/graphics/opengl.pyx":1292
 *     raise NotImplementedError
 * 
 * def glTexParameteri(GLenum target, GLenum pname, GLint param):             # <<<<<<<<<<<<<<
 *     '''See: `glTexParameteri() on Kronos website
 *     <http://www.khronos.org/opengles/sdk/docs/man/xhtml/glTexParameteri.xml>`_
*/

/* Python wrapper */
static PyObject *__pyx_pw_4kivy_8graphics_6opengl_213glTexParameteri(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_4kivy_8graphics_6opengl_212glTexParameteri, "glTexParameteri(GLenum target, GLenum pname, GLint param)\n\nSee: `glTexParameteri() on Kronos website\n<http://www.khronos.org/opengles/sdk/docs/man/xhtml/glTexParameteri.xml>`_");
static PyMethodDef __pyx_mdef_4kivy_8graphics_6opengl_213glTexParameteri = {"glTexParameteri", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4kivy_8graphics_6opengl_213glTexParameteri, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4kivy_8graphics_6opengl_212glTexParameteri};
static PyObject *__pyx_pw_4kivy_8graphics_6opengl_213glTexParameteri(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  GLenum __pyx_v_target;
  GLenum __pyx_v_pname;
  GLint __pyx_v_param;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[3] = {0,0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("glTexParameteri (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_target,&__pyx_mstate_global->__pyx_n_u_pname,&__pyx_mstate_global->__pyx_n_u_param,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(0, 1292, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  3:
        values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(0, 1292, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 1292, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 1292, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "glTexParameteri", 0) < (0)) __PYX_ERR(0, 1292, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 3; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("glTexParameteri", 1, 3, 3, i); __PYX_ERR(0, 1292, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 3)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 1292, __pyx_L3_error)
      values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 1292, __pyx_L3_error)
      values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(0, 1292, __pyx_L3_error)
    }
    __pyx_v_target = __Pyx_PyLong_As_GLenum(values[0]); if (unlikely((__pyx_v_target == ((GLenum)-1)) && PyErr_Occurred())) __PYX_ERR(0, 1292, __pyx_L3_error)
    __pyx_v_pname = __Pyx_PyLong_As_GLenum(values[1]); if (unlikely((__pyx_v_pname == ((GLenum)-1)) && PyErr_Occurred())) __PYX_ERR(0, 1292, __pyx_L3_error)
    __pyx_v_param = __Pyx_PyLong_As_GLint(values[2]); if (unlikely((__pyx_v_param == ((GLint)-1)) && PyErr_Occurred())) __PYX_ERR(0, 1292, __pyx_L3_error)
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("glTexParameteri", 1, 3, 3, __pyx_nargs); __PYX_ERR(0, 1292, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("kivy.graphics.opengl.glTexParameteri", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4kivy_8graphics_6opengl_212glTexParameteri(__pyx_self, __pyx_v_target, __pyx_v_pname, __pyx_v_param);

  /* function exit code */
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4kivy_8graphics_6opengl_212glTexParameteri(CYTHON_UNUSED PyObject *__pyx_self, GLenum __pyx_v_target, GLenum __pyx_v_pname, GLint __pyx_v_param) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("glTexParameteri", 0);

  /* "kivy/graphics/opengl.pyx":1296
 *     <http://www.khronos.org/opengles/sdk/docs/man/xhtml/glTexParameteri.xml>`_
 *     '''
 *     cgl.glTexParameteri(target, pname, param)             # <<<<<<<<<<<<<<
 * 
 * def glTexParameteriv(GLenum target, GLenum pname):#,  GLint* params):
*/
  __pyx_v_4kivy_8graphics_3cgl_cgl->glTexParameteri(__pyx_v_target, __pyx_v_pname, __pyx_v_param); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 1296, __pyx_L1_error)

  /* "kivy/graphics/opengl.pyx":1292
 *     raise NotImplementedError
 * 
 * def glTexParameteri(GLenum target, GLenum pname, GLint param):             # <<<<<<<<<<<<<<
 *     '''See: `glTexParameteri() on Kronos website
 *     <http://www.khronos.org/opengles/sdk/docs/man/xhtml/glTexParameteri.xml>`_
*/

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

/* "kivy/graphics/opengl.pyx":1298
 *     cgl.glTexParameteri(target, pname, param)
 * 
 * def glTexParameteriv(GLenum target, GLenum pname):#,  GLint* params):             # <<<<<<<<<<<<<<
 *     '''See: `glTexParameteriv() on Kronos website
 *     <http://www.khronos.org/opengles/sdk/docs/man/xhtml/glTexParameteriv.xml>`_
*/

/* Python wrapper */
static PyObject *__pyx_pw_4kivy_8graphics_6opengl_215glTexParameteriv(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_4kivy_8graphics_6opengl_214glTexParameteriv, "glTexParameteriv(GLenum target, GLenum pname)\n\nSee: `glTexParameteriv() on Kronos website\n<http://www.khronos.org/opengles/sdk/docs/man/xhtml/glTexParameteriv.xml>`_\n\n.. warning:: Not implemented yet.");
static PyMethodDef __pyx_mdef_4kivy_8graphics_6opengl_215glTexParameteriv = {"glTexParameteriv", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4kivy_8graphics_6opengl_215glTexParameteriv, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4kivy_8graphics_6opengl_214glTexParameteriv};
static PyObject *__pyx_pw_4kivy_8graphics_6opengl_215glTexParameteriv(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  CYTHON_UNUSED GLenum __pyx_v_target;
  CYTHON_UNUSED GLenum __pyx_v_pname;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[2] = {0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("glTexParameteriv (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_target,&__pyx_mstate_global->__pyx_n_u_pname,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(0, 1298, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 1298, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 1298, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "glTexParameteriv", 0) < (0)) __PYX_ERR(0, 1298, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 2; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("glTexParameteriv", 1, 2, 2, i); __PYX_ERR(0, 1298, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 2)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 1298, __pyx_L3_error)
      values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 1298, __pyx_L3_error)
    }
    __pyx_v_target = __Pyx_PyLong_As_GLenum(values[0]); if (unlikely((__pyx_v_target == ((GLenum)-1)) && PyErr_Occurred())) __PYX_ERR(0, 1298, __pyx_L3_error)
    __pyx_v_pname = __Pyx_PyLong_As_GLenum(values[1]); if (unlikely((__pyx_v_pname == ((GLenum)-1)) && PyErr_Occurred())) __PYX_ERR(0, 1298, __pyx_L3_error)
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("glTexParameteriv", 1, 2, 2, __pyx_nargs); __PYX_ERR(0, 1298, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("kivy.graphics.opengl.glTexParameteriv", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4kivy_8graphics_6opengl_214glTexParameteriv(__pyx_self, __pyx_v_target, __pyx_v_pname);

  /* function exit code */
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4kivy_8graphics_6opengl_214glTexParameteriv(CYTHON_UNUSED PyObject *__pyx_self, CYTHON_UNUSED GLenum __pyx_v_target, CYTHON_UNUSED GLenum __pyx_v_pname) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("glTexParameteriv", 0);

  /* "kivy/graphics/opengl.pyx":1305
 *     '''
 *     #cgl.glTexParameteriv(target, pname, params)
 *     raise NotImplementedError             # <<<<<<<<<<<<<<
 * 
 * def glTexSubImage2D(GLenum target, GLint level, GLint xoffset, GLint yoffset,
*/
  __Pyx_Raise(((PyObject *)(((PyTypeObject*)PyExc_NotImplementedError))), 0, 0, 0);
  __PYX_ERR(0, 1305, __pyx_L1_error)

  /* "kivy/graphics/opengl.pyx":1298
 *     cgl.glTexParameteri(target, pname, param)
 * 
 * def glTexParameteriv(GLenum target, GLenum pname):#,  GLint* params):             # <<<<<<<<<<<<<<
 *     '''See: `glTexParameteriv() on Kronos website
 *     <http://www.khronos.org/opengles/sdk/docs/man/xhtml/glTexParameteriv.xml>`_
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("kivy.graphics.opengl.glTexParameteriv", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "kivy/graphics/opengl.pyx":1307
 *     raise NotImplementedError
 * 
 * def glTexSubImage2D(GLenum target, GLint level, GLint xoffset, GLint yoffset,             # <<<<<<<<<<<<<<
 *                     GLsizei width, GLsizei height, GLenum format, GLenum type,
 *                     bytes pixels):
*/

/* Python wrapper */
static PyObject *__pyx_pw_4kivy_8graphics_6opengl_217glTexSubImage2D(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_4kivy_8graphics_6opengl_216glTexSubImage2D, "glTexSubImage2D(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLenum type, bytes pixels)\n\nSee: `glTexSubImage2D() on Kronos website\n<http://www.khronos.org/opengles/sdk/docs/man/xhtml/glTexSubImage2D.xml>`_");
static PyMethodDef __pyx_mdef_4kivy_8graphics_6opengl_217glTexSubImage2D = {"glTexSubImage2D", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4kivy_8graphics_6opengl_217glTexSubImage2D, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4kivy_8graphics_6opengl_216glTexSubImage2D};
static PyObject *__pyx_pw_4kivy_8graphics_6opengl_217glTexSubImage2D(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  GLenum __pyx_v_target;
  GLint __pyx_v_level;
  GLint __pyx_v_xoffset;
  GLint __pyx_v_yoffset;
  GLsizei __pyx_v_width;
  GLsizei __pyx_v_height;
  GLenum __pyx_v_format;
  GLenum __pyx_v_type;
  PyObject *__pyx_v_pixels = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[9] = {0,0,0,0,0,0,0,0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("glTexSubImage2D (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_target,&__pyx_mstate_global->__pyx_n_u_level,&__pyx_mstate_global->__pyx_n_u_xoffset,&__pyx_mstate_global->__pyx_n_u_yoffset,&__pyx_mstate_global->__pyx_n_u_width,&__pyx_mstate_global->__pyx_n_u_height,&__pyx_mstate_global->__pyx_n_u_format,&__pyx_mstate_global->__pyx_n_u_type,&__pyx_mstate_global->__pyx_n_u_pixels,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(0, 1307, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  9:
        values[8] = __Pyx_ArgRef_FASTCALL(__pyx_args, 8);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[8])) __PYX_ERR(0, 1307, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  8:
        values[7] = __Pyx_ArgRef_FASTCALL(__pyx_args, 7);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[7])) __PYX_ERR(0, 1307, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  7:
        values[6] = __Pyx_ArgRef_FASTCALL(__pyx_args, 6);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[6])) __PYX_ERR(0, 1307, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  6:
        values[5] = __Pyx_ArgRef_FASTCALL(__pyx_args, 5);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[5])) __PYX_ERR(0, 1307, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  5:
        values[4] = __Pyx_ArgRef_FASTCALL(__pyx_args, 4);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[4])) __PYX_ERR(0, 1307, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  4:
        values[3] = __Pyx_ArgRef_FASTCALL(__pyx_args, 3);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[3])) __PYX_ERR(0, 1307, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  3:
        values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(0, 1307, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 1307, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 1307, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "glTexSubImage2D", 0) < (0)) __PYX_ERR(0, 1307, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 9; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("glTexSubImage2D", 1, 9, 9, i); __PYX_ERR(0, 1307, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 9)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 1307, __pyx_L3_error)
      values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 1307, __pyx_L3_error)
      values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(0, 1307, __pyx_L3_error)
      values[3] = __Pyx_ArgRef_FASTCALL(__pyx_args, 3);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[3])) __PYX_ERR(0, 1307, __pyx_L3_error)
      values[4] = __Pyx_ArgRef_FASTCALL(__pyx_args, 4);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[4])) __PYX_ERR(0, 1307, __pyx_L3_error)
      values[5] = __Pyx_ArgRef_FASTCALL(__pyx_args, 5);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[5])) __PYX_ERR(0, 1307, __pyx_L3_error)
      values[6] = __Pyx_ArgRef_FASTCALL(__pyx_args, 6);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[6])) __PYX_ERR(0, 1307, __pyx_L3_error)
      values[7] = __Pyx_ArgRef_FASTCALL(__pyx_args, 7);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[7])) __PYX_ERR(0, 1307, __pyx_L3_error)
      values[8] = __Pyx_ArgRef_FASTCALL(__pyx_args, 8);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[8])) __PYX_ERR(0, 1307, __pyx_L3_error)
    }
    __pyx_v_target = __Pyx_PyLong_As_GLenum(values[0]); if (unlikely((__pyx_v_target == ((GLenum)-1)) && PyErr_Occurred())) __PYX_ERR(0, 1307, __pyx_L3_error)
    __pyx_v_level = __Pyx_PyLong_As_GLint(values[1]); if (unlikely((__pyx_v_level == ((GLint)-1)) && PyErr_Occurred())) __PYX_ERR(0, 1307, __pyx_L3_error)
    __pyx_v_xoffset = __Pyx_PyLong_As_GLint(values[2]); if (unlikely((__pyx_v_xoffset == ((GLint)-1)) && PyErr_Occurred())) __PYX_ERR(0, 1307, __pyx_L3_error)
    __pyx_v_yoffset = __Pyx_PyLong_As_GLint(values[3]); if (unlikely((__pyx_v_yoffset == ((GLint)-1)) && PyErr_Occurred())) __PYX_ERR(0, 1307, __pyx_L3_error)
    __pyx_v_width = __Pyx_PyLong_As_GLsizei(values[4]); if (unlikely((__pyx_v_width == ((GLsizei)-1)) && PyErr_Occurred())) __PYX_ERR(0, 1308, __pyx_L3_error)
    __pyx_v_height = __Pyx_PyLong_As_GLsizei(values[5]); if (unlikely((__pyx_v_height == ((GLsizei)-1)) && PyErr_Occurred())) __PYX_ERR(0, 1308, __pyx_L3_error)
    __pyx_v_format = __Pyx_PyLong_As_GLenum(values[6]); if (unlikely((__pyx_v_format == ((GLenum)-1)) && PyErr_Occurred())) __PYX_ERR(0, 1308, __pyx_L3_error)
    __pyx_v_type = __Pyx_PyLong_As_GLenum(values[7]); if (unlikely((__pyx_v_type == ((GLenum)-1)) && PyErr_Occurred())) __PYX_ERR(0, 1308, __pyx_L3_error)
    __pyx_v_pixels = ((PyObject*)values[8]);
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("glTexSubImage2D", 1, 9, 9, __pyx_nargs); __PYX_ERR(0, 1307, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("kivy.graphics.opengl.glTexSubImage2D", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_pixels), (&PyBytes_Type), 1, "pixels", 1))) __PYX_ERR(0, 1309, __pyx_L1_error)
  __pyx_r = __pyx_pf_4kivy_8graphics_6opengl_216glTexSubImage2D(__pyx_self, __pyx_v_target, __pyx_v_level, __pyx_v_xoffset, __pyx_v_yoffset, __pyx_v_width, __pyx_v_height, __pyx_v_format, __pyx_v_type, __pyx_v_pixels);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  goto __pyx_L7_cleaned_up;
  __pyx_L0:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __pyx_L7_cleaned_up:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4kivy_8graphics_6opengl_216glTexSubImage2D(CYTHON_UNUSED PyObject *__pyx_self, GLenum __pyx_v_target, GLint __pyx_v_level, GLint __pyx_v_xoffset, GLint __pyx_v_yoffset, GLsizei __pyx_v_width, GLsizei __pyx_v_height, GLenum __pyx_v_format, GLenum __pyx_v_type, PyObject *__pyx_v_pixels) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  char *__pyx_t_1;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("glTexSubImage2D", 0);

  /* "kivy/graphics/opengl.pyx":1314
 *     '''
 *     cgl.glTexSubImage2D(target, level, xoffset, yoffset, width, height,
 *                              format, type, <GLvoid *><char *>pixels)             # <<<<<<<<<<<<<<
 * 
 * def glUniform1f(GLint location, GLfloat x):
*/
  if (unlikely(__pyx_v_pixels == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "expected bytes, NoneType found");
    __PYX_ERR(0, 1314, __pyx_L1_error)
  }
  __pyx_t_1 = __Pyx_PyBytes_AsWritableString(__pyx_v_pixels); if (unlikely((!__pyx_t_1) && PyErr_Occurred())) __PYX_ERR(0, 1314, __pyx_L1_error)

  /* "kivy/graphics/opengl.pyx":1313
 *     <http://www.khronos.org/opengles/sdk/docs/man/xhtml/glTexSubImage2D.xml>`_
 *     '''
 *     cgl.glTexSubImage2D(target, level, xoffset, yoffset, width, height,             # <<<<<<<<<<<<<<
 *                              format, type, <GLvoid *><char *>pixels)
 * 
*/
  __pyx_v_4kivy_8graphics_3cgl_cgl->glTexSubImage2D(__pyx_v_target, __pyx_v_level, __pyx_v_xoffset, __pyx_v_yoffset, __pyx_v_width, __pyx_v_height, __pyx_v_format, __pyx_v_type, ((GLvoid *)((char *)__pyx_t_1))); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 1313, __pyx_L1_error)

  /* "kivy/graphics/opengl.pyx":1307
 *     raise NotImplementedError
 * 
 * def glTexSubImage2D(GLenum target, GLint level, GLint xoffset, GLint yoffset,             # <<<<<<<<<<<<<<
 *                     GLsizei width, GLsizei height, GLenum format, GLenum type,
 *                     bytes pixels):
*/

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

/* "kivy/graphics/opengl.pyx":1316
 *                              format, type, <GLvoid *><char *>pixels)
 * 
 * def glUniform1f(GLint location, GLfloat x):             # <<<<<<<<<<<<<<
 *     '''See: `glUniform1f() on Kronos website
 *     <http://www.khronos.org/opengles/sdk/docs/man/xhtml/glUniform1f.xml>`_
*/

/* Python wrapper */
static PyObject *__pyx_pw_4kivy_8graphics_6opengl_219glUniform1f(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_4kivy_8graphics_6opengl_218glUniform1f, "glUniform1f(GLint location, GLfloat x)\n\nSee: `glUniform1f() on Kronos website\n<http://www.khronos.org/opengles/sdk/docs/man/xhtml/glUniform1f.xml>`_");
static PyMethodDef __pyx_mdef_4kivy_8graphics_6opengl_219glUniform1f = {"glUniform1f", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4kivy_8graphics_6opengl_219glUniform1f, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4kivy_8graphics_6opengl_218glUniform1f};
static PyObject *__pyx_pw_4kivy_8graphics_6opengl_219glUniform1f(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  GLint __pyx_v_location;
  GLfloat __pyx_v_x;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[2] = {0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("glUniform1f (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_location,&__pyx_mstate_global->__pyx_n_u_x,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(0, 1316, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 1316, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 1316, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "glUniform1f", 0) < (0)) __PYX_ERR(0, 1316, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 2; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("glUniform1f", 1, 2, 2, i); __PYX_ERR(0, 1316, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 2)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 1316, __pyx_L3_error)
      values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 1316, __pyx_L3_error)
    }
    __pyx_v_location = __Pyx_PyLong_As_GLint(values[0]); if (unlikely((__pyx_v_location == ((GLint)-1)) && PyErr_Occurred())) __PYX_ERR(0, 1316, __pyx_L3_error)
    __pyx_v_x = __Pyx_PyFloat_AsFloat(values[1]); if (unlikely((__pyx_v_x == ((GLfloat)-1)) && PyErr_Occurred())) __PYX_ERR(0, 1316, __pyx_L3_error)
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("glUniform1f", 1, 2, 2, __pyx_nargs); __PYX_ERR(0, 1316, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("kivy.graphics.opengl.glUniform1f", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4kivy_8graphics_6opengl_218glUniform1f(__pyx_self, __pyx_v_location, __pyx_v_x);

  /* function exit code */
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4kivy_8graphics_6opengl_218glUniform1f(CYTHON_UNUSED PyObject *__pyx_self, GLint __pyx_v_location, GLfloat __pyx_v_x) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("glUniform1f", 0);

  /* "kivy/graphics/opengl.pyx":1320
 *     <http://www.khronos.org/opengles/sdk/docs/man/xhtml/glUniform1f.xml>`_
 *     '''
 *     cgl.glUniform1f(location, x)             # <<<<<<<<<<<<<<
 * 
 * def glUniform1fv(GLint location, GLsizei count):#,  GLfloat* v):
*/
  __pyx_v_4kivy_8graphics_3cgl_cgl->glUniform1f(__pyx_v_location, __pyx_v_x); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 1320, __pyx_L1_error)

  /* "kivy/graphics/opengl.pyx":1316
 *                              format, type, <GLvoid *><char *>pixels)
 * 
 * def glUniform1f(GLint location, GLfloat x):             # <<<<<<<<<<<<<<
 *     '''See: `glUniform1f() on Kronos website
 *     <http://www.khronos.org/opengles/sdk/docs/man/xhtml/glUniform1f.xml>`_
*/

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

/* "kivy/graphics/opengl.pyx":1322
 *     cgl.glUniform1f(location, x)
 * 
 * def glUniform1fv(GLint location, GLsizei count):#,  GLfloat* v):             # <<<<<<<<<<<<<<
 *     '''See: `glUniform1fv() on Kronos website
 *     <http://www.khronos.org/opengles/sdk/docs/man/xhtml/glUniform1fv.xml>`_
*/

/* Python wrapper */
static PyObject *__pyx_pw_4kivy_8graphics_6opengl_221glUniform1fv(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_4kivy_8graphics_6opengl_220glUniform1fv, "glUniform1fv(GLint location, GLsizei count)\n\nSee: `glUniform1fv() on Kronos website\n<http://www.khronos.org/opengles/sdk/docs/man/xhtml/glUniform1fv.xml>`_\n\n.. warning:: Not implemented yet.");
static PyMethodDef __pyx_mdef_4kivy_8graphics_6opengl_221glUniform1fv = {"glUniform1fv", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4kivy_8graphics_6opengl_221glUniform1fv, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4kivy_8graphics_6opengl_220glUniform1fv};
static PyObject *__pyx_pw_4kivy_8graphics_6opengl_221glUniform1fv(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  CYTHON_UNUSED GLint __pyx_v_location;
  CYTHON_UNUSED GLsizei __pyx_v_count;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[2] = {0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("glUniform1fv (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_location,&__pyx_mstate_global->__pyx_n_u_count,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(0, 1322, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 1322, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 1322, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "glUniform1fv", 0) < (0)) __PYX_ERR(0, 1322, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 2; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("glUniform1fv", 1, 2, 2, i); __PYX_ERR(0, 1322, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 2)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 1322, __pyx_L3_error)
      values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 1322, __pyx_L3_error)
    }
    __pyx_v_location = __Pyx_PyLong_As_GLint(values[0]); if (unlikely((__pyx_v_location == ((GLint)-1)) && PyErr_Occurred())) __PYX_ERR(0, 1322, __pyx_L3_error)
    __pyx_v_count = __Pyx_PyLong_As_GLsizei(values[1]); if (unlikely((__pyx_v_count == ((GLsizei)-1)) && PyErr_Occurred())) __PYX_ERR(0, 1322, __pyx_L3_error)
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("glUniform1fv", 1, 2, 2, __pyx_nargs); __PYX_ERR(0, 1322, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("kivy.graphics.opengl.glUniform1fv", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4kivy_8graphics_6opengl_220glUniform1fv(__pyx_self, __pyx_v_location, __pyx_v_count);

  /* function exit code */
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4kivy_8graphics_6opengl_220glUniform1fv(CYTHON_UNUSED PyObject *__pyx_self, CYTHON_UNUSED GLint __pyx_v_location, CYTHON_UNUSED GLsizei __pyx_v_count) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("glUniform1fv", 0);

  /* "kivy/graphics/opengl.pyx":1329
 *     '''
 *     #cgl.glUniform1fv(location, count, v)
 *     raise NotImplementedError             # <<<<<<<<<<<<<<
 * 
 * def glUniform1i(GLint location, GLint x):
*/
  __Pyx_Raise(((PyObject *)(((PyTypeObject*)PyExc_NotImplementedError))), 0, 0, 0);
  __PYX_ERR(0, 1329, __pyx_L1_error)

  /* "kivy/graphics/opengl.pyx":1322
 *     cgl.glUniform1f(location, x)
 * 
 * def glUniform1fv(GLint location, GLsizei count):#,  GLfloat* v):             # <<<<<<<<<<<<<<
 *     '''See: `glUniform1fv() on Kronos website
 *     <http://www.khronos.org/opengles/sdk/docs/man/xhtml/glUniform1fv.xml>`_
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("kivy.graphics.opengl.glUniform1fv", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "kivy/graphics/opengl.pyx":1331
 *     raise NotImplementedError
 * 
 * def glUniform1i(GLint location, GLint x):             # <<<<<<<<<<<<<<
 *     '''See: `glUniform1i() on Kronos website
 *     <http://www.khronos.org/opengles/sdk/docs/man/xhtml/glUniform1i.xml>`_
*/

/* Python wrapper */
static PyObject *__pyx_pw_4kivy_8graphics_6opengl_223glUniform1i(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_4kivy_8graphics_6opengl_222glUniform1i, "glUniform1i(GLint location, GLint x)\n\nSee: `glUniform1i() on Kronos website\n<http://www.khronos.org/opengles/sdk/docs/man/xhtml/glUniform1i.xml>`_");
static PyMethodDef __pyx_mdef_4kivy_8graphics_6opengl_223glUniform1i = {"glUniform1i", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4kivy_8graphics_6opengl_223glUniform1i, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4kivy_8graphics_6opengl_222glUniform1i};
static PyObject *__pyx_pw_4kivy_8graphics_6opengl_223glUniform1i(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  GLint __pyx_v_location;
  GLint __pyx_v_x;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[2] = {0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("glUniform1i (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_location,&__pyx_mstate_global->__pyx_n_u_x,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(0, 1331, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 1331, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 1331, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "glUniform1i", 0) < (0)) __PYX_ERR(0, 1331, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 2; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("glUniform1i", 1, 2, 2, i); __PYX_ERR(0, 1331, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 2)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 1331, __pyx_L3_error)
      values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 1331, __pyx_L3_error)
    }
    __pyx_v_location = __Pyx_PyLong_As_GLint(values[0]); if (unlikely((__pyx_v_location == ((GLint)-1)) && PyErr_Occurred())) __PYX_ERR(0, 1331, __pyx_L3_error)
    __pyx_v_x = __Pyx_PyLong_As_GLint(values[1]); if (unlikely((__pyx_v_x == ((GLint)-1)) && PyErr_Occurred())) __PYX_ERR(0, 1331, __pyx_L3_error)
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("glUniform1i", 1, 2, 2, __pyx_nargs); __PYX_ERR(0, 1331, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("kivy.graphics.opengl.glUniform1i", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4kivy_8graphics_6opengl_222glUniform1i(__pyx_self, __pyx_v_location, __pyx_v_x);

  /* function exit code */
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4kivy_8graphics_6opengl_222glUniform1i(CYTHON_UNUSED PyObject *__pyx_self, GLint __pyx_v_location, GLint __pyx_v_x) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("glUniform1i", 0);

  /* "kivy/graphics/opengl.pyx":1335
 *     <http://www.khronos.org/opengles/sdk/docs/man/xhtml/glUniform1i.xml>`_
 *     '''
 *     cgl.glUniform1i(location, x)             # <<<<<<<<<<<<<<
 * 
 * def glUniform1iv(GLint location, GLsizei count):#,  GLint* v):
*/
  __pyx_v_4kivy_8graphics_3cgl_cgl->glUniform1i(__pyx_v_location, __pyx_v_x); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 1335, __pyx_L1_error)

  /* "kivy/graphics/opengl.pyx":1331
 *     raise NotImplementedError
 * 
 * def glUniform1i(GLint location, GLint x):             # <<<<<<<<<<<<<<
 *     '''See: `glUniform1i() on Kronos website
 *     <http://www.khronos.org/opengles/sdk/docs/man/xhtml/glUniform1i.xml>`_
*/

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

/* "kivy/graphics/opengl.pyx":1337
 *     cgl.glUniform1i(location, x)
 * 
 * def glUniform1iv(GLint location, GLsizei count):#,  GLint* v):             # <<<<<<<<<<<<<<
 *     '''See: `glUniform1iv() on Kronos website
 *     <http://www.khronos.org/opengles/sdk/docs/man/xhtml/glUniform1iv.xml>`_
*/

/* Python wrapper */
static PyObject *__pyx_pw_4kivy_8graphics_6opengl_225glUniform1iv(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_4kivy_8graphics_6opengl_224glUniform1iv, "glUniform1iv(GLint location, GLsizei count)\n\nSee: `glUniform1iv() on Kronos website\n<http://www.khronos.org/opengles/sdk/docs/man/xhtml/glUniform1iv.xml>`_\n\n.. warning:: Not implemented yet.");
static PyMethodDef __pyx_mdef_4kivy_8graphics_6opengl_225glUniform1iv = {"glUniform1iv", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4kivy_8graphics_6opengl_225glUniform1iv, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4kivy_8graphics_6opengl_224glUniform1iv};
static PyObject *__pyx_pw_4kivy_8graphics_6opengl_225glUniform1iv(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  CYTHON_UNUSED GLint __pyx_v_location;
  CYTHON_UNUSED GLsizei __pyx_v_count;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[2] = {0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("glUniform1iv (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_location,&__pyx_mstate_global->__pyx_n_u_count,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(0, 1337, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 1337, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 1337, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "glUniform1iv", 0) < (0)) __PYX_ERR(0, 1337, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 2; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("glUniform1iv", 1, 2, 2, i); __PYX_ERR(0, 1337, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 2)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 1337, __pyx_L3_error)
      values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 1337, __pyx_L3_error)
    }
    __pyx_v_location = __Pyx_PyLong_As_GLint(values[0]); if (unlikely((__pyx_v_location == ((GLint)-1)) && PyErr_Occurred())) __PYX_ERR(0, 1337, __pyx_L3_error)
    __pyx_v_count = __Pyx_PyLong_As_GLsizei(values[1]); if (unlikely((__pyx_v_count == ((GLsizei)-1)) && PyErr_Occurred())) __PYX_ERR(0, 1337, __pyx_L3_error)
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("glUniform1iv", 1, 2, 2, __pyx_nargs); __PYX_ERR(0, 1337, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("kivy.graphics.opengl.glUniform1iv", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4kivy_8graphics_6opengl_224glUniform1iv(__pyx_self, __pyx_v_location, __pyx_v_count);

  /* function exit code */
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4kivy_8graphics_6opengl_224glUniform1iv(CYTHON_UNUSED PyObject *__pyx_self, CYTHON_UNUSED GLint __pyx_v_location, CYTHON_UNUSED GLsizei __pyx_v_count) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("glUniform1iv", 0);

  /* "kivy/graphics/opengl.pyx":1344
 *     '''
 *     #cgl.glUniform1iv(location, count, v)
 *     raise NotImplementedError             # <<<<<<<<<<<<<<
 * 
 * def glUniform2f(GLint location, GLfloat x, GLfloat y):
*/
  __Pyx_Raise(((PyObject *)(((PyTypeObject*)PyExc_NotImplementedError))), 0, 0, 0);
  __PYX_ERR(0, 1344, __pyx_L1_error)

  /* "kivy/graphics/opengl.pyx":1337
 *     cgl.glUniform1i(location, x)
 * 
 * def glUniform1iv(GLint location, GLsizei count):#,  GLint* v):             # <<<<<<<<<<<<<<
 *     '''See: `glUniform1iv() on Kronos website
 *     <http://www.khronos.org/opengles/sdk/docs/man/xhtml/glUniform1iv.xml>`_
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("kivy.graphics.opengl.glUniform1iv", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "kivy/graphics/opengl.pyx":1346
 *     raise NotImplementedError
 * 
 * def glUniform2f(GLint location, GLfloat x, GLfloat y):             # <<<<<<<<<<<<<<
 *     '''See: `glUniform2f() on Kronos website
 *     <http://www.khronos.org/opengles/sdk/docs/man/xhtml/glUniform2f.xml>`_
*/

/* Python wrapper */
static PyObject *__pyx_pw_4kivy_8graphics_6opengl_227glUniform2f(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_4kivy_8graphics_6opengl_226glUniform2f, "glUniform2f(GLint location, GLfloat x, GLfloat y)\n\nSee: `glUniform2f() on Kronos website\n<http://www.khronos.org/opengles/sdk/docs/man/xhtml/glUniform2f.xml>`_");
static PyMethodDef __pyx_mdef_4kivy_8graphics_6opengl_227glUniform2f = {"glUniform2f", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4kivy_8graphics_6opengl_227glUniform2f, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4kivy_8graphics_6opengl_226glUniform2f};
static PyObject *__pyx_pw_4kivy_8graphics_6opengl_227glUniform2f(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  GLint __pyx_v_location;
  GLfloat __pyx_v_x;
  GLfloat __pyx_v_y;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[3] = {0,0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("glUniform2f (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_location,&__pyx_mstate_global->__pyx_n_u_x,&__pyx_mstate_global->__pyx_n_u_y,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(0, 1346, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  3:
        values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(0, 1346, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 1346, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 1346, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "glUniform2f", 0) < (0)) __PYX_ERR(0, 1346, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 3; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("glUniform2f", 1, 3, 3, i); __PYX_ERR(0, 1346, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 3)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 1346, __pyx_L3_error)
      values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 1346, __pyx_L3_error)
      values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(0, 1346, __pyx_L3_error)
    }
    __pyx_v_location = __Pyx_PyLong_As_GLint(values[0]); if (unlikely((__pyx_v_location == ((GLint)-1)) && PyErr_Occurred())) __PYX_ERR(0, 1346, __pyx_L3_error)
    __pyx_v_x = __Pyx_PyFloat_AsFloat(values[1]); if (unlikely((__pyx_v_x == ((GLfloat)-1)) && PyErr_Occurred())) __PYX_ERR(0, 1346, __pyx_L3_error)
    __pyx_v_y = __Pyx_PyFloat_AsFloat(values[2]); if (unlikely((__pyx_v_y == ((GLfloat)-1)) && PyErr_Occurred())) __PYX_ERR(0, 1346, __pyx_L3_error)
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("glUniform2f", 1, 3, 3, __pyx_nargs); __PYX_ERR(0, 1346, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("kivy.graphics.opengl.glUniform2f", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4kivy_8graphics_6opengl_226glUniform2f(__pyx_self, __pyx_v_location, __pyx_v_x, __pyx_v_y);

  /* function exit code */
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4kivy_8graphics_6opengl_226glUniform2f(CYTHON_UNUSED PyObject *__pyx_self, GLint __pyx_v_location, GLfloat __pyx_v_x, GLfloat __pyx_v_y) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("glUniform2f", 0);

  /* "kivy/graphics/opengl.pyx":1350
 *     <http://www.khronos.org/opengles/sdk/docs/man/xhtml/glUniform2f.xml>`_
 *     '''
 *     cgl.glUniform2f(location, x, y)             # <<<<<<<<<<<<<<
 * 
 * def glUniform2fv(GLint location, GLsizei count):#,  GLfloat* v):
*/
  __pyx_v_4kivy_8graphics_3cgl_cgl->glUniform2f(__pyx_v_location, __pyx_v_x, __pyx_v_y); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 1350, __pyx_L1_error)

  /* "kivy/graphics/opengl.pyx":1346
 *     raise NotImplementedError
 * 
 * def glUniform2f(GLint location, GLfloat x, GLfloat y):             # <<<<<<<<<<<<<<
 *     '''See: `glUniform2f() on Kronos website
 *     <http://www.khronos.org/opengles/sdk/docs/man/xhtml/glUniform2f.xml>`_
*/

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

/* "kivy/graphics/opengl.pyx":1352
 *     cgl.glUniform2f(location, x, y)
 * 
 * def glUniform2fv(GLint location, GLsizei count):#,  GLfloat* v):             # <<<<<<<<<<<<<<
 *     '''See: `glUniform2fv() on Kronos website
 *     <http://www.khronos.org/opengles/sdk/docs/man/xhtml/glUniform2fv.xml>`_
*/

/* Python wrapper */
static PyObject *__pyx_pw_4kivy_8graphics_6opengl_229glUniform2fv(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_4kivy_8graphics_6opengl_228glUniform2fv, "glUniform2fv(GLint location, GLsizei count)\n\nSee: `glUniform2fv() on Kronos website\n<http://www.khronos.org/opengles/sdk/docs/man/xhtml/glUniform2fv.xml>`_\n\n.. warning:: Not implemented yet.");
static PyMethodDef __pyx_mdef_4kivy_8graphics_6opengl_229glUniform2fv = {"glUniform2fv", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4kivy_8graphics_6opengl_229glUniform2fv, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4kivy_8graphics_6opengl_228glUniform2fv};
static PyObject *__pyx_pw_4kivy_8graphics_6opengl_229glUniform2fv(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  CYTHON_UNUSED GLint __pyx_v_location;
  CYTHON_UNUSED GLsizei __pyx_v_count;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[2] = {0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("glUniform2fv (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_location,&__pyx_mstate_global->__pyx_n_u_count,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(0, 1352, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 1352, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 1352, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "glUniform2fv", 0) < (0)) __PYX_ERR(0, 1352, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 2; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("glUniform2fv", 1, 2, 2, i); __PYX_ERR(0, 1352, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 2)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 1352, __pyx_L3_error)
      values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 1352, __pyx_L3_error)
    }
    __pyx_v_location = __Pyx_PyLong_As_GLint(values[0]); if (unlikely((__pyx_v_location == ((GLint)-1)) && PyErr_Occurred())) __PYX_ERR(0, 1352, __pyx_L3_error)
    __pyx_v_count = __Pyx_PyLong_As_GLsizei(values[1]); if (unlikely((__pyx_v_count == ((GLsizei)-1)) && PyErr_Occurred())) __PYX_ERR(0, 1352, __pyx_L3_error)
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("glUniform2fv", 1, 2, 2, __pyx_nargs); __PYX_ERR(0, 1352, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("kivy.graphics.opengl.glUniform2fv", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4kivy_8graphics_6opengl_228glUniform2fv(__pyx_self, __pyx_v_location, __pyx_v_count);

  /* function exit code */
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4kivy_8graphics_6opengl_228glUniform2fv(CYTHON_UNUSED PyObject *__pyx_self, CYTHON_UNUSED GLint __pyx_v_location, CYTHON_UNUSED GLsizei __pyx_v_count) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("glUniform2fv", 0);

  /* "kivy/graphics/opengl.pyx":1359
 *     '''
 *     #cgl.glUniform2fv(location, count, v)
 *     raise NotImplementedError             # <<<<<<<<<<<<<<
 * 
 * def glUniform2i(GLint location, GLint x, GLint y):
*/
  __Pyx_Raise(((PyObject *)(((PyTypeObject*)PyExc_NotImplementedError))), 0, 0, 0);
  __PYX_ERR(0, 1359, __pyx_L1_error)

  /* "kivy/graphics/opengl.pyx":1352
 *     cgl.glUniform2f(location, x, y)
 * 
 * def glUniform2fv(GLint location, GLsizei count):#,  GLfloat* v):             # <<<<<<<<<<<<<<
 *     '''See: `glUniform2fv() on Kronos website
 *     <http://www.khronos.org/opengles/sdk/docs/man/xhtml/glUniform2fv.xml>`_
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("kivy.graphics.opengl.glUniform2fv", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "kivy/graphics/opengl.pyx":1361
 *     raise NotImplementedError
 * 
 * def glUniform2i(GLint location, GLint x, GLint y):             # <<<<<<<<<<<<<<
 *     '''See: `glUniform2i() on Kronos website
 *     <http://www.khronos.org/opengles/sdk/docs/man/xhtml/glUniform2i.xml>`_
*/

/* Python wrapper */
static PyObject *__pyx_pw_4kivy_8graphics_6opengl_231glUniform2i(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_4kivy_8graphics_6opengl_230glUniform2i, "glUniform2i(GLint location, GLint x, GLint y)\n\nSee: `glUniform2i() on Kronos website\n<http://www.khronos.org/opengles/sdk/docs/man/xhtml/glUniform2i.xml>`_");
static PyMethodDef __pyx_mdef_4kivy_8graphics_6opengl_231glUniform2i = {"glUniform2i", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4kivy_8graphics_6opengl_231glUniform2i, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4kivy_8graphics_6opengl_230glUniform2i};
static PyObject *__pyx_pw_4kivy_8graphics_6opengl_231glUniform2i(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  GLint __pyx_v_location;
  GLint __pyx_v_x;
  GLint __pyx_v_y;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[3] = {0,0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("glUniform2i (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_location,&__pyx_mstate_global->__pyx_n_u_x,&__pyx_mstate_global->__pyx_n_u_y,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(0, 1361, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  3:
        values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(0, 1361, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 1361, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 1361, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "glUniform2i", 0) < (0)) __PYX_ERR(0, 1361, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 3; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("glUniform2i", 1, 3, 3, i); __PYX_ERR(0, 1361, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 3)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 1361, __pyx_L3_error)
      values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 1361, __pyx_L3_error)
      values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(0, 1361, __pyx_L3_error)
    }
    __pyx_v_location = __Pyx_PyLong_As_GLint(values[0]); if (unlikely((__pyx_v_location == ((GLint)-1)) && PyErr_Occurred())) __PYX_ERR(0, 1361, __pyx_L3_error)
    __pyx_v_x = __Pyx_PyLong_As_GLint(values[1]); if (unlikely((__pyx_v_x == ((GLint)-1)) && PyErr_Occurred())) __PYX_ERR(0, 1361, __pyx_L3_error)
    __pyx_v_y = __Pyx_PyLong_As_GLint(values[2]); if (unlikely((__pyx_v_y == ((GLint)-1)) && PyErr_Occurred())) __PYX_ERR(0, 1361, __pyx_L3_error)
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("glUniform2i", 1, 3, 3, __pyx_nargs); __PYX_ERR(0, 1361, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("kivy.graphics.opengl.glUniform2i", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4kivy_8graphics_6opengl_230glUniform2i(__pyx_self, __pyx_v_location, __pyx_v_x, __pyx_v_y);

  /* function exit code */
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4kivy_8graphics_6opengl_230glUniform2i(CYTHON_UNUSED PyObject *__pyx_self, GLint __pyx_v_location, GLint __pyx_v_x, GLint __pyx_v_y) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("glUniform2i", 0);

  /* "kivy/graphics/opengl.pyx":1365
 *     <http://www.khronos.org/opengles/sdk/docs/man/xhtml/glUniform2i.xml>`_
 *     '''
 *     cgl.glUniform2i(location, x, y)             # <<<<<<<<<<<<<<
 * 
 * def glUniform2iv(GLint location, GLsizei count):#,  GLint* v):
*/
  __pyx_v_4kivy_8graphics_3cgl_cgl->glUniform2i(__pyx_v_location, __pyx_v_x, __pyx_v_y); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 1365, __pyx_L1_error)

  /* "kivy/graphics/opengl.pyx":1361
 *     raise NotImplementedError
 * 
 * def glUniform2i(GLint location, GLint x, GLint y):             # <<<<<<<<<<<<<<
 *     '''See: `glUniform2i() on Kronos website
 *     <http://www.khronos.org/opengles/sdk/docs/man/xhtml/glUniform2i.xml>`_
*/

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

/* "kivy/graphics/opengl.pyx":1367
 *     cgl.glUniform2i(location, x, y)
 * 
 * def glUniform2iv(GLint location, GLsizei count):#,  GLint* v):             # <<<<<<<<<<<<<<
 *     '''See: `glUniform2iv() on Kronos website
 *     <http://www.khronos.org/opengles/sdk/docs/man/xhtml/glUniform2iv.xml>`_
*/

/* Python wrapper */
static PyObject *__pyx_pw_4kivy_8graphics_6opengl_233glUniform2iv(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_4kivy_8graphics_6opengl_232glUniform2iv, "glUniform2iv(GLint location, GLsizei count)\n\nSee: `glUniform2iv() on Kronos website\n<http://www.khronos.org/opengles/sdk/docs/man/xhtml/glUniform2iv.xml>`_\n\n.. warning:: Not implemented yet.");
static PyMethodDef __pyx_mdef_4kivy_8graphics_6opengl_233glUniform2iv = {"glUniform2iv", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4kivy_8graphics_6opengl_233glUniform2iv, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4kivy_8graphics_6opengl_232glUniform2iv};
static PyObject *__pyx_pw_4kivy_8graphics_6opengl_233glUniform2iv(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  CYTHON_UNUSED GLint __pyx_v_location;
  CYTHON_UNUSED GLsizei __pyx_v_count;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[2] = {0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("glUniform2iv (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_location,&__pyx_mstate_global->__pyx_n_u_count,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(0, 1367, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 1367, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 1367, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "glUniform2iv", 0) < (0)) __PYX_ERR(0, 1367, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 2; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("glUniform2iv", 1, 2, 2, i); __PYX_ERR(0, 1367, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 2)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 1367, __pyx_L3_error)
      values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 1367, __pyx_L3_error)
    }
    __pyx_v_location = __Pyx_PyLong_As_GLint(values[0]); if (unlikely((__pyx_v_location == ((GLint)-1)) && PyErr_Occurred())) __PYX_ERR(0, 1367, __pyx_L3_error)
    __pyx_v_count = __Pyx_PyLong_As_GLsizei(values[1]); if (unlikely((__pyx_v_count == ((GLsizei)-1)) && PyErr_Occurred())) __PYX_ERR(0, 1367, __pyx_L3_error)
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("glUniform2iv", 1, 2, 2, __pyx_nargs); __PYX_ERR(0, 1367, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("kivy.graphics.opengl.glUniform2iv", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4kivy_8graphics_6opengl_232glUniform2iv(__pyx_self, __pyx_v_location, __pyx_v_count);

  /* function exit code */
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4kivy_8graphics_6opengl_232glUniform2iv(CYTHON_UNUSED PyObject *__pyx_self, CYTHON_UNUSED GLint __pyx_v_location, CYTHON_UNUSED GLsizei __pyx_v_count) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("glUniform2iv", 0);

  /* "kivy/graphics/opengl.pyx":1374
 *     '''
 *     #cgl.glUniform2iv(location, count, v)
 *     raise NotImplementedError             # <<<<<<<<<<<<<<
 * 
 * def glUniform3f(GLint location, GLfloat x, GLfloat y, GLfloat z):
*/
  __Pyx_Raise(((PyObject *)(((PyTypeObject*)PyExc_NotImplementedError))), 0, 0, 0);
  __PYX_ERR(0, 1374, __pyx_L1_error)

  /* "kivy/graphics/opengl.pyx":1367
 *     cgl.glUniform2i(location, x, y)
 * 
 * def glUniform2iv(GLint location, GLsizei count):#,  GLint* v):             # <<<<<<<<<<<<<<
 *     '''See: `glUniform2iv() on Kronos website
 *     <http://www.khronos.org/opengles/sdk/docs/man/xhtml/glUniform2iv.xml>`_
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("kivy.graphics.opengl.glUniform2iv", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "kivy/graphics/opengl.pyx":1376
 *     raise NotImplementedError
 * 
 * def glUniform3f(GLint location, GLfloat x, GLfloat y, GLfloat z):             # <<<<<<<<<<<<<<
 *     '''See: `glUniform3f() on Kronos website
 *     <http://www.khronos.org/opengles/sdk/docs/man/xhtml/glUniform3f.xml>`_
*/

/* Python wrapper */
static PyObject *__pyx_pw_4kivy_8graphics_6opengl_235glUniform3f(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_4kivy_8graphics_6opengl_234glUniform3f, "glUniform3f(GLint location, GLfloat x, GLfloat y, GLfloat z)\n\nSee: `glUniform3f() on Kronos website\n<http://www.khronos.org/opengles/sdk/docs/man/xhtml/glUniform3f.xml>`_");
static PyMethodDef __pyx_mdef_4kivy_8graphics_6opengl_235glUniform3f = {"glUniform3f", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4kivy_8graphics_6opengl_235glUniform3f, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4kivy_8graphics_6opengl_234glUniform3f};
static PyObject *__pyx_pw_4kivy_8graphics_6opengl_235glUniform3f(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  GLint __pyx_v_location;
  GLfloat __pyx_v_x;
  GLfloat __pyx_v_y;
  GLfloat __pyx_v_z;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[4] = {0,0,0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("glUniform3f (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_location,&__pyx_mstate_global->__pyx_n_u_x,&__pyx_mstate_global->__pyx_n_u_y,&__pyx_mstate_global->__pyx_n_u_z,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(0, 1376, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  4:
        values[3] = __Pyx_ArgRef_FASTCALL(__pyx_args, 3);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[3])) __PYX_ERR(0, 1376, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  3:
        values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(0, 1376, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 1376, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 1376, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "glUniform3f", 0) < (0)) __PYX_ERR(0, 1376, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 4; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("glUniform3f", 1, 4, 4, i); __PYX_ERR(0, 1376, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 4)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 1376, __pyx_L3_error)
      values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 1376, __pyx_L3_error)
      values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(0, 1376, __pyx_L3_error)
      values[3] = __Pyx_ArgRef_FASTCALL(__pyx_args, 3);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[3])) __PYX_ERR(0, 1376, __pyx_L3_error)
    }
    __pyx_v_location = __Pyx_PyLong_As_GLint(values[0]); if (unlikely((__pyx_v_location == ((GLint)-1)) && PyErr_Occurred())) __PYX_ERR(0, 1376, __pyx_L3_error)
    __pyx_v_x = __Pyx_PyFloat_AsFloat(values[1]); if (unlikely((__pyx_v_x == ((GLfloat)-1)) && PyErr_Occurred())) __PYX_ERR(0, 1376, __pyx_L3_error)
    __pyx_v_y = __Pyx_PyFloat_AsFloat(values[2]); if (unlikely((__pyx_v_y == ((GLfloat)-1)) && PyErr_Occurred())) __PYX_ERR(0, 1376, __pyx_L3_error)
    __pyx_v_z = __Pyx_PyFloat_AsFloat(values[3]); if (unlikely((__pyx_v_z == ((GLfloat)-1)) && PyErr_Occurred())) __PYX_ERR(0, 1376, __pyx_L3_error)
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("glUniform3f", 1, 4, 4, __pyx_nargs); __PYX_ERR(0, 1376, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("kivy.graphics.opengl.glUniform3f", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4kivy_8graphics_6opengl_234glUniform3f(__pyx_self, __pyx_v_location, __pyx_v_x, __pyx_v_y, __pyx_v_z);

  /* function exit code */
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4kivy_8graphics_6opengl_234glUniform3f(CYTHON_UNUSED PyObject *__pyx_self, GLint __pyx_v_location, GLfloat __pyx_v_x, GLfloat __pyx_v_y, GLfloat __pyx_v_z) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("glUniform3f", 0);

  /* "kivy/graphics/opengl.pyx":1380
 *     <http://www.khronos.org/opengles/sdk/docs/man/xhtml/glUniform3f.xml>`_
 *     '''
 *     cgl.glUniform3f(location, x, y, z)             # <<<<<<<<<<<<<<
 * 
 * def glUniform3fv(GLint location, GLsizei count):#,  GLfloat* v):
*/
  __pyx_v_4kivy_8graphics_3cgl_cgl->glUniform3f(__pyx_v_location, __pyx_v_x, __pyx_v_y, __pyx_v_z); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 1380, __pyx_L1_error)

  /* "kivy/graphics/opengl.pyx":1376
 *     raise NotImplementedError
 * 
 * def glUniform3f(GLint location, GLfloat x, GLfloat y, GLfloat z):             # <<<<<<<<<<<<<<
 *     '''See: `glUniform3f() on Kronos website
 *     <http://www.khronos.org/opengles/sdk/docs/man/xhtml/glUniform3f.xml>`_
*/

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

/* "kivy/graphics/opengl.pyx":1382
 *     cgl.glUniform3f(location, x, y, z)
 * 
 * def glUniform3fv(GLint location, GLsizei count):#,  GLfloat* v):             # <<<<<<<<<<<<<<
 *     '''See: `glUniform3fv() on Kronos website
 *     <http://www.khronos.org/opengles/sdk/docs/man/xhtml/glUniform3fv.xml>`_
*/

/* Python wrapper */
static PyObject *__pyx_pw_4kivy_8graphics_6opengl_237glUniform3fv(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_4kivy_8graphics_6opengl_236glUniform3fv, "glUniform3fv(GLint location, GLsizei count)\n\nSee: `glUniform3fv() on Kronos website\n<http://www.khronos.org/opengles/sdk/docs/man/xhtml/glUniform3fv.xml>`_\n\n.. warning:: Not implemented yet.");
static PyMethodDef __pyx_mdef_4kivy_8graphics_6opengl_237glUniform3fv = {"glUniform3fv", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4kivy_8graphics_6opengl_237glUniform3fv, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4kivy_8graphics_6opengl_236glUniform3fv};
static PyObject *__pyx_pw_4kivy_8graphics_6opengl_237glUniform3fv(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  CYTHON_UNUSED GLint __pyx_v_location;
  CYTHON_UNUSED GLsizei __pyx_v_count;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[2] = {0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("glUniform3fv (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_location,&__pyx_mstate_global->__pyx_n_u_count,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(0, 1382, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 1382, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 1382, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "glUniform3fv", 0) < (0)) __PYX_ERR(0, 1382, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 2; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("glUniform3fv", 1, 2, 2, i); __PYX_ERR(0, 1382, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 2)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 1382, __pyx_L3_error)
      values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 1382, __pyx_L3_error)
    }
    __pyx_v_location = __Pyx_PyLong_As_GLint(values[0]); if (unlikely((__pyx_v_location == ((GLint)-1)) && PyErr_Occurred())) __PYX_ERR(0, 1382, __pyx_L3_error)
    __pyx_v_count = __Pyx_PyLong_As_GLsizei(values[1]); if (unlikely((__pyx_v_count == ((GLsizei)-1)) && PyErr_Occurred())) __PYX_ERR(0, 1382, __pyx_L3_error)
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("glUniform3fv", 1, 2, 2, __pyx_nargs); __PYX_ERR(0, 1382, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("kivy.graphics.opengl.glUniform3fv", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4kivy_8graphics_6opengl_236glUniform3fv(__pyx_self, __pyx_v_location, __pyx_v_count);

  /* function exit code */
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4kivy_8graphics_6opengl_236glUniform3fv(CYTHON_UNUSED PyObject *__pyx_self, CYTHON_UNUSED GLint __pyx_v_location, CYTHON_UNUSED GLsizei __pyx_v_count) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("glUniform3fv", 0);

  /* "kivy/graphics/opengl.pyx":1389
 *     '''
 *     #cgl.glUniform3fv(location, count, v)
 *     raise NotImplementedError             # <<<<<<<<<<<<<<
 * 
 * def glUniform3i(GLint location, GLint x, GLint y, GLint z):
*/
  __Pyx_Raise(((PyObject *)(((PyTypeObject*)PyExc_NotImplementedError))), 0, 0, 0);
  __PYX_ERR(0, 1389, __pyx_L1_error)

  /* "kivy/graphics/opengl.pyx":1382
 *     cgl.glUniform3f(location, x, y, z)
 * 
 * def glUniform3fv(GLint location, GLsizei count):#,  GLfloat* v):             # <<<<<<<<<<<<<<
 *     '''See: `glUniform3fv() on Kronos website
 *     <http://www.khronos.org/opengles/sdk/docs/man/xhtml/glUniform3fv.xml>`_
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("kivy.graphics.opengl.glUniform3fv", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "kivy/graphics/opengl.pyx":1391
 *     raise NotImplementedError
 * 
 * def glUniform3i(GLint location, GLint x, GLint y, GLint z):             # <<<<<<<<<<<<<<
 *     '''See: `glUniform3i() on Kronos website
 *     <http://www.khronos.org/opengles/sdk/docs/man/xhtml/glUniform3i.xml>`_
*/

/* Python wrapper */
static PyObject *__pyx_pw_4kivy_8graphics_6opengl_239glUniform3i(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_4kivy_8graphics_6opengl_238glUniform3i, "glUniform3i(GLint location, GLint x, GLint y, GLint z)\n\nSee: `glUniform3i() on Kronos website\n<http://www.khronos.org/opengles/sdk/docs/man/xhtml/glUniform3i.xml>`_");
static PyMethodDef __pyx_mdef_4kivy_8graphics_6opengl_239glUniform3i = {"glUniform3i", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4kivy_8graphics_6opengl_239glUniform3i, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4kivy_8graphics_6opengl_238glUniform3i};
static PyObject *__pyx_pw_4kivy_8graphics_6opengl_239glUniform3i(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  GLint __pyx_v_location;
  GLint __pyx_v_x;
  GLint __pyx_v_y;
  GLint __pyx_v_z;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[4] = {0,0,0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("glUniform3i (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_location,&__pyx_mstate_global->__pyx_n_u_x,&__pyx_mstate_global->__pyx_n_u_y,&__pyx_mstate_global->__pyx_n_u_z,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(0, 1391, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  4:
        values[3] = __Pyx_ArgRef_FASTCALL(__pyx_args, 3);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[3])) __PYX_ERR(0, 1391, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  3:
        values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(0, 1391, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 1391, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 1391, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "glUniform3i", 0) < (0)) __PYX_ERR(0, 1391, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 4; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("glUniform3i", 1, 4, 4, i); __PYX_ERR(0, 1391, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 4)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 1391, __pyx_L3_error)
      values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 1391, __pyx_L3_error)
      values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(0, 1391, __pyx_L3_error)
      values[3] = __Pyx_ArgRef_FASTCALL(__pyx_args, 3);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[3])) __PYX_ERR(0, 1391, __pyx_L3_error)
    }
    __pyx_v_location = __Pyx_PyLong_As_GLint(values[0]); if (unlikely((__pyx_v_location == ((GLint)-1)) && PyErr_Occurred())) __PYX_ERR(0, 1391, __pyx_L3_error)
    __pyx_v_x = __Pyx_PyLong_As_GLint(values[1]); if (unlikely((__pyx_v_x == ((GLint)-1)) && PyErr_Occurred())) __PYX_ERR(0, 1391, __pyx_L3_error)
    __pyx_v_y = __Pyx_PyLong_As_GLint(values[2]); if (unlikely((__pyx_v_y == ((GLint)-1)) && PyErr_Occurred())) __PYX_ERR(0, 1391, __pyx_L3_error)
    __pyx_v_z = __Pyx_PyLong_As_GLint(values[3]); if (unlikely((__pyx_v_z == ((GLint)-1)) && PyErr_Occurred())) __PYX_ERR(0, 1391, __pyx_L3_error)
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("glUniform3i", 1, 4, 4, __pyx_nargs); __PYX_ERR(0, 1391, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("kivy.graphics.opengl.glUniform3i", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4kivy_8graphics_6opengl_238glUniform3i(__pyx_self, __pyx_v_location, __pyx_v_x, __pyx_v_y, __pyx_v_z);

  /* function exit code */
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4kivy_8graphics_6opengl_238glUniform3i(CYTHON_UNUSED PyObject *__pyx_self, GLint __pyx_v_location, GLint __pyx_v_x, GLint __pyx_v_y, GLint __pyx_v_z) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("glUniform3i", 0);

  /* "kivy/graphics/opengl.pyx":1395
 *     <http://www.khronos.org/opengles/sdk/docs/man/xhtml/glUniform3i.xml>`_
 *     '''
 *     cgl.glUniform3i(location, x, y, z)             # <<<<<<<<<<<<<<
 * 
 * def glUniform3iv(GLint location, GLsizei count):#,  GLint* v):
*/
  __pyx_v_4kivy_8graphics_3cgl_cgl->glUniform3i(__pyx_v_location, __pyx_v_x, __pyx_v_y, __pyx_v_z); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 1395, __pyx_L1_error)

  /* "kivy/graphics/opengl.pyx":1391
 *     raise NotImplementedError
 * 
 * def glUniform3i(GLint location, GLint x, GLint y, GLint z):             # <<<<<<<<<<<<<<
 *     '''See: `glUniform3i() on Kronos website
 *     <http://www.khronos.org/opengles/sdk/docs/man/xhtml/glUniform3i.xml>`_
*/

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

/* "kivy/graphics/opengl.pyx":1397
 *     cgl.glUniform3i(location, x, y, z)
 * 
 * def glUniform3iv(GLint location, GLsizei count):#,  GLint* v):             # <<<<<<<<<<<<<<
 *     '''See: `glUniform3iv() on Kronos website
 *     <http://www.khronos.org/opengles/sdk/docs/man/xhtml/glUniform3iv.xml>`_
*/

/* Python wrapper */
static PyObject *__pyx_pw_4kivy_8graphics_6opengl_241glUniform3iv(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_4kivy_8graphics_6opengl_240glUniform3iv, "glUniform3iv(GLint location, GLsizei count)\n\nSee: `glUniform3iv() on Kronos website\n<http://www.khronos.org/opengles/sdk/docs/man/xhtml/glUniform3iv.xml>`_\n\n.. warning:: Not implemented yet.");
static PyMethodDef __pyx_mdef_4kivy_8graphics_6opengl_241glUniform3iv = {"glUniform3iv", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4kivy_8graphics_6opengl_241glUniform3iv, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4kivy_8graphics_6opengl_240glUniform3iv};
static PyObject *__pyx_pw_4kivy_8graphics_6opengl_241glUniform3iv(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  CYTHON_UNUSED GLint __pyx_v_location;
  CYTHON_UNUSED GLsizei __pyx_v_count;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[2] = {0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("glUniform3iv (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_location,&__pyx_mstate_global->__pyx_n_u_count,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(0, 1397, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 1397, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 1397, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "glUniform3iv", 0) < (0)) __PYX_ERR(0, 1397, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 2; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("glUniform3iv", 1, 2, 2, i); __PYX_ERR(0, 1397, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 2)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 1397, __pyx_L3_error)
      values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 1397, __pyx_L3_error)
    }
    __pyx_v_location = __Pyx_PyLong_As_GLint(values[0]); if (unlikely((__pyx_v_location == ((GLint)-1)) && PyErr_Occurred())) __PYX_ERR(0, 1397, __pyx_L3_error)
    __pyx_v_count = __Pyx_PyLong_As_GLsizei(values[1]); if (unlikely((__pyx_v_count == ((GLsizei)-1)) && PyErr_Occurred())) __PYX_ERR(0, 1397, __pyx_L3_error)
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("glUniform3iv", 1, 2, 2, __pyx_nargs); __PYX_ERR(0, 1397, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("kivy.graphics.opengl.glUniform3iv", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4kivy_8graphics_6opengl_240glUniform3iv(__pyx_self, __pyx_v_location, __pyx_v_count);

  /* function exit code */
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4kivy_8graphics_6opengl_240glUniform3iv(CYTHON_UNUSED PyObject *__pyx_self, CYTHON_UNUSED GLint __pyx_v_location, CYTHON_UNUSED GLsizei __pyx_v_count) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("glUniform3iv", 0);

  /* "kivy/graphics/opengl.pyx":1404
 *     '''
 *     #cgl.glUniform3iv(location, count, v)
 *     raise NotImplementedError             # <<<<<<<<<<<<<<
 * 
 * def glUniform4f(GLint location, GLfloat x, GLfloat y, GLfloat z, GLfloat w):
*/
  __Pyx_Raise(((PyObject *)(((PyTypeObject*)PyExc_NotImplementedError))), 0, 0, 0);
  __PYX_ERR(0, 1404, __pyx_L1_error)

  /* "kivy/graphics/opengl.pyx":1397
 *     cgl.glUniform3i(location, x, y, z)
 * 
 * def glUniform3iv(GLint location, GLsizei count):#,  GLint* v):             # <<<<<<<<<<<<<<
 *     '''See: `glUniform3iv() on Kronos website
 *     <http://www.khronos.org/opengles/sdk/docs/man/xhtml/glUniform3iv.xml>`_
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("kivy.graphics.opengl.glUniform3iv", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "kivy/graphics/opengl.pyx":1406
 *     raise NotImplementedError
 * 
 * def glUniform4f(GLint location, GLfloat x, GLfloat y, GLfloat z, GLfloat w):             # <<<<<<<<<<<<<<
 *     '''See: `glUniform4f() on Kronos website
 *     <http://www.khronos.org/opengles/sdk/docs/man/xhtml/glUniform4f.xml>`_
*/

/* Python wrapper */
static PyObject *__pyx_pw_4kivy_8graphics_6opengl_243glUniform4f(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_4kivy_8graphics_6opengl_242glUniform4f, "glUniform4f(GLint location, GLfloat x, GLfloat y, GLfloat z, GLfloat w)\n\nSee: `glUniform4f() on Kronos website\n<http://www.khronos.org/opengles/sdk/docs/man/xhtml/glUniform4f.xml>`_\n\n.. warning:: Not implemented yet.");
static PyMethodDef __pyx_mdef_4kivy_8graphics_6opengl_243glUniform4f = {"glUniform4f", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4kivy_8graphics_6opengl_243glUniform4f, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4kivy_8graphics_6opengl_242glUniform4f};
static PyObject *__pyx_pw_4kivy_8graphics_6opengl_243glUniform4f(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  GLint __pyx_v_location;
  GLfloat __pyx_v_x;
  GLfloat __pyx_v_y;
  GLfloat __pyx_v_z;
  GLfloat __pyx_v_w;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[5] = {0,0,0,0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("glUniform4f (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_location,&__pyx_mstate_global->__pyx_n_u_x,&__pyx_mstate_global->__pyx_n_u_y,&__pyx_mstate_global->__pyx_n_u_z,&__pyx_mstate_global->__pyx_n_u_w,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(0, 1406, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  5:
        values[4] = __Pyx_ArgRef_FASTCALL(__pyx_args, 4);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[4])) __PYX_ERR(0, 1406, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  4:
        values[3] = __Pyx_ArgRef_FASTCALL(__pyx_args, 3);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[3])) __PYX_ERR(0, 1406, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  3:
        values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(0, 1406, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 1406, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 1406, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "glUniform4f", 0) < (0)) __PYX_ERR(0, 1406, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 5; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("glUniform4f", 1, 5, 5, i); __PYX_ERR(0, 1406, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 5)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 1406, __pyx_L3_error)
      values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 1406, __pyx_L3_error)
      values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(0, 1406, __pyx_L3_error)
      values[3] = __Pyx_ArgRef_FASTCALL(__pyx_args, 3);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[3])) __PYX_ERR(0, 1406, __pyx_L3_error)
      values[4] = __Pyx_ArgRef_FASTCALL(__pyx_args, 4);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[4])) __PYX_ERR(0, 1406, __pyx_L3_error)
    }
    __pyx_v_location = __Pyx_PyLong_As_GLint(values[0]); if (unlikely((__pyx_v_location == ((GLint)-1)) && PyErr_Occurred())) __PYX_ERR(0, 1406, __pyx_L3_error)
    __pyx_v_x = __Pyx_PyFloat_AsFloat(values[1]); if (unlikely((__pyx_v_x == ((GLfloat)-1)) && PyErr_Occurred())) __PYX_ERR(0, 1406, __pyx_L3_error)
    __pyx_v_y = __Pyx_PyFloat_AsFloat(values[2]); if (unlikely((__pyx_v_y == ((GLfloat)-1)) && PyErr_Occurred())) __PYX_ERR(0, 1406, __pyx_L3_error)
    __pyx_v_z = __Pyx_PyFloat_AsFloat(values[3]); if (unlikely((__pyx_v_z == ((GLfloat)-1)) && PyErr_Occurred())) __PYX_ERR(0, 1406, __pyx_L3_error)
    __pyx_v_w = __Pyx_PyFloat_AsFloat(values[4]); if (unlikely((__pyx_v_w == ((GLfloat)-1)) && PyErr_Occurred())) __PYX_ERR(0, 1406, __pyx_L3_error)
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("glUniform4f", 1, 5, 5, __pyx_nargs); __PYX_ERR(0, 1406, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("kivy.graphics.opengl.glUniform4f", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4kivy_8graphics_6opengl_242glUniform4f(__pyx_self, __pyx_v_location, __pyx_v_x, __pyx_v_y, __pyx_v_z, __pyx_v_w);

  /* function exit code */
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4kivy_8graphics_6opengl_242glUniform4f(CYTHON_UNUSED PyObject *__pyx_self, GLint __pyx_v_location, GLfloat __pyx_v_x, GLfloat __pyx_v_y, GLfloat __pyx_v_z, GLfloat __pyx_v_w) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("glUniform4f", 0);

  /* "kivy/graphics/opengl.pyx":1412
 *     .. warning:: Not implemented yet.
 *     '''
 *     cgl.glUniform4f(location, x, y, z, w)             # <<<<<<<<<<<<<<
 * 
 * def glUniform4fv(GLint location, GLsizei count):#,  GLfloat* v):
*/
  __pyx_v_4kivy_8graphics_3cgl_cgl->glUniform4f(__pyx_v_location, __pyx_v_x, __pyx_v_y, __pyx_v_z, __pyx_v_w); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 1412, __pyx_L1_error)

  /* "kivy/graphics/opengl.pyx":1406
 *     raise NotImplementedError
 * 
 * def glUniform4f(GLint location, GLfloat x, GLfloat y, GLfloat z, GLfloat w):             # <<<<<<<<<<<<<<
 *     '''See: `glUniform4f() on Kronos website
 *     <http://www.khronos.org/opengles/sdk/docs/man/xhtml/glUniform4f.xml>`_
*/

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

/* "kivy/graphics/opengl.pyx":1414
 *     cgl.glUniform4f(location, x, y, z, w)
 * 
 * def glUniform4fv(GLint location, GLsizei count):#,  GLfloat* v):             # <<<<<<<<<<<<<<
 *     '''See: `glUniform4fv() on Kronos website
 *     <http://www.khronos.org/opengles/sdk/docs/man/xhtml/glUniform4fv.xml>`_
*/

/* Python wrapper */
static PyObject *__pyx_pw_4kivy_8graphics_6opengl_245glUniform4fv(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_4kivy_8graphics_6opengl_244glUniform4fv, "glUniform4fv(GLint location, GLsizei count)\n\nSee: `glUniform4fv() on Kronos website\n<http://www.khronos.org/opengles/sdk/docs/man/xhtml/glUniform4fv.xml>`_\n\n.. warning:: Not implemented yet.");
static PyMethodDef __pyx_mdef_4kivy_8graphics_6opengl_245glUniform4fv = {"glUniform4fv", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4kivy_8graphics_6opengl_245glUniform4fv, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4kivy_8graphics_6opengl_244glUniform4fv};
static PyObject *__pyx_pw_4kivy_8graphics_6opengl_245glUniform4fv(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  CYTHON_UNUSED GLint __pyx_v_location;
  CYTHON_UNUSED GLsizei __pyx_v_count;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[2] = {0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("glUniform4fv (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_location,&__pyx_mstate_global->__pyx_n_u_count,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(0, 1414, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 1414, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 1414, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "glUniform4fv", 0) < (0)) __PYX_ERR(0, 1414, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 2; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("glUniform4fv", 1, 2, 2, i); __PYX_ERR(0, 1414, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 2)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 1414, __pyx_L3_error)
      values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 1414, __pyx_L3_error)
    }
    __pyx_v_location = __Pyx_PyLong_As_GLint(values[0]); if (unlikely((__pyx_v_location == ((GLint)-1)) && PyErr_Occurred())) __PYX_ERR(0, 1414, __pyx_L3_error)
    __pyx_v_count = __Pyx_PyLong_As_GLsizei(values[1]); if (unlikely((__pyx_v_count == ((GLsizei)-1)) && PyErr_Occurred())) __PYX_ERR(0, 1414, __pyx_L3_error)
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("glUniform4fv", 1, 2, 2, __pyx_nargs); __PYX_ERR(0, 1414, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("kivy.graphics.opengl.glUniform4fv", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4kivy_8graphics_6opengl_244glUniform4fv(__pyx_self, __pyx_v_location, __pyx_v_count);

  /* function exit code */
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4kivy_8graphics_6opengl_244glUniform4fv(CYTHON_UNUSED PyObject *__pyx_self, CYTHON_UNUSED GLint __pyx_v_location, CYTHON_UNUSED GLsizei __pyx_v_count) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("glUniform4fv", 0);

  /* "kivy/graphics/opengl.pyx":1421
 *     '''
 *     #cgl.glUniform4fv(location, count, v)
 *     raise NotImplementedError             # <<<<<<<<<<<<<<
 * 
 * def glUniform4i(GLint location, GLint x, GLint y, GLint z, GLint w):
*/
  __Pyx_Raise(((PyObject *)(((PyTypeObject*)PyExc_NotImplementedError))), 0, 0, 0);
  __PYX_ERR(0, 1421, __pyx_L1_error)

  /* "kivy/graphics/opengl.pyx":1414
 *     cgl.glUniform4f(location, x, y, z, w)
 * 
 * def glUniform4fv(GLint location, GLsizei count):#,  GLfloat* v):             # <<<<<<<<<<<<<<
 *     '''See: `glUniform4fv() on Kronos website
 *     <http://www.khronos.org/opengles/sdk/docs/man/xhtml/glUniform4fv.xml>`_
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("kivy.graphics.opengl.glUniform4fv", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "kivy/graphics/opengl.pyx":1423
 *     raise NotImplementedError
 * 
 * def glUniform4i(GLint location, GLint x, GLint y, GLint z, GLint w):             # <<<<<<<<<<<<<<
 *     '''See: `glUniform4i() on Kronos website
 *     <http://www.khronos.org/opengles/sdk/docs/man/xhtml/glUniform4i.xml>`_
*/

/* Python wrapper */
static PyObject *__pyx_pw_4kivy_8graphics_6opengl_247glUniform4i(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_4kivy_8graphics_6opengl_246glUniform4i, "glUniform4i(GLint location, GLint x, GLint y, GLint z, GLint w)\n\nSee: `glUniform4i() on Kronos website\n<http://www.khronos.org/opengles/sdk/docs/man/xhtml/glUniform4i.xml>`_");
static PyMethodDef __pyx_mdef_4kivy_8graphics_6opengl_247glUniform4i = {"glUniform4i", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4kivy_8graphics_6opengl_247glUniform4i, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4kivy_8graphics_6opengl_246glUniform4i};
static PyObject *__pyx_pw_4kivy_8graphics_6opengl_247glUniform4i(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  GLint __pyx_v_location;
  GLint __pyx_v_x;
  GLint __pyx_v_y;
  GLint __pyx_v_z;
  GLint __pyx_v_w;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[5] = {0,0,0,0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("glUniform4i (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_location,&__pyx_mstate_global->__pyx_n_u_x,&__pyx_mstate_global->__pyx_n_u_y,&__pyx_mstate_global->__pyx_n_u_z,&__pyx_mstate_global->__pyx_n_u_w,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(0, 1423, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  5:
        values[4] = __Pyx_ArgRef_FASTCALL(__pyx_args, 4);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[4])) __PYX_ERR(0, 1423, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  4:
        values[3] = __Pyx_ArgRef_FASTCALL(__pyx_args, 3);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[3])) __PYX_ERR(0, 1423, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  3:
        values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(0, 1423, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 1423, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 1423, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "glUniform4i", 0) < (0)) __PYX_ERR(0, 1423, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 5; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("glUniform4i", 1, 5, 5, i); __PYX_ERR(0, 1423, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 5)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 1423, __pyx_L3_error)
      values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 1423, __pyx_L3_error)
      values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(0, 1423, __pyx_L3_error)
      values[3] = __Pyx_ArgRef_FASTCALL(__pyx_args, 3);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[3])) __PYX_ERR(0, 1423, __pyx_L3_error)
      values[4] = __Pyx_ArgRef_FASTCALL(__pyx_args, 4);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[4])) __PYX_ERR(0, 1423, __pyx_L3_error)
    }
    __pyx_v_location = __Pyx_PyLong_As_GLint(values[0]); if (unlikely((__pyx_v_location == ((GLint)-1)) && PyErr_Occurred())) __PYX_ERR(0, 1423, __pyx_L3_error)
    __pyx_v_x = __Pyx_PyLong_As_GLint(values[1]); if (unlikely((__pyx_v_x == ((GLint)-1)) && PyErr_Occurred())) __PYX_ERR(0, 1423, __pyx_L3_error)
    __pyx_v_y = __Pyx_PyLong_As_GLint(values[2]); if (unlikely((__pyx_v_y == ((GLint)-1)) && PyErr_Occurred())) __PYX_ERR(0, 1423, __pyx_L3_error)
    __pyx_v_z = __Pyx_PyLong_As_GLint(values[3]); if (unlikely((__pyx_v_z == ((GLint)-1)) && PyErr_Occurred())) __PYX_ERR(0, 1423, __pyx_L3_error)
    __pyx_v_w = __Pyx_PyLong_As_GLint(values[4]); if (unlikely((__pyx_v_w == ((GLint)-1)) && PyErr_Occurred())) __PYX_ERR(0, 1423, __pyx_L3_error)
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("glUniform4i", 1, 5, 5, __pyx_nargs); __PYX_ERR(0, 1423, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("kivy.graphics.opengl.glUniform4i", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4kivy_8graphics_6opengl_246glUniform4i(__pyx_self, __pyx_v_location, __pyx_v_x, __pyx_v_y, __pyx_v_z, __pyx_v_w);

  /* function exit code */
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4kivy_8graphics_6opengl_246glUniform4i(CYTHON_UNUSED PyObject *__pyx_self, GLint __pyx_v_location, GLint __pyx_v_x, GLint __pyx_v_y, GLint __pyx_v_z, GLint __pyx_v_w) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("glUniform4i", 0);

  /* "kivy/graphics/opengl.pyx":1427
 *     <http://www.khronos.org/opengles/sdk/docs/man/xhtml/glUniform4i.xml>`_
 *     '''
 *     cgl.glUniform4i(location, x, y, z, w)             # <<<<<<<<<<<<<<
 * 
 * def glUniform4iv(GLint location, GLsizei count):#,  GLint* v):
*/
  __pyx_v_4kivy_8graphics_3cgl_cgl->glUniform4i(__pyx_v_location, __pyx_v_x, __pyx_v_y, __pyx_v_z, __pyx_v_w); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 1427, __pyx_L1_error)

  /* "kivy/graphics/opengl.pyx":1423
 *     raise NotImplementedError
 * 
 * def glUniform4i(GLint location, GLint x, GLint y, GLint z, GLint w):             # <<<<<<<<<<<<<<
 *     '''See: `glUniform4i() on Kronos website
 *     <http://www.khronos.org/opengles/sdk/docs/man/xhtml/glUniform4i.xml>`_
*/

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

/* "kivy/graphics/opengl.pyx":1429
 *     cgl.glUniform4i(location, x, y, z, w)
 * 
 * def glUniform4iv(GLint location, GLsizei count):#,  GLint* v):             # <<<<<<<<<<<<<<
 *     '''See: `glUniform4iv() on Kronos website
 *     <http://www.khronos.org/opengles/sdk/docs/man/xhtml/glUniform4iv.xml>`_
*/

/* Python wrapper */
static PyObject *__pyx_pw_4kivy_8graphics_6opengl_249glUniform4iv(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_4kivy_8graphics_6opengl_248glUniform4iv, "glUniform4iv(GLint location, GLsizei count)\n\nSee: `glUniform4iv() on Kronos website\n<http://www.khronos.org/opengles/sdk/docs/man/xhtml/glUniform4iv.xml>`_\n\n.. warning:: Not implemented yet.");
static PyMethodDef __pyx_mdef_4kivy_8graphics_6opengl_249glUniform4iv = {"glUniform4iv", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4kivy_8graphics_6opengl_249glUniform4iv, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4kivy_8graphics_6opengl_248glUniform4iv};
static PyObject *__pyx_pw_4kivy_8graphics_6opengl_249glUniform4iv(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  CYTHON_UNUSED GLint __pyx_v_location;
  CYTHON_UNUSED GLsizei __pyx_v_count;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[2] = {0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("glUniform4iv (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_location,&__pyx_mstate_global->__pyx_n_u_count,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(0, 1429, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 1429, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 1429, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "glUniform4iv", 0) < (0)) __PYX_ERR(0, 1429, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 2; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("glUniform4iv", 1, 2, 2, i); __PYX_ERR(0, 1429, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 2)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 1429, __pyx_L3_error)
      values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 1429, __pyx_L3_error)
    }
    __pyx_v_location = __Pyx_PyLong_As_GLint(values[0]); if (unlikely((__pyx_v_location == ((GLint)-1)) && PyErr_Occurred())) __PYX_ERR(0, 1429, __pyx_L3_error)
    __pyx_v_count = __Pyx_PyLong_As_GLsizei(values[1]); if (unlikely((__pyx_v_count == ((GLsizei)-1)) && PyErr_Occurred())) __PYX_ERR(0, 1429, __pyx_L3_error)
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("glUniform4iv", 1, 2, 2, __pyx_nargs); __PYX_ERR(0, 1429, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("kivy.graphics.opengl.glUniform4iv", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4kivy_8graphics_6opengl_248glUniform4iv(__pyx_self, __pyx_v_location, __pyx_v_count);

  /* function exit code */
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4kivy_8graphics_6opengl_248glUniform4iv(CYTHON_UNUSED PyObject *__pyx_self, CYTHON_UNUSED GLint __pyx_v_location, CYTHON_UNUSED GLsizei __pyx_v_count) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("glUniform4iv", 0);

  /* "kivy/graphics/opengl.pyx":1436
 *     '''
 *     #cgl.glUniform4iv(location, count, v)
 *     raise NotImplementedError             # <<<<<<<<<<<<<<
 * 
 * def glUniformMatrix2fv(GLint location, GLsizei count):#, GLboolean transpose, bytes values):
*/
  __Pyx_Raise(((PyObject *)(((PyTypeObject*)PyExc_NotImplementedError))), 0, 0, 0);
  __PYX_ERR(0, 1436, __pyx_L1_error)

  /* "kivy/graphics/opengl.pyx":1429
 *     cgl.glUniform4i(location, x, y, z, w)
 * 
 * def glUniform4iv(GLint location, GLsizei count):#,  GLint* v):             # <<<<<<<<<<<<<<
 *     '''See: `glUniform4iv() on Kronos website
 *     <http://www.khronos.org/opengles/sdk/docs/man/xhtml/glUniform4iv.xml>`_
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("kivy.graphics.opengl.glUniform4iv", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "kivy/graphics/opengl.pyx":1438
 *     raise NotImplementedError
 * 
 * def glUniformMatrix2fv(GLint location, GLsizei count):#, GLboolean transpose, bytes values):             # <<<<<<<<<<<<<<
 *     '''See: `glUniformMatrix2fv() on Kronos website
 *     <http://www.khronos.org/opengles/sdk/docs/man/xhtml/glUniformMatrix2fv.xml>`_
*/

/* Python wrapper */
static PyObject *__pyx_pw_4kivy_8graphics_6opengl_251glUniformMatrix2fv(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_4kivy_8graphics_6opengl_250glUniformMatrix2fv, "glUniformMatrix2fv(GLint location, GLsizei count)\n\nSee: `glUniformMatrix2fv() on Kronos website\n<http://www.khronos.org/opengles/sdk/docs/man/xhtml/glUniformMatrix2fv.xml>`_\n\n.. warning:: Not implemented yet.");
static PyMethodDef __pyx_mdef_4kivy_8graphics_6opengl_251glUniformMatrix2fv = {"glUniformMatrix2fv", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4kivy_8graphics_6opengl_251glUniformMatrix2fv, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4kivy_8graphics_6opengl_250glUniformMatrix2fv};
static PyObject *__pyx_pw_4kivy_8graphics_6opengl_251glUniformMatrix2fv(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  CYTHON_UNUSED GLint __pyx_v_location;
  CYTHON_UNUSED GLsizei __pyx_v_count;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[2] = {0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("glUniformMatrix2fv (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_location,&__pyx_mstate_global->__pyx_n_u_count,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(0, 1438, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 1438, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 1438, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "glUniformMatrix2fv", 0) < (0)) __PYX_ERR(0, 1438, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 2; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("glUniformMatrix2fv", 1, 2, 2, i); __PYX_ERR(0, 1438, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 2)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 1438, __pyx_L3_error)
      values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 1438, __pyx_L3_error)
    }
    __pyx_v_location = __Pyx_PyLong_As_GLint(values[0]); if (unlikely((__pyx_v_location == ((GLint)-1)) && PyErr_Occurred())) __PYX_ERR(0, 1438, __pyx_L3_error)
    __pyx_v_count = __Pyx_PyLong_As_GLsizei(values[1]); if (unlikely((__pyx_v_count == ((GLsizei)-1)) && PyErr_Occurred())) __PYX_ERR(0, 1438, __pyx_L3_error)
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("glUniformMatrix2fv", 1, 2, 2, __pyx_nargs); __PYX_ERR(0, 1438, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("kivy.graphics.opengl.glUniformMatrix2fv", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4kivy_8graphics_6opengl_250glUniformMatrix2fv(__pyx_self, __pyx_v_location, __pyx_v_count);

  /* function exit code */
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4kivy_8graphics_6opengl_250glUniformMatrix2fv(CYTHON_UNUSED PyObject *__pyx_self, CYTHON_UNUSED GLint __pyx_v_location, CYTHON_UNUSED GLsizei __pyx_v_count) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("glUniformMatrix2fv", 0);

  /* "kivy/graphics/opengl.pyx":1445
 *     '''
 *     #cgl.glUniformMatrix2fv(location, count, transpose, <GLfloat*>ptr_value)
 *     raise NotImplementedError             # <<<<<<<<<<<<<<
 * 
 * def glUniformMatrix3fv(GLint location, GLsizei count):#, GLboolean transpose,  bytes values):
*/
  __Pyx_Raise(((PyObject *)(((PyTypeObject*)PyExc_NotImplementedError))), 0, 0, 0);
  __PYX_ERR(0, 1445, __pyx_L1_error)

  /* "kivy/graphics/opengl.pyx":1438
 *     raise NotImplementedError
 * 
 * def glUniformMatrix2fv(GLint location, GLsizei count):#, GLboolean transpose, bytes values):             # <<<<<<<<<<<<<<
 *     '''See: `glUniformMatrix2fv() on Kronos website
 *     <http://www.khronos.org/opengles/sdk/docs/man/xhtml/glUniformMatrix2fv.xml>`_
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("kivy.graphics.opengl.glUniformMatrix2fv", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "kivy/graphics/opengl.pyx":1447
 *     raise NotImplementedError
 * 
 * def glUniformMatrix3fv(GLint location, GLsizei count):#, GLboolean transpose,  bytes values):             # <<<<<<<<<<<<<<
 *     '''See: `glUniformMatrix3fv() on Kronos website
 *     <http://www.khronos.org/opengles/sdk/docs/man/xhtml/glUniformMatrix3fv.xml>`_
*/

/* Python wrapper */
static PyObject *__pyx_pw_4kivy_8graphics_6opengl_253glUniformMatrix3fv(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_4kivy_8graphics_6opengl_252glUniformMatrix3fv, "glUniformMatrix3fv(GLint location, GLsizei count)\n\nSee: `glUniformMatrix3fv() on Kronos website\n<http://www.khronos.org/opengles/sdk/docs/man/xhtml/glUniformMatrix3fv.xml>`_\n\n.. warning:: Not implemented yet.");
static PyMethodDef __pyx_mdef_4kivy_8graphics_6opengl_253glUniformMatrix3fv = {"glUniformMatrix3fv", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4kivy_8graphics_6opengl_253glUniformMatrix3fv, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4kivy_8graphics_6opengl_252glUniformMatrix3fv};
static PyObject *__pyx_pw_4kivy_8graphics_6opengl_253glUniformMatrix3fv(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  CYTHON_UNUSED GLint __pyx_v_location;
  CYTHON_UNUSED GLsizei __pyx_v_count;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[2] = {0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("glUniformMatrix3fv (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_location,&__pyx_mstate_global->__pyx_n_u_count,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(0, 1447, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 1447, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 1447, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "glUniformMatrix3fv", 0) < (0)) __PYX_ERR(0, 1447, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 2; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("glUniformMatrix3fv", 1, 2, 2, i); __PYX_ERR(0, 1447, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 2)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 1447, __pyx_L3_error)
      values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 1447, __pyx_L3_error)
    }
    __pyx_v_location = __Pyx_PyLong_As_GLint(values[0]); if (unlikely((__pyx_v_location == ((GLint)-1)) && PyErr_Occurred())) __PYX_ERR(0, 1447, __pyx_L3_error)
    __pyx_v_count = __Pyx_PyLong_As_GLsizei(values[1]); if (unlikely((__pyx_v_count == ((GLsizei)-1)) && PyErr_Occurred())) __PYX_ERR(0, 1447, __pyx_L3_error)
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("glUniformMatrix3fv", 1, 2, 2, __pyx_nargs); __PYX_ERR(0, 1447, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("kivy.graphics.opengl.glUniformMatrix3fv", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4kivy_8graphics_6opengl_252glUniformMatrix3fv(__pyx_self, __pyx_v_location, __pyx_v_count);

  /* function exit code */
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4kivy_8graphics_6opengl_252glUniformMatrix3fv(CYTHON_UNUSED PyObject *__pyx_self, CYTHON_UNUSED GLint __pyx_v_location, CYTHON_UNUSED GLsizei __pyx_v_count) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("glUniformMatrix3fv", 0);

  /* "kivy/graphics/opengl.pyx":1454
 *     '''
 *     # cgl.glUniformMatrix3fv(location, count, transpose, <GLfloat*>ptr_value)
 *     raise NotImplementedError             # <<<<<<<<<<<<<<
 * 
 * def glUniformMatrix4fv(GLint location, GLsizei count, GLboolean transpose,  bytes value):
*/
  __Pyx_Raise(((PyObject *)(((PyTypeObject*)PyExc_NotImplementedError))), 0, 0, 0);
  __PYX_ERR(0, 1454, __pyx_L1_error)

  /* "kivy/graphics/opengl.pyx":1447
 *     raise NotImplementedError
 * 
 * def glUniformMatrix3fv(GLint location, GLsizei count):#, GLboolean transpose,  bytes values):             # <<<<<<<<<<<<<<
 *     '''See: `glUniformMatrix3fv() on Kronos website
 *     <http://www.khronos.org/opengles/sdk/docs/man/xhtml/glUniformMatrix3fv.xml>`_
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("kivy.graphics.opengl.glUniformMatrix3fv", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "kivy/graphics/opengl.pyx":1456
 *     raise NotImplementedError
 * 
 * def glUniformMatrix4fv(GLint location, GLsizei count, GLboolean transpose,  bytes value):             # <<<<<<<<<<<<<<
 *     '''See: `glUniformMatrix4fv() on Kronos website
 *     <http://www.khronos.org/opengles/sdk/docs/man/xhtml/glUniformMatrix4fv.xml>`_
*/

/* Python wrapper */
static PyObject *__pyx_pw_4kivy_8graphics_6opengl_255glUniformMatrix4fv(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_4kivy_8graphics_6opengl_254glUniformMatrix4fv, "glUniformMatrix4fv(GLint location, GLsizei count, GLboolean transpose, bytes value)\n\nSee: `glUniformMatrix4fv() on Kronos website\n<http://www.khronos.org/opengles/sdk/docs/man/xhtml/glUniformMatrix4fv.xml>`_");
static PyMethodDef __pyx_mdef_4kivy_8graphics_6opengl_255glUniformMatrix4fv = {"glUniformMatrix4fv", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4kivy_8graphics_6opengl_255glUniformMatrix4fv, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4kivy_8graphics_6opengl_254glUniformMatrix4fv};
static PyObject *__pyx_pw_4kivy_8graphics_6opengl_255glUniformMatrix4fv(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  GLint __pyx_v_location;
  GLsizei __pyx_v_count;
  GLboolean __pyx_v_transpose;
  PyObject *__pyx_v_value = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[4] = {0,0,0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("glUniformMatrix4fv (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_location,&__pyx_mstate_global->__pyx_n_u_count,&__pyx_mstate_global->__pyx_n_u_transpose,&__pyx_mstate_global->__pyx_n_u_value,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(0, 1456, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  4:
        values[3] = __Pyx_ArgRef_FASTCALL(__pyx_args, 3);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[3])) __PYX_ERR(0, 1456, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  3:
        values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(0, 1456, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 1456, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 1456, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "glUniformMatrix4fv", 0) < (0)) __PYX_ERR(0, 1456, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 4; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("glUniformMatrix4fv", 1, 4, 4, i); __PYX_ERR(0, 1456, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 4)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 1456, __pyx_L3_error)
      values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 1456, __pyx_L3_error)
      values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(0, 1456, __pyx_L3_error)
      values[3] = __Pyx_ArgRef_FASTCALL(__pyx_args, 3);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[3])) __PYX_ERR(0, 1456, __pyx_L3_error)
    }
    __pyx_v_location = __Pyx_PyLong_As_GLint(values[0]); if (unlikely((__pyx_v_location == ((GLint)-1)) && PyErr_Occurred())) __PYX_ERR(0, 1456, __pyx_L3_error)
    __pyx_v_count = __Pyx_PyLong_As_GLsizei(values[1]); if (unlikely((__pyx_v_count == ((GLsizei)-1)) && PyErr_Occurred())) __PYX_ERR(0, 1456, __pyx_L3_error)
    __pyx_v_transpose = __Pyx_PyLong_As_GLboolean(values[2]); if (unlikely((__pyx_v_transpose == ((GLboolean)-1)) && PyErr_Occurred())) __PYX_ERR(0, 1456, __pyx_L3_error)
    __pyx_v_value = ((PyObject*)values[3]);
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("glUniformMatrix4fv", 1, 4, 4, __pyx_nargs); __PYX_ERR(0, 1456, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("kivy.graphics.opengl.glUniformMatrix4fv", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_value), (&PyBytes_Type), 1, "value", 1))) __PYX_ERR(0, 1456, __pyx_L1_error)
  __pyx_r = __pyx_pf_4kivy_8graphics_6opengl_254glUniformMatrix4fv(__pyx_self, __pyx_v_location, __pyx_v_count, __pyx_v_transpose, __pyx_v_value);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  goto __pyx_L7_cleaned_up;
  __pyx_L0:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __pyx_L7_cleaned_up:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4kivy_8graphics_6opengl_254glUniformMatrix4fv(CYTHON_UNUSED PyObject *__pyx_self, GLint __pyx_v_location, GLsizei __pyx_v_count, GLboolean __pyx_v_transpose, PyObject *__pyx_v_value) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  char *__pyx_t_1;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("glUniformMatrix4fv", 0);

  /* "kivy/graphics/opengl.pyx":1460
 *     <http://www.khronos.org/opengles/sdk/docs/man/xhtml/glUniformMatrix4fv.xml>`_
 *     '''
 *     cgl.glUniformMatrix4fv(location, count, transpose, <GLfloat*>(<char *>value))             # <<<<<<<<<<<<<<
 * 
 * def glUseProgram(GLuint program):
*/
  if (unlikely(__pyx_v_value == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "expected bytes, NoneType found");
    __PYX_ERR(0, 1460, __pyx_L1_error)
  }
  __pyx_t_1 = __Pyx_PyBytes_AsWritableString(__pyx_v_value); if (unlikely((!__pyx_t_1) && PyErr_Occurred())) __PYX_ERR(0, 1460, __pyx_L1_error)
  __pyx_v_4kivy_8graphics_3cgl_cgl->glUniformMatrix4fv(__pyx_v_location, __pyx_v_count, __pyx_v_transpose, ((GLfloat *)((char *)__pyx_t_1))); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 1460, __pyx_L1_error)

  /* "kivy/graphics/opengl.pyx":1456
 *     raise NotImplementedError
 * 
 * def glUniformMatrix4fv(GLint location, GLsizei count, GLboolean transpose,  bytes value):             # <<<<<<<<<<<<<<
 *     '''See: `glUniformMatrix4fv() on Kronos website
 *     <http://www.khronos.org/opengles/sdk/docs/man/xhtml/glUniformMatrix4fv.xml>`_
*/

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

/* "kivy/graphics/opengl.pyx":1462
 *     cgl.glUniformMatrix4fv(location, count, transpose, <GLfloat*>(<char *>value))
 * 
 * def glUseProgram(GLuint program):             # <<<<<<<<<<<<<<
 *     '''See: `glUseProgram() on Kronos website
 *     <http://www.khronos.org/opengles/sdk/docs/man/xhtml/glUseProgram.xml>`_
*/

/* Python wrapper */
static PyObject *__pyx_pw_4kivy_8graphics_6opengl_257glUseProgram(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_4kivy_8graphics_6opengl_256glUseProgram, "glUseProgram(GLuint program)\n\nSee: `glUseProgram() on Kronos website\n<http://www.khronos.org/opengles/sdk/docs/man/xhtml/glUseProgram.xml>`_");
static PyMethodDef __pyx_mdef_4kivy_8graphics_6opengl_257glUseProgram = {"glUseProgram", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4kivy_8graphics_6opengl_257glUseProgram, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4kivy_8graphics_6opengl_256glUseProgram};
static PyObject *__pyx_pw_4kivy_8graphics_6opengl_257glUseProgram(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  GLuint __pyx_v_program;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[1] = {0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("glUseProgram (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_program,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(0, 1462, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 1462, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "glUseProgram", 0) < (0)) __PYX_ERR(0, 1462, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("glUseProgram", 1, 1, 1, i); __PYX_ERR(0, 1462, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 1)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 1462, __pyx_L3_error)
    }
    __pyx_v_program = __Pyx_PyLong_As_GLuint(values[0]); if (unlikely((__pyx_v_program == ((GLuint)-1)) && PyErr_Occurred())) __PYX_ERR(0, 1462, __pyx_L3_error)
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("glUseProgram", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 1462, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("kivy.graphics.opengl.glUseProgram", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4kivy_8graphics_6opengl_256glUseProgram(__pyx_self, __pyx_v_program);

  /* function exit code */
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4kivy_8graphics_6opengl_256glUseProgram(CYTHON_UNUSED PyObject *__pyx_self, GLuint __pyx_v_program) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("glUseProgram", 0);

  /* "kivy/graphics/opengl.pyx":1466
 *     <http://www.khronos.org/opengles/sdk/docs/man/xhtml/glUseProgram.xml>`_
 *     '''
 *     cgl.glUseProgram(program)             # <<<<<<<<<<<<<<
 * 
 * def glValidateProgram(GLuint program):
*/
  __pyx_v_4kivy_8graphics_3cgl_cgl->glUseProgram(__pyx_v_program); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 1466, __pyx_L1_error)

  /* "kivy/graphics/opengl.pyx":1462
 *     cgl.glUniformMatrix4fv(location, count, transpose, <GLfloat*>(<char *>value))
 * 
 * def glUseProgram(GLuint program):             # <<<<<<<<<<<<<<
 *     '''See: `glUseProgram() on Kronos website
 *     <http://www.khronos.org/opengles/sdk/docs/man/xhtml/glUseProgram.xml>`_
*/

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

/* "kivy/graphics/opengl.pyx":1468
 *     cgl.glUseProgram(program)
 * 
 * def glValidateProgram(GLuint program):             # <<<<<<<<<<<<<<
 *     '''See: `glValidateProgram() on Kronos website
 *     <http://www.khronos.org/opengles/sdk/docs/man/xhtml/glValidateProgram.xml>`_
*/

/* Python wrapper */
static PyObject *__pyx_pw_4kivy_8graphics_6opengl_259glValidateProgram(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_4kivy_8graphics_6opengl_258glValidateProgram, "glValidateProgram(GLuint program)\n\nSee: `glValidateProgram() on Kronos website\n<http://www.khronos.org/opengles/sdk/docs/man/xhtml/glValidateProgram.xml>`_");
static PyMethodDef __pyx_mdef_4kivy_8graphics_6opengl_259glValidateProgram = {"glValidateProgram", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4kivy_8graphics_6opengl_259glValidateProgram, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4kivy_8graphics_6opengl_258glValidateProgram};
static PyObject *__pyx_pw_4kivy_8graphics_6opengl_259glValidateProgram(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  GLuint __pyx_v_program;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[1] = {0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("glValidateProgram (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_program,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(0, 1468, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 1468, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "glValidateProgram", 0) < (0)) __PYX_ERR(0, 1468, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 1; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("glValidateProgram", 1, 1, 1, i); __PYX_ERR(0, 1468, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 1)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 1468, __pyx_L3_error)
    }
    __pyx_v_program = __Pyx_PyLong_As_GLuint(values[0]); if (unlikely((__pyx_v_program == ((GLuint)-1)) && PyErr_Occurred())) __PYX_ERR(0, 1468, __pyx_L3_error)
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("glValidateProgram", 1, 1, 1, __pyx_nargs); __PYX_ERR(0, 1468, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("kivy.graphics.opengl.glValidateProgram", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4kivy_8graphics_6opengl_258glValidateProgram(__pyx_self, __pyx_v_program);

  /* function exit code */
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4kivy_8graphics_6opengl_258glValidateProgram(CYTHON_UNUSED PyObject *__pyx_self, GLuint __pyx_v_program) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("glValidateProgram", 0);

  /* "kivy/graphics/opengl.pyx":1472
 *     <http://www.khronos.org/opengles/sdk/docs/man/xhtml/glValidateProgram.xml>`_
 *     '''
 *     cgl.glValidateProgram(program)             # <<<<<<<<<<<<<<
 * 
 * def glVertexAttrib1f(GLuint indx, GLfloat x):
*/
  __pyx_v_4kivy_8graphics_3cgl_cgl->glValidateProgram(__pyx_v_program); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 1472, __pyx_L1_error)

  /* "kivy/graphics/opengl.pyx":1468
 *     cgl.glUseProgram(program)
 * 
 * def glValidateProgram(GLuint program):             # <<<<<<<<<<<<<<
 *     '''See: `glValidateProgram() on Kronos website
 *     <http://www.khronos.org/opengles/sdk/docs/man/xhtml/glValidateProgram.xml>`_
*/

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

/* "kivy/graphics/opengl.pyx":1474
 *     cgl.glValidateProgram(program)
 * 
 * def glVertexAttrib1f(GLuint indx, GLfloat x):             # <<<<<<<<<<<<<<
 *     '''See: `glVertexAttrib1f() on Kronos website
 *     <http://www.khronos.org/opengles/sdk/docs/man/xhtml/glVertexAttrib1f.xml>`_
*/

/* Python wrapper */
static PyObject *__pyx_pw_4kivy_8graphics_6opengl_261glVertexAttrib1f(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_4kivy_8graphics_6opengl_260glVertexAttrib1f, "glVertexAttrib1f(GLuint indx, GLfloat x)\n\nSee: `glVertexAttrib1f() on Kronos website\n<http://www.khronos.org/opengles/sdk/docs/man/xhtml/glVertexAttrib1f.xml>`_");
static PyMethodDef __pyx_mdef_4kivy_8graphics_6opengl_261glVertexAttrib1f = {"glVertexAttrib1f", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4kivy_8graphics_6opengl_261glVertexAttrib1f, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4kivy_8graphics_6opengl_260glVertexAttrib1f};
static PyObject *__pyx_pw_4kivy_8graphics_6opengl_261glVertexAttrib1f(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  GLuint __pyx_v_indx;
  GLfloat __pyx_v_x;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[2] = {0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("glVertexAttrib1f (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_indx,&__pyx_mstate_global->__pyx_n_u_x,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(0, 1474, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 1474, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 1474, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "glVertexAttrib1f", 0) < (0)) __PYX_ERR(0, 1474, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 2; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("glVertexAttrib1f", 1, 2, 2, i); __PYX_ERR(0, 1474, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 2)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 1474, __pyx_L3_error)
      values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 1474, __pyx_L3_error)
    }
    __pyx_v_indx = __Pyx_PyLong_As_GLuint(values[0]); if (unlikely((__pyx_v_indx == ((GLuint)-1)) && PyErr_Occurred())) __PYX_ERR(0, 1474, __pyx_L3_error)
    __pyx_v_x = __Pyx_PyFloat_AsFloat(values[1]); if (unlikely((__pyx_v_x == ((GLfloat)-1)) && PyErr_Occurred())) __PYX_ERR(0, 1474, __pyx_L3_error)
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("glVertexAttrib1f", 1, 2, 2, __pyx_nargs); __PYX_ERR(0, 1474, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("kivy.graphics.opengl.glVertexAttrib1f", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4kivy_8graphics_6opengl_260glVertexAttrib1f(__pyx_self, __pyx_v_indx, __pyx_v_x);

  /* function exit code */
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4kivy_8graphics_6opengl_260glVertexAttrib1f(CYTHON_UNUSED PyObject *__pyx_self, GLuint __pyx_v_indx, GLfloat __pyx_v_x) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("glVertexAttrib1f", 0);

  /* "kivy/graphics/opengl.pyx":1478
 *     <http://www.khronos.org/opengles/sdk/docs/man/xhtml/glVertexAttrib1f.xml>`_
 *     '''
 *     cgl.glVertexAttrib1f(indx, x)             # <<<<<<<<<<<<<<
 * 
 * def glVertexAttrib1fv(GLuint indx, list values):
*/
  __pyx_v_4kivy_8graphics_3cgl_cgl->glVertexAttrib1f(__pyx_v_indx, __pyx_v_x); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 1478, __pyx_L1_error)

  /* "kivy/graphics/opengl.pyx":1474
 *     cgl.glValidateProgram(program)
 * 
 * def glVertexAttrib1f(GLuint indx, GLfloat x):             # <<<<<<<<<<<<<<
 *     '''See: `glVertexAttrib1f() on Kronos website
 *     <http://www.khronos.org/opengles/sdk/docs/man/xhtml/glVertexAttrib1f.xml>`_
*/

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

/* "kivy/graphics/opengl.pyx":1480
 *     cgl.glVertexAttrib1f(indx, x)
 * 
 * def glVertexAttrib1fv(GLuint indx, list values):             # <<<<<<<<<<<<<<
 *     '''See: `glVertexAttrib1fv() on Kronos website
 *     <http://www.khronos.org/opengles/sdk/docs/man/xhtml/glVertexAttrib1fv.xml>`_
*/

/* Python wrapper */
static PyObject *__pyx_pw_4kivy_8graphics_6opengl_263glVertexAttrib1fv(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_4kivy_8graphics_6opengl_262glVertexAttrib1fv, "glVertexAttrib1fv(GLuint indx, list values)\n\nSee: `glVertexAttrib1fv() on Kronos website\n<http://www.khronos.org/opengles/sdk/docs/man/xhtml/glVertexAttrib1fv.xml>`_\n\n.. warning:: Not implemented yet.");
static PyMethodDef __pyx_mdef_4kivy_8graphics_6opengl_263glVertexAttrib1fv = {"glVertexAttrib1fv", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4kivy_8graphics_6opengl_263glVertexAttrib1fv, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4kivy_8graphics_6opengl_262glVertexAttrib1fv};
static PyObject *__pyx_pw_4kivy_8graphics_6opengl_263glVertexAttrib1fv(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  CYTHON_UNUSED GLuint __pyx_v_indx;
  CYTHON_UNUSED PyObject *__pyx_v_values = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[2] = {0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("glVertexAttrib1fv (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_indx,&__pyx_mstate_global->__pyx_n_u_values,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(0, 1480, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 1480, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 1480, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "glVertexAttrib1fv", 0) < (0)) __PYX_ERR(0, 1480, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 2; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("glVertexAttrib1fv", 1, 2, 2, i); __PYX_ERR(0, 1480, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 2)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 1480, __pyx_L3_error)
      values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 1480, __pyx_L3_error)
    }
    __pyx_v_indx = __Pyx_PyLong_As_GLuint(values[0]); if (unlikely((__pyx_v_indx == ((GLuint)-1)) && PyErr_Occurred())) __PYX_ERR(0, 1480, __pyx_L3_error)
    __pyx_v_values = ((PyObject*)values[1]);
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("glVertexAttrib1fv", 1, 2, 2, __pyx_nargs); __PYX_ERR(0, 1480, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("kivy.graphics.opengl.glVertexAttrib1fv", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_values), (&PyList_Type), 1, "values", 1))) __PYX_ERR(0, 1480, __pyx_L1_error)
  __pyx_r = __pyx_pf_4kivy_8graphics_6opengl_262glVertexAttrib1fv(__pyx_self, __pyx_v_indx, __pyx_v_values);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  goto __pyx_L7_cleaned_up;
  __pyx_L0:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __pyx_L7_cleaned_up:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4kivy_8graphics_6opengl_262glVertexAttrib1fv(CYTHON_UNUSED PyObject *__pyx_self, CYTHON_UNUSED GLuint __pyx_v_indx, CYTHON_UNUSED PyObject *__pyx_v_values) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("glVertexAttrib1fv", 0);

  /* "kivy/graphics/opengl.pyx":1487
 *     '''
 *     #cgl.glVertexAttrib1fv(indx, values)
 *     raise NotImplementedError             # <<<<<<<<<<<<<<
 * 
 * def glVertexAttrib2f(GLuint indx, GLfloat x, GLfloat y):
*/
  __Pyx_Raise(((PyObject *)(((PyTypeObject*)PyExc_NotImplementedError))), 0, 0, 0);
  __PYX_ERR(0, 1487, __pyx_L1_error)

  /* "kivy/graphics/opengl.pyx":1480
 *     cgl.glVertexAttrib1f(indx, x)
 * 
 * def glVertexAttrib1fv(GLuint indx, list values):             # <<<<<<<<<<<<<<
 *     '''See: `glVertexAttrib1fv() on Kronos website
 *     <http://www.khronos.org/opengles/sdk/docs/man/xhtml/glVertexAttrib1fv.xml>`_
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("kivy.graphics.opengl.glVertexAttrib1fv", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "kivy/graphics/opengl.pyx":1489
 *     raise NotImplementedError
 * 
 * def glVertexAttrib2f(GLuint indx, GLfloat x, GLfloat y):             # <<<<<<<<<<<<<<
 *     '''See: `glVertexAttrib2f() on Kronos website
 *     <http://www.khronos.org/opengles/sdk/docs/man/xhtml/glVertexAttrib2f.xml>`_
*/

/* Python wrapper */
static PyObject *__pyx_pw_4kivy_8graphics_6opengl_265glVertexAttrib2f(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_4kivy_8graphics_6opengl_264glVertexAttrib2f, "glVertexAttrib2f(GLuint indx, GLfloat x, GLfloat y)\n\nSee: `glVertexAttrib2f() on Kronos website\n<http://www.khronos.org/opengles/sdk/docs/man/xhtml/glVertexAttrib2f.xml>`_");
static PyMethodDef __pyx_mdef_4kivy_8graphics_6opengl_265glVertexAttrib2f = {"glVertexAttrib2f", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4kivy_8graphics_6opengl_265glVertexAttrib2f, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4kivy_8graphics_6opengl_264glVertexAttrib2f};
static PyObject *__pyx_pw_4kivy_8graphics_6opengl_265glVertexAttrib2f(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  GLuint __pyx_v_indx;
  GLfloat __pyx_v_x;
  GLfloat __pyx_v_y;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[3] = {0,0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("glVertexAttrib2f (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_indx,&__pyx_mstate_global->__pyx_n_u_x,&__pyx_mstate_global->__pyx_n_u_y,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(0, 1489, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  3:
        values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(0, 1489, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 1489, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 1489, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "glVertexAttrib2f", 0) < (0)) __PYX_ERR(0, 1489, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 3; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("glVertexAttrib2f", 1, 3, 3, i); __PYX_ERR(0, 1489, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 3)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 1489, __pyx_L3_error)
      values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 1489, __pyx_L3_error)
      values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(0, 1489, __pyx_L3_error)
    }
    __pyx_v_indx = __Pyx_PyLong_As_GLuint(values[0]); if (unlikely((__pyx_v_indx == ((GLuint)-1)) && PyErr_Occurred())) __PYX_ERR(0, 1489, __pyx_L3_error)
    __pyx_v_x = __Pyx_PyFloat_AsFloat(values[1]); if (unlikely((__pyx_v_x == ((GLfloat)-1)) && PyErr_Occurred())) __PYX_ERR(0, 1489, __pyx_L3_error)
    __pyx_v_y = __Pyx_PyFloat_AsFloat(values[2]); if (unlikely((__pyx_v_y == ((GLfloat)-1)) && PyErr_Occurred())) __PYX_ERR(0, 1489, __pyx_L3_error)
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("glVertexAttrib2f", 1, 3, 3, __pyx_nargs); __PYX_ERR(0, 1489, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("kivy.graphics.opengl.glVertexAttrib2f", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4kivy_8graphics_6opengl_264glVertexAttrib2f(__pyx_self, __pyx_v_indx, __pyx_v_x, __pyx_v_y);

  /* function exit code */
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4kivy_8graphics_6opengl_264glVertexAttrib2f(CYTHON_UNUSED PyObject *__pyx_self, GLuint __pyx_v_indx, GLfloat __pyx_v_x, GLfloat __pyx_v_y) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("glVertexAttrib2f", 0);

  /* "kivy/graphics/opengl.pyx":1493
 *     <http://www.khronos.org/opengles/sdk/docs/man/xhtml/glVertexAttrib2f.xml>`_
 *     '''
 *     cgl.glVertexAttrib2f(indx, x, y)             # <<<<<<<<<<<<<<
 * 
 * def glVertexAttrib2fv(GLuint indx, list values):
*/
  __pyx_v_4kivy_8graphics_3cgl_cgl->glVertexAttrib2f(__pyx_v_indx, __pyx_v_x, __pyx_v_y); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 1493, __pyx_L1_error)

  /* "kivy/graphics/opengl.pyx":1489
 *     raise NotImplementedError
 * 
 * def glVertexAttrib2f(GLuint indx, GLfloat x, GLfloat y):             # <<<<<<<<<<<<<<
 *     '''See: `glVertexAttrib2f() on Kronos website
 *     <http://www.khronos.org/opengles/sdk/docs/man/xhtml/glVertexAttrib2f.xml>`_
*/

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

/* "kivy/graphics/opengl.pyx":1495
 *     cgl.glVertexAttrib2f(indx, x, y)
 * 
 * def glVertexAttrib2fv(GLuint indx, list values):             # <<<<<<<<<<<<<<
 *     '''See: `glVertexAttrib2fv() on Kronos website
 *     <http://www.khronos.org/opengles/sdk/docs/man/xhtml/glVertexAttrib2fv.xml>`_
*/

/* Python wrapper */
static PyObject *__pyx_pw_4kivy_8graphics_6opengl_267glVertexAttrib2fv(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_4kivy_8graphics_6opengl_266glVertexAttrib2fv, "glVertexAttrib2fv(GLuint indx, list values)\n\nSee: `glVertexAttrib2fv() on Kronos website\n<http://www.khronos.org/opengles/sdk/docs/man/xhtml/glVertexAttrib2fv.xml>`_\n\n.. warning:: Not implemented yet.");
static PyMethodDef __pyx_mdef_4kivy_8graphics_6opengl_267glVertexAttrib2fv = {"glVertexAttrib2fv", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4kivy_8graphics_6opengl_267glVertexAttrib2fv, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4kivy_8graphics_6opengl_266glVertexAttrib2fv};
static PyObject *__pyx_pw_4kivy_8graphics_6opengl_267glVertexAttrib2fv(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  CYTHON_UNUSED GLuint __pyx_v_indx;
  CYTHON_UNUSED PyObject *__pyx_v_values = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[2] = {0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("glVertexAttrib2fv (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_indx,&__pyx_mstate_global->__pyx_n_u_values,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(0, 1495, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 1495, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 1495, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "glVertexAttrib2fv", 0) < (0)) __PYX_ERR(0, 1495, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 2; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("glVertexAttrib2fv", 1, 2, 2, i); __PYX_ERR(0, 1495, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 2)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 1495, __pyx_L3_error)
      values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 1495, __pyx_L3_error)
    }
    __pyx_v_indx = __Pyx_PyLong_As_GLuint(values[0]); if (unlikely((__pyx_v_indx == ((GLuint)-1)) && PyErr_Occurred())) __PYX_ERR(0, 1495, __pyx_L3_error)
    __pyx_v_values = ((PyObject*)values[1]);
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("glVertexAttrib2fv", 1, 2, 2, __pyx_nargs); __PYX_ERR(0, 1495, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("kivy.graphics.opengl.glVertexAttrib2fv", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_values), (&PyList_Type), 1, "values", 1))) __PYX_ERR(0, 1495, __pyx_L1_error)
  __pyx_r = __pyx_pf_4kivy_8graphics_6opengl_266glVertexAttrib2fv(__pyx_self, __pyx_v_indx, __pyx_v_values);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  goto __pyx_L7_cleaned_up;
  __pyx_L0:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __pyx_L7_cleaned_up:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4kivy_8graphics_6opengl_266glVertexAttrib2fv(CYTHON_UNUSED PyObject *__pyx_self, CYTHON_UNUSED GLuint __pyx_v_indx, CYTHON_UNUSED PyObject *__pyx_v_values) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("glVertexAttrib2fv", 0);

  /* "kivy/graphics/opengl.pyx":1502
 *     '''
 *     #cgl.glVertexAttrib2fv(indx, values)
 *     raise NotImplementedError             # <<<<<<<<<<<<<<
 * 
 * def glVertexAttrib3f(GLuint indx, GLfloat x, GLfloat y, GLfloat z):
*/
  __Pyx_Raise(((PyObject *)(((PyTypeObject*)PyExc_NotImplementedError))), 0, 0, 0);
  __PYX_ERR(0, 1502, __pyx_L1_error)

  /* "kivy/graphics/opengl.pyx":1495
 *     cgl.glVertexAttrib2f(indx, x, y)
 * 
 * def glVertexAttrib2fv(GLuint indx, list values):             # <<<<<<<<<<<<<<
 *     '''See: `glVertexAttrib2fv() on Kronos website
 *     <http://www.khronos.org/opengles/sdk/docs/man/xhtml/glVertexAttrib2fv.xml>`_
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("kivy.graphics.opengl.glVertexAttrib2fv", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "kivy/graphics/opengl.pyx":1504
 *     raise NotImplementedError
 * 
 * def glVertexAttrib3f(GLuint indx, GLfloat x, GLfloat y, GLfloat z):             # <<<<<<<<<<<<<<
 *     '''See: `glVertexAttrib3f() on Kronos website
 *     <http://www.khronos.org/opengles/sdk/docs/man/xhtml/glVertexAttrib3f.xml>`_
*/

/* Python wrapper */
static PyObject *__pyx_pw_4kivy_8graphics_6opengl_269glVertexAttrib3f(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_4kivy_8graphics_6opengl_268glVertexAttrib3f, "glVertexAttrib3f(GLuint indx, GLfloat x, GLfloat y, GLfloat z)\n\nSee: `glVertexAttrib3f() on Kronos website\n<http://www.khronos.org/opengles/sdk/docs/man/xhtml/glVertexAttrib3f.xml>`_");
static PyMethodDef __pyx_mdef_4kivy_8graphics_6opengl_269glVertexAttrib3f = {"glVertexAttrib3f", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4kivy_8graphics_6opengl_269glVertexAttrib3f, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4kivy_8graphics_6opengl_268glVertexAttrib3f};
static PyObject *__pyx_pw_4kivy_8graphics_6opengl_269glVertexAttrib3f(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  GLuint __pyx_v_indx;
  GLfloat __pyx_v_x;
  GLfloat __pyx_v_y;
  GLfloat __pyx_v_z;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[4] = {0,0,0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("glVertexAttrib3f (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_indx,&__pyx_mstate_global->__pyx_n_u_x,&__pyx_mstate_global->__pyx_n_u_y,&__pyx_mstate_global->__pyx_n_u_z,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(0, 1504, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  4:
        values[3] = __Pyx_ArgRef_FASTCALL(__pyx_args, 3);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[3])) __PYX_ERR(0, 1504, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  3:
        values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(0, 1504, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 1504, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 1504, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "glVertexAttrib3f", 0) < (0)) __PYX_ERR(0, 1504, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 4; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("glVertexAttrib3f", 1, 4, 4, i); __PYX_ERR(0, 1504, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 4)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 1504, __pyx_L3_error)
      values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 1504, __pyx_L3_error)
      values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(0, 1504, __pyx_L3_error)
      values[3] = __Pyx_ArgRef_FASTCALL(__pyx_args, 3);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[3])) __PYX_ERR(0, 1504, __pyx_L3_error)
    }
    __pyx_v_indx = __Pyx_PyLong_As_GLuint(values[0]); if (unlikely((__pyx_v_indx == ((GLuint)-1)) && PyErr_Occurred())) __PYX_ERR(0, 1504, __pyx_L3_error)
    __pyx_v_x = __Pyx_PyFloat_AsFloat(values[1]); if (unlikely((__pyx_v_x == ((GLfloat)-1)) && PyErr_Occurred())) __PYX_ERR(0, 1504, __pyx_L3_error)
    __pyx_v_y = __Pyx_PyFloat_AsFloat(values[2]); if (unlikely((__pyx_v_y == ((GLfloat)-1)) && PyErr_Occurred())) __PYX_ERR(0, 1504, __pyx_L3_error)
    __pyx_v_z = __Pyx_PyFloat_AsFloat(values[3]); if (unlikely((__pyx_v_z == ((GLfloat)-1)) && PyErr_Occurred())) __PYX_ERR(0, 1504, __pyx_L3_error)
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("glVertexAttrib3f", 1, 4, 4, __pyx_nargs); __PYX_ERR(0, 1504, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("kivy.graphics.opengl.glVertexAttrib3f", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4kivy_8graphics_6opengl_268glVertexAttrib3f(__pyx_self, __pyx_v_indx, __pyx_v_x, __pyx_v_y, __pyx_v_z);

  /* function exit code */
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4kivy_8graphics_6opengl_268glVertexAttrib3f(CYTHON_UNUSED PyObject *__pyx_self, GLuint __pyx_v_indx, GLfloat __pyx_v_x, GLfloat __pyx_v_y, GLfloat __pyx_v_z) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("glVertexAttrib3f", 0);

  /* "kivy/graphics/opengl.pyx":1508
 *     <http://www.khronos.org/opengles/sdk/docs/man/xhtml/glVertexAttrib3f.xml>`_
 *     '''
 *     cgl.glVertexAttrib3f(indx, x, y, z)             # <<<<<<<<<<<<<<
 * 
 * def glVertexAttrib3fv(GLuint indx, list values):
*/
  __pyx_v_4kivy_8graphics_3cgl_cgl->glVertexAttrib3f(__pyx_v_indx, __pyx_v_x, __pyx_v_y, __pyx_v_z); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 1508, __pyx_L1_error)

  /* "kivy/graphics/opengl.pyx":1504
 *     raise NotImplementedError
 * 
 * def glVertexAttrib3f(GLuint indx, GLfloat x, GLfloat y, GLfloat z):             # <<<<<<<<<<<<<<
 *     '''See: `glVertexAttrib3f() on Kronos website
 *     <http://www.khronos.org/opengles/sdk/docs/man/xhtml/glVertexAttrib3f.xml>`_
*/

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

/* "kivy/graphics/opengl.pyx":1510
 *     cgl.glVertexAttrib3f(indx, x, y, z)
 * 
 * def glVertexAttrib3fv(GLuint indx, list values):             # <<<<<<<<<<<<<<
 *     '''See: `glVertexAttrib3fv() on Kronos website
 *     <http://www.khronos.org/opengles/sdk/docs/man/xhtml/glVertexAttrib3fv.xml>`_
*/

/* Python wrapper */
static PyObject *__pyx_pw_4kivy_8graphics_6opengl_271glVertexAttrib3fv(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_4kivy_8graphics_6opengl_270glVertexAttrib3fv, "glVertexAttrib3fv(GLuint indx, list values)\n\nSee: `glVertexAttrib3fv() on Kronos website\n<http://www.khronos.org/opengles/sdk/docs/man/xhtml/glVertexAttrib3fv.xml>`_\n\n.. warning:: Not implemented yet.");
static PyMethodDef __pyx_mdef_4kivy_8graphics_6opengl_271glVertexAttrib3fv = {"glVertexAttrib3fv", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4kivy_8graphics_6opengl_271glVertexAttrib3fv, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4kivy_8graphics_6opengl_270glVertexAttrib3fv};
static PyObject *__pyx_pw_4kivy_8graphics_6opengl_271glVertexAttrib3fv(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  CYTHON_UNUSED GLuint __pyx_v_indx;
  CYTHON_UNUSED PyObject *__pyx_v_values = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[2] = {0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("glVertexAttrib3fv (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_indx,&__pyx_mstate_global->__pyx_n_u_values,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(0, 1510, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 1510, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 1510, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "glVertexAttrib3fv", 0) < (0)) __PYX_ERR(0, 1510, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 2; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("glVertexAttrib3fv", 1, 2, 2, i); __PYX_ERR(0, 1510, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 2)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 1510, __pyx_L3_error)
      values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 1510, __pyx_L3_error)
    }
    __pyx_v_indx = __Pyx_PyLong_As_GLuint(values[0]); if (unlikely((__pyx_v_indx == ((GLuint)-1)) && PyErr_Occurred())) __PYX_ERR(0, 1510, __pyx_L3_error)
    __pyx_v_values = ((PyObject*)values[1]);
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("glVertexAttrib3fv", 1, 2, 2, __pyx_nargs); __PYX_ERR(0, 1510, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("kivy.graphics.opengl.glVertexAttrib3fv", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_values), (&PyList_Type), 1, "values", 1))) __PYX_ERR(0, 1510, __pyx_L1_error)
  __pyx_r = __pyx_pf_4kivy_8graphics_6opengl_270glVertexAttrib3fv(__pyx_self, __pyx_v_indx, __pyx_v_values);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  goto __pyx_L7_cleaned_up;
  __pyx_L0:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __pyx_L7_cleaned_up:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4kivy_8graphics_6opengl_270glVertexAttrib3fv(CYTHON_UNUSED PyObject *__pyx_self, CYTHON_UNUSED GLuint __pyx_v_indx, CYTHON_UNUSED PyObject *__pyx_v_values) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("glVertexAttrib3fv", 0);

  /* "kivy/graphics/opengl.pyx":1517
 *     '''
 *     #cgl.glVertexAttrib3fv(indx, values)
 *     raise NotImplementedError             # <<<<<<<<<<<<<<
 * 
 * def glVertexAttrib4f(GLuint indx, GLfloat x, GLfloat y, GLfloat z, GLfloat w):
*/
  __Pyx_Raise(((PyObject *)(((PyTypeObject*)PyExc_NotImplementedError))), 0, 0, 0);
  __PYX_ERR(0, 1517, __pyx_L1_error)

  /* "kivy/graphics/opengl.pyx":1510
 *     cgl.glVertexAttrib3f(indx, x, y, z)
 * 
 * def glVertexAttrib3fv(GLuint indx, list values):             # <<<<<<<<<<<<<<
 *     '''See: `glVertexAttrib3fv() on Kronos website
 *     <http://www.khronos.org/opengles/sdk/docs/man/xhtml/glVertexAttrib3fv.xml>`_
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("kivy.graphics.opengl.glVertexAttrib3fv", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "kivy/graphics/opengl.pyx":1519
 *     raise NotImplementedError
 * 
 * def glVertexAttrib4f(GLuint indx, GLfloat x, GLfloat y, GLfloat z, GLfloat w):             # <<<<<<<<<<<<<<
 *     '''See: `glVertexAttrib4f() on Kronos website
 *     <http://www.khronos.org/opengles/sdk/docs/man/xhtml/glVertexAttrib4f.xml>`_
*/

/* Python wrapper */
static PyObject *__pyx_pw_4kivy_8graphics_6opengl_273glVertexAttrib4f(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_4kivy_8graphics_6opengl_272glVertexAttrib4f, "glVertexAttrib4f(GLuint indx, GLfloat x, GLfloat y, GLfloat z, GLfloat w)\n\nSee: `glVertexAttrib4f() on Kronos website\n<http://www.khronos.org/opengles/sdk/docs/man/xhtml/glVertexAttrib4f.xml>`_");
static PyMethodDef __pyx_mdef_4kivy_8graphics_6opengl_273glVertexAttrib4f = {"glVertexAttrib4f", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4kivy_8graphics_6opengl_273glVertexAttrib4f, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4kivy_8graphics_6opengl_272glVertexAttrib4f};
static PyObject *__pyx_pw_4kivy_8graphics_6opengl_273glVertexAttrib4f(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  GLuint __pyx_v_indx;
  GLfloat __pyx_v_x;
  GLfloat __pyx_v_y;
  GLfloat __pyx_v_z;
  GLfloat __pyx_v_w;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[5] = {0,0,0,0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("glVertexAttrib4f (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_indx,&__pyx_mstate_global->__pyx_n_u_x,&__pyx_mstate_global->__pyx_n_u_y,&__pyx_mstate_global->__pyx_n_u_z,&__pyx_mstate_global->__pyx_n_u_w,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(0, 1519, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  5:
        values[4] = __Pyx_ArgRef_FASTCALL(__pyx_args, 4);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[4])) __PYX_ERR(0, 1519, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  4:
        values[3] = __Pyx_ArgRef_FASTCALL(__pyx_args, 3);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[3])) __PYX_ERR(0, 1519, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  3:
        values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(0, 1519, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 1519, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 1519, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "glVertexAttrib4f", 0) < (0)) __PYX_ERR(0, 1519, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 5; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("glVertexAttrib4f", 1, 5, 5, i); __PYX_ERR(0, 1519, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 5)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 1519, __pyx_L3_error)
      values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 1519, __pyx_L3_error)
      values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(0, 1519, __pyx_L3_error)
      values[3] = __Pyx_ArgRef_FASTCALL(__pyx_args, 3);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[3])) __PYX_ERR(0, 1519, __pyx_L3_error)
      values[4] = __Pyx_ArgRef_FASTCALL(__pyx_args, 4);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[4])) __PYX_ERR(0, 1519, __pyx_L3_error)
    }
    __pyx_v_indx = __Pyx_PyLong_As_GLuint(values[0]); if (unlikely((__pyx_v_indx == ((GLuint)-1)) && PyErr_Occurred())) __PYX_ERR(0, 1519, __pyx_L3_error)
    __pyx_v_x = __Pyx_PyFloat_AsFloat(values[1]); if (unlikely((__pyx_v_x == ((GLfloat)-1)) && PyErr_Occurred())) __PYX_ERR(0, 1519, __pyx_L3_error)
    __pyx_v_y = __Pyx_PyFloat_AsFloat(values[2]); if (unlikely((__pyx_v_y == ((GLfloat)-1)) && PyErr_Occurred())) __PYX_ERR(0, 1519, __pyx_L3_error)
    __pyx_v_z = __Pyx_PyFloat_AsFloat(values[3]); if (unlikely((__pyx_v_z == ((GLfloat)-1)) && PyErr_Occurred())) __PYX_ERR(0, 1519, __pyx_L3_error)
    __pyx_v_w = __Pyx_PyFloat_AsFloat(values[4]); if (unlikely((__pyx_v_w == ((GLfloat)-1)) && PyErr_Occurred())) __PYX_ERR(0, 1519, __pyx_L3_error)
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("glVertexAttrib4f", 1, 5, 5, __pyx_nargs); __PYX_ERR(0, 1519, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("kivy.graphics.opengl.glVertexAttrib4f", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4kivy_8graphics_6opengl_272glVertexAttrib4f(__pyx_self, __pyx_v_indx, __pyx_v_x, __pyx_v_y, __pyx_v_z, __pyx_v_w);

  /* function exit code */
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4kivy_8graphics_6opengl_272glVertexAttrib4f(CYTHON_UNUSED PyObject *__pyx_self, GLuint __pyx_v_indx, GLfloat __pyx_v_x, GLfloat __pyx_v_y, GLfloat __pyx_v_z, GLfloat __pyx_v_w) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("glVertexAttrib4f", 0);

  /* "kivy/graphics/opengl.pyx":1523
 *     <http://www.khronos.org/opengles/sdk/docs/man/xhtml/glVertexAttrib4f.xml>`_
 *     '''
 *     cgl.glVertexAttrib4f(indx, x, y, z, w)             # <<<<<<<<<<<<<<
 * 
 * def glVertexAttrib4fv(GLuint indx, list values):
*/
  __pyx_v_4kivy_8graphics_3cgl_cgl->glVertexAttrib4f(__pyx_v_indx, __pyx_v_x, __pyx_v_y, __pyx_v_z, __pyx_v_w); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 1523, __pyx_L1_error)

  /* "kivy/graphics/opengl.pyx":1519
 *     raise NotImplementedError
 * 
 * def glVertexAttrib4f(GLuint indx, GLfloat x, GLfloat y, GLfloat z, GLfloat w):             # <<<<<<<<<<<<<<
 *     '''See: `glVertexAttrib4f() on Kronos website
 *     <http://www.khronos.org/opengles/sdk/docs/man/xhtml/glVertexAttrib4f.xml>`_
*/

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

/* "kivy/graphics/opengl.pyx":1525
 *     cgl.glVertexAttrib4f(indx, x, y, z, w)
 * 
 * def glVertexAttrib4fv(GLuint indx, list values):             # <<<<<<<<<<<<<<
 *     '''See: `glVertexAttrib4fv() on Kronos website
 *     <http://www.khronos.org/opengles/sdk/docs/man/xhtml/glVertexAttrib4fv.xml>`_
*/

/* Python wrapper */
static PyObject *__pyx_pw_4kivy_8graphics_6opengl_275glVertexAttrib4fv(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_4kivy_8graphics_6opengl_274glVertexAttrib4fv, "glVertexAttrib4fv(GLuint indx, list values)\n\nSee: `glVertexAttrib4fv() on Kronos website\n<http://www.khronos.org/opengles/sdk/docs/man/xhtml/glVertexAttrib4fv.xml>`_\n\n.. warning:: Not implemented yet.");
static PyMethodDef __pyx_mdef_4kivy_8graphics_6opengl_275glVertexAttrib4fv = {"glVertexAttrib4fv", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4kivy_8graphics_6opengl_275glVertexAttrib4fv, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4kivy_8graphics_6opengl_274glVertexAttrib4fv};
static PyObject *__pyx_pw_4kivy_8graphics_6opengl_275glVertexAttrib4fv(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  CYTHON_UNUSED GLuint __pyx_v_indx;
  CYTHON_UNUSED PyObject *__pyx_v_values = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[2] = {0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("glVertexAttrib4fv (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_indx,&__pyx_mstate_global->__pyx_n_u_values,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(0, 1525, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 1525, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 1525, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "glVertexAttrib4fv", 0) < (0)) __PYX_ERR(0, 1525, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 2; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("glVertexAttrib4fv", 1, 2, 2, i); __PYX_ERR(0, 1525, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 2)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 1525, __pyx_L3_error)
      values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 1525, __pyx_L3_error)
    }
    __pyx_v_indx = __Pyx_PyLong_As_GLuint(values[0]); if (unlikely((__pyx_v_indx == ((GLuint)-1)) && PyErr_Occurred())) __PYX_ERR(0, 1525, __pyx_L3_error)
    __pyx_v_values = ((PyObject*)values[1]);
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("glVertexAttrib4fv", 1, 2, 2, __pyx_nargs); __PYX_ERR(0, 1525, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("kivy.graphics.opengl.glVertexAttrib4fv", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_values), (&PyList_Type), 1, "values", 1))) __PYX_ERR(0, 1525, __pyx_L1_error)
  __pyx_r = __pyx_pf_4kivy_8graphics_6opengl_274glVertexAttrib4fv(__pyx_self, __pyx_v_indx, __pyx_v_values);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  goto __pyx_L7_cleaned_up;
  __pyx_L0:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __pyx_L7_cleaned_up:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4kivy_8graphics_6opengl_274glVertexAttrib4fv(CYTHON_UNUSED PyObject *__pyx_self, CYTHON_UNUSED GLuint __pyx_v_indx, CYTHON_UNUSED PyObject *__pyx_v_values) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("glVertexAttrib4fv", 0);

  /* "kivy/graphics/opengl.pyx":1532
 *     '''
 *     #cgl.glVertexAttrib4fv(indx, values)
 *     raise NotImplementedError             # <<<<<<<<<<<<<<
 * 
 * def glVertexAttribPointer(GLuint index, GLint size, GLenum type, GLboolean normalized, GLsizei stride, data):
*/
  __Pyx_Raise(((PyObject *)(((PyTypeObject*)PyExc_NotImplementedError))), 0, 0, 0);
  __PYX_ERR(0, 1532, __pyx_L1_error)

  /* "kivy/graphics/opengl.pyx":1525
 *     cgl.glVertexAttrib4f(indx, x, y, z, w)
 * 
 * def glVertexAttrib4fv(GLuint indx, list values):             # <<<<<<<<<<<<<<
 *     '''See: `glVertexAttrib4fv() on Kronos website
 *     <http://www.khronos.org/opengles/sdk/docs/man/xhtml/glVertexAttrib4fv.xml>`_
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("kivy.graphics.opengl.glVertexAttrib4fv", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "kivy/graphics/opengl.pyx":1534
 *     raise NotImplementedError
 * 
 * def glVertexAttribPointer(GLuint index, GLint size, GLenum type, GLboolean normalized, GLsizei stride, data):             # <<<<<<<<<<<<<<
 *     '''See: `glVertexAttribPointer() on Kronos website
 *     <http://www.khronos.org/opengles/sdk/docs/man/xhtml/glVertexAttribPointer.xml>`_
*/

/* Python wrapper */
static PyObject *__pyx_pw_4kivy_8graphics_6opengl_277glVertexAttribPointer(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_4kivy_8graphics_6opengl_276glVertexAttribPointer, "glVertexAttribPointer(GLuint index, GLint size, GLenum type, GLboolean normalized, GLsizei stride, data)\n\nSee: `glVertexAttribPointer() on Kronos website\n<http://www.khronos.org/opengles/sdk/docs/man/xhtml/glVertexAttribPointer.xml>`_");
static PyMethodDef __pyx_mdef_4kivy_8graphics_6opengl_277glVertexAttribPointer = {"glVertexAttribPointer", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4kivy_8graphics_6opengl_277glVertexAttribPointer, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4kivy_8graphics_6opengl_276glVertexAttribPointer};
static PyObject *__pyx_pw_4kivy_8graphics_6opengl_277glVertexAttribPointer(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  GLuint __pyx_v_index;
  GLint __pyx_v_size;
  GLenum __pyx_v_type;
  GLboolean __pyx_v_normalized;
  GLsizei __pyx_v_stride;
  PyObject *__pyx_v_data = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[6] = {0,0,0,0,0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("glVertexAttribPointer (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_index,&__pyx_mstate_global->__pyx_n_u_size,&__pyx_mstate_global->__pyx_n_u_type,&__pyx_mstate_global->__pyx_n_u_normalized,&__pyx_mstate_global->__pyx_n_u_stride,&__pyx_mstate_global->__pyx_n_u_data,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(0, 1534, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  6:
        values[5] = __Pyx_ArgRef_FASTCALL(__pyx_args, 5);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[5])) __PYX_ERR(0, 1534, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  5:
        values[4] = __Pyx_ArgRef_FASTCALL(__pyx_args, 4);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[4])) __PYX_ERR(0, 1534, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  4:
        values[3] = __Pyx_ArgRef_FASTCALL(__pyx_args, 3);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[3])) __PYX_ERR(0, 1534, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  3:
        values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(0, 1534, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 1534, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 1534, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "glVertexAttribPointer", 0) < (0)) __PYX_ERR(0, 1534, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 6; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("glVertexAttribPointer", 1, 6, 6, i); __PYX_ERR(0, 1534, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 6)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 1534, __pyx_L3_error)
      values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 1534, __pyx_L3_error)
      values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(0, 1534, __pyx_L3_error)
      values[3] = __Pyx_ArgRef_FASTCALL(__pyx_args, 3);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[3])) __PYX_ERR(0, 1534, __pyx_L3_error)
      values[4] = __Pyx_ArgRef_FASTCALL(__pyx_args, 4);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[4])) __PYX_ERR(0, 1534, __pyx_L3_error)
      values[5] = __Pyx_ArgRef_FASTCALL(__pyx_args, 5);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[5])) __PYX_ERR(0, 1534, __pyx_L3_error)
    }
    __pyx_v_index = __Pyx_PyLong_As_GLuint(values[0]); if (unlikely((__pyx_v_index == ((GLuint)-1)) && PyErr_Occurred())) __PYX_ERR(0, 1534, __pyx_L3_error)
    __pyx_v_size = __Pyx_PyLong_As_GLint(values[1]); if (unlikely((__pyx_v_size == ((GLint)-1)) && PyErr_Occurred())) __PYX_ERR(0, 1534, __pyx_L3_error)
    __pyx_v_type = __Pyx_PyLong_As_GLenum(values[2]); if (unlikely((__pyx_v_type == ((GLenum)-1)) && PyErr_Occurred())) __PYX_ERR(0, 1534, __pyx_L3_error)
    __pyx_v_normalized = __Pyx_PyLong_As_GLboolean(values[3]); if (unlikely((__pyx_v_normalized == ((GLboolean)-1)) && PyErr_Occurred())) __PYX_ERR(0, 1534, __pyx_L3_error)
    __pyx_v_stride = __Pyx_PyLong_As_GLsizei(values[4]); if (unlikely((__pyx_v_stride == ((GLsizei)-1)) && PyErr_Occurred())) __PYX_ERR(0, 1534, __pyx_L3_error)
    __pyx_v_data = values[5];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("glVertexAttribPointer", 1, 6, 6, __pyx_nargs); __PYX_ERR(0, 1534, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("kivy.graphics.opengl.glVertexAttribPointer", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4kivy_8graphics_6opengl_276glVertexAttribPointer(__pyx_self, __pyx_v_index, __pyx_v_size, __pyx_v_type, __pyx_v_normalized, __pyx_v_stride, __pyx_v_data);

  /* function exit code */
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4kivy_8graphics_6opengl_276glVertexAttribPointer(CYTHON_UNUSED PyObject *__pyx_self, GLuint __pyx_v_index, GLint __pyx_v_size, GLenum __pyx_v_type, GLboolean __pyx_v_normalized, GLsizei __pyx_v_stride, PyObject *__pyx_v_data) {
  void *__pyx_v_ptr;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  char *__pyx_t_2;
  unsigned int __pyx_t_3;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  size_t __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("glVertexAttribPointer", 0);

  /* "kivy/graphics/opengl.pyx":1539
 * 
 *     '''
 *     cdef void *ptr = NULL             # <<<<<<<<<<<<<<
 *     if isinstance(data, bytes):
 *         ptr = <void *>(<char *>(<bytes>data))
*/
  __pyx_v_ptr = NULL;

  /* "kivy/graphics/opengl.pyx":1540
 *     '''
 *     cdef void *ptr = NULL
 *     if isinstance(data, bytes):             # <<<<<<<<<<<<<<
 *         ptr = <void *>(<char *>(<bytes>data))
 *     elif isinstance(data, int):
*/
  __pyx_t_1 = PyBytes_Check(__pyx_v_data); 
  if (__pyx_t_1) {

    /* "kivy/graphics/opengl.pyx":1541
 *     cdef void *ptr = NULL
 *     if isinstance(data, bytes):
 *         ptr = <void *>(<char *>(<bytes>data))             # <<<<<<<<<<<<<<
 *     elif isinstance(data, int):
 *         ptr = <void *>(<unsigned int>data)
*/
    if (unlikely(__pyx_v_data == Py_None)) {
      PyErr_SetString(PyExc_TypeError, "expected bytes, NoneType found");
      __PYX_ERR(0, 1541, __pyx_L1_error)
    }
    __pyx_t_2 = __Pyx_PyBytes_AsWritableString(__pyx_v_data); if (unlikely((!__pyx_t_2) && PyErr_Occurred())) __PYX_ERR(0, 1541, __pyx_L1_error)
    __pyx_v_ptr = ((void *)((char *)__pyx_t_2));

    /* "kivy/graphics/opengl.pyx":1540
 *     '''
 *     cdef void *ptr = NULL
 *     if isinstance(data, bytes):             # <<<<<<<<<<<<<<
 *         ptr = <void *>(<char *>(<bytes>data))
 *     elif isinstance(data, int):
*/
    goto __pyx_L3;
  }

  /* "kivy/graphics/opengl.pyx":1542
 *     if isinstance(data, bytes):
 *         ptr = <void *>(<char *>(<bytes>data))
 *     elif isinstance(data, int):             # <<<<<<<<<<<<<<
 *         ptr = <void *>(<unsigned int>data)
 *     else:
*/
  __pyx_t_1 = PyLong_Check(__pyx_v_data); 
  if (likely(__pyx_t_1)) {

    /* "kivy/graphics/opengl.pyx":1543
 *         ptr = <void *>(<char *>(<bytes>data))
 *     elif isinstance(data, int):
 *         ptr = <void *>(<unsigned int>data)             # <<<<<<<<<<<<<<
 *     else:
 *         raise TypeError("Argument 'data' has incorrect type (expected bytes or int).")
*/
    __pyx_t_3 = __Pyx_PyLong_As_unsigned_int(__pyx_v_data); if (unlikely((__pyx_t_3 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(0, 1543, __pyx_L1_error)
    __pyx_v_ptr = ((void *)((unsigned int)__pyx_t_3));

    /* "kivy/graphics/opengl.pyx":1542
 *     if isinstance(data, bytes):
 *         ptr = <void *>(<char *>(<bytes>data))
 *     elif isinstance(data, int):             # <<<<<<<<<<<<<<
 *         ptr = <void *>(<unsigned int>data)
 *     else:
*/
    goto __pyx_L3;
  }

  /* "kivy/graphics/opengl.pyx":1545
 *         ptr = <void *>(<unsigned int>data)
 *     else:
 *         raise TypeError("Argument 'data' has incorrect type (expected bytes or int).")             # <<<<<<<<<<<<<<
 *     cgl.glVertexAttribPointer(index, size, type, normalized, stride, ptr)
 * 
*/
  /*else*/ {
    __pyx_t_5 = NULL;
    __pyx_t_6 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_5, __pyx_mstate_global->__pyx_kp_u_Argument_data_has_incorrect_type};
      __pyx_t_4 = __Pyx_PyObject_FastCall((PyObject*)(((PyTypeObject*)PyExc_TypeError)), __pyx_callargs+__pyx_t_6, (2-__pyx_t_6) | (__pyx_t_6*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1545, __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, 1545, __pyx_L1_error)
  }
  __pyx_L3:;

  /* "kivy/graphics/opengl.pyx":1546
 *     else:
 *         raise TypeError("Argument 'data' has incorrect type (expected bytes or int).")
 *     cgl.glVertexAttribPointer(index, size, type, normalized, stride, ptr)             # <<<<<<<<<<<<<<
 * 
 * def glViewport(GLint x, GLint y, GLsizei width, GLsizei height):
*/
  __pyx_v_4kivy_8graphics_3cgl_cgl->glVertexAttribPointer(__pyx_v_index, __pyx_v_size, __pyx_v_type, __pyx_v_normalized, __pyx_v_stride, __pyx_v_ptr); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 1546, __pyx_L1_error)

  /* "kivy/graphics/opengl.pyx":1534
 *     raise NotImplementedError
 * 
 * def glVertexAttribPointer(GLuint index, GLint size, GLenum type, GLboolean normalized, GLsizei stride, data):             # <<<<<<<<<<<<<<
 *     '''See: `glVertexAttribPointer() on Kronos website
 *     <http://www.khronos.org/opengles/sdk/docs/man/xhtml/glVertexAttribPointer.xml>`_
*/

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("kivy.graphics.opengl.glVertexAttribPointer", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "kivy/graphics/opengl.pyx":1548
 *     cgl.glVertexAttribPointer(index, size, type, normalized, stride, ptr)
 * 
 * def glViewport(GLint x, GLint y, GLsizei width, GLsizei height):             # <<<<<<<<<<<<<<
 *     '''See: `glViewport() on Kronos website
 *     <http://www.khronos.org/opengles/sdk/docs/man/xhtml/glViewport.xml>`_
*/

/* Python wrapper */
static PyObject *__pyx_pw_4kivy_8graphics_6opengl_279glViewport(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_4kivy_8graphics_6opengl_278glViewport, "glViewport(GLint x, GLint y, GLsizei width, GLsizei height)\n\nSee: `glViewport() on Kronos website\n<http://www.khronos.org/opengles/sdk/docs/man/xhtml/glViewport.xml>`_");
static PyMethodDef __pyx_mdef_4kivy_8graphics_6opengl_279glViewport = {"glViewport", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4kivy_8graphics_6opengl_279glViewport, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4kivy_8graphics_6opengl_278glViewport};
static PyObject *__pyx_pw_4kivy_8graphics_6opengl_279glViewport(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  GLint __pyx_v_x;
  GLint __pyx_v_y;
  GLsizei __pyx_v_width;
  GLsizei __pyx_v_height;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[4] = {0,0,0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("glViewport (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_x,&__pyx_mstate_global->__pyx_n_u_y,&__pyx_mstate_global->__pyx_n_u_width,&__pyx_mstate_global->__pyx_n_u_height,0};
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(0, 1548, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  4:
        values[3] = __Pyx_ArgRef_FASTCALL(__pyx_args, 3);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[3])) __PYX_ERR(0, 1548, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  3:
        values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(0, 1548, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 1548, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 1548, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "glViewport", 0) < (0)) __PYX_ERR(0, 1548, __pyx_L3_error)
      for (Py_ssize_t i = __pyx_nargs; i < 4; i++) {
        if (unlikely(!values[i])) { __Pyx_RaiseArgtupleInvalid("glViewport", 1, 4, 4, i); __PYX_ERR(0, 1548, __pyx_L3_error) }
      }
    } else if (unlikely(__pyx_nargs != 4)) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 1548, __pyx_L3_error)
      values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 1548, __pyx_L3_error)
      values[2] = __Pyx_ArgRef_FASTCALL(__pyx_args, 2);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[2])) __PYX_ERR(0, 1548, __pyx_L3_error)
      values[3] = __Pyx_ArgRef_FASTCALL(__pyx_args, 3);
      if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[3])) __PYX_ERR(0, 1548, __pyx_L3_error)
    }
    __pyx_v_x = __Pyx_PyLong_As_GLint(values[0]); if (unlikely((__pyx_v_x == ((GLint)-1)) && PyErr_Occurred())) __PYX_ERR(0, 1548, __pyx_L3_error)
    __pyx_v_y = __Pyx_PyLong_As_GLint(values[1]); if (unlikely((__pyx_v_y == ((GLint)-1)) && PyErr_Occurred())) __PYX_ERR(0, 1548, __pyx_L3_error)
    __pyx_v_width = __Pyx_PyLong_As_GLsizei(values[2]); if (unlikely((__pyx_v_width == ((GLsizei)-1)) && PyErr_Occurred())) __PYX_ERR(0, 1548, __pyx_L3_error)
    __pyx_v_height = __Pyx_PyLong_As_GLsizei(values[3]); if (unlikely((__pyx_v_height == ((GLsizei)-1)) && PyErr_Occurred())) __PYX_ERR(0, 1548, __pyx_L3_error)
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("glViewport", 1, 4, 4, __pyx_nargs); __PYX_ERR(0, 1548, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("kivy.graphics.opengl.glViewport", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4kivy_8graphics_6opengl_278glViewport(__pyx_self, __pyx_v_x, __pyx_v_y, __pyx_v_width, __pyx_v_height);

  /* function exit code */
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4kivy_8graphics_6opengl_278glViewport(CYTHON_UNUSED PyObject *__pyx_self, GLint __pyx_v_x, GLint __pyx_v_y, GLsizei __pyx_v_width, GLsizei __pyx_v_height) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("glViewport", 0);

  /* "kivy/graphics/opengl.pyx":1552
 *     <http://www.khronos.org/opengles/sdk/docs/man/xhtml/glViewport.xml>`_
 *     '''
 *     cgl.glViewport(x, y, width, height)             # <<<<<<<<<<<<<<
 * 
 * 
*/
  __pyx_v_4kivy_8graphics_3cgl_cgl->glViewport(__pyx_v_x, __pyx_v_y, __pyx_v_width, __pyx_v_height); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 1552, __pyx_L1_error)

  /* "kivy/graphics/opengl.pyx":1548
 *     cgl.glVertexAttribPointer(index, size, type, normalized, stride, ptr)
 * 
 * def glViewport(GLint x, GLint y, GLsizei width, GLsizei height):             # <<<<<<<<<<<<<<
 *     '''See: `glViewport() on Kronos website
 *     <http://www.khronos.org/opengles/sdk/docs/man/xhtml/glViewport.xml>`_
*/

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

/* "kivy/graphics/opengl.pyx":1555
 * 
 * 
 * def gl_init_symbols(allowed=[], ignored=[]):             # <<<<<<<<<<<<<<
 *     cgl_init(allowed, ignored)
*/

static PyObject *__pyx_pf_4kivy_8graphics_6opengl_282__defaults__(CYTHON_UNUSED PyObject *__pyx_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("__defaults__", 0);
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = PyTuple_New(2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1555, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_INCREF(__Pyx_CyFunction_Defaults(struct __pyx_defaults, __pyx_self)->arg0);
  __Pyx_GIVEREF(__Pyx_CyFunction_Defaults(struct __pyx_defaults, __pyx_self)->arg0);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_1, 0, __Pyx_CyFunction_Defaults(struct __pyx_defaults, __pyx_self)->arg0) != (0)) __PYX_ERR(0, 1555, __pyx_L1_error);
  __Pyx_INCREF(__Pyx_CyFunction_Defaults(struct __pyx_defaults, __pyx_self)->arg1);
  __Pyx_GIVEREF(__Pyx_CyFunction_Defaults(struct __pyx_defaults, __pyx_self)->arg1);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_1, 1, __Pyx_CyFunction_Defaults(struct __pyx_defaults, __pyx_self)->arg1) != (0)) __PYX_ERR(0, 1555, __pyx_L1_error);
  __pyx_t_2 = PyTuple_New(2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1555, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_1);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_1) != (0)) __PYX_ERR(0, 1555, __pyx_L1_error);
  __Pyx_INCREF(Py_None);
  __Pyx_GIVEREF(Py_None);
  if (__Pyx_PyTuple_SET_ITEM(__pyx_t_2, 1, Py_None) != (0)) __PYX_ERR(0, 1555, __pyx_L1_error);
  __pyx_t_1 = 0;
  __pyx_r = __pyx_t_2;
  __pyx_t_2 = 0;
  goto __pyx_L0;

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

/* Python wrapper */
static PyObject *__pyx_pw_4kivy_8graphics_6opengl_281gl_init_symbols(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
); /*proto*/
PyDoc_STRVAR(__pyx_doc_4kivy_8graphics_6opengl_280gl_init_symbols, "gl_init_symbols(allowed=[], ignored=[])");
static PyMethodDef __pyx_mdef_4kivy_8graphics_6opengl_281gl_init_symbols = {"gl_init_symbols", (PyCFunction)(void(*)(void))(__Pyx_PyCFunction_FastCallWithKeywords)__pyx_pw_4kivy_8graphics_6opengl_281gl_init_symbols, __Pyx_METH_FASTCALL|METH_KEYWORDS, __pyx_doc_4kivy_8graphics_6opengl_280gl_init_symbols};
static PyObject *__pyx_pw_4kivy_8graphics_6opengl_281gl_init_symbols(PyObject *__pyx_self, 
#if CYTHON_METH_FASTCALL
PyObject *const *__pyx_args, Py_ssize_t __pyx_nargs, PyObject *__pyx_kwds
#else
PyObject *__pyx_args, PyObject *__pyx_kwds
#endif
) {
  PyObject *__pyx_v_allowed = 0;
  PyObject *__pyx_v_ignored = 0;
  #if !CYTHON_METH_FASTCALL
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  #endif
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject* values[2] = {0,0};
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("gl_init_symbols (wrapper)", 0);
  #if !CYTHON_METH_FASTCALL
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  #endif
  __pyx_kwvalues = __Pyx_KwValues_FASTCALL(__pyx_args, __pyx_nargs);
  {
    PyObject ** const __pyx_pyargnames[] = {&__pyx_mstate_global->__pyx_n_u_allowed,&__pyx_mstate_global->__pyx_n_u_ignored,0};
    struct __pyx_defaults *__pyx_dynamic_args = __Pyx_CyFunction_Defaults(struct __pyx_defaults, __pyx_self);
    const Py_ssize_t __pyx_kwds_len = (__pyx_kwds) ? __Pyx_NumKwargs_FASTCALL(__pyx_kwds) : 0;
    if (unlikely(__pyx_kwds_len) < 0) __PYX_ERR(0, 1555, __pyx_L3_error)
    if (__pyx_kwds_len > 0) {
      switch (__pyx_nargs) {
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 1555, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 1555, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      const Py_ssize_t kwd_pos_args = __pyx_nargs;
      if (__Pyx_ParseKeywords(__pyx_kwds, __pyx_kwvalues, __pyx_pyargnames, 0, values, kwd_pos_args, __pyx_kwds_len, "gl_init_symbols", 0) < (0)) __PYX_ERR(0, 1555, __pyx_L3_error)
      if (!values[0]) values[0] = __Pyx_NewRef(__pyx_dynamic_args->arg0);
      if (!values[1]) values[1] = __Pyx_NewRef(__pyx_dynamic_args->arg1);
    } else {
      switch (__pyx_nargs) {
        case  2:
        values[1] = __Pyx_ArgRef_FASTCALL(__pyx_args, 1);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[1])) __PYX_ERR(0, 1555, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  1:
        values[0] = __Pyx_ArgRef_FASTCALL(__pyx_args, 0);
        if (!CYTHON_ASSUME_SAFE_MACROS && unlikely(!values[0])) __PYX_ERR(0, 1555, __pyx_L3_error)
        CYTHON_FALLTHROUGH;
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      if (!values[0]) values[0] = __Pyx_NewRef(__pyx_dynamic_args->arg0);
      if (!values[1]) values[1] = __Pyx_NewRef(__pyx_dynamic_args->arg1);
    }
    __pyx_v_allowed = values[0];
    __pyx_v_ignored = values[1];
  }
  goto __pyx_L6_skip;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("gl_init_symbols", 0, 0, 2, __pyx_nargs); __PYX_ERR(0, 1555, __pyx_L3_error)
  __pyx_L6_skip:;
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L3_error:;
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_AddTraceback("kivy.graphics.opengl.gl_init_symbols", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __pyx_r = __pyx_pf_4kivy_8graphics_6opengl_280gl_init_symbols(__pyx_self, __pyx_v_allowed, __pyx_v_ignored);

  /* function exit code */
  for (Py_ssize_t __pyx_temp=0; __pyx_temp < (Py_ssize_t)(sizeof(values)/sizeof(values[0])); ++__pyx_temp) {
    Py_XDECREF(values[__pyx_temp]);
  }
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4kivy_8graphics_6opengl_280gl_init_symbols(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_allowed, PyObject *__pyx_v_ignored) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  struct __pyx_opt_args_4kivy_8graphics_3cgl_cgl_init __pyx_t_2;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("gl_init_symbols", 0);

  /* "kivy/graphics/opengl.pyx":1556
 * 
 * def gl_init_symbols(allowed=[], ignored=[]):
 *     cgl_init(allowed, ignored)             # <<<<<<<<<<<<<<
*/
  __pyx_t_2.__pyx_n = 2;
  __pyx_t_2.allowed = __pyx_v_allowed;
  __pyx_t_2.ignored = __pyx_v_ignored;
  __pyx_t_1 = __pyx_f_4kivy_8graphics_3cgl_cgl_init(0, &__pyx_t_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1556, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "kivy/graphics/opengl.pyx":1555
 * 
 * 
 * def gl_init_symbols(allowed=[], ignored=[]):             # <<<<<<<<<<<<<<
 *     cgl_init(allowed, ignored)
*/

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("kivy.graphics.opengl.gl_init_symbols", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}
/* #### Code section: module_exttypes ### */

static PyObject *__pyx_tp_new_4kivy_8graphics_6opengl___pyx_defaults(PyTypeObject *t, CYTHON_UNUSED PyObject *a, CYTHON_UNUSED PyObject *k) {
  PyObject *o;
  o = __Pyx_AllocateExtensionType(t, 1);
  if (unlikely(!o)) return 0;
  return o;
}

static void __pyx_tp_dealloc_4kivy_8graphics_6opengl___pyx_defaults(PyObject *o) {
  struct __pyx_defaults *p = (struct __pyx_defaults *)o;
  #if CYTHON_USE_TP_FINALIZE
  if (unlikely(__Pyx_PyObject_GetSlot(o, tp_finalize, destructor)) && !__Pyx_PyObject_GC_IsFinalized(o)) {
    if (__Pyx_PyObject_GetSlot(o, tp_dealloc, destructor) == __pyx_tp_dealloc_4kivy_8graphics_6opengl___pyx_defaults) {
      if (PyObject_CallFinalizerFromDealloc(o)) return;
    }
  }
  #endif
  PyObject_GC_UnTrack(o);
  Py_CLEAR(p->arg0);
  Py_CLEAR(p->arg1);
  PyTypeObject *tp = Py_TYPE(o);
  #if CYTHON_USE_TYPE_SLOTS
  (*tp->tp_free)(o);
  #else
  {
    freefunc tp_free = (freefunc)PyType_GetSlot(tp, Py_tp_free);
    if (tp_free) tp_free(o);
  }
  #endif
  #if CYTHON_USE_TYPE_SPECS
  Py_DECREF(tp);
  #endif
}

static int __pyx_tp_traverse_4kivy_8graphics_6opengl___pyx_defaults(PyObject *o, visitproc v, void *a) {
  int e;
  struct __pyx_defaults *p = (struct __pyx_defaults *)o;
  {
    e = __Pyx_call_type_traverse(o, 1, v, a);
    if (e) return e;
  }
  if (p->arg0) {
    e = (*v)(p->arg0, a); if (e) return e;
  }
  if (p->arg1) {
    e = (*v)(p->arg1, a); if (e) return e;
  }
  return 0;
}

static int __pyx_tp_clear_4kivy_8graphics_6opengl___pyx_defaults(PyObject *o) {
  PyObject* tmp;
  struct __pyx_defaults *p = (struct __pyx_defaults *)o;
  tmp = ((PyObject*)p->arg0);
  p->arg0 = Py_None; Py_INCREF(Py_None);
  Py_XDECREF(tmp);
  tmp = ((PyObject*)p->arg1);
  p->arg1 = Py_None; Py_INCREF(Py_None);
  Py_XDECREF(tmp);
  return 0;
}
#if CYTHON_USE_TYPE_SPECS
static PyType_Slot __pyx_type_4kivy_8graphics_6opengl___pyx_defaults_slots[] = {
  {Py_tp_dealloc, (void *)__pyx_tp_dealloc_4kivy_8graphics_6opengl___pyx_defaults},
  {Py_tp_traverse, (void *)__pyx_tp_traverse_4kivy_8graphics_6opengl___pyx_defaults},
  {Py_tp_clear, (void *)__pyx_tp_clear_4kivy_8graphics_6opengl___pyx_defaults},
  {Py_tp_new, (void *)__pyx_tp_new_4kivy_8graphics_6opengl___pyx_defaults},
  {0, 0},
};
static PyType_Spec __pyx_type_4kivy_8graphics_6opengl___pyx_defaults_spec = {
  "kivy.graphics.opengl.__pyx_defaults",
  sizeof(struct __pyx_defaults),
  0,
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_HAVE_GC,
  __pyx_type_4kivy_8graphics_6opengl___pyx_defaults_slots,
};
#else

static PyTypeObject __pyx_type_4kivy_8graphics_6opengl___pyx_defaults = {
  PyVarObject_HEAD_INIT(0, 0)
  "kivy.graphics.opengl.""__pyx_defaults", /*tp_name*/
  sizeof(struct __pyx_defaults), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_4kivy_8graphics_6opengl___pyx_defaults, /*tp_dealloc*/
  0, /*tp_vectorcall_offset*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  0, /*tp_as_async*/
  0, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*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_HAVE_GC, /*tp_flags*/
  0, /*tp_doc*/
  __pyx_tp_traverse_4kivy_8graphics_6opengl___pyx_defaults, /*tp_traverse*/
  __pyx_tp_clear_4kivy_8graphics_6opengl___pyx_defaults, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  0, /*tp_methods*/
  0, /*tp_members*/
  0, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  #if !CYTHON_USE_TYPE_SPECS
  0, /*tp_dictoffset*/
  #endif
  0, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_4kivy_8graphics_6opengl___pyx_defaults, /*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 CYTHON_USE_TP_FINALIZE
  0, /*tp_finalize*/
  #else
  NULL, /*tp_finalize*/
  #endif
  #if !CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07030800
  0, /*tp_vectorcall*/
  #endif
  #if __PYX_NEED_TP_PRINT_SLOT == 1
  0, /*tp_print*/
  #endif
  #if PY_VERSION_HEX >= 0x030C0000
  0, /*tp_watched*/
  #endif
  #if PY_VERSION_HEX >= 0x030d00A4
  0, /*tp_versions_used*/
  #endif
  #if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX >= 0x03090000 && PY_VERSION_HEX < 0x030a0000
  0, /*tp_pypy_flags*/
  #endif
};
#endif

static PyMethodDef __pyx_methods[] = {
  {0, 0, 0, 0}
};
/* #### Code section: initfunc_declarations ### */
static CYTHON_SMALL_CODE int __Pyx_InitCachedBuiltins(__pyx_mstatetype *__pyx_mstate); /*proto*/
static CYTHON_SMALL_CODE int __Pyx_InitCachedConstants(__pyx_mstatetype *__pyx_mstate); /*proto*/
static CYTHON_SMALL_CODE int __Pyx_InitGlobals(void); /*proto*/
static CYTHON_SMALL_CODE int __Pyx_InitConstants(__pyx_mstatetype *__pyx_mstate); /*proto*/
static CYTHON_SMALL_CODE int __Pyx_modinit_global_init_code(__pyx_mstatetype *__pyx_mstate); /*proto*/
static CYTHON_SMALL_CODE int __Pyx_modinit_variable_export_code(__pyx_mstatetype *__pyx_mstate); /*proto*/
static CYTHON_SMALL_CODE int __Pyx_modinit_function_export_code(__pyx_mstatetype *__pyx_mstate); /*proto*/
static CYTHON_SMALL_CODE int __Pyx_modinit_type_init_code(__pyx_mstatetype *__pyx_mstate); /*proto*/
static CYTHON_SMALL_CODE int __Pyx_modinit_type_import_code(__pyx_mstatetype *__pyx_mstate); /*proto*/
static CYTHON_SMALL_CODE int __Pyx_modinit_variable_import_code(__pyx_mstatetype *__pyx_mstate); /*proto*/
static CYTHON_SMALL_CODE int __Pyx_modinit_function_import_code(__pyx_mstatetype *__pyx_mstate); /*proto*/
static CYTHON_SMALL_CODE int __Pyx_CreateCodeObjects(__pyx_mstatetype *__pyx_mstate); /*proto*/
/* #### Code section: init_module ### */

static int __Pyx_modinit_global_init_code(__pyx_mstatetype *__pyx_mstate) {
  __Pyx_RefNannyDeclarations
  CYTHON_UNUSED_VAR(__pyx_mstate);
  __Pyx_RefNannySetupContext("__Pyx_modinit_global_init_code", 0);
  /*--- Global init code ---*/
  __Pyx_RefNannyFinishContext();
  return 0;
}

static int __Pyx_modinit_variable_export_code(__pyx_mstatetype *__pyx_mstate) {
  __Pyx_RefNannyDeclarations
  CYTHON_UNUSED_VAR(__pyx_mstate);
  __Pyx_RefNannySetupContext("__Pyx_modinit_variable_export_code", 0);
  /*--- Variable export code ---*/
  __Pyx_RefNannyFinishContext();
  return 0;
}

static int __Pyx_modinit_function_export_code(__pyx_mstatetype *__pyx_mstate) {
  __Pyx_RefNannyDeclarations
  CYTHON_UNUSED_VAR(__pyx_mstate);
  __Pyx_RefNannySetupContext("__Pyx_modinit_function_export_code", 0);
  /*--- Function export code ---*/
  __Pyx_RefNannyFinishContext();
  return 0;
}

static int __Pyx_modinit_type_init_code(__pyx_mstatetype *__pyx_mstate) {
  __Pyx_RefNannyDeclarations
  CYTHON_UNUSED_VAR(__pyx_mstate);
  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 CYTHON_USE_TYPE_SPECS
  __pyx_mstate->__pyx_ptype_4kivy_8graphics_6opengl___pyx_defaults = (PyTypeObject *) __Pyx_PyType_FromModuleAndSpec(__pyx_m, &__pyx_type_4kivy_8graphics_6opengl___pyx_defaults_spec, NULL); if (unlikely(!__pyx_mstate->__pyx_ptype_4kivy_8graphics_6opengl___pyx_defaults)) __PYX_ERR(0, 1555, __pyx_L1_error)
  if (__Pyx_fix_up_extension_type_from_spec(&__pyx_type_4kivy_8graphics_6opengl___pyx_defaults_spec, __pyx_mstate->__pyx_ptype_4kivy_8graphics_6opengl___pyx_defaults) < (0)) __PYX_ERR(0, 1555, __pyx_L1_error)
  #else
  __pyx_mstate->__pyx_ptype_4kivy_8graphics_6opengl___pyx_defaults = &__pyx_type_4kivy_8graphics_6opengl___pyx_defaults;
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  #endif
  #if !CYTHON_USE_TYPE_SPECS
  if (__Pyx_PyType_Ready(__pyx_mstate->__pyx_ptype_4kivy_8graphics_6opengl___pyx_defaults) < (0)) __PYX_ERR(0, 1555, __pyx_L1_error)
  #endif
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount((PyObject*)__pyx_mstate->__pyx_ptype_4kivy_8graphics_6opengl___pyx_defaults);
  #endif
  #if !CYTHON_COMPILING_IN_LIMITED_API
  if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_mstate->__pyx_ptype_4kivy_8graphics_6opengl___pyx_defaults->tp_dictoffset && __pyx_mstate->__pyx_ptype_4kivy_8graphics_6opengl___pyx_defaults->tp_getattro == PyObject_GenericGetAttr)) {
    __pyx_mstate->__pyx_ptype_4kivy_8graphics_6opengl___pyx_defaults->tp_getattro = PyObject_GenericGetAttr;
  }
  #endif
  __Pyx_RefNannyFinishContext();
  return 0;
  __pyx_L1_error:;
  __Pyx_RefNannyFinishContext();
  return -1;
}

static int __Pyx_modinit_type_import_code(__pyx_mstatetype *__pyx_mstate) {
  __Pyx_RefNannyDeclarations
  CYTHON_UNUSED_VAR(__pyx_mstate);
  __Pyx_RefNannySetupContext("__Pyx_modinit_type_import_code", 0);
  /*--- Type import code ---*/
  __Pyx_RefNannyFinishContext();
  return 0;
}

static int __Pyx_modinit_variable_import_code(__pyx_mstatetype *__pyx_mstate) {
  __Pyx_RefNannyDeclarations
  CYTHON_UNUSED_VAR(__pyx_mstate);
  PyObject *__pyx_t_1 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__Pyx_modinit_variable_import_code", 0);
  /*--- Variable import code ---*/
  {
    __pyx_t_1 = PyImport_ImportModule("kivy.graphics.cgl"); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    const char * __pyx_import_signature = __Pyx_PyBytes_AsString(__pyx_mstate_global->__pyx_kp_b_pyx_t_4kivy_8graphics_3cgl_GLE);
    #if !CYTHON_ASSUME_SAFE_MACROS
    if (unlikely(!__pyx_import_signature)) __PYX_ERR(0, 1, __pyx_L1_error)
    #endif
    const char * __pyx_import_name = __pyx_import_signature + 71;
    void **const __pyx_import_pointers[] = {(void **)&__pyx_vp_4kivy_8graphics_3cgl_cgl, (void **)&__pyx_vp_4kivy_8graphics_3cgl_pi, (void **)&__pyx_vp_4kivy_8graphics_3cgl_kivy_opengl_es2, (void **)&__pyx_vp_4kivy_8graphics_3cgl_verify_gl_main_thread, (void **)&__pyx_vp_4kivy_8graphics_3cgl_initialized_tid, (void **) NULL};
    void **const *__pyx_import_pointer = __pyx_import_pointers;
    const char *__pyx_import_current_signature = __pyx_import_signature;
    while (*__pyx_import_pointer) {
      if (__Pyx_ImportVoidPtr_3_2_3(__pyx_t_1, __pyx_import_name, *__pyx_import_pointer, __pyx_import_current_signature) < (0)) __PYX_ERR(0, 1, __pyx_L1_error)
      ++__pyx_import_pointer;
      __pyx_import_name = strchr(__pyx_import_name, '\0') + 1;
      __pyx_import_signature = strchr(__pyx_import_signature, '\0') + 1;
      if (*__pyx_import_signature != '\0') __pyx_import_current_signature = __pyx_import_signature;
    }
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  }
  __Pyx_RefNannyFinishContext();
  return 0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_RefNannyFinishContext();
  return -1;
}

static int __Pyx_modinit_function_import_code(__pyx_mstatetype *__pyx_mstate) {
  __Pyx_RefNannyDeclarations
  CYTHON_UNUSED_VAR(__pyx_mstate);
  PyObject *__pyx_t_1 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__Pyx_modinit_function_import_code", 0);
  /*--- Function import code ---*/
  {
    __pyx_t_1 = PyImport_ImportModule("kivy.graphics.cgl"); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    const char * __pyx_import_signature = __Pyx_PyBytes_AsString(__pyx_mstate_global->__pyx_kp_b_PyObject_int___pyx_skip_dispatch);
    #if !CYTHON_ASSUME_SAFE_MACROS
    if (unlikely(!__pyx_import_signature)) __PYX_ERR(0, 1, __pyx_L1_error)
    #endif
    const char * __pyx_import_name = __pyx_import_signature + 110;
    void (**const __pyx_import_pointers[])(void) = {(void (**)(void))&__pyx_f_4kivy_8graphics_3cgl_cgl_init, (void (**)(void)) NULL};
    void (**const *__pyx_import_pointer)(void) = __pyx_import_pointers;
    const char *__pyx_import_current_signature = __pyx_import_signature;
    while (*__pyx_import_pointer) {
      if (__Pyx_ImportFunction_3_2_3(__pyx_t_1, __pyx_import_name, *__pyx_import_pointer, __pyx_import_current_signature) < (0)) __PYX_ERR(0, 1, __pyx_L1_error)
      ++__pyx_import_pointer;
      __pyx_import_name = strchr(__pyx_import_name, '\0') + 1;
      __pyx_import_signature = strchr(__pyx_import_signature, '\0') + 1;
      if (*__pyx_import_signature != '\0') __pyx_import_current_signature = __pyx_import_signature;
    }
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  }
  __Pyx_RefNannyFinishContext();
  return 0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_RefNannyFinishContext();
  return -1;
}

#if CYTHON_PEP489_MULTI_PHASE_INIT
static PyObject* __pyx_pymod_create(PyObject *spec, PyModuleDef *def); /*proto*/
static int __pyx_pymod_exec_opengl(PyObject* module); /*proto*/
static PyModuleDef_Slot __pyx_moduledef_slots[] = {
  {Py_mod_create, (void*)__pyx_pymod_create},
  {Py_mod_exec, (void*)__pyx_pymod_exec_opengl},
  #if CYTHON_COMPILING_IN_CPYTHON_FREETHREADING
  {Py_mod_gil, __Pyx_FREETHREADING_COMPATIBLE},
  #endif
  #if PY_VERSION_HEX >= 0x030C0000 && CYTHON_USE_MODULE_STATE
  {Py_mod_multiple_interpreters, Py_MOD_MULTIPLE_INTERPRETERS_NOT_SUPPORTED},
  #endif
  {0, NULL}
};
#endif

#ifdef __cplusplus
namespace {
  struct PyModuleDef __pyx_moduledef =
  #else
  static struct PyModuleDef __pyx_moduledef =
  #endif
  {
      PyModuleDef_HEAD_INIT,
      "opengl",
      __pyx_k_OpenGL_This_module_is_a_Python, /* m_doc */
    #if CYTHON_USE_MODULE_STATE
      sizeof(__pyx_mstatetype), /* m_size */
    #else
      (CYTHON_PEP489_MULTI_PHASE_INIT) ? 0 : -1, /* m_size */
    #endif
      __pyx_methods /* m_methods */,
    #if CYTHON_PEP489_MULTI_PHASE_INIT
      __pyx_moduledef_slots, /* m_slots */
    #else
      NULL, /* m_reload */
    #endif
    #if CYTHON_USE_MODULE_STATE
      __pyx_m_traverse, /* m_traverse */
      __pyx_m_clear, /* m_clear */
      NULL /* m_free */
    #else
      NULL, /* m_traverse */
      NULL, /* m_clear */
      NULL /* m_free */
    #endif
  };
  #ifdef __cplusplus
} /* anonymous namespace */
#endif

/* PyModInitFuncType */
#ifndef CYTHON_NO_PYINIT_EXPORT
  #define __Pyx_PyMODINIT_FUNC PyMODINIT_FUNC
#else
  #ifdef __cplusplus
  #define __Pyx_PyMODINIT_FUNC extern "C" PyObject *
  #else
  #define __Pyx_PyMODINIT_FUNC PyObject *
  #endif
#endif

__Pyx_PyMODINIT_FUNC PyInit_opengl(void) CYTHON_SMALL_CODE; /*proto*/
__Pyx_PyMODINIT_FUNC PyInit_opengl(void)
#if CYTHON_PEP489_MULTI_PHASE_INIT
{
  return PyModuleDef_Init(&__pyx_moduledef);
}
/* ModuleCreationPEP489 */
#if CYTHON_COMPILING_IN_LIMITED_API && (__PYX_LIMITED_VERSION_HEX < 0x03090000\
      || ((defined(_WIN32) || defined(WIN32) || defined(MS_WINDOWS)) && __PYX_LIMITED_VERSION_HEX < 0x030A0000))
static PY_INT64_T __Pyx_GetCurrentInterpreterId(void) {
    {
        PyObject *module = PyImport_ImportModule("_interpreters"); // 3.13+ I think
        if (!module) {
            PyErr_Clear(); // just try the 3.8-3.12 version
            module = PyImport_ImportModule("_xxsubinterpreters");
            if (!module) goto bad;
        }
        PyObject *current = PyObject_CallMethod(module, "get_current", NULL);
        Py_DECREF(module);
        if (!current) goto bad;
        if (PyTuple_Check(current)) {
            PyObject *new_current = PySequence_GetItem(current, 0);
            Py_DECREF(current);
            current = new_current;
            if (!new_current) goto bad;
        }
        long long as_c_int = PyLong_AsLongLong(current);
        Py_DECREF(current);
        return as_c_int;
    }
  bad:
    PySys_WriteStderr("__Pyx_GetCurrentInterpreterId failed. Try setting the C define CYTHON_PEP489_MULTI_PHASE_INIT=0\n");
    return -1;
}
#endif
#if !CYTHON_USE_MODULE_STATE
static CYTHON_SMALL_CODE int __Pyx_check_single_interpreter(void) {
    static PY_INT64_T main_interpreter_id = -1;
#if CYTHON_COMPILING_IN_GRAAL && defined(GRAALPY_VERSION_NUM) && GRAALPY_VERSION_NUM > 0x19000000
    PY_INT64_T current_id = GraalPyInterpreterState_GetIDFromThreadState(PyThreadState_Get());
#elif CYTHON_COMPILING_IN_GRAAL
    PY_INT64_T current_id = PyInterpreterState_GetIDFromThreadState(PyThreadState_Get());
#elif CYTHON_COMPILING_IN_LIMITED_API && (__PYX_LIMITED_VERSION_HEX < 0x03090000\
      || ((defined(_WIN32) || defined(WIN32) || defined(MS_WINDOWS)) && __PYX_LIMITED_VERSION_HEX < 0x030A0000))
    PY_INT64_T current_id = __Pyx_GetCurrentInterpreterId();
#elif CYTHON_COMPILING_IN_LIMITED_API
    PY_INT64_T current_id = PyInterpreterState_GetID(PyInterpreterState_Get());
#else
    PY_INT64_T current_id = PyInterpreterState_GetID(PyThreadState_Get()->interp);
#endif
    if (unlikely(current_id == -1)) {
        return -1;
    }
    if (main_interpreter_id == -1) {
        main_interpreter_id = current_id;
        return 0;
    } else if (unlikely(main_interpreter_id != current_id)) {
        PyErr_SetString(
            PyExc_ImportError,
            "Interpreter change detected - this module can only be loaded into one interpreter per process.");
        return -1;
    }
    return 0;
}
#endif
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, PyModuleDef *def) {
    PyObject *module = NULL, *moddict, *modname;
    CYTHON_UNUSED_VAR(def);
    #if !CYTHON_USE_MODULE_STATE
    if (__Pyx_check_single_interpreter())
        return NULL;
    #endif
    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_opengl(PyObject *__pyx_pyinit_module)
#endif
{
  int stringtab_initialized = 0;
  #if CYTHON_USE_MODULE_STATE
  int pystate_addmodule_run = 0;
  #endif
  __pyx_mstatetype *__pyx_mstate = NULL;
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  Py_ssize_t __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_RefNannyDeclarations
  #if CYTHON_PEP489_MULTI_PHASE_INIT
  if (__pyx_m) {
    if (__pyx_m == __pyx_pyinit_module) return 0;
    PyErr_SetString(PyExc_RuntimeError, "Module 'opengl' has already been imported. Re-initialisation is not supported.");
    return -1;
  }
  #else
  if (__pyx_m) return __Pyx_NewRef(__pyx_m);
  #endif
  /*--- Module creation code ---*/
  #if CYTHON_PEP489_MULTI_PHASE_INIT
  __pyx_t_1 = __pyx_pyinit_module;
  Py_INCREF(__pyx_t_1);
  #else
  __pyx_t_1 = PyModule_Create(&__pyx_moduledef); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1, __pyx_L1_error)
  #endif
  #if CYTHON_USE_MODULE_STATE
  {
    int add_module_result = __Pyx_State_AddModule(__pyx_t_1, &__pyx_moduledef);
    __pyx_t_1 = 0; /* transfer ownership from __pyx_t_1 to "opengl" pseudovariable */
    if (unlikely((add_module_result < 0))) __PYX_ERR(0, 1, __pyx_L1_error)
    pystate_addmodule_run = 1;
  }
  #else
  __pyx_m = __pyx_t_1;
  #endif
  #if CYTHON_COMPILING_IN_CPYTHON_FREETHREADING
  PyUnstable_Module_SetGIL(__pyx_m, Py_MOD_GIL_USED);
  #endif
  __pyx_mstate = __pyx_mstate_global;
  CYTHON_UNUSED_VAR(__pyx_t_1);
  __pyx_mstate->__pyx_d = PyModule_GetDict(__pyx_m); if (unlikely(!__pyx_mstate->__pyx_d)) __PYX_ERR(0, 1, __pyx_L1_error)
  Py_INCREF(__pyx_mstate->__pyx_d);
  __pyx_mstate->__pyx_b = __Pyx_PyImport_AddModuleRef(__Pyx_BUILTIN_MODULE_NAME); if (unlikely(!__pyx_mstate->__pyx_b)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_mstate->__pyx_cython_runtime = __Pyx_PyImport_AddModuleRef("cython_runtime"); if (unlikely(!__pyx_mstate->__pyx_cython_runtime)) __PYX_ERR(0, 1, __pyx_L1_error)
  if (PyObject_SetAttrString(__pyx_m, "__builtins__", __pyx_mstate->__pyx_b) < 0) __PYX_ERR(0, 1, __pyx_L1_error)
  /* ImportRefnannyAPI */
  #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("PyInit_opengl", 0);
  __Pyx_init_runtime_version();
  if (__Pyx_check_binary_version(__PYX_LIMITED_VERSION_HEX, __Pyx_get_runtime_version(), CYTHON_COMPILING_IN_LIMITED_API) < (0)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_mstate->__pyx_empty_tuple = PyTuple_New(0); if (unlikely(!__pyx_mstate->__pyx_empty_tuple)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_mstate->__pyx_empty_bytes = PyBytes_FromStringAndSize("", 0); if (unlikely(!__pyx_mstate->__pyx_empty_bytes)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_mstate->__pyx_empty_unicode = PyUnicode_FromStringAndSize("", 0); if (unlikely(!__pyx_mstate->__pyx_empty_unicode)) __PYX_ERR(0, 1, __pyx_L1_error)
  /*--- Library function declarations ---*/
  /*--- Initialize various global constants etc. ---*/
  if (__Pyx_InitConstants(__pyx_mstate) < (0)) __PYX_ERR(0, 1, __pyx_L1_error)
  stringtab_initialized = 1;
  if (__Pyx_InitGlobals() < (0)) __PYX_ERR(0, 1, __pyx_L1_error)
  if (__pyx_module_is_main_kivy__graphics__opengl) {
    if (PyObject_SetAttr(__pyx_m, __pyx_mstate_global->__pyx_n_u_name_2, __pyx_mstate_global->__pyx_n_u_main) < (0)) __PYX_ERR(0, 1, __pyx_L1_error)
  }
  {
    PyObject *modules = PyImport_GetModuleDict(); if (unlikely(!modules)) __PYX_ERR(0, 1, __pyx_L1_error)
    if (!PyDict_GetItemString(modules, "kivy.graphics.opengl")) {
      if (unlikely((PyDict_SetItemString(modules, "kivy.graphics.opengl", __pyx_m) < 0))) __PYX_ERR(0, 1, __pyx_L1_error)
    }
  }
  /*--- Builtin init code ---*/
  if (__Pyx_InitCachedBuiltins(__pyx_mstate) < (0)) __PYX_ERR(0, 1, __pyx_L1_error)
  /*--- Constants init code ---*/
  if (__Pyx_InitCachedConstants(__pyx_mstate) < (0)) __PYX_ERR(0, 1, __pyx_L1_error)
  if (__Pyx_CreateCodeObjects(__pyx_mstate) < (0)) __PYX_ERR(0, 1, __pyx_L1_error)
  /*--- Global type/function init code ---*/
  (void)__Pyx_modinit_global_init_code(__pyx_mstate);
  (void)__Pyx_modinit_variable_export_code(__pyx_mstate);
  (void)__Pyx_modinit_function_export_code(__pyx_mstate);
  if (unlikely((__Pyx_modinit_type_init_code(__pyx_mstate) < 0))) __PYX_ERR(0, 1, __pyx_L1_error)
  (void)__Pyx_modinit_type_import_code(__pyx_mstate);
  if (unlikely((__Pyx_modinit_variable_import_code(__pyx_mstate) < 0))) __PYX_ERR(0, 1, __pyx_L1_error)
  if (unlikely((__Pyx_modinit_function_import_code(__pyx_mstate) < 0))) __PYX_ERR(0, 1, __pyx_L1_error)
  /*--- Execution code ---*/

  /* "kivy/graphics/common.pxi":11
 *     ctypedef char* const_char_ptr "const char*"
 * 
 * cdef double pi = PI             # <<<<<<<<<<<<<<
 * cdef extern from "math.h":
 *     double cos(double) nogil
*/
  __pyx_v_4kivy_8graphics_6opengl_pi = 3.141592653589793;

  /* "kivy/graphics/opengl.pyx":24
 *     GLubyte, cgl_init, GLboolean, GLenum, GLsizei, GLclampf, GLbitfield,
 *     GLintptr, GLsizeiptr)
 * from kivy.logger import Logger             # <<<<<<<<<<<<<<
 * 
 * # Utilities
*/
  {
    PyObject* const __pyx_imported_names[] = {__pyx_mstate_global->__pyx_n_u_Logger};
    __pyx_t_1 = __Pyx_Import(__pyx_mstate_global->__pyx_n_u_kivy_logger, __pyx_imported_names, 1, NULL, 0); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 24, __pyx_L1_error)
  }
  __pyx_t_2 = __pyx_t_1;
  __Pyx_GOTREF(__pyx_t_2);
  {
    PyObject* const __pyx_imported_names[] = {__pyx_mstate_global->__pyx_n_u_Logger};
    __pyx_t_3 = 0; {
      __pyx_t_4 = __Pyx_ImportFrom(__pyx_t_2, __pyx_imported_names[__pyx_t_3]); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 24, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_4);
      if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_imported_names[__pyx_t_3], __pyx_t_4) < (0)) __PYX_ERR(0, 24, __pyx_L1_error)
      __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    }
  }
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "kivy/graphics/opengl.pyx":43
 * 
 * #GL_ES_VERSION_2_0 = cgldef.GL_ES_VERSION_2_0
 * GL_DEPTH_BUFFER_BIT = cgldef.GL_DEPTH_BUFFER_BIT             # <<<<<<<<<<<<<<
 * GL_STENCIL_BUFFER_BIT = cgldef.GL_STENCIL_BUFFER_BIT
 * GL_COLOR_BUFFER_BIT = cgldef.GL_COLOR_BUFFER_BIT
*/
  __pyx_t_2 = __Pyx_PyLong_From_int(GL_DEPTH_BUFFER_BIT); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 43, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_GL_DEPTH_BUFFER_BIT, __pyx_t_2) < (0)) __PYX_ERR(0, 43, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "kivy/graphics/opengl.pyx":44
 * #GL_ES_VERSION_2_0 = cgldef.GL_ES_VERSION_2_0
 * GL_DEPTH_BUFFER_BIT = cgldef.GL_DEPTH_BUFFER_BIT
 * GL_STENCIL_BUFFER_BIT = cgldef.GL_STENCIL_BUFFER_BIT             # <<<<<<<<<<<<<<
 * GL_COLOR_BUFFER_BIT = cgldef.GL_COLOR_BUFFER_BIT
 * GL_FALSE = cgldef.GL_FALSE
*/
  __pyx_t_2 = __Pyx_PyLong_From_int(GL_STENCIL_BUFFER_BIT); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 44, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_GL_STENCIL_BUFFER_BIT, __pyx_t_2) < (0)) __PYX_ERR(0, 44, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "kivy/graphics/opengl.pyx":45
 * GL_DEPTH_BUFFER_BIT = cgldef.GL_DEPTH_BUFFER_BIT
 * GL_STENCIL_BUFFER_BIT = cgldef.GL_STENCIL_BUFFER_BIT
 * GL_COLOR_BUFFER_BIT = cgldef.GL_COLOR_BUFFER_BIT             # <<<<<<<<<<<<<<
 * GL_FALSE = cgldef.GL_FALSE
 * GL_TRUE = cgldef.GL_TRUE
*/
  __pyx_t_2 = __Pyx_PyLong_From_int(GL_COLOR_BUFFER_BIT); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 45, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_GL_COLOR_BUFFER_BIT, __pyx_t_2) < (0)) __PYX_ERR(0, 45, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "kivy/graphics/opengl.pyx":46
 * GL_STENCIL_BUFFER_BIT = cgldef.GL_STENCIL_BUFFER_BIT
 * GL_COLOR_BUFFER_BIT = cgldef.GL_COLOR_BUFFER_BIT
 * GL_FALSE = cgldef.GL_FALSE             # <<<<<<<<<<<<<<
 * GL_TRUE = cgldef.GL_TRUE
 * GL_POINTS = cgldef.GL_POINTS
*/
  __pyx_t_2 = __Pyx_PyLong_From_int(GL_FALSE); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 46, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_GL_FALSE, __pyx_t_2) < (0)) __PYX_ERR(0, 46, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "kivy/graphics/opengl.pyx":47
 * GL_COLOR_BUFFER_BIT = cgldef.GL_COLOR_BUFFER_BIT
 * GL_FALSE = cgldef.GL_FALSE
 * GL_TRUE = cgldef.GL_TRUE             # <<<<<<<<<<<<<<
 * GL_POINTS = cgldef.GL_POINTS
 * GL_LINES = cgldef.GL_LINES
*/
  __pyx_t_2 = __Pyx_PyLong_From_int(GL_TRUE); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 47, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_GL_TRUE, __pyx_t_2) < (0)) __PYX_ERR(0, 47, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "kivy/graphics/opengl.pyx":48
 * GL_FALSE = cgldef.GL_FALSE
 * GL_TRUE = cgldef.GL_TRUE
 * GL_POINTS = cgldef.GL_POINTS             # <<<<<<<<<<<<<<
 * GL_LINES = cgldef.GL_LINES
 * GL_LINE_LOOP = cgldef.GL_LINE_LOOP
*/
  __pyx_t_2 = __Pyx_PyLong_From_int(GL_POINTS); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 48, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_GL_POINTS, __pyx_t_2) < (0)) __PYX_ERR(0, 48, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "kivy/graphics/opengl.pyx":49
 * GL_TRUE = cgldef.GL_TRUE
 * GL_POINTS = cgldef.GL_POINTS
 * GL_LINES = cgldef.GL_LINES             # <<<<<<<<<<<<<<
 * GL_LINE_LOOP = cgldef.GL_LINE_LOOP
 * GL_LINE_STRIP = cgldef.GL_LINE_STRIP
*/
  __pyx_t_2 = __Pyx_PyLong_From_int(GL_LINES); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 49, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_GL_LINES, __pyx_t_2) < (0)) __PYX_ERR(0, 49, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "kivy/graphics/opengl.pyx":50
 * GL_POINTS = cgldef.GL_POINTS
 * GL_LINES = cgldef.GL_LINES
 * GL_LINE_LOOP = cgldef.GL_LINE_LOOP             # <<<<<<<<<<<<<<
 * GL_LINE_STRIP = cgldef.GL_LINE_STRIP
 * GL_TRIANGLES = cgldef.GL_TRIANGLES
*/
  __pyx_t_2 = __Pyx_PyLong_From_int(GL_LINE_LOOP); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 50, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_GL_LINE_LOOP, __pyx_t_2) < (0)) __PYX_ERR(0, 50, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "kivy/graphics/opengl.pyx":51
 * GL_LINES = cgldef.GL_LINES
 * GL_LINE_LOOP = cgldef.GL_LINE_LOOP
 * GL_LINE_STRIP = cgldef.GL_LINE_STRIP             # <<<<<<<<<<<<<<
 * GL_TRIANGLES = cgldef.GL_TRIANGLES
 * GL_TRIANGLE_STRIP = cgldef.GL_TRIANGLE_STRIP
*/
  __pyx_t_2 = __Pyx_PyLong_From_int(GL_LINE_STRIP); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 51, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_GL_LINE_STRIP, __pyx_t_2) < (0)) __PYX_ERR(0, 51, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "kivy/graphics/opengl.pyx":52
 * GL_LINE_LOOP = cgldef.GL_LINE_LOOP
 * GL_LINE_STRIP = cgldef.GL_LINE_STRIP
 * GL_TRIANGLES = cgldef.GL_TRIANGLES             # <<<<<<<<<<<<<<
 * GL_TRIANGLE_STRIP = cgldef.GL_TRIANGLE_STRIP
 * GL_TRIANGLE_FAN = cgldef.GL_TRIANGLE_FAN
*/
  __pyx_t_2 = __Pyx_PyLong_From_int(GL_TRIANGLES); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 52, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_GL_TRIANGLES, __pyx_t_2) < (0)) __PYX_ERR(0, 52, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "kivy/graphics/opengl.pyx":53
 * GL_LINE_STRIP = cgldef.GL_LINE_STRIP
 * GL_TRIANGLES = cgldef.GL_TRIANGLES
 * GL_TRIANGLE_STRIP = cgldef.GL_TRIANGLE_STRIP             # <<<<<<<<<<<<<<
 * GL_TRIANGLE_FAN = cgldef.GL_TRIANGLE_FAN
 * GL_ZERO = cgldef.GL_ZERO
*/
  __pyx_t_2 = __Pyx_PyLong_From_int(GL_TRIANGLE_STRIP); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 53, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_GL_TRIANGLE_STRIP, __pyx_t_2) < (0)) __PYX_ERR(0, 53, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "kivy/graphics/opengl.pyx":54
 * GL_TRIANGLES = cgldef.GL_TRIANGLES
 * GL_TRIANGLE_STRIP = cgldef.GL_TRIANGLE_STRIP
 * GL_TRIANGLE_FAN = cgldef.GL_TRIANGLE_FAN             # <<<<<<<<<<<<<<
 * GL_ZERO = cgldef.GL_ZERO
 * GL_ONE = cgldef.GL_ONE
*/
  __pyx_t_2 = __Pyx_PyLong_From_int(GL_TRIANGLE_FAN); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 54, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_GL_TRIANGLE_FAN, __pyx_t_2) < (0)) __PYX_ERR(0, 54, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "kivy/graphics/opengl.pyx":55
 * GL_TRIANGLE_STRIP = cgldef.GL_TRIANGLE_STRIP
 * GL_TRIANGLE_FAN = cgldef.GL_TRIANGLE_FAN
 * GL_ZERO = cgldef.GL_ZERO             # <<<<<<<<<<<<<<
 * GL_ONE = cgldef.GL_ONE
 * GL_SRC_COLOR = cgldef.GL_SRC_COLOR
*/
  __pyx_t_2 = __Pyx_PyLong_From_int(GL_ZERO); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 55, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_GL_ZERO, __pyx_t_2) < (0)) __PYX_ERR(0, 55, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "kivy/graphics/opengl.pyx":56
 * GL_TRIANGLE_FAN = cgldef.GL_TRIANGLE_FAN
 * GL_ZERO = cgldef.GL_ZERO
 * GL_ONE = cgldef.GL_ONE             # <<<<<<<<<<<<<<
 * GL_SRC_COLOR = cgldef.GL_SRC_COLOR
 * GL_ONE_MINUS_SRC_COLOR = cgldef.GL_ONE_MINUS_SRC_COLOR
*/
  __pyx_t_2 = __Pyx_PyLong_From_int(GL_ONE); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 56, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_GL_ONE, __pyx_t_2) < (0)) __PYX_ERR(0, 56, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "kivy/graphics/opengl.pyx":57
 * GL_ZERO = cgldef.GL_ZERO
 * GL_ONE = cgldef.GL_ONE
 * GL_SRC_COLOR = cgldef.GL_SRC_COLOR             # <<<<<<<<<<<<<<
 * GL_ONE_MINUS_SRC_COLOR = cgldef.GL_ONE_MINUS_SRC_COLOR
 * GL_SRC_ALPHA = cgldef.GL_SRC_ALPHA
*/
  __pyx_t_2 = __Pyx_PyLong_From_int(GL_SRC_COLOR); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 57, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_GL_SRC_COLOR, __pyx_t_2) < (0)) __PYX_ERR(0, 57, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "kivy/graphics/opengl.pyx":58
 * GL_ONE = cgldef.GL_ONE
 * GL_SRC_COLOR = cgldef.GL_SRC_COLOR
 * GL_ONE_MINUS_SRC_COLOR = cgldef.GL_ONE_MINUS_SRC_COLOR             # <<<<<<<<<<<<<<
 * GL_SRC_ALPHA = cgldef.GL_SRC_ALPHA
 * GL_ONE_MINUS_SRC_ALPHA = cgldef.GL_ONE_MINUS_SRC_ALPHA
*/
  __pyx_t_2 = __Pyx_PyLong_From_int(GL_ONE_MINUS_SRC_COLOR); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 58, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_GL_ONE_MINUS_SRC_COLOR, __pyx_t_2) < (0)) __PYX_ERR(0, 58, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "kivy/graphics/opengl.pyx":59
 * GL_SRC_COLOR = cgldef.GL_SRC_COLOR
 * GL_ONE_MINUS_SRC_COLOR = cgldef.GL_ONE_MINUS_SRC_COLOR
 * GL_SRC_ALPHA = cgldef.GL_SRC_ALPHA             # <<<<<<<<<<<<<<
 * GL_ONE_MINUS_SRC_ALPHA = cgldef.GL_ONE_MINUS_SRC_ALPHA
 * GL_DST_ALPHA = cgldef.GL_DST_ALPHA
*/
  __pyx_t_2 = __Pyx_PyLong_From_int(GL_SRC_ALPHA); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 59, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_GL_SRC_ALPHA, __pyx_t_2) < (0)) __PYX_ERR(0, 59, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "kivy/graphics/opengl.pyx":60
 * GL_ONE_MINUS_SRC_COLOR = cgldef.GL_ONE_MINUS_SRC_COLOR
 * GL_SRC_ALPHA = cgldef.GL_SRC_ALPHA
 * GL_ONE_MINUS_SRC_ALPHA = cgldef.GL_ONE_MINUS_SRC_ALPHA             # <<<<<<<<<<<<<<
 * GL_DST_ALPHA = cgldef.GL_DST_ALPHA
 * GL_ONE_MINUS_DST_ALPHA = cgldef.GL_ONE_MINUS_DST_ALPHA
*/
  __pyx_t_2 = __Pyx_PyLong_From_int(GL_ONE_MINUS_SRC_ALPHA); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 60, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_GL_ONE_MINUS_SRC_ALPHA, __pyx_t_2) < (0)) __PYX_ERR(0, 60, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "kivy/graphics/opengl.pyx":61
 * GL_SRC_ALPHA = cgldef.GL_SRC_ALPHA
 * GL_ONE_MINUS_SRC_ALPHA = cgldef.GL_ONE_MINUS_SRC_ALPHA
 * GL_DST_ALPHA = cgldef.GL_DST_ALPHA             # <<<<<<<<<<<<<<
 * GL_ONE_MINUS_DST_ALPHA = cgldef.GL_ONE_MINUS_DST_ALPHA
 * GL_DST_COLOR = cgldef.GL_DST_COLOR
*/
  __pyx_t_2 = __Pyx_PyLong_From_int(GL_DST_ALPHA); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 61, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_GL_DST_ALPHA, __pyx_t_2) < (0)) __PYX_ERR(0, 61, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "kivy/graphics/opengl.pyx":62
 * GL_ONE_MINUS_SRC_ALPHA = cgldef.GL_ONE_MINUS_SRC_ALPHA
 * GL_DST_ALPHA = cgldef.GL_DST_ALPHA
 * GL_ONE_MINUS_DST_ALPHA = cgldef.GL_ONE_MINUS_DST_ALPHA             # <<<<<<<<<<<<<<
 * GL_DST_COLOR = cgldef.GL_DST_COLOR
 * GL_ONE_MINUS_DST_COLOR = cgldef.GL_ONE_MINUS_DST_COLOR
*/
  __pyx_t_2 = __Pyx_PyLong_From_int(GL_ONE_MINUS_DST_ALPHA); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 62, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_GL_ONE_MINUS_DST_ALPHA, __pyx_t_2) < (0)) __PYX_ERR(0, 62, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "kivy/graphics/opengl.pyx":63
 * GL_DST_ALPHA = cgldef.GL_DST_ALPHA
 * GL_ONE_MINUS_DST_ALPHA = cgldef.GL_ONE_MINUS_DST_ALPHA
 * GL_DST_COLOR = cgldef.GL_DST_COLOR             # <<<<<<<<<<<<<<
 * GL_ONE_MINUS_DST_COLOR = cgldef.GL_ONE_MINUS_DST_COLOR
 * GL_SRC_ALPHA_SATURATE = cgldef.GL_SRC_ALPHA_SATURATE
*/
  __pyx_t_2 = __Pyx_PyLong_From_int(GL_DST_COLOR); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 63, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_GL_DST_COLOR, __pyx_t_2) < (0)) __PYX_ERR(0, 63, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "kivy/graphics/opengl.pyx":64
 * GL_ONE_MINUS_DST_ALPHA = cgldef.GL_ONE_MINUS_DST_ALPHA
 * GL_DST_COLOR = cgldef.GL_DST_COLOR
 * GL_ONE_MINUS_DST_COLOR = cgldef.GL_ONE_MINUS_DST_COLOR             # <<<<<<<<<<<<<<
 * GL_SRC_ALPHA_SATURATE = cgldef.GL_SRC_ALPHA_SATURATE
 * GL_FUNC_ADD = cgldef.GL_FUNC_ADD
*/
  __pyx_t_2 = __Pyx_PyLong_From_int(GL_ONE_MINUS_DST_COLOR); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 64, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_GL_ONE_MINUS_DST_COLOR, __pyx_t_2) < (0)) __PYX_ERR(0, 64, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "kivy/graphics/opengl.pyx":65
 * GL_DST_COLOR = cgldef.GL_DST_COLOR
 * GL_ONE_MINUS_DST_COLOR = cgldef.GL_ONE_MINUS_DST_COLOR
 * GL_SRC_ALPHA_SATURATE = cgldef.GL_SRC_ALPHA_SATURATE             # <<<<<<<<<<<<<<
 * GL_FUNC_ADD = cgldef.GL_FUNC_ADD
 * GL_BLEND_EQUATION = cgldef.GL_BLEND_EQUATION
*/
  __pyx_t_2 = __Pyx_PyLong_From_int(GL_SRC_ALPHA_SATURATE); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 65, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_GL_SRC_ALPHA_SATURATE, __pyx_t_2) < (0)) __PYX_ERR(0, 65, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "kivy/graphics/opengl.pyx":66
 * GL_ONE_MINUS_DST_COLOR = cgldef.GL_ONE_MINUS_DST_COLOR
 * GL_SRC_ALPHA_SATURATE = cgldef.GL_SRC_ALPHA_SATURATE
 * GL_FUNC_ADD = cgldef.GL_FUNC_ADD             # <<<<<<<<<<<<<<
 * GL_BLEND_EQUATION = cgldef.GL_BLEND_EQUATION
 * GL_BLEND_EQUATION_RGB = cgldef.GL_BLEND_EQUATION_RGB
*/
  __pyx_t_2 = __Pyx_PyLong_From_int(GL_FUNC_ADD); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 66, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_GL_FUNC_ADD, __pyx_t_2) < (0)) __PYX_ERR(0, 66, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "kivy/graphics/opengl.pyx":67
 * GL_SRC_ALPHA_SATURATE = cgldef.GL_SRC_ALPHA_SATURATE
 * GL_FUNC_ADD = cgldef.GL_FUNC_ADD
 * GL_BLEND_EQUATION = cgldef.GL_BLEND_EQUATION             # <<<<<<<<<<<<<<
 * GL_BLEND_EQUATION_RGB = cgldef.GL_BLEND_EQUATION_RGB
 * GL_BLEND_EQUATION_ALPHA = cgldef.GL_BLEND_EQUATION_ALPHA
*/
  __pyx_t_2 = __Pyx_PyLong_From_int(GL_BLEND_EQUATION); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 67, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_GL_BLEND_EQUATION, __pyx_t_2) < (0)) __PYX_ERR(0, 67, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "kivy/graphics/opengl.pyx":68
 * GL_FUNC_ADD = cgldef.GL_FUNC_ADD
 * GL_BLEND_EQUATION = cgldef.GL_BLEND_EQUATION
 * GL_BLEND_EQUATION_RGB = cgldef.GL_BLEND_EQUATION_RGB             # <<<<<<<<<<<<<<
 * GL_BLEND_EQUATION_ALPHA = cgldef.GL_BLEND_EQUATION_ALPHA
 * GL_FUNC_SUBTRACT = cgldef.GL_FUNC_SUBTRACT
*/
  __pyx_t_2 = __Pyx_PyLong_From_int(GL_BLEND_EQUATION_RGB); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 68, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_GL_BLEND_EQUATION_RGB, __pyx_t_2) < (0)) __PYX_ERR(0, 68, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "kivy/graphics/opengl.pyx":69
 * GL_BLEND_EQUATION = cgldef.GL_BLEND_EQUATION
 * GL_BLEND_EQUATION_RGB = cgldef.GL_BLEND_EQUATION_RGB
 * GL_BLEND_EQUATION_ALPHA = cgldef.GL_BLEND_EQUATION_ALPHA             # <<<<<<<<<<<<<<
 * GL_FUNC_SUBTRACT = cgldef.GL_FUNC_SUBTRACT
 * GL_FUNC_REVERSE_SUBTRACT = cgldef.GL_FUNC_REVERSE_SUBTRACT
*/
  __pyx_t_2 = __Pyx_PyLong_From_int(GL_BLEND_EQUATION_ALPHA); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 69, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_GL_BLEND_EQUATION_ALPHA, __pyx_t_2) < (0)) __PYX_ERR(0, 69, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "kivy/graphics/opengl.pyx":70
 * GL_BLEND_EQUATION_RGB = cgldef.GL_BLEND_EQUATION_RGB
 * GL_BLEND_EQUATION_ALPHA = cgldef.GL_BLEND_EQUATION_ALPHA
 * GL_FUNC_SUBTRACT = cgldef.GL_FUNC_SUBTRACT             # <<<<<<<<<<<<<<
 * GL_FUNC_REVERSE_SUBTRACT = cgldef.GL_FUNC_REVERSE_SUBTRACT
 * GL_BLEND_DST_RGB = cgldef.GL_BLEND_DST_RGB
*/
  __pyx_t_2 = __Pyx_PyLong_From_int(GL_FUNC_SUBTRACT); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 70, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_GL_FUNC_SUBTRACT, __pyx_t_2) < (0)) __PYX_ERR(0, 70, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "kivy/graphics/opengl.pyx":71
 * GL_BLEND_EQUATION_ALPHA = cgldef.GL_BLEND_EQUATION_ALPHA
 * GL_FUNC_SUBTRACT = cgldef.GL_FUNC_SUBTRACT
 * GL_FUNC_REVERSE_SUBTRACT = cgldef.GL_FUNC_REVERSE_SUBTRACT             # <<<<<<<<<<<<<<
 * GL_BLEND_DST_RGB = cgldef.GL_BLEND_DST_RGB
 * GL_BLEND_SRC_RGB = cgldef.GL_BLEND_SRC_RGB
*/
  __pyx_t_2 = __Pyx_PyLong_From_int(GL_FUNC_REVERSE_SUBTRACT); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 71, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_GL_FUNC_REVERSE_SUBTRACT, __pyx_t_2) < (0)) __PYX_ERR(0, 71, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "kivy/graphics/opengl.pyx":72
 * GL_FUNC_SUBTRACT = cgldef.GL_FUNC_SUBTRACT
 * GL_FUNC_REVERSE_SUBTRACT = cgldef.GL_FUNC_REVERSE_SUBTRACT
 * GL_BLEND_DST_RGB = cgldef.GL_BLEND_DST_RGB             # <<<<<<<<<<<<<<
 * GL_BLEND_SRC_RGB = cgldef.GL_BLEND_SRC_RGB
 * GL_BLEND_DST_ALPHA = cgldef.GL_BLEND_DST_ALPHA
*/
  __pyx_t_2 = __Pyx_PyLong_From_int(GL_BLEND_DST_RGB); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 72, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_GL_BLEND_DST_RGB, __pyx_t_2) < (0)) __PYX_ERR(0, 72, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "kivy/graphics/opengl.pyx":73
 * GL_FUNC_REVERSE_SUBTRACT = cgldef.GL_FUNC_REVERSE_SUBTRACT
 * GL_BLEND_DST_RGB = cgldef.GL_BLEND_DST_RGB
 * GL_BLEND_SRC_RGB = cgldef.GL_BLEND_SRC_RGB             # <<<<<<<<<<<<<<
 * GL_BLEND_DST_ALPHA = cgldef.GL_BLEND_DST_ALPHA
 * GL_BLEND_SRC_ALPHA = cgldef.GL_BLEND_SRC_ALPHA
*/
  __pyx_t_2 = __Pyx_PyLong_From_int(GL_BLEND_SRC_RGB); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 73, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_GL_BLEND_SRC_RGB, __pyx_t_2) < (0)) __PYX_ERR(0, 73, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "kivy/graphics/opengl.pyx":74
 * GL_BLEND_DST_RGB = cgldef.GL_BLEND_DST_RGB
 * GL_BLEND_SRC_RGB = cgldef.GL_BLEND_SRC_RGB
 * GL_BLEND_DST_ALPHA = cgldef.GL_BLEND_DST_ALPHA             # <<<<<<<<<<<<<<
 * GL_BLEND_SRC_ALPHA = cgldef.GL_BLEND_SRC_ALPHA
 * GL_SRC_COLOR = cgldef.GL_SRC_COLOR
*/
  __pyx_t_2 = __Pyx_PyLong_From_int(GL_BLEND_DST_ALPHA); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 74, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_GL_BLEND_DST_ALPHA, __pyx_t_2) < (0)) __PYX_ERR(0, 74, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "kivy/graphics/opengl.pyx":75
 * GL_BLEND_SRC_RGB = cgldef.GL_BLEND_SRC_RGB
 * GL_BLEND_DST_ALPHA = cgldef.GL_BLEND_DST_ALPHA
 * GL_BLEND_SRC_ALPHA = cgldef.GL_BLEND_SRC_ALPHA             # <<<<<<<<<<<<<<
 * GL_SRC_COLOR = cgldef.GL_SRC_COLOR
 * GL_ONE_MINUS_SRC_COLOR = cgldef.GL_ONE_MINUS_SRC_COLOR
*/
  __pyx_t_2 = __Pyx_PyLong_From_int(GL_BLEND_SRC_ALPHA); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 75, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_GL_BLEND_SRC_ALPHA, __pyx_t_2) < (0)) __PYX_ERR(0, 75, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "kivy/graphics/opengl.pyx":76
 * GL_BLEND_DST_ALPHA = cgldef.GL_BLEND_DST_ALPHA
 * GL_BLEND_SRC_ALPHA = cgldef.GL_BLEND_SRC_ALPHA
 * GL_SRC_COLOR = cgldef.GL_SRC_COLOR             # <<<<<<<<<<<<<<
 * GL_ONE_MINUS_SRC_COLOR = cgldef.GL_ONE_MINUS_SRC_COLOR
 * GL_SRC_ALPHA = cgldef.GL_SRC_ALPHA
*/
  __pyx_t_2 = __Pyx_PyLong_From_int(GL_SRC_COLOR); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 76, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_GL_SRC_COLOR, __pyx_t_2) < (0)) __PYX_ERR(0, 76, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "kivy/graphics/opengl.pyx":77
 * GL_BLEND_SRC_ALPHA = cgldef.GL_BLEND_SRC_ALPHA
 * GL_SRC_COLOR = cgldef.GL_SRC_COLOR
 * GL_ONE_MINUS_SRC_COLOR = cgldef.GL_ONE_MINUS_SRC_COLOR             # <<<<<<<<<<<<<<
 * GL_SRC_ALPHA = cgldef.GL_SRC_ALPHA
 * GL_ONE_MINUS_SRC_ALPHA = cgldef.GL_ONE_MINUS_SRC_ALPHA
*/
  __pyx_t_2 = __Pyx_PyLong_From_int(GL_ONE_MINUS_SRC_COLOR); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 77, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_GL_ONE_MINUS_SRC_COLOR, __pyx_t_2) < (0)) __PYX_ERR(0, 77, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "kivy/graphics/opengl.pyx":78
 * GL_SRC_COLOR = cgldef.GL_SRC_COLOR
 * GL_ONE_MINUS_SRC_COLOR = cgldef.GL_ONE_MINUS_SRC_COLOR
 * GL_SRC_ALPHA = cgldef.GL_SRC_ALPHA             # <<<<<<<<<<<<<<
 * GL_ONE_MINUS_SRC_ALPHA = cgldef.GL_ONE_MINUS_SRC_ALPHA
 * GL_BLEND_COLOR = cgldef.GL_BLEND_COLOR
*/
  __pyx_t_2 = __Pyx_PyLong_From_int(GL_SRC_ALPHA); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 78, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_GL_SRC_ALPHA, __pyx_t_2) < (0)) __PYX_ERR(0, 78, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "kivy/graphics/opengl.pyx":79
 * GL_ONE_MINUS_SRC_COLOR = cgldef.GL_ONE_MINUS_SRC_COLOR
 * GL_SRC_ALPHA = cgldef.GL_SRC_ALPHA
 * GL_ONE_MINUS_SRC_ALPHA = cgldef.GL_ONE_MINUS_SRC_ALPHA             # <<<<<<<<<<<<<<
 * GL_BLEND_COLOR = cgldef.GL_BLEND_COLOR
 * GL_ARRAY_BUFFER = cgldef.GL_ARRAY_BUFFER
*/
  __pyx_t_2 = __Pyx_PyLong_From_int(GL_ONE_MINUS_SRC_ALPHA); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 79, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_GL_ONE_MINUS_SRC_ALPHA, __pyx_t_2) < (0)) __PYX_ERR(0, 79, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "kivy/graphics/opengl.pyx":80
 * GL_SRC_ALPHA = cgldef.GL_SRC_ALPHA
 * GL_ONE_MINUS_SRC_ALPHA = cgldef.GL_ONE_MINUS_SRC_ALPHA
 * GL_BLEND_COLOR = cgldef.GL_BLEND_COLOR             # <<<<<<<<<<<<<<
 * GL_ARRAY_BUFFER = cgldef.GL_ARRAY_BUFFER
 * GL_ELEMENT_ARRAY_BUFFER = cgldef.GL_ELEMENT_ARRAY_BUFFER
*/
  __pyx_t_2 = __Pyx_PyLong_From_int(GL_BLEND_COLOR); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 80, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_GL_BLEND_COLOR, __pyx_t_2) < (0)) __PYX_ERR(0, 80, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "kivy/graphics/opengl.pyx":81
 * GL_ONE_MINUS_SRC_ALPHA = cgldef.GL_ONE_MINUS_SRC_ALPHA
 * GL_BLEND_COLOR = cgldef.GL_BLEND_COLOR
 * GL_ARRAY_BUFFER = cgldef.GL_ARRAY_BUFFER             # <<<<<<<<<<<<<<
 * GL_ELEMENT_ARRAY_BUFFER = cgldef.GL_ELEMENT_ARRAY_BUFFER
 * GL_ARRAY_BUFFER_BINDING = cgldef.GL_ARRAY_BUFFER_BINDING
*/
  __pyx_t_2 = __Pyx_PyLong_From_int(GL_ARRAY_BUFFER); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 81, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_GL_ARRAY_BUFFER, __pyx_t_2) < (0)) __PYX_ERR(0, 81, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "kivy/graphics/opengl.pyx":82
 * GL_BLEND_COLOR = cgldef.GL_BLEND_COLOR
 * GL_ARRAY_BUFFER = cgldef.GL_ARRAY_BUFFER
 * GL_ELEMENT_ARRAY_BUFFER = cgldef.GL_ELEMENT_ARRAY_BUFFER             # <<<<<<<<<<<<<<
 * GL_ARRAY_BUFFER_BINDING = cgldef.GL_ARRAY_BUFFER_BINDING
 * GL_ELEMENT_ARRAY_BUFFER_BINDING = cgldef.GL_ELEMENT_ARRAY_BUFFER_BINDING
*/
  __pyx_t_2 = __Pyx_PyLong_From_int(GL_ELEMENT_ARRAY_BUFFER); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 82, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_GL_ELEMENT_ARRAY_BUFFER, __pyx_t_2) < (0)) __PYX_ERR(0, 82, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "kivy/graphics/opengl.pyx":83
 * GL_ARRAY_BUFFER = cgldef.GL_ARRAY_BUFFER
 * GL_ELEMENT_ARRAY_BUFFER = cgldef.GL_ELEMENT_ARRAY_BUFFER
 * GL_ARRAY_BUFFER_BINDING = cgldef.GL_ARRAY_BUFFER_BINDING             # <<<<<<<<<<<<<<
 * GL_ELEMENT_ARRAY_BUFFER_BINDING = cgldef.GL_ELEMENT_ARRAY_BUFFER_BINDING
 * GL_STREAM_DRAW = cgldef.GL_STREAM_DRAW
*/
  __pyx_t_2 = __Pyx_PyLong_From_int(GL_ARRAY_BUFFER_BINDING); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 83, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_GL_ARRAY_BUFFER_BINDING, __pyx_t_2) < (0)) __PYX_ERR(0, 83, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "kivy/graphics/opengl.pyx":84
 * GL_ELEMENT_ARRAY_BUFFER = cgldef.GL_ELEMENT_ARRAY_BUFFER
 * GL_ARRAY_BUFFER_BINDING = cgldef.GL_ARRAY_BUFFER_BINDING
 * GL_ELEMENT_ARRAY_BUFFER_BINDING = cgldef.GL_ELEMENT_ARRAY_BUFFER_BINDING             # <<<<<<<<<<<<<<
 * GL_STREAM_DRAW = cgldef.GL_STREAM_DRAW
 * GL_STATIC_DRAW = cgldef.GL_STATIC_DRAW
*/
  __pyx_t_2 = __Pyx_PyLong_From_int(GL_ELEMENT_ARRAY_BUFFER_BINDING); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 84, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_GL_ELEMENT_ARRAY_BUFFER_BINDING, __pyx_t_2) < (0)) __PYX_ERR(0, 84, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "kivy/graphics/opengl.pyx":85
 * GL_ARRAY_BUFFER_BINDING = cgldef.GL_ARRAY_BUFFER_BINDING
 * GL_ELEMENT_ARRAY_BUFFER_BINDING = cgldef.GL_ELEMENT_ARRAY_BUFFER_BINDING
 * GL_STREAM_DRAW = cgldef.GL_STREAM_DRAW             # <<<<<<<<<<<<<<
 * GL_STATIC_DRAW = cgldef.GL_STATIC_DRAW
 * GL_DYNAMIC_DRAW = cgldef.GL_DYNAMIC_DRAW
*/
  __pyx_t_2 = __Pyx_PyLong_From_int(GL_STREAM_DRAW); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 85, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_GL_STREAM_DRAW, __pyx_t_2) < (0)) __PYX_ERR(0, 85, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "kivy/graphics/opengl.pyx":86
 * GL_ELEMENT_ARRAY_BUFFER_BINDING = cgldef.GL_ELEMENT_ARRAY_BUFFER_BINDING
 * GL_STREAM_DRAW = cgldef.GL_STREAM_DRAW
 * GL_STATIC_DRAW = cgldef.GL_STATIC_DRAW             # <<<<<<<<<<<<<<
 * GL_DYNAMIC_DRAW = cgldef.GL_DYNAMIC_DRAW
 * GL_BUFFER_SIZE = cgldef.GL_BUFFER_SIZE
*/
  __pyx_t_2 = __Pyx_PyLong_From_int(GL_STATIC_DRAW); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 86, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_GL_STATIC_DRAW, __pyx_t_2) < (0)) __PYX_ERR(0, 86, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "kivy/graphics/opengl.pyx":87
 * GL_STREAM_DRAW = cgldef.GL_STREAM_DRAW
 * GL_STATIC_DRAW = cgldef.GL_STATIC_DRAW
 * GL_DYNAMIC_DRAW = cgldef.GL_DYNAMIC_DRAW             # <<<<<<<<<<<<<<
 * GL_BUFFER_SIZE = cgldef.GL_BUFFER_SIZE
 * GL_BUFFER_USAGE = cgldef.GL_BUFFER_USAGE
*/
  __pyx_t_2 = __Pyx_PyLong_From_int(GL_DYNAMIC_DRAW); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 87, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_GL_DYNAMIC_DRAW, __pyx_t_2) < (0)) __PYX_ERR(0, 87, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "kivy/graphics/opengl.pyx":88
 * GL_STATIC_DRAW = cgldef.GL_STATIC_DRAW
 * GL_DYNAMIC_DRAW = cgldef.GL_DYNAMIC_DRAW
 * GL_BUFFER_SIZE = cgldef.GL_BUFFER_SIZE             # <<<<<<<<<<<<<<
 * GL_BUFFER_USAGE = cgldef.GL_BUFFER_USAGE
 * GL_CURRENT_VERTEX_ATTRIB = cgldef.GL_CURRENT_VERTEX_ATTRIB
*/
  __pyx_t_2 = __Pyx_PyLong_From_int(GL_BUFFER_SIZE); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 88, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_GL_BUFFER_SIZE, __pyx_t_2) < (0)) __PYX_ERR(0, 88, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "kivy/graphics/opengl.pyx":89
 * GL_DYNAMIC_DRAW = cgldef.GL_DYNAMIC_DRAW
 * GL_BUFFER_SIZE = cgldef.GL_BUFFER_SIZE
 * GL_BUFFER_USAGE = cgldef.GL_BUFFER_USAGE             # <<<<<<<<<<<<<<
 * GL_CURRENT_VERTEX_ATTRIB = cgldef.GL_CURRENT_VERTEX_ATTRIB
 * GL_FRONT = cgldef.GL_FRONT
*/
  __pyx_t_2 = __Pyx_PyLong_From_int(GL_BUFFER_USAGE); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 89, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_GL_BUFFER_USAGE, __pyx_t_2) < (0)) __PYX_ERR(0, 89, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "kivy/graphics/opengl.pyx":90
 * GL_BUFFER_SIZE = cgldef.GL_BUFFER_SIZE
 * GL_BUFFER_USAGE = cgldef.GL_BUFFER_USAGE
 * GL_CURRENT_VERTEX_ATTRIB = cgldef.GL_CURRENT_VERTEX_ATTRIB             # <<<<<<<<<<<<<<
 * GL_FRONT = cgldef.GL_FRONT
 * GL_BACK = cgldef.GL_BACK
*/
  __pyx_t_2 = __Pyx_PyLong_From_int(GL_CURRENT_VERTEX_ATTRIB); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 90, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_GL_CURRENT_VERTEX_ATTRIB, __pyx_t_2) < (0)) __PYX_ERR(0, 90, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "kivy/graphics/opengl.pyx":91
 * GL_BUFFER_USAGE = cgldef.GL_BUFFER_USAGE
 * GL_CURRENT_VERTEX_ATTRIB = cgldef.GL_CURRENT_VERTEX_ATTRIB
 * GL_FRONT = cgldef.GL_FRONT             # <<<<<<<<<<<<<<
 * GL_BACK = cgldef.GL_BACK
 * GL_FRONT_AND_BACK = cgldef.GL_FRONT_AND_BACK
*/
  __pyx_t_2 = __Pyx_PyLong_From_int(GL_FRONT); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 91, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_GL_FRONT, __pyx_t_2) < (0)) __PYX_ERR(0, 91, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "kivy/graphics/opengl.pyx":92
 * GL_CURRENT_VERTEX_ATTRIB = cgldef.GL_CURRENT_VERTEX_ATTRIB
 * GL_FRONT = cgldef.GL_FRONT
 * GL_BACK = cgldef.GL_BACK             # <<<<<<<<<<<<<<
 * GL_FRONT_AND_BACK = cgldef.GL_FRONT_AND_BACK
 * GL_TEXTURE_2D = cgldef.GL_TEXTURE_2D
*/
  __pyx_t_2 = __Pyx_PyLong_From_int(GL_BACK); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 92, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_GL_BACK, __pyx_t_2) < (0)) __PYX_ERR(0, 92, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "kivy/graphics/opengl.pyx":93
 * GL_FRONT = cgldef.GL_FRONT
 * GL_BACK = cgldef.GL_BACK
 * GL_FRONT_AND_BACK = cgldef.GL_FRONT_AND_BACK             # <<<<<<<<<<<<<<
 * GL_TEXTURE_2D = cgldef.GL_TEXTURE_2D
 * GL_CULL_FACE = cgldef.GL_CULL_FACE
*/
  __pyx_t_2 = __Pyx_PyLong_From_int(GL_FRONT_AND_BACK); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 93, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_GL_FRONT_AND_BACK, __pyx_t_2) < (0)) __PYX_ERR(0, 93, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "kivy/graphics/opengl.pyx":94
 * GL_BACK = cgldef.GL_BACK
 * GL_FRONT_AND_BACK = cgldef.GL_FRONT_AND_BACK
 * GL_TEXTURE_2D = cgldef.GL_TEXTURE_2D             # <<<<<<<<<<<<<<
 * GL_CULL_FACE = cgldef.GL_CULL_FACE
 * GL_BLEND = cgldef.GL_BLEND
*/
  __pyx_t_2 = __Pyx_PyLong_From_int(GL_TEXTURE_2D); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 94, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_GL_TEXTURE_2D, __pyx_t_2) < (0)) __PYX_ERR(0, 94, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "kivy/graphics/opengl.pyx":95
 * GL_FRONT_AND_BACK = cgldef.GL_FRONT_AND_BACK
 * GL_TEXTURE_2D = cgldef.GL_TEXTURE_2D
 * GL_CULL_FACE = cgldef.GL_CULL_FACE             # <<<<<<<<<<<<<<
 * GL_BLEND = cgldef.GL_BLEND
 * GL_DITHER = cgldef.GL_DITHER
*/
  __pyx_t_2 = __Pyx_PyLong_From_int(GL_CULL_FACE); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 95, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_GL_CULL_FACE, __pyx_t_2) < (0)) __PYX_ERR(0, 95, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "kivy/graphics/opengl.pyx":96
 * GL_TEXTURE_2D = cgldef.GL_TEXTURE_2D
 * GL_CULL_FACE = cgldef.GL_CULL_FACE
 * GL_BLEND = cgldef.GL_BLEND             # <<<<<<<<<<<<<<
 * GL_DITHER = cgldef.GL_DITHER
 * GL_STENCIL_TEST = cgldef.GL_STENCIL_TEST
*/
  __pyx_t_2 = __Pyx_PyLong_From_int(GL_BLEND); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 96, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_GL_BLEND, __pyx_t_2) < (0)) __PYX_ERR(0, 96, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "kivy/graphics/opengl.pyx":97
 * GL_CULL_FACE = cgldef.GL_CULL_FACE
 * GL_BLEND = cgldef.GL_BLEND
 * GL_DITHER = cgldef.GL_DITHER             # <<<<<<<<<<<<<<
 * GL_STENCIL_TEST = cgldef.GL_STENCIL_TEST
 * GL_DEPTH_TEST = cgldef.GL_DEPTH_TEST
*/
  __pyx_t_2 = __Pyx_PyLong_From_int(GL_DITHER); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 97, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_GL_DITHER, __pyx_t_2) < (0)) __PYX_ERR(0, 97, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "kivy/graphics/opengl.pyx":98
 * GL_BLEND = cgldef.GL_BLEND
 * GL_DITHER = cgldef.GL_DITHER
 * GL_STENCIL_TEST = cgldef.GL_STENCIL_TEST             # <<<<<<<<<<<<<<
 * GL_DEPTH_TEST = cgldef.GL_DEPTH_TEST
 * GL_SCISSOR_TEST = cgldef.GL_SCISSOR_TEST
*/
  __pyx_t_2 = __Pyx_PyLong_From_int(GL_STENCIL_TEST); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 98, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_GL_STENCIL_TEST, __pyx_t_2) < (0)) __PYX_ERR(0, 98, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "kivy/graphics/opengl.pyx":99
 * GL_DITHER = cgldef.GL_DITHER
 * GL_STENCIL_TEST = cgldef.GL_STENCIL_TEST
 * GL_DEPTH_TEST = cgldef.GL_DEPTH_TEST             # <<<<<<<<<<<<<<
 * GL_SCISSOR_TEST = cgldef.GL_SCISSOR_TEST
 * GL_POLYGON_OFFSET_FILL = cgldef.GL_POLYGON_OFFSET_FILL
*/
  __pyx_t_2 = __Pyx_PyLong_From_int(GL_DEPTH_TEST); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 99, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_GL_DEPTH_TEST, __pyx_t_2) < (0)) __PYX_ERR(0, 99, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "kivy/graphics/opengl.pyx":100
 * GL_STENCIL_TEST = cgldef.GL_STENCIL_TEST
 * GL_DEPTH_TEST = cgldef.GL_DEPTH_TEST
 * GL_SCISSOR_TEST = cgldef.GL_SCISSOR_TEST             # <<<<<<<<<<<<<<
 * GL_POLYGON_OFFSET_FILL = cgldef.GL_POLYGON_OFFSET_FILL
 * GL_SAMPLE_ALPHA_TO_COVERAGE = cgldef.GL_SAMPLE_ALPHA_TO_COVERAGE
*/
  __pyx_t_2 = __Pyx_PyLong_From_int(GL_SCISSOR_TEST); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 100, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_GL_SCISSOR_TEST, __pyx_t_2) < (0)) __PYX_ERR(0, 100, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "kivy/graphics/opengl.pyx":101
 * GL_DEPTH_TEST = cgldef.GL_DEPTH_TEST
 * GL_SCISSOR_TEST = cgldef.GL_SCISSOR_TEST
 * GL_POLYGON_OFFSET_FILL = cgldef.GL_POLYGON_OFFSET_FILL             # <<<<<<<<<<<<<<
 * GL_SAMPLE_ALPHA_TO_COVERAGE = cgldef.GL_SAMPLE_ALPHA_TO_COVERAGE
 * GL_SAMPLE_COVERAGE = cgldef.GL_SAMPLE_COVERAGE
*/
  __pyx_t_2 = __Pyx_PyLong_From_int(GL_POLYGON_OFFSET_FILL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 101, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_GL_POLYGON_OFFSET_FILL, __pyx_t_2) < (0)) __PYX_ERR(0, 101, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "kivy/graphics/opengl.pyx":102
 * GL_SCISSOR_TEST = cgldef.GL_SCISSOR_TEST
 * GL_POLYGON_OFFSET_FILL = cgldef.GL_POLYGON_OFFSET_FILL
 * GL_SAMPLE_ALPHA_TO_COVERAGE = cgldef.GL_SAMPLE_ALPHA_TO_COVERAGE             # <<<<<<<<<<<<<<
 * GL_SAMPLE_COVERAGE = cgldef.GL_SAMPLE_COVERAGE
 * GL_NO_ERROR = cgldef.GL_NO_ERROR
*/
  __pyx_t_2 = __Pyx_PyLong_From_int(GL_SAMPLE_ALPHA_TO_COVERAGE); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 102, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_GL_SAMPLE_ALPHA_TO_COVERAGE, __pyx_t_2) < (0)) __PYX_ERR(0, 102, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "kivy/graphics/opengl.pyx":103
 * GL_POLYGON_OFFSET_FILL = cgldef.GL_POLYGON_OFFSET_FILL
 * GL_SAMPLE_ALPHA_TO_COVERAGE = cgldef.GL_SAMPLE_ALPHA_TO_COVERAGE
 * GL_SAMPLE_COVERAGE = cgldef.GL_SAMPLE_COVERAGE             # <<<<<<<<<<<<<<
 * GL_NO_ERROR = cgldef.GL_NO_ERROR
 * GL_INVALID_ENUM = cgldef.GL_INVALID_ENUM
*/
  __pyx_t_2 = __Pyx_PyLong_From_int(GL_SAMPLE_COVERAGE); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 103, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_GL_SAMPLE_COVERAGE, __pyx_t_2) < (0)) __PYX_ERR(0, 103, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "kivy/graphics/opengl.pyx":104
 * GL_SAMPLE_ALPHA_TO_COVERAGE = cgldef.GL_SAMPLE_ALPHA_TO_COVERAGE
 * GL_SAMPLE_COVERAGE = cgldef.GL_SAMPLE_COVERAGE
 * GL_NO_ERROR = cgldef.GL_NO_ERROR             # <<<<<<<<<<<<<<
 * GL_INVALID_ENUM = cgldef.GL_INVALID_ENUM
 * GL_INVALID_VALUE = cgldef.GL_INVALID_VALUE
*/
  __pyx_t_2 = __Pyx_PyLong_From_int(GL_NO_ERROR); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 104, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_GL_NO_ERROR, __pyx_t_2) < (0)) __PYX_ERR(0, 104, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "kivy/graphics/opengl.pyx":105
 * GL_SAMPLE_COVERAGE = cgldef.GL_SAMPLE_COVERAGE
 * GL_NO_ERROR = cgldef.GL_NO_ERROR
 * GL_INVALID_ENUM = cgldef.GL_INVALID_ENUM             # <<<<<<<<<<<<<<
 * GL_INVALID_VALUE = cgldef.GL_INVALID_VALUE
 * GL_INVALID_OPERATION = cgldef.GL_INVALID_OPERATION
*/
  __pyx_t_2 = __Pyx_PyLong_From_int(GL_INVALID_ENUM); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 105, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_GL_INVALID_ENUM, __pyx_t_2) < (0)) __PYX_ERR(0, 105, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "kivy/graphics/opengl.pyx":106
 * GL_NO_ERROR = cgldef.GL_NO_ERROR
 * GL_INVALID_ENUM = cgldef.GL_INVALID_ENUM
 * GL_INVALID_VALUE = cgldef.GL_INVALID_VALUE             # <<<<<<<<<<<<<<
 * GL_INVALID_OPERATION = cgldef.GL_INVALID_OPERATION
 * GL_OUT_OF_MEMORY = cgldef.GL_OUT_OF_MEMORY
*/
  __pyx_t_2 = __Pyx_PyLong_From_int(GL_INVALID_VALUE); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 106, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_GL_INVALID_VALUE, __pyx_t_2) < (0)) __PYX_ERR(0, 106, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "kivy/graphics/opengl.pyx":107
 * GL_INVALID_ENUM = cgldef.GL_INVALID_ENUM
 * GL_INVALID_VALUE = cgldef.GL_INVALID_VALUE
 * GL_INVALID_OPERATION = cgldef.GL_INVALID_OPERATION             # <<<<<<<<<<<<<<
 * GL_OUT_OF_MEMORY = cgldef.GL_OUT_OF_MEMORY
 * GL_CW = cgldef.GL_CW
*/
  __pyx_t_2 = __Pyx_PyLong_From_int(GL_INVALID_OPERATION); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 107, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_GL_INVALID_OPERATION, __pyx_t_2) < (0)) __PYX_ERR(0, 107, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "kivy/graphics/opengl.pyx":108
 * GL_INVALID_VALUE = cgldef.GL_INVALID_VALUE
 * GL_INVALID_OPERATION = cgldef.GL_INVALID_OPERATION
 * GL_OUT_OF_MEMORY = cgldef.GL_OUT_OF_MEMORY             # <<<<<<<<<<<<<<
 * GL_CW = cgldef.GL_CW
 * GL_CCW = cgldef.GL_CCW
*/
  __pyx_t_2 = __Pyx_PyLong_From_int(GL_OUT_OF_MEMORY); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 108, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_GL_OUT_OF_MEMORY, __pyx_t_2) < (0)) __PYX_ERR(0, 108, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "kivy/graphics/opengl.pyx":109
 * GL_INVALID_OPERATION = cgldef.GL_INVALID_OPERATION
 * GL_OUT_OF_MEMORY = cgldef.GL_OUT_OF_MEMORY
 * GL_CW = cgldef.GL_CW             # <<<<<<<<<<<<<<
 * GL_CCW = cgldef.GL_CCW
 * GL_LINE_WIDTH = cgldef.GL_LINE_WIDTH
*/
  __pyx_t_2 = __Pyx_PyLong_From_int(GL_CW); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 109, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_GL_CW, __pyx_t_2) < (0)) __PYX_ERR(0, 109, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "kivy/graphics/opengl.pyx":110
 * GL_OUT_OF_MEMORY = cgldef.GL_OUT_OF_MEMORY
 * GL_CW = cgldef.GL_CW
 * GL_CCW = cgldef.GL_CCW             # <<<<<<<<<<<<<<
 * GL_LINE_WIDTH = cgldef.GL_LINE_WIDTH
 * GL_ALIASED_POINT_SIZE_RANGE = cgldef.GL_ALIASED_POINT_SIZE_RANGE
*/
  __pyx_t_2 = __Pyx_PyLong_From_int(GL_CCW); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 110, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_GL_CCW, __pyx_t_2) < (0)) __PYX_ERR(0, 110, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "kivy/graphics/opengl.pyx":111
 * GL_CW = cgldef.GL_CW
 * GL_CCW = cgldef.GL_CCW
 * GL_LINE_WIDTH = cgldef.GL_LINE_WIDTH             # <<<<<<<<<<<<<<
 * GL_ALIASED_POINT_SIZE_RANGE = cgldef.GL_ALIASED_POINT_SIZE_RANGE
 * GL_ALIASED_LINE_WIDTH_RANGE = cgldef.GL_ALIASED_LINE_WIDTH_RANGE
*/
  __pyx_t_2 = __Pyx_PyLong_From_int(GL_LINE_WIDTH); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 111, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_GL_LINE_WIDTH, __pyx_t_2) < (0)) __PYX_ERR(0, 111, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "kivy/graphics/opengl.pyx":112
 * GL_CCW = cgldef.GL_CCW
 * GL_LINE_WIDTH = cgldef.GL_LINE_WIDTH
 * GL_ALIASED_POINT_SIZE_RANGE = cgldef.GL_ALIASED_POINT_SIZE_RANGE             # <<<<<<<<<<<<<<
 * GL_ALIASED_LINE_WIDTH_RANGE = cgldef.GL_ALIASED_LINE_WIDTH_RANGE
 * GL_CULL_FACE_MODE = cgldef.GL_CULL_FACE_MODE
*/
  __pyx_t_2 = __Pyx_PyLong_From_int(GL_ALIASED_POINT_SIZE_RANGE); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 112, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_GL_ALIASED_POINT_SIZE_RANGE, __pyx_t_2) < (0)) __PYX_ERR(0, 112, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "kivy/graphics/opengl.pyx":113
 * GL_LINE_WIDTH = cgldef.GL_LINE_WIDTH
 * GL_ALIASED_POINT_SIZE_RANGE = cgldef.GL_ALIASED_POINT_SIZE_RANGE
 * GL_ALIASED_LINE_WIDTH_RANGE = cgldef.GL_ALIASED_LINE_WIDTH_RANGE             # <<<<<<<<<<<<<<
 * GL_CULL_FACE_MODE = cgldef.GL_CULL_FACE_MODE
 * GL_FRONT_FACE = cgldef.GL_FRONT_FACE
*/
  __pyx_t_2 = __Pyx_PyLong_From_int(GL_ALIASED_LINE_WIDTH_RANGE); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 113, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_GL_ALIASED_LINE_WIDTH_RANGE, __pyx_t_2) < (0)) __PYX_ERR(0, 113, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "kivy/graphics/opengl.pyx":114
 * GL_ALIASED_POINT_SIZE_RANGE = cgldef.GL_ALIASED_POINT_SIZE_RANGE
 * GL_ALIASED_LINE_WIDTH_RANGE = cgldef.GL_ALIASED_LINE_WIDTH_RANGE
 * GL_CULL_FACE_MODE = cgldef.GL_CULL_FACE_MODE             # <<<<<<<<<<<<<<
 * GL_FRONT_FACE = cgldef.GL_FRONT_FACE
 * GL_DEPTH_RANGE = cgldef.GL_DEPTH_RANGE
*/
  __pyx_t_2 = __Pyx_PyLong_From_int(GL_CULL_FACE_MODE); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 114, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_GL_CULL_FACE_MODE, __pyx_t_2) < (0)) __PYX_ERR(0, 114, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "kivy/graphics/opengl.pyx":115
 * GL_ALIASED_LINE_WIDTH_RANGE = cgldef.GL_ALIASED_LINE_WIDTH_RANGE
 * GL_CULL_FACE_MODE = cgldef.GL_CULL_FACE_MODE
 * GL_FRONT_FACE = cgldef.GL_FRONT_FACE             # <<<<<<<<<<<<<<
 * GL_DEPTH_RANGE = cgldef.GL_DEPTH_RANGE
 * GL_DEPTH_WRITEMASK = cgldef.GL_DEPTH_WRITEMASK
*/
  __pyx_t_2 = __Pyx_PyLong_From_int(GL_FRONT_FACE); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 115, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_GL_FRONT_FACE, __pyx_t_2) < (0)) __PYX_ERR(0, 115, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "kivy/graphics/opengl.pyx":116
 * GL_CULL_FACE_MODE = cgldef.GL_CULL_FACE_MODE
 * GL_FRONT_FACE = cgldef.GL_FRONT_FACE
 * GL_DEPTH_RANGE = cgldef.GL_DEPTH_RANGE             # <<<<<<<<<<<<<<
 * GL_DEPTH_WRITEMASK = cgldef.GL_DEPTH_WRITEMASK
 * GL_DEPTH_CLEAR_VALUE = cgldef.GL_DEPTH_CLEAR_VALUE
*/
  __pyx_t_2 = __Pyx_PyLong_From_int(GL_DEPTH_RANGE); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 116, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_GL_DEPTH_RANGE, __pyx_t_2) < (0)) __PYX_ERR(0, 116, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "kivy/graphics/opengl.pyx":117
 * GL_FRONT_FACE = cgldef.GL_FRONT_FACE
 * GL_DEPTH_RANGE = cgldef.GL_DEPTH_RANGE
 * GL_DEPTH_WRITEMASK = cgldef.GL_DEPTH_WRITEMASK             # <<<<<<<<<<<<<<
 * GL_DEPTH_CLEAR_VALUE = cgldef.GL_DEPTH_CLEAR_VALUE
 * GL_DEPTH_FUNC = cgldef.GL_DEPTH_FUNC
*/
  __pyx_t_2 = __Pyx_PyLong_From_int(GL_DEPTH_WRITEMASK); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 117, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_GL_DEPTH_WRITEMASK, __pyx_t_2) < (0)) __PYX_ERR(0, 117, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "kivy/graphics/opengl.pyx":118
 * GL_DEPTH_RANGE = cgldef.GL_DEPTH_RANGE
 * GL_DEPTH_WRITEMASK = cgldef.GL_DEPTH_WRITEMASK
 * GL_DEPTH_CLEAR_VALUE = cgldef.GL_DEPTH_CLEAR_VALUE             # <<<<<<<<<<<<<<
 * GL_DEPTH_FUNC = cgldef.GL_DEPTH_FUNC
 * GL_STENCIL_CLEAR_VALUE = cgldef.GL_STENCIL_CLEAR_VALUE
*/
  __pyx_t_2 = __Pyx_PyLong_From_int(GL_DEPTH_CLEAR_VALUE); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 118, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_GL_DEPTH_CLEAR_VALUE, __pyx_t_2) < (0)) __PYX_ERR(0, 118, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "kivy/graphics/opengl.pyx":119
 * GL_DEPTH_WRITEMASK = cgldef.GL_DEPTH_WRITEMASK
 * GL_DEPTH_CLEAR_VALUE = cgldef.GL_DEPTH_CLEAR_VALUE
 * GL_DEPTH_FUNC = cgldef.GL_DEPTH_FUNC             # <<<<<<<<<<<<<<
 * GL_STENCIL_CLEAR_VALUE = cgldef.GL_STENCIL_CLEAR_VALUE
 * GL_STENCIL_FUNC = cgldef.GL_STENCIL_FUNC
*/
  __pyx_t_2 = __Pyx_PyLong_From_int(GL_DEPTH_FUNC); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 119, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_GL_DEPTH_FUNC, __pyx_t_2) < (0)) __PYX_ERR(0, 119, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "kivy/graphics/opengl.pyx":120
 * GL_DEPTH_CLEAR_VALUE = cgldef.GL_DEPTH_CLEAR_VALUE
 * GL_DEPTH_FUNC = cgldef.GL_DEPTH_FUNC
 * GL_STENCIL_CLEAR_VALUE = cgldef.GL_STENCIL_CLEAR_VALUE             # <<<<<<<<<<<<<<
 * GL_STENCIL_FUNC = cgldef.GL_STENCIL_FUNC
 * GL_STENCIL_FAIL = cgldef.GL_STENCIL_FAIL
*/
  __pyx_t_2 = __Pyx_PyLong_From_int(GL_STENCIL_CLEAR_VALUE); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 120, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_GL_STENCIL_CLEAR_VALUE, __pyx_t_2) < (0)) __PYX_ERR(0, 120, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "kivy/graphics/opengl.pyx":121
 * GL_DEPTH_FUNC = cgldef.GL_DEPTH_FUNC
 * GL_STENCIL_CLEAR_VALUE = cgldef.GL_STENCIL_CLEAR_VALUE
 * GL_STENCIL_FUNC = cgldef.GL_STENCIL_FUNC             # <<<<<<<<<<<<<<
 * GL_STENCIL_FAIL = cgldef.GL_STENCIL_FAIL
 * GL_STENCIL_PASS_DEPTH_FAIL = cgldef.GL_STENCIL_PASS_DEPTH_FAIL
*/
  __pyx_t_2 = __Pyx_PyLong_From_int(GL_STENCIL_FUNC); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 121, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_GL_STENCIL_FUNC, __pyx_t_2) < (0)) __PYX_ERR(0, 121, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "kivy/graphics/opengl.pyx":122
 * GL_STENCIL_CLEAR_VALUE = cgldef.GL_STENCIL_CLEAR_VALUE
 * GL_STENCIL_FUNC = cgldef.GL_STENCIL_FUNC
 * GL_STENCIL_FAIL = cgldef.GL_STENCIL_FAIL             # <<<<<<<<<<<<<<
 * GL_STENCIL_PASS_DEPTH_FAIL = cgldef.GL_STENCIL_PASS_DEPTH_FAIL
 * GL_STENCIL_PASS_DEPTH_PASS = cgldef.GL_STENCIL_PASS_DEPTH_PASS
*/
  __pyx_t_2 = __Pyx_PyLong_From_int(GL_STENCIL_FAIL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 122, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_GL_STENCIL_FAIL, __pyx_t_2) < (0)) __PYX_ERR(0, 122, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "kivy/graphics/opengl.pyx":123
 * GL_STENCIL_FUNC = cgldef.GL_STENCIL_FUNC
 * GL_STENCIL_FAIL = cgldef.GL_STENCIL_FAIL
 * GL_STENCIL_PASS_DEPTH_FAIL = cgldef.GL_STENCIL_PASS_DEPTH_FAIL             # <<<<<<<<<<<<<<
 * GL_STENCIL_PASS_DEPTH_PASS = cgldef.GL_STENCIL_PASS_DEPTH_PASS
 * GL_STENCIL_REF = cgldef.GL_STENCIL_REF
*/
  __pyx_t_2 = __Pyx_PyLong_From_int(GL_STENCIL_PASS_DEPTH_FAIL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 123, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_GL_STENCIL_PASS_DEPTH_FAIL, __pyx_t_2) < (0)) __PYX_ERR(0, 123, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "kivy/graphics/opengl.pyx":124
 * GL_STENCIL_FAIL = cgldef.GL_STENCIL_FAIL
 * GL_STENCIL_PASS_DEPTH_FAIL = cgldef.GL_STENCIL_PASS_DEPTH_FAIL
 * GL_STENCIL_PASS_DEPTH_PASS = cgldef.GL_STENCIL_PASS_DEPTH_PASS             # <<<<<<<<<<<<<<
 * GL_STENCIL_REF = cgldef.GL_STENCIL_REF
 * GL_STENCIL_VALUE_MASK = cgldef.GL_STENCIL_VALUE_MASK
*/
  __pyx_t_2 = __Pyx_PyLong_From_int(GL_STENCIL_PASS_DEPTH_PASS); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 124, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_GL_STENCIL_PASS_DEPTH_PASS, __pyx_t_2) < (0)) __PYX_ERR(0, 124, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "kivy/graphics/opengl.pyx":125
 * GL_STENCIL_PASS_DEPTH_FAIL = cgldef.GL_STENCIL_PASS_DEPTH_FAIL
 * GL_STENCIL_PASS_DEPTH_PASS = cgldef.GL_STENCIL_PASS_DEPTH_PASS
 * GL_STENCIL_REF = cgldef.GL_STENCIL_REF             # <<<<<<<<<<<<<<
 * GL_STENCIL_VALUE_MASK = cgldef.GL_STENCIL_VALUE_MASK
 * GL_STENCIL_WRITEMASK = cgldef.GL_STENCIL_WRITEMASK
*/
  __pyx_t_2 = __Pyx_PyLong_From_int(GL_STENCIL_REF); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 125, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_GL_STENCIL_REF, __pyx_t_2) < (0)) __PYX_ERR(0, 125, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "kivy/graphics/opengl.pyx":126
 * GL_STENCIL_PASS_DEPTH_PASS = cgldef.GL_STENCIL_PASS_DEPTH_PASS
 * GL_STENCIL_REF = cgldef.GL_STENCIL_REF
 * GL_STENCIL_VALUE_MASK = cgldef.GL_STENCIL_VALUE_MASK             # <<<<<<<<<<<<<<
 * GL_STENCIL_WRITEMASK = cgldef.GL_STENCIL_WRITEMASK
 * GL_STENCIL_BACK_FUNC = cgldef.GL_STENCIL_BACK_FUNC
*/
  __pyx_t_2 = __Pyx_PyLong_From_int(GL_STENCIL_VALUE_MASK); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 126, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_GL_STENCIL_VALUE_MASK, __pyx_t_2) < (0)) __PYX_ERR(0, 126, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "kivy/graphics/opengl.pyx":127
 * GL_STENCIL_REF = cgldef.GL_STENCIL_REF
 * GL_STENCIL_VALUE_MASK = cgldef.GL_STENCIL_VALUE_MASK
 * GL_STENCIL_WRITEMASK = cgldef.GL_STENCIL_WRITEMASK             # <<<<<<<<<<<<<<
 * GL_STENCIL_BACK_FUNC = cgldef.GL_STENCIL_BACK_FUNC
 * GL_STENCIL_BACK_FAIL = cgldef.GL_STENCIL_BACK_FAIL
*/
  __pyx_t_2 = __Pyx_PyLong_From_int(GL_STENCIL_WRITEMASK); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 127, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_GL_STENCIL_WRITEMASK, __pyx_t_2) < (0)) __PYX_ERR(0, 127, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "kivy/graphics/opengl.pyx":128
 * GL_STENCIL_VALUE_MASK = cgldef.GL_STENCIL_VALUE_MASK
 * GL_STENCIL_WRITEMASK = cgldef.GL_STENCIL_WRITEMASK
 * GL_STENCIL_BACK_FUNC = cgldef.GL_STENCIL_BACK_FUNC             # <<<<<<<<<<<<<<
 * GL_STENCIL_BACK_FAIL = cgldef.GL_STENCIL_BACK_FAIL
 * GL_STENCIL_BACK_PASS_DEPTH_FAIL = cgldef.GL_STENCIL_BACK_PASS_DEPTH_FAIL
*/
  __pyx_t_2 = __Pyx_PyLong_From_int(GL_STENCIL_BACK_FUNC); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 128, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_GL_STENCIL_BACK_FUNC, __pyx_t_2) < (0)) __PYX_ERR(0, 128, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "kivy/graphics/opengl.pyx":129
 * GL_STENCIL_WRITEMASK = cgldef.GL_STENCIL_WRITEMASK
 * GL_STENCIL_BACK_FUNC = cgldef.GL_STENCIL_BACK_FUNC
 * GL_STENCIL_BACK_FAIL = cgldef.GL_STENCIL_BACK_FAIL             # <<<<<<<<<<<<<<
 * GL_STENCIL_BACK_PASS_DEPTH_FAIL = cgldef.GL_STENCIL_BACK_PASS_DEPTH_FAIL
 * GL_STENCIL_BACK_PASS_DEPTH_PASS = cgldef.GL_STENCIL_BACK_PASS_DEPTH_PASS
*/
  __pyx_t_2 = __Pyx_PyLong_From_int(GL_STENCIL_BACK_FAIL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 129, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_GL_STENCIL_BACK_FAIL, __pyx_t_2) < (0)) __PYX_ERR(0, 129, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "kivy/graphics/opengl.pyx":130
 * GL_STENCIL_BACK_FUNC = cgldef.GL_STENCIL_BACK_FUNC
 * GL_STENCIL_BACK_FAIL = cgldef.GL_STENCIL_BACK_FAIL
 * GL_STENCIL_BACK_PASS_DEPTH_FAIL = cgldef.GL_STENCIL_BACK_PASS_DEPTH_FAIL             # <<<<<<<<<<<<<<
 * GL_STENCIL_BACK_PASS_DEPTH_PASS = cgldef.GL_STENCIL_BACK_PASS_DEPTH_PASS
 * GL_STENCIL_BACK_REF = cgldef.GL_STENCIL_BACK_REF
*/
  __pyx_t_2 = __Pyx_PyLong_From_int(GL_STENCIL_BACK_PASS_DEPTH_FAIL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 130, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_GL_STENCIL_BACK_PASS_DEPTH_FAIL, __pyx_t_2) < (0)) __PYX_ERR(0, 130, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "kivy/graphics/opengl.pyx":131
 * GL_STENCIL_BACK_FAIL = cgldef.GL_STENCIL_BACK_FAIL
 * GL_STENCIL_BACK_PASS_DEPTH_FAIL = cgldef.GL_STENCIL_BACK_PASS_DEPTH_FAIL
 * GL_STENCIL_BACK_PASS_DEPTH_PASS = cgldef.GL_STENCIL_BACK_PASS_DEPTH_PASS             # <<<<<<<<<<<<<<
 * GL_STENCIL_BACK_REF = cgldef.GL_STENCIL_BACK_REF
 * GL_STENCIL_BACK_VALUE_MASK = cgldef.GL_STENCIL_BACK_VALUE_MASK
*/
  __pyx_t_2 = __Pyx_PyLong_From_int(GL_STENCIL_BACK_PASS_DEPTH_PASS); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 131, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_GL_STENCIL_BACK_PASS_DEPTH_PASS, __pyx_t_2) < (0)) __PYX_ERR(0, 131, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "kivy/graphics/opengl.pyx":132
 * GL_STENCIL_BACK_PASS_DEPTH_FAIL = cgldef.GL_STENCIL_BACK_PASS_DEPTH_FAIL
 * GL_STENCIL_BACK_PASS_DEPTH_PASS = cgldef.GL_STENCIL_BACK_PASS_DEPTH_PASS
 * GL_STENCIL_BACK_REF = cgldef.GL_STENCIL_BACK_REF             # <<<<<<<<<<<<<<
 * GL_STENCIL_BACK_VALUE_MASK = cgldef.GL_STENCIL_BACK_VALUE_MASK
 * GL_STENCIL_BACK_WRITEMASK = cgldef.GL_STENCIL_BACK_WRITEMASK
*/
  __pyx_t_2 = __Pyx_PyLong_From_int(GL_STENCIL_BACK_REF); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 132, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_GL_STENCIL_BACK_REF, __pyx_t_2) < (0)) __PYX_ERR(0, 132, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "kivy/graphics/opengl.pyx":133
 * GL_STENCIL_BACK_PASS_DEPTH_PASS = cgldef.GL_STENCIL_BACK_PASS_DEPTH_PASS
 * GL_STENCIL_BACK_REF = cgldef.GL_STENCIL_BACK_REF
 * GL_STENCIL_BACK_VALUE_MASK = cgldef.GL_STENCIL_BACK_VALUE_MASK             # <<<<<<<<<<<<<<
 * GL_STENCIL_BACK_WRITEMASK = cgldef.GL_STENCIL_BACK_WRITEMASK
 * GL_VIEWPORT = cgldef.GL_VIEWPORT
*/
  __pyx_t_2 = __Pyx_PyLong_From_int(GL_STENCIL_BACK_VALUE_MASK); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 133, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_GL_STENCIL_BACK_VALUE_MASK, __pyx_t_2) < (0)) __PYX_ERR(0, 133, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "kivy/graphics/opengl.pyx":134
 * GL_STENCIL_BACK_REF = cgldef.GL_STENCIL_BACK_REF
 * GL_STENCIL_BACK_VALUE_MASK = cgldef.GL_STENCIL_BACK_VALUE_MASK
 * GL_STENCIL_BACK_WRITEMASK = cgldef.GL_STENCIL_BACK_WRITEMASK             # <<<<<<<<<<<<<<
 * GL_VIEWPORT = cgldef.GL_VIEWPORT
 * GL_SCISSOR_BOX = cgldef.GL_SCISSOR_BOX
*/
  __pyx_t_2 = __Pyx_PyLong_From_int(GL_STENCIL_BACK_WRITEMASK); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 134, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_GL_STENCIL_BACK_WRITEMASK, __pyx_t_2) < (0)) __PYX_ERR(0, 134, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "kivy/graphics/opengl.pyx":135
 * GL_STENCIL_BACK_VALUE_MASK = cgldef.GL_STENCIL_BACK_VALUE_MASK
 * GL_STENCIL_BACK_WRITEMASK = cgldef.GL_STENCIL_BACK_WRITEMASK
 * GL_VIEWPORT = cgldef.GL_VIEWPORT             # <<<<<<<<<<<<<<
 * GL_SCISSOR_BOX = cgldef.GL_SCISSOR_BOX
 * GL_COLOR_CLEAR_VALUE = cgldef.GL_COLOR_CLEAR_VALUE
*/
  __pyx_t_2 = __Pyx_PyLong_From_int(GL_VIEWPORT); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 135, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_GL_VIEWPORT, __pyx_t_2) < (0)) __PYX_ERR(0, 135, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "kivy/graphics/opengl.pyx":136
 * GL_STENCIL_BACK_WRITEMASK = cgldef.GL_STENCIL_BACK_WRITEMASK
 * GL_VIEWPORT = cgldef.GL_VIEWPORT
 * GL_SCISSOR_BOX = cgldef.GL_SCISSOR_BOX             # <<<<<<<<<<<<<<
 * GL_COLOR_CLEAR_VALUE = cgldef.GL_COLOR_CLEAR_VALUE
 * GL_COLOR_WRITEMASK = cgldef.GL_COLOR_WRITEMASK
*/
  __pyx_t_2 = __Pyx_PyLong_From_int(GL_SCISSOR_BOX); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 136, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_GL_SCISSOR_BOX, __pyx_t_2) < (0)) __PYX_ERR(0, 136, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "kivy/graphics/opengl.pyx":137
 * GL_VIEWPORT = cgldef.GL_VIEWPORT
 * GL_SCISSOR_BOX = cgldef.GL_SCISSOR_BOX
 * GL_COLOR_CLEAR_VALUE = cgldef.GL_COLOR_CLEAR_VALUE             # <<<<<<<<<<<<<<
 * GL_COLOR_WRITEMASK = cgldef.GL_COLOR_WRITEMASK
 * GL_UNPACK_ALIGNMENT = cgldef.GL_UNPACK_ALIGNMENT
*/
  __pyx_t_2 = __Pyx_PyLong_From_int(GL_COLOR_CLEAR_VALUE); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 137, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_GL_COLOR_CLEAR_VALUE, __pyx_t_2) < (0)) __PYX_ERR(0, 137, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "kivy/graphics/opengl.pyx":138
 * GL_SCISSOR_BOX = cgldef.GL_SCISSOR_BOX
 * GL_COLOR_CLEAR_VALUE = cgldef.GL_COLOR_CLEAR_VALUE
 * GL_COLOR_WRITEMASK = cgldef.GL_COLOR_WRITEMASK             # <<<<<<<<<<<<<<
 * GL_UNPACK_ALIGNMENT = cgldef.GL_UNPACK_ALIGNMENT
 * GL_PACK_ALIGNMENT = cgldef.GL_PACK_ALIGNMENT
*/
  __pyx_t_2 = __Pyx_PyLong_From_int(GL_COLOR_WRITEMASK); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 138, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_GL_COLOR_WRITEMASK, __pyx_t_2) < (0)) __PYX_ERR(0, 138, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "kivy/graphics/opengl.pyx":139
 * GL_COLOR_CLEAR_VALUE = cgldef.GL_COLOR_CLEAR_VALUE
 * GL_COLOR_WRITEMASK = cgldef.GL_COLOR_WRITEMASK
 * GL_UNPACK_ALIGNMENT = cgldef.GL_UNPACK_ALIGNMENT             # <<<<<<<<<<<<<<
 * GL_PACK_ALIGNMENT = cgldef.GL_PACK_ALIGNMENT
 * GL_MAX_TEXTURE_SIZE = cgldef.GL_MAX_TEXTURE_SIZE
*/
  __pyx_t_2 = __Pyx_PyLong_From_int(GL_UNPACK_ALIGNMENT); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 139, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_GL_UNPACK_ALIGNMENT, __pyx_t_2) < (0)) __PYX_ERR(0, 139, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "kivy/graphics/opengl.pyx":140
 * GL_COLOR_WRITEMASK = cgldef.GL_COLOR_WRITEMASK
 * GL_UNPACK_ALIGNMENT = cgldef.GL_UNPACK_ALIGNMENT
 * GL_PACK_ALIGNMENT = cgldef.GL_PACK_ALIGNMENT             # <<<<<<<<<<<<<<
 * GL_MAX_TEXTURE_SIZE = cgldef.GL_MAX_TEXTURE_SIZE
 * GL_MAX_VIEWPORT_DIMS = cgldef.GL_MAX_VIEWPORT_DIMS
*/
  __pyx_t_2 = __Pyx_PyLong_From_int(GL_PACK_ALIGNMENT); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 140, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_GL_PACK_ALIGNMENT, __pyx_t_2) < (0)) __PYX_ERR(0, 140, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "kivy/graphics/opengl.pyx":141
 * GL_UNPACK_ALIGNMENT = cgldef.GL_UNPACK_ALIGNMENT
 * GL_PACK_ALIGNMENT = cgldef.GL_PACK_ALIGNMENT
 * GL_MAX_TEXTURE_SIZE = cgldef.GL_MAX_TEXTURE_SIZE             # <<<<<<<<<<<<<<
 * GL_MAX_VIEWPORT_DIMS = cgldef.GL_MAX_VIEWPORT_DIMS
 * GL_SUBPIXEL_BITS = cgldef.GL_SUBPIXEL_BITS
*/
  __pyx_t_2 = __Pyx_PyLong_From_int(GL_MAX_TEXTURE_SIZE); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 141, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_GL_MAX_TEXTURE_SIZE, __pyx_t_2) < (0)) __PYX_ERR(0, 141, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "kivy/graphics/opengl.pyx":142
 * GL_PACK_ALIGNMENT = cgldef.GL_PACK_ALIGNMENT
 * GL_MAX_TEXTURE_SIZE = cgldef.GL_MAX_TEXTURE_SIZE
 * GL_MAX_VIEWPORT_DIMS = cgldef.GL_MAX_VIEWPORT_DIMS             # <<<<<<<<<<<<<<
 * GL_SUBPIXEL_BITS = cgldef.GL_SUBPIXEL_BITS
 * GL_RED_BITS = cgldef.GL_RED_BITS
*/
  __pyx_t_2 = __Pyx_PyLong_From_int(GL_MAX_VIEWPORT_DIMS); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 142, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_GL_MAX_VIEWPORT_DIMS, __pyx_t_2) < (0)) __PYX_ERR(0, 142, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "kivy/graphics/opengl.pyx":143
 * GL_MAX_TEXTURE_SIZE = cgldef.GL_MAX_TEXTURE_SIZE
 * GL_MAX_VIEWPORT_DIMS = cgldef.GL_MAX_VIEWPORT_DIMS
 * GL_SUBPIXEL_BITS = cgldef.GL_SUBPIXEL_BITS             # <<<<<<<<<<<<<<
 * GL_RED_BITS = cgldef.GL_RED_BITS
 * GL_GREEN_BITS = cgldef.GL_GREEN_BITS
*/
  __pyx_t_2 = __Pyx_PyLong_From_int(GL_SUBPIXEL_BITS); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 143, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_GL_SUBPIXEL_BITS, __pyx_t_2) < (0)) __PYX_ERR(0, 143, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "kivy/graphics/opengl.pyx":144
 * GL_MAX_VIEWPORT_DIMS = cgldef.GL_MAX_VIEWPORT_DIMS
 * GL_SUBPIXEL_BITS = cgldef.GL_SUBPIXEL_BITS
 * GL_RED_BITS = cgldef.GL_RED_BITS             # <<<<<<<<<<<<<<
 * GL_GREEN_BITS = cgldef.GL_GREEN_BITS
 * GL_BLUE_BITS = cgldef.GL_BLUE_BITS
*/
  __pyx_t_2 = __Pyx_PyLong_From_int(GL_RED_BITS); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 144, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_GL_RED_BITS, __pyx_t_2) < (0)) __PYX_ERR(0, 144, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "kivy/graphics/opengl.pyx":145
 * GL_SUBPIXEL_BITS = cgldef.GL_SUBPIXEL_BITS
 * GL_RED_BITS = cgldef.GL_RED_BITS
 * GL_GREEN_BITS = cgldef.GL_GREEN_BITS             # <<<<<<<<<<<<<<
 * GL_BLUE_BITS = cgldef.GL_BLUE_BITS
 * GL_ALPHA_BITS = cgldef.GL_ALPHA_BITS
*/
  __pyx_t_2 = __Pyx_PyLong_From_int(GL_GREEN_BITS); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 145, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_GL_GREEN_BITS, __pyx_t_2) < (0)) __PYX_ERR(0, 145, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "kivy/graphics/opengl.pyx":146
 * GL_RED_BITS = cgldef.GL_RED_BITS
 * GL_GREEN_BITS = cgldef.GL_GREEN_BITS
 * GL_BLUE_BITS = cgldef.GL_BLUE_BITS             # <<<<<<<<<<<<<<
 * GL_ALPHA_BITS = cgldef.GL_ALPHA_BITS
 * GL_DEPTH_BITS = cgldef.GL_DEPTH_BITS
*/
  __pyx_t_2 = __Pyx_PyLong_From_int(GL_BLUE_BITS); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 146, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_GL_BLUE_BITS, __pyx_t_2) < (0)) __PYX_ERR(0, 146, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "kivy/graphics/opengl.pyx":147
 * GL_GREEN_BITS = cgldef.GL_GREEN_BITS
 * GL_BLUE_BITS = cgldef.GL_BLUE_BITS
 * GL_ALPHA_BITS = cgldef.GL_ALPHA_BITS             # <<<<<<<<<<<<<<
 * GL_DEPTH_BITS = cgldef.GL_DEPTH_BITS
 * GL_STENCIL_BITS = cgldef.GL_STENCIL_BITS
*/
  __pyx_t_2 = __Pyx_PyLong_From_int(GL_ALPHA_BITS); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 147, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_GL_ALPHA_BITS, __pyx_t_2) < (0)) __PYX_ERR(0, 147, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "kivy/graphics/opengl.pyx":148
 * GL_BLUE_BITS = cgldef.GL_BLUE_BITS
 * GL_ALPHA_BITS = cgldef.GL_ALPHA_BITS
 * GL_DEPTH_BITS = cgldef.GL_DEPTH_BITS             # <<<<<<<<<<<<<<
 * GL_STENCIL_BITS = cgldef.GL_STENCIL_BITS
 * GL_POLYGON_OFFSET_UNITS = cgldef.GL_POLYGON_OFFSET_UNITS
*/
  __pyx_t_2 = __Pyx_PyLong_From_int(GL_DEPTH_BITS); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 148, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_GL_DEPTH_BITS, __pyx_t_2) < (0)) __PYX_ERR(0, 148, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "kivy/graphics/opengl.pyx":149
 * GL_ALPHA_BITS = cgldef.GL_ALPHA_BITS
 * GL_DEPTH_BITS = cgldef.GL_DEPTH_BITS
 * GL_STENCIL_BITS = cgldef.GL_STENCIL_BITS             # <<<<<<<<<<<<<<
 * GL_POLYGON_OFFSET_UNITS = cgldef.GL_POLYGON_OFFSET_UNITS
 * GL_POLYGON_OFFSET_FACTOR = cgldef.GL_POLYGON_OFFSET_FACTOR
*/
  __pyx_t_2 = __Pyx_PyLong_From_int(GL_STENCIL_BITS); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 149, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_GL_STENCIL_BITS, __pyx_t_2) < (0)) __PYX_ERR(0, 149, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "kivy/graphics/opengl.pyx":150
 * GL_DEPTH_BITS = cgldef.GL_DEPTH_BITS
 * GL_STENCIL_BITS = cgldef.GL_STENCIL_BITS
 * GL_POLYGON_OFFSET_UNITS = cgldef.GL_POLYGON_OFFSET_UNITS             # <<<<<<<<<<<<<<
 * GL_POLYGON_OFFSET_FACTOR = cgldef.GL_POLYGON_OFFSET_FACTOR
 * GL_TEXTURE_BINDING_2D = cgldef.GL_TEXTURE_BINDING_2D
*/
  __pyx_t_2 = __Pyx_PyLong_From_int(GL_POLYGON_OFFSET_UNITS); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 150, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_GL_POLYGON_OFFSET_UNITS, __pyx_t_2) < (0)) __PYX_ERR(0, 150, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "kivy/graphics/opengl.pyx":151
 * GL_STENCIL_BITS = cgldef.GL_STENCIL_BITS
 * GL_POLYGON_OFFSET_UNITS = cgldef.GL_POLYGON_OFFSET_UNITS
 * GL_POLYGON_OFFSET_FACTOR = cgldef.GL_POLYGON_OFFSET_FACTOR             # <<<<<<<<<<<<<<
 * GL_TEXTURE_BINDING_2D = cgldef.GL_TEXTURE_BINDING_2D
 * GL_SAMPLE_BUFFERS = cgldef.GL_SAMPLE_BUFFERS
*/
  __pyx_t_2 = __Pyx_PyLong_From_int(GL_POLYGON_OFFSET_FACTOR); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 151, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_GL_POLYGON_OFFSET_FACTOR, __pyx_t_2) < (0)) __PYX_ERR(0, 151, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "kivy/graphics/opengl.pyx":152
 * GL_POLYGON_OFFSET_UNITS = cgldef.GL_POLYGON_OFFSET_UNITS
 * GL_POLYGON_OFFSET_FACTOR = cgldef.GL_POLYGON_OFFSET_FACTOR
 * GL_TEXTURE_BINDING_2D = cgldef.GL_TEXTURE_BINDING_2D             # <<<<<<<<<<<<<<
 * GL_SAMPLE_BUFFERS = cgldef.GL_SAMPLE_BUFFERS
 * GL_SAMPLES = cgldef.GL_SAMPLES
*/
  __pyx_t_2 = __Pyx_PyLong_From_int(GL_TEXTURE_BINDING_2D); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 152, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_GL_TEXTURE_BINDING_2D, __pyx_t_2) < (0)) __PYX_ERR(0, 152, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "kivy/graphics/opengl.pyx":153
 * GL_POLYGON_OFFSET_FACTOR = cgldef.GL_POLYGON_OFFSET_FACTOR
 * GL_TEXTURE_BINDING_2D = cgldef.GL_TEXTURE_BINDING_2D
 * GL_SAMPLE_BUFFERS = cgldef.GL_SAMPLE_BUFFERS             # <<<<<<<<<<<<<<
 * GL_SAMPLES = cgldef.GL_SAMPLES
 * GL_SAMPLE_COVERAGE_VALUE = cgldef.GL_SAMPLE_COVERAGE_VALUE
*/
  __pyx_t_2 = __Pyx_PyLong_From_int(GL_SAMPLE_BUFFERS); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 153, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_GL_SAMPLE_BUFFERS, __pyx_t_2) < (0)) __PYX_ERR(0, 153, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "kivy/graphics/opengl.pyx":154
 * GL_TEXTURE_BINDING_2D = cgldef.GL_TEXTURE_BINDING_2D
 * GL_SAMPLE_BUFFERS = cgldef.GL_SAMPLE_BUFFERS
 * GL_SAMPLES = cgldef.GL_SAMPLES             # <<<<<<<<<<<<<<
 * GL_SAMPLE_COVERAGE_VALUE = cgldef.GL_SAMPLE_COVERAGE_VALUE
 * GL_SAMPLE_COVERAGE_INVERT = cgldef.GL_SAMPLE_COVERAGE_INVERT
*/
  __pyx_t_2 = __Pyx_PyLong_From_int(GL_SAMPLES); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 154, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_GL_SAMPLES, __pyx_t_2) < (0)) __PYX_ERR(0, 154, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "kivy/graphics/opengl.pyx":155
 * GL_SAMPLE_BUFFERS = cgldef.GL_SAMPLE_BUFFERS
 * GL_SAMPLES = cgldef.GL_SAMPLES
 * GL_SAMPLE_COVERAGE_VALUE = cgldef.GL_SAMPLE_COVERAGE_VALUE             # <<<<<<<<<<<<<<
 * GL_SAMPLE_COVERAGE_INVERT = cgldef.GL_SAMPLE_COVERAGE_INVERT
 * GL_NUM_COMPRESSED_TEXTURE_FORMATS = cgldef.GL_NUM_COMPRESSED_TEXTURE_FORMATS
*/
  __pyx_t_2 = __Pyx_PyLong_From_int(GL_SAMPLE_COVERAGE_VALUE); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 155, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_GL_SAMPLE_COVERAGE_VALUE, __pyx_t_2) < (0)) __PYX_ERR(0, 155, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "kivy/graphics/opengl.pyx":156
 * GL_SAMPLES = cgldef.GL_SAMPLES
 * GL_SAMPLE_COVERAGE_VALUE = cgldef.GL_SAMPLE_COVERAGE_VALUE
 * GL_SAMPLE_COVERAGE_INVERT = cgldef.GL_SAMPLE_COVERAGE_INVERT             # <<<<<<<<<<<<<<
 * GL_NUM_COMPRESSED_TEXTURE_FORMATS = cgldef.GL_NUM_COMPRESSED_TEXTURE_FORMATS
 * GL_COMPRESSED_TEXTURE_FORMATS = cgldef.GL_COMPRESSED_TEXTURE_FORMATS
*/
  __pyx_t_2 = __Pyx_PyLong_From_int(GL_SAMPLE_COVERAGE_INVERT); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 156, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_GL_SAMPLE_COVERAGE_INVERT, __pyx_t_2) < (0)) __PYX_ERR(0, 156, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "kivy/graphics/opengl.pyx":157
 * GL_SAMPLE_COVERAGE_VALUE = cgldef.GL_SAMPLE_COVERAGE_VALUE
 * GL_SAMPLE_COVERAGE_INVERT = cgldef.GL_SAMPLE_COVERAGE_INVERT
 * GL_NUM_COMPRESSED_TEXTURE_FORMATS = cgldef.GL_NUM_COMPRESSED_TEXTURE_FORMATS             # <<<<<<<<<<<<<<
 * GL_COMPRESSED_TEXTURE_FORMATS = cgldef.GL_COMPRESSED_TEXTURE_FORMATS
 * GL_DONT_CARE = cgldef.GL_DONT_CARE
*/
  __pyx_t_2 = __Pyx_PyLong_From_int(GL_NUM_COMPRESSED_TEXTURE_FORMATS); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 157, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_GL_NUM_COMPRESSED_TEXTURE_FORMAT, __pyx_t_2) < (0)) __PYX_ERR(0, 157, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "kivy/graphics/opengl.pyx":158
 * GL_SAMPLE_COVERAGE_INVERT = cgldef.GL_SAMPLE_COVERAGE_INVERT
 * GL_NUM_COMPRESSED_TEXTURE_FORMATS = cgldef.GL_NUM_COMPRESSED_TEXTURE_FORMATS
 * GL_COMPRESSED_TEXTURE_FORMATS = cgldef.GL_COMPRESSED_TEXTURE_FORMATS             # <<<<<<<<<<<<<<
 * GL_DONT_CARE = cgldef.GL_DONT_CARE
 * GL_FASTEST = cgldef.GL_FASTEST
*/
  __pyx_t_2 = __Pyx_PyLong_From_int(GL_COMPRESSED_TEXTURE_FORMATS); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 158, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_GL_COMPRESSED_TEXTURE_FORMATS, __pyx_t_2) < (0)) __PYX_ERR(0, 158, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "kivy/graphics/opengl.pyx":159
 * GL_NUM_COMPRESSED_TEXTURE_FORMATS = cgldef.GL_NUM_COMPRESSED_TEXTURE_FORMATS
 * GL_COMPRESSED_TEXTURE_FORMATS = cgldef.GL_COMPRESSED_TEXTURE_FORMATS
 * GL_DONT_CARE = cgldef.GL_DONT_CARE             # <<<<<<<<<<<<<<
 * GL_FASTEST = cgldef.GL_FASTEST
 * GL_NICEST = cgldef.GL_NICEST
*/
  __pyx_t_2 = __Pyx_PyLong_From_int(GL_DONT_CARE); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 159, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_GL_DONT_CARE, __pyx_t_2) < (0)) __PYX_ERR(0, 159, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "kivy/graphics/opengl.pyx":160
 * GL_COMPRESSED_TEXTURE_FORMATS = cgldef.GL_COMPRESSED_TEXTURE_FORMATS
 * GL_DONT_CARE = cgldef.GL_DONT_CARE
 * GL_FASTEST = cgldef.GL_FASTEST             # <<<<<<<<<<<<<<
 * GL_NICEST = cgldef.GL_NICEST
 * GL_GENERATE_MIPMAP_HINT = cgldef.GL_GENERATE_MIPMAP_HINT
*/
  __pyx_t_2 = __Pyx_PyLong_From_int(GL_FASTEST); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 160, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_GL_FASTEST, __pyx_t_2) < (0)) __PYX_ERR(0, 160, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "kivy/graphics/opengl.pyx":161
 * GL_DONT_CARE = cgldef.GL_DONT_CARE
 * GL_FASTEST = cgldef.GL_FASTEST
 * GL_NICEST = cgldef.GL_NICEST             # <<<<<<<<<<<<<<
 * GL_GENERATE_MIPMAP_HINT = cgldef.GL_GENERATE_MIPMAP_HINT
 * GL_BYTE = cgldef.GL_BYTE
*/
  __pyx_t_2 = __Pyx_PyLong_From_int(GL_NICEST); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 161, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_GL_NICEST, __pyx_t_2) < (0)) __PYX_ERR(0, 161, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "kivy/graphics/opengl.pyx":162
 * GL_FASTEST = cgldef.GL_FASTEST
 * GL_NICEST = cgldef.GL_NICEST
 * GL_GENERATE_MIPMAP_HINT = cgldef.GL_GENERATE_MIPMAP_HINT             # <<<<<<<<<<<<<<
 * GL_BYTE = cgldef.GL_BYTE
 * GL_UNSIGNED_BYTE = cgldef.GL_UNSIGNED_BYTE
*/
  __pyx_t_2 = __Pyx_PyLong_From_int(GL_GENERATE_MIPMAP_HINT); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 162, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_GL_GENERATE_MIPMAP_HINT, __pyx_t_2) < (0)) __PYX_ERR(0, 162, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "kivy/graphics/opengl.pyx":163
 * GL_NICEST = cgldef.GL_NICEST
 * GL_GENERATE_MIPMAP_HINT = cgldef.GL_GENERATE_MIPMAP_HINT
 * GL_BYTE = cgldef.GL_BYTE             # <<<<<<<<<<<<<<
 * GL_UNSIGNED_BYTE = cgldef.GL_UNSIGNED_BYTE
 * GL_SHORT = cgldef.GL_SHORT
*/
  __pyx_t_2 = __Pyx_PyLong_From_int(GL_BYTE); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 163, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_GL_BYTE, __pyx_t_2) < (0)) __PYX_ERR(0, 163, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "kivy/graphics/opengl.pyx":164
 * GL_GENERATE_MIPMAP_HINT = cgldef.GL_GENERATE_MIPMAP_HINT
 * GL_BYTE = cgldef.GL_BYTE
 * GL_UNSIGNED_BYTE = cgldef.GL_UNSIGNED_BYTE             # <<<<<<<<<<<<<<
 * GL_SHORT = cgldef.GL_SHORT
 * GL_UNSIGNED_SHORT = cgldef.GL_UNSIGNED_SHORT
*/
  __pyx_t_2 = __Pyx_PyLong_From_int(GL_UNSIGNED_BYTE); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 164, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_GL_UNSIGNED_BYTE, __pyx_t_2) < (0)) __PYX_ERR(0, 164, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "kivy/graphics/opengl.pyx":165
 * GL_BYTE = cgldef.GL_BYTE
 * GL_UNSIGNED_BYTE = cgldef.GL_UNSIGNED_BYTE
 * GL_SHORT = cgldef.GL_SHORT             # <<<<<<<<<<<<<<
 * GL_UNSIGNED_SHORT = cgldef.GL_UNSIGNED_SHORT
 * GL_INT = cgldef.GL_INT
*/
  __pyx_t_2 = __Pyx_PyLong_From_int(GL_SHORT); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 165, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_GL_SHORT, __pyx_t_2) < (0)) __PYX_ERR(0, 165, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "kivy/graphics/opengl.pyx":166
 * GL_UNSIGNED_BYTE = cgldef.GL_UNSIGNED_BYTE
 * GL_SHORT = cgldef.GL_SHORT
 * GL_UNSIGNED_SHORT = cgldef.GL_UNSIGNED_SHORT             # <<<<<<<<<<<<<<
 * GL_INT = cgldef.GL_INT
 * GL_UNSIGNED_INT = cgldef.GL_UNSIGNED_INT
*/
  __pyx_t_2 = __Pyx_PyLong_From_int(GL_UNSIGNED_SHORT); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 166, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_GL_UNSIGNED_SHORT, __pyx_t_2) < (0)) __PYX_ERR(0, 166, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "kivy/graphics/opengl.pyx":167
 * GL_SHORT = cgldef.GL_SHORT
 * GL_UNSIGNED_SHORT = cgldef.GL_UNSIGNED_SHORT
 * GL_INT = cgldef.GL_INT             # <<<<<<<<<<<<<<
 * GL_UNSIGNED_INT = cgldef.GL_UNSIGNED_INT
 * GL_FLOAT = cgldef.GL_FLOAT
*/
  __pyx_t_2 = __Pyx_PyLong_From_int(GL_INT); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 167, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_GL_INT, __pyx_t_2) < (0)) __PYX_ERR(0, 167, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "kivy/graphics/opengl.pyx":168
 * GL_UNSIGNED_SHORT = cgldef.GL_UNSIGNED_SHORT
 * GL_INT = cgldef.GL_INT
 * GL_UNSIGNED_INT = cgldef.GL_UNSIGNED_INT             # <<<<<<<<<<<<<<
 * GL_FLOAT = cgldef.GL_FLOAT
 * GL_DEPTH_COMPONENT = cgldef.GL_DEPTH_COMPONENT
*/
  __pyx_t_2 = __Pyx_PyLong_From_int(GL_UNSIGNED_INT); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 168, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_GL_UNSIGNED_INT, __pyx_t_2) < (0)) __PYX_ERR(0, 168, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "kivy/graphics/opengl.pyx":169
 * GL_INT = cgldef.GL_INT
 * GL_UNSIGNED_INT = cgldef.GL_UNSIGNED_INT
 * GL_FLOAT = cgldef.GL_FLOAT             # <<<<<<<<<<<<<<
 * GL_DEPTH_COMPONENT = cgldef.GL_DEPTH_COMPONENT
 * GL_ALPHA = cgldef.GL_ALPHA
*/
  __pyx_t_2 = __Pyx_PyLong_From_int(GL_FLOAT); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 169, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_GL_FLOAT, __pyx_t_2) < (0)) __PYX_ERR(0, 169, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "kivy/graphics/opengl.pyx":170
 * GL_UNSIGNED_INT = cgldef.GL_UNSIGNED_INT
 * GL_FLOAT = cgldef.GL_FLOAT
 * GL_DEPTH_COMPONENT = cgldef.GL_DEPTH_COMPONENT             # <<<<<<<<<<<<<<
 * GL_ALPHA = cgldef.GL_ALPHA
 * GL_RGB = cgldef.GL_RGB
*/
  __pyx_t_2 = __Pyx_PyLong_From_int(GL_DEPTH_COMPONENT); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 170, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_GL_DEPTH_COMPONENT, __pyx_t_2) < (0)) __PYX_ERR(0, 170, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "kivy/graphics/opengl.pyx":171
 * GL_FLOAT = cgldef.GL_FLOAT
 * GL_DEPTH_COMPONENT = cgldef.GL_DEPTH_COMPONENT
 * GL_ALPHA = cgldef.GL_ALPHA             # <<<<<<<<<<<<<<
 * GL_RGB = cgldef.GL_RGB
 * GL_RGBA = cgldef.GL_RGBA
*/
  __pyx_t_2 = __Pyx_PyLong_From_int(GL_ALPHA); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 171, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_GL_ALPHA, __pyx_t_2) < (0)) __PYX_ERR(0, 171, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "kivy/graphics/opengl.pyx":172
 * GL_DEPTH_COMPONENT = cgldef.GL_DEPTH_COMPONENT
 * GL_ALPHA = cgldef.GL_ALPHA
 * GL_RGB = cgldef.GL_RGB             # <<<<<<<<<<<<<<
 * GL_RGBA = cgldef.GL_RGBA
 * GL_LUMINANCE = cgldef.GL_LUMINANCE
*/
  __pyx_t_2 = __Pyx_PyLong_From_int(GL_RGB); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 172, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_GL_RGB, __pyx_t_2) < (0)) __PYX_ERR(0, 172, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "kivy/graphics/opengl.pyx":173
 * GL_ALPHA = cgldef.GL_ALPHA
 * GL_RGB = cgldef.GL_RGB
 * GL_RGBA = cgldef.GL_RGBA             # <<<<<<<<<<<<<<
 * GL_LUMINANCE = cgldef.GL_LUMINANCE
 * GL_LUMINANCE_ALPHA = cgldef.GL_LUMINANCE_ALPHA
*/
  __pyx_t_2 = __Pyx_PyLong_From_int(GL_RGBA); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 173, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_GL_RGBA, __pyx_t_2) < (0)) __PYX_ERR(0, 173, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "kivy/graphics/opengl.pyx":174
 * GL_RGB = cgldef.GL_RGB
 * GL_RGBA = cgldef.GL_RGBA
 * GL_LUMINANCE = cgldef.GL_LUMINANCE             # <<<<<<<<<<<<<<
 * GL_LUMINANCE_ALPHA = cgldef.GL_LUMINANCE_ALPHA
 * GL_UNSIGNED_SHORT_4_4_4_4 = cgldef.GL_UNSIGNED_SHORT_4_4_4_4
*/
  __pyx_t_2 = __Pyx_PyLong_From_int(GL_LUMINANCE); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 174, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_GL_LUMINANCE, __pyx_t_2) < (0)) __PYX_ERR(0, 174, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "kivy/graphics/opengl.pyx":175
 * GL_RGBA = cgldef.GL_RGBA
 * GL_LUMINANCE = cgldef.GL_LUMINANCE
 * GL_LUMINANCE_ALPHA = cgldef.GL_LUMINANCE_ALPHA             # <<<<<<<<<<<<<<
 * GL_UNSIGNED_SHORT_4_4_4_4 = cgldef.GL_UNSIGNED_SHORT_4_4_4_4
 * GL_UNSIGNED_SHORT_5_5_5_1 = cgldef.GL_UNSIGNED_SHORT_5_5_5_1
*/
  __pyx_t_2 = __Pyx_PyLong_From_int(GL_LUMINANCE_ALPHA); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 175, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_GL_LUMINANCE_ALPHA, __pyx_t_2) < (0)) __PYX_ERR(0, 175, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "kivy/graphics/opengl.pyx":176
 * GL_LUMINANCE = cgldef.GL_LUMINANCE
 * GL_LUMINANCE_ALPHA = cgldef.GL_LUMINANCE_ALPHA
 * GL_UNSIGNED_SHORT_4_4_4_4 = cgldef.GL_UNSIGNED_SHORT_4_4_4_4             # <<<<<<<<<<<<<<
 * GL_UNSIGNED_SHORT_5_5_5_1 = cgldef.GL_UNSIGNED_SHORT_5_5_5_1
 * GL_UNSIGNED_SHORT_5_6_5 = cgldef.GL_UNSIGNED_SHORT_5_6_5
*/
  __pyx_t_2 = __Pyx_PyLong_From_int(GL_UNSIGNED_SHORT_4_4_4_4); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 176, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_GL_UNSIGNED_SHORT_4_4_4_4, __pyx_t_2) < (0)) __PYX_ERR(0, 176, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "kivy/graphics/opengl.pyx":177
 * GL_LUMINANCE_ALPHA = cgldef.GL_LUMINANCE_ALPHA
 * GL_UNSIGNED_SHORT_4_4_4_4 = cgldef.GL_UNSIGNED_SHORT_4_4_4_4
 * GL_UNSIGNED_SHORT_5_5_5_1 = cgldef.GL_UNSIGNED_SHORT_5_5_5_1             # <<<<<<<<<<<<<<
 * GL_UNSIGNED_SHORT_5_6_5 = cgldef.GL_UNSIGNED_SHORT_5_6_5
 * GL_FRAGMENT_SHADER = cgldef.GL_FRAGMENT_SHADER
*/
  __pyx_t_2 = __Pyx_PyLong_From_int(GL_UNSIGNED_SHORT_5_5_5_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 177, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_GL_UNSIGNED_SHORT_5_5_5_1, __pyx_t_2) < (0)) __PYX_ERR(0, 177, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "kivy/graphics/opengl.pyx":178
 * GL_UNSIGNED_SHORT_4_4_4_4 = cgldef.GL_UNSIGNED_SHORT_4_4_4_4
 * GL_UNSIGNED_SHORT_5_5_5_1 = cgldef.GL_UNSIGNED_SHORT_5_5_5_1
 * GL_UNSIGNED_SHORT_5_6_5 = cgldef.GL_UNSIGNED_SHORT_5_6_5             # <<<<<<<<<<<<<<
 * GL_FRAGMENT_SHADER = cgldef.GL_FRAGMENT_SHADER
 * GL_VERTEX_SHADER = cgldef.GL_VERTEX_SHADER
*/
  __pyx_t_2 = __Pyx_PyLong_From_int(GL_UNSIGNED_SHORT_5_6_5); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 178, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_GL_UNSIGNED_SHORT_5_6_5, __pyx_t_2) < (0)) __PYX_ERR(0, 178, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "kivy/graphics/opengl.pyx":179
 * GL_UNSIGNED_SHORT_5_5_5_1 = cgldef.GL_UNSIGNED_SHORT_5_5_5_1
 * GL_UNSIGNED_SHORT_5_6_5 = cgldef.GL_UNSIGNED_SHORT_5_6_5
 * GL_FRAGMENT_SHADER = cgldef.GL_FRAGMENT_SHADER             # <<<<<<<<<<<<<<
 * GL_VERTEX_SHADER = cgldef.GL_VERTEX_SHADER
 * GL_MAX_VERTEX_ATTRIBS = cgldef.GL_MAX_VERTEX_ATTRIBS
*/
  __pyx_t_2 = __Pyx_PyLong_From_int(GL_FRAGMENT_SHADER); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 179, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_GL_FRAGMENT_SHADER, __pyx_t_2) < (0)) __PYX_ERR(0, 179, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "kivy/graphics/opengl.pyx":180
 * GL_UNSIGNED_SHORT_5_6_5 = cgldef.GL_UNSIGNED_SHORT_5_6_5
 * GL_FRAGMENT_SHADER = cgldef.GL_FRAGMENT_SHADER
 * GL_VERTEX_SHADER = cgldef.GL_VERTEX_SHADER             # <<<<<<<<<<<<<<
 * GL_MAX_VERTEX_ATTRIBS = cgldef.GL_MAX_VERTEX_ATTRIBS
 * GL_MAX_COMBINED_TEXTURE_IMAGE_UNITS = cgldef.GL_MAX_COMBINED_TEXTURE_IMAGE_UNITS
*/
  __pyx_t_2 = __Pyx_PyLong_From_int(GL_VERTEX_SHADER); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 180, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_GL_VERTEX_SHADER, __pyx_t_2) < (0)) __PYX_ERR(0, 180, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "kivy/graphics/opengl.pyx":181
 * GL_FRAGMENT_SHADER = cgldef.GL_FRAGMENT_SHADER
 * GL_VERTEX_SHADER = cgldef.GL_VERTEX_SHADER
 * GL_MAX_VERTEX_ATTRIBS = cgldef.GL_MAX_VERTEX_ATTRIBS             # <<<<<<<<<<<<<<
 * GL_MAX_COMBINED_TEXTURE_IMAGE_UNITS = cgldef.GL_MAX_COMBINED_TEXTURE_IMAGE_UNITS
 * GL_MAX_VERTEX_TEXTURE_IMAGE_UNITS = cgldef.GL_MAX_VERTEX_TEXTURE_IMAGE_UNITS
*/
  __pyx_t_2 = __Pyx_PyLong_From_int(GL_MAX_VERTEX_ATTRIBS); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 181, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_GL_MAX_VERTEX_ATTRIBS, __pyx_t_2) < (0)) __PYX_ERR(0, 181, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "kivy/graphics/opengl.pyx":182
 * GL_VERTEX_SHADER = cgldef.GL_VERTEX_SHADER
 * GL_MAX_VERTEX_ATTRIBS = cgldef.GL_MAX_VERTEX_ATTRIBS
 * GL_MAX_COMBINED_TEXTURE_IMAGE_UNITS = cgldef.GL_MAX_COMBINED_TEXTURE_IMAGE_UNITS             # <<<<<<<<<<<<<<
 * GL_MAX_VERTEX_TEXTURE_IMAGE_UNITS = cgldef.GL_MAX_VERTEX_TEXTURE_IMAGE_UNITS
 * GL_MAX_TEXTURE_IMAGE_UNITS = cgldef.GL_MAX_TEXTURE_IMAGE_UNITS
*/
  __pyx_t_2 = __Pyx_PyLong_From_int(GL_MAX_COMBINED_TEXTURE_IMAGE_UNITS); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 182, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_GL_MAX_COMBINED_TEXTURE_IMAGE_UN, __pyx_t_2) < (0)) __PYX_ERR(0, 182, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "kivy/graphics/opengl.pyx":183
 * GL_MAX_VERTEX_ATTRIBS = cgldef.GL_MAX_VERTEX_ATTRIBS
 * GL_MAX_COMBINED_TEXTURE_IMAGE_UNITS = cgldef.GL_MAX_COMBINED_TEXTURE_IMAGE_UNITS
 * GL_MAX_VERTEX_TEXTURE_IMAGE_UNITS = cgldef.GL_MAX_VERTEX_TEXTURE_IMAGE_UNITS             # <<<<<<<<<<<<<<
 * GL_MAX_TEXTURE_IMAGE_UNITS = cgldef.GL_MAX_TEXTURE_IMAGE_UNITS
 * GL_SHADER_TYPE = cgldef.GL_SHADER_TYPE
*/
  __pyx_t_2 = __Pyx_PyLong_From_int(GL_MAX_VERTEX_TEXTURE_IMAGE_UNITS); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 183, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_GL_MAX_VERTEX_TEXTURE_IMAGE_UNIT, __pyx_t_2) < (0)) __PYX_ERR(0, 183, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "kivy/graphics/opengl.pyx":184
 * GL_MAX_COMBINED_TEXTURE_IMAGE_UNITS = cgldef.GL_MAX_COMBINED_TEXTURE_IMAGE_UNITS
 * GL_MAX_VERTEX_TEXTURE_IMAGE_UNITS = cgldef.GL_MAX_VERTEX_TEXTURE_IMAGE_UNITS
 * GL_MAX_TEXTURE_IMAGE_UNITS = cgldef.GL_MAX_TEXTURE_IMAGE_UNITS             # <<<<<<<<<<<<<<
 * GL_SHADER_TYPE = cgldef.GL_SHADER_TYPE
 * GL_DELETE_STATUS = cgldef.GL_DELETE_STATUS
*/
  __pyx_t_2 = __Pyx_PyLong_From_int(GL_MAX_TEXTURE_IMAGE_UNITS); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 184, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_GL_MAX_TEXTURE_IMAGE_UNITS, __pyx_t_2) < (0)) __PYX_ERR(0, 184, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "kivy/graphics/opengl.pyx":185
 * GL_MAX_VERTEX_TEXTURE_IMAGE_UNITS = cgldef.GL_MAX_VERTEX_TEXTURE_IMAGE_UNITS
 * GL_MAX_TEXTURE_IMAGE_UNITS = cgldef.GL_MAX_TEXTURE_IMAGE_UNITS
 * GL_SHADER_TYPE = cgldef.GL_SHADER_TYPE             # <<<<<<<<<<<<<<
 * GL_DELETE_STATUS = cgldef.GL_DELETE_STATUS
 * GL_LINK_STATUS = cgldef.GL_LINK_STATUS
*/
  __pyx_t_2 = __Pyx_PyLong_From_int(GL_SHADER_TYPE); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 185, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_GL_SHADER_TYPE, __pyx_t_2) < (0)) __PYX_ERR(0, 185, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "kivy/graphics/opengl.pyx":186
 * GL_MAX_TEXTURE_IMAGE_UNITS = cgldef.GL_MAX_TEXTURE_IMAGE_UNITS
 * GL_SHADER_TYPE = cgldef.GL_SHADER_TYPE
 * GL_DELETE_STATUS = cgldef.GL_DELETE_STATUS             # <<<<<<<<<<<<<<
 * GL_LINK_STATUS = cgldef.GL_LINK_STATUS
 * GL_VALIDATE_STATUS = cgldef.GL_VALIDATE_STATUS
*/
  __pyx_t_2 = __Pyx_PyLong_From_int(GL_DELETE_STATUS); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 186, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_GL_DELETE_STATUS, __pyx_t_2) < (0)) __PYX_ERR(0, 186, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "kivy/graphics/opengl.pyx":187
 * GL_SHADER_TYPE = cgldef.GL_SHADER_TYPE
 * GL_DELETE_STATUS = cgldef.GL_DELETE_STATUS
 * GL_LINK_STATUS = cgldef.GL_LINK_STATUS             # <<<<<<<<<<<<<<
 * GL_VALIDATE_STATUS = cgldef.GL_VALIDATE_STATUS
 * GL_ATTACHED_SHADERS = cgldef.GL_ATTACHED_SHADERS
*/
  __pyx_t_2 = __Pyx_PyLong_From_int(GL_LINK_STATUS); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 187, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_GL_LINK_STATUS, __pyx_t_2) < (0)) __PYX_ERR(0, 187, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "kivy/graphics/opengl.pyx":188
 * GL_DELETE_STATUS = cgldef.GL_DELETE_STATUS
 * GL_LINK_STATUS = cgldef.GL_LINK_STATUS
 * GL_VALIDATE_STATUS = cgldef.GL_VALIDATE_STATUS             # <<<<<<<<<<<<<<
 * GL_ATTACHED_SHADERS = cgldef.GL_ATTACHED_SHADERS
 * GL_ACTIVE_UNIFORMS = cgldef.GL_ACTIVE_UNIFORMS
*/
  __pyx_t_2 = __Pyx_PyLong_From_int(GL_VALIDATE_STATUS); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 188, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_GL_VALIDATE_STATUS, __pyx_t_2) < (0)) __PYX_ERR(0, 188, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "kivy/graphics/opengl.pyx":189
 * GL_LINK_STATUS = cgldef.GL_LINK_STATUS
 * GL_VALIDATE_STATUS = cgldef.GL_VALIDATE_STATUS
 * GL_ATTACHED_SHADERS = cgldef.GL_ATTACHED_SHADERS             # <<<<<<<<<<<<<<
 * GL_ACTIVE_UNIFORMS = cgldef.GL_ACTIVE_UNIFORMS
 * GL_ACTIVE_UNIFORM_MAX_LENGTH = cgldef.GL_ACTIVE_UNIFORM_MAX_LENGTH
*/
  __pyx_t_2 = __Pyx_PyLong_From_int(GL_ATTACHED_SHADERS); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 189, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_GL_ATTACHED_SHADERS, __pyx_t_2) < (0)) __PYX_ERR(0, 189, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "kivy/graphics/opengl.pyx":190
 * GL_VALIDATE_STATUS = cgldef.GL_VALIDATE_STATUS
 * GL_ATTACHED_SHADERS = cgldef.GL_ATTACHED_SHADERS
 * GL_ACTIVE_UNIFORMS = cgldef.GL_ACTIVE_UNIFORMS             # <<<<<<<<<<<<<<
 * GL_ACTIVE_UNIFORM_MAX_LENGTH = cgldef.GL_ACTIVE_UNIFORM_MAX_LENGTH
 * GL_ACTIVE_ATTRIBUTES = cgldef.GL_ACTIVE_ATTRIBUTES
*/
  __pyx_t_2 = __Pyx_PyLong_From_int(GL_ACTIVE_UNIFORMS); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 190, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_GL_ACTIVE_UNIFORMS, __pyx_t_2) < (0)) __PYX_ERR(0, 190, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "kivy/graphics/opengl.pyx":191
 * GL_ATTACHED_SHADERS = cgldef.GL_ATTACHED_SHADERS
 * GL_ACTIVE_UNIFORMS = cgldef.GL_ACTIVE_UNIFORMS
 * GL_ACTIVE_UNIFORM_MAX_LENGTH = cgldef.GL_ACTIVE_UNIFORM_MAX_LENGTH             # <<<<<<<<<<<<<<
 * GL_ACTIVE_ATTRIBUTES = cgldef.GL_ACTIVE_ATTRIBUTES
 * GL_ACTIVE_ATTRIBUTE_MAX_LENGTH = cgldef.GL_ACTIVE_ATTRIBUTE_MAX_LENGTH
*/
  __pyx_t_2 = __Pyx_PyLong_From_int(GL_ACTIVE_UNIFORM_MAX_LENGTH); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 191, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_GL_ACTIVE_UNIFORM_MAX_LENGTH, __pyx_t_2) < (0)) __PYX_ERR(0, 191, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "kivy/graphics/opengl.pyx":192
 * GL_ACTIVE_UNIFORMS = cgldef.GL_ACTIVE_UNIFORMS
 * GL_ACTIVE_UNIFORM_MAX_LENGTH = cgldef.GL_ACTIVE_UNIFORM_MAX_LENGTH
 * GL_ACTIVE_ATTRIBUTES = cgldef.GL_ACTIVE_ATTRIBUTES             # <<<<<<<<<<<<<<
 * GL_ACTIVE_ATTRIBUTE_MAX_LENGTH = cgldef.GL_ACTIVE_ATTRIBUTE_MAX_LENGTH
 * GL_SHADING_LANGUAGE_VERSION = cgldef.GL_SHADING_LANGUAGE_VERSION
*/
  __pyx_t_2 = __Pyx_PyLong_From_int(GL_ACTIVE_ATTRIBUTES); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 192, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_GL_ACTIVE_ATTRIBUTES, __pyx_t_2) < (0)) __PYX_ERR(0, 192, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "kivy/graphics/opengl.pyx":193
 * GL_ACTIVE_UNIFORM_MAX_LENGTH = cgldef.GL_ACTIVE_UNIFORM_MAX_LENGTH
 * GL_ACTIVE_ATTRIBUTES = cgldef.GL_ACTIVE_ATTRIBUTES
 * GL_ACTIVE_ATTRIBUTE_MAX_LENGTH = cgldef.GL_ACTIVE_ATTRIBUTE_MAX_LENGTH             # <<<<<<<<<<<<<<
 * GL_SHADING_LANGUAGE_VERSION = cgldef.GL_SHADING_LANGUAGE_VERSION
 * GL_CURRENT_PROGRAM = cgldef.GL_CURRENT_PROGRAM
*/
  __pyx_t_2 = __Pyx_PyLong_From_int(GL_ACTIVE_ATTRIBUTE_MAX_LENGTH); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 193, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_GL_ACTIVE_ATTRIBUTE_MAX_LENGTH, __pyx_t_2) < (0)) __PYX_ERR(0, 193, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "kivy/graphics/opengl.pyx":194
 * GL_ACTIVE_ATTRIBUTES = cgldef.GL_ACTIVE_ATTRIBUTES
 * GL_ACTIVE_ATTRIBUTE_MAX_LENGTH = cgldef.GL_ACTIVE_ATTRIBUTE_MAX_LENGTH
 * GL_SHADING_LANGUAGE_VERSION = cgldef.GL_SHADING_LANGUAGE_VERSION             # <<<<<<<<<<<<<<
 * GL_CURRENT_PROGRAM = cgldef.GL_CURRENT_PROGRAM
 * GL_NEVER = cgldef.GL_NEVER
*/
  __pyx_t_2 = __Pyx_PyLong_From_int(GL_SHADING_LANGUAGE_VERSION); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 194, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_GL_SHADING_LANGUAGE_VERSION, __pyx_t_2) < (0)) __PYX_ERR(0, 194, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "kivy/graphics/opengl.pyx":195
 * GL_ACTIVE_ATTRIBUTE_MAX_LENGTH = cgldef.GL_ACTIVE_ATTRIBUTE_MAX_LENGTH
 * GL_SHADING_LANGUAGE_VERSION = cgldef.GL_SHADING_LANGUAGE_VERSION
 * GL_CURRENT_PROGRAM = cgldef.GL_CURRENT_PROGRAM             # <<<<<<<<<<<<<<
 * GL_NEVER = cgldef.GL_NEVER
 * GL_LESS = cgldef.GL_LESS
*/
  __pyx_t_2 = __Pyx_PyLong_From_int(GL_CURRENT_PROGRAM); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 195, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_GL_CURRENT_PROGRAM, __pyx_t_2) < (0)) __PYX_ERR(0, 195, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "kivy/graphics/opengl.pyx":196
 * GL_SHADING_LANGUAGE_VERSION = cgldef.GL_SHADING_LANGUAGE_VERSION
 * GL_CURRENT_PROGRAM = cgldef.GL_CURRENT_PROGRAM
 * GL_NEVER = cgldef.GL_NEVER             # <<<<<<<<<<<<<<
 * GL_LESS = cgldef.GL_LESS
 * GL_EQUAL = cgldef.GL_EQUAL
*/
  __pyx_t_2 = __Pyx_PyLong_From_int(GL_NEVER); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 196, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_GL_NEVER, __pyx_t_2) < (0)) __PYX_ERR(0, 196, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "kivy/graphics/opengl.pyx":197
 * GL_CURRENT_PROGRAM = cgldef.GL_CURRENT_PROGRAM
 * GL_NEVER = cgldef.GL_NEVER
 * GL_LESS = cgldef.GL_LESS             # <<<<<<<<<<<<<<
 * GL_EQUAL = cgldef.GL_EQUAL
 * GL_LEQUAL = cgldef.GL_LEQUAL
*/
  __pyx_t_2 = __Pyx_PyLong_From_int(GL_LESS); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 197, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_GL_LESS, __pyx_t_2) < (0)) __PYX_ERR(0, 197, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "kivy/graphics/opengl.pyx":198
 * GL_NEVER = cgldef.GL_NEVER
 * GL_LESS = cgldef.GL_LESS
 * GL_EQUAL = cgldef.GL_EQUAL             # <<<<<<<<<<<<<<
 * GL_LEQUAL = cgldef.GL_LEQUAL
 * GL_GREATER = cgldef.GL_GREATER
*/
  __pyx_t_2 = __Pyx_PyLong_From_int(GL_EQUAL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 198, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_GL_EQUAL, __pyx_t_2) < (0)) __PYX_ERR(0, 198, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "kivy/graphics/opengl.pyx":199
 * GL_LESS = cgldef.GL_LESS
 * GL_EQUAL = cgldef.GL_EQUAL
 * GL_LEQUAL = cgldef.GL_LEQUAL             # <<<<<<<<<<<<<<
 * GL_GREATER = cgldef.GL_GREATER
 * GL_NOTEQUAL = cgldef.GL_NOTEQUAL
*/
  __pyx_t_2 = __Pyx_PyLong_From_int(GL_LEQUAL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 199, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_GL_LEQUAL, __pyx_t_2) < (0)) __PYX_ERR(0, 199, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "kivy/graphics/opengl.pyx":200
 * GL_EQUAL = cgldef.GL_EQUAL
 * GL_LEQUAL = cgldef.GL_LEQUAL
 * GL_GREATER = cgldef.GL_GREATER             # <<<<<<<<<<<<<<
 * GL_NOTEQUAL = cgldef.GL_NOTEQUAL
 * GL_GEQUAL = cgldef.GL_GEQUAL
*/
  __pyx_t_2 = __Pyx_PyLong_From_int(GL_GREATER); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 200, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_GL_GREATER, __pyx_t_2) < (0)) __PYX_ERR(0, 200, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "kivy/graphics/opengl.pyx":201
 * GL_LEQUAL = cgldef.GL_LEQUAL
 * GL_GREATER = cgldef.GL_GREATER
 * GL_NOTEQUAL = cgldef.GL_NOTEQUAL             # <<<<<<<<<<<<<<
 * GL_GEQUAL = cgldef.GL_GEQUAL
 * GL_ALWAYS = cgldef.GL_ALWAYS
*/
  __pyx_t_2 = __Pyx_PyLong_From_int(GL_NOTEQUAL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 201, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_GL_NOTEQUAL, __pyx_t_2) < (0)) __PYX_ERR(0, 201, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "kivy/graphics/opengl.pyx":202
 * GL_GREATER = cgldef.GL_GREATER
 * GL_NOTEQUAL = cgldef.GL_NOTEQUAL
 * GL_GEQUAL = cgldef.GL_GEQUAL             # <<<<<<<<<<<<<<
 * GL_ALWAYS = cgldef.GL_ALWAYS
 * GL_KEEP = cgldef.GL_KEEP
*/
  __pyx_t_2 = __Pyx_PyLong_From_int(GL_GEQUAL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 202, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_GL_GEQUAL, __pyx_t_2) < (0)) __PYX_ERR(0, 202, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "kivy/graphics/opengl.pyx":203
 * GL_NOTEQUAL = cgldef.GL_NOTEQUAL
 * GL_GEQUAL = cgldef.GL_GEQUAL
 * GL_ALWAYS = cgldef.GL_ALWAYS             # <<<<<<<<<<<<<<
 * GL_KEEP = cgldef.GL_KEEP
 * GL_REPLACE = cgldef.GL_REPLACE
*/
  __pyx_t_2 = __Pyx_PyLong_From_int(GL_ALWAYS); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 203, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_GL_ALWAYS, __pyx_t_2) < (0)) __PYX_ERR(0, 203, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "kivy/graphics/opengl.pyx":204
 * GL_GEQUAL = cgldef.GL_GEQUAL
 * GL_ALWAYS = cgldef.GL_ALWAYS
 * GL_KEEP = cgldef.GL_KEEP             # <<<<<<<<<<<<<<
 * GL_REPLACE = cgldef.GL_REPLACE
 * GL_INCR = cgldef.GL_INCR
*/
  __pyx_t_2 = __Pyx_PyLong_From_int(GL_KEEP); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 204, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_GL_KEEP, __pyx_t_2) < (0)) __PYX_ERR(0, 204, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "kivy/graphics/opengl.pyx":205
 * GL_ALWAYS = cgldef.GL_ALWAYS
 * GL_KEEP = cgldef.GL_KEEP
 * GL_REPLACE = cgldef.GL_REPLACE             # <<<<<<<<<<<<<<
 * GL_INCR = cgldef.GL_INCR
 * GL_DECR = cgldef.GL_DECR
*/
  __pyx_t_2 = __Pyx_PyLong_From_int(GL_REPLACE); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 205, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_GL_REPLACE, __pyx_t_2) < (0)) __PYX_ERR(0, 205, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "kivy/graphics/opengl.pyx":206
 * GL_KEEP = cgldef.GL_KEEP
 * GL_REPLACE = cgldef.GL_REPLACE
 * GL_INCR = cgldef.GL_INCR             # <<<<<<<<<<<<<<
 * GL_DECR = cgldef.GL_DECR
 * GL_INVERT = cgldef.GL_INVERT
*/
  __pyx_t_2 = __Pyx_PyLong_From_int(GL_INCR); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 206, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_GL_INCR, __pyx_t_2) < (0)) __PYX_ERR(0, 206, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "kivy/graphics/opengl.pyx":207
 * GL_REPLACE = cgldef.GL_REPLACE
 * GL_INCR = cgldef.GL_INCR
 * GL_DECR = cgldef.GL_DECR             # <<<<<<<<<<<<<<
 * GL_INVERT = cgldef.GL_INVERT
 * GL_INCR_WRAP = cgldef.GL_INCR_WRAP
*/
  __pyx_t_2 = __Pyx_PyLong_From_int(GL_DECR); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 207, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_GL_DECR, __pyx_t_2) < (0)) __PYX_ERR(0, 207, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "kivy/graphics/opengl.pyx":208
 * GL_INCR = cgldef.GL_INCR
 * GL_DECR = cgldef.GL_DECR
 * GL_INVERT = cgldef.GL_INVERT             # <<<<<<<<<<<<<<
 * GL_INCR_WRAP = cgldef.GL_INCR_WRAP
 * GL_DECR_WRAP = cgldef.GL_DECR_WRAP
*/
  __pyx_t_2 = __Pyx_PyLong_From_int(GL_INVERT); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 208, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_GL_INVERT, __pyx_t_2) < (0)) __PYX_ERR(0, 208, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "kivy/graphics/opengl.pyx":209
 * GL_DECR = cgldef.GL_DECR
 * GL_INVERT = cgldef.GL_INVERT
 * GL_INCR_WRAP = cgldef.GL_INCR_WRAP             # <<<<<<<<<<<<<<
 * GL_DECR_WRAP = cgldef.GL_DECR_WRAP
 * GL_VENDOR = cgldef.GL_VENDOR
*/
  __pyx_t_2 = __Pyx_PyLong_From_int(GL_INCR_WRAP); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 209, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_GL_INCR_WRAP, __pyx_t_2) < (0)) __PYX_ERR(0, 209, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "kivy/graphics/opengl.pyx":210
 * GL_INVERT = cgldef.GL_INVERT
 * GL_INCR_WRAP = cgldef.GL_INCR_WRAP
 * GL_DECR_WRAP = cgldef.GL_DECR_WRAP             # <<<<<<<<<<<<<<
 * GL_VENDOR = cgldef.GL_VENDOR
 * GL_RENDERER = cgldef.GL_RENDERER
*/
  __pyx_t_2 = __Pyx_PyLong_From_int(GL_DECR_WRAP); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 210, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_GL_DECR_WRAP, __pyx_t_2) < (0)) __PYX_ERR(0, 210, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "kivy/graphics/opengl.pyx":211
 * GL_INCR_WRAP = cgldef.GL_INCR_WRAP
 * GL_DECR_WRAP = cgldef.GL_DECR_WRAP
 * GL_VENDOR = cgldef.GL_VENDOR             # <<<<<<<<<<<<<<
 * GL_RENDERER = cgldef.GL_RENDERER
 * GL_VERSION = cgldef.GL_VERSION
*/
  __pyx_t_2 = __Pyx_PyLong_From_int(GL_VENDOR); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 211, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_GL_VENDOR, __pyx_t_2) < (0)) __PYX_ERR(0, 211, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "kivy/graphics/opengl.pyx":212
 * GL_DECR_WRAP = cgldef.GL_DECR_WRAP
 * GL_VENDOR = cgldef.GL_VENDOR
 * GL_RENDERER = cgldef.GL_RENDERER             # <<<<<<<<<<<<<<
 * GL_VERSION = cgldef.GL_VERSION
 * GL_EXTENSIONS = cgldef.GL_EXTENSIONS
*/
  __pyx_t_2 = __Pyx_PyLong_From_int(GL_RENDERER); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 212, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_GL_RENDERER, __pyx_t_2) < (0)) __PYX_ERR(0, 212, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "kivy/graphics/opengl.pyx":213
 * GL_VENDOR = cgldef.GL_VENDOR
 * GL_RENDERER = cgldef.GL_RENDERER
 * GL_VERSION = cgldef.GL_VERSION             # <<<<<<<<<<<<<<
 * GL_EXTENSIONS = cgldef.GL_EXTENSIONS
 * GL_NEAREST = cgldef.GL_NEAREST
*/
  __pyx_t_2 = __Pyx_PyLong_From_int(GL_VERSION); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 213, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_GL_VERSION, __pyx_t_2) < (0)) __PYX_ERR(0, 213, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "kivy/graphics/opengl.pyx":214
 * GL_RENDERER = cgldef.GL_RENDERER
 * GL_VERSION = cgldef.GL_VERSION
 * GL_EXTENSIONS = cgldef.GL_EXTENSIONS             # <<<<<<<<<<<<<<
 * GL_NEAREST = cgldef.GL_NEAREST
 * GL_LINEAR = cgldef.GL_LINEAR
*/
  __pyx_t_2 = __Pyx_PyLong_From_int(GL_EXTENSIONS); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 214, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_GL_EXTENSIONS, __pyx_t_2) < (0)) __PYX_ERR(0, 214, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "kivy/graphics/opengl.pyx":215
 * GL_VERSION = cgldef.GL_VERSION
 * GL_EXTENSIONS = cgldef.GL_EXTENSIONS
 * GL_NEAREST = cgldef.GL_NEAREST             # <<<<<<<<<<<<<<
 * GL_LINEAR = cgldef.GL_LINEAR
 * GL_NEAREST_MIPMAP_NEAREST = cgldef.GL_NEAREST_MIPMAP_NEAREST
*/
  __pyx_t_2 = __Pyx_PyLong_From_int(GL_NEAREST); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 215, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_GL_NEAREST, __pyx_t_2) < (0)) __PYX_ERR(0, 215, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "kivy/graphics/opengl.pyx":216
 * GL_EXTENSIONS = cgldef.GL_EXTENSIONS
 * GL_NEAREST = cgldef.GL_NEAREST
 * GL_LINEAR = cgldef.GL_LINEAR             # <<<<<<<<<<<<<<
 * GL_NEAREST_MIPMAP_NEAREST = cgldef.GL_NEAREST_MIPMAP_NEAREST
 * GL_LINEAR_MIPMAP_NEAREST = cgldef.GL_LINEAR_MIPMAP_NEAREST
*/
  __pyx_t_2 = __Pyx_PyLong_From_int(GL_LINEAR); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 216, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_GL_LINEAR, __pyx_t_2) < (0)) __PYX_ERR(0, 216, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "kivy/graphics/opengl.pyx":217
 * GL_NEAREST = cgldef.GL_NEAREST
 * GL_LINEAR = cgldef.GL_LINEAR
 * GL_NEAREST_MIPMAP_NEAREST = cgldef.GL_NEAREST_MIPMAP_NEAREST             # <<<<<<<<<<<<<<
 * GL_LINEAR_MIPMAP_NEAREST = cgldef.GL_LINEAR_MIPMAP_NEAREST
 * GL_NEAREST_MIPMAP_LINEAR = cgldef.GL_NEAREST_MIPMAP_LINEAR
*/
  __pyx_t_2 = __Pyx_PyLong_From_int(GL_NEAREST_MIPMAP_NEAREST); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 217, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_GL_NEAREST_MIPMAP_NEAREST, __pyx_t_2) < (0)) __PYX_ERR(0, 217, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "kivy/graphics/opengl.pyx":218
 * GL_LINEAR = cgldef.GL_LINEAR
 * GL_NEAREST_MIPMAP_NEAREST = cgldef.GL_NEAREST_MIPMAP_NEAREST
 * GL_LINEAR_MIPMAP_NEAREST = cgldef.GL_LINEAR_MIPMAP_NEAREST             # <<<<<<<<<<<<<<
 * GL_NEAREST_MIPMAP_LINEAR = cgldef.GL_NEAREST_MIPMAP_LINEAR
 * GL_LINEAR_MIPMAP_LINEAR = cgldef.GL_LINEAR_MIPMAP_LINEAR
*/
  __pyx_t_2 = __Pyx_PyLong_From_int(GL_LINEAR_MIPMAP_NEAREST); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 218, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_GL_LINEAR_MIPMAP_NEAREST, __pyx_t_2) < (0)) __PYX_ERR(0, 218, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "kivy/graphics/opengl.pyx":219
 * GL_NEAREST_MIPMAP_NEAREST = cgldef.GL_NEAREST_MIPMAP_NEAREST
 * GL_LINEAR_MIPMAP_NEAREST = cgldef.GL_LINEAR_MIPMAP_NEAREST
 * GL_NEAREST_MIPMAP_LINEAR = cgldef.GL_NEAREST_MIPMAP_LINEAR             # <<<<<<<<<<<<<<
 * GL_LINEAR_MIPMAP_LINEAR = cgldef.GL_LINEAR_MIPMAP_LINEAR
 * GL_TEXTURE_MAG_FILTER = cgldef.GL_TEXTURE_MAG_FILTER
*/
  __pyx_t_2 = __Pyx_PyLong_From_int(GL_NEAREST_MIPMAP_LINEAR); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 219, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_GL_NEAREST_MIPMAP_LINEAR, __pyx_t_2) < (0)) __PYX_ERR(0, 219, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "kivy/graphics/opengl.pyx":220
 * GL_LINEAR_MIPMAP_NEAREST = cgldef.GL_LINEAR_MIPMAP_NEAREST
 * GL_NEAREST_MIPMAP_LINEAR = cgldef.GL_NEAREST_MIPMAP_LINEAR
 * GL_LINEAR_MIPMAP_LINEAR = cgldef.GL_LINEAR_MIPMAP_LINEAR             # <<<<<<<<<<<<<<
 * GL_TEXTURE_MAG_FILTER = cgldef.GL_TEXTURE_MAG_FILTER
 * GL_TEXTURE_MIN_FILTER = cgldef.GL_TEXTURE_MIN_FILTER
*/
  __pyx_t_2 = __Pyx_PyLong_From_int(GL_LINEAR_MIPMAP_LINEAR); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 220, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_GL_LINEAR_MIPMAP_LINEAR, __pyx_t_2) < (0)) __PYX_ERR(0, 220, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "kivy/graphics/opengl.pyx":221
 * GL_NEAREST_MIPMAP_LINEAR = cgldef.GL_NEAREST_MIPMAP_LINEAR
 * GL_LINEAR_MIPMAP_LINEAR = cgldef.GL_LINEAR_MIPMAP_LINEAR
 * GL_TEXTURE_MAG_FILTER = cgldef.GL_TEXTURE_MAG_FILTER             # <<<<<<<<<<<<<<
 * GL_TEXTURE_MIN_FILTER = cgldef.GL_TEXTURE_MIN_FILTER
 * GL_TEXTURE_WRAP_S = cgldef.GL_TEXTURE_WRAP_S
*/
  __pyx_t_2 = __Pyx_PyLong_From_int(GL_TEXTURE_MAG_FILTER); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 221, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_GL_TEXTURE_MAG_FILTER, __pyx_t_2) < (0)) __PYX_ERR(0, 221, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "kivy/graphics/opengl.pyx":222
 * GL_LINEAR_MIPMAP_LINEAR = cgldef.GL_LINEAR_MIPMAP_LINEAR
 * GL_TEXTURE_MAG_FILTER = cgldef.GL_TEXTURE_MAG_FILTER
 * GL_TEXTURE_MIN_FILTER = cgldef.GL_TEXTURE_MIN_FILTER             # <<<<<<<<<<<<<<
 * GL_TEXTURE_WRAP_S = cgldef.GL_TEXTURE_WRAP_S
 * GL_TEXTURE_WRAP_T = cgldef.GL_TEXTURE_WRAP_T
*/
  __pyx_t_2 = __Pyx_PyLong_From_int(GL_TEXTURE_MIN_FILTER); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 222, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_GL_TEXTURE_MIN_FILTER, __pyx_t_2) < (0)) __PYX_ERR(0, 222, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "kivy/graphics/opengl.pyx":223
 * GL_TEXTURE_MAG_FILTER = cgldef.GL_TEXTURE_MAG_FILTER
 * GL_TEXTURE_MIN_FILTER = cgldef.GL_TEXTURE_MIN_FILTER
 * GL_TEXTURE_WRAP_S = cgldef.GL_TEXTURE_WRAP_S             # <<<<<<<<<<<<<<
 * GL_TEXTURE_WRAP_T = cgldef.GL_TEXTURE_WRAP_T
 * GL_TEXTURE = cgldef.GL_TEXTURE
*/
  __pyx_t_2 = __Pyx_PyLong_From_int(GL_TEXTURE_WRAP_S); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 223, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_GL_TEXTURE_WRAP_S, __pyx_t_2) < (0)) __PYX_ERR(0, 223, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "kivy/graphics/opengl.pyx":224
 * GL_TEXTURE_MIN_FILTER = cgldef.GL_TEXTURE_MIN_FILTER
 * GL_TEXTURE_WRAP_S = cgldef.GL_TEXTURE_WRAP_S
 * GL_TEXTURE_WRAP_T = cgldef.GL_TEXTURE_WRAP_T             # <<<<<<<<<<<<<<
 * GL_TEXTURE = cgldef.GL_TEXTURE
 * GL_TEXTURE_CUBE_MAP = cgldef.GL_TEXTURE_CUBE_MAP
*/
  __pyx_t_2 = __Pyx_PyLong_From_int(GL_TEXTURE_WRAP_T); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 224, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_GL_TEXTURE_WRAP_T, __pyx_t_2) < (0)) __PYX_ERR(0, 224, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "kivy/graphics/opengl.pyx":225
 * GL_TEXTURE_WRAP_S = cgldef.GL_TEXTURE_WRAP_S
 * GL_TEXTURE_WRAP_T = cgldef.GL_TEXTURE_WRAP_T
 * GL_TEXTURE = cgldef.GL_TEXTURE             # <<<<<<<<<<<<<<
 * GL_TEXTURE_CUBE_MAP = cgldef.GL_TEXTURE_CUBE_MAP
 * GL_TEXTURE_BINDING_CUBE_MAP = cgldef.GL_TEXTURE_BINDING_CUBE_MAP
*/
  __pyx_t_2 = __Pyx_PyLong_From_int(GL_TEXTURE); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 225, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_GL_TEXTURE, __pyx_t_2) < (0)) __PYX_ERR(0, 225, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "kivy/graphics/opengl.pyx":226
 * GL_TEXTURE_WRAP_T = cgldef.GL_TEXTURE_WRAP_T
 * GL_TEXTURE = cgldef.GL_TEXTURE
 * GL_TEXTURE_CUBE_MAP = cgldef.GL_TEXTURE_CUBE_MAP             # <<<<<<<<<<<<<<
 * GL_TEXTURE_BINDING_CUBE_MAP = cgldef.GL_TEXTURE_BINDING_CUBE_MAP
 * GL_TEXTURE_CUBE_MAP_POSITIVE_X = cgldef.GL_TEXTURE_CUBE_MAP_POSITIVE_X
*/
  __pyx_t_2 = __Pyx_PyLong_From_int(GL_TEXTURE_CUBE_MAP); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 226, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_GL_TEXTURE_CUBE_MAP, __pyx_t_2) < (0)) __PYX_ERR(0, 226, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "kivy/graphics/opengl.pyx":227
 * GL_TEXTURE = cgldef.GL_TEXTURE
 * GL_TEXTURE_CUBE_MAP = cgldef.GL_TEXTURE_CUBE_MAP
 * GL_TEXTURE_BINDING_CUBE_MAP = cgldef.GL_TEXTURE_BINDING_CUBE_MAP             # <<<<<<<<<<<<<<
 * GL_TEXTURE_CUBE_MAP_POSITIVE_X = cgldef.GL_TEXTURE_CUBE_MAP_POSITIVE_X
 * GL_TEXTURE_CUBE_MAP_NEGATIVE_X = cgldef.GL_TEXTURE_CUBE_MAP_NEGATIVE_X
*/
  __pyx_t_2 = __Pyx_PyLong_From_int(GL_TEXTURE_BINDING_CUBE_MAP); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 227, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_GL_TEXTURE_BINDING_CUBE_MAP, __pyx_t_2) < (0)) __PYX_ERR(0, 227, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "kivy/graphics/opengl.pyx":228
 * GL_TEXTURE_CUBE_MAP = cgldef.GL_TEXTURE_CUBE_MAP
 * GL_TEXTURE_BINDING_CUBE_MAP = cgldef.GL_TEXTURE_BINDING_CUBE_MAP
 * GL_TEXTURE_CUBE_MAP_POSITIVE_X = cgldef.GL_TEXTURE_CUBE_MAP_POSITIVE_X             # <<<<<<<<<<<<<<
 * GL_TEXTURE_CUBE_MAP_NEGATIVE_X = cgldef.GL_TEXTURE_CUBE_MAP_NEGATIVE_X
 * GL_TEXTURE_CUBE_MAP_POSITIVE_Y = cgldef.GL_TEXTURE_CUBE_MAP_POSITIVE_Y
*/
  __pyx_t_2 = __Pyx_PyLong_From_int(GL_TEXTURE_CUBE_MAP_POSITIVE_X); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 228, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_GL_TEXTURE_CUBE_MAP_POSITIVE_X, __pyx_t_2) < (0)) __PYX_ERR(0, 228, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "kivy/graphics/opengl.pyx":229
 * GL_TEXTURE_BINDING_CUBE_MAP = cgldef.GL_TEXTURE_BINDING_CUBE_MAP
 * GL_TEXTURE_CUBE_MAP_POSITIVE_X = cgldef.GL_TEXTURE_CUBE_MAP_POSITIVE_X
 * GL_TEXTURE_CUBE_MAP_NEGATIVE_X = cgldef.GL_TEXTURE_CUBE_MAP_NEGATIVE_X             # <<<<<<<<<<<<<<
 * GL_TEXTURE_CUBE_MAP_POSITIVE_Y = cgldef.GL_TEXTURE_CUBE_MAP_POSITIVE_Y
 * GL_TEXTURE_CUBE_MAP_NEGATIVE_Y = cgldef.GL_TEXTURE_CUBE_MAP_NEGATIVE_Y
*/
  __pyx_t_2 = __Pyx_PyLong_From_int(GL_TEXTURE_CUBE_MAP_NEGATIVE_X); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 229, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_GL_TEXTURE_CUBE_MAP_NEGATIVE_X, __pyx_t_2) < (0)) __PYX_ERR(0, 229, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "kivy/graphics/opengl.pyx":230
 * GL_TEXTURE_CUBE_MAP_POSITIVE_X = cgldef.GL_TEXTURE_CUBE_MAP_POSITIVE_X
 * GL_TEXTURE_CUBE_MAP_NEGATIVE_X = cgldef.GL_TEXTURE_CUBE_MAP_NEGATIVE_X
 * GL_TEXTURE_CUBE_MAP_POSITIVE_Y = cgldef.GL_TEXTURE_CUBE_MAP_POSITIVE_Y             # <<<<<<<<<<<<<<
 * GL_TEXTURE_CUBE_MAP_NEGATIVE_Y = cgldef.GL_TEXTURE_CUBE_MAP_NEGATIVE_Y
 * GL_TEXTURE_CUBE_MAP_POSITIVE_Z = cgldef.GL_TEXTURE_CUBE_MAP_POSITIVE_Z
*/
  __pyx_t_2 = __Pyx_PyLong_From_int(GL_TEXTURE_CUBE_MAP_POSITIVE_Y); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 230, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_GL_TEXTURE_CUBE_MAP_POSITIVE_Y, __pyx_t_2) < (0)) __PYX_ERR(0, 230, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "kivy/graphics/opengl.pyx":231
 * GL_TEXTURE_CUBE_MAP_NEGATIVE_X = cgldef.GL_TEXTURE_CUBE_MAP_NEGATIVE_X
 * GL_TEXTURE_CUBE_MAP_POSITIVE_Y = cgldef.GL_TEXTURE_CUBE_MAP_POSITIVE_Y
 * GL_TEXTURE_CUBE_MAP_NEGATIVE_Y = cgldef.GL_TEXTURE_CUBE_MAP_NEGATIVE_Y             # <<<<<<<<<<<<<<
 * GL_TEXTURE_CUBE_MAP_POSITIVE_Z = cgldef.GL_TEXTURE_CUBE_MAP_POSITIVE_Z
 * GL_TEXTURE_CUBE_MAP_NEGATIVE_Z = cgldef.GL_TEXTURE_CUBE_MAP_NEGATIVE_Z
*/
  __pyx_t_2 = __Pyx_PyLong_From_int(GL_TEXTURE_CUBE_MAP_NEGATIVE_Y); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 231, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_GL_TEXTURE_CUBE_MAP_NEGATIVE_Y, __pyx_t_2) < (0)) __PYX_ERR(0, 231, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "kivy/graphics/opengl.pyx":232
 * GL_TEXTURE_CUBE_MAP_POSITIVE_Y = cgldef.GL_TEXTURE_CUBE_MAP_POSITIVE_Y
 * GL_TEXTURE_CUBE_MAP_NEGATIVE_Y = cgldef.GL_TEXTURE_CUBE_MAP_NEGATIVE_Y
 * GL_TEXTURE_CUBE_MAP_POSITIVE_Z = cgldef.GL_TEXTURE_CUBE_MAP_POSITIVE_Z             # <<<<<<<<<<<<<<
 * GL_TEXTURE_CUBE_MAP_NEGATIVE_Z = cgldef.GL_TEXTURE_CUBE_MAP_NEGATIVE_Z
 * GL_MAX_CUBE_MAP_TEXTURE_SIZE = cgldef.GL_MAX_CUBE_MAP_TEXTURE_SIZE
*/
  __pyx_t_2 = __Pyx_PyLong_From_int(GL_TEXTURE_CUBE_MAP_POSITIVE_Z); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 232, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_GL_TEXTURE_CUBE_MAP_POSITIVE_Z, __pyx_t_2) < (0)) __PYX_ERR(0, 232, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "kivy/graphics/opengl.pyx":233
 * GL_TEXTURE_CUBE_MAP_NEGATIVE_Y = cgldef.GL_TEXTURE_CUBE_MAP_NEGATIVE_Y
 * GL_TEXTURE_CUBE_MAP_POSITIVE_Z = cgldef.GL_TEXTURE_CUBE_MAP_POSITIVE_Z
 * GL_TEXTURE_CUBE_MAP_NEGATIVE_Z = cgldef.GL_TEXTURE_CUBE_MAP_NEGATIVE_Z             # <<<<<<<<<<<<<<
 * GL_MAX_CUBE_MAP_TEXTURE_SIZE = cgldef.GL_MAX_CUBE_MAP_TEXTURE_SIZE
 * GL_TEXTURE0 = cgldef.GL_TEXTURE0
*/
  __pyx_t_2 = __Pyx_PyLong_From_int(GL_TEXTURE_CUBE_MAP_NEGATIVE_Z); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 233, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_GL_TEXTURE_CUBE_MAP_NEGATIVE_Z, __pyx_t_2) < (0)) __PYX_ERR(0, 233, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "kivy/graphics/opengl.pyx":234
 * GL_TEXTURE_CUBE_MAP_POSITIVE_Z = cgldef.GL_TEXTURE_CUBE_MAP_POSITIVE_Z
 * GL_TEXTURE_CUBE_MAP_NEGATIVE_Z = cgldef.GL_TEXTURE_CUBE_MAP_NEGATIVE_Z
 * GL_MAX_CUBE_MAP_TEXTURE_SIZE = cgldef.GL_MAX_CUBE_MAP_TEXTURE_SIZE             # <<<<<<<<<<<<<<
 * GL_TEXTURE0 = cgldef.GL_TEXTURE0
 * GL_TEXTURE1 = cgldef.GL_TEXTURE1
*/
  __pyx_t_2 = __Pyx_PyLong_From_int(GL_MAX_CUBE_MAP_TEXTURE_SIZE); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 234, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_GL_MAX_CUBE_MAP_TEXTURE_SIZE, __pyx_t_2) < (0)) __PYX_ERR(0, 234, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "kivy/graphics/opengl.pyx":235
 * GL_TEXTURE_CUBE_MAP_NEGATIVE_Z = cgldef.GL_TEXTURE_CUBE_MAP_NEGATIVE_Z
 * GL_MAX_CUBE_MAP_TEXTURE_SIZE = cgldef.GL_MAX_CUBE_MAP_TEXTURE_SIZE
 * GL_TEXTURE0 = cgldef.GL_TEXTURE0             # <<<<<<<<<<<<<<
 * GL_TEXTURE1 = cgldef.GL_TEXTURE1
 * GL_TEXTURE2 = cgldef.GL_TEXTURE2
*/
  __pyx_t_2 = __Pyx_PyLong_From_int(GL_TEXTURE0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 235, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_GL_TEXTURE0, __pyx_t_2) < (0)) __PYX_ERR(0, 235, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "kivy/graphics/opengl.pyx":236
 * GL_MAX_CUBE_MAP_TEXTURE_SIZE = cgldef.GL_MAX_CUBE_MAP_TEXTURE_SIZE
 * GL_TEXTURE0 = cgldef.GL_TEXTURE0
 * GL_TEXTURE1 = cgldef.GL_TEXTURE1             # <<<<<<<<<<<<<<
 * GL_TEXTURE2 = cgldef.GL_TEXTURE2
 * GL_TEXTURE3 = cgldef.GL_TEXTURE3
*/
  __pyx_t_2 = __Pyx_PyLong_From_int(GL_TEXTURE1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 236, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_GL_TEXTURE1, __pyx_t_2) < (0)) __PYX_ERR(0, 236, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "kivy/graphics/opengl.pyx":237
 * GL_TEXTURE0 = cgldef.GL_TEXTURE0
 * GL_TEXTURE1 = cgldef.GL_TEXTURE1
 * GL_TEXTURE2 = cgldef.GL_TEXTURE2             # <<<<<<<<<<<<<<
 * GL_TEXTURE3 = cgldef.GL_TEXTURE3
 * GL_TEXTURE4 = cgldef.GL_TEXTURE4
*/
  __pyx_t_2 = __Pyx_PyLong_From_int(GL_TEXTURE2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 237, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_GL_TEXTURE2, __pyx_t_2) < (0)) __PYX_ERR(0, 237, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "kivy/graphics/opengl.pyx":238
 * GL_TEXTURE1 = cgldef.GL_TEXTURE1
 * GL_TEXTURE2 = cgldef.GL_TEXTURE2
 * GL_TEXTURE3 = cgldef.GL_TEXTURE3             # <<<<<<<<<<<<<<
 * GL_TEXTURE4 = cgldef.GL_TEXTURE4
 * GL_TEXTURE5 = cgldef.GL_TEXTURE5
*/
  __pyx_t_2 = __Pyx_PyLong_From_int(GL_TEXTURE3); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 238, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_GL_TEXTURE3, __pyx_t_2) < (0)) __PYX_ERR(0, 238, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "kivy/graphics/opengl.pyx":239
 * GL_TEXTURE2 = cgldef.GL_TEXTURE2
 * GL_TEXTURE3 = cgldef.GL_TEXTURE3
 * GL_TEXTURE4 = cgldef.GL_TEXTURE4             # <<<<<<<<<<<<<<
 * GL_TEXTURE5 = cgldef.GL_TEXTURE5
 * GL_TEXTURE6 = cgldef.GL_TEXTURE6
*/
  __pyx_t_2 = __Pyx_PyLong_From_int(GL_TEXTURE4); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 239, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_GL_TEXTURE4, __pyx_t_2) < (0)) __PYX_ERR(0, 239, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "kivy/graphics/opengl.pyx":240
 * GL_TEXTURE3 = cgldef.GL_TEXTURE3
 * GL_TEXTURE4 = cgldef.GL_TEXTURE4
 * GL_TEXTURE5 = cgldef.GL_TEXTURE5             # <<<<<<<<<<<<<<
 * GL_TEXTURE6 = cgldef.GL_TEXTURE6
 * GL_TEXTURE7 = cgldef.GL_TEXTURE7
*/
  __pyx_t_2 = __Pyx_PyLong_From_int(GL_TEXTURE5); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 240, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_GL_TEXTURE5, __pyx_t_2) < (0)) __PYX_ERR(0, 240, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "kivy/graphics/opengl.pyx":241
 * GL_TEXTURE4 = cgldef.GL_TEXTURE4
 * GL_TEXTURE5 = cgldef.GL_TEXTURE5
 * GL_TEXTURE6 = cgldef.GL_TEXTURE6             # <<<<<<<<<<<<<<
 * GL_TEXTURE7 = cgldef.GL_TEXTURE7
 * GL_TEXTURE8 = cgldef.GL_TEXTURE8
*/
  __pyx_t_2 = __Pyx_PyLong_From_int(GL_TEXTURE6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 241, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_GL_TEXTURE6, __pyx_t_2) < (0)) __PYX_ERR(0, 241, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "kivy/graphics/opengl.pyx":242
 * GL_TEXTURE5 = cgldef.GL_TEXTURE5
 * GL_TEXTURE6 = cgldef.GL_TEXTURE6
 * GL_TEXTURE7 = cgldef.GL_TEXTURE7             # <<<<<<<<<<<<<<
 * GL_TEXTURE8 = cgldef.GL_TEXTURE8
 * GL_TEXTURE9 = cgldef.GL_TEXTURE9
*/
  __pyx_t_2 = __Pyx_PyLong_From_int(GL_TEXTURE7); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 242, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_GL_TEXTURE7, __pyx_t_2) < (0)) __PYX_ERR(0, 242, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "kivy/graphics/opengl.pyx":243
 * GL_TEXTURE6 = cgldef.GL_TEXTURE6
 * GL_TEXTURE7 = cgldef.GL_TEXTURE7
 * GL_TEXTURE8 = cgldef.GL_TEXTURE8             # <<<<<<<<<<<<<<
 * GL_TEXTURE9 = cgldef.GL_TEXTURE9
 * GL_TEXTURE10 = cgldef.GL_TEXTURE10
*/
  __pyx_t_2 = __Pyx_PyLong_From_int(GL_TEXTURE8); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 243, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_GL_TEXTURE8, __pyx_t_2) < (0)) __PYX_ERR(0, 243, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "kivy/graphics/opengl.pyx":244
 * GL_TEXTURE7 = cgldef.GL_TEXTURE7
 * GL_TEXTURE8 = cgldef.GL_TEXTURE8
 * GL_TEXTURE9 = cgldef.GL_TEXTURE9             # <<<<<<<<<<<<<<
 * GL_TEXTURE10 = cgldef.GL_TEXTURE10
 * GL_TEXTURE11 = cgldef.GL_TEXTURE11
*/
  __pyx_t_2 = __Pyx_PyLong_From_int(GL_TEXTURE9); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 244, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_GL_TEXTURE9, __pyx_t_2) < (0)) __PYX_ERR(0, 244, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "kivy/graphics/opengl.pyx":245
 * GL_TEXTURE8 = cgldef.GL_TEXTURE8
 * GL_TEXTURE9 = cgldef.GL_TEXTURE9
 * GL_TEXTURE10 = cgldef.GL_TEXTURE10             # <<<<<<<<<<<<<<
 * GL_TEXTURE11 = cgldef.GL_TEXTURE11
 * GL_TEXTURE12 = cgldef.GL_TEXTURE12
*/
  __pyx_t_2 = __Pyx_PyLong_From_int(GL_TEXTURE10); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 245, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_GL_TEXTURE10, __pyx_t_2) < (0)) __PYX_ERR(0, 245, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "kivy/graphics/opengl.pyx":246
 * GL_TEXTURE9 = cgldef.GL_TEXTURE9
 * GL_TEXTURE10 = cgldef.GL_TEXTURE10
 * GL_TEXTURE11 = cgldef.GL_TEXTURE11             # <<<<<<<<<<<<<<
 * GL_TEXTURE12 = cgldef.GL_TEXTURE12
 * GL_TEXTURE13 = cgldef.GL_TEXTURE13
*/
  __pyx_t_2 = __Pyx_PyLong_From_int(GL_TEXTURE11); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 246, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_GL_TEXTURE11, __pyx_t_2) < (0)) __PYX_ERR(0, 246, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "kivy/graphics/opengl.pyx":247
 * GL_TEXTURE10 = cgldef.GL_TEXTURE10
 * GL_TEXTURE11 = cgldef.GL_TEXTURE11
 * GL_TEXTURE12 = cgldef.GL_TEXTURE12             # <<<<<<<<<<<<<<
 * GL_TEXTURE13 = cgldef.GL_TEXTURE13
 * GL_TEXTURE14 = cgldef.GL_TEXTURE14
*/
  __pyx_t_2 = __Pyx_PyLong_From_int(GL_TEXTURE12); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 247, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_GL_TEXTURE12, __pyx_t_2) < (0)) __PYX_ERR(0, 247, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "kivy/graphics/opengl.pyx":248
 * GL_TEXTURE11 = cgldef.GL_TEXTURE11
 * GL_TEXTURE12 = cgldef.GL_TEXTURE12
 * GL_TEXTURE13 = cgldef.GL_TEXTURE13             # <<<<<<<<<<<<<<
 * GL_TEXTURE14 = cgldef.GL_TEXTURE14
 * GL_TEXTURE15 = cgldef.GL_TEXTURE15
*/
  __pyx_t_2 = __Pyx_PyLong_From_int(GL_TEXTURE13); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 248, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_GL_TEXTURE13, __pyx_t_2) < (0)) __PYX_ERR(0, 248, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "kivy/graphics/opengl.pyx":249
 * GL_TEXTURE12 = cgldef.GL_TEXTURE12
 * GL_TEXTURE13 = cgldef.GL_TEXTURE13
 * GL_TEXTURE14 = cgldef.GL_TEXTURE14             # <<<<<<<<<<<<<<
 * GL_TEXTURE15 = cgldef.GL_TEXTURE15
 * GL_TEXTURE16 = cgldef.GL_TEXTURE16
*/
  __pyx_t_2 = __Pyx_PyLong_From_int(GL_TEXTURE14); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 249, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_GL_TEXTURE14, __pyx_t_2) < (0)) __PYX_ERR(0, 249, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "kivy/graphics/opengl.pyx":250
 * GL_TEXTURE13 = cgldef.GL_TEXTURE13
 * GL_TEXTURE14 = cgldef.GL_TEXTURE14
 * GL_TEXTURE15 = cgldef.GL_TEXTURE15             # <<<<<<<<<<<<<<
 * GL_TEXTURE16 = cgldef.GL_TEXTURE16
 * GL_TEXTURE17 = cgldef.GL_TEXTURE17
*/
  __pyx_t_2 = __Pyx_PyLong_From_int(GL_TEXTURE15); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 250, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_GL_TEXTURE15, __pyx_t_2) < (0)) __PYX_ERR(0, 250, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "kivy/graphics/opengl.pyx":251
 * GL_TEXTURE14 = cgldef.GL_TEXTURE14
 * GL_TEXTURE15 = cgldef.GL_TEXTURE15
 * GL_TEXTURE16 = cgldef.GL_TEXTURE16             # <<<<<<<<<<<<<<
 * GL_TEXTURE17 = cgldef.GL_TEXTURE17
 * GL_TEXTURE18 = cgldef.GL_TEXTURE18
*/
  __pyx_t_2 = __Pyx_PyLong_From_int(GL_TEXTURE16); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 251, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_GL_TEXTURE16, __pyx_t_2) < (0)) __PYX_ERR(0, 251, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "kivy/graphics/opengl.pyx":252
 * GL_TEXTURE15 = cgldef.GL_TEXTURE15
 * GL_TEXTURE16 = cgldef.GL_TEXTURE16
 * GL_TEXTURE17 = cgldef.GL_TEXTURE17             # <<<<<<<<<<<<<<
 * GL_TEXTURE18 = cgldef.GL_TEXTURE18
 * GL_TEXTURE19 = cgldef.GL_TEXTURE19
*/
  __pyx_t_2 = __Pyx_PyLong_From_int(GL_TEXTURE17); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 252, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_GL_TEXTURE17, __pyx_t_2) < (0)) __PYX_ERR(0, 252, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "kivy/graphics/opengl.pyx":253
 * GL_TEXTURE16 = cgldef.GL_TEXTURE16
 * GL_TEXTURE17 = cgldef.GL_TEXTURE17
 * GL_TEXTURE18 = cgldef.GL_TEXTURE18             # <<<<<<<<<<<<<<
 * GL_TEXTURE19 = cgldef.GL_TEXTURE19
 * GL_TEXTURE20 = cgldef.GL_TEXTURE20
*/
  __pyx_t_2 = __Pyx_PyLong_From_int(GL_TEXTURE18); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 253, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_GL_TEXTURE18, __pyx_t_2) < (0)) __PYX_ERR(0, 253, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "kivy/graphics/opengl.pyx":254
 * GL_TEXTURE17 = cgldef.GL_TEXTURE17
 * GL_TEXTURE18 = cgldef.GL_TEXTURE18
 * GL_TEXTURE19 = cgldef.GL_TEXTURE19             # <<<<<<<<<<<<<<
 * GL_TEXTURE20 = cgldef.GL_TEXTURE20
 * GL_TEXTURE21 = cgldef.GL_TEXTURE21
*/
  __pyx_t_2 = __Pyx_PyLong_From_int(GL_TEXTURE19); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 254, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_GL_TEXTURE19, __pyx_t_2) < (0)) __PYX_ERR(0, 254, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "kivy/graphics/opengl.pyx":255
 * GL_TEXTURE18 = cgldef.GL_TEXTURE18
 * GL_TEXTURE19 = cgldef.GL_TEXTURE19
 * GL_TEXTURE20 = cgldef.GL_TEXTURE20             # <<<<<<<<<<<<<<
 * GL_TEXTURE21 = cgldef.GL_TEXTURE21
 * GL_TEXTURE22 = cgldef.GL_TEXTURE22
*/
  __pyx_t_2 = __Pyx_PyLong_From_int(GL_TEXTURE20); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 255, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_GL_TEXTURE20, __pyx_t_2) < (0)) __PYX_ERR(0, 255, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "kivy/graphics/opengl.pyx":256
 * GL_TEXTURE19 = cgldef.GL_TEXTURE19
 * GL_TEXTURE20 = cgldef.GL_TEXTURE20
 * GL_TEXTURE21 = cgldef.GL_TEXTURE21             # <<<<<<<<<<<<<<
 * GL_TEXTURE22 = cgldef.GL_TEXTURE22
 * GL_TEXTURE23 = cgldef.GL_TEXTURE23
*/
  __pyx_t_2 = __Pyx_PyLong_From_int(GL_TEXTURE21); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 256, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_GL_TEXTURE21, __pyx_t_2) < (0)) __PYX_ERR(0, 256, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "kivy/graphics/opengl.pyx":257
 * GL_TEXTURE20 = cgldef.GL_TEXTURE20
 * GL_TEXTURE21 = cgldef.GL_TEXTURE21
 * GL_TEXTURE22 = cgldef.GL_TEXTURE22             # <<<<<<<<<<<<<<
 * GL_TEXTURE23 = cgldef.GL_TEXTURE23
 * GL_TEXTURE24 = cgldef.GL_TEXTURE24
*/
  __pyx_t_2 = __Pyx_PyLong_From_int(GL_TEXTURE22); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 257, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_GL_TEXTURE22, __pyx_t_2) < (0)) __PYX_ERR(0, 257, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "kivy/graphics/opengl.pyx":258
 * GL_TEXTURE21 = cgldef.GL_TEXTURE21
 * GL_TEXTURE22 = cgldef.GL_TEXTURE22
 * GL_TEXTURE23 = cgldef.GL_TEXTURE23             # <<<<<<<<<<<<<<
 * GL_TEXTURE24 = cgldef.GL_TEXTURE24
 * GL_TEXTURE25 = cgldef.GL_TEXTURE25
*/
  __pyx_t_2 = __Pyx_PyLong_From_int(GL_TEXTURE23); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 258, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_GL_TEXTURE23, __pyx_t_2) < (0)) __PYX_ERR(0, 258, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "kivy/graphics/opengl.pyx":259
 * GL_TEXTURE22 = cgldef.GL_TEXTURE22
 * GL_TEXTURE23 = cgldef.GL_TEXTURE23
 * GL_TEXTURE24 = cgldef.GL_TEXTURE24             # <<<<<<<<<<<<<<
 * GL_TEXTURE25 = cgldef.GL_TEXTURE25
 * GL_TEXTURE26 = cgldef.GL_TEXTURE26
*/
  __pyx_t_2 = __Pyx_PyLong_From_int(GL_TEXTURE24); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 259, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_GL_TEXTURE24, __pyx_t_2) < (0)) __PYX_ERR(0, 259, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "kivy/graphics/opengl.pyx":260
 * GL_TEXTURE23 = cgldef.GL_TEXTURE23
 * GL_TEXTURE24 = cgldef.GL_TEXTURE24
 * GL_TEXTURE25 = cgldef.GL_TEXTURE25             # <<<<<<<<<<<<<<
 * GL_TEXTURE26 = cgldef.GL_TEXTURE26
 * GL_TEXTURE27 = cgldef.GL_TEXTURE27
*/
  __pyx_t_2 = __Pyx_PyLong_From_int(GL_TEXTURE25); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 260, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_GL_TEXTURE25, __pyx_t_2) < (0)) __PYX_ERR(0, 260, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "kivy/graphics/opengl.pyx":261
 * GL_TEXTURE24 = cgldef.GL_TEXTURE24
 * GL_TEXTURE25 = cgldef.GL_TEXTURE25
 * GL_TEXTURE26 = cgldef.GL_TEXTURE26             # <<<<<<<<<<<<<<
 * GL_TEXTURE27 = cgldef.GL_TEXTURE27
 * GL_TEXTURE28 = cgldef.GL_TEXTURE28
*/
  __pyx_t_2 = __Pyx_PyLong_From_int(GL_TEXTURE26); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 261, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_GL_TEXTURE26, __pyx_t_2) < (0)) __PYX_ERR(0, 261, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "kivy/graphics/opengl.pyx":262
 * GL_TEXTURE25 = cgldef.GL_TEXTURE25
 * GL_TEXTURE26 = cgldef.GL_TEXTURE26
 * GL_TEXTURE27 = cgldef.GL_TEXTURE27             # <<<<<<<<<<<<<<
 * GL_TEXTURE28 = cgldef.GL_TEXTURE28
 * GL_TEXTURE29 = cgldef.GL_TEXTURE29
*/
  __pyx_t_2 = __Pyx_PyLong_From_int(GL_TEXTURE27); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 262, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_GL_TEXTURE27, __pyx_t_2) < (0)) __PYX_ERR(0, 262, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "kivy/graphics/opengl.pyx":263
 * GL_TEXTURE26 = cgldef.GL_TEXTURE26
 * GL_TEXTURE27 = cgldef.GL_TEXTURE27
 * GL_TEXTURE28 = cgldef.GL_TEXTURE28             # <<<<<<<<<<<<<<
 * GL_TEXTURE29 = cgldef.GL_TEXTURE29
 * GL_TEXTURE30 = cgldef.GL_TEXTURE30
*/
  __pyx_t_2 = __Pyx_PyLong_From_int(GL_TEXTURE28); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 263, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_GL_TEXTURE28, __pyx_t_2) < (0)) __PYX_ERR(0, 263, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "kivy/graphics/opengl.pyx":264
 * GL_TEXTURE27 = cgldef.GL_TEXTURE27
 * GL_TEXTURE28 = cgldef.GL_TEXTURE28
 * GL_TEXTURE29 = cgldef.GL_TEXTURE29             # <<<<<<<<<<<<<<
 * GL_TEXTURE30 = cgldef.GL_TEXTURE30
 * GL_TEXTURE31 = cgldef.GL_TEXTURE31
*/
  __pyx_t_2 = __Pyx_PyLong_From_int(GL_TEXTURE29); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 264, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_GL_TEXTURE29, __pyx_t_2) < (0)) __PYX_ERR(0, 264, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "kivy/graphics/opengl.pyx":265
 * GL_TEXTURE28 = cgldef.GL_TEXTURE28
 * GL_TEXTURE29 = cgldef.GL_TEXTURE29
 * GL_TEXTURE30 = cgldef.GL_TEXTURE30             # <<<<<<<<<<<<<<
 * GL_TEXTURE31 = cgldef.GL_TEXTURE31
 * GL_ACTIVE_TEXTURE = cgldef.GL_ACTIVE_TEXTURE
*/
  __pyx_t_2 = __Pyx_PyLong_From_int(GL_TEXTURE30); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 265, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_GL_TEXTURE30, __pyx_t_2) < (0)) __PYX_ERR(0, 265, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "kivy/graphics/opengl.pyx":266
 * GL_TEXTURE29 = cgldef.GL_TEXTURE29
 * GL_TEXTURE30 = cgldef.GL_TEXTURE30
 * GL_TEXTURE31 = cgldef.GL_TEXTURE31             # <<<<<<<<<<<<<<
 * GL_ACTIVE_TEXTURE = cgldef.GL_ACTIVE_TEXTURE
 * GL_REPEAT = cgldef.GL_REPEAT
*/
  __pyx_t_2 = __Pyx_PyLong_From_int(GL_TEXTURE31); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 266, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_GL_TEXTURE31, __pyx_t_2) < (0)) __PYX_ERR(0, 266, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "kivy/graphics/opengl.pyx":267
 * GL_TEXTURE30 = cgldef.GL_TEXTURE30
 * GL_TEXTURE31 = cgldef.GL_TEXTURE31
 * GL_ACTIVE_TEXTURE = cgldef.GL_ACTIVE_TEXTURE             # <<<<<<<<<<<<<<
 * GL_REPEAT = cgldef.GL_REPEAT
 * GL_CLAMP_TO_EDGE = cgldef.GL_CLAMP_TO_EDGE
*/
  __pyx_t_2 = __Pyx_PyLong_From_int(GL_ACTIVE_TEXTURE); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 267, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_GL_ACTIVE_TEXTURE, __pyx_t_2) < (0)) __PYX_ERR(0, 267, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "kivy/graphics/opengl.pyx":268
 * GL_TEXTURE31 = cgldef.GL_TEXTURE31
 * GL_ACTIVE_TEXTURE = cgldef.GL_ACTIVE_TEXTURE
 * GL_REPEAT = cgldef.GL_REPEAT             # <<<<<<<<<<<<<<
 * GL_CLAMP_TO_EDGE = cgldef.GL_CLAMP_TO_EDGE
 * GL_MIRRORED_REPEAT = cgldef.GL_MIRRORED_REPEAT
*/
  __pyx_t_2 = __Pyx_PyLong_From_int(GL_REPEAT); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 268, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_GL_REPEAT, __pyx_t_2) < (0)) __PYX_ERR(0, 268, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "kivy/graphics/opengl.pyx":269
 * GL_ACTIVE_TEXTURE = cgldef.GL_ACTIVE_TEXTURE
 * GL_REPEAT = cgldef.GL_REPEAT
 * GL_CLAMP_TO_EDGE = cgldef.GL_CLAMP_TO_EDGE             # <<<<<<<<<<<<<<
 * GL_MIRRORED_REPEAT = cgldef.GL_MIRRORED_REPEAT
 * GL_FLOAT_VEC2 = cgldef.GL_FLOAT_VEC2
*/
  __pyx_t_2 = __Pyx_PyLong_From_int(GL_CLAMP_TO_EDGE); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 269, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_GL_CLAMP_TO_EDGE, __pyx_t_2) < (0)) __PYX_ERR(0, 269, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "kivy/graphics/opengl.pyx":270
 * GL_REPEAT = cgldef.GL_REPEAT
 * GL_CLAMP_TO_EDGE = cgldef.GL_CLAMP_TO_EDGE
 * GL_MIRRORED_REPEAT = cgldef.GL_MIRRORED_REPEAT             # <<<<<<<<<<<<<<
 * GL_FLOAT_VEC2 = cgldef.GL_FLOAT_VEC2
 * GL_FLOAT_VEC3 = cgldef.GL_FLOAT_VEC3
*/
  __pyx_t_2 = __Pyx_PyLong_From_int(GL_MIRRORED_REPEAT); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 270, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_GL_MIRRORED_REPEAT, __pyx_t_2) < (0)) __PYX_ERR(0, 270, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "kivy/graphics/opengl.pyx":271
 * GL_CLAMP_TO_EDGE = cgldef.GL_CLAMP_TO_EDGE
 * GL_MIRRORED_REPEAT = cgldef.GL_MIRRORED_REPEAT
 * GL_FLOAT_VEC2 = cgldef.GL_FLOAT_VEC2             # <<<<<<<<<<<<<<
 * GL_FLOAT_VEC3 = cgldef.GL_FLOAT_VEC3
 * GL_FLOAT_VEC4 = cgldef.GL_FLOAT_VEC4
*/
  __pyx_t_2 = __Pyx_PyLong_From_int(GL_FLOAT_VEC2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 271, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_GL_FLOAT_VEC2, __pyx_t_2) < (0)) __PYX_ERR(0, 271, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "kivy/graphics/opengl.pyx":272
 * GL_MIRRORED_REPEAT = cgldef.GL_MIRRORED_REPEAT
 * GL_FLOAT_VEC2 = cgldef.GL_FLOAT_VEC2
 * GL_FLOAT_VEC3 = cgldef.GL_FLOAT_VEC3             # <<<<<<<<<<<<<<
 * GL_FLOAT_VEC4 = cgldef.GL_FLOAT_VEC4
 * GL_INT_VEC2 = cgldef.GL_INT_VEC2
*/
  __pyx_t_2 = __Pyx_PyLong_From_int(GL_FLOAT_VEC3); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 272, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_GL_FLOAT_VEC3, __pyx_t_2) < (0)) __PYX_ERR(0, 272, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "kivy/graphics/opengl.pyx":273
 * GL_FLOAT_VEC2 = cgldef.GL_FLOAT_VEC2
 * GL_FLOAT_VEC3 = cgldef.GL_FLOAT_VEC3
 * GL_FLOAT_VEC4 = cgldef.GL_FLOAT_VEC4             # <<<<<<<<<<<<<<
 * GL_INT_VEC2 = cgldef.GL_INT_VEC2
 * GL_INT_VEC3 = cgldef.GL_INT_VEC3
*/
  __pyx_t_2 = __Pyx_PyLong_From_int(GL_FLOAT_VEC4); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 273, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_GL_FLOAT_VEC4, __pyx_t_2) < (0)) __PYX_ERR(0, 273, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "kivy/graphics/opengl.pyx":274
 * GL_FLOAT_VEC3 = cgldef.GL_FLOAT_VEC3
 * GL_FLOAT_VEC4 = cgldef.GL_FLOAT_VEC4
 * GL_INT_VEC2 = cgldef.GL_INT_VEC2             # <<<<<<<<<<<<<<
 * GL_INT_VEC3 = cgldef.GL_INT_VEC3
 * GL_INT_VEC4 = cgldef.GL_INT_VEC4
*/
  __pyx_t_2 = __Pyx_PyLong_From_int(GL_INT_VEC2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 274, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_GL_INT_VEC2, __pyx_t_2) < (0)) __PYX_ERR(0, 274, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "kivy/graphics/opengl.pyx":275
 * GL_FLOAT_VEC4 = cgldef.GL_FLOAT_VEC4
 * GL_INT_VEC2 = cgldef.GL_INT_VEC2
 * GL_INT_VEC3 = cgldef.GL_INT_VEC3             # <<<<<<<<<<<<<<
 * GL_INT_VEC4 = cgldef.GL_INT_VEC4
 * GL_BOOL = cgldef.GL_BOOL
*/
  __pyx_t_2 = __Pyx_PyLong_From_int(GL_INT_VEC3); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 275, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_GL_INT_VEC3, __pyx_t_2) < (0)) __PYX_ERR(0, 275, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "kivy/graphics/opengl.pyx":276
 * GL_INT_VEC2 = cgldef.GL_INT_VEC2
 * GL_INT_VEC3 = cgldef.GL_INT_VEC3
 * GL_INT_VEC4 = cgldef.GL_INT_VEC4             # <<<<<<<<<<<<<<
 * GL_BOOL = cgldef.GL_BOOL
 * GL_BOOL_VEC2 = cgldef.GL_BOOL_VEC2
*/
  __pyx_t_2 = __Pyx_PyLong_From_int(GL_INT_VEC4); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 276, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_GL_INT_VEC4, __pyx_t_2) < (0)) __PYX_ERR(0, 276, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "kivy/graphics/opengl.pyx":277
 * GL_INT_VEC3 = cgldef.GL_INT_VEC3
 * GL_INT_VEC4 = cgldef.GL_INT_VEC4
 * GL_BOOL = cgldef.GL_BOOL             # <<<<<<<<<<<<<<
 * GL_BOOL_VEC2 = cgldef.GL_BOOL_VEC2
 * GL_BOOL_VEC3 = cgldef.GL_BOOL_VEC3
*/
  __pyx_t_2 = __Pyx_PyLong_From_int(GL_BOOL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 277, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_GL_BOOL, __pyx_t_2) < (0)) __PYX_ERR(0, 277, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "kivy/graphics/opengl.pyx":278
 * GL_INT_VEC4 = cgldef.GL_INT_VEC4
 * GL_BOOL = cgldef.GL_BOOL
 * GL_BOOL_VEC2 = cgldef.GL_BOOL_VEC2             # <<<<<<<<<<<<<<
 * GL_BOOL_VEC3 = cgldef.GL_BOOL_VEC3
 * GL_BOOL_VEC4 = cgldef.GL_BOOL_VEC4
*/
  __pyx_t_2 = __Pyx_PyLong_From_int(GL_BOOL_VEC2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 278, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_GL_BOOL_VEC2, __pyx_t_2) < (0)) __PYX_ERR(0, 278, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "kivy/graphics/opengl.pyx":279
 * GL_BOOL = cgldef.GL_BOOL
 * GL_BOOL_VEC2 = cgldef.GL_BOOL_VEC2
 * GL_BOOL_VEC3 = cgldef.GL_BOOL_VEC3             # <<<<<<<<<<<<<<
 * GL_BOOL_VEC4 = cgldef.GL_BOOL_VEC4
 * GL_FLOAT_MAT2 = cgldef.GL_FLOAT_MAT2
*/
  __pyx_t_2 = __Pyx_PyLong_From_int(GL_BOOL_VEC3); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 279, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_GL_BOOL_VEC3, __pyx_t_2) < (0)) __PYX_ERR(0, 279, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "kivy/graphics/opengl.pyx":280
 * GL_BOOL_VEC2 = cgldef.GL_BOOL_VEC2
 * GL_BOOL_VEC3 = cgldef.GL_BOOL_VEC3
 * GL_BOOL_VEC4 = cgldef.GL_BOOL_VEC4             # <<<<<<<<<<<<<<
 * GL_FLOAT_MAT2 = cgldef.GL_FLOAT_MAT2
 * GL_FLOAT_MAT3 = cgldef.GL_FLOAT_MAT3
*/
  __pyx_t_2 = __Pyx_PyLong_From_int(GL_BOOL_VEC4); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 280, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_GL_BOOL_VEC4, __pyx_t_2) < (0)) __PYX_ERR(0, 280, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "kivy/graphics/opengl.pyx":281
 * GL_BOOL_VEC3 = cgldef.GL_BOOL_VEC3
 * GL_BOOL_VEC4 = cgldef.GL_BOOL_VEC4
 * GL_FLOAT_MAT2 = cgldef.GL_FLOAT_MAT2             # <<<<<<<<<<<<<<
 * GL_FLOAT_MAT3 = cgldef.GL_FLOAT_MAT3
 * GL_FLOAT_MAT4 = cgldef.GL_FLOAT_MAT4
*/
  __pyx_t_2 = __Pyx_PyLong_From_int(GL_FLOAT_MAT2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 281, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_GL_FLOAT_MAT2, __pyx_t_2) < (0)) __PYX_ERR(0, 281, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "kivy/graphics/opengl.pyx":282
 * GL_BOOL_VEC4 = cgldef.GL_BOOL_VEC4
 * GL_FLOAT_MAT2 = cgldef.GL_FLOAT_MAT2
 * GL_FLOAT_MAT3 = cgldef.GL_FLOAT_MAT3             # <<<<<<<<<<<<<<
 * GL_FLOAT_MAT4 = cgldef.GL_FLOAT_MAT4
 * GL_SAMPLER_2D = cgldef.GL_SAMPLER_2D
*/
  __pyx_t_2 = __Pyx_PyLong_From_int(GL_FLOAT_MAT3); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 282, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_GL_FLOAT_MAT3, __pyx_t_2) < (0)) __PYX_ERR(0, 282, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "kivy/graphics/opengl.pyx":283
 * GL_FLOAT_MAT2 = cgldef.GL_FLOAT_MAT2
 * GL_FLOAT_MAT3 = cgldef.GL_FLOAT_MAT3
 * GL_FLOAT_MAT4 = cgldef.GL_FLOAT_MAT4             # <<<<<<<<<<<<<<
 * GL_SAMPLER_2D = cgldef.GL_SAMPLER_2D
 * GL_SAMPLER_CUBE = cgldef.GL_SAMPLER_CUBE
*/
  __pyx_t_2 = __Pyx_PyLong_From_int(GL_FLOAT_MAT4); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 283, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_GL_FLOAT_MAT4, __pyx_t_2) < (0)) __PYX_ERR(0, 283, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "kivy/graphics/opengl.pyx":284
 * GL_FLOAT_MAT3 = cgldef.GL_FLOAT_MAT3
 * GL_FLOAT_MAT4 = cgldef.GL_FLOAT_MAT4
 * GL_SAMPLER_2D = cgldef.GL_SAMPLER_2D             # <<<<<<<<<<<<<<
 * GL_SAMPLER_CUBE = cgldef.GL_SAMPLER_CUBE
 * GL_VERTEX_ATTRIB_ARRAY_ENABLED = cgldef.GL_VERTEX_ATTRIB_ARRAY_ENABLED
*/
  __pyx_t_2 = __Pyx_PyLong_From_int(GL_SAMPLER_2D); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 284, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_GL_SAMPLER_2D, __pyx_t_2) < (0)) __PYX_ERR(0, 284, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "kivy/graphics/opengl.pyx":285
 * GL_FLOAT_MAT4 = cgldef.GL_FLOAT_MAT4
 * GL_SAMPLER_2D = cgldef.GL_SAMPLER_2D
 * GL_SAMPLER_CUBE = cgldef.GL_SAMPLER_CUBE             # <<<<<<<<<<<<<<
 * GL_VERTEX_ATTRIB_ARRAY_ENABLED = cgldef.GL_VERTEX_ATTRIB_ARRAY_ENABLED
 * GL_VERTEX_ATTRIB_ARRAY_SIZE = cgldef.GL_VERTEX_ATTRIB_ARRAY_SIZE
*/
  __pyx_t_2 = __Pyx_PyLong_From_int(GL_SAMPLER_CUBE); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 285, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_GL_SAMPLER_CUBE, __pyx_t_2) < (0)) __PYX_ERR(0, 285, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "kivy/graphics/opengl.pyx":286
 * GL_SAMPLER_2D = cgldef.GL_SAMPLER_2D
 * GL_SAMPLER_CUBE = cgldef.GL_SAMPLER_CUBE
 * GL_VERTEX_ATTRIB_ARRAY_ENABLED = cgldef.GL_VERTEX_ATTRIB_ARRAY_ENABLED             # <<<<<<<<<<<<<<
 * GL_VERTEX_ATTRIB_ARRAY_SIZE = cgldef.GL_VERTEX_ATTRIB_ARRAY_SIZE
 * GL_VERTEX_ATTRIB_ARRAY_STRIDE = cgldef.GL_VERTEX_ATTRIB_ARRAY_STRIDE
*/
  __pyx_t_2 = __Pyx_PyLong_From_int(GL_VERTEX_ATTRIB_ARRAY_ENABLED); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 286, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_GL_VERTEX_ATTRIB_ARRAY_ENABLED, __pyx_t_2) < (0)) __PYX_ERR(0, 286, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "kivy/graphics/opengl.pyx":287
 * GL_SAMPLER_CUBE = cgldef.GL_SAMPLER_CUBE
 * GL_VERTEX_ATTRIB_ARRAY_ENABLED = cgldef.GL_VERTEX_ATTRIB_ARRAY_ENABLED
 * GL_VERTEX_ATTRIB_ARRAY_SIZE = cgldef.GL_VERTEX_ATTRIB_ARRAY_SIZE             # <<<<<<<<<<<<<<
 * GL_VERTEX_ATTRIB_ARRAY_STRIDE = cgldef.GL_VERTEX_ATTRIB_ARRAY_STRIDE
 * GL_VERTEX_ATTRIB_ARRAY_TYPE = cgldef.GL_VERTEX_ATTRIB_ARRAY_TYPE
*/
  __pyx_t_2 = __Pyx_PyLong_From_int(GL_VERTEX_ATTRIB_ARRAY_SIZE); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 287, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_GL_VERTEX_ATTRIB_ARRAY_SIZE, __pyx_t_2) < (0)) __PYX_ERR(0, 287, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "kivy/graphics/opengl.pyx":288
 * GL_VERTEX_ATTRIB_ARRAY_ENABLED = cgldef.GL_VERTEX_ATTRIB_ARRAY_ENABLED
 * GL_VERTEX_ATTRIB_ARRAY_SIZE = cgldef.GL_VERTEX_ATTRIB_ARRAY_SIZE
 * GL_VERTEX_ATTRIB_ARRAY_STRIDE = cgldef.GL_VERTEX_ATTRIB_ARRAY_STRIDE             # <<<<<<<<<<<<<<
 * GL_VERTEX_ATTRIB_ARRAY_TYPE = cgldef.GL_VERTEX_ATTRIB_ARRAY_TYPE
 * GL_VERTEX_ATTRIB_ARRAY_NORMALIZED = cgldef.GL_VERTEX_ATTRIB_ARRAY_NORMALIZED
*/
  __pyx_t_2 = __Pyx_PyLong_From_int(GL_VERTEX_ATTRIB_ARRAY_STRIDE); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 288, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_GL_VERTEX_ATTRIB_ARRAY_STRIDE, __pyx_t_2) < (0)) __PYX_ERR(0, 288, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "kivy/graphics/opengl.pyx":289
 * GL_VERTEX_ATTRIB_ARRAY_SIZE = cgldef.GL_VERTEX_ATTRIB_ARRAY_SIZE
 * GL_VERTEX_ATTRIB_ARRAY_STRIDE = cgldef.GL_VERTEX_ATTRIB_ARRAY_STRIDE
 * GL_VERTEX_ATTRIB_ARRAY_TYPE = cgldef.GL_VERTEX_ATTRIB_ARRAY_TYPE             # <<<<<<<<<<<<<<
 * GL_VERTEX_ATTRIB_ARRAY_NORMALIZED = cgldef.GL_VERTEX_ATTRIB_ARRAY_NORMALIZED
 * GL_VERTEX_ATTRIB_ARRAY_POINTER = cgldef.GL_VERTEX_ATTRIB_ARRAY_POINTER
*/
  __pyx_t_2 = __Pyx_PyLong_From_int(GL_VERTEX_ATTRIB_ARRAY_TYPE); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 289, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_GL_VERTEX_ATTRIB_ARRAY_TYPE, __pyx_t_2) < (0)) __PYX_ERR(0, 289, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "kivy/graphics/opengl.pyx":290
 * GL_VERTEX_ATTRIB_ARRAY_STRIDE = cgldef.GL_VERTEX_ATTRIB_ARRAY_STRIDE
 * GL_VERTEX_ATTRIB_ARRAY_TYPE = cgldef.GL_VERTEX_ATTRIB_ARRAY_TYPE
 * GL_VERTEX_ATTRIB_ARRAY_NORMALIZED = cgldef.GL_VERTEX_ATTRIB_ARRAY_NORMALIZED             # <<<<<<<<<<<<<<
 * GL_VERTEX_ATTRIB_ARRAY_POINTER = cgldef.GL_VERTEX_ATTRIB_ARRAY_POINTER
 * GL_VERTEX_ATTRIB_ARRAY_BUFFER_BINDING = cgldef.GL_VERTEX_ATTRIB_ARRAY_BUFFER_BINDING
*/
  __pyx_t_2 = __Pyx_PyLong_From_int(GL_VERTEX_ATTRIB_ARRAY_NORMALIZED); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 290, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_GL_VERTEX_ATTRIB_ARRAY_NORMALIZE, __pyx_t_2) < (0)) __PYX_ERR(0, 290, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "kivy/graphics/opengl.pyx":291
 * GL_VERTEX_ATTRIB_ARRAY_TYPE = cgldef.GL_VERTEX_ATTRIB_ARRAY_TYPE
 * GL_VERTEX_ATTRIB_ARRAY_NORMALIZED = cgldef.GL_VERTEX_ATTRIB_ARRAY_NORMALIZED
 * GL_VERTEX_ATTRIB_ARRAY_POINTER = cgldef.GL_VERTEX_ATTRIB_ARRAY_POINTER             # <<<<<<<<<<<<<<
 * GL_VERTEX_ATTRIB_ARRAY_BUFFER_BINDING = cgldef.GL_VERTEX_ATTRIB_ARRAY_BUFFER_BINDING
 * GL_COMPILE_STATUS = cgldef.GL_COMPILE_STATUS
*/
  __pyx_t_2 = __Pyx_PyLong_From_int(GL_VERTEX_ATTRIB_ARRAY_POINTER); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 291, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_GL_VERTEX_ATTRIB_ARRAY_POINTER, __pyx_t_2) < (0)) __PYX_ERR(0, 291, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "kivy/graphics/opengl.pyx":292
 * GL_VERTEX_ATTRIB_ARRAY_NORMALIZED = cgldef.GL_VERTEX_ATTRIB_ARRAY_NORMALIZED
 * GL_VERTEX_ATTRIB_ARRAY_POINTER = cgldef.GL_VERTEX_ATTRIB_ARRAY_POINTER
 * GL_VERTEX_ATTRIB_ARRAY_BUFFER_BINDING = cgldef.GL_VERTEX_ATTRIB_ARRAY_BUFFER_BINDING             # <<<<<<<<<<<<<<
 * GL_COMPILE_STATUS = cgldef.GL_COMPILE_STATUS
 * GL_INFO_LOG_LENGTH = cgldef.GL_INFO_LOG_LENGTH
*/
  __pyx_t_2 = __Pyx_PyLong_From_int(GL_VERTEX_ATTRIB_ARRAY_BUFFER_BINDING); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 292, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_GL_VERTEX_ATTRIB_ARRAY_BUFFER_BI, __pyx_t_2) < (0)) __PYX_ERR(0, 292, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "kivy/graphics/opengl.pyx":293
 * GL_VERTEX_ATTRIB_ARRAY_POINTER = cgldef.GL_VERTEX_ATTRIB_ARRAY_POINTER
 * GL_VERTEX_ATTRIB_ARRAY_BUFFER_BINDING = cgldef.GL_VERTEX_ATTRIB_ARRAY_BUFFER_BINDING
 * GL_COMPILE_STATUS = cgldef.GL_COMPILE_STATUS             # <<<<<<<<<<<<<<
 * GL_INFO_LOG_LENGTH = cgldef.GL_INFO_LOG_LENGTH
 * GL_SHADER_SOURCE_LENGTH = cgldef.GL_SHADER_SOURCE_LENGTH
*/
  __pyx_t_2 = __Pyx_PyLong_From_int(GL_COMPILE_STATUS); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 293, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_GL_COMPILE_STATUS, __pyx_t_2) < (0)) __PYX_ERR(0, 293, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "kivy/graphics/opengl.pyx":294
 * GL_VERTEX_ATTRIB_ARRAY_BUFFER_BINDING = cgldef.GL_VERTEX_ATTRIB_ARRAY_BUFFER_BINDING
 * GL_COMPILE_STATUS = cgldef.GL_COMPILE_STATUS
 * GL_INFO_LOG_LENGTH = cgldef.GL_INFO_LOG_LENGTH             # <<<<<<<<<<<<<<
 * GL_SHADER_SOURCE_LENGTH = cgldef.GL_SHADER_SOURCE_LENGTH
 * GL_FRAMEBUFFER = cgldef.GL_FRAMEBUFFER
*/
  __pyx_t_2 = __Pyx_PyLong_From_int(GL_INFO_LOG_LENGTH); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 294, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_GL_INFO_LOG_LENGTH, __pyx_t_2) < (0)) __PYX_ERR(0, 294, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "kivy/graphics/opengl.pyx":295
 * GL_COMPILE_STATUS = cgldef.GL_COMPILE_STATUS
 * GL_INFO_LOG_LENGTH = cgldef.GL_INFO_LOG_LENGTH
 * GL_SHADER_SOURCE_LENGTH = cgldef.GL_SHADER_SOURCE_LENGTH             # <<<<<<<<<<<<<<
 * GL_FRAMEBUFFER = cgldef.GL_FRAMEBUFFER
 * GL_RENDERBUFFER = cgldef.GL_RENDERBUFFER
*/
  __pyx_t_2 = __Pyx_PyLong_From_int(GL_SHADER_SOURCE_LENGTH); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 295, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_GL_SHADER_SOURCE_LENGTH, __pyx_t_2) < (0)) __PYX_ERR(0, 295, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "kivy/graphics/opengl.pyx":296
 * GL_INFO_LOG_LENGTH = cgldef.GL_INFO_LOG_LENGTH
 * GL_SHADER_SOURCE_LENGTH = cgldef.GL_SHADER_SOURCE_LENGTH
 * GL_FRAMEBUFFER = cgldef.GL_FRAMEBUFFER             # <<<<<<<<<<<<<<
 * GL_RENDERBUFFER = cgldef.GL_RENDERBUFFER
 * GL_RGBA4 = cgldef.GL_RGBA4
*/
  __pyx_t_2 = __Pyx_PyLong_From_int(GL_FRAMEBUFFER); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 296, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_GL_FRAMEBUFFER, __pyx_t_2) < (0)) __PYX_ERR(0, 296, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "kivy/graphics/opengl.pyx":297
 * GL_SHADER_SOURCE_LENGTH = cgldef.GL_SHADER_SOURCE_LENGTH
 * GL_FRAMEBUFFER = cgldef.GL_FRAMEBUFFER
 * GL_RENDERBUFFER = cgldef.GL_RENDERBUFFER             # <<<<<<<<<<<<<<
 * GL_RGBA4 = cgldef.GL_RGBA4
 * GL_RGB5_A1 = cgldef.GL_RGB5_A1
*/
  __pyx_t_2 = __Pyx_PyLong_From_int(GL_RENDERBUFFER); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 297, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_GL_RENDERBUFFER, __pyx_t_2) < (0)) __PYX_ERR(0, 297, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "kivy/graphics/opengl.pyx":298
 * GL_FRAMEBUFFER = cgldef.GL_FRAMEBUFFER
 * GL_RENDERBUFFER = cgldef.GL_RENDERBUFFER
 * GL_RGBA4 = cgldef.GL_RGBA4             # <<<<<<<<<<<<<<
 * GL_RGB5_A1 = cgldef.GL_RGB5_A1
 * GL_DEPTH_COMPONENT16 = cgldef.GL_DEPTH_COMPONENT16
*/
  __pyx_t_2 = __Pyx_PyLong_From_int(GL_RGBA4); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 298, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_GL_RGBA4, __pyx_t_2) < (0)) __PYX_ERR(0, 298, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "kivy/graphics/opengl.pyx":299
 * GL_RENDERBUFFER = cgldef.GL_RENDERBUFFER
 * GL_RGBA4 = cgldef.GL_RGBA4
 * GL_RGB5_A1 = cgldef.GL_RGB5_A1             # <<<<<<<<<<<<<<
 * GL_DEPTH_COMPONENT16 = cgldef.GL_DEPTH_COMPONENT16
 * GL_STENCIL_INDEX8 = cgldef.GL_STENCIL_INDEX8
*/
  __pyx_t_2 = __Pyx_PyLong_From_int(GL_RGB5_A1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 299, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_GL_RGB5_A1, __pyx_t_2) < (0)) __PYX_ERR(0, 299, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "kivy/graphics/opengl.pyx":300
 * GL_RGBA4 = cgldef.GL_RGBA4
 * GL_RGB5_A1 = cgldef.GL_RGB5_A1
 * GL_DEPTH_COMPONENT16 = cgldef.GL_DEPTH_COMPONENT16             # <<<<<<<<<<<<<<
 * GL_STENCIL_INDEX8 = cgldef.GL_STENCIL_INDEX8
 * GL_RENDERBUFFER_WIDTH = cgldef.GL_RENDERBUFFER_WIDTH
*/
  __pyx_t_2 = __Pyx_PyLong_From_int(GL_DEPTH_COMPONENT16); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 300, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_GL_DEPTH_COMPONENT16, __pyx_t_2) < (0)) __PYX_ERR(0, 300, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "kivy/graphics/opengl.pyx":301
 * GL_RGB5_A1 = cgldef.GL_RGB5_A1
 * GL_DEPTH_COMPONENT16 = cgldef.GL_DEPTH_COMPONENT16
 * GL_STENCIL_INDEX8 = cgldef.GL_STENCIL_INDEX8             # <<<<<<<<<<<<<<
 * GL_RENDERBUFFER_WIDTH = cgldef.GL_RENDERBUFFER_WIDTH
 * GL_RENDERBUFFER_HEIGHT = cgldef.GL_RENDERBUFFER_HEIGHT
*/
  __pyx_t_2 = __Pyx_PyLong_From_int(GL_STENCIL_INDEX8); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 301, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_GL_STENCIL_INDEX8, __pyx_t_2) < (0)) __PYX_ERR(0, 301, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "kivy/graphics/opengl.pyx":302
 * GL_DEPTH_COMPONENT16 = cgldef.GL_DEPTH_COMPONENT16
 * GL_STENCIL_INDEX8 = cgldef.GL_STENCIL_INDEX8
 * GL_RENDERBUFFER_WIDTH = cgldef.GL_RENDERBUFFER_WIDTH             # <<<<<<<<<<<<<<
 * GL_RENDERBUFFER_HEIGHT = cgldef.GL_RENDERBUFFER_HEIGHT
 * GL_RENDERBUFFER_INTERNAL_FORMAT = cgldef.GL_RENDERBUFFER_INTERNAL_FORMAT
*/
  __pyx_t_2 = __Pyx_PyLong_From_int(GL_RENDERBUFFER_WIDTH); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 302, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_GL_RENDERBUFFER_WIDTH, __pyx_t_2) < (0)) __PYX_ERR(0, 302, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "kivy/graphics/opengl.pyx":303
 * GL_STENCIL_INDEX8 = cgldef.GL_STENCIL_INDEX8
 * GL_RENDERBUFFER_WIDTH = cgldef.GL_RENDERBUFFER_WIDTH
 * GL_RENDERBUFFER_HEIGHT = cgldef.GL_RENDERBUFFER_HEIGHT             # <<<<<<<<<<<<<<
 * GL_RENDERBUFFER_INTERNAL_FORMAT = cgldef.GL_RENDERBUFFER_INTERNAL_FORMAT
 * GL_RENDERBUFFER_RED_SIZE = cgldef.GL_RENDERBUFFER_RED_SIZE
*/
  __pyx_t_2 = __Pyx_PyLong_From_int(GL_RENDERBUFFER_HEIGHT); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 303, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_GL_RENDERBUFFER_HEIGHT, __pyx_t_2) < (0)) __PYX_ERR(0, 303, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "kivy/graphics/opengl.pyx":304
 * GL_RENDERBUFFER_WIDTH = cgldef.GL_RENDERBUFFER_WIDTH
 * GL_RENDERBUFFER_HEIGHT = cgldef.GL_RENDERBUFFER_HEIGHT
 * GL_RENDERBUFFER_INTERNAL_FORMAT = cgldef.GL_RENDERBUFFER_INTERNAL_FORMAT             # <<<<<<<<<<<<<<
 * GL_RENDERBUFFER_RED_SIZE = cgldef.GL_RENDERBUFFER_RED_SIZE
 * GL_RENDERBUFFER_GREEN_SIZE = cgldef.GL_RENDERBUFFER_GREEN_SIZE
*/
  __pyx_t_2 = __Pyx_PyLong_From_int(GL_RENDERBUFFER_INTERNAL_FORMAT); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 304, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_GL_RENDERBUFFER_INTERNAL_FORMAT, __pyx_t_2) < (0)) __PYX_ERR(0, 304, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "kivy/graphics/opengl.pyx":305
 * GL_RENDERBUFFER_HEIGHT = cgldef.GL_RENDERBUFFER_HEIGHT
 * GL_RENDERBUFFER_INTERNAL_FORMAT = cgldef.GL_RENDERBUFFER_INTERNAL_FORMAT
 * GL_RENDERBUFFER_RED_SIZE = cgldef.GL_RENDERBUFFER_RED_SIZE             # <<<<<<<<<<<<<<
 * GL_RENDERBUFFER_GREEN_SIZE = cgldef.GL_RENDERBUFFER_GREEN_SIZE
 * GL_RENDERBUFFER_BLUE_SIZE = cgldef.GL_RENDERBUFFER_BLUE_SIZE
*/
  __pyx_t_2 = __Pyx_PyLong_From_int(GL_RENDERBUFFER_RED_SIZE); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 305, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_GL_RENDERBUFFER_RED_SIZE, __pyx_t_2) < (0)) __PYX_ERR(0, 305, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "kivy/graphics/opengl.pyx":306
 * GL_RENDERBUFFER_INTERNAL_FORMAT = cgldef.GL_RENDERBUFFER_INTERNAL_FORMAT
 * GL_RENDERBUFFER_RED_SIZE = cgldef.GL_RENDERBUFFER_RED_SIZE
 * GL_RENDERBUFFER_GREEN_SIZE = cgldef.GL_RENDERBUFFER_GREEN_SIZE             # <<<<<<<<<<<<<<
 * GL_RENDERBUFFER_BLUE_SIZE = cgldef.GL_RENDERBUFFER_BLUE_SIZE
 * GL_RENDERBUFFER_ALPHA_SIZE = cgldef.GL_RENDERBUFFER_ALPHA_SIZE
*/
  __pyx_t_2 = __Pyx_PyLong_From_int(GL_RENDERBUFFER_GREEN_SIZE); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 306, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_GL_RENDERBUFFER_GREEN_SIZE, __pyx_t_2) < (0)) __PYX_ERR(0, 306, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "kivy/graphics/opengl.pyx":307
 * GL_RENDERBUFFER_RED_SIZE = cgldef.GL_RENDERBUFFER_RED_SIZE
 * GL_RENDERBUFFER_GREEN_SIZE = cgldef.GL_RENDERBUFFER_GREEN_SIZE
 * GL_RENDERBUFFER_BLUE_SIZE = cgldef.GL_RENDERBUFFER_BLUE_SIZE             # <<<<<<<<<<<<<<
 * GL_RENDERBUFFER_ALPHA_SIZE = cgldef.GL_RENDERBUFFER_ALPHA_SIZE
 * GL_RENDERBUFFER_DEPTH_SIZE = cgldef.GL_RENDERBUFFER_DEPTH_SIZE
*/
  __pyx_t_2 = __Pyx_PyLong_From_int(GL_RENDERBUFFER_BLUE_SIZE); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 307, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_GL_RENDERBUFFER_BLUE_SIZE, __pyx_t_2) < (0)) __PYX_ERR(0, 307, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "kivy/graphics/opengl.pyx":308
 * GL_RENDERBUFFER_GREEN_SIZE = cgldef.GL_RENDERBUFFER_GREEN_SIZE
 * GL_RENDERBUFFER_BLUE_SIZE = cgldef.GL_RENDERBUFFER_BLUE_SIZE
 * GL_RENDERBUFFER_ALPHA_SIZE = cgldef.GL_RENDERBUFFER_ALPHA_SIZE             # <<<<<<<<<<<<<<
 * GL_RENDERBUFFER_DEPTH_SIZE = cgldef.GL_RENDERBUFFER_DEPTH_SIZE
 * GL_RENDERBUFFER_STENCIL_SIZE = cgldef.GL_RENDERBUFFER_STENCIL_SIZE
*/
  __pyx_t_2 = __Pyx_PyLong_From_int(GL_RENDERBUFFER_ALPHA_SIZE); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 308, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_GL_RENDERBUFFER_ALPHA_SIZE, __pyx_t_2) < (0)) __PYX_ERR(0, 308, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "kivy/graphics/opengl.pyx":309
 * GL_RENDERBUFFER_BLUE_SIZE = cgldef.GL_RENDERBUFFER_BLUE_SIZE
 * GL_RENDERBUFFER_ALPHA_SIZE = cgldef.GL_RENDERBUFFER_ALPHA_SIZE
 * GL_RENDERBUFFER_DEPTH_SIZE = cgldef.GL_RENDERBUFFER_DEPTH_SIZE             # <<<<<<<<<<<<<<
 * GL_RENDERBUFFER_STENCIL_SIZE = cgldef.GL_RENDERBUFFER_STENCIL_SIZE
 * GL_FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE = cgldef.GL_FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE
*/
  __pyx_t_2 = __Pyx_PyLong_From_int(GL_RENDERBUFFER_DEPTH_SIZE); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 309, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_GL_RENDERBUFFER_DEPTH_SIZE, __pyx_t_2) < (0)) __PYX_ERR(0, 309, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "kivy/graphics/opengl.pyx":310
 * GL_RENDERBUFFER_ALPHA_SIZE = cgldef.GL_RENDERBUFFER_ALPHA_SIZE
 * GL_RENDERBUFFER_DEPTH_SIZE = cgldef.GL_RENDERBUFFER_DEPTH_SIZE
 * GL_RENDERBUFFER_STENCIL_SIZE = cgldef.GL_RENDERBUFFER_STENCIL_SIZE             # <<<<<<<<<<<<<<
 * GL_FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE = cgldef.GL_FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE
 * GL_FRAMEBUFFER_ATTACHMENT_OBJECT_NAME = cgldef.GL_FRAMEBUFFER_ATTACHMENT_OBJECT_NAME
*/
  __pyx_t_2 = __Pyx_PyLong_From_int(GL_RENDERBUFFER_STENCIL_SIZE); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 310, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_GL_RENDERBUFFER_STENCIL_SIZE, __pyx_t_2) < (0)) __PYX_ERR(0, 310, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "kivy/graphics/opengl.pyx":311
 * GL_RENDERBUFFER_DEPTH_SIZE = cgldef.GL_RENDERBUFFER_DEPTH_SIZE
 * GL_RENDERBUFFER_STENCIL_SIZE = cgldef.GL_RENDERBUFFER_STENCIL_SIZE
 * GL_FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE = cgldef.GL_FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE             # <<<<<<<<<<<<<<
 * GL_FRAMEBUFFER_ATTACHMENT_OBJECT_NAME = cgldef.GL_FRAMEBUFFER_ATTACHMENT_OBJECT_NAME
 * GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL = cgldef.GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL
*/
  __pyx_t_2 = __Pyx_PyLong_From_int(GL_FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 311, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_GL_FRAMEBUFFER_ATTACHMENT_OBJECT, __pyx_t_2) < (0)) __PYX_ERR(0, 311, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "kivy/graphics/opengl.pyx":312
 * GL_RENDERBUFFER_STENCIL_SIZE = cgldef.GL_RENDERBUFFER_STENCIL_SIZE
 * GL_FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE = cgldef.GL_FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE
 * GL_FRAMEBUFFER_ATTACHMENT_OBJECT_NAME = cgldef.GL_FRAMEBUFFER_ATTACHMENT_OBJECT_NAME             # <<<<<<<<<<<<<<
 * GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL = cgldef.GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL
 * GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE = cgldef.GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE
*/
  __pyx_t_2 = __Pyx_PyLong_From_int(GL_FRAMEBUFFER_ATTACHMENT_OBJECT_NAME); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 312, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_GL_FRAMEBUFFER_ATTACHMENT_OBJECT_2, __pyx_t_2) < (0)) __PYX_ERR(0, 312, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "kivy/graphics/opengl.pyx":313
 * GL_FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE = cgldef.GL_FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE
 * GL_FRAMEBUFFER_ATTACHMENT_OBJECT_NAME = cgldef.GL_FRAMEBUFFER_ATTACHMENT_OBJECT_NAME
 * GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL = cgldef.GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL             # <<<<<<<<<<<<<<
 * GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE = cgldef.GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE
 * GL_COLOR_ATTACHMENT0 = cgldef.GL_COLOR_ATTACHMENT0
*/
  __pyx_t_2 = __Pyx_PyLong_From_int(GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 313, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_GL_FRAMEBUFFER_ATTACHMENT_TEXTUR, __pyx_t_2) < (0)) __PYX_ERR(0, 313, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "kivy/graphics/opengl.pyx":314
 * GL_FRAMEBUFFER_ATTACHMENT_OBJECT_NAME = cgldef.GL_FRAMEBUFFER_ATTACHMENT_OBJECT_NAME
 * GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL = cgldef.GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL
 * GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE = cgldef.GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE             # <<<<<<<<<<<<<<
 * GL_COLOR_ATTACHMENT0 = cgldef.GL_COLOR_ATTACHMENT0
 * GL_DEPTH_ATTACHMENT = cgldef.GL_DEPTH_ATTACHMENT
*/
  __pyx_t_2 = __Pyx_PyLong_From_int(GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 314, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_GL_FRAMEBUFFER_ATTACHMENT_TEXTUR_2, __pyx_t_2) < (0)) __PYX_ERR(0, 314, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "kivy/graphics/opengl.pyx":315
 * GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL = cgldef.GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL
 * GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE = cgldef.GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE
 * GL_COLOR_ATTACHMENT0 = cgldef.GL_COLOR_ATTACHMENT0             # <<<<<<<<<<<<<<
 * GL_DEPTH_ATTACHMENT = cgldef.GL_DEPTH_ATTACHMENT
 * GL_STENCIL_ATTACHMENT = cgldef.GL_STENCIL_ATTACHMENT
*/
  __pyx_t_2 = __Pyx_PyLong_From_int(GL_COLOR_ATTACHMENT0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 315, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_GL_COLOR_ATTACHMENT0, __pyx_t_2) < (0)) __PYX_ERR(0, 315, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "kivy/graphics/opengl.pyx":316
 * GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE = cgldef.GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE
 * GL_COLOR_ATTACHMENT0 = cgldef.GL_COLOR_ATTACHMENT0
 * GL_DEPTH_ATTACHMENT = cgldef.GL_DEPTH_ATTACHMENT             # <<<<<<<<<<<<<<
 * GL_STENCIL_ATTACHMENT = cgldef.GL_STENCIL_ATTACHMENT
 * GL_NONE = cgldef.GL_NONE
*/
  __pyx_t_2 = __Pyx_PyLong_From_int(GL_DEPTH_ATTACHMENT); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 316, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_GL_DEPTH_ATTACHMENT, __pyx_t_2) < (0)) __PYX_ERR(0, 316, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "kivy/graphics/opengl.pyx":317
 * GL_COLOR_ATTACHMENT0 = cgldef.GL_COLOR_ATTACHMENT0
 * GL_DEPTH_ATTACHMENT = cgldef.GL_DEPTH_ATTACHMENT
 * GL_STENCIL_ATTACHMENT = cgldef.GL_STENCIL_ATTACHMENT             # <<<<<<<<<<<<<<
 * GL_NONE = cgldef.GL_NONE
 * GL_FRAMEBUFFER_COMPLETE = cgldef.GL_FRAMEBUFFER_COMPLETE
*/
  __pyx_t_2 = __Pyx_PyLong_From_int(GL_STENCIL_ATTACHMENT); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 317, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_GL_STENCIL_ATTACHMENT, __pyx_t_2) < (0)) __PYX_ERR(0, 317, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "kivy/graphics/opengl.pyx":318
 * GL_DEPTH_ATTACHMENT = cgldef.GL_DEPTH_ATTACHMENT
 * GL_STENCIL_ATTACHMENT = cgldef.GL_STENCIL_ATTACHMENT
 * GL_NONE = cgldef.GL_NONE             # <<<<<<<<<<<<<<
 * GL_FRAMEBUFFER_COMPLETE = cgldef.GL_FRAMEBUFFER_COMPLETE
 * GL_FRAMEBUFFER_INCOMPLETE_ATTACHMENT = cgldef.GL_FRAMEBUFFER_INCOMPLETE_ATTACHMENT
*/
  __pyx_t_2 = __Pyx_PyLong_From_int(GL_NONE); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 318, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_GL_NONE, __pyx_t_2) < (0)) __PYX_ERR(0, 318, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "kivy/graphics/opengl.pyx":319
 * GL_STENCIL_ATTACHMENT = cgldef.GL_STENCIL_ATTACHMENT
 * GL_NONE = cgldef.GL_NONE
 * GL_FRAMEBUFFER_COMPLETE = cgldef.GL_FRAMEBUFFER_COMPLETE             # <<<<<<<<<<<<<<
 * GL_FRAMEBUFFER_INCOMPLETE_ATTACHMENT = cgldef.GL_FRAMEBUFFER_INCOMPLETE_ATTACHMENT
 * GL_FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT = cgldef.GL_FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT
*/
  __pyx_t_2 = __Pyx_PyLong_From_int(GL_FRAMEBUFFER_COMPLETE); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 319, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_GL_FRAMEBUFFER_COMPLETE, __pyx_t_2) < (0)) __PYX_ERR(0, 319, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "kivy/graphics/opengl.pyx":320
 * GL_NONE = cgldef.GL_NONE
 * GL_FRAMEBUFFER_COMPLETE = cgldef.GL_FRAMEBUFFER_COMPLETE
 * GL_FRAMEBUFFER_INCOMPLETE_ATTACHMENT = cgldef.GL_FRAMEBUFFER_INCOMPLETE_ATTACHMENT             # <<<<<<<<<<<<<<
 * GL_FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT = cgldef.GL_FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT
 * GL_FRAMEBUFFER_UNSUPPORTED = cgldef.GL_FRAMEBUFFER_UNSUPPORTED
*/
  __pyx_t_2 = __Pyx_PyLong_From_int(GL_FRAMEBUFFER_INCOMPLETE_ATTACHMENT); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 320, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_GL_FRAMEBUFFER_INCOMPLETE_ATTACH, __pyx_t_2) < (0)) __PYX_ERR(0, 320, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "kivy/graphics/opengl.pyx":321
 * GL_FRAMEBUFFER_COMPLETE = cgldef.GL_FRAMEBUFFER_COMPLETE
 * GL_FRAMEBUFFER_INCOMPLETE_ATTACHMENT = cgldef.GL_FRAMEBUFFER_INCOMPLETE_ATTACHMENT
 * GL_FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT = cgldef.GL_FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT             # <<<<<<<<<<<<<<
 * GL_FRAMEBUFFER_UNSUPPORTED = cgldef.GL_FRAMEBUFFER_UNSUPPORTED
 * GL_FRAMEBUFFER_BINDING = cgldef.GL_FRAMEBUFFER_BINDING
*/
  __pyx_t_2 = __Pyx_PyLong_From_int(GL_FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 321, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_GL_FRAMEBUFFER_INCOMPLETE_MISSIN, __pyx_t_2) < (0)) __PYX_ERR(0, 321, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "kivy/graphics/opengl.pyx":322
 * GL_FRAMEBUFFER_INCOMPLETE_ATTACHMENT = cgldef.GL_FRAMEBUFFER_INCOMPLETE_ATTACHMENT
 * GL_FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT = cgldef.GL_FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT
 * GL_FRAMEBUFFER_UNSUPPORTED = cgldef.GL_FRAMEBUFFER_UNSUPPORTED             # <<<<<<<<<<<<<<
 * GL_FRAMEBUFFER_BINDING = cgldef.GL_FRAMEBUFFER_BINDING
 * GL_RENDERBUFFER_BINDING = cgldef.GL_RENDERBUFFER_BINDING
*/
  __pyx_t_2 = __Pyx_PyLong_From_int(GL_FRAMEBUFFER_UNSUPPORTED); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 322, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_GL_FRAMEBUFFER_UNSUPPORTED, __pyx_t_2) < (0)) __PYX_ERR(0, 322, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "kivy/graphics/opengl.pyx":323
 * GL_FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT = cgldef.GL_FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT
 * GL_FRAMEBUFFER_UNSUPPORTED = cgldef.GL_FRAMEBUFFER_UNSUPPORTED
 * GL_FRAMEBUFFER_BINDING = cgldef.GL_FRAMEBUFFER_BINDING             # <<<<<<<<<<<<<<
 * GL_RENDERBUFFER_BINDING = cgldef.GL_RENDERBUFFER_BINDING
 * GL_MAX_RENDERBUFFER_SIZE = cgldef.GL_MAX_RENDERBUFFER_SIZE
*/
  __pyx_t_2 = __Pyx_PyLong_From_int(GL_FRAMEBUFFER_BINDING); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 323, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_GL_FRAMEBUFFER_BINDING, __pyx_t_2) < (0)) __PYX_ERR(0, 323, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "kivy/graphics/opengl.pyx":324
 * GL_FRAMEBUFFER_UNSUPPORTED = cgldef.GL_FRAMEBUFFER_UNSUPPORTED
 * GL_FRAMEBUFFER_BINDING = cgldef.GL_FRAMEBUFFER_BINDING
 * GL_RENDERBUFFER_BINDING = cgldef.GL_RENDERBUFFER_BINDING             # <<<<<<<<<<<<<<
 * GL_MAX_RENDERBUFFER_SIZE = cgldef.GL_MAX_RENDERBUFFER_SIZE
 * GL_INVALID_FRAMEBUFFER_OPERATION = cgldef.GL_INVALID_FRAMEBUFFER_OPERATION
*/
  __pyx_t_2 = __Pyx_PyLong_From_int(GL_RENDERBUFFER_BINDING); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 324, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_GL_RENDERBUFFER_BINDING, __pyx_t_2) < (0)) __PYX_ERR(0, 324, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "kivy/graphics/opengl.pyx":325
 * GL_FRAMEBUFFER_BINDING = cgldef.GL_FRAMEBUFFER_BINDING
 * GL_RENDERBUFFER_BINDING = cgldef.GL_RENDERBUFFER_BINDING
 * GL_MAX_RENDERBUFFER_SIZE = cgldef.GL_MAX_RENDERBUFFER_SIZE             # <<<<<<<<<<<<<<
 * GL_INVALID_FRAMEBUFFER_OPERATION = cgldef.GL_INVALID_FRAMEBUFFER_OPERATION
 * 
*/
  __pyx_t_2 = __Pyx_PyLong_From_int(GL_MAX_RENDERBUFFER_SIZE); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 325, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_GL_MAX_RENDERBUFFER_SIZE, __pyx_t_2) < (0)) __PYX_ERR(0, 325, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "kivy/graphics/opengl.pyx":326
 * GL_RENDERBUFFER_BINDING = cgldef.GL_RENDERBUFFER_BINDING
 * GL_MAX_RENDERBUFFER_SIZE = cgldef.GL_MAX_RENDERBUFFER_SIZE
 * GL_INVALID_FRAMEBUFFER_OPERATION = cgldef.GL_INVALID_FRAMEBUFFER_OPERATION             # <<<<<<<<<<<<<<
 * 
 * # not working with GL standard include
*/
  __pyx_t_2 = __Pyx_PyLong_From_int(GL_INVALID_FRAMEBUFFER_OPERATION); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 326, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_GL_INVALID_FRAMEBUFFER_OPERATION, __pyx_t_2) < (0)) __PYX_ERR(0, 326, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "kivy/graphics/opengl.pyx":329
 * 
 * # not working with GL standard include
 * GL_SHADER_BINARY_FORMATS = cgldef.GL_SHADER_BINARY_FORMATS             # <<<<<<<<<<<<<<
 * GL_RGB565 = cgldef.GL_RGB565
 * GL_FRAMEBUFFER_INCOMPLETE_DIMENSIONS = cgldef.GL_FRAMEBUFFER_INCOMPLETE_DIMENSIONS
*/
  __pyx_t_2 = __Pyx_PyLong_From_int(GL_SHADER_BINARY_FORMATS); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 329, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_GL_SHADER_BINARY_FORMATS, __pyx_t_2) < (0)) __PYX_ERR(0, 329, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "kivy/graphics/opengl.pyx":330
 * # not working with GL standard include
 * GL_SHADER_BINARY_FORMATS = cgldef.GL_SHADER_BINARY_FORMATS
 * GL_RGB565 = cgldef.GL_RGB565             # <<<<<<<<<<<<<<
 * GL_FRAMEBUFFER_INCOMPLETE_DIMENSIONS = cgldef.GL_FRAMEBUFFER_INCOMPLETE_DIMENSIONS
 * 
*/
  __pyx_t_2 = __Pyx_PyLong_From_int(GL_RGB565); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 330, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_GL_RGB565, __pyx_t_2) < (0)) __PYX_ERR(0, 330, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "kivy/graphics/opengl.pyx":331
 * GL_SHADER_BINARY_FORMATS = cgldef.GL_SHADER_BINARY_FORMATS
 * GL_RGB565 = cgldef.GL_RGB565
 * GL_FRAMEBUFFER_INCOMPLETE_DIMENSIONS = cgldef.GL_FRAMEBUFFER_INCOMPLETE_DIMENSIONS             # <<<<<<<<<<<<<<
 * 
 * # glGet*v
*/
  __pyx_t_2 = __Pyx_PyLong_From_int(GL_FRAMEBUFFER_INCOMPLETE_DIMENSIONS); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 331, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_GL_FRAMEBUFFER_INCOMPLETE_DIMENS, __pyx_t_2) < (0)) __PYX_ERR(0, 331, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "kivy/graphics/opengl.pyx":336
 * # Note: there are more, this is just what *my* hardware can find...
 * _GL_GET_SIZE = {
 *     GL_ACTIVE_TEXTURE: 1,             # <<<<<<<<<<<<<<
 *     GL_ALIASED_LINE_WIDTH_RANGE: 2,
 *     GL_ALIASED_POINT_SIZE_RANGE: 2,
*/
  __pyx_t_2 = __Pyx_PyDict_NewPresized(76); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 336, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_GL_ACTIVE_TEXTURE); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 336, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  if (PyDict_SetItem(__pyx_t_2, __pyx_t_4, __pyx_mstate_global->__pyx_int_1) < (0)) __PYX_ERR(0, 336, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "kivy/graphics/opengl.pyx":337
 * _GL_GET_SIZE = {
 *     GL_ACTIVE_TEXTURE: 1,
 *     GL_ALIASED_LINE_WIDTH_RANGE: 2,             # <<<<<<<<<<<<<<
 *     GL_ALIASED_POINT_SIZE_RANGE: 2,
 *     GL_ALPHA_BITS: 1,
*/
  __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_GL_ALIASED_LINE_WIDTH_RANGE); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 337, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  if (PyDict_SetItem(__pyx_t_2, __pyx_t_4, __pyx_mstate_global->__pyx_int_2) < (0)) __PYX_ERR(0, 336, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "kivy/graphics/opengl.pyx":338
 *     GL_ACTIVE_TEXTURE: 1,
 *     GL_ALIASED_LINE_WIDTH_RANGE: 2,
 *     GL_ALIASED_POINT_SIZE_RANGE: 2,             # <<<<<<<<<<<<<<
 *     GL_ALPHA_BITS: 1,
 *     GL_ARRAY_BUFFER_BINDING: 1,
*/
  __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_GL_ALIASED_POINT_SIZE_RANGE); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 338, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  if (PyDict_SetItem(__pyx_t_2, __pyx_t_4, __pyx_mstate_global->__pyx_int_2) < (0)) __PYX_ERR(0, 336, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "kivy/graphics/opengl.pyx":339
 *     GL_ALIASED_LINE_WIDTH_RANGE: 2,
 *     GL_ALIASED_POINT_SIZE_RANGE: 2,
 *     GL_ALPHA_BITS: 1,             # <<<<<<<<<<<<<<
 *     GL_ARRAY_BUFFER_BINDING: 1,
 *     GL_BLEND: 1,
*/
  __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_GL_ALPHA_BITS); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 339, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  if (PyDict_SetItem(__pyx_t_2, __pyx_t_4, __pyx_mstate_global->__pyx_int_1) < (0)) __PYX_ERR(0, 336, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "kivy/graphics/opengl.pyx":340
 *     GL_ALIASED_POINT_SIZE_RANGE: 2,
 *     GL_ALPHA_BITS: 1,
 *     GL_ARRAY_BUFFER_BINDING: 1,             # <<<<<<<<<<<<<<
 *     GL_BLEND: 1,
 *     GL_BLEND_COLOR: 4,
*/
  __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_GL_ARRAY_BUFFER_BINDING); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 340, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  if (PyDict_SetItem(__pyx_t_2, __pyx_t_4, __pyx_mstate_global->__pyx_int_1) < (0)) __PYX_ERR(0, 336, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "kivy/graphics/opengl.pyx":341
 *     GL_ALPHA_BITS: 1,
 *     GL_ARRAY_BUFFER_BINDING: 1,
 *     GL_BLEND: 1,             # <<<<<<<<<<<<<<
 *     GL_BLEND_COLOR: 4,
 *     GL_BLEND_DST_ALPHA: 1,
*/
  __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_GL_BLEND); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 341, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  if (PyDict_SetItem(__pyx_t_2, __pyx_t_4, __pyx_mstate_global->__pyx_int_1) < (0)) __PYX_ERR(0, 336, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "kivy/graphics/opengl.pyx":342
 *     GL_ARRAY_BUFFER_BINDING: 1,
 *     GL_BLEND: 1,
 *     GL_BLEND_COLOR: 4,             # <<<<<<<<<<<<<<
 *     GL_BLEND_DST_ALPHA: 1,
 *     GL_BLEND_DST_RGB: 1,
*/
  __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_GL_BLEND_COLOR); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 342, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  if (PyDict_SetItem(__pyx_t_2, __pyx_t_4, __pyx_mstate_global->__pyx_int_4) < (0)) __PYX_ERR(0, 336, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "kivy/graphics/opengl.pyx":343
 *     GL_BLEND: 1,
 *     GL_BLEND_COLOR: 4,
 *     GL_BLEND_DST_ALPHA: 1,             # <<<<<<<<<<<<<<
 *     GL_BLEND_DST_RGB: 1,
 *     GL_BLEND_EQUATION_ALPHA: 1,
*/
  __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_GL_BLEND_DST_ALPHA); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 343, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  if (PyDict_SetItem(__pyx_t_2, __pyx_t_4, __pyx_mstate_global->__pyx_int_1) < (0)) __PYX_ERR(0, 336, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "kivy/graphics/opengl.pyx":344
 *     GL_BLEND_COLOR: 4,
 *     GL_BLEND_DST_ALPHA: 1,
 *     GL_BLEND_DST_RGB: 1,             # <<<<<<<<<<<<<<
 *     GL_BLEND_EQUATION_ALPHA: 1,
 *     GL_BLEND_EQUATION_RGB: 1,
*/
  __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_GL_BLEND_DST_RGB); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 344, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  if (PyDict_SetItem(__pyx_t_2, __pyx_t_4, __pyx_mstate_global->__pyx_int_1) < (0)) __PYX_ERR(0, 336, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "kivy/graphics/opengl.pyx":345
 *     GL_BLEND_DST_ALPHA: 1,
 *     GL_BLEND_DST_RGB: 1,
 *     GL_BLEND_EQUATION_ALPHA: 1,             # <<<<<<<<<<<<<<
 *     GL_BLEND_EQUATION_RGB: 1,
 *     GL_BLEND_SRC_ALPHA: 1,
*/
  __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_GL_BLEND_EQUATION_ALPHA); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 345, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  if (PyDict_SetItem(__pyx_t_2, __pyx_t_4, __pyx_mstate_global->__pyx_int_1) < (0)) __PYX_ERR(0, 336, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "kivy/graphics/opengl.pyx":346
 *     GL_BLEND_DST_RGB: 1,
 *     GL_BLEND_EQUATION_ALPHA: 1,
 *     GL_BLEND_EQUATION_RGB: 1,             # <<<<<<<<<<<<<<
 *     GL_BLEND_SRC_ALPHA: 1,
 *     GL_BLEND_SRC_RGB: 1,
*/
  __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_GL_BLEND_EQUATION_RGB); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 346, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  if (PyDict_SetItem(__pyx_t_2, __pyx_t_4, __pyx_mstate_global->__pyx_int_1) < (0)) __PYX_ERR(0, 336, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "kivy/graphics/opengl.pyx":347
 *     GL_BLEND_EQUATION_ALPHA: 1,
 *     GL_BLEND_EQUATION_RGB: 1,
 *     GL_BLEND_SRC_ALPHA: 1,             # <<<<<<<<<<<<<<
 *     GL_BLEND_SRC_RGB: 1,
 *     GL_BLUE_BITS: 1,
*/
  __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_GL_BLEND_SRC_ALPHA); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 347, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  if (PyDict_SetItem(__pyx_t_2, __pyx_t_4, __pyx_mstate_global->__pyx_int_1) < (0)) __PYX_ERR(0, 336, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "kivy/graphics/opengl.pyx":348
 *     GL_BLEND_EQUATION_RGB: 1,
 *     GL_BLEND_SRC_ALPHA: 1,
 *     GL_BLEND_SRC_RGB: 1,             # <<<<<<<<<<<<<<
 *     GL_BLUE_BITS: 1,
 *     GL_COLOR_CLEAR_VALUE: 4,
*/
  __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_GL_BLEND_SRC_RGB); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 348, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  if (PyDict_SetItem(__pyx_t_2, __pyx_t_4, __pyx_mstate_global->__pyx_int_1) < (0)) __PYX_ERR(0, 336, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "kivy/graphics/opengl.pyx":349
 *     GL_BLEND_SRC_ALPHA: 1,
 *     GL_BLEND_SRC_RGB: 1,
 *     GL_BLUE_BITS: 1,             # <<<<<<<<<<<<<<
 *     GL_COLOR_CLEAR_VALUE: 4,
 *     GL_COLOR_WRITEMASK: 4,
*/
  __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_GL_BLUE_BITS); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 349, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  if (PyDict_SetItem(__pyx_t_2, __pyx_t_4, __pyx_mstate_global->__pyx_int_1) < (0)) __PYX_ERR(0, 336, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "kivy/graphics/opengl.pyx":350
 *     GL_BLEND_SRC_RGB: 1,
 *     GL_BLUE_BITS: 1,
 *     GL_COLOR_CLEAR_VALUE: 4,             # <<<<<<<<<<<<<<
 *     GL_COLOR_WRITEMASK: 4,
 *     GL_COMPRESSED_TEXTURE_FORMATS: cgldef.GL_NUM_COMPRESSED_TEXTURE_FORMATS,
*/
  __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_GL_COLOR_CLEAR_VALUE); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 350, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  if (PyDict_SetItem(__pyx_t_2, __pyx_t_4, __pyx_mstate_global->__pyx_int_4) < (0)) __PYX_ERR(0, 336, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "kivy/graphics/opengl.pyx":351
 *     GL_BLUE_BITS: 1,
 *     GL_COLOR_CLEAR_VALUE: 4,
 *     GL_COLOR_WRITEMASK: 4,             # <<<<<<<<<<<<<<
 *     GL_COMPRESSED_TEXTURE_FORMATS: cgldef.GL_NUM_COMPRESSED_TEXTURE_FORMATS,
 *     GL_CULL_FACE: 1,
*/
  __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_GL_COLOR_WRITEMASK); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 351, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  if (PyDict_SetItem(__pyx_t_2, __pyx_t_4, __pyx_mstate_global->__pyx_int_4) < (0)) __PYX_ERR(0, 336, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;

  /* "kivy/graphics/opengl.pyx":352
 *     GL_COLOR_CLEAR_VALUE: 4,
 *     GL_COLOR_WRITEMASK: 4,
 *     GL_COMPRESSED_TEXTURE_FORMATS: cgldef.GL_NUM_COMPRESSED_TEXTURE_FORMATS,             # <<<<<<<<<<<<<<
 *     GL_CULL_FACE: 1,
 *     GL_CULL_FACE_MODE: 1,
*/
  __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_GL_COMPRESSED_TEXTURE_FORMATS); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 352, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_5 = __Pyx_PyLong_From_int(GL_NUM_COMPRESSED_TEXTURE_FORMATS); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 352, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  if (PyDict_SetItem(__pyx_t_2, __pyx_t_4, __pyx_t_5) < (0)) __PYX_ERR(0, 336, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

  /* "kivy/graphics/opengl.pyx":353
 *     GL_COLOR_WRITEMASK: 4,
 *     GL_COMPRESSED_TEXTURE_FORMATS: cgldef.GL_NUM_COMPRESSED_TEXTURE_FORMATS,
 *     GL_CULL_FACE: 1,             # <<<<<<<<<<<<<<
 *     GL_CULL_FACE_MODE: 1,
 *     GL_CURRENT_PROGRAM: 1,
*/
  __Pyx_GetModuleGlobalName(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_GL_CULL_FACE); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 353, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  if (PyDict_SetItem(__pyx_t_2, __pyx_t_5, __pyx_mstate_global->__pyx_int_1) < (0)) __PYX_ERR(0, 336, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

  /* "kivy/graphics/opengl.pyx":354
 *     GL_COMPRESSED_TEXTURE_FORMATS: cgldef.GL_NUM_COMPRESSED_TEXTURE_FORMATS,
 *     GL_CULL_FACE: 1,
 *     GL_CULL_FACE_MODE: 1,             # <<<<<<<<<<<<<<
 *     GL_CURRENT_PROGRAM: 1,
 *     GL_DEPTH_BITS: 1,
*/
  __Pyx_GetModuleGlobalName(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_GL_CULL_FACE_MODE); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 354, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  if (PyDict_SetItem(__pyx_t_2, __pyx_t_5, __pyx_mstate_global->__pyx_int_1) < (0)) __PYX_ERR(0, 336, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

  /* "kivy/graphics/opengl.pyx":355
 *     GL_CULL_FACE: 1,
 *     GL_CULL_FACE_MODE: 1,
 *     GL_CURRENT_PROGRAM: 1,             # <<<<<<<<<<<<<<
 *     GL_DEPTH_BITS: 1,
 *     GL_DEPTH_CLEAR_VALUE: 1,
*/
  __Pyx_GetModuleGlobalName(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_GL_CURRENT_PROGRAM); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 355, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  if (PyDict_SetItem(__pyx_t_2, __pyx_t_5, __pyx_mstate_global->__pyx_int_1) < (0)) __PYX_ERR(0, 336, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

  /* "kivy/graphics/opengl.pyx":356
 *     GL_CULL_FACE_MODE: 1,
 *     GL_CURRENT_PROGRAM: 1,
 *     GL_DEPTH_BITS: 1,             # <<<<<<<<<<<<<<
 *     GL_DEPTH_CLEAR_VALUE: 1,
 *     GL_DEPTH_FUNC: 1,
*/
  __Pyx_GetModuleGlobalName(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_GL_DEPTH_BITS); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 356, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  if (PyDict_SetItem(__pyx_t_2, __pyx_t_5, __pyx_mstate_global->__pyx_int_1) < (0)) __PYX_ERR(0, 336, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

  /* "kivy/graphics/opengl.pyx":357
 *     GL_CURRENT_PROGRAM: 1,
 *     GL_DEPTH_BITS: 1,
 *     GL_DEPTH_CLEAR_VALUE: 1,             # <<<<<<<<<<<<<<
 *     GL_DEPTH_FUNC: 1,
 *     GL_DEPTH_RANGE: 2,
*/
  __Pyx_GetModuleGlobalName(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_GL_DEPTH_CLEAR_VALUE); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 357, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  if (PyDict_SetItem(__pyx_t_2, __pyx_t_5, __pyx_mstate_global->__pyx_int_1) < (0)) __PYX_ERR(0, 336, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

  /* "kivy/graphics/opengl.pyx":358
 *     GL_DEPTH_BITS: 1,
 *     GL_DEPTH_CLEAR_VALUE: 1,
 *     GL_DEPTH_FUNC: 1,             # <<<<<<<<<<<<<<
 *     GL_DEPTH_RANGE: 2,
 *     GL_DEPTH_TEST: 1,
*/
  __Pyx_GetModuleGlobalName(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_GL_DEPTH_FUNC); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 358, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  if (PyDict_SetItem(__pyx_t_2, __pyx_t_5, __pyx_mstate_global->__pyx_int_1) < (0)) __PYX_ERR(0, 336, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

  /* "kivy/graphics/opengl.pyx":359
 *     GL_DEPTH_CLEAR_VALUE: 1,
 *     GL_DEPTH_FUNC: 1,
 *     GL_DEPTH_RANGE: 2,             # <<<<<<<<<<<<<<
 *     GL_DEPTH_TEST: 1,
 *     GL_DEPTH_WRITEMASK: 1,
*/
  __Pyx_GetModuleGlobalName(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_GL_DEPTH_RANGE); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 359, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  if (PyDict_SetItem(__pyx_t_2, __pyx_t_5, __pyx_mstate_global->__pyx_int_2) < (0)) __PYX_ERR(0, 336, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

  /* "kivy/graphics/opengl.pyx":360
 *     GL_DEPTH_FUNC: 1,
 *     GL_DEPTH_RANGE: 2,
 *     GL_DEPTH_TEST: 1,             # <<<<<<<<<<<<<<
 *     GL_DEPTH_WRITEMASK: 1,
 *     GL_DITHER: 1,
*/
  __Pyx_GetModuleGlobalName(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_GL_DEPTH_TEST); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 360, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  if (PyDict_SetItem(__pyx_t_2, __pyx_t_5, __pyx_mstate_global->__pyx_int_1) < (0)) __PYX_ERR(0, 336, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

  /* "kivy/graphics/opengl.pyx":361
 *     GL_DEPTH_RANGE: 2,
 *     GL_DEPTH_TEST: 1,
 *     GL_DEPTH_WRITEMASK: 1,             # <<<<<<<<<<<<<<
 *     GL_DITHER: 1,
 *     GL_ELEMENT_ARRAY_BUFFER_BINDING: 1,
*/
  __Pyx_GetModuleGlobalName(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_GL_DEPTH_WRITEMASK); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 361, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  if (PyDict_SetItem(__pyx_t_2, __pyx_t_5, __pyx_mstate_global->__pyx_int_1) < (0)) __PYX_ERR(0, 336, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

  /* "kivy/graphics/opengl.pyx":362
 *     GL_DEPTH_TEST: 1,
 *     GL_DEPTH_WRITEMASK: 1,
 *     GL_DITHER: 1,             # <<<<<<<<<<<<<<
 *     GL_ELEMENT_ARRAY_BUFFER_BINDING: 1,
 *     GL_FRAMEBUFFER_BINDING: 1,
*/
  __Pyx_GetModuleGlobalName(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_GL_DITHER); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 362, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  if (PyDict_SetItem(__pyx_t_2, __pyx_t_5, __pyx_mstate_global->__pyx_int_1) < (0)) __PYX_ERR(0, 336, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

  /* "kivy/graphics/opengl.pyx":363
 *     GL_DEPTH_WRITEMASK: 1,
 *     GL_DITHER: 1,
 *     GL_ELEMENT_ARRAY_BUFFER_BINDING: 1,             # <<<<<<<<<<<<<<
 *     GL_FRAMEBUFFER_BINDING: 1,
 *     GL_FRONT_FACE: 1,
*/
  __Pyx_GetModuleGlobalName(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_GL_ELEMENT_ARRAY_BUFFER_BINDING); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 363, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  if (PyDict_SetItem(__pyx_t_2, __pyx_t_5, __pyx_mstate_global->__pyx_int_1) < (0)) __PYX_ERR(0, 336, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

  /* "kivy/graphics/opengl.pyx":364
 *     GL_DITHER: 1,
 *     GL_ELEMENT_ARRAY_BUFFER_BINDING: 1,
 *     GL_FRAMEBUFFER_BINDING: 1,             # <<<<<<<<<<<<<<
 *     GL_FRONT_FACE: 1,
 *     GL_GENERATE_MIPMAP_HINT: 1,
*/
  __Pyx_GetModuleGlobalName(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_GL_FRAMEBUFFER_BINDING); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 364, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  if (PyDict_SetItem(__pyx_t_2, __pyx_t_5, __pyx_mstate_global->__pyx_int_1) < (0)) __PYX_ERR(0, 336, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

  /* "kivy/graphics/opengl.pyx":365
 *     GL_ELEMENT_ARRAY_BUFFER_BINDING: 1,
 *     GL_FRAMEBUFFER_BINDING: 1,
 *     GL_FRONT_FACE: 1,             # <<<<<<<<<<<<<<
 *     GL_GENERATE_MIPMAP_HINT: 1,
 *     GL_GREEN_BITS: 1,
*/
  __Pyx_GetModuleGlobalName(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_GL_FRONT_FACE); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 365, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  if (PyDict_SetItem(__pyx_t_2, __pyx_t_5, __pyx_mstate_global->__pyx_int_1) < (0)) __PYX_ERR(0, 336, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

  /* "kivy/graphics/opengl.pyx":366
 *     GL_FRAMEBUFFER_BINDING: 1,
 *     GL_FRONT_FACE: 1,
 *     GL_GENERATE_MIPMAP_HINT: 1,             # <<<<<<<<<<<<<<
 *     GL_GREEN_BITS: 1,
 *     GL_LINE_WIDTH: 1,
*/
  __Pyx_GetModuleGlobalName(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_GL_GENERATE_MIPMAP_HINT); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 366, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  if (PyDict_SetItem(__pyx_t_2, __pyx_t_5, __pyx_mstate_global->__pyx_int_1) < (0)) __PYX_ERR(0, 336, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

  /* "kivy/graphics/opengl.pyx":367
 *     GL_FRONT_FACE: 1,
 *     GL_GENERATE_MIPMAP_HINT: 1,
 *     GL_GREEN_BITS: 1,             # <<<<<<<<<<<<<<
 *     GL_LINE_WIDTH: 1,
 *     GL_MAX_COMBINED_TEXTURE_IMAGE_UNITS: 1,
*/
  __Pyx_GetModuleGlobalName(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_GL_GREEN_BITS); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 367, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  if (PyDict_SetItem(__pyx_t_2, __pyx_t_5, __pyx_mstate_global->__pyx_int_1) < (0)) __PYX_ERR(0, 336, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

  /* "kivy/graphics/opengl.pyx":368
 *     GL_GENERATE_MIPMAP_HINT: 1,
 *     GL_GREEN_BITS: 1,
 *     GL_LINE_WIDTH: 1,             # <<<<<<<<<<<<<<
 *     GL_MAX_COMBINED_TEXTURE_IMAGE_UNITS: 1,
 *     GL_MAX_CUBE_MAP_TEXTURE_SIZE: 1,
*/
  __Pyx_GetModuleGlobalName(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_GL_LINE_WIDTH); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 368, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  if (PyDict_SetItem(__pyx_t_2, __pyx_t_5, __pyx_mstate_global->__pyx_int_1) < (0)) __PYX_ERR(0, 336, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

  /* "kivy/graphics/opengl.pyx":369
 *     GL_GREEN_BITS: 1,
 *     GL_LINE_WIDTH: 1,
 *     GL_MAX_COMBINED_TEXTURE_IMAGE_UNITS: 1,             # <<<<<<<<<<<<<<
 *     GL_MAX_CUBE_MAP_TEXTURE_SIZE: 1,
 *     GL_MAX_RENDERBUFFER_SIZE: 1,
*/
  __Pyx_GetModuleGlobalName(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_GL_MAX_COMBINED_TEXTURE_IMAGE_UN); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 369, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  if (PyDict_SetItem(__pyx_t_2, __pyx_t_5, __pyx_mstate_global->__pyx_int_1) < (0)) __PYX_ERR(0, 336, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

  /* "kivy/graphics/opengl.pyx":370
 *     GL_LINE_WIDTH: 1,
 *     GL_MAX_COMBINED_TEXTURE_IMAGE_UNITS: 1,
 *     GL_MAX_CUBE_MAP_TEXTURE_SIZE: 1,             # <<<<<<<<<<<<<<
 *     GL_MAX_RENDERBUFFER_SIZE: 1,
 *     GL_MAX_TEXTURE_IMAGE_UNITS: 1,
*/
  __Pyx_GetModuleGlobalName(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_GL_MAX_CUBE_MAP_TEXTURE_SIZE); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 370, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  if (PyDict_SetItem(__pyx_t_2, __pyx_t_5, __pyx_mstate_global->__pyx_int_1) < (0)) __PYX_ERR(0, 336, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

  /* "kivy/graphics/opengl.pyx":371
 *     GL_MAX_COMBINED_TEXTURE_IMAGE_UNITS: 1,
 *     GL_MAX_CUBE_MAP_TEXTURE_SIZE: 1,
 *     GL_MAX_RENDERBUFFER_SIZE: 1,             # <<<<<<<<<<<<<<
 *     GL_MAX_TEXTURE_IMAGE_UNITS: 1,
 *     GL_MAX_TEXTURE_SIZE: 1,
*/
  __Pyx_GetModuleGlobalName(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_GL_MAX_RENDERBUFFER_SIZE); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 371, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  if (PyDict_SetItem(__pyx_t_2, __pyx_t_5, __pyx_mstate_global->__pyx_int_1) < (0)) __PYX_ERR(0, 336, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

  /* "kivy/graphics/opengl.pyx":372
 *     GL_MAX_CUBE_MAP_TEXTURE_SIZE: 1,
 *     GL_MAX_RENDERBUFFER_SIZE: 1,
 *     GL_MAX_TEXTURE_IMAGE_UNITS: 1,             # <<<<<<<<<<<<<<
 *     GL_MAX_TEXTURE_SIZE: 1,
 *     GL_MAX_VERTEX_ATTRIBS: 1,
*/
  __Pyx_GetModuleGlobalName(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_GL_MAX_TEXTURE_IMAGE_UNITS); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 372, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  if (PyDict_SetItem(__pyx_t_2, __pyx_t_5, __pyx_mstate_global->__pyx_int_1) < (0)) __PYX_ERR(0, 336, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

  /* "kivy/graphics/opengl.pyx":373
 *     GL_MAX_RENDERBUFFER_SIZE: 1,
 *     GL_MAX_TEXTURE_IMAGE_UNITS: 1,
 *     GL_MAX_TEXTURE_SIZE: 1,             # <<<<<<<<<<<<<<
 *     GL_MAX_VERTEX_ATTRIBS: 1,
 *     GL_MAX_VERTEX_TEXTURE_IMAGE_UNITS: 1,
*/
  __Pyx_GetModuleGlobalName(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_GL_MAX_TEXTURE_SIZE); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 373, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  if (PyDict_SetItem(__pyx_t_2, __pyx_t_5, __pyx_mstate_global->__pyx_int_1) < (0)) __PYX_ERR(0, 336, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

  /* "kivy/graphics/opengl.pyx":374
 *     GL_MAX_TEXTURE_IMAGE_UNITS: 1,
 *     GL_MAX_TEXTURE_SIZE: 1,
 *     GL_MAX_VERTEX_ATTRIBS: 1,             # <<<<<<<<<<<<<<
 *     GL_MAX_VERTEX_TEXTURE_IMAGE_UNITS: 1,
 *     GL_MAX_VIEWPORT_DIMS: 2,
*/
  __Pyx_GetModuleGlobalName(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_GL_MAX_VERTEX_ATTRIBS); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 374, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  if (PyDict_SetItem(__pyx_t_2, __pyx_t_5, __pyx_mstate_global->__pyx_int_1) < (0)) __PYX_ERR(0, 336, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

  /* "kivy/graphics/opengl.pyx":375
 *     GL_MAX_TEXTURE_SIZE: 1,
 *     GL_MAX_VERTEX_ATTRIBS: 1,
 *     GL_MAX_VERTEX_TEXTURE_IMAGE_UNITS: 1,             # <<<<<<<<<<<<<<
 *     GL_MAX_VIEWPORT_DIMS: 2,
 *     GL_NUM_COMPRESSED_TEXTURE_FORMATS: 1,
*/
  __Pyx_GetModuleGlobalName(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_GL_MAX_VERTEX_TEXTURE_IMAGE_UNIT); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 375, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  if (PyDict_SetItem(__pyx_t_2, __pyx_t_5, __pyx_mstate_global->__pyx_int_1) < (0)) __PYX_ERR(0, 336, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

  /* "kivy/graphics/opengl.pyx":376
 *     GL_MAX_VERTEX_ATTRIBS: 1,
 *     GL_MAX_VERTEX_TEXTURE_IMAGE_UNITS: 1,
 *     GL_MAX_VIEWPORT_DIMS: 2,             # <<<<<<<<<<<<<<
 *     GL_NUM_COMPRESSED_TEXTURE_FORMATS: 1,
 *     GL_PACK_ALIGNMENT: 1,
*/
  __Pyx_GetModuleGlobalName(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_GL_MAX_VIEWPORT_DIMS); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 376, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  if (PyDict_SetItem(__pyx_t_2, __pyx_t_5, __pyx_mstate_global->__pyx_int_2) < (0)) __PYX_ERR(0, 336, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

  /* "kivy/graphics/opengl.pyx":377
 *     GL_MAX_VERTEX_TEXTURE_IMAGE_UNITS: 1,
 *     GL_MAX_VIEWPORT_DIMS: 2,
 *     GL_NUM_COMPRESSED_TEXTURE_FORMATS: 1,             # <<<<<<<<<<<<<<
 *     GL_PACK_ALIGNMENT: 1,
 *     GL_POLYGON_OFFSET_FACTOR: 1,
*/
  __Pyx_GetModuleGlobalName(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_GL_NUM_COMPRESSED_TEXTURE_FORMAT); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 377, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  if (PyDict_SetItem(__pyx_t_2, __pyx_t_5, __pyx_mstate_global->__pyx_int_1) < (0)) __PYX_ERR(0, 336, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

  /* "kivy/graphics/opengl.pyx":378
 *     GL_MAX_VIEWPORT_DIMS: 2,
 *     GL_NUM_COMPRESSED_TEXTURE_FORMATS: 1,
 *     GL_PACK_ALIGNMENT: 1,             # <<<<<<<<<<<<<<
 *     GL_POLYGON_OFFSET_FACTOR: 1,
 *     GL_POLYGON_OFFSET_FILL: 1,
*/
  __Pyx_GetModuleGlobalName(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_GL_PACK_ALIGNMENT); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 378, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  if (PyDict_SetItem(__pyx_t_2, __pyx_t_5, __pyx_mstate_global->__pyx_int_1) < (0)) __PYX_ERR(0, 336, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

  /* "kivy/graphics/opengl.pyx":379
 *     GL_NUM_COMPRESSED_TEXTURE_FORMATS: 1,
 *     GL_PACK_ALIGNMENT: 1,
 *     GL_POLYGON_OFFSET_FACTOR: 1,             # <<<<<<<<<<<<<<
 *     GL_POLYGON_OFFSET_FILL: 1,
 *     GL_POLYGON_OFFSET_UNITS: 1,
*/
  __Pyx_GetModuleGlobalName(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_GL_POLYGON_OFFSET_FACTOR); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 379, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  if (PyDict_SetItem(__pyx_t_2, __pyx_t_5, __pyx_mstate_global->__pyx_int_1) < (0)) __PYX_ERR(0, 336, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

  /* "kivy/graphics/opengl.pyx":380
 *     GL_PACK_ALIGNMENT: 1,
 *     GL_POLYGON_OFFSET_FACTOR: 1,
 *     GL_POLYGON_OFFSET_FILL: 1,             # <<<<<<<<<<<<<<
 *     GL_POLYGON_OFFSET_UNITS: 1,
 *     GL_RED_BITS: 1,
*/
  __Pyx_GetModuleGlobalName(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_GL_POLYGON_OFFSET_FILL); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 380, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  if (PyDict_SetItem(__pyx_t_2, __pyx_t_5, __pyx_mstate_global->__pyx_int_1) < (0)) __PYX_ERR(0, 336, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

  /* "kivy/graphics/opengl.pyx":381
 *     GL_POLYGON_OFFSET_FACTOR: 1,
 *     GL_POLYGON_OFFSET_FILL: 1,
 *     GL_POLYGON_OFFSET_UNITS: 1,             # <<<<<<<<<<<<<<
 *     GL_RED_BITS: 1,
 *     GL_RENDERBUFFER_BINDING: 1,
*/
  __Pyx_GetModuleGlobalName(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_GL_POLYGON_OFFSET_UNITS); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 381, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  if (PyDict_SetItem(__pyx_t_2, __pyx_t_5, __pyx_mstate_global->__pyx_int_1) < (0)) __PYX_ERR(0, 336, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

  /* "kivy/graphics/opengl.pyx":382
 *     GL_POLYGON_OFFSET_FILL: 1,
 *     GL_POLYGON_OFFSET_UNITS: 1,
 *     GL_RED_BITS: 1,             # <<<<<<<<<<<<<<
 *     GL_RENDERBUFFER_BINDING: 1,
 *     GL_SAMPLE_BUFFERS: 1,
*/
  __Pyx_GetModuleGlobalName(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_GL_RED_BITS); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 382, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  if (PyDict_SetItem(__pyx_t_2, __pyx_t_5, __pyx_mstate_global->__pyx_int_1) < (0)) __PYX_ERR(0, 336, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

  /* "kivy/graphics/opengl.pyx":383
 *     GL_POLYGON_OFFSET_UNITS: 1,
 *     GL_RED_BITS: 1,
 *     GL_RENDERBUFFER_BINDING: 1,             # <<<<<<<<<<<<<<
 *     GL_SAMPLE_BUFFERS: 1,
 *     GL_SAMPLE_COVERAGE_INVERT: 1,
*/
  __Pyx_GetModuleGlobalName(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_GL_RENDERBUFFER_BINDING); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 383, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  if (PyDict_SetItem(__pyx_t_2, __pyx_t_5, __pyx_mstate_global->__pyx_int_1) < (0)) __PYX_ERR(0, 336, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

  /* "kivy/graphics/opengl.pyx":384
 *     GL_RED_BITS: 1,
 *     GL_RENDERBUFFER_BINDING: 1,
 *     GL_SAMPLE_BUFFERS: 1,             # <<<<<<<<<<<<<<
 *     GL_SAMPLE_COVERAGE_INVERT: 1,
 *     GL_SAMPLE_COVERAGE_VALUE: 1,
*/
  __Pyx_GetModuleGlobalName(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_GL_SAMPLE_BUFFERS); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 384, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  if (PyDict_SetItem(__pyx_t_2, __pyx_t_5, __pyx_mstate_global->__pyx_int_1) < (0)) __PYX_ERR(0, 336, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

  /* "kivy/graphics/opengl.pyx":385
 *     GL_RENDERBUFFER_BINDING: 1,
 *     GL_SAMPLE_BUFFERS: 1,
 *     GL_SAMPLE_COVERAGE_INVERT: 1,             # <<<<<<<<<<<<<<
 *     GL_SAMPLE_COVERAGE_VALUE: 1,
 *     GL_SAMPLES: 1,
*/
  __Pyx_GetModuleGlobalName(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_GL_SAMPLE_COVERAGE_INVERT); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 385, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  if (PyDict_SetItem(__pyx_t_2, __pyx_t_5, __pyx_mstate_global->__pyx_int_1) < (0)) __PYX_ERR(0, 336, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

  /* "kivy/graphics/opengl.pyx":386
 *     GL_SAMPLE_BUFFERS: 1,
 *     GL_SAMPLE_COVERAGE_INVERT: 1,
 *     GL_SAMPLE_COVERAGE_VALUE: 1,             # <<<<<<<<<<<<<<
 *     GL_SAMPLES: 1,
 *     GL_SCISSOR_BOX: 4,
*/
  __Pyx_GetModuleGlobalName(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_GL_SAMPLE_COVERAGE_VALUE); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 386, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  if (PyDict_SetItem(__pyx_t_2, __pyx_t_5, __pyx_mstate_global->__pyx_int_1) < (0)) __PYX_ERR(0, 336, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

  /* "kivy/graphics/opengl.pyx":387
 *     GL_SAMPLE_COVERAGE_INVERT: 1,
 *     GL_SAMPLE_COVERAGE_VALUE: 1,
 *     GL_SAMPLES: 1,             # <<<<<<<<<<<<<<
 *     GL_SCISSOR_BOX: 4,
 *     GL_SCISSOR_TEST: 1,
*/
  __Pyx_GetModuleGlobalName(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_GL_SAMPLES); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 387, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  if (PyDict_SetItem(__pyx_t_2, __pyx_t_5, __pyx_mstate_global->__pyx_int_1) < (0)) __PYX_ERR(0, 336, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

  /* "kivy/graphics/opengl.pyx":388
 *     GL_SAMPLE_COVERAGE_VALUE: 1,
 *     GL_SAMPLES: 1,
 *     GL_SCISSOR_BOX: 4,             # <<<<<<<<<<<<<<
 *     GL_SCISSOR_TEST: 1,
 *     GL_STENCIL_BACK_FAIL: 1,
*/
  __Pyx_GetModuleGlobalName(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_GL_SCISSOR_BOX); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 388, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  if (PyDict_SetItem(__pyx_t_2, __pyx_t_5, __pyx_mstate_global->__pyx_int_4) < (0)) __PYX_ERR(0, 336, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

  /* "kivy/graphics/opengl.pyx":389
 *     GL_SAMPLES: 1,
 *     GL_SCISSOR_BOX: 4,
 *     GL_SCISSOR_TEST: 1,             # <<<<<<<<<<<<<<
 *     GL_STENCIL_BACK_FAIL: 1,
 *     GL_STENCIL_BACK_FUNC: 1,
*/
  __Pyx_GetModuleGlobalName(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_GL_SCISSOR_TEST); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 389, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  if (PyDict_SetItem(__pyx_t_2, __pyx_t_5, __pyx_mstate_global->__pyx_int_1) < (0)) __PYX_ERR(0, 336, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

  /* "kivy/graphics/opengl.pyx":390
 *     GL_SCISSOR_BOX: 4,
 *     GL_SCISSOR_TEST: 1,
 *     GL_STENCIL_BACK_FAIL: 1,             # <<<<<<<<<<<<<<
 *     GL_STENCIL_BACK_FUNC: 1,
 *     GL_STENCIL_BACK_PASS_DEPTH_FAIL: 1,
*/
  __Pyx_GetModuleGlobalName(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_GL_STENCIL_BACK_FAIL); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 390, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  if (PyDict_SetItem(__pyx_t_2, __pyx_t_5, __pyx_mstate_global->__pyx_int_1) < (0)) __PYX_ERR(0, 336, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

  /* "kivy/graphics/opengl.pyx":391
 *     GL_SCISSOR_TEST: 1,
 *     GL_STENCIL_BACK_FAIL: 1,
 *     GL_STENCIL_BACK_FUNC: 1,             # <<<<<<<<<<<<<<
 *     GL_STENCIL_BACK_PASS_DEPTH_FAIL: 1,
 *     GL_STENCIL_BACK_PASS_DEPTH_PASS: 1,
*/
  __Pyx_GetModuleGlobalName(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_GL_STENCIL_BACK_FUNC); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 391, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  if (PyDict_SetItem(__pyx_t_2, __pyx_t_5, __pyx_mstate_global->__pyx_int_1) < (0)) __PYX_ERR(0, 336, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

  /* "kivy/graphics/opengl.pyx":392
 *     GL_STENCIL_BACK_FAIL: 1,
 *     GL_STENCIL_BACK_FUNC: 1,
 *     GL_STENCIL_BACK_PASS_DEPTH_FAIL: 1,             # <<<<<<<<<<<<<<
 *     GL_STENCIL_BACK_PASS_DEPTH_PASS: 1,
 *     GL_STENCIL_BACK_REF: 1,
*/
  __Pyx_GetModuleGlobalName(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_GL_STENCIL_BACK_PASS_DEPTH_FAIL); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 392, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  if (PyDict_SetItem(__pyx_t_2, __pyx_t_5, __pyx_mstate_global->__pyx_int_1) < (0)) __PYX_ERR(0, 336, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

  /* "kivy/graphics/opengl.pyx":393
 *     GL_STENCIL_BACK_FUNC: 1,
 *     GL_STENCIL_BACK_PASS_DEPTH_FAIL: 1,
 *     GL_STENCIL_BACK_PASS_DEPTH_PASS: 1,             # <<<<<<<<<<<<<<
 *     GL_STENCIL_BACK_REF: 1,
 *     GL_STENCIL_BACK_VALUE_MASK: 1,
*/
  __Pyx_GetModuleGlobalName(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_GL_STENCIL_BACK_PASS_DEPTH_PASS); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 393, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  if (PyDict_SetItem(__pyx_t_2, __pyx_t_5, __pyx_mstate_global->__pyx_int_1) < (0)) __PYX_ERR(0, 336, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

  /* "kivy/graphics/opengl.pyx":394
 *     GL_STENCIL_BACK_PASS_DEPTH_FAIL: 1,
 *     GL_STENCIL_BACK_PASS_DEPTH_PASS: 1,
 *     GL_STENCIL_BACK_REF: 1,             # <<<<<<<<<<<<<<
 *     GL_STENCIL_BACK_VALUE_MASK: 1,
 *     GL_STENCIL_BACK_WRITEMASK: 1,
*/
  __Pyx_GetModuleGlobalName(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_GL_STENCIL_BACK_REF); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 394, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  if (PyDict_SetItem(__pyx_t_2, __pyx_t_5, __pyx_mstate_global->__pyx_int_1) < (0)) __PYX_ERR(0, 336, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

  /* "kivy/graphics/opengl.pyx":395
 *     GL_STENCIL_BACK_PASS_DEPTH_PASS: 1,
 *     GL_STENCIL_BACK_REF: 1,
 *     GL_STENCIL_BACK_VALUE_MASK: 1,             # <<<<<<<<<<<<<<
 *     GL_STENCIL_BACK_WRITEMASK: 1,
 *     GL_STENCIL_BITS: 1,
*/
  __Pyx_GetModuleGlobalName(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_GL_STENCIL_BACK_VALUE_MASK); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 395, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  if (PyDict_SetItem(__pyx_t_2, __pyx_t_5, __pyx_mstate_global->__pyx_int_1) < (0)) __PYX_ERR(0, 336, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

  /* "kivy/graphics/opengl.pyx":396
 *     GL_STENCIL_BACK_REF: 1,
 *     GL_STENCIL_BACK_VALUE_MASK: 1,
 *     GL_STENCIL_BACK_WRITEMASK: 1,             # <<<<<<<<<<<<<<
 *     GL_STENCIL_BITS: 1,
 *     GL_STENCIL_CLEAR_VALUE: 1,
*/
  __Pyx_GetModuleGlobalName(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_GL_STENCIL_BACK_WRITEMASK); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 396, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  if (PyDict_SetItem(__pyx_t_2, __pyx_t_5, __pyx_mstate_global->__pyx_int_1) < (0)) __PYX_ERR(0, 336, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

  /* "kivy/graphics/opengl.pyx":397
 *     GL_STENCIL_BACK_VALUE_MASK: 1,
 *     GL_STENCIL_BACK_WRITEMASK: 1,
 *     GL_STENCIL_BITS: 1,             # <<<<<<<<<<<<<<
 *     GL_STENCIL_CLEAR_VALUE: 1,
 *     GL_STENCIL_FAIL: 1,
*/
  __Pyx_GetModuleGlobalName(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_GL_STENCIL_BITS); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 397, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  if (PyDict_SetItem(__pyx_t_2, __pyx_t_5, __pyx_mstate_global->__pyx_int_1) < (0)) __PYX_ERR(0, 336, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

  /* "kivy/graphics/opengl.pyx":398
 *     GL_STENCIL_BACK_WRITEMASK: 1,
 *     GL_STENCIL_BITS: 1,
 *     GL_STENCIL_CLEAR_VALUE: 1,             # <<<<<<<<<<<<<<
 *     GL_STENCIL_FAIL: 1,
 *     GL_STENCIL_FUNC: 1,
*/
  __Pyx_GetModuleGlobalName(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_GL_STENCIL_CLEAR_VALUE); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 398, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  if (PyDict_SetItem(__pyx_t_2, __pyx_t_5, __pyx_mstate_global->__pyx_int_1) < (0)) __PYX_ERR(0, 336, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

  /* "kivy/graphics/opengl.pyx":399
 *     GL_STENCIL_BITS: 1,
 *     GL_STENCIL_CLEAR_VALUE: 1,
 *     GL_STENCIL_FAIL: 1,             # <<<<<<<<<<<<<<
 *     GL_STENCIL_FUNC: 1,
 *     GL_STENCIL_PASS_DEPTH_FAIL: 1,
*/
  __Pyx_GetModuleGlobalName(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_GL_STENCIL_FAIL); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 399, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  if (PyDict_SetItem(__pyx_t_2, __pyx_t_5, __pyx_mstate_global->__pyx_int_1) < (0)) __PYX_ERR(0, 336, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

  /* "kivy/graphics/opengl.pyx":400
 *     GL_STENCIL_CLEAR_VALUE: 1,
 *     GL_STENCIL_FAIL: 1,
 *     GL_STENCIL_FUNC: 1,             # <<<<<<<<<<<<<<
 *     GL_STENCIL_PASS_DEPTH_FAIL: 1,
 *     GL_STENCIL_PASS_DEPTH_PASS: 1,
*/
  __Pyx_GetModuleGlobalName(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_GL_STENCIL_FUNC); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 400, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  if (PyDict_SetItem(__pyx_t_2, __pyx_t_5, __pyx_mstate_global->__pyx_int_1) < (0)) __PYX_ERR(0, 336, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

  /* "kivy/graphics/opengl.pyx":401
 *     GL_STENCIL_FAIL: 1,
 *     GL_STENCIL_FUNC: 1,
 *     GL_STENCIL_PASS_DEPTH_FAIL: 1,             # <<<<<<<<<<<<<<
 *     GL_STENCIL_PASS_DEPTH_PASS: 1,
 *     GL_STENCIL_REF: 1,
*/
  __Pyx_GetModuleGlobalName(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_GL_STENCIL_PASS_DEPTH_FAIL); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 401, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  if (PyDict_SetItem(__pyx_t_2, __pyx_t_5, __pyx_mstate_global->__pyx_int_1) < (0)) __PYX_ERR(0, 336, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

  /* "kivy/graphics/opengl.pyx":402
 *     GL_STENCIL_FUNC: 1,
 *     GL_STENCIL_PASS_DEPTH_FAIL: 1,
 *     GL_STENCIL_PASS_DEPTH_PASS: 1,             # <<<<<<<<<<<<<<
 *     GL_STENCIL_REF: 1,
 *     GL_STENCIL_TEST: 1,
*/
  __Pyx_GetModuleGlobalName(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_GL_STENCIL_PASS_DEPTH_PASS); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 402, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  if (PyDict_SetItem(__pyx_t_2, __pyx_t_5, __pyx_mstate_global->__pyx_int_1) < (0)) __PYX_ERR(0, 336, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

  /* "kivy/graphics/opengl.pyx":403
 *     GL_STENCIL_PASS_DEPTH_FAIL: 1,
 *     GL_STENCIL_PASS_DEPTH_PASS: 1,
 *     GL_STENCIL_REF: 1,             # <<<<<<<<<<<<<<
 *     GL_STENCIL_TEST: 1,
 *     GL_STENCIL_VALUE_MASK: 1,
*/
  __Pyx_GetModuleGlobalName(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_GL_STENCIL_REF); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 403, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  if (PyDict_SetItem(__pyx_t_2, __pyx_t_5, __pyx_mstate_global->__pyx_int_1) < (0)) __PYX_ERR(0, 336, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

  /* "kivy/graphics/opengl.pyx":404
 *     GL_STENCIL_PASS_DEPTH_PASS: 1,
 *     GL_STENCIL_REF: 1,
 *     GL_STENCIL_TEST: 1,             # <<<<<<<<<<<<<<
 *     GL_STENCIL_VALUE_MASK: 1,
 *     GL_STENCIL_WRITEMASK: 1,
*/
  __Pyx_GetModuleGlobalName(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_GL_STENCIL_TEST); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 404, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  if (PyDict_SetItem(__pyx_t_2, __pyx_t_5, __pyx_mstate_global->__pyx_int_1) < (0)) __PYX_ERR(0, 336, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

  /* "kivy/graphics/opengl.pyx":405
 *     GL_STENCIL_REF: 1,
 *     GL_STENCIL_TEST: 1,
 *     GL_STENCIL_VALUE_MASK: 1,             # <<<<<<<<<<<<<<
 *     GL_STENCIL_WRITEMASK: 1,
 *     GL_SUBPIXEL_BITS: 1,
*/
  __Pyx_GetModuleGlobalName(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_GL_STENCIL_VALUE_MASK); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 405, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  if (PyDict_SetItem(__pyx_t_2, __pyx_t_5, __pyx_mstate_global->__pyx_int_1) < (0)) __PYX_ERR(0, 336, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

  /* "kivy/graphics/opengl.pyx":406
 *     GL_STENCIL_TEST: 1,
 *     GL_STENCIL_VALUE_MASK: 1,
 *     GL_STENCIL_WRITEMASK: 1,             # <<<<<<<<<<<<<<
 *     GL_SUBPIXEL_BITS: 1,
 *     GL_TEXTURE_BINDING_2D: 1,
*/
  __Pyx_GetModuleGlobalName(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_GL_STENCIL_WRITEMASK); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 406, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  if (PyDict_SetItem(__pyx_t_2, __pyx_t_5, __pyx_mstate_global->__pyx_int_1) < (0)) __PYX_ERR(0, 336, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

  /* "kivy/graphics/opengl.pyx":407
 *     GL_STENCIL_VALUE_MASK: 1,
 *     GL_STENCIL_WRITEMASK: 1,
 *     GL_SUBPIXEL_BITS: 1,             # <<<<<<<<<<<<<<
 *     GL_TEXTURE_BINDING_2D: 1,
 *     GL_TEXTURE_BINDING_CUBE_MAP: 1,
*/
  __Pyx_GetModuleGlobalName(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_GL_SUBPIXEL_BITS); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 407, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  if (PyDict_SetItem(__pyx_t_2, __pyx_t_5, __pyx_mstate_global->__pyx_int_1) < (0)) __PYX_ERR(0, 336, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

  /* "kivy/graphics/opengl.pyx":408
 *     GL_STENCIL_WRITEMASK: 1,
 *     GL_SUBPIXEL_BITS: 1,
 *     GL_TEXTURE_BINDING_2D: 1,             # <<<<<<<<<<<<<<
 *     GL_TEXTURE_BINDING_CUBE_MAP: 1,
 *     GL_UNPACK_ALIGNMENT: 1,
*/
  __Pyx_GetModuleGlobalName(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_GL_TEXTURE_BINDING_2D); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 408, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  if (PyDict_SetItem(__pyx_t_2, __pyx_t_5, __pyx_mstate_global->__pyx_int_1) < (0)) __PYX_ERR(0, 336, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

  /* "kivy/graphics/opengl.pyx":409
 *     GL_SUBPIXEL_BITS: 1,
 *     GL_TEXTURE_BINDING_2D: 1,
 *     GL_TEXTURE_BINDING_CUBE_MAP: 1,             # <<<<<<<<<<<<<<
 *     GL_UNPACK_ALIGNMENT: 1,
 *     GL_VIEWPORT: 4,
*/
  __Pyx_GetModuleGlobalName(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_GL_TEXTURE_BINDING_CUBE_MAP); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 409, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  if (PyDict_SetItem(__pyx_t_2, __pyx_t_5, __pyx_mstate_global->__pyx_int_1) < (0)) __PYX_ERR(0, 336, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

  /* "kivy/graphics/opengl.pyx":410
 *     GL_TEXTURE_BINDING_2D: 1,
 *     GL_TEXTURE_BINDING_CUBE_MAP: 1,
 *     GL_UNPACK_ALIGNMENT: 1,             # <<<<<<<<<<<<<<
 *     GL_VIEWPORT: 4,
 * }
*/
  __Pyx_GetModuleGlobalName(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_GL_UNPACK_ALIGNMENT); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 410, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  if (PyDict_SetItem(__pyx_t_2, __pyx_t_5, __pyx_mstate_global->__pyx_int_1) < (0)) __PYX_ERR(0, 336, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

  /* "kivy/graphics/opengl.pyx":411
 *     GL_TEXTURE_BINDING_CUBE_MAP: 1,
 *     GL_UNPACK_ALIGNMENT: 1,
 *     GL_VIEWPORT: 4,             # <<<<<<<<<<<<<<
 * }
 * 
*/
  __Pyx_GetModuleGlobalName(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_GL_VIEWPORT); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 411, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  if (PyDict_SetItem(__pyx_t_2, __pyx_t_5, __pyx_mstate_global->__pyx_int_4) < (0)) __PYX_ERR(0, 336, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_GL_GET_SIZE, __pyx_t_2) < (0)) __PYX_ERR(0, 335, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "kivy/graphics/opengl.pyx":415
 * 
 * # update sizes
 * _GL_GET_SIZE[cgldef.GL_MAX_VERTEX_UNIFORM_VECTORS] = 1             # <<<<<<<<<<<<<<
 * _GL_GET_SIZE[cgldef.GL_MAX_VARYING_VECTORS] = 1
 * _GL_GET_SIZE[cgldef.GL_MAX_FRAGMENT_UNIFORM_VECTORS] = 1
*/
  __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_GL_GET_SIZE); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 415, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (unlikely((__Pyx_SetItemInt(__pyx_t_2, GL_MAX_VERTEX_UNIFORM_VECTORS, __pyx_mstate_global->__pyx_int_1, int, 1, __Pyx_PyLong_From_int, 0, 1, 1, 1, __Pyx_ReferenceSharing_OwnStrongReference) < 0))) __PYX_ERR(0, 415, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "kivy/graphics/opengl.pyx":416
 * # update sizes
 * _GL_GET_SIZE[cgldef.GL_MAX_VERTEX_UNIFORM_VECTORS] = 1
 * _GL_GET_SIZE[cgldef.GL_MAX_VARYING_VECTORS] = 1             # <<<<<<<<<<<<<<
 * _GL_GET_SIZE[cgldef.GL_MAX_FRAGMENT_UNIFORM_VECTORS] = 1
 * _GL_GET_SIZE[cgldef.GL_IMPLEMENTATION_COLOR_READ_FORMAT] = 1
*/
  __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_GL_GET_SIZE); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 416, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (unlikely((__Pyx_SetItemInt(__pyx_t_2, GL_MAX_VARYING_VECTORS, __pyx_mstate_global->__pyx_int_1, int, 1, __Pyx_PyLong_From_int, 0, 1, 1, 1, __Pyx_ReferenceSharing_OwnStrongReference) < 0))) __PYX_ERR(0, 416, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "kivy/graphics/opengl.pyx":417
 * _GL_GET_SIZE[cgldef.GL_MAX_VERTEX_UNIFORM_VECTORS] = 1
 * _GL_GET_SIZE[cgldef.GL_MAX_VARYING_VECTORS] = 1
 * _GL_GET_SIZE[cgldef.GL_MAX_FRAGMENT_UNIFORM_VECTORS] = 1             # <<<<<<<<<<<<<<
 * _GL_GET_SIZE[cgldef.GL_IMPLEMENTATION_COLOR_READ_FORMAT] = 1
 * _GL_GET_SIZE[cgldef.GL_IMPLEMENTATION_COLOR_READ_TYPE] = 1
*/
  __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_GL_GET_SIZE); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 417, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (unlikely((__Pyx_SetItemInt(__pyx_t_2, GL_MAX_FRAGMENT_UNIFORM_VECTORS, __pyx_mstate_global->__pyx_int_1, int, 1, __Pyx_PyLong_From_int, 0, 1, 1, 1, __Pyx_ReferenceSharing_OwnStrongReference) < 0))) __PYX_ERR(0, 417, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "kivy/graphics/opengl.pyx":418
 * _GL_GET_SIZE[cgldef.GL_MAX_VARYING_VECTORS] = 1
 * _GL_GET_SIZE[cgldef.GL_MAX_FRAGMENT_UNIFORM_VECTORS] = 1
 * _GL_GET_SIZE[cgldef.GL_IMPLEMENTATION_COLOR_READ_FORMAT] = 1             # <<<<<<<<<<<<<<
 * _GL_GET_SIZE[cgldef.GL_IMPLEMENTATION_COLOR_READ_TYPE] = 1
 * _GL_GET_SIZE[cgldef.GL_SHADER_COMPILER] = 1
*/
  __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_GL_GET_SIZE); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 418, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (unlikely((__Pyx_SetItemInt(__pyx_t_2, GL_IMPLEMENTATION_COLOR_READ_FORMAT, __pyx_mstate_global->__pyx_int_1, int, 1, __Pyx_PyLong_From_int, 0, 1, 1, 1, __Pyx_ReferenceSharing_OwnStrongReference) < 0))) __PYX_ERR(0, 418, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "kivy/graphics/opengl.pyx":419
 * _GL_GET_SIZE[cgldef.GL_MAX_FRAGMENT_UNIFORM_VECTORS] = 1
 * _GL_GET_SIZE[cgldef.GL_IMPLEMENTATION_COLOR_READ_FORMAT] = 1
 * _GL_GET_SIZE[cgldef.GL_IMPLEMENTATION_COLOR_READ_TYPE] = 1             # <<<<<<<<<<<<<<
 * _GL_GET_SIZE[cgldef.GL_SHADER_COMPILER] = 1
 * _GL_GET_SIZE[cgldef.GL_NUM_SHADER_BINARY_FORMATS] = 1
*/
  __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_GL_GET_SIZE); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 419, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (unlikely((__Pyx_SetItemInt(__pyx_t_2, GL_IMPLEMENTATION_COLOR_READ_TYPE, __pyx_mstate_global->__pyx_int_1, int, 1, __Pyx_PyLong_From_int, 0, 1, 1, 1, __Pyx_ReferenceSharing_OwnStrongReference) < 0))) __PYX_ERR(0, 419, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "kivy/graphics/opengl.pyx":420
 * _GL_GET_SIZE[cgldef.GL_IMPLEMENTATION_COLOR_READ_FORMAT] = 1
 * _GL_GET_SIZE[cgldef.GL_IMPLEMENTATION_COLOR_READ_TYPE] = 1
 * _GL_GET_SIZE[cgldef.GL_SHADER_COMPILER] = 1             # <<<<<<<<<<<<<<
 * _GL_GET_SIZE[cgldef.GL_NUM_SHADER_BINARY_FORMATS] = 1
 * _GL_GET_SIZE[cgldef.GL_SHADER_BINARY_FORMATS] = cgldef.GL_NUM_SHADER_BINARY_FORMATS
*/
  __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_GL_GET_SIZE); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 420, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (unlikely((__Pyx_SetItemInt(__pyx_t_2, GL_SHADER_COMPILER, __pyx_mstate_global->__pyx_int_1, int, 1, __Pyx_PyLong_From_int, 0, 1, 1, 1, __Pyx_ReferenceSharing_OwnStrongReference) < 0))) __PYX_ERR(0, 420, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "kivy/graphics/opengl.pyx":421
 * _GL_GET_SIZE[cgldef.GL_IMPLEMENTATION_COLOR_READ_TYPE] = 1
 * _GL_GET_SIZE[cgldef.GL_SHADER_COMPILER] = 1
 * _GL_GET_SIZE[cgldef.GL_NUM_SHADER_BINARY_FORMATS] = 1             # <<<<<<<<<<<<<<
 * _GL_GET_SIZE[cgldef.GL_SHADER_BINARY_FORMATS] = cgldef.GL_NUM_SHADER_BINARY_FORMATS
 * 
*/
  __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_GL_GET_SIZE); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 421, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (unlikely((__Pyx_SetItemInt(__pyx_t_2, GL_NUM_SHADER_BINARY_FORMATS, __pyx_mstate_global->__pyx_int_1, int, 1, __Pyx_PyLong_From_int, 0, 1, 1, 1, __Pyx_ReferenceSharing_OwnStrongReference) < 0))) __PYX_ERR(0, 421, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "kivy/graphics/opengl.pyx":422
 * _GL_GET_SIZE[cgldef.GL_SHADER_COMPILER] = 1
 * _GL_GET_SIZE[cgldef.GL_NUM_SHADER_BINARY_FORMATS] = 1
 * _GL_GET_SIZE[cgldef.GL_SHADER_BINARY_FORMATS] = cgldef.GL_NUM_SHADER_BINARY_FORMATS             # <<<<<<<<<<<<<<
 * 
 * 
*/
  __pyx_t_2 = __Pyx_PyLong_From_int(GL_NUM_SHADER_BINARY_FORMATS); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 422, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_GetModuleGlobalName(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_GL_GET_SIZE); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 422, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  if (unlikely((__Pyx_SetItemInt(__pyx_t_5, GL_SHADER_BINARY_FORMATS, __pyx_t_2, int, 1, __Pyx_PyLong_From_int, 0, 1, 1, 1, __Pyx_ReferenceSharing_OwnStrongReference) < 0))) __PYX_ERR(0, 422, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "kivy/graphics/opengl.pyx":425
 * 
 * 
 * def glActiveTexture(GLenum texture):             # <<<<<<<<<<<<<<
 *     '''See: `glActiveTexture() on Kronos website
 *     <http://www.khronos.org/opengles/sdk/docs/man/xhtml/glActiveTexture.xml>`_
*/
  __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4kivy_8graphics_6opengl_1glActiveTexture, 0, __pyx_mstate_global->__pyx_n_u_glActiveTexture, NULL, __pyx_mstate_global->__pyx_n_u_kivy_graphics_opengl, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[0])); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 425, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_2);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_glActiveTexture, __pyx_t_2) < (0)) __PYX_ERR(0, 425, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "kivy/graphics/opengl.pyx":431
 *     cgl.glActiveTexture(texture)
 * 
 * def glAttachShader(GLuint program, GLuint shader):             # <<<<<<<<<<<<<<
 *     '''See: `glAttachShader() on Kronos website
 *     <http://www.khronos.org/opengles/sdk/docs/man/xhtml/glAttachShader.xml>`_
*/
  __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4kivy_8graphics_6opengl_3glAttachShader, 0, __pyx_mstate_global->__pyx_n_u_glAttachShader, NULL, __pyx_mstate_global->__pyx_n_u_kivy_graphics_opengl, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[1])); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 431, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_2);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_glAttachShader, __pyx_t_2) < (0)) __PYX_ERR(0, 431, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "kivy/graphics/opengl.pyx":437
 *     cgl.glAttachShader(program, shader)
 * 
 * def glBindAttribLocation(GLuint program, GLuint index, bytes name):             # <<<<<<<<<<<<<<
 *     '''See: `glBindAttribLocation() on Kronos website
 *     <http://www.khronos.org/opengles/sdk/docs/man/xhtml/glBindAttribLocation.xml>`_
*/
  __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4kivy_8graphics_6opengl_5glBindAttribLocation, 0, __pyx_mstate_global->__pyx_n_u_glBindAttribLocation, NULL, __pyx_mstate_global->__pyx_n_u_kivy_graphics_opengl, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[2])); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 437, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_2);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_glBindAttribLocation, __pyx_t_2) < (0)) __PYX_ERR(0, 437, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "kivy/graphics/opengl.pyx":443
 *     cgl.glBindAttribLocation(program, index, <char *>name)
 * 
 * def glBindBuffer(GLenum target, GLuint buffer):             # <<<<<<<<<<<<<<
 *     '''See: `glBindBuffer() on Kronos website
 *     <http://www.khronos.org/opengles/sdk/docs/man/xhtml/glBindBuffer.xml>`_
*/
  __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4kivy_8graphics_6opengl_7glBindBuffer, 0, __pyx_mstate_global->__pyx_n_u_glBindBuffer, NULL, __pyx_mstate_global->__pyx_n_u_kivy_graphics_opengl, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[3])); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 443, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_2);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_glBindBuffer, __pyx_t_2) < (0)) __PYX_ERR(0, 443, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "kivy/graphics/opengl.pyx":449
 *     cgl.glBindBuffer(target, buffer)
 * 
 * def glBindFramebuffer(GLenum target, GLuint framebuffer):             # <<<<<<<<<<<<<<
 *     '''See: `glBindFramebuffer() on Kronos website
 *     <http://www.khronos.org/opengles/sdk/docs/man/xhtml/glBindFramebuffer.xml>`_
*/
  __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4kivy_8graphics_6opengl_9glBindFramebuffer, 0, __pyx_mstate_global->__pyx_n_u_glBindFramebuffer, NULL, __pyx_mstate_global->__pyx_n_u_kivy_graphics_opengl, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[4])); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 449, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_2);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_glBindFramebuffer, __pyx_t_2) < (0)) __PYX_ERR(0, 449, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "kivy/graphics/opengl.pyx":455
 *     cgl.glBindFramebuffer(target, framebuffer)
 * 
 * def glBindRenderbuffer(GLenum target, GLuint renderbuffer):             # <<<<<<<<<<<<<<
 *     '''See: `glBindRenderbuffer() on Kronos website
 *     <http://www.khronos.org/opengles/sdk/docs/man/xhtml/glBindRenderbuffer.xml>`_
*/
  __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4kivy_8graphics_6opengl_11glBindRenderbuffer, 0, __pyx_mstate_global->__pyx_n_u_glBindRenderbuffer, NULL, __pyx_mstate_global->__pyx_n_u_kivy_graphics_opengl, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[5])); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 455, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_2);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_glBindRenderbuffer, __pyx_t_2) < (0)) __PYX_ERR(0, 455, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "kivy/graphics/opengl.pyx":461
 *     cgl.glBindRenderbuffer(target, renderbuffer)
 * 
 * def glBindTexture(GLenum target, GLuint texture):             # <<<<<<<<<<<<<<
 *     '''See: `glBindTexture() on Kronos website
 *     <http://www.khronos.org/opengles/sdk/docs/man/xhtml/glBindTexture.xml>`_
*/
  __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4kivy_8graphics_6opengl_13glBindTexture, 0, __pyx_mstate_global->__pyx_n_u_glBindTexture, NULL, __pyx_mstate_global->__pyx_n_u_kivy_graphics_opengl, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[6])); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 461, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_2);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_glBindTexture, __pyx_t_2) < (0)) __PYX_ERR(0, 461, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "kivy/graphics/opengl.pyx":467
 *     cgl.glBindTexture(target, texture)
 * 
 * def glBlendColor(GLclampf red, GLclampf green, GLclampf blue, GLclampf alpha):             # <<<<<<<<<<<<<<
 *     '''See: `glBlendColor() on Kronos website
 *     <http://www.khronos.org/opengles/sdk/docs/man/xhtml/glBlendColor.xml>`_
*/
  __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4kivy_8graphics_6opengl_15glBlendColor, 0, __pyx_mstate_global->__pyx_n_u_glBlendColor, NULL, __pyx_mstate_global->__pyx_n_u_kivy_graphics_opengl, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[7])); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 467, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_2);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_glBlendColor, __pyx_t_2) < (0)) __PYX_ERR(0, 467, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "kivy/graphics/opengl.pyx":473
 *     cgl.glBlendColor(red, green, blue, alpha)
 * 
 * def glBlendEquation(GLenum mode):             # <<<<<<<<<<<<<<
 *     '''See: `glBlendEquation() on Kronos website
 *     <http://www.khronos.org/opengles/sdk/docs/man/xhtml/glBlendEquation.xml>`_
*/
  __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4kivy_8graphics_6opengl_17glBlendEquation, 0, __pyx_mstate_global->__pyx_n_u_glBlendEquation, NULL, __pyx_mstate_global->__pyx_n_u_kivy_graphics_opengl, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[8])); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 473, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_2);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_glBlendEquation, __pyx_t_2) < (0)) __PYX_ERR(0, 473, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "kivy/graphics/opengl.pyx":479
 *     cgl.glBlendEquation(mode)
 * 
 * def glBlendEquationSeparate(GLenum modeRGB, GLenum modeAlpha):             # <<<<<<<<<<<<<<
 *     '''See: `glBlendEquationSeparate() on Kronos website
 *     <http://www.khronos.org/opengles/sdk/docs/man/xhtml/glBlendEquationSeparate.xml>`_
*/
  __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4kivy_8graphics_6opengl_19glBlendEquationSeparate, 0, __pyx_mstate_global->__pyx_n_u_glBlendEquationSeparate, NULL, __pyx_mstate_global->__pyx_n_u_kivy_graphics_opengl, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[9])); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 479, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_2);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_glBlendEquationSeparate, __pyx_t_2) < (0)) __PYX_ERR(0, 479, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "kivy/graphics/opengl.pyx":485
 *     cgl.glBlendEquationSeparate(modeRGB, modeAlpha)
 * 
 * def glBlendFunc(GLenum sfactor, GLenum dfactor):             # <<<<<<<<<<<<<<
 *     '''See: `glBlendFunc() on Kronos website
 *     <http://www.khronos.org/opengles/sdk/docs/man/xhtml/glBlendFunc.xml>`_
*/
  __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4kivy_8graphics_6opengl_21glBlendFunc, 0, __pyx_mstate_global->__pyx_n_u_glBlendFunc, NULL, __pyx_mstate_global->__pyx_n_u_kivy_graphics_opengl, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[10])); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 485, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_2);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_glBlendFunc, __pyx_t_2) < (0)) __PYX_ERR(0, 485, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "kivy/graphics/opengl.pyx":491
 *     cgl.glBlendFunc(sfactor, dfactor)
 * 
 * def glBlendFuncSeparate(GLenum srcRGB, GLenum dstRGB, GLenum srcAlpha, GLenum dstAlpha):             # <<<<<<<<<<<<<<
 *     '''See: `glBlendFuncSeparate() on Kronos website
 *     <http://www.khronos.org/opengles/sdk/docs/man/xhtml/glBlendFuncSeparate.xml>`_
*/
  __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4kivy_8graphics_6opengl_23glBlendFuncSeparate, 0, __pyx_mstate_global->__pyx_n_u_glBlendFuncSeparate, NULL, __pyx_mstate_global->__pyx_n_u_kivy_graphics_opengl, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[11])); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 491, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_2);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_glBlendFuncSeparate, __pyx_t_2) < (0)) __PYX_ERR(0, 491, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "kivy/graphics/opengl.pyx":497
 *     cgl.glBlendFuncSeparate(srcRGB, dstRGB, srcAlpha, dstAlpha)
 * 
 * def glBufferData(GLenum target, GLsizeiptr size, bytes data, GLenum usage):             # <<<<<<<<<<<<<<
 *     '''See: `glBufferData() on Kronos website
 *     <http://www.khronos.org/opengles/sdk/docs/man/xhtml/glBufferData.xml>`_
*/
  __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4kivy_8graphics_6opengl_25glBufferData, 0, __pyx_mstate_global->__pyx_n_u_glBufferData, NULL, __pyx_mstate_global->__pyx_n_u_kivy_graphics_opengl, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[12])); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 497, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_2);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_glBufferData, __pyx_t_2) < (0)) __PYX_ERR(0, 497, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "kivy/graphics/opengl.pyx":503
 *     cgl.glBufferData(target, size, <char *>data, usage)
 * 
 * def glBufferSubData(GLenum target, GLintptr offset, GLsizeiptr size, bytes data):             # <<<<<<<<<<<<<<
 *     '''See: `glBufferSubData() on Kronos website
 *     <http://www.khronos.org/opengles/sdk/docs/man/xhtml/glBufferSubData.xml>`_
*/
  __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4kivy_8graphics_6opengl_27glBufferSubData, 0, __pyx_mstate_global->__pyx_n_u_glBufferSubData, NULL, __pyx_mstate_global->__pyx_n_u_kivy_graphics_opengl, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[13])); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 503, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_2);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_glBufferSubData, __pyx_t_2) < (0)) __PYX_ERR(0, 503, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "kivy/graphics/opengl.pyx":509
 *     cgl.glBufferSubData(target, offset, size, <char *>data)
 * 
 * def glCheckFramebufferStatus(GLenum target):             # <<<<<<<<<<<<<<
 *     '''See: `glCheckFramebufferStatus() on Kronos website
 *     <http://www.khronos.org/opengles/sdk/docs/man/xhtml/glCheckFramebufferStatus.xml>`_
*/
  __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4kivy_8graphics_6opengl_29glCheckFramebufferStatus, 0, __pyx_mstate_global->__pyx_n_u_glCheckFramebufferStatus, NULL, __pyx_mstate_global->__pyx_n_u_kivy_graphics_opengl, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[14])); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 509, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_2);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_glCheckFramebufferStatus, __pyx_t_2) < (0)) __PYX_ERR(0, 509, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "kivy/graphics/opengl.pyx":517
 *     return result
 * 
 * def glClear(GLbitfield mask):             # <<<<<<<<<<<<<<
 *     '''See: `glClear() on Kronos website
 *     <http://www.khronos.org/opengles/sdk/docs/man/xhtml/glClear.xml>`_
*/
  __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4kivy_8graphics_6opengl_31glClear, 0, __pyx_mstate_global->__pyx_n_u_glClear, NULL, __pyx_mstate_global->__pyx_n_u_kivy_graphics_opengl, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[15])); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 517, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_2);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_glClear, __pyx_t_2) < (0)) __PYX_ERR(0, 517, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "kivy/graphics/opengl.pyx":523
 *     cgl.glClear(mask)
 * 
 * def glClearColor(GLclampf red, GLclampf green, GLclampf blue, GLclampf alpha):             # <<<<<<<<<<<<<<
 *     '''See: `glClearColor() on Kronos website
 *     <http://www.khronos.org/opengles/sdk/docs/man/xhtml/glClearColor.xml>`_
*/
  __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4kivy_8graphics_6opengl_33glClearColor, 0, __pyx_mstate_global->__pyx_n_u_glClearColor, NULL, __pyx_mstate_global->__pyx_n_u_kivy_graphics_opengl, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[16])); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 523, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_2);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_glClearColor, __pyx_t_2) < (0)) __PYX_ERR(0, 523, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "kivy/graphics/opengl.pyx":537
 * #    cgl.glClearDepthf(depth)
 * 
 * def glClearStencil(GLint s):             # <<<<<<<<<<<<<<
 *     '''See: `glClearStencil() on Kronos website
 *     <http://www.khronos.org/opengles/sdk/docs/man/xhtml/glClearStencil.xml>`_
*/
  __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4kivy_8graphics_6opengl_35glClearStencil, 0, __pyx_mstate_global->__pyx_n_u_glClearStencil, NULL, __pyx_mstate_global->__pyx_n_u_kivy_graphics_opengl, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[17])); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 537, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_2);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_glClearStencil, __pyx_t_2) < (0)) __PYX_ERR(0, 537, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "kivy/graphics/opengl.pyx":543
 *     cgl.glClearStencil(s)
 * 
 * def glColorMask(GLboolean red, GLboolean green, GLboolean blue, GLboolean alpha):             # <<<<<<<<<<<<<<
 *     '''See: `glColorMask() on Kronos website
 *     <http://www.khronos.org/opengles/sdk/docs/man/xhtml/glColorMask.xml>`_
*/
  __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4kivy_8graphics_6opengl_37glColorMask, 0, __pyx_mstate_global->__pyx_n_u_glColorMask, NULL, __pyx_mstate_global->__pyx_n_u_kivy_graphics_opengl, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[18])); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 543, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_2);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_glColorMask, __pyx_t_2) < (0)) __PYX_ERR(0, 543, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "kivy/graphics/opengl.pyx":549
 *     cgl.glColorMask(red, green, blue, alpha)
 * 
 * def glCompileShader(GLuint shader):             # <<<<<<<<<<<<<<
 *     '''See: `glCompileShader() on Kronos website
 *     <http://www.khronos.org/opengles/sdk/docs/man/xhtml/glCompileShader.xml>`_
*/
  __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4kivy_8graphics_6opengl_39glCompileShader, 0, __pyx_mstate_global->__pyx_n_u_glCompileShader, NULL, __pyx_mstate_global->__pyx_n_u_kivy_graphics_opengl, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[19])); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 549, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_2);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_glCompileShader, __pyx_t_2) < (0)) __PYX_ERR(0, 549, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "kivy/graphics/opengl.pyx":555
 *     cgl.glCompileShader(shader)
 * 
 * def glCompressedTexImage2D(GLenum target, GLint level, GLenum internalformat,             # <<<<<<<<<<<<<<
 *                            GLsizei width, GLsizei height, GLint border, GLsizei
 *                            imageSize,  bytes data):
*/
  __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4kivy_8graphics_6opengl_41glCompressedTexImage2D, 0, __pyx_mstate_global->__pyx_n_u_glCompressedTexImage2D, NULL, __pyx_mstate_global->__pyx_n_u_kivy_graphics_opengl, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[20])); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 555, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_2);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_glCompressedTexImage2D, __pyx_t_2) < (0)) __PYX_ERR(0, 555, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "kivy/graphics/opengl.pyx":564
 *                                     height, border, imageSize, <char *>data)
 * 
 * def glCompressedTexSubImage2D(GLenum target, GLint level, GLint xoffset, GLint             # <<<<<<<<<<<<<<
 *                               yoffset, GLsizei width, GLsizei height, GLenum
 *                               format, GLsizei imageSize,  bytes data):
*/
  __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4kivy_8graphics_6opengl_43glCompressedTexSubImage2D, 0, __pyx_mstate_global->__pyx_n_u_glCompressedTexSubImage2D, NULL, __pyx_mstate_global->__pyx_n_u_kivy_graphics_opengl, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[21])); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 564, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_2);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_glCompressedTexSubImage2D, __pyx_t_2) < (0)) __PYX_ERR(0, 564, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "kivy/graphics/opengl.pyx":573
 *                                        height, format, imageSize, <char *>data)
 * 
 * def glCopyTexImage2D(GLenum target, GLint level, GLenum internalformat, GLint x, GLint y, GLsizei width, GLsizei height, GLint border):             # <<<<<<<<<<<<<<
 *     '''See: `glCopyTexImage2D() on Kronos website
 *     <http://www.khronos.org/opengles/sdk/docs/man/xhtml/glCopyTexImage2D.xml>`_
*/
  __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4kivy_8graphics_6opengl_45glCopyTexImage2D, 0, __pyx_mstate_global->__pyx_n_u_glCopyTexImage2D, NULL, __pyx_mstate_global->__pyx_n_u_kivy_graphics_opengl, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[22])); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 573, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_2);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_glCopyTexImage2D, __pyx_t_2) < (0)) __PYX_ERR(0, 573, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "kivy/graphics/opengl.pyx":579
 *     cgl.glCopyTexImage2D(target, level, internalformat, x, y, width, height, border)
 * 
 * def glCopyTexSubImage2D(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint x, GLint y, GLsizei width, GLsizei height):             # <<<<<<<<<<<<<<
 *     '''See: `glCopyTexSubImage2D() on Kronos website
 *     <http://www.khronos.org/opengles/sdk/docs/man/xhtml/glCopyTexSubImage2D.xml>`_
*/
  __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4kivy_8graphics_6opengl_47glCopyTexSubImage2D, 0, __pyx_mstate_global->__pyx_n_u_glCopyTexSubImage2D, NULL, __pyx_mstate_global->__pyx_n_u_kivy_graphics_opengl, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[23])); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 579, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_2);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_glCopyTexSubImage2D, __pyx_t_2) < (0)) __PYX_ERR(0, 579, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "kivy/graphics/opengl.pyx":585
 *     cgl.glCopyTexSubImage2D(target, level, xoffset, yoffset, x, y, width, height)
 * 
 * def glCreateProgram():             # <<<<<<<<<<<<<<
 *     '''See: `glCreateProgram() on Kronos website
 *     <http://www.khronos.org/opengles/sdk/docs/man/xhtml/glCreateProgram.xml>`_
*/
  __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4kivy_8graphics_6opengl_49glCreateProgram, 0, __pyx_mstate_global->__pyx_n_u_glCreateProgram, NULL, __pyx_mstate_global->__pyx_n_u_kivy_graphics_opengl, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[24])); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 585, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_2);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_glCreateProgram, __pyx_t_2) < (0)) __PYX_ERR(0, 585, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "kivy/graphics/opengl.pyx":593
 *     return id
 * 
 * def glCreateShader(GLenum type):             # <<<<<<<<<<<<<<
 *     '''See: `glCreateShader() on Kronos website
 *     <http://www.khronos.org/opengles/sdk/docs/man/xhtml/glCreateShader.xml>`_
*/
  __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4kivy_8graphics_6opengl_51glCreateShader, 0, __pyx_mstate_global->__pyx_n_u_glCreateShader, NULL, __pyx_mstate_global->__pyx_n_u_kivy_graphics_opengl, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[25])); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 593, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_2);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_glCreateShader, __pyx_t_2) < (0)) __PYX_ERR(0, 593, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "kivy/graphics/opengl.pyx":601
 *     return id
 * 
 * def glCullFace(GLenum mode):             # <<<<<<<<<<<<<<
 *     '''See: `glCullFace() on Kronos website
 *     <http://www.khronos.org/opengles/sdk/docs/man/xhtml/glCullFace.xml>`_
*/
  __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4kivy_8graphics_6opengl_53glCullFace, 0, __pyx_mstate_global->__pyx_n_u_glCullFace, NULL, __pyx_mstate_global->__pyx_n_u_kivy_graphics_opengl, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[26])); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 601, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_2);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_glCullFace, __pyx_t_2) < (0)) __PYX_ERR(0, 601, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "kivy/graphics/opengl.pyx":607
 *     cgl.glCullFace(mode)
 * 
 * def glDeleteBuffers(GLsizei n, bytes buffers):             # <<<<<<<<<<<<<<
 *     '''See: `glDeleteBuffers() on Kronos website
 *     <http://www.khronos.org/opengles/sdk/docs/man/xhtml/glDeleteBuffers.xml>`_
*/
  __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4kivy_8graphics_6opengl_55glDeleteBuffers, 0, __pyx_mstate_global->__pyx_n_u_glDeleteBuffers, NULL, __pyx_mstate_global->__pyx_n_u_kivy_graphics_opengl, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[27])); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 607, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_2);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_glDeleteBuffers, __pyx_t_2) < (0)) __PYX_ERR(0, 607, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "kivy/graphics/opengl.pyx":613
 *     cgl.glDeleteBuffers(n, <GLuint *><char *>buffers)
 * 
 * def glDeleteFramebuffers(GLsizei n, bytes framebuffers):             # <<<<<<<<<<<<<<
 *     '''See: `glDeleteFramebuffers() on Kronos website
 *     <http://www.khronos.org/opengles/sdk/docs/man/xhtml/glDeleteFramebuffers.xml>`_
*/
  __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4kivy_8graphics_6opengl_57glDeleteFramebuffers, 0, __pyx_mstate_global->__pyx_n_u_glDeleteFramebuffers, NULL, __pyx_mstate_global->__pyx_n_u_kivy_graphics_opengl, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[28])); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 613, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_2);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_glDeleteFramebuffers, __pyx_t_2) < (0)) __PYX_ERR(0, 613, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "kivy/graphics/opengl.pyx":619
 *     cgl.glDeleteFramebuffers(n, <GLuint *><char *>framebuffers)
 * 
 * def glDeleteProgram(GLuint program):             # <<<<<<<<<<<<<<
 *     '''See: `glDeleteProgram() on Kronos website
 *     <http://www.khronos.org/opengles/sdk/docs/man/xhtml/glDeleteProgram.xml>`_
*/
  __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4kivy_8graphics_6opengl_59glDeleteProgram, 0, __pyx_mstate_global->__pyx_n_u_glDeleteProgram, NULL, __pyx_mstate_global->__pyx_n_u_kivy_graphics_opengl, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[29])); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 619, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_2);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_glDeleteProgram, __pyx_t_2) < (0)) __PYX_ERR(0, 619, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "kivy/graphics/opengl.pyx":625
 *     cgl.glDeleteProgram(program)
 * 
 * def glDeleteRenderbuffers(GLsizei n, bytes renderbuffers):             # <<<<<<<<<<<<<<
 *     '''See: `glDeleteRenderbuffers() on Kronos website
 *     <http://www.khronos.org/opengles/sdk/docs/man/xhtml/glDeleteRenderbuffers.xml>`_
*/
  __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4kivy_8graphics_6opengl_61glDeleteRenderbuffers, 0, __pyx_mstate_global->__pyx_n_u_glDeleteRenderbuffers, NULL, __pyx_mstate_global->__pyx_n_u_kivy_graphics_opengl, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[30])); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 625, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_2);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_glDeleteRenderbuffers, __pyx_t_2) < (0)) __PYX_ERR(0, 625, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "kivy/graphics/opengl.pyx":631
 *     cgl.glDeleteRenderbuffers(n, <GLuint *><char *>renderbuffers)
 * 
 * def glDeleteShader(GLuint shader):             # <<<<<<<<<<<<<<
 *     '''See: `glDeleteShader() on Kronos website
 *     <http://www.khronos.org/opengles/sdk/docs/man/xhtml/glDeleteShader.xml>`_
*/
  __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4kivy_8graphics_6opengl_63glDeleteShader, 0, __pyx_mstate_global->__pyx_n_u_glDeleteShader, NULL, __pyx_mstate_global->__pyx_n_u_kivy_graphics_opengl, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[31])); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 631, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_2);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_glDeleteShader, __pyx_t_2) < (0)) __PYX_ERR(0, 631, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "kivy/graphics/opengl.pyx":637
 *     cgl.glDeleteShader(shader)
 * 
 * def glDeleteTextures(GLsizei n, bytes textures):             # <<<<<<<<<<<<<<
 *     '''See: `glDeleteTextures() on Kronos website
 *     <http://www.khronos.org/opengles/sdk/docs/man/xhtml/glDeleteTextures.xml>`_
*/
  __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4kivy_8graphics_6opengl_65glDeleteTextures, 0, __pyx_mstate_global->__pyx_n_u_glDeleteTextures, NULL, __pyx_mstate_global->__pyx_n_u_kivy_graphics_opengl, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[32])); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 637, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_2);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_glDeleteTextures, __pyx_t_2) < (0)) __PYX_ERR(0, 637, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "kivy/graphics/opengl.pyx":643
 *     cgl.glDeleteTextures(n, <GLuint *><char *>textures)
 * 
 * def glDepthFunc(GLenum func):             # <<<<<<<<<<<<<<
 *     '''See: `glDepthFunc() on Kronos website
 *     <http://www.khronos.org/opengles/sdk/docs/man/xhtml/glDepthFunc.xml>`_
*/
  __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4kivy_8graphics_6opengl_67glDepthFunc, 0, __pyx_mstate_global->__pyx_n_u_glDepthFunc, NULL, __pyx_mstate_global->__pyx_n_u_kivy_graphics_opengl, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[33])); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 643, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_2);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_glDepthFunc, __pyx_t_2) < (0)) __PYX_ERR(0, 643, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "kivy/graphics/opengl.pyx":649
 *     cgl.glDepthFunc(func)
 * 
 * def glDepthMask(GLboolean flag):             # <<<<<<<<<<<<<<
 *     '''See: `glDepthMask() on Kronos website
 *     <http://www.khronos.org/opengles/sdk/docs/man/xhtml/glDepthMask.xml>`_
*/
  __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4kivy_8graphics_6opengl_69glDepthMask, 0, __pyx_mstate_global->__pyx_n_u_glDepthMask, NULL, __pyx_mstate_global->__pyx_n_u_kivy_graphics_opengl, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[34])); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 649, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_2);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_glDepthMask, __pyx_t_2) < (0)) __PYX_ERR(0, 649, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "kivy/graphics/opengl.pyx":661
 * #    cgl.glDepthRangef(zNear, zFar)
 * 
 * def glDetachShader(GLuint program, GLuint shader):             # <<<<<<<<<<<<<<
 *     '''See: `glDetachShader() on Kronos website
 *     <http://www.khronos.org/opengles/sdk/docs/man/xhtml/glDetachShader.xml>`_
*/
  __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4kivy_8graphics_6opengl_71glDetachShader, 0, __pyx_mstate_global->__pyx_n_u_glDetachShader, NULL, __pyx_mstate_global->__pyx_n_u_kivy_graphics_opengl, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[35])); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 661, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_2);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_glDetachShader, __pyx_t_2) < (0)) __PYX_ERR(0, 661, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "kivy/graphics/opengl.pyx":667
 *     cgl.glDetachShader(program, shader)
 * 
 * def glDisable(GLenum cap):             # <<<<<<<<<<<<<<
 *     '''See: `glDisable() on Kronos website
 *     <http://www.khronos.org/opengles/sdk/docs/man/xhtml/glDisable.xml>`_
*/
  __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4kivy_8graphics_6opengl_73glDisable, 0, __pyx_mstate_global->__pyx_n_u_glDisable, NULL, __pyx_mstate_global->__pyx_n_u_kivy_graphics_opengl, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[36])); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 667, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_2);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_glDisable, __pyx_t_2) < (0)) __PYX_ERR(0, 667, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "kivy/graphics/opengl.pyx":673
 *     cgl.glDisable(cap)
 * 
 * def glDisableVertexAttribArray(GLuint index):             # <<<<<<<<<<<<<<
 *     '''See: `glDisableVertexAttribArray() on Kronos website
 *     <http://www.khronos.org/opengles/sdk/docs/man/xhtml/glDisableVertexAttribArray.xml>`_
*/
  __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4kivy_8graphics_6opengl_75glDisableVertexAttribArray, 0, __pyx_mstate_global->__pyx_n_u_glDisableVertexAttribArray, NULL, __pyx_mstate_global->__pyx_n_u_kivy_graphics_opengl, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[37])); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 673, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_2);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_glDisableVertexAttribArray, __pyx_t_2) < (0)) __PYX_ERR(0, 673, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "kivy/graphics/opengl.pyx":679
 *     cgl.glDisableVertexAttribArray(index)
 * 
 * def glDrawArrays(GLenum mode, GLint first, GLsizei count):             # <<<<<<<<<<<<<<
 *     '''See: `glDrawArrays() on Kronos website
 *     <http://www.khronos.org/opengles/sdk/docs/man/xhtml/glDrawArrays.xml>`_
*/
  __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4kivy_8graphics_6opengl_77glDrawArrays, 0, __pyx_mstate_global->__pyx_n_u_glDrawArrays, NULL, __pyx_mstate_global->__pyx_n_u_kivy_graphics_opengl, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[38])); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 679, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_2);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_glDrawArrays, __pyx_t_2) < (0)) __PYX_ERR(0, 679, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "kivy/graphics/opengl.pyx":685
 *     cgl.glDrawArrays(mode, first, count)
 * 
 * def glDrawElements(GLenum mode, GLsizei count, GLenum type, indices):             # <<<<<<<<<<<<<<
 *     '''See: `glDrawElements() on Kronos website
 *     <http://www.khronos.org/opengles/sdk/docs/man/xhtml/glDrawElements.xml>`_
*/
  __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4kivy_8graphics_6opengl_79glDrawElements, 0, __pyx_mstate_global->__pyx_n_u_glDrawElements, NULL, __pyx_mstate_global->__pyx_n_u_kivy_graphics_opengl, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[39])); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 685, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_2);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_glDrawElements, __pyx_t_2) < (0)) __PYX_ERR(0, 685, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "kivy/graphics/opengl.pyx":698
 *     cgl.glDrawElements(mode, count, type, ptr)
 * 
 * def glEnable(GLenum cap):             # <<<<<<<<<<<<<<
 *     '''See: `glEnable() on Kronos website
 *     <http://www.khronos.org/opengles/sdk/docs/man/xhtml/glEnable.xml>`_
*/
  __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4kivy_8graphics_6opengl_81glEnable, 0, __pyx_mstate_global->__pyx_n_u_glEnable, NULL, __pyx_mstate_global->__pyx_n_u_kivy_graphics_opengl, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[40])); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 698, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_2);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_glEnable, __pyx_t_2) < (0)) __PYX_ERR(0, 698, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "kivy/graphics/opengl.pyx":704
 *     cgl.glEnable(cap)
 * 
 * def glEnableVertexAttribArray(GLuint index):             # <<<<<<<<<<<<<<
 *     '''See: `glEnableVertexAttribArray() on Kronos website
 *     <http://www.khronos.org/opengles/sdk/docs/man/xhtml/glEnableVertexAttribArray.xml>`_
*/
  __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4kivy_8graphics_6opengl_83glEnableVertexAttribArray, 0, __pyx_mstate_global->__pyx_n_u_glEnableVertexAttribArray, NULL, __pyx_mstate_global->__pyx_n_u_kivy_graphics_opengl, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[41])); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 704, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_2);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_glEnableVertexAttribArray, __pyx_t_2) < (0)) __PYX_ERR(0, 704, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "kivy/graphics/opengl.pyx":710
 *     cgl.glEnableVertexAttribArray(index)
 * 
 * def glFinish():             # <<<<<<<<<<<<<<
 *     '''See: `glFinish() on Kronos website
 *     <http://www.khronos.org/opengles/sdk/docs/man/xhtml/glFinish.xml>`_
*/
  __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4kivy_8graphics_6opengl_85glFinish, 0, __pyx_mstate_global->__pyx_n_u_glFinish, NULL, __pyx_mstate_global->__pyx_n_u_kivy_graphics_opengl, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[42])); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 710, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_2);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_glFinish, __pyx_t_2) < (0)) __PYX_ERR(0, 710, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "kivy/graphics/opengl.pyx":716
 *     cgl.glFinish()
 * 
 * def glFlush():             # <<<<<<<<<<<<<<
 *     '''See: `glFlush() on Kronos website
 *     <http://www.khronos.org/opengles/sdk/docs/man/xhtml/glFlush.xml>`_
*/
  __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4kivy_8graphics_6opengl_87glFlush, 0, __pyx_mstate_global->__pyx_n_u_glFlush, NULL, __pyx_mstate_global->__pyx_n_u_kivy_graphics_opengl, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[43])); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 716, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_2);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_glFlush, __pyx_t_2) < (0)) __PYX_ERR(0, 716, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "kivy/graphics/opengl.pyx":722
 *     cgl.glFlush()
 * 
 * def glFramebufferRenderbuffer(GLenum target, GLenum attachment, GLenum renderbuffertarget, GLuint renderbuffer):             # <<<<<<<<<<<<<<
 *     '''See: `glFramebufferRenderbuffer() on Kronos website
 *     <http://www.khronos.org/opengles/sdk/docs/man/xhtml/glFramebufferRenderbuffer.xml>`_
*/
  __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4kivy_8graphics_6opengl_89glFramebufferRenderbuffer, 0, __pyx_mstate_global->__pyx_n_u_glFramebufferRenderbuffer, NULL, __pyx_mstate_global->__pyx_n_u_kivy_graphics_opengl, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[44])); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 722, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_2);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_glFramebufferRenderbuffer, __pyx_t_2) < (0)) __PYX_ERR(0, 722, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "kivy/graphics/opengl.pyx":728
 *     cgl.glFramebufferRenderbuffer(target, attachment, renderbuffertarget, renderbuffer)
 * 
 * def glFramebufferTexture2D(GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level):             # <<<<<<<<<<<<<<
 *     '''See: `glFramebufferTexture2D() on Kronos website
 *     <http://www.khronos.org/opengles/sdk/docs/man/xhtml/glFramebufferTexture2D.xml>`_
*/
  __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4kivy_8graphics_6opengl_91glFramebufferTexture2D, 0, __pyx_mstate_global->__pyx_n_u_glFramebufferTexture2D, NULL, __pyx_mstate_global->__pyx_n_u_kivy_graphics_opengl, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[45])); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 728, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_2);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_glFramebufferTexture2D, __pyx_t_2) < (0)) __PYX_ERR(0, 728, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "kivy/graphics/opengl.pyx":734
 *     cgl.glFramebufferTexture2D(target, attachment, textarget, texture, level)
 * 
 * def glFrontFace(GLenum mode):             # <<<<<<<<<<<<<<
 *     '''See: `glFrontFace() on Kronos website
 *     <http://www.khronos.org/opengles/sdk/docs/man/xhtml/glFrontFace.xml>`_
*/
  __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4kivy_8graphics_6opengl_93glFrontFace, 0, __pyx_mstate_global->__pyx_n_u_glFrontFace, NULL, __pyx_mstate_global->__pyx_n_u_kivy_graphics_opengl, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[46])); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 734, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_2);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_glFrontFace, __pyx_t_2) < (0)) __PYX_ERR(0, 734, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "kivy/graphics/opengl.pyx":740
 *     cgl.glFrontFace(mode)
 * 
 * def glGenBuffers(GLsizei n):             # <<<<<<<<<<<<<<
 *     '''See: `glGenBuffers() on Kronos website
 *     <http://www.khronos.org/opengles/sdk/docs/man/xhtml/glGenBuffers.xml>`_
*/
  __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4kivy_8graphics_6opengl_95glGenBuffers, 0, __pyx_mstate_global->__pyx_n_u_glGenBuffers, NULL, __pyx_mstate_global->__pyx_n_u_kivy_graphics_opengl, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[47])); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 740, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_2);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_glGenBuffers, __pyx_t_2) < (0)) __PYX_ERR(0, 740, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "kivy/graphics/opengl.pyx":750
 *     return _genEnd(n, d)
 * 
 * def glGenerateMipmap(GLenum target):             # <<<<<<<<<<<<<<
 *     '''See: `glGenerateMipmap() on Kronos website
 *     <http://www.khronos.org/opengles/sdk/docs/man/xhtml/glGenerateMipmap.xml>`_
*/
  __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4kivy_8graphics_6opengl_97glGenerateMipmap, 0, __pyx_mstate_global->__pyx_n_u_glGenerateMipmap, NULL, __pyx_mstate_global->__pyx_n_u_kivy_graphics_opengl, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[48])); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 750, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_2);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_glGenerateMipmap, __pyx_t_2) < (0)) __PYX_ERR(0, 750, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "kivy/graphics/opengl.pyx":756
 *     cgl.glGenerateMipmap(target)
 * 
 * def glGenFramebuffers(GLsizei n):             # <<<<<<<<<<<<<<
 *     '''See: `glGenFramebuffers() on Kronos website
 *     <http://www.khronos.org/opengles/sdk/docs/man/xhtml/glGenFramebuffers.xml>`_
*/
  __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4kivy_8graphics_6opengl_99glGenFramebuffers, 0, __pyx_mstate_global->__pyx_n_u_glGenFramebuffers, NULL, __pyx_mstate_global->__pyx_n_u_kivy_graphics_opengl, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[49])); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 756, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_2);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_glGenFramebuffers, __pyx_t_2) < (0)) __PYX_ERR(0, 756, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "kivy/graphics/opengl.pyx":766
 *     return _genEnd(n, d)
 * 
 * def glGenRenderbuffers(GLsizei n):             # <<<<<<<<<<<<<<
 *     '''See: `glGenRenderbuffers() on Kronos website
 *     <http://www.khronos.org/opengles/sdk/docs/man/xhtml/glGenRenderbuffers.xml>`_
*/
  __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4kivy_8graphics_6opengl_101glGenRenderbuffers, 0, __pyx_mstate_global->__pyx_n_u_glGenRenderbuffers, NULL, __pyx_mstate_global->__pyx_n_u_kivy_graphics_opengl, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[50])); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 766, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_2);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_glGenRenderbuffers, __pyx_t_2) < (0)) __PYX_ERR(0, 766, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "kivy/graphics/opengl.pyx":776
 *     return _genEnd(n, d)
 * 
 * def glGenTextures(GLsizei n):             # <<<<<<<<<<<<<<
 *     '''See: `glGenTextures() on Kronos website
 *     <http://www.khronos.org/opengles/sdk/docs/man/xhtml/glGenTextures.xml>`_
*/
  __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4kivy_8graphics_6opengl_103glGenTextures, 0, __pyx_mstate_global->__pyx_n_u_glGenTextures, NULL, __pyx_mstate_global->__pyx_n_u_kivy_graphics_opengl, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[51])); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 776, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_2);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_glGenTextures, __pyx_t_2) < (0)) __PYX_ERR(0, 776, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "kivy/graphics/opengl.pyx":786
 *     return _genEnd(n, d)
 * 
 * def glGetActiveAttrib(GLuint program, GLuint index):             # <<<<<<<<<<<<<<
 *     '''See: `glGetActiveAttrib() on Kronos website
 *     <http://www.khronos.org/opengles/sdk/docs/man/xhtml/glGetActiveAttrib.xml>`_
*/
  __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4kivy_8graphics_6opengl_105glGetActiveAttrib, 0, __pyx_mstate_global->__pyx_n_u_glGetActiveAttrib_2, NULL, __pyx_mstate_global->__pyx_n_u_kivy_graphics_opengl, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[52])); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 786, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_2);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_glGetActiveAttrib_2, __pyx_t_2) < (0)) __PYX_ERR(0, 786, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "kivy/graphics/opengl.pyx":804
 *     return p_name, size, gl_type
 * 
 * def glGetActiveUniform(GLuint program, GLuint index):             # <<<<<<<<<<<<<<
 *     '''See: `glGetActiveUniform() on Kronos website
 *     <http://www.khronos.org/opengles/sdk/docs/man/xhtml/glGetActiveUniform.xml>`_
*/
  __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4kivy_8graphics_6opengl_107glGetActiveUniform, 0, __pyx_mstate_global->__pyx_n_u_glGetActiveUniform_2, NULL, __pyx_mstate_global->__pyx_n_u_kivy_graphics_opengl, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[53])); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 804, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_2);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_glGetActiveUniform_2, __pyx_t_2) < (0)) __PYX_ERR(0, 804, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "kivy/graphics/opengl.pyx":822
 *     return p_name, size, gl_type
 * 
 * def glGetAttachedShaders(GLuint program, GLsizei maxcount):             # <<<<<<<<<<<<<<
 *     '''See: `glGetAttachedShaders() on Kronos website
 *     <http://www.khronos.org/opengles/sdk/docs/man/xhtml/glGetAttachedShaders.xml>`_
*/
  __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4kivy_8graphics_6opengl_109glGetAttachedShaders, 0, __pyx_mstate_global->__pyx_n_u_glGetAttachedShaders, NULL, __pyx_mstate_global->__pyx_n_u_kivy_graphics_opengl, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[54])); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 822, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_2);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_glGetAttachedShaders, __pyx_t_2) < (0)) __PYX_ERR(0, 822, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "kivy/graphics/opengl.pyx":833
 *     return _genEnd(count, shaders)
 * 
 * def glGetAttribLocation(GLuint program,  bytes name):             # <<<<<<<<<<<<<<
 *     '''See: `glGetAttribLocation() on Kronos website
 *     <http://www.khronos.org/opengles/sdk/docs/man/xhtml/glGetAttribLocation.xml>`_
*/
  __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4kivy_8graphics_6opengl_111glGetAttribLocation, 0, __pyx_mstate_global->__pyx_n_u_glGetAttribLocation, NULL, __pyx_mstate_global->__pyx_n_u_kivy_graphics_opengl, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[55])); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 833, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_2);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_glGetAttribLocation, __pyx_t_2) < (0)) __PYX_ERR(0, 833, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "kivy/graphics/opengl.pyx":841
 *     return cgl.glGetAttribLocation(program, <char *>name)
 * 
 * def glGetBooleanv(GLenum pname):             # <<<<<<<<<<<<<<
 *     '''See: `glGetBooleanv() on Kronos website
 *     <http://www.khronos.org/opengles/sdk/docs/man/xhtml/glGetBooleanv.xml>`_
*/
  __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4kivy_8graphics_6opengl_113glGetBooleanv, 0, __pyx_mstate_global->__pyx_n_u_glGetBooleanv_2, NULL, __pyx_mstate_global->__pyx_n_u_kivy_graphics_opengl, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[56])); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 841, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_2);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_glGetBooleanv_2, __pyx_t_2) < (0)) __PYX_ERR(0, 841, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "kivy/graphics/opengl.pyx":855
 *     return out
 * 
 * def glGetBufferParameteriv(GLenum target, GLenum pname):             # <<<<<<<<<<<<<<
 *     '''See: `glGetBufferParameteriv() on Kronos website
 *     <http://www.khronos.org/opengles/sdk/docs/man/xhtml/glGetBufferParameteriv.xml>`_
*/
  __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4kivy_8graphics_6opengl_115glGetBufferParameteriv, 0, __pyx_mstate_global->__pyx_n_u_glGetBufferParameteriv_2, NULL, __pyx_mstate_global->__pyx_n_u_kivy_graphics_opengl, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[57])); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 855, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_2);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_glGetBufferParameteriv_2, __pyx_t_2) < (0)) __PYX_ERR(0, 855, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "kivy/graphics/opengl.pyx":869
 *     return out
 * 
 * def glGetError():             # <<<<<<<<<<<<<<
 *     '''See: `glGetError() on Kronos website
 *     <http://www.khronos.org/opengles/sdk/docs/man/xhtml/glGetError.xml>`_
*/
  __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4kivy_8graphics_6opengl_117glGetError, 0, __pyx_mstate_global->__pyx_n_u_glGetError, NULL, __pyx_mstate_global->__pyx_n_u_kivy_graphics_opengl, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[58])); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 869, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_2);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_glGetError, __pyx_t_2) < (0)) __PYX_ERR(0, 869, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "kivy/graphics/opengl.pyx":877
 *     return cgl.glGetError()
 * 
 * def glGetFloatv(GLenum pname):             # <<<<<<<<<<<<<<
 *     '''See: `glGetFloatv() on Kronos website
 *     <http://www.khronos.org/opengles/sdk/docs/man/xhtml/glGetFloatv.xml>`_
*/
  __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4kivy_8graphics_6opengl_119glGetFloatv, 0, __pyx_mstate_global->__pyx_n_u_glGetFloatv_2, NULL, __pyx_mstate_global->__pyx_n_u_kivy_graphics_opengl, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[59])); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 877, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_2);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_glGetFloatv_2, __pyx_t_2) < (0)) __PYX_ERR(0, 877, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "kivy/graphics/opengl.pyx":891
 *     return out
 * 
 * def glGetFramebufferAttachmentParameteriv(GLenum target, GLenum attachment, GLenum pname):             # <<<<<<<<<<<<<<
 *     '''See: `glGetFramebufferAttachmentParameteriv() on Kronos website
 *     <http://www.khronos.org/opengles/sdk/docs/man/xhtml/glGetFramebufferAttachmentParameteriv.xml>`_
*/
  __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4kivy_8graphics_6opengl_121glGetFramebufferAttachmentParameteriv, 0, __pyx_mstate_global->__pyx_n_u_glGetFramebufferAttachmentParame_2, NULL, __pyx_mstate_global->__pyx_n_u_kivy_graphics_opengl, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[60])); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 891, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_2);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_glGetFramebufferAttachmentParame_2, __pyx_t_2) < (0)) __PYX_ERR(0, 891, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "kivy/graphics/opengl.pyx":905
 *     return out
 * 
 * def glGetIntegerv(GLenum pname):             # <<<<<<<<<<<<<<
 *     '''See: `glGetIntegerv() on Kronos website
 *     <http://www.khronos.org/opengles/sdk/docs/man/xhtml/glGetIntegerv.xml>`_
*/
  __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4kivy_8graphics_6opengl_123glGetIntegerv, 0, __pyx_mstate_global->__pyx_n_u_glGetIntegerv_2, NULL, __pyx_mstate_global->__pyx_n_u_kivy_graphics_opengl, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[61])); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 905, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_2);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_glGetIntegerv_2, __pyx_t_2) < (0)) __PYX_ERR(0, 905, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "kivy/graphics/opengl.pyx":919
 *     return out
 * 
 * def glGetProgramiv(GLuint program, GLenum pname):             # <<<<<<<<<<<<<<
 *     '''See: `glGetProgramiv() on Kronos website
 *     <http://www.khronos.org/opengles/sdk/docs/man/xhtml/glGetProgramiv.xml>`_
*/
  __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4kivy_8graphics_6opengl_125glGetProgramiv, 0, __pyx_mstate_global->__pyx_n_u_glGetProgramiv, NULL, __pyx_mstate_global->__pyx_n_u_kivy_graphics_opengl, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[62])); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 919, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_2);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_glGetProgramiv, __pyx_t_2) < (0)) __PYX_ERR(0, 919, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "kivy/graphics/opengl.pyx":929
 *     return params
 * 
 * def glGetProgramInfoLog(GLuint program, GLsizei bufsize):             # <<<<<<<<<<<<<<
 *     '''See: `glGetProgramInfoLog() on Kronos website
 *     <http://www.khronos.org/opengles/sdk/docs/man/xhtml/glGetProgramInfoLog.xml>`_
*/
  __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4kivy_8graphics_6opengl_127glGetProgramInfoLog, 0, __pyx_mstate_global->__pyx_n_u_glGetProgramInfoLog_2, NULL, __pyx_mstate_global->__pyx_n_u_kivy_graphics_opengl, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[63])); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 929, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_2);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_glGetProgramInfoLog_2, __pyx_t_2) < (0)) __PYX_ERR(0, 929, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "kivy/graphics/opengl.pyx":946
 *     return p_infolog
 * 
 * def glGetRenderbufferParameteriv(GLenum target, GLenum pname):             # <<<<<<<<<<<<<<
 *     '''See: `glGetRenderbufferParameteriv() on Kronos website
 *     <http://www.khronos.org/opengles/sdk/docs/man/xhtml/glGetRenderbufferParameteriv.xml>`_
*/
  __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4kivy_8graphics_6opengl_129glGetRenderbufferParameteriv, 0, __pyx_mstate_global->__pyx_n_u_glGetRenderbufferParameteriv, NULL, __pyx_mstate_global->__pyx_n_u_kivy_graphics_opengl, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[64])); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 946, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_2);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_glGetRenderbufferParameteriv, __pyx_t_2) < (0)) __PYX_ERR(0, 946, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "kivy/graphics/opengl.pyx":956
 *     return params
 * 
 * def glGetShaderiv(GLuint shader, GLenum pname):             # <<<<<<<<<<<<<<
 *     '''See: `glGetShaderiv() on Kronos website
 *     <http://www.khronos.org/opengles/sdk/docs/man/xhtml/glGetShaderiv.xml>`_
*/
  __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4kivy_8graphics_6opengl_131glGetShaderiv, 0, __pyx_mstate_global->__pyx_n_u_glGetShaderiv, NULL, __pyx_mstate_global->__pyx_n_u_kivy_graphics_opengl, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[65])); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 956, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_2);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_glGetShaderiv, __pyx_t_2) < (0)) __PYX_ERR(0, 956, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "kivy/graphics/opengl.pyx":966
 *     return params
 * 
 * def glGetShaderInfoLog(GLuint shader, GLsizei bufsize):             # <<<<<<<<<<<<<<
 *     '''See: `glGetShaderInfoLog() on Kronos website
 *     <http://www.khronos.org/opengles/sdk/docs/man/xhtml/glGetShaderInfoLog.xml>`_
*/
  __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4kivy_8graphics_6opengl_133glGetShaderInfoLog, 0, __pyx_mstate_global->__pyx_n_u_glGetShaderInfoLog_2, NULL, __pyx_mstate_global->__pyx_n_u_kivy_graphics_opengl, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[66])); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 966, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_2);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_glGetShaderInfoLog_2, __pyx_t_2) < (0)) __PYX_ERR(0, 966, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "kivy/graphics/opengl.pyx":983
 *     return p_infolog
 * 
 * def glGetShaderPrecisionFormat(GLenum shadertype, GLenum precisiontype): #, GLint* range, GLint* precision):             # <<<<<<<<<<<<<<
 *     '''See: `glGetShaderPrecisionFormat() on Kronos website
 *     <http://www.khronos.org/opengles/sdk/docs/man/xhtml/glGetShaderPrecisionFormat.xml>`_
*/
  __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4kivy_8graphics_6opengl_135glGetShaderPrecisionFormat, 0, __pyx_mstate_global->__pyx_n_u_glGetShaderPrecisionFormat, NULL, __pyx_mstate_global->__pyx_n_u_kivy_graphics_opengl, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[67])); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 983, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_2);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_glGetShaderPrecisionFormat, __pyx_t_2) < (0)) __PYX_ERR(0, 983, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "kivy/graphics/opengl.pyx":992
 *     #cgl.glGetShaderPrecisionFormat(shadertype, precisiontype, range, precision)
 * 
 * def glGetShaderSource(GLuint shader):             # <<<<<<<<<<<<<<
 *     '''See: `glGetShaderSource() on Kronos website
 *     <http://www.khronos.org/opengles/sdk/docs/man/xhtml/glGetShaderSource.xml>`_
*/
  __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4kivy_8graphics_6opengl_137glGetShaderSource, 0, __pyx_mstate_global->__pyx_n_u_glGetShaderSource, NULL, __pyx_mstate_global->__pyx_n_u_kivy_graphics_opengl, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[68])); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 992, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_2);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_glGetShaderSource, __pyx_t_2) < (0)) __PYX_ERR(0, 992, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "kivy/graphics/opengl.pyx":1009
 *     return p_source
 * 
 * def glGetString(GLenum name):             # <<<<<<<<<<<<<<
 *     '''See: `glGetString() on Kronos website
 *     <http://www.khronos.org/opengles/sdk/docs/man/xhtml/glGetString.xml>`_
*/
  __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4kivy_8graphics_6opengl_139glGetString, 0, __pyx_mstate_global->__pyx_n_u_glGetString, NULL, __pyx_mstate_global->__pyx_n_u_kivy_graphics_opengl, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[69])); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1009, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_2);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_glGetString, __pyx_t_2) < (0)) __PYX_ERR(0, 1009, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "kivy/graphics/opengl.pyx":1019
 *     return p_string
 * 
 * def glGetTexParameterfv(GLenum target, GLenum pname):             # <<<<<<<<<<<<<<
 *     '''See: `glGetTexParameterfv() on Kronos website
 *     <http://www.khronos.org/opengles/sdk/docs/man/xhtml/glGetTexParameterfv.xml>`_
*/
  __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4kivy_8graphics_6opengl_141glGetTexParameterfv, 0, __pyx_mstate_global->__pyx_n_u_glGetTexParameterfv, NULL, __pyx_mstate_global->__pyx_n_u_kivy_graphics_opengl, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[70])); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1019, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_2);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_glGetTexParameterfv, __pyx_t_2) < (0)) __PYX_ERR(0, 1019, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "kivy/graphics/opengl.pyx":1027
 *     return params
 * 
 * def glGetTexParameteriv(GLenum target, GLenum pname):             # <<<<<<<<<<<<<<
 *     '''See: `glGetTexParameteriv() on Kronos website
 *     <http://www.khronos.org/opengles/sdk/docs/man/xhtml/glGetTexParameteriv.xml>`_
*/
  __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4kivy_8graphics_6opengl_143glGetTexParameteriv, 0, __pyx_mstate_global->__pyx_n_u_glGetTexParameteriv, NULL, __pyx_mstate_global->__pyx_n_u_kivy_graphics_opengl, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[71])); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1027, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_2);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_glGetTexParameteriv, __pyx_t_2) < (0)) __PYX_ERR(0, 1027, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "kivy/graphics/opengl.pyx":1035
 *     return params
 * 
 * def glGetUniformfv(GLuint program, GLint location):             # <<<<<<<<<<<<<<
 *     '''See: `glGetUniformfv() on Kronos website
 *     <http://www.khronos.org/opengles/sdk/docs/man/xhtml/glGetUniformfv.xml>`_
*/
  __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4kivy_8graphics_6opengl_145glGetUniformfv, 0, __pyx_mstate_global->__pyx_n_u_glGetUniformfv, NULL, __pyx_mstate_global->__pyx_n_u_kivy_graphics_opengl, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[72])); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1035, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_2);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_glGetUniformfv, __pyx_t_2) < (0)) __PYX_ERR(0, 1035, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "kivy/graphics/opengl.pyx":1043
 *     return params
 * 
 * def glGetUniformiv(GLuint program, GLint location):             # <<<<<<<<<<<<<<
 *     '''See: `glGetUniformiv() on Kronos website
 *     <http://www.khronos.org/opengles/sdk/docs/man/xhtml/glGetUniformiv.xml>`_
*/
  __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4kivy_8graphics_6opengl_147glGetUniformiv, 0, __pyx_mstate_global->__pyx_n_u_glGetUniformiv, NULL, __pyx_mstate_global->__pyx_n_u_kivy_graphics_opengl, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[73])); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1043, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_2);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_glGetUniformiv, __pyx_t_2) < (0)) __PYX_ERR(0, 1043, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "kivy/graphics/opengl.pyx":1051
 *     return params
 * 
 * def glGetUniformLocation(GLuint program, bytes name):             # <<<<<<<<<<<<<<
 *     '''See: `glGetUniformLocation() on Kronos website
 *     <http://www.khronos.org/opengles/sdk/docs/man/xhtml/glGetUniformLocation.xml>`_
*/
  __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4kivy_8graphics_6opengl_149glGetUniformLocation, 0, __pyx_mstate_global->__pyx_n_u_glGetUniformLocation, NULL, __pyx_mstate_global->__pyx_n_u_kivy_graphics_opengl, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[74])); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1051, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_2);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_glGetUniformLocation, __pyx_t_2) < (0)) __PYX_ERR(0, 1051, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "kivy/graphics/opengl.pyx":1057
 *     return cgl.glGetUniformLocation(program, <char *>name)
 * 
 * def glGetVertexAttribfv(GLuint index, GLenum pname):             # <<<<<<<<<<<<<<
 *     '''See: `glGetVertexAttribfv() on Kronos website
 *     <http://www.khronos.org/opengles/sdk/docs/man/xhtml/glGetVertexAttribfv.xml>`_
*/
  __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4kivy_8graphics_6opengl_151glGetVertexAttribfv, 0, __pyx_mstate_global->__pyx_n_u_glGetVertexAttribfv, NULL, __pyx_mstate_global->__pyx_n_u_kivy_graphics_opengl, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[75])); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1057, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_2);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_glGetVertexAttribfv, __pyx_t_2) < (0)) __PYX_ERR(0, 1057, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "kivy/graphics/opengl.pyx":1065
 *     return params
 * 
 * def glGetVertexAttribiv(GLuint index, GLenum pname):             # <<<<<<<<<<<<<<
 *     '''See: `glGetVertexAttribiv() on Kronos website
 *     <http://www.khronos.org/opengles/sdk/docs/man/xhtml/glGetVertexAttribiv.xml>`_
*/
  __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4kivy_8graphics_6opengl_153glGetVertexAttribiv, 0, __pyx_mstate_global->__pyx_n_u_glGetVertexAttribiv, NULL, __pyx_mstate_global->__pyx_n_u_kivy_graphics_opengl, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[76])); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1065, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_2);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_glGetVertexAttribiv, __pyx_t_2) < (0)) __PYX_ERR(0, 1065, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "kivy/graphics/opengl.pyx":1073
 *     return params
 * 
 * def glGetVertexAttribPointerv(GLuint index, GLenum pname):#, GLvoid** pointer):             # <<<<<<<<<<<<<<
 *     '''See: `glGetVertexAttribPointerv() on Kronos website
 *     <http://www.khronos.org/opengles/sdk/docs/man/xhtml/glGetVertexAttribPointerv.xml>`_
*/
  __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4kivy_8graphics_6opengl_155glGetVertexAttribPointerv, 0, __pyx_mstate_global->__pyx_n_u_glGetVertexAttribPointerv, NULL, __pyx_mstate_global->__pyx_n_u_kivy_graphics_opengl, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[77])); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1073, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_2);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_glGetVertexAttribPointerv, __pyx_t_2) < (0)) __PYX_ERR(0, 1073, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "kivy/graphics/opengl.pyx":1082
 *     #cgl.glGetVertexAttribPointerv(index, pname, pointer)
 * 
 * def glHint(GLenum target, GLenum mode):             # <<<<<<<<<<<<<<
 *     '''See: `glHint() on Kronos website
 *     <http://www.khronos.org/opengles/sdk/docs/man/xhtml/glHint.xml>`_
*/
  __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4kivy_8graphics_6opengl_157glHint, 0, __pyx_mstate_global->__pyx_n_u_glHint, NULL, __pyx_mstate_global->__pyx_n_u_kivy_graphics_opengl, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[78])); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1082, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_2);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_glHint, __pyx_t_2) < (0)) __PYX_ERR(0, 1082, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "kivy/graphics/opengl.pyx":1088
 *     cgl.glHint(target, mode)
 * 
 * def glIsBuffer(GLuint buffer):             # <<<<<<<<<<<<<<
 *     '''See: `glIsBuffer() on Kronos website
 *     <http://www.khronos.org/opengles/sdk/docs/man/xhtml/glIsBuffer.xml>`_
*/
  __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4kivy_8graphics_6opengl_159glIsBuffer, 0, __pyx_mstate_global->__pyx_n_u_glIsBuffer, NULL, __pyx_mstate_global->__pyx_n_u_kivy_graphics_opengl, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[79])); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1088, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_2);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_glIsBuffer, __pyx_t_2) < (0)) __PYX_ERR(0, 1088, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "kivy/graphics/opengl.pyx":1094
 *     return cgl.glIsBuffer(buffer)
 * 
 * def glIsEnabled(GLenum cap):             # <<<<<<<<<<<<<<
 *     '''See: `glIsEnabled() on Kronos website
 *     <http://www.khronos.org/opengles/sdk/docs/man/xhtml/glIsEnabled.xml>`_
*/
  __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4kivy_8graphics_6opengl_161glIsEnabled, 0, __pyx_mstate_global->__pyx_n_u_glIsEnabled, NULL, __pyx_mstate_global->__pyx_n_u_kivy_graphics_opengl, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[80])); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1094, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_2);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_glIsEnabled, __pyx_t_2) < (0)) __PYX_ERR(0, 1094, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "kivy/graphics/opengl.pyx":1100
 *     return cgl.glIsEnabled(cap)
 * 
 * def glIsFramebuffer(GLuint framebuffer):             # <<<<<<<<<<<<<<
 *     '''See: `glIsFramebuffer() on Kronos website
 *     <http://www.khronos.org/opengles/sdk/docs/man/xhtml/glIsFramebuffer.xml>`_
*/
  __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4kivy_8graphics_6opengl_163glIsFramebuffer, 0, __pyx_mstate_global->__pyx_n_u_glIsFramebuffer, NULL, __pyx_mstate_global->__pyx_n_u_kivy_graphics_opengl, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[81])); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1100, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_2);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_glIsFramebuffer, __pyx_t_2) < (0)) __PYX_ERR(0, 1100, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "kivy/graphics/opengl.pyx":1106
 *     return cgl.glIsFramebuffer(framebuffer)
 * 
 * def glIsProgram(GLuint program):             # <<<<<<<<<<<<<<
 *     '''See: `glIsProgram() on Kronos website
 *     <http://www.khronos.org/opengles/sdk/docs/man/xhtml/glIsProgram.xml>`_
*/
  __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4kivy_8graphics_6opengl_165glIsProgram, 0, __pyx_mstate_global->__pyx_n_u_glIsProgram, NULL, __pyx_mstate_global->__pyx_n_u_kivy_graphics_opengl, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[82])); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1106, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_2);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_glIsProgram, __pyx_t_2) < (0)) __PYX_ERR(0, 1106, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "kivy/graphics/opengl.pyx":1112
 *     return cgl.glIsProgram(program)
 * 
 * def glIsRenderbuffer(GLuint renderbuffer):             # <<<<<<<<<<<<<<
 *     '''See: `glIsRenderbuffer() on Kronos website
 *     <http://www.khronos.org/opengles/sdk/docs/man/xhtml/glIsRenderbuffer.xml>`_
*/
  __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4kivy_8graphics_6opengl_167glIsRenderbuffer, 0, __pyx_mstate_global->__pyx_n_u_glIsRenderbuffer, NULL, __pyx_mstate_global->__pyx_n_u_kivy_graphics_opengl, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[83])); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1112, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_2);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_glIsRenderbuffer, __pyx_t_2) < (0)) __PYX_ERR(0, 1112, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "kivy/graphics/opengl.pyx":1118
 *     return cgl.glIsRenderbuffer(renderbuffer)
 * 
 * def glIsShader(GLuint shader):             # <<<<<<<<<<<<<<
 *     '''See: `glIsShader() on Kronos website
 *     <http://www.khronos.org/opengles/sdk/docs/man/xhtml/glIsShader.xml>`_
*/
  __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4kivy_8graphics_6opengl_169glIsShader, 0, __pyx_mstate_global->__pyx_n_u_glIsShader, NULL, __pyx_mstate_global->__pyx_n_u_kivy_graphics_opengl, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[84])); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1118, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_2);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_glIsShader, __pyx_t_2) < (0)) __PYX_ERR(0, 1118, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "kivy/graphics/opengl.pyx":1124
 *     return cgl.glIsShader(shader)
 * 
 * def glIsTexture(GLuint texture):             # <<<<<<<<<<<<<<
 *     '''See: `glIsTexture() on Kronos website
 *     <http://www.khronos.org/opengles/sdk/docs/man/xhtml/glIsTexture.xml>`_
*/
  __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4kivy_8graphics_6opengl_171glIsTexture, 0, __pyx_mstate_global->__pyx_n_u_glIsTexture, NULL, __pyx_mstate_global->__pyx_n_u_kivy_graphics_opengl, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[85])); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1124, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_2);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_glIsTexture, __pyx_t_2) < (0)) __PYX_ERR(0, 1124, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "kivy/graphics/opengl.pyx":1130
 *     return cgl.glIsTexture(texture)
 * 
 * def glLineWidth(GLfloat width):             # <<<<<<<<<<<<<<
 *     '''See: `glLineWidth() on Kronos website
 *     <http://www.khronos.org/opengles/sdk/docs/man/xhtml/glLineWidth.xml>`_
*/
  __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4kivy_8graphics_6opengl_173glLineWidth, 0, __pyx_mstate_global->__pyx_n_u_glLineWidth, NULL, __pyx_mstate_global->__pyx_n_u_kivy_graphics_opengl, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[86])); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1130, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_2);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_glLineWidth, __pyx_t_2) < (0)) __PYX_ERR(0, 1130, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "kivy/graphics/opengl.pyx":1136
 *     cgl.glLineWidth(width)
 * 
 * def glLinkProgram(GLuint program):             # <<<<<<<<<<<<<<
 *     '''See: `glLinkProgram() on Kronos website
 *     <http://www.khronos.org/opengles/sdk/docs/man/xhtml/glLinkProgram.xml>`_
*/
  __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4kivy_8graphics_6opengl_175glLinkProgram, 0, __pyx_mstate_global->__pyx_n_u_glLinkProgram, NULL, __pyx_mstate_global->__pyx_n_u_kivy_graphics_opengl, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[87])); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1136, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_2);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_glLinkProgram, __pyx_t_2) < (0)) __PYX_ERR(0, 1136, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "kivy/graphics/opengl.pyx":1142
 *     cgl.glLinkProgram(program)
 * 
 * def glPixelStorei(GLenum pname, GLint param):             # <<<<<<<<<<<<<<
 *     '''See: `glPixelStorei() on Kronos website
 *     <http://www.khronos.org/opengles/sdk/docs/man/xhtml/glPixelStorei.xml>`_
*/
  __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4kivy_8graphics_6opengl_177glPixelStorei, 0, __pyx_mstate_global->__pyx_n_u_glPixelStorei, NULL, __pyx_mstate_global->__pyx_n_u_kivy_graphics_opengl, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[88])); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1142, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_2);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_glPixelStorei, __pyx_t_2) < (0)) __PYX_ERR(0, 1142, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "kivy/graphics/opengl.pyx":1148
 *     cgl.glPixelStorei(pname, param)
 * 
 * def glPolygonOffset(GLfloat factor, GLfloat units):             # <<<<<<<<<<<<<<
 *     '''See: `glPolygonOffset() on Kronos website
 *     <http://www.khronos.org/opengles/sdk/docs/man/xhtml/glPolygonOffset.xml>`_
*/
  __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4kivy_8graphics_6opengl_179glPolygonOffset, 0, __pyx_mstate_global->__pyx_n_u_glPolygonOffset, NULL, __pyx_mstate_global->__pyx_n_u_kivy_graphics_opengl, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[89])); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1148, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_2);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_glPolygonOffset, __pyx_t_2) < (0)) __PYX_ERR(0, 1148, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "kivy/graphics/opengl.pyx":1154
 *     cgl.glPolygonOffset(factor, units)
 * 
 * def glReadPixels(GLint x, GLint y, GLsizei width, GLsizei height, GLenum format,             # <<<<<<<<<<<<<<
 *                  GLenum type): #, GLvoid* pixels):
 *     '''See: `glReadPixels() on Kronos website
*/
  __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4kivy_8graphics_6opengl_181glReadPixels, 0, __pyx_mstate_global->__pyx_n_u_glReadPixels_2, NULL, __pyx_mstate_global->__pyx_n_u_kivy_graphics_opengl, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[90])); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1154, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_2);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_glReadPixels_2, __pyx_t_2) < (0)) __PYX_ERR(0, 1154, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "kivy/graphics/opengl.pyx":1189
 * # XXX This one is commented out because a) it's not necessary and
 * #                       b) it's breaking on OSX for some reason
 * def glReleaseShaderCompiler():             # <<<<<<<<<<<<<<
 *     '''See: `glReleaseShaderCompiler() on Kronos website
 *     <http://www.khronos.org/opengles/sdk/docs/man/xhtml/glReleaseShaderCompiler.xml>`_
*/
  __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4kivy_8graphics_6opengl_183glReleaseShaderCompiler, 0, __pyx_mstate_global->__pyx_n_u_glReleaseShaderCompiler, NULL, __pyx_mstate_global->__pyx_n_u_kivy_graphics_opengl, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[91])); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1189, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_2);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_glReleaseShaderCompiler, __pyx_t_2) < (0)) __PYX_ERR(0, 1189, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "kivy/graphics/opengl.pyx":1198
 * #    cgl.glReleaseShaderCompiler()
 * 
 * def glRenderbufferStorage(GLenum target, GLenum internalformat, GLsizei width, GLsizei height):             # <<<<<<<<<<<<<<
 *     '''See: `glRenderbufferStorage() on Kronos website
 *     <http://www.khronos.org/opengles/sdk/docs/man/xhtml/glRenderbufferStorage.xml>`_
*/
  __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4kivy_8graphics_6opengl_185glRenderbufferStorage, 0, __pyx_mstate_global->__pyx_n_u_glRenderbufferStorage, NULL, __pyx_mstate_global->__pyx_n_u_kivy_graphics_opengl, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[92])); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1198, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_2);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_glRenderbufferStorage, __pyx_t_2) < (0)) __PYX_ERR(0, 1198, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "kivy/graphics/opengl.pyx":1204
 *     cgl.glRenderbufferStorage(target, internalformat, width, height)
 * 
 * def glSampleCoverage(GLclampf value, GLboolean invert):             # <<<<<<<<<<<<<<
 *     '''See: `glSampleCoverage() on Kronos website
 *     <http://www.khronos.org/opengles/sdk/docs/man/xhtml/glSampleCoverage.xml>`_
*/
  __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4kivy_8graphics_6opengl_187glSampleCoverage, 0, __pyx_mstate_global->__pyx_n_u_glSampleCoverage, NULL, __pyx_mstate_global->__pyx_n_u_kivy_graphics_opengl, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[93])); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1204, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_2);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_glSampleCoverage, __pyx_t_2) < (0)) __PYX_ERR(0, 1204, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "kivy/graphics/opengl.pyx":1210
 *     cgl.glSampleCoverage(value, invert)
 * 
 * def glScissor(GLint x, GLint y, GLsizei width, GLsizei height):             # <<<<<<<<<<<<<<
 *     '''See: `glScissor() on Kronos website
 *     <http://www.khronos.org/opengles/sdk/docs/man/xhtml/glScissor.xml>`_
*/
  __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4kivy_8graphics_6opengl_189glScissor, 0, __pyx_mstate_global->__pyx_n_u_glScissor, NULL, __pyx_mstate_global->__pyx_n_u_kivy_graphics_opengl, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[94])); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1210, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_2);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_glScissor, __pyx_t_2) < (0)) __PYX_ERR(0, 1210, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "kivy/graphics/opengl.pyx":1216
 *     cgl.glScissor(x, y, width, height)
 * 
 * def glShaderBinary():#GLsizei n,  GLuint* shaders, GLenum binaryformat,  bytes GLvoid* binary, GLsizei length):             # <<<<<<<<<<<<<<
 *     '''See: `glShaderBinary() on Kronos website
 *     <http://www.khronos.org/opengles/sdk/docs/man/xhtml/glShaderBinary.xml>`_
*/
  __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4kivy_8graphics_6opengl_191glShaderBinary, 0, __pyx_mstate_global->__pyx_n_u_glShaderBinary, NULL, __pyx_mstate_global->__pyx_n_u_kivy_graphics_opengl, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[95])); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1216, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_2);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_glShaderBinary, __pyx_t_2) < (0)) __PYX_ERR(0, 1216, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "kivy/graphics/opengl.pyx":1225
 *     raise NotImplementedError
 * 
 * def glShaderSource(GLuint shader, bytes source):             # <<<<<<<<<<<<<<
 *     '''See: `glShaderSource() on Kronos website
 *     <http://www.khronos.org/opengles/sdk/docs/man/xhtml/glShaderSource.xml>`_
*/
  __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4kivy_8graphics_6opengl_193glShaderSource, 0, __pyx_mstate_global->__pyx_n_u_glShaderSource, NULL, __pyx_mstate_global->__pyx_n_u_kivy_graphics_opengl, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[96])); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1225, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_2);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_glShaderSource, __pyx_t_2) < (0)) __PYX_ERR(0, 1225, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "kivy/graphics/opengl.pyx":1232
 *     cgl.glShaderSource(shader, 1, &c_source, NULL)
 * 
 * def glStencilFunc(GLenum func, GLint ref, GLuint mask):             # <<<<<<<<<<<<<<
 *     '''See: `glStencilFunc() on Kronos website
 *     <http://www.khronos.org/opengles/sdk/docs/man/xhtml/glStencilFunc.xml>`_
*/
  __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4kivy_8graphics_6opengl_195glStencilFunc, 0, __pyx_mstate_global->__pyx_n_u_glStencilFunc, NULL, __pyx_mstate_global->__pyx_n_u_kivy_graphics_opengl, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[97])); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1232, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_2);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_glStencilFunc, __pyx_t_2) < (0)) __PYX_ERR(0, 1232, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "kivy/graphics/opengl.pyx":1238
 *     cgl.glStencilFunc(func, ref, mask)
 * 
 * def glStencilFuncSeparate(GLenum face, GLenum func, GLint ref, GLuint mask):             # <<<<<<<<<<<<<<
 *     '''See: `glStencilFuncSeparate() on Kronos website
 *     <http://www.khronos.org/opengles/sdk/docs/man/xhtml/glStencilFuncSeparate.xml>`_
*/
  __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4kivy_8graphics_6opengl_197glStencilFuncSeparate, 0, __pyx_mstate_global->__pyx_n_u_glStencilFuncSeparate, NULL, __pyx_mstate_global->__pyx_n_u_kivy_graphics_opengl, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[98])); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1238, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_2);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_glStencilFuncSeparate, __pyx_t_2) < (0)) __PYX_ERR(0, 1238, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "kivy/graphics/opengl.pyx":1244
 *     cgl.glStencilFuncSeparate(face, func, ref, mask)
 * 
 * def glStencilMask(GLuint mask):             # <<<<<<<<<<<<<<
 *     '''See: `glStencilMask() on Kronos website
 *     <http://www.khronos.org/opengles/sdk/docs/man/xhtml/glStencilMask.xml>`_
*/
  __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4kivy_8graphics_6opengl_199glStencilMask, 0, __pyx_mstate_global->__pyx_n_u_glStencilMask, NULL, __pyx_mstate_global->__pyx_n_u_kivy_graphics_opengl, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[99])); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1244, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_2);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_glStencilMask, __pyx_t_2) < (0)) __PYX_ERR(0, 1244, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "kivy/graphics/opengl.pyx":1250
 *     cgl.glStencilMask(mask)
 * 
 * def glStencilMaskSeparate(GLenum face, GLuint mask):             # <<<<<<<<<<<<<<
 *     '''See: `glStencilMaskSeparate() on Kronos website
 *     <http://www.khronos.org/opengles/sdk/docs/man/xhtml/glStencilMaskSeparate.xml>`_
*/
  __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4kivy_8graphics_6opengl_201glStencilMaskSeparate, 0, __pyx_mstate_global->__pyx_n_u_glStencilMaskSeparate, NULL, __pyx_mstate_global->__pyx_n_u_kivy_graphics_opengl, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[100])); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1250, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_2);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_glStencilMaskSeparate, __pyx_t_2) < (0)) __PYX_ERR(0, 1250, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "kivy/graphics/opengl.pyx":1256
 *     cgl.glStencilMaskSeparate(face, mask)
 * 
 * def glStencilOp(GLenum fail, GLenum zfail, GLenum zpass):             # <<<<<<<<<<<<<<
 *     '''See: `glStencilOp() on Kronos website
 *     <http://www.khronos.org/opengles/sdk/docs/man/xhtml/glStencilOp.xml>`_
*/
  __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4kivy_8graphics_6opengl_203glStencilOp, 0, __pyx_mstate_global->__pyx_n_u_glStencilOp, NULL, __pyx_mstate_global->__pyx_n_u_kivy_graphics_opengl, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[101])); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1256, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_2);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_glStencilOp, __pyx_t_2) < (0)) __PYX_ERR(0, 1256, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "kivy/graphics/opengl.pyx":1262
 *     cgl.glStencilOp(fail, zfail, zpass)
 * 
 * def glStencilOpSeparate(GLenum face, GLenum fail, GLenum zfail, GLenum zpass):             # <<<<<<<<<<<<<<
 *     '''See: `glStencilOpSeparate() on Kronos website
 *     <http://www.khronos.org/opengles/sdk/docs/man/xhtml/glStencilOpSeparate.xml>`_
*/
  __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4kivy_8graphics_6opengl_205glStencilOpSeparate, 0, __pyx_mstate_global->__pyx_n_u_glStencilOpSeparate, NULL, __pyx_mstate_global->__pyx_n_u_kivy_graphics_opengl, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[102])); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1262, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_2);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_glStencilOpSeparate, __pyx_t_2) < (0)) __PYX_ERR(0, 1262, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "kivy/graphics/opengl.pyx":1268
 *     cgl.glStencilOpSeparate(face, fail, zfail, zpass)
 * 
 * def glTexImage2D(GLenum target, GLint level, GLint internalformat, GLsizei             # <<<<<<<<<<<<<<
 *                  width, GLsizei height, GLint border, GLenum format, GLenum
 *                  type,  bytes pixels):
*/
  __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4kivy_8graphics_6opengl_207glTexImage2D, 0, __pyx_mstate_global->__pyx_n_u_glTexImage2D, NULL, __pyx_mstate_global->__pyx_n_u_kivy_graphics_opengl, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[103])); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1268, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_2);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_glTexImage2D, __pyx_t_2) < (0)) __PYX_ERR(0, 1268, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "kivy/graphics/opengl.pyx":1277
 *                           format, type, <GLvoid *><char *>pixels)
 * 
 * def glTexParameterf(GLenum target, GLenum pname, GLfloat param):             # <<<<<<<<<<<<<<
 *     '''See: `glTexParameterf() on Kronos website
 *     <http://www.khronos.org/opengles/sdk/docs/man/xhtml/glTexParameterf.xml>`_
*/
  __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4kivy_8graphics_6opengl_209glTexParameterf, 0, __pyx_mstate_global->__pyx_n_u_glTexParameterf, NULL, __pyx_mstate_global->__pyx_n_u_kivy_graphics_opengl, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[104])); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1277, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_2);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_glTexParameterf, __pyx_t_2) < (0)) __PYX_ERR(0, 1277, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "kivy/graphics/opengl.pyx":1283
 *     cgl.glTexParameterf(target, pname, param)
 * 
 * def glTexParameterfv(GLenum target, GLenum pname):#,  GLfloat* params):             # <<<<<<<<<<<<<<
 *     '''See: `glTexParameterfv() on Kronos website
 *     <http://www.khronos.org/opengles/sdk/docs/man/xhtml/glTexParameterfv.xml>`_
*/
  __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4kivy_8graphics_6opengl_211glTexParameterfv, 0, __pyx_mstate_global->__pyx_n_u_glTexParameterfv, NULL, __pyx_mstate_global->__pyx_n_u_kivy_graphics_opengl, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[105])); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1283, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_2);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_glTexParameterfv, __pyx_t_2) < (0)) __PYX_ERR(0, 1283, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "kivy/graphics/opengl.pyx":1292
 *     raise NotImplementedError
 * 
 * def glTexParameteri(GLenum target, GLenum pname, GLint param):             # <<<<<<<<<<<<<<
 *     '''See: `glTexParameteri() on Kronos website
 *     <http://www.khronos.org/opengles/sdk/docs/man/xhtml/glTexParameteri.xml>`_
*/
  __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4kivy_8graphics_6opengl_213glTexParameteri, 0, __pyx_mstate_global->__pyx_n_u_glTexParameteri, NULL, __pyx_mstate_global->__pyx_n_u_kivy_graphics_opengl, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[106])); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1292, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_2);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_glTexParameteri, __pyx_t_2) < (0)) __PYX_ERR(0, 1292, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "kivy/graphics/opengl.pyx":1298
 *     cgl.glTexParameteri(target, pname, param)
 * 
 * def glTexParameteriv(GLenum target, GLenum pname):#,  GLint* params):             # <<<<<<<<<<<<<<
 *     '''See: `glTexParameteriv() on Kronos website
 *     <http://www.khronos.org/opengles/sdk/docs/man/xhtml/glTexParameteriv.xml>`_
*/
  __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4kivy_8graphics_6opengl_215glTexParameteriv, 0, __pyx_mstate_global->__pyx_n_u_glTexParameteriv, NULL, __pyx_mstate_global->__pyx_n_u_kivy_graphics_opengl, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[107])); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1298, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_2);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_glTexParameteriv, __pyx_t_2) < (0)) __PYX_ERR(0, 1298, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "kivy/graphics/opengl.pyx":1307
 *     raise NotImplementedError
 * 
 * def glTexSubImage2D(GLenum target, GLint level, GLint xoffset, GLint yoffset,             # <<<<<<<<<<<<<<
 *                     GLsizei width, GLsizei height, GLenum format, GLenum type,
 *                     bytes pixels):
*/
  __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4kivy_8graphics_6opengl_217glTexSubImage2D, 0, __pyx_mstate_global->__pyx_n_u_glTexSubImage2D, NULL, __pyx_mstate_global->__pyx_n_u_kivy_graphics_opengl, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[108])); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1307, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_2);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_glTexSubImage2D, __pyx_t_2) < (0)) __PYX_ERR(0, 1307, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "kivy/graphics/opengl.pyx":1316
 *                              format, type, <GLvoid *><char *>pixels)
 * 
 * def glUniform1f(GLint location, GLfloat x):             # <<<<<<<<<<<<<<
 *     '''See: `glUniform1f() on Kronos website
 *     <http://www.khronos.org/opengles/sdk/docs/man/xhtml/glUniform1f.xml>`_
*/
  __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4kivy_8graphics_6opengl_219glUniform1f, 0, __pyx_mstate_global->__pyx_n_u_glUniform1f, NULL, __pyx_mstate_global->__pyx_n_u_kivy_graphics_opengl, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[109])); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1316, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_2);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_glUniform1f, __pyx_t_2) < (0)) __PYX_ERR(0, 1316, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "kivy/graphics/opengl.pyx":1322
 *     cgl.glUniform1f(location, x)
 * 
 * def glUniform1fv(GLint location, GLsizei count):#,  GLfloat* v):             # <<<<<<<<<<<<<<
 *     '''See: `glUniform1fv() on Kronos website
 *     <http://www.khronos.org/opengles/sdk/docs/man/xhtml/glUniform1fv.xml>`_
*/
  __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4kivy_8graphics_6opengl_221glUniform1fv, 0, __pyx_mstate_global->__pyx_n_u_glUniform1fv, NULL, __pyx_mstate_global->__pyx_n_u_kivy_graphics_opengl, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[110])); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1322, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_2);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_glUniform1fv, __pyx_t_2) < (0)) __PYX_ERR(0, 1322, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "kivy/graphics/opengl.pyx":1331
 *     raise NotImplementedError
 * 
 * def glUniform1i(GLint location, GLint x):             # <<<<<<<<<<<<<<
 *     '''See: `glUniform1i() on Kronos website
 *     <http://www.khronos.org/opengles/sdk/docs/man/xhtml/glUniform1i.xml>`_
*/
  __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4kivy_8graphics_6opengl_223glUniform1i, 0, __pyx_mstate_global->__pyx_n_u_glUniform1i, NULL, __pyx_mstate_global->__pyx_n_u_kivy_graphics_opengl, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[111])); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1331, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_2);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_glUniform1i, __pyx_t_2) < (0)) __PYX_ERR(0, 1331, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "kivy/graphics/opengl.pyx":1337
 *     cgl.glUniform1i(location, x)
 * 
 * def glUniform1iv(GLint location, GLsizei count):#,  GLint* v):             # <<<<<<<<<<<<<<
 *     '''See: `glUniform1iv() on Kronos website
 *     <http://www.khronos.org/opengles/sdk/docs/man/xhtml/glUniform1iv.xml>`_
*/
  __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4kivy_8graphics_6opengl_225glUniform1iv, 0, __pyx_mstate_global->__pyx_n_u_glUniform1iv, NULL, __pyx_mstate_global->__pyx_n_u_kivy_graphics_opengl, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[112])); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1337, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_2);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_glUniform1iv, __pyx_t_2) < (0)) __PYX_ERR(0, 1337, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "kivy/graphics/opengl.pyx":1346
 *     raise NotImplementedError
 * 
 * def glUniform2f(GLint location, GLfloat x, GLfloat y):             # <<<<<<<<<<<<<<
 *     '''See: `glUniform2f() on Kronos website
 *     <http://www.khronos.org/opengles/sdk/docs/man/xhtml/glUniform2f.xml>`_
*/
  __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4kivy_8graphics_6opengl_227glUniform2f, 0, __pyx_mstate_global->__pyx_n_u_glUniform2f, NULL, __pyx_mstate_global->__pyx_n_u_kivy_graphics_opengl, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[113])); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1346, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_2);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_glUniform2f, __pyx_t_2) < (0)) __PYX_ERR(0, 1346, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "kivy/graphics/opengl.pyx":1352
 *     cgl.glUniform2f(location, x, y)
 * 
 * def glUniform2fv(GLint location, GLsizei count):#,  GLfloat* v):             # <<<<<<<<<<<<<<
 *     '''See: `glUniform2fv() on Kronos website
 *     <http://www.khronos.org/opengles/sdk/docs/man/xhtml/glUniform2fv.xml>`_
*/
  __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4kivy_8graphics_6opengl_229glUniform2fv, 0, __pyx_mstate_global->__pyx_n_u_glUniform2fv, NULL, __pyx_mstate_global->__pyx_n_u_kivy_graphics_opengl, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[114])); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1352, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_2);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_glUniform2fv, __pyx_t_2) < (0)) __PYX_ERR(0, 1352, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "kivy/graphics/opengl.pyx":1361
 *     raise NotImplementedError
 * 
 * def glUniform2i(GLint location, GLint x, GLint y):             # <<<<<<<<<<<<<<
 *     '''See: `glUniform2i() on Kronos website
 *     <http://www.khronos.org/opengles/sdk/docs/man/xhtml/glUniform2i.xml>`_
*/
  __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4kivy_8graphics_6opengl_231glUniform2i, 0, __pyx_mstate_global->__pyx_n_u_glUniform2i, NULL, __pyx_mstate_global->__pyx_n_u_kivy_graphics_opengl, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[115])); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1361, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_2);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_glUniform2i, __pyx_t_2) < (0)) __PYX_ERR(0, 1361, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "kivy/graphics/opengl.pyx":1367
 *     cgl.glUniform2i(location, x, y)
 * 
 * def glUniform2iv(GLint location, GLsizei count):#,  GLint* v):             # <<<<<<<<<<<<<<
 *     '''See: `glUniform2iv() on Kronos website
 *     <http://www.khronos.org/opengles/sdk/docs/man/xhtml/glUniform2iv.xml>`_
*/
  __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4kivy_8graphics_6opengl_233glUniform2iv, 0, __pyx_mstate_global->__pyx_n_u_glUniform2iv, NULL, __pyx_mstate_global->__pyx_n_u_kivy_graphics_opengl, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[116])); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1367, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_2);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_glUniform2iv, __pyx_t_2) < (0)) __PYX_ERR(0, 1367, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "kivy/graphics/opengl.pyx":1376
 *     raise NotImplementedError
 * 
 * def glUniform3f(GLint location, GLfloat x, GLfloat y, GLfloat z):             # <<<<<<<<<<<<<<
 *     '''See: `glUniform3f() on Kronos website
 *     <http://www.khronos.org/opengles/sdk/docs/man/xhtml/glUniform3f.xml>`_
*/
  __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4kivy_8graphics_6opengl_235glUniform3f, 0, __pyx_mstate_global->__pyx_n_u_glUniform3f, NULL, __pyx_mstate_global->__pyx_n_u_kivy_graphics_opengl, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[117])); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1376, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_2);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_glUniform3f, __pyx_t_2) < (0)) __PYX_ERR(0, 1376, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "kivy/graphics/opengl.pyx":1382
 *     cgl.glUniform3f(location, x, y, z)
 * 
 * def glUniform3fv(GLint location, GLsizei count):#,  GLfloat* v):             # <<<<<<<<<<<<<<
 *     '''See: `glUniform3fv() on Kronos website
 *     <http://www.khronos.org/opengles/sdk/docs/man/xhtml/glUniform3fv.xml>`_
*/
  __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4kivy_8graphics_6opengl_237glUniform3fv, 0, __pyx_mstate_global->__pyx_n_u_glUniform3fv, NULL, __pyx_mstate_global->__pyx_n_u_kivy_graphics_opengl, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[118])); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1382, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_2);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_glUniform3fv, __pyx_t_2) < (0)) __PYX_ERR(0, 1382, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "kivy/graphics/opengl.pyx":1391
 *     raise NotImplementedError
 * 
 * def glUniform3i(GLint location, GLint x, GLint y, GLint z):             # <<<<<<<<<<<<<<
 *     '''See: `glUniform3i() on Kronos website
 *     <http://www.khronos.org/opengles/sdk/docs/man/xhtml/glUniform3i.xml>`_
*/
  __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4kivy_8graphics_6opengl_239glUniform3i, 0, __pyx_mstate_global->__pyx_n_u_glUniform3i, NULL, __pyx_mstate_global->__pyx_n_u_kivy_graphics_opengl, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[119])); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1391, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_2);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_glUniform3i, __pyx_t_2) < (0)) __PYX_ERR(0, 1391, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "kivy/graphics/opengl.pyx":1397
 *     cgl.glUniform3i(location, x, y, z)
 * 
 * def glUniform3iv(GLint location, GLsizei count):#,  GLint* v):             # <<<<<<<<<<<<<<
 *     '''See: `glUniform3iv() on Kronos website
 *     <http://www.khronos.org/opengles/sdk/docs/man/xhtml/glUniform3iv.xml>`_
*/
  __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4kivy_8graphics_6opengl_241glUniform3iv, 0, __pyx_mstate_global->__pyx_n_u_glUniform3iv, NULL, __pyx_mstate_global->__pyx_n_u_kivy_graphics_opengl, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[120])); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1397, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_2);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_glUniform3iv, __pyx_t_2) < (0)) __PYX_ERR(0, 1397, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "kivy/graphics/opengl.pyx":1406
 *     raise NotImplementedError
 * 
 * def glUniform4f(GLint location, GLfloat x, GLfloat y, GLfloat z, GLfloat w):             # <<<<<<<<<<<<<<
 *     '''See: `glUniform4f() on Kronos website
 *     <http://www.khronos.org/opengles/sdk/docs/man/xhtml/glUniform4f.xml>`_
*/
  __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4kivy_8graphics_6opengl_243glUniform4f, 0, __pyx_mstate_global->__pyx_n_u_glUniform4f, NULL, __pyx_mstate_global->__pyx_n_u_kivy_graphics_opengl, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[121])); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1406, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_2);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_glUniform4f, __pyx_t_2) < (0)) __PYX_ERR(0, 1406, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "kivy/graphics/opengl.pyx":1414
 *     cgl.glUniform4f(location, x, y, z, w)
 * 
 * def glUniform4fv(GLint location, GLsizei count):#,  GLfloat* v):             # <<<<<<<<<<<<<<
 *     '''See: `glUniform4fv() on Kronos website
 *     <http://www.khronos.org/opengles/sdk/docs/man/xhtml/glUniform4fv.xml>`_
*/
  __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4kivy_8graphics_6opengl_245glUniform4fv, 0, __pyx_mstate_global->__pyx_n_u_glUniform4fv, NULL, __pyx_mstate_global->__pyx_n_u_kivy_graphics_opengl, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[122])); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1414, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_2);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_glUniform4fv, __pyx_t_2) < (0)) __PYX_ERR(0, 1414, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "kivy/graphics/opengl.pyx":1423
 *     raise NotImplementedError
 * 
 * def glUniform4i(GLint location, GLint x, GLint y, GLint z, GLint w):             # <<<<<<<<<<<<<<
 *     '''See: `glUniform4i() on Kronos website
 *     <http://www.khronos.org/opengles/sdk/docs/man/xhtml/glUniform4i.xml>`_
*/
  __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4kivy_8graphics_6opengl_247glUniform4i, 0, __pyx_mstate_global->__pyx_n_u_glUniform4i, NULL, __pyx_mstate_global->__pyx_n_u_kivy_graphics_opengl, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[123])); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1423, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_2);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_glUniform4i, __pyx_t_2) < (0)) __PYX_ERR(0, 1423, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "kivy/graphics/opengl.pyx":1429
 *     cgl.glUniform4i(location, x, y, z, w)
 * 
 * def glUniform4iv(GLint location, GLsizei count):#,  GLint* v):             # <<<<<<<<<<<<<<
 *     '''See: `glUniform4iv() on Kronos website
 *     <http://www.khronos.org/opengles/sdk/docs/man/xhtml/glUniform4iv.xml>`_
*/
  __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4kivy_8graphics_6opengl_249glUniform4iv, 0, __pyx_mstate_global->__pyx_n_u_glUniform4iv, NULL, __pyx_mstate_global->__pyx_n_u_kivy_graphics_opengl, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[124])); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1429, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_2);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_glUniform4iv, __pyx_t_2) < (0)) __PYX_ERR(0, 1429, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "kivy/graphics/opengl.pyx":1438
 *     raise NotImplementedError
 * 
 * def glUniformMatrix2fv(GLint location, GLsizei count):#, GLboolean transpose, bytes values):             # <<<<<<<<<<<<<<
 *     '''See: `glUniformMatrix2fv() on Kronos website
 *     <http://www.khronos.org/opengles/sdk/docs/man/xhtml/glUniformMatrix2fv.xml>`_
*/
  __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4kivy_8graphics_6opengl_251glUniformMatrix2fv, 0, __pyx_mstate_global->__pyx_n_u_glUniformMatrix2fv, NULL, __pyx_mstate_global->__pyx_n_u_kivy_graphics_opengl, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[125])); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1438, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_2);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_glUniformMatrix2fv, __pyx_t_2) < (0)) __PYX_ERR(0, 1438, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "kivy/graphics/opengl.pyx":1447
 *     raise NotImplementedError
 * 
 * def glUniformMatrix3fv(GLint location, GLsizei count):#, GLboolean transpose,  bytes values):             # <<<<<<<<<<<<<<
 *     '''See: `glUniformMatrix3fv() on Kronos website
 *     <http://www.khronos.org/opengles/sdk/docs/man/xhtml/glUniformMatrix3fv.xml>`_
*/
  __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4kivy_8graphics_6opengl_253glUniformMatrix3fv, 0, __pyx_mstate_global->__pyx_n_u_glUniformMatrix3fv, NULL, __pyx_mstate_global->__pyx_n_u_kivy_graphics_opengl, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[126])); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1447, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_2);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_glUniformMatrix3fv, __pyx_t_2) < (0)) __PYX_ERR(0, 1447, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "kivy/graphics/opengl.pyx":1456
 *     raise NotImplementedError
 * 
 * def glUniformMatrix4fv(GLint location, GLsizei count, GLboolean transpose,  bytes value):             # <<<<<<<<<<<<<<
 *     '''See: `glUniformMatrix4fv() on Kronos website
 *     <http://www.khronos.org/opengles/sdk/docs/man/xhtml/glUniformMatrix4fv.xml>`_
*/
  __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4kivy_8graphics_6opengl_255glUniformMatrix4fv, 0, __pyx_mstate_global->__pyx_n_u_glUniformMatrix4fv, NULL, __pyx_mstate_global->__pyx_n_u_kivy_graphics_opengl, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[127])); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1456, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_2);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_glUniformMatrix4fv, __pyx_t_2) < (0)) __PYX_ERR(0, 1456, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "kivy/graphics/opengl.pyx":1462
 *     cgl.glUniformMatrix4fv(location, count, transpose, <GLfloat*>(<char *>value))
 * 
 * def glUseProgram(GLuint program):             # <<<<<<<<<<<<<<
 *     '''See: `glUseProgram() on Kronos website
 *     <http://www.khronos.org/opengles/sdk/docs/man/xhtml/glUseProgram.xml>`_
*/
  __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4kivy_8graphics_6opengl_257glUseProgram, 0, __pyx_mstate_global->__pyx_n_u_glUseProgram, NULL, __pyx_mstate_global->__pyx_n_u_kivy_graphics_opengl, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[128])); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1462, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_2);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_glUseProgram, __pyx_t_2) < (0)) __PYX_ERR(0, 1462, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "kivy/graphics/opengl.pyx":1468
 *     cgl.glUseProgram(program)
 * 
 * def glValidateProgram(GLuint program):             # <<<<<<<<<<<<<<
 *     '''See: `glValidateProgram() on Kronos website
 *     <http://www.khronos.org/opengles/sdk/docs/man/xhtml/glValidateProgram.xml>`_
*/
  __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4kivy_8graphics_6opengl_259glValidateProgram, 0, __pyx_mstate_global->__pyx_n_u_glValidateProgram, NULL, __pyx_mstate_global->__pyx_n_u_kivy_graphics_opengl, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[129])); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1468, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_2);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_glValidateProgram, __pyx_t_2) < (0)) __PYX_ERR(0, 1468, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "kivy/graphics/opengl.pyx":1474
 *     cgl.glValidateProgram(program)
 * 
 * def glVertexAttrib1f(GLuint indx, GLfloat x):             # <<<<<<<<<<<<<<
 *     '''See: `glVertexAttrib1f() on Kronos website
 *     <http://www.khronos.org/opengles/sdk/docs/man/xhtml/glVertexAttrib1f.xml>`_
*/
  __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4kivy_8graphics_6opengl_261glVertexAttrib1f, 0, __pyx_mstate_global->__pyx_n_u_glVertexAttrib1f, NULL, __pyx_mstate_global->__pyx_n_u_kivy_graphics_opengl, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[130])); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1474, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_2);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_glVertexAttrib1f, __pyx_t_2) < (0)) __PYX_ERR(0, 1474, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "kivy/graphics/opengl.pyx":1480
 *     cgl.glVertexAttrib1f(indx, x)
 * 
 * def glVertexAttrib1fv(GLuint indx, list values):             # <<<<<<<<<<<<<<
 *     '''See: `glVertexAttrib1fv() on Kronos website
 *     <http://www.khronos.org/opengles/sdk/docs/man/xhtml/glVertexAttrib1fv.xml>`_
*/
  __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4kivy_8graphics_6opengl_263glVertexAttrib1fv, 0, __pyx_mstate_global->__pyx_n_u_glVertexAttrib1fv, NULL, __pyx_mstate_global->__pyx_n_u_kivy_graphics_opengl, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[131])); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1480, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_2);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_glVertexAttrib1fv, __pyx_t_2) < (0)) __PYX_ERR(0, 1480, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "kivy/graphics/opengl.pyx":1489
 *     raise NotImplementedError
 * 
 * def glVertexAttrib2f(GLuint indx, GLfloat x, GLfloat y):             # <<<<<<<<<<<<<<
 *     '''See: `glVertexAttrib2f() on Kronos website
 *     <http://www.khronos.org/opengles/sdk/docs/man/xhtml/glVertexAttrib2f.xml>`_
*/
  __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4kivy_8graphics_6opengl_265glVertexAttrib2f, 0, __pyx_mstate_global->__pyx_n_u_glVertexAttrib2f, NULL, __pyx_mstate_global->__pyx_n_u_kivy_graphics_opengl, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[132])); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1489, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_2);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_glVertexAttrib2f, __pyx_t_2) < (0)) __PYX_ERR(0, 1489, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "kivy/graphics/opengl.pyx":1495
 *     cgl.glVertexAttrib2f(indx, x, y)
 * 
 * def glVertexAttrib2fv(GLuint indx, list values):             # <<<<<<<<<<<<<<
 *     '''See: `glVertexAttrib2fv() on Kronos website
 *     <http://www.khronos.org/opengles/sdk/docs/man/xhtml/glVertexAttrib2fv.xml>`_
*/
  __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4kivy_8graphics_6opengl_267glVertexAttrib2fv, 0, __pyx_mstate_global->__pyx_n_u_glVertexAttrib2fv, NULL, __pyx_mstate_global->__pyx_n_u_kivy_graphics_opengl, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[133])); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1495, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_2);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_glVertexAttrib2fv, __pyx_t_2) < (0)) __PYX_ERR(0, 1495, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "kivy/graphics/opengl.pyx":1504
 *     raise NotImplementedError
 * 
 * def glVertexAttrib3f(GLuint indx, GLfloat x, GLfloat y, GLfloat z):             # <<<<<<<<<<<<<<
 *     '''See: `glVertexAttrib3f() on Kronos website
 *     <http://www.khronos.org/opengles/sdk/docs/man/xhtml/glVertexAttrib3f.xml>`_
*/
  __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4kivy_8graphics_6opengl_269glVertexAttrib3f, 0, __pyx_mstate_global->__pyx_n_u_glVertexAttrib3f, NULL, __pyx_mstate_global->__pyx_n_u_kivy_graphics_opengl, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[134])); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1504, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_2);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_glVertexAttrib3f, __pyx_t_2) < (0)) __PYX_ERR(0, 1504, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "kivy/graphics/opengl.pyx":1510
 *     cgl.glVertexAttrib3f(indx, x, y, z)
 * 
 * def glVertexAttrib3fv(GLuint indx, list values):             # <<<<<<<<<<<<<<
 *     '''See: `glVertexAttrib3fv() on Kronos website
 *     <http://www.khronos.org/opengles/sdk/docs/man/xhtml/glVertexAttrib3fv.xml>`_
*/
  __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4kivy_8graphics_6opengl_271glVertexAttrib3fv, 0, __pyx_mstate_global->__pyx_n_u_glVertexAttrib3fv, NULL, __pyx_mstate_global->__pyx_n_u_kivy_graphics_opengl, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[135])); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1510, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_2);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_glVertexAttrib3fv, __pyx_t_2) < (0)) __PYX_ERR(0, 1510, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "kivy/graphics/opengl.pyx":1519
 *     raise NotImplementedError
 * 
 * def glVertexAttrib4f(GLuint indx, GLfloat x, GLfloat y, GLfloat z, GLfloat w):             # <<<<<<<<<<<<<<
 *     '''See: `glVertexAttrib4f() on Kronos website
 *     <http://www.khronos.org/opengles/sdk/docs/man/xhtml/glVertexAttrib4f.xml>`_
*/
  __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4kivy_8graphics_6opengl_273glVertexAttrib4f, 0, __pyx_mstate_global->__pyx_n_u_glVertexAttrib4f, NULL, __pyx_mstate_global->__pyx_n_u_kivy_graphics_opengl, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[136])); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1519, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_2);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_glVertexAttrib4f, __pyx_t_2) < (0)) __PYX_ERR(0, 1519, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "kivy/graphics/opengl.pyx":1525
 *     cgl.glVertexAttrib4f(indx, x, y, z, w)
 * 
 * def glVertexAttrib4fv(GLuint indx, list values):             # <<<<<<<<<<<<<<
 *     '''See: `glVertexAttrib4fv() on Kronos website
 *     <http://www.khronos.org/opengles/sdk/docs/man/xhtml/glVertexAttrib4fv.xml>`_
*/
  __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4kivy_8graphics_6opengl_275glVertexAttrib4fv, 0, __pyx_mstate_global->__pyx_n_u_glVertexAttrib4fv, NULL, __pyx_mstate_global->__pyx_n_u_kivy_graphics_opengl, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[137])); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1525, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_2);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_glVertexAttrib4fv, __pyx_t_2) < (0)) __PYX_ERR(0, 1525, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "kivy/graphics/opengl.pyx":1534
 *     raise NotImplementedError
 * 
 * def glVertexAttribPointer(GLuint index, GLint size, GLenum type, GLboolean normalized, GLsizei stride, data):             # <<<<<<<<<<<<<<
 *     '''See: `glVertexAttribPointer() on Kronos website
 *     <http://www.khronos.org/opengles/sdk/docs/man/xhtml/glVertexAttribPointer.xml>`_
*/
  __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4kivy_8graphics_6opengl_277glVertexAttribPointer, 0, __pyx_mstate_global->__pyx_n_u_glVertexAttribPointer, NULL, __pyx_mstate_global->__pyx_n_u_kivy_graphics_opengl, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[138])); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1534, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_2);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_glVertexAttribPointer, __pyx_t_2) < (0)) __PYX_ERR(0, 1534, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "kivy/graphics/opengl.pyx":1548
 *     cgl.glVertexAttribPointer(index, size, type, normalized, stride, ptr)
 * 
 * def glViewport(GLint x, GLint y, GLsizei width, GLsizei height):             # <<<<<<<<<<<<<<
 *     '''See: `glViewport() on Kronos website
 *     <http://www.khronos.org/opengles/sdk/docs/man/xhtml/glViewport.xml>`_
*/
  __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4kivy_8graphics_6opengl_279glViewport, 0, __pyx_mstate_global->__pyx_n_u_glViewport, NULL, __pyx_mstate_global->__pyx_n_u_kivy_graphics_opengl, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[139])); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1548, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_2);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_glViewport, __pyx_t_2) < (0)) __PYX_ERR(0, 1548, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "kivy/graphics/opengl.pyx":1555
 * 
 * 
 * def gl_init_symbols(allowed=[], ignored=[]):             # <<<<<<<<<<<<<<
 *     cgl_init(allowed, ignored)
*/
  __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4kivy_8graphics_6opengl_281gl_init_symbols, 0, __pyx_mstate_global->__pyx_n_u_gl_init_symbols, NULL, __pyx_mstate_global->__pyx_n_u_kivy_graphics_opengl, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[140])); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1555, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_2);
  #endif
  if (!__Pyx_CyFunction_InitDefaults(__pyx_t_2, __pyx_mstate_global->__pyx_ptype_4kivy_8graphics_6opengl___pyx_defaults)) __PYX_ERR(0, 1555, __pyx_L1_error)
  __pyx_t_5 = PyList_New(0); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1555, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_CyFunction_Defaults(struct __pyx_defaults, __pyx_t_2)->arg0 = __pyx_t_5;
  __Pyx_GIVEREF(__pyx_t_5);
  __pyx_t_5 = 0;
  __pyx_t_5 = PyList_New(0); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1555, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_CyFunction_Defaults(struct __pyx_defaults, __pyx_t_2)->arg1 = __pyx_t_5;
  __Pyx_GIVEREF(__pyx_t_5);
  __pyx_t_5 = 0;
  __Pyx_CyFunction_SetDefaultsGetter(__pyx_t_2, __pyx_pf_4kivy_8graphics_6opengl_282__defaults__);
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_gl_init_symbols, __pyx_t_2) < (0)) __PYX_ERR(0, 1555, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "kivy/graphics/opengl.pyx":1
 * '''             # <<<<<<<<<<<<<<
 * OpenGL
 * ======
*/
  __pyx_t_2 = __Pyx_PyDict_NewPresized(0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_test, __pyx_t_2) < (0)) __PYX_ERR(0, 1, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /*--- Wrapped vars code ---*/

  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  if (__pyx_m) {
    if (__pyx_mstate->__pyx_d && stringtab_initialized) {
      __Pyx_AddTraceback("init kivy.graphics.opengl", __pyx_clineno, __pyx_lineno, __pyx_filename);
    }
    #if !CYTHON_USE_MODULE_STATE
    Py_CLEAR(__pyx_m);
    #else
    Py_DECREF(__pyx_m);
    if (pystate_addmodule_run) {
      PyObject *tp, *value, *tb;
      PyErr_Fetch(&tp, &value, &tb);
      PyState_RemoveModule(&__pyx_moduledef);
      PyErr_Restore(tp, value, tb);
    }
    #endif
  } else if (!PyErr_Occurred()) {
    PyErr_SetString(PyExc_ImportError, "init kivy.graphics.opengl");
  }
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  #if CYTHON_PEP489_MULTI_PHASE_INIT
  return (__pyx_m != NULL) ? 0 : -1;
  #else
  return __pyx_m;
  #endif
}
/* #### Code section: pystring_table ### */
/* #### Code section: cached_builtins ### */

static int __Pyx_InitCachedBuiltins(__pyx_mstatetype *__pyx_mstate) {
  CYTHON_UNUSED_VAR(__pyx_mstate);

  /* Cached unbound methods */
  __pyx_mstate->__pyx_umethod_PyDict_Type_items.type = (PyObject*)&PyDict_Type;
  __pyx_mstate->__pyx_umethod_PyDict_Type_items.method_name = &__pyx_mstate->__pyx_n_u_items;
  __pyx_mstate->__pyx_umethod_PyDict_Type_pop.type = (PyObject*)&PyDict_Type;
  __pyx_mstate->__pyx_umethod_PyDict_Type_pop.method_name = &__pyx_mstate->__pyx_n_u_pop;
  __pyx_mstate->__pyx_umethod_PyDict_Type_values.type = (PyObject*)&PyDict_Type;
  __pyx_mstate->__pyx_umethod_PyDict_Type_values.method_name = &__pyx_mstate->__pyx_n_u_values;
  return 0;
}
/* #### Code section: cached_constants ### */

static int __Pyx_InitCachedConstants(__pyx_mstatetype *__pyx_mstate) {
  __Pyx_RefNannyDeclarations
  CYTHON_UNUSED_VAR(__pyx_mstate);
  __Pyx_RefNannySetupContext("__Pyx_InitCachedConstants", 0);
  __Pyx_RefNannyFinishContext();
  return 0;
}
/* #### Code section: init_constants ### */

static int __Pyx_InitConstants(__pyx_mstatetype *__pyx_mstate) {
  CYTHON_UNUSED_VAR(__pyx_mstate);
  {
    const struct { const unsigned int length: 8; } index[] = {{1},{59},{62},{179},{1},{8},{7},{6},{2},{19},{20},{15},{24},{13},{39},{15},{21},{20},{14},{9},{24},{20},{30},{17},{18},{28},{27},{27},{8},{13},{9},{15},{23},{19},{7},{8},{14},{18},{16},{17},{23},{21},{18},{16},{12},{7},{12},{12},{12},{14},{15},{7},{6},{16},{20},{19},{20},{18},{17},{29},{12},{17},{18},{24},{5},{7},{12},{16},{19},{13},{19},{20},{18},{20},{13},{14},{13},{18},{9},{12},{12},{12},{15},{23},{31},{8},{13},{8},{10},{8},{13},{13},{13},{13},{13},{13},{18},{14},{37},{37},{39},{47},{22},{23},{36},{36},{44},{26},{8},{17},{13},{11},{24},{16},{23},{9},{12},{10},{13},{7},{12},{18},{6},{11},{11},{11},{15},{32},{20},{16},{9},{7},{9},{7},{9},{23},{24},{8},{12},{13},{13},{14},{12},{18},{35},{28},{24},{26},{19},{21},{33},{20},{18},{10},{24},{25},{8},{9},{7},{11},{11},{33},{6},{22},{22},{22},{22},{16},{17},{9},{24},{22},{23},{11},{15},{26},{23},{25},{26},{26},{22},{31},{24},{28},{21},{11},{9},{10},{6},{9},{10},{7},{8},{13},{15},{10},{27},{17},{18},{25},{24},{14},{15},{24},{23},{14},{27},{8},{12},{21},{12},{14},{21},{20},{20},{31},{31},{19},{26},{25},{15},{21},{22},{15},{15},{17},{26},{26},{14},{15},{21},{20},{14},{16},{10},{11},{11},{12},{12},{12},{12},{12},{12},{12},{12},{12},{12},{11},{12},{12},{12},{12},{12},{12},{12},{12},{12},{12},{11},{12},{12},{11},{11},{11},{11},{11},{11},{13},{21},{27},{19},{30},{30},{30},{30},{30},{30},{21},{21},{17},{17},{12},{15},{17},{7},{19},{16},{15},{17},{25},{25},{23},{18},{9},{10},{37},{30},{33},{30},{27},{29},{27},{16},{11},{7},{6},{20},{7},{5},{18},{10},{4},{6},{6},{7},{7},{8},{3},{18},{5},{1},{4},{7},{8},{6},{4},{6},{4},{5},{4},{6},{11},{12},{4},{8},{15},{14},{20},{12},{17},{18},{13},{12},{15},{23},{11},{19},{12},{15},{24},{7},{12},{14},{11},{15},{22},{25},{16},{19},{15},{14},{10},{15},{20},{15},{21},{14},{16},{11},{11},{14},{9},{26},{12},{14},{8},{25},{8},{7},{25},{22},{11},{12},{17},{18},{13},{16},{17},{18},{20},{19},{13},{22},{10},{11},{37},{13},{19},{14},{28},{18},{26},{17},{13},{11},{19},{19},{20},{14},{14},{25},{19},{19},{6},{10},{11},{15},{11},{16},{10},{11},{11},{13},{13},{15},{12},{23},{21},{16},{9},{14},{14},{13},{21},{13},{21},{11},{19},{12},{15},{16},{15},{16},{15},{11},{12},{11},{12},{11},{12},{11},{12},{11},{12},{11},{12},{11},{12},{11},{12},{18},{18},{18},{12},{17},{16},{17},{16},{17},{16},{17},{16},{17},{21},{10},{15},{7},{5},{6},{1},{2},{7},{9},{5},{7},{4},{7},{14},{6},{13},{5},{20},{11},{5},{8},{8},{4},{8},{4},{9},{7},{10},{1},{4},{8},{10},{6},{3},{9},{6},{8},{8},{5},{6},{6},{5},{3},{13},{7},{3},{9},{12},{3},{3},{12},{13},{18},{6},{1},{12},{10},{7},{6},{7},{10},{4},{6},{8},{6},{6},{6},{8},{9},{7},{8},{9},{4},{5},{5},{5},{6},{1},{5},{1},{7},{1},{7},{1},{5},{5},{118},{13},{13},{19},{17},{20},{30},{30},{30},{30},{28},{20},{15},{15},{17},{19},{21},{21},{14},{33},{29},{20},{20},{16},{16},{19},{13},{15},{15},{21},{149},{16},{29},{47},{13},{20},{19},{17},{15},{21},{30},{35},{20},{19},{20},{16},{20},{73},{78},{13},{20},{16},{17},{20},{15},{93},{89},{94},{92},{21},{15},{29},{21},{24},{36},{35},{36},{35},{16},{14},{14},{9},{16},{9},{14},{98},{98},{81},{81},{81},{13},{22},{32},{15},{29},{29},{29},{89},{14},{16},{16},{16},{20},{22},{18},{35},{18},{20},{22},{15},{13},{11},{22},{13},{11},{13},{19},{131}};
    #if (CYTHON_COMPRESS_STRINGS) == 3 && __PYX_LIMITED_VERSION_HEX >= 0x030e0000 /* compression: zstd (4258 bytes) */
const char* const cstring = "(\265/\375`\374,\305\204\000j\222T\036E\360\222\350\001\314\300b\307\246\302\356\010\205\027\"\255H\032\260!E\322\304\365\252d\206\366\223UR\002.\266\031\331\323\330R\213\177\302\330\223Z\300\332\017\267\352\255E\000-\337$\020\360O\t\000\200)\002\000\000f\352\307\267\001\272\001\322\001\331\026\272\335\312\315<\014\0027-\353H\236\223M\347\201@\021\2109\321\315\031\3262.\205n\376xY\204s\326\274\220\306\331\365h\216#\201W\1778\177$\360\202\237\306\334&\n\261\370n\010\203[V\271%\235/\006I\200\035\016iX{\240\026\205.\247\222e\340\312\347~$\023NI\206K\232\363\274\016&e\371\353\274\r\274\244\021\356|2\370i\331\343\274Lk,\262\333\311X\273\240\017\224]\020\374t\233\326e\354\361\220:z\345\346\274rU>p\353\350\013\022\341\026\333\247\301n\363D\370\323\335\254A\240\266\251h\334m\234\326\360w7\356\013e\317\263u$\234I\240\t\203 \360\323aN\233nH\177\030$u\266\014\202W\343\322\006fWs\237\025\013%)I\223\243\347\010\037v\024:\202\245\3521D\337GD|\311W]$n\236S.n\324G\236\3349\232\033y\246\242\224\223\374\233\033*\334\247\277\317\322\3239\313N\267(\345\343\230R\231\233\227\347\331aI\317\261\233\244\021\221\323\277\367\363OI\206\244\311yy\332\276\237\246\026\305\255\202\204\373r{\270\252w\021\013!\315\256\315\263\377\375O\323\334!\330\347\0363\271\337(v~nb\251\223\205\215\033F\342\315\376\313\236:a\243\367\273\014O)\217y\030<\305Dsc&)&\"DX\204\231iO\277\307X%\377;\345\247^r\021\363\0353O\324ge\330\337\250\217\361\177v\236\207]4\373\310OO\314\363\317:a\"GW\\\004\343(\353c?\344iz\206f\307\374Fa!\373o1\004\373&gI\221\351%\tZ\t'7\313\306\275\347)/;\312\022\303\357P\311\377\227n^\372\324\337\377\213\021rTvJ}\232\347\357t\243\374K\265\340\364,\317\254\354\230<\207''\232\275S\222<M\201%\251uh\246F?\376M\356r\374>\355c\331\367\310\357\367?\334\243\270\377\026\305o\246\3160F\270O<\334\351\327f\327e\210\356\220\207i\352\364:\3442\272\367)\027\323\363\304S\345i{n\366\237:\3233$9{h\262\374\336(\264\334\"w9\313r\217<\377\025\357\364\017\273\266b\211\264N9I\236\234\227q\013\255\305\306u\032\346:\267""\303Z\207KW\237lJ\230\350M\303_G\352>\335\3352\370\351n\373l\237'j\261b\272\037\016'\005\345\244\204\tgC\242\304D\n\312I\t\023N\311\206\0046m\242\016)tqN1a\355\301\371\373\270\215\004z\031\223>\335\345p\226I\336\267\222\257\311\373\276-\373<\360\323Jt\276\337\335\\]\342\244\004\307mY\207\301\217\273]\306 \350\263a\020\307m\331\003\361\347\351\274\317\n\367u\037\321J\366B8\244=\236\006I\037\251\013\221\260\006\263\r\2134\234\275\2347\025\274\225\276\016\347\317\rm8\353n\267\205H\034\213-\203\237\310\3638\235\357\307a\314\"\343\214E^\210\324a\255m&\234\217\307i\317\223;\234q\326\335\006\022\335\214;\374\001\263\233\301\016\351\323\370\303Y\323\256\326\272\2535\014fO$\"}\035\351\373\266Ph\323\272M\324\341p\tsX\264\002j0\303+:\236\306\241\317\315\034\023N\tx=\316\363\341\217\273\236\257\3037k:j\007\025\245\301\212\023\230\020\233\025d-A\3265F+T9\031\266e\325\320\262\3565\303u\201Z\023\t\\\246vc7,\207\0050\234V\202\366\204_W\352Vo\340\330\2708\034`:\210\274\314p\255\332\021!1\233\227\221\027\005WH+\302jX\220\r\013\302n`\263\004\227}\020\356u\305h\335\\+Z\020H\016\224\227\000/\337ks\231\370\270\355\246\375\260\240\314J\241\205@@\314\246\005iQ\330O\001\0011 \253\205\226\266@\373\201\365\254\233\325B\001\030\r\033\262z6K\200\225\260\342\253nT\032\033\025D\235\201\343c\200\307\307\216\014\016\217\221r\207!G\247h\023\355\365G\3170\205\205@\205\177\243\276\213\032\325+\026\2525&\002\002\373!\207q\362X\"\3577*C\206\014\026k\265rq\361\251r\253|\312\247\270?Qo\356\277\362\374k\315\3050\365~\217\\\374e\312\363\364s2\335\337\247#OK\2555\013M?\212\242\350\211\242\036EQ\215\236b\311\262MSk^\246\264\346\342\311\262\332,}\263h]\226\\\305\313\222\204\304\263\360\337\265\357Ze\366r\233\344\270\352_\027yz\232d\027{\377(\224\311yJ\372\362<\261\260\274\376\335\354:=Q\027\336M8\252\277\305^\356\222\347\254z\372w\250\217&}\344\364\261\244\253\306MW\241\036+\335\236\253\316\214\227(\313\376\310\355?\367\343\350\231'\311*\317\316\277\030\250/v\025nvN\364\233\331A\243\331O\321h~\036\337C\236""\212\3223M\261\0279\272Y\320\0362\371\347\233g\252D\371nv\217\211y\211\275\313NY;M\357\212\377\224\2274\324G=\377\274\344Z\270=e\231\342)\013\rb\377\272\377.n\236\242\276f\215=\345*\217\022\317\265GG=H\363,1\221\233d\367f\312\303\343\233\335\203\227\247\324)z\254\3707\317L\227\374\226\265\000\007\020\215\232QY-\354fC\254\276Af\265\333o\304r\360\243\227\311u\302\003\206\230\314\213\204\227\001\027k\023h?F\255)@\313\032\341C\323\032\220\260Y?\233\027\007/!/\315\313E{\333\221E\261^\310\264\007X\253\027\213\020\035b\366+\005\t\214\013\n\027\215\223\314\372\2416pyJ\354\006\242\372\326\352\324\336 \260\302h1PW\2326\244\315\355\251R[t\025\001W\t\023#\325\324R\360\262\362\272\257Q\205\302\216\214\332\222\326+\251'\010\354P%,h!\000aE4k8Z9P\310l\225\263W\316J\002\026\255\n{b\244\001\314\327Z\260\331\021K\236|\200A\355\326\205]ir\204\274\224.\224\210\227<\312\270>\264/\326\014\232V\246\365\341\332\256\020\255\246=a\371\332a\365\004\324\226\026\203\226\0349\207\215W~\221\256\221\353B\233\241\260\222-\255\007\274\216\343\306\225\322V`C\365\305\364\272Pb\311u\264b\360|\000i=\254\312\252\312\254-:F\254\215\007\006bZ\330\002,K\355\233uD\325\2502Fj\204\315\352\265\266\272\322r\353\005\017\230\335\242\330\025\353\203\0040\017Z\007\006x\034x\211\270\016l\250\220\362\372\270L:\300\250\\\227Jk\352\240q\235\264)l\311T\212@:\300~ #\027\331\216Z\222]YG\354eM\254\026\326\n9L/\344\213\363\n\360J\021\201\221\300NX3\353\0046\245\202\216Q\353\266\022|\000X5\025\302G\314\200\327\007\227\010\312\032`\375\324\253\326\320\264#\021`F\252\r\035\013>bZZY+u\242\246\350\310\250\r>b4j\330r\271\353\206\025Eu\240\236\334\365\202\000\035\0335\200Zb\257\250\204v\250CX\222\250D!D33#IA\322\001#\221\020Tp.\024\216\365\325=\203rb\26146\307qBE(!#b\"\201\214HJJR\220B\007jvq\350U\323_\013\301J\275\327\220H\220d\264\323^\204\216?\275\303YD\r\031\no\213\006\215\0166\3511\241_g\203\224iN\367\201@,\010\t\261\251*bBW\014\177\3002K\r>\311\303\307@Py+v\327\264\3548\240\216\\x\376\221\271\021\210\030+,\334\204X:\340\216""\366\005\277\300\247@F\241\264\204\314)\270FpK\265\203\325\003\002\2338\240\327\235\030\324\021\033\3063\003\327Q\301?\337\333M0\025\253X<\231A\212\272\304\005\322.\221\350Z\245\026\235\013(q\270\310\214\355\231\007\256\004\272K\2519\234\210\240\326\261|\227Nr\374$;\321Z\356\005RF\371\236`I\203\"\035\014\233\376t\316y\\\212l\347\333\\Z.\202H\207\274qk\245\366\3322\306\347\205$\033\301<\240\233\265m\031\215\347\277\324s\021\225u\203>x\027\311\245X\346 \237\312\034\016\236\264\250\n\004\376\024\276\233\027P\372\3658\270\002\"2=4s\252S\212\364?V\223*\034\017\325'\251\317L\210\350\272tgj~\\\260\335\355\374Z\202\220\372\332\243\344\273\2070\245\277\340\326\365Q\344X\261\203\243\264J\317X\005{G\210\271,\177P\271{\367\365N\231\240\200n\301\233B\334\320\301\010U\212&y\352\217\322\271\356H\016\212.[\367\362\340\366\247\243\265\001\354`\244*\211\306X\334L\230k\004\0062\356\003P\2745-\355\245\371\242\365T\037\355#\322\354\253.\273W\203\204i\3606\001r\260\3424\037J\321\313\363iehM\250\270\001\210\021N\307_\2106\222`\311\210m\007KX\030\224\007{j.H\274k0G\\\021@\310k\013#J_\271\rTY\241\341\277Y\330lw\222\251\345\023~\207\032\333\260YX\t\201j\013d\235\013kD\0160\003&\261l\026\226H-[\240B\200C\232h\307\254;\234\243\335\306_``$}Ni\254\277\362#\335\317\335\004\376\302\226\352Fx'\026\326`\363\023ywA\311\352@\205\215\034T#\372\013\264_u\233M\374\334\350\232rL0]h+\370R\231\330\313\322\367\377\225\037\200j&59\270\035\371\351\310\261\332\n\363\241{a!V\214\020\024\227\322\311\231\354049\nb\375\023\364\260\350\233\323\352\344\356\265\234\004\350\255\026?\215GJ%\2654\177\261G{\025\302\017\244\244N\262\034@h\201\262s\366\020}\245\307\212\365)f\261\303\350\020\252\314Q/\373$\014\002\005 A\247\370\032\371.'\357{\320\022l\277\031\033\330q\201\253\367n#[\342J\010'\0161\344V-\247\366\262\267\003\246l7\025\032n^\356\344}\022\037\306Ld_|FZ\215Q=\036\247\221\022:K6\301\232\245(\376u\321\026-[\323\022\262\374\202\007r@\257\035lRDB{\033\347\202\205\035\003\274\301o\307Q\271\211\321\265\237\241\336\353""\234q%\302=\306\021ape{s[\326?\233\017O\302\251p\3426\2679\023\030!\004\267\201\217&\2341\234(PcA\222\023;\251\320&\314\225LG\314\352Y\350\257\222L\320\023\223\336\314\311Q\313\274\014t%e\344yz\353\200\3507\035\305\341v\342FW\014\364o\264\0376\203W\034\024\205\0071\t\254\030\351\025\006\252|\016\342\001Y=\036&\2031\202\032Fv\246`o\262\360\036$\342\365\214\222:\021\260\271\356T\350\334\331\317\354\334\014wc\353!7\275\002\224\357v\341:\323\035\321\201n\326\023\372\273k+G\273j\035\361\204S\23606?&\204R4\310\263+\2159%\305\315#\210\330<vs\322b\321\323\332\330\177l-\231\321g\204\030\300\232>eY\314\336\201\217\001m\350\243\374Q\207%\007\355\003\317\261\243\031\270M\330\361'\324\021\211\302;>\205\331\224\322%\274\337\204\345x\032\276\010\263\274\351,K\325B\301+\247U\260\377h\224C\243BS\021\244@\220\363\345;\201)\366\014\225\346\247T\241?\256\310\334\223\023Q(w\211\2378\017l\tr\r\202\370\323\272L]\257\022\221\221*\221\316\334\t\362\207\201\246\203!\226\023\352\371\335aM\024O\345\306W \033\375\272_\330\345kdr\250\371\222=RV~\205o\371\324\274\363z\226s_\300\210\004o\252!e\215H,\0338\r\353\206\313\236olV\311\263\262\371l.\020\017)$\213\366\0048\023\274\230\256\266\020\363\232\251\361\366\237ihU\2536\202Nm\247\352\230\303\240\334\023\233\267\212j\024)'v\304\212S\010\260T\323BO$\222\225{\227\207t\341\006\246Pk\234\345\026v\027\260\231K\200\\/\362\3774\314\303o\005]\336\262\375\351Z\327+\346\nP\253)M\272\004\25348X\3706_\366]\2020\272H\026\035\334\000\231\251K\2409\002\240\243\002\035\363\n\243\303\310[\275\373\302\274D\237\231^\335}<_\372K\034\360^\271Y\324\030\365\007\3055\234-\371a \215\023H\257\324\\P\230\332\031\210\242m\375\350\211\\\357R\223\200\240\302wN\261\236S\3319\3369\260\000\307\227s\336\031gg+,\272\020\244Q\200\256\356\010M\371\014\301\200\016\305\205cA\203$\r3\025T@\221\222\326\326y6\234\032\226\233\375QT\222kwp\302\237\201\242\224\276l\227[\367\035\0364\221\303\330\246n\364$\223\254wMU\247\256\331\255\215a\036\265\356\010:\003\267a'\232\233{\335\202p\213\031~m""\306z\302\257\024\2062\223\202\211,\256\304\361\366#\322\232\212g\253\027\006\315\265\034\246W \255\364*\232\252n\221\324k`N$\310\274-\200\n\377\246\350\342\344\017\004~\024\r{\014^J\274\353\354~\201\225\230\202\327Mm\217\333\277\241\272\021\206:\254\232;Z\326*l\357\340\032\343\364\343\006\260\037\272!@+\335\214\301\251\274t\226\240Q\275;\010\034\177\215\314bi\306\340qY\212\365NZ\204\315\004K\273\265o\002\222\312iW\221?\t\332\234\3675Ab\232\020\200\302\204\005|y\350+\001\nw\303\210\230\346\031Y\200<R\372\023F\360\352\360\024\263?\307K\031\365~\321\271\217\352\375\267drZ@\322\262~&\001\3500|\271^!J\267\242\030\215l6E\266\371\315\222\262\315v\305&\372\017\2771\017\030\003\223\253\251\252\337r\333\360\341\001\363\225\266R\347\326\363\366R\333\202\330\313\005N\352\373VkS\307-\337\273\304z;B3\223\003\274dWT\210\343]-\226\361\027{\032\\W\"\205\033\235\373d\215\357\322\324\213\250\036\032)q#\360\273Z\274}\3501\316\324\250\221,\345\254\034p]\016\366\307\341K\033\335)\350\316\217\207\343\026\316\236\276\274:\220!\022(m7AxN\257\274\377\370\234\007dc\200\000\310O\320P\003u'qx/\200\337\206{\275\237)j\222\241\320\316\367-\211\277\231\236\265\010\331\027@\026]\2525p\323\336\213\27796\354\250\276.\347\242\260\323Q\353\031\302z\363\345X+Y\240\332\371\250{\2062\325\250\343c\272h\200\274%\203\366\376Q\252g\261\276\016\033Ar\020\031bu\223\222\363\232\004\t\265\005\246\n\336\024%\317&\212aG\207\337t\034\353\017P\270\245\255\002\025\250\267<\374\357\022\346\023\005\033`\344\203\237\000\344\232\350\345\021\263\305\322'%\330\334Qq\207R\244\027 Q]A=sK\270\303\372\255yX\351\312\334\013p\303y:{D\363\017\353M\"d\317\354!+\316\255\r\223,q\363\003\010l\227\207\341Q\3563\200\264\305\323\303c\210\217V\026\222\204Z\262\360]\331z\330Xx-4\214\2705\337#\020]D\026\210\201\345x\215\264\\\341\336\343B\225\200k\363\n\025\366\213\265r\337\317\240\201j\334+P\310_\030\ru\370\2615\346\247'\n\375\361\376Z\330\352Hm\002\\P\317V\320H\177h\252Z\034x\326@\350\322\320\220+\263\234\352ct\n\3726\021\341\r\007\000Z""\331 \211[zC\301C\301\352!\304*\017$\331\202\031\032\300\367WS\271\025\300\351\031\242\021\363^\357y\357\221\354\r\027\274\002\320,\263{\023K\260\341\354\333f\2719\001\006D\374\376g\361\301M\217\366S8\377\014\230=t\037\366\267\334\\\252\3108\364\212:\204H\353\026\2146\270\274\377g\205\315\001\326\023\272\002";
    PyObject *data = __Pyx_DecompressString(cstring, 4258, 3);
    if (unlikely(!data)) __PYX_ERR(0, 1, __pyx_L1_error)
    const char* const bytes = __Pyx_PyBytes_AsString(data);
    #if !CYTHON_ASSUME_SAFE_MACROS
    if (likely(bytes)); else { Py_DECREF(data); __PYX_ERR(0, 1, __pyx_L1_error) }
    #endif
    #elif (CYTHON_COMPRESS_STRINGS) == 2 /* compression: bz2 (4411 bytes) */
const char* const cstring = "BZh91AY&SY;\343+n\000\002\221\177\377\377\377\375\377\377\367\377\371\277\377\377\366\277\377\377\377\300@@@@@@@@@@@@\000@\000`\022\335_\025\256\333\023\273e][&zp9\"=\000h\007Jn\356\035-\205{wx\203@\035\003O3\321\003\351\357xJj\t*x\304\243\30050\304\324\306hi\032\032P\365=OLP\365\036\220=F\217I\246\236\240\r\036\241\352zC\324\315\014MF\203M\022f\204\032S@\010\311\250\365\r\224\364\215\000\3104\000\032\000\000z\200\000\001\265\000\000\010\252\177\351\240\245M\242\006\230\232i\240\014\2320&&F\200\000h\310\300\214\020\300\230M\014@\000\000\220\241)\2644S\3222\2152mOF\223m(\320\321\243@\r\000\r\001\240\000\r\r44\323M\003A\223\020\315Q\350\230\010\323L\001\251\372\243\002d\300\000\010a0M0\002h\300\000\214LF\000\203@$H\020M\001\03142LL\024\323M\024\366\232'\352S\332\246\214\200\032\000\000\032\000\006\201\240h\000\373\357\000\301\211\261\r\211\r\246\314\244\316\350\r\2322\226j\322\266HL\230L\205\327\366Kg\213\353\373\277\034\033\335\036S\240\350M\3200\367\201\006\351\352C\306\036\253(S\253^\252\004*F]^\260\221\327i\000\330\010yRH[\035\204\\\213\214\263f\332 VHT\242) \013 Az\301$\331\326$\246#\002\340\272b\002\204apL\222\276\013\222Jb\026\022H\346\232\2310\2314\003&)\316S&ak3\000\276a\002\t)\201\235\351\002\254\354K\200\335Wh\256%L\230`+\005\2426\205E\226\264\002\225\024DYi\230M\032\n\311H\tD.\231l\324\256.\252-\306\023{\372\3060\373\277\205\367^oxi\234\373\214\216rt<\220k\367\303\247z$\352\023\336\351\317'`f\344\342d\266YO)\361~Js\262P-\252\212\201!'tPh\246\357\247\215);\216\212R\210\267G\277\022\265\271\006J\360\3655o\357\323\000\357\236\377'\347\373 \274W*\216\302\361z^2\274>\310\351\204\032O\332t\264\260o\034w\350\r\307J\206\025Z\272\306\206\201&\253\235c\223\344\373u\373\216\032\0108\224c\037\026ud\221g-.\306\273\037;JM)\202\222D\267\256\312\300L\221MY\304b\267%\366\365\263U\331\375v\314\377\n\243!\020\363\"s\205D\234\315Ti&(-\350\357@\016?W\034\210\327\265\255`1\310\331T0\336\367\370\3479\305\005\331i\361\310J]S\313U6\302L{\023\234\344\022C\\:m\367\\\223\234\357\024I""\211\337\305\2659\316BRp\301\231w{\301]\037W\306\237I\345\204\020\034CK\373K\"\217\372\022\356\232\373\211\377t\300\263\224\354\024V?\275\014\233B\234\222\214\324\250(n\3603l\221Z/\270\257\254\214\004\233}\367\001d\213\241\027\025\026a_\026+>\177F\225z3\\3\240\254\262\241\031\356\014B\324V\021\322\211\032\241\260j&\271\317\220Y:d\223|\2350\307\255\0073\325\212\264\326p\360*\263\314\350\347\300zoz\336\201\363\2445\324\344\0073\021\274\371 \002\265d\0349\341\300@\344\007\032i\267\031$\251\006\226#y\254#xRA\353w\372\376\236D\030\314\027\t\345\230R&!\241\035\261\022,\001D\300\2727@!D\227\245\316\242\261\020\363#6\210l\25335\357\347[\3142\261\311(\000\305\nby\233\341iP\261T\255\010\320\\\234\250\325\032pl\01050\330\301\005\311y\300q\326\200/\021\342\243\304\351\005\344\203I\376\006\237+\277\316\374\016\202<\244\n\301T~\004*\036`\211s\275\271\202\264gkI\314\335U(\010E\342\240\271\344\2641li\226\202Z\276;\006\243Ed\204b\205:\26030\235M\r\264\025i\313d^\301MQ\022\016\363d\240\024\230\222\004\347`T\274V\214\2208\3160\212\242&H\2121\021\244F\332\227c\206!\320\213D!Dj\2309uw\305\371.\004\004\357\264\261&k\230@\023\210F5\214\036\301\026-0\234\024\317\"\227P\254e\202\301\023,H^\256n\347\351;\372<5\202\345H\r)\001\330\267\223\022\354\214\360\002\344\305l\230\370r\017\211\t\375\274\331\366\356\255[\362\246\203F\331\271\252\265\3225M;\022\033\264\305\021\255H\270\273\355\233\344\206\245\013\367\363\207\222\266\340\343\221\273\2666\374~>T\354\217\333\276\270\314(\346\326X\363b\344\211tx\025\251&\262\314\350\316\221q\236y\252\253\334d\241\314\234\3507\301\2315Y\342m\251\0340\303F\240\244_*\324A`*\261\315T\022R\344\200\001\222\305\310\0378s\n\213\033\301L\350\022\2065w\364\367\263\272\252Z@\n\005\262\232\302\320\233_\253\014\265\214\3705\302\334\367G\244\267J2\016\366\332;\033\0324\366\272\231<\213\253\273\273\277$f\263ww|\245\2546\206\276\327=Uu\204\264\316\304\264@\221\225\255'}\274\003M\014\366}\000g_\027\241`\005\034\273\300G\177y\336\037F\224\271\020\2731\316\223\204\023F\271""\200ax_\340j]\243H\321\337t\347\330\240>\370\251\267!L\323\310\035\313R\021\255s\031\317\t\t\245r\033DLW\262[\247\340\310\032\2601=J\300\315D\222\300\200\301aU\001\240\032\262F|\324B\370\374\276f\333\372\377;\177)\320\227\023\247\247\216\202h\237\017-\333t\215\203K\221\224\277d\252\326\035#A$L\352n '\020\211u\276\2165g5\002\020Y!\307\264\352Je\220PJ\203F6:\222\252\364+6\005\360J46\200/$Af\222\214Q\204`\t\215\r\210\006\304&\322\022vQ\"=\341\331\234\337d\2539l\261\342\326\2244\262\033m\251\003\021l\310Q_@r\267b\014\354\256\266\313!R\351\246\r\014\035\367\326R\321\321\361\306\225\362\341\\{\261X\030\253\220\212\"(\205\033I\321\201dQ\031\204\342\300+J:\003\013&\206\2407P\224\n\334)q@\245\303\025\303e\206\024\204L\220c\010\306\231X\"\224\220%<Md\241\264\303%7kSz\202(S\220\216J\320a\202T=.2OxaS\n\310l\364\273\260\350\026<\303i\347\257\0267%Yc\2402\304\246\037[\346\336y\3606\343s\024\033\327\207)\316N7H{\020\2715V\001M\027\212\016O\"K\242dU%zJ^!\350\361m\301\263\334V\035\010\225\013\332\356\037>\n{69\263\261aZ\264\373'\004\350\000\206\214H\204\204^2l\235\033]S;L\003\265\013\313%\316\034\364^+\311\"\001K\305&\000_u\335\216\006O\213\204+\206\256\352(\211Q$09\271\275\366\303\312!\204\\\242@\306\306\314\310\r\001$\245\213\322\262,\221\221\331AY\2414\257t\221\014I\246\202\006(j\023\300\227\023&\337\243\253\216\257\036\236\013\253\253-[\2224\233\316\355\253m\275;|'\0306\374G}\247#\301\334\302v\212\266\363N\320\n\341R\244\034\312hY\n\204\001e#\2350\220\204\344\004\007R p\255P\2747\234\274N\357\367\236\376\001\037\024\223\351\237\031\361U\023\034\343\311x\257\016\376\277\r\206\345\320#\225\035\034y\351\035\001D#\335\302\235f\007O\0134\204\261H\304\235\240xY\273\022\205\3342\323\233R\365\310\234\334\353+\344L\237\222\353\037\212D0\270X!\331\266\346#h\307\026\252DR\305\315\017$#\030\221\241\002L*\263*\252\203\"3\224S0\231\241\311\321\251\305$\333g\017_\003\203\033\224\243\207\031\365G\247o\372\245\222Fu\275\032\230mH\t\232$?\001r\t[wC@\225\211\300T.)\226\240\r\2158q\327u\201\200mv""\010!\nF\364\210*\202\341\334\235\313\257\255i\316oW\254\303\003\013[\340\212f\317bI\000\\\206\333\016\2632\274\274\370{}[\2604\256\315\2536\321\212\255\031d\032\214u!b\331L\364\366\337\253\243\201\356Z7\313\333q1\366\017\221\034\354\367\216\234'\031\234\023yNSm\275\251D\374)\242s\016\362cJ[\332S\024\306\267\305\261\255AU\203\361*\324VaL`\234\342s3\022\014\035jG\305\325\202\246P\005\252\217{A\3322\014H\272\252*){H\225Z\221\203)FQ\300\352t\262bja\225\230\001\003\010H\301\205\256\204\275-h1\271B\2207f\004\236\032\207)\r\324b\243\312p4,\224\021\242\005\335!aF\347\".\223cMgk|\315)\262\tUE\205\224\2270)4\227\016\343\336cJ(A\231J\021\246@\246\014\310\006\326eKZha|\361\207g\216\025\266{\256\237-\006\341\334d\341\001F\026\221\017,)4\0016\213\330\256Y\211H\312PFN\002v\302\344JiLl\305Y\222\245\206\306\307W/\2006\351f\306<wZ\240\331\271\335\233\205*\355w\266\272j\301,\2231'\351:\221VHA\244\213\2239\356&\223,O\001\324bH\370\014d\\\335\317\253!$\333\322\335\021\t\3332d\237\254\302\001q\350\"8\245n\016.\025>\237\267)\376\276\215\037\240f/\006\220\306 \311\367\2629\276\324\265\233\262\220H\356H\346KZ\226\3436$\274\202\371X\345?JZ\316\362\231_7\002\271rh\316\341\231\2274\376\271\272\342\346\274\374\375\257\353\n>x\005\002'1|\361#\316T<\332\364$j\006\032\340\200\366\3070\032\264Uhcm\214m1\266\265\361Y\211\035\001C\220/\233Me\037\303q\355\277D\330\256lB\260\030\316\013\247\020\340b\362\365\016N\346p\277Y\221\215\362\021\212\216)o:Q9\254\035\240\t\016I\366A\341\024\246\275\303\337\022J\343\231\201\t\025\210\276\tE^\266mv\265K\256\357\357\332f\361\341\322\030\263L\312\\\302\256nR\026\264e\013\370\021\251\213\216TP\342onH\352R\246n\2443\216e2n\356\316'\323\302n\260ge\2569\264$\024\021s\002\0330\260Lo\272\224^UxB_\242\000a\224\343\017\2504\352\232UF\010\305\214\256u]\211i\355DOA\207\250\31664\333\030l\325\257\323D\250\302\260\310\204\301\203\323*\261I\226tA!\271\307\260JT)\255\217>n\031\265\223\236\330\221fo\273\221 0\215Y\243H\265\244]\"\243Y\257\225z1\022\363\005\207\332%\357s\023;Q""\325\366>\213\272ti\345\221\275$\265$D\342\242G\305\357\271\336\01336\246{a5P \326\202\244'\216 cnU\333;\253kZ\312\252\322\224\262\365s\037/\267\220\3455\374\0106\220gR&\024\302;%\256\326\223Q\0219\026$UV\334\0362%b\314!\004Q\016\334\367!l\321\250wD\236F/\002\223\235\310\345 \247\n\001:\n\225\345\325\230\210\224\020\2170\314\211b\332\224\225e m\223flF{\231^Y\245\034q\307\034q\206\005#m\267\216\363t\360z\331\253y\233^\214G}\323\345\032s\007\005\300\340{\270\207\316j\3263w\304\222\330\240\237\264\210?\016\273%Q\320&\240\315TZ\205\002\214\350\340\2635D\324\312a\230\370\305\324\267\3654\360\200h\344\n\275z\365\361\375:8\343a\025\335a\321\213\212\326\262\304\306\r\355Y\373y\027\344/\250\341\233/=U\351;Z\211c9n\317\305\301p\n\346\3165\313\3725`\264\363p\010'\031\t\261\n\003#M2\272\352\225*T\302\032-\354\231Ib\361=q\365\013\330e\252F\275u\206\213\266g8\316\310\\\001\"\255\036C\020&\014\003\006$\035\315.\234L\264\332\016\377A\354XL_c\305\026\230\267FNQ\2132\306r;\315\036\334\347kR\247\340+\020\346\361\274\321C\nV\273>]\010\013\014<\305N\362\\\261\013\253\347\262K9\362,\244\205V6\207\021\337tg\033\034\331\021\213\206\333n\023\346$8\267U\271\031\236\354\311^\226R1d\223c\030\206-\332\362\217@3\006R\003#\364\200P/fK\357\230;V\332\203X\242\255\344\324\334\247*M\351#\2444/Z\361\r\035\237\026\272*\261\234\202;\314\214\016\265\302p\033\363\355a{\013\351\035g\321\273\257\242\n\233\013\371s\276vH\315\333\251\010\243\353a\332\026\314S\352{\267\324\277\304f%\3722\371\276\235\264\335\324>0\216_\277\315\350\324z\007\324\230K6p\200\362\304\247E\362\321\031{\243\035\365)&8g'\013\303\221\367\236~g\237\340\326s\211\304\375iP\n\023\237\344\327\344(\036\302\315Z\327(24\006\326\020\300\206\034%\034\016\344w1\262\251\022I\267X\nI\017\334r(\005\270\365\243\001\372\273O\207\242\343\205\271\362\360\301O\273]\331P\300z\235\264\006\244\302!\302\033Cp|\205\001\022\030\300i\314\022z\020[f\024+e\005\2704\020\326\246\001\016\215a6B\226h;uG\210\375\201F\244N\225\2704\335\225><q,\315\234\247!\240\213\351yK""\367\340\310\307\000E+.\030\260\232\340\005\373\352\354!\033\250\360\225\010PDW\230\234\236\217f\020\245\235\312\356'X\273\0032\3707g\264N\370 \200\324\322\206&5\025\204\226\024\211\364\350\225\367\345&\020\242w\355\370sU\326l\220\333l\304\224\311\212\372\245J\2520\031\270\313\001)D\361\313\002\223\256F\240\331\206\021\224z9y\214\301{\r\002\313\023L\2333\333\r\022\322 \202\256\365\204]\211\216\\\002\330@\203`\022Y\314\255\032\3556]\263\354\255\001\234\225\262^\303z`\332m6\206\306\305\313\331m\034N\263\210\326\217\207$\271\200\271\345%\374+\227e\036\253\310\023\255\365'WV\2626\344\215\266\333m\264\230\270\006\346\235\321\217\213\227>`4\230\325D\266X&\213\244\211r\364\302\027]\301\332\264v\255>\255\337]|\007q\006\327\032M\325\3446v\357\002\275GU\371\230SY\250\\\334\310\370\363\326\242\351\030\212\264\005\215\220\227)\374\207\247\372\272\007\345IM\236\3710\204\321B\000\310\345a@xhy$\002\031Q\301`\305\204C\222\306L\272$\025yra]\004\314M4\243#\241\n\312\200#\304d\256cI\214`\306\206\322c\023c\033\033\033LEDsO\300\005\366$\333Ci\207\031t3s9\344\235\300\014_\221\346\021!\367%\021\262\3161_\367\341\366G\034/a\306\025@\327f\356\366<\375\360JQ\356FWY\216\231&</G->\216\317X\016\224H\337\365\320s\217\234\241\316}A\205CcO\325\027c\366C\027\360\213U\243\361{[V\344\r\024\242\0376\005F3\205\374\201\323\214\033\343\034\256\177.[\232H\037\036\346\331/\221\"\006\236\225\221\037\272\350\264\35194D\017\351\203\032\340^X\022>\333\021\341{>^\375\360\036\003\217\360\213\364\234E\016\363\007R\231p8\rg\270\342\322\372|Lw5\036F\354\221N:y\276\207j\202mQ\372\221\013\272\214\"\t\273w\256\365\010\035\254\2071n\356\356\2739\314\207\270\323\233\222\345V{>\363\255K/&x\346\272\323>\021\221v\260+;\352bbi\244-Z\346\250\343\226\034\244Q5\013r\355\217\232\036}\302K^iz\364\211\276\033*b\322-\211X\334k\\\263<\352\251opgm\265\236\031E+\337\350yj)\314)Ie\r\241\366\341\266\367K]\245\253-\235\215\033\035\034\307\034an\327\261\303\360\023\\ZR\370\335\315\243\340\021\335\355W\261]\325\253\255\n\317\347\0049\321""\n0\220\242\000`\243o\314\224\002\004&\267\2009\250\200k\260c\177\314\317\260\177\336\275q\223\247\016\212\005B\236\364b\323\332t\246*\337\331\321\340\357\035\352[8\330\230f\356g\r\025?k,\317\276\367'gm\2635\344\231!\010\020\222@\222L\310\336\244\030\331>\355\312\375\217^\326\254\343sk\333c\263\022$ae8\201W\016P6\240e\"\033r\033\t\016\205h\341\324o]fI\226l\003\020QP\313\253::K#\027wdHP\025\024~\325\036%bUT\254*\240\000bh\021\377\213\271\"\234(H\035\361\225\267\000";
    PyObject *data = __Pyx_DecompressString(cstring, 4411, 2);
    if (unlikely(!data)) __PYX_ERR(0, 1, __pyx_L1_error)
    const char* const bytes = __Pyx_PyBytes_AsString(data);
    #if !CYTHON_ASSUME_SAFE_MACROS
    if (likely(bytes)); else { Py_DECREF(data); __PYX_ERR(0, 1, __pyx_L1_error) }
    #endif
    #elif (CYTHON_COMPRESS_STRINGS) != 0 /* compression: zlib (4333 bytes) */
const char* const cstring = "x\332\265Z\315s\333\330\221\227\3263\226\306\361N\254\314\3268\236q\262\324\330c\311S\216'\244dY\236T\355\026D\202\024l~\002\244>\246v\013\005\221\217$b\010\240\000P&\235\354d\216<\362\210#\2168\362\310\243\216>\352\250\243\377\204\374\t\333\357\003\300\003I)\311~\224\313D\367\257\373=\364\353\327\335\257\001\350\271`w\372\247\310tS\033-\315\3256R]\315I\351f\323\262m\324tS\356\260\207R\233h\320\003\006\265R'C\0279)\313\006\r\367\351\363x\250n\266\364&r\376\241\321e\313E)\267\253\271\251\354\320\355ZfJwR-d\350'\310\326\\d\014S\216k\3530\316\306Jf\252*V\177\267\275\273\235\322\314V\312F\177\204\031\235\224\323?i\032\232\343\340Y\333\251\223\276n\270\272I\356\352<OI\355\324\320\352\247L\004wv\255T\017\364\370\001n\027\231)\007\271\230Hmh\246i\271\232\253[\246\n\303u\263\263\221j\351x\r\3729\302\243\363\232\341\240\347\377\256\265Z*(\242\226\356h'\006B&\376\3554;F\001\271\002Q\026\\\260\372d\363)\0075L\275m\331\247\014\333\263,\003i\346y\310\366\333mdW5[;E\260V=\304\363\206\245\271\021\203\245'D\023\346\327\232]\354\365\3711\222\351\242\016\262C\266j[\035P\221\314\266U\264:\014T\272Z\013\331\034&#\255U\325\007\310p6\237\352\016]Q\353\255~>\374\036\006\367\272z\323\371\336\352!\263c<\357\r\007\205\242*d\353\322\201\250\n\365\272,\3555\352\242\262\000SK\302\221Z\024\313\205\372~,\255\213G\365\206,\306@\243,\345+rI\231Cf\206\027%A\021sjQ*\213\352\241\224\253\357\253\262P.\210\234\250Z\221\312uU\221~\0249Qu_\010\257\352\236T'\267)\036\n\307\204\220e\341X\335k\344\363\242<\303\202n9'\225\013\030\256\327\205\354>\314\257\354\0139Q\306\003\367\204\354\033|\001\353r\341U\315V\212\0259\342rJ=\272{\214\310\205\275\210\027k\r\241.U\312s\300\314\270\010\346\007+rvF\r#\241FC\014\327\272W\251\024\331E=\020\263\031\216\336\342\350mL\323\205c\377\305\\C\021\210#\367\216\353\370\222\315\036\342\337\242P\252\252\365\212*\346\210\220\254\234\371\251$\226\353\277\217\260\310\231\365\010\312\026EAV\017\00402\302\016e\251.\226\004\345\rAJU\251(\252J]\2507\024\006\310\242\202w\230\005\217""\212\303C \353\3136\212E5/dE\236VK\225\034\005d\031\314Q\253r\245 \013%\0169\020e\230\213\205*\306\361\262rbVf\027\260H\250\022\272(\3269[rb\025\002/^i\0041w3\206_5\205\222\253f\030,\254R\346g\211\220\364N\204\345\033\345l\304\204qM9H\273x,\357\303\234T\337'!\235\253\300b\263\002\3117>\"1\035\306k\356\270,\224\244\254\232\223\005\354\005X1^\331lr,\202\271$\301A\212\003\r6H,+\020\255\330\033y\241\250\210\344\2520S\363\305\212\020]!\301\353\031\236\331\342\231\355\210aq\0331[<C\324d\241@\214\243\031J\221\222\030\331\316q\334\336\251\225\275\327b\266\256\326\217\253\342\337T\002\027\335\240\024\306eQ<\020\213\177[-\333\330\303\305\261\032\006.\257\036\273\224Gq`\340H\234\201\245r(H\306\3445:9\251\304m\316b\235\222\244(p\377\353\347k\224\225F\265Z\201\374\311\021I\205i\340H\023\240\016\261\332H\201p\201\020\303\252\220\313\205\244\014~\222\025\310\253\306^]\206\252\037\342\034_\020\313\242,\020\203\252\330U\373R\231\3028\320TB\325\303ZU\220E\320\224)%\226\303d\204U\311\354\022\346\263T\316W\324b\245\020\237+tZ\251\034\205\031#\267br\233\220\220\273\022\024\343r\243\304\261\274c*Ul0-\350\241|\021\026\026\001\340\241\n\001\361F\024\261m\3050\207\212P\354\360\005N:A\216\210\320\021\327\300\230\2469\206\361p<\254\265R\ri\005\212]\304\220#\2242o\342\372Vl\224\244\262P&\233\026\321Q\325\300\0072\004\n\204(W\213\245\022\234\020\370\314&>'*ax\207*l\233\260\014\252/dh\362\250\301\370\365\263-\230$Q\275\225$x\375D\007\222x\210\343\026\247\001\301$Y\256\310\260\022Y\254\212\244*\305>d\324\234\317gp~\300\001\t\300\262\224e\000\324qr\251\207\333Z\206\363\022\337\021\223\215\322\315\307\032\035\014\277p\247rCI\324\356$\032V\361\030\345[\203$\032\3516\240\256\345\325\222X\252\310\307\300W!eq\027U(\263|'\235\224B\210\342q\001Z\217J>\257\210$\235\353d\206Y\\*\026\347\321\320\371\330\307{!\031o\377\014\313z4\266\315\tI\\\023\2230\356s\026\351\323\003q\221\204\326\207E\222}Q*\354\327gQp\203(\227\241\340\320\255\231\025\343\225-\232\014\216\273rV*.\224\205\211GA\346\006\026\200@\024i\305""\244\235\034\374\276\330y\301\010UHSJ`\027\\\227\024\001\327mY\315\3448\006'`\304*\021\305<\014}[\266\002\321J\033;&\242\306q\272\363*!\022\027\256YAX\331\224,\034\"\270\373\253\034q\034k\001\350\031\215\367T\220\217\271\220g\270Ri\310Y1\256\317\014f\2074\346\360\351T\204>\250An\tF\323\362\252\354W\250Q\\\370G4\230\n\031&\220\003\224\317\004\\\370\342\326'\334\266\304\331\027\202\370\\\203\004\220\212s\030m\320\022XUP\224\260\177[0\204\023crV,\213\371Y\210\270Ve\355]B\302\367}\221\200f[\304\362\375h\010&;\322\020\235\261vfm\220\207\342\321.\007\\\277\316\353\227\230\\]\030\025\214]\270\316\344\022\341\260/E;\326\330\253JGb\264\342\370\351\222Q\277\217\3114G\3620\217g8z\213\243\2679\372\005G\357p\364K\216\336\345\350W1\315M\237\341L\310p&dx\035\316\204\014gB\2063!\303\231\220\341L\310p&d8\023\270)\2678\023\2668\023\270;q7\342\356\303\335\206\273\013w\023Z\216B\206\225\357\305`\330,p\242\033 8g\013\002yIpt\243\364\370F\351\217\213\244\325\212\"]?s$=\276Q\312\317\014\r\010>\030ic\032\201Ry\036\304\315\251\252\314\0028-\240\301\201JG\213xHC\246\225y6l\353\3522\311\344Fy\3568\207\226\035\030|\n\323\247\370\210\227\222\342\260\204&\001u\233\376\233\027\274 \377\322\213\004;*\016\035\322\360\n\374\003\364\001\234z\244\362\306\205;\321\315]\367|\271HI,\013{E\362\024\262HZ\306'K\021\016\340\353\024H\223#\312\327H\331\321\275P\004t\356:!;\250\230(z \r\233O \177\024\345J\321\352t\220\255\252\325\341\000\376\347\364\246\253\226\321\300\225Q[3\014\353\035jiF\257\253i\316\320l\352\326\363\246e[}W7\221\243E\357\375N\214>:\261\354\026\262\351\033A\372\353\300\305\321\337\243\246\352X}\273\211\232Z\257i\300@U7U\327\326\232\350Dk\276mZ}\323m\341\367\274\255\266\326ta\022\307\025\360\375\340\n}\005`\210\342mM7\332\272\355\270mC\353\340\227\227\232\333\216\337Ar\244\323\356\233MU\245\277\035\203\276\360\254\303\202\3726\002\226\030M_9v\214=\335l\321\327\243E\253I\336\265R\214\276\002\2454\367\246\223\00222\243\225R$\232}\317\000Y\3262,\233\321\342Y?\234\226g\025\324\323\360+e\006\347""\301V\216\344\244\344&9\360NH+\375\023\312f\273\250\371\226\263Mq5\267\357\000n \315f\027f\t\241\025\027\301\376\031\300a\260\2449o1y\332\323\r\024z\003\2636r\034\204\027$\235j\035\224\311\315\240p{N\320\033&\025\t\237P\261\021\254\203\275\365\r\331\350v}\303\310\303\376v\214\0342\220\213\350\002\235\220\345\326\026a\321L\224\345w\"\322\t\247\247\034\333\032\"\355\271]\352iBR\027\344\020\037\0179\372\022=\"\016\220\355\242\001\215\020\301\266\265!Hl\355\035!\035J\213\006\302)\000\234H_\275\263\353\202\241y\335\324\235.\\\215>\271\304\013L\206\024'`\346c_\346m\313t\251\277\n\310\214\234\005t\322S\000\314\370\005\220\330\r\300\220\257\031%\275w\252\365\346>\023\314\177$\240\010I\033\324\242\216rB,\2218\334\227\204\305\337\021\010*\3326\216\311\350{\302\337\3655!\361-a\301\227\004\036b\332\274\017fgJ|q\340\220\252\215\232\272\003\213\311\223\372\302I\024R\3018 \234\t\\`\322)\300\305\321}\332\347s\020\033\300\234\232\360\032\303\332\t\r\246\317\207Q\325\322\301\005\366\274\240=\017\341\341\373\240\3361$'\254f\222CC\263\205\311DY\223\234(\263$'\031\214\222\023&\207\344Du\256\010e\374Po\271]B\276\215\006\223\2576\nTk\244\003c\031\303\216eV\332m\007\271\374W\035LC\2308,UY\025\2621\034\337\031\317\002U\244c(\332i\317@Y\353\0341\036\266\310\301!DGC\375\325\354a\310\205\373\304\252\035Mw\216\211K+\003i\025\340\2309\215J\217#c)_\371\022[?\303\236'y}\206\245b\276f\262\375O\2679\362<\246u\216\214\341L\233#9X\347\310\030\336js$\007\353\034\031\303\333m\216\344`\235#c\270\244A\370\rx#(\2625\207\320\311\234\270\250\037h\206\336\342\317\013>\240\261?\222\374y\022\310\264g\371\031\205\255\366,?\243\260\335\236\345g\024X\002\002\250\243w=\313\206\250\206fFwUgxzb\341\300\306\237jQ\307F\310\354B\nt]]o\351\035\023\362\241\245\343\375U\240\035\202~\001\r\330\327i\270\000\331\206\023\271Cf65\203\2666\272\t\341\356\252\272\243F\375\226\356\242S\007\177\005}\036~\005}N\277\202\022\314 M\234\201\316\021\364l\264\266\250\352\251\246\223_\347\355\2516 \235\326\251\325B\370?i\2610\001=\026hX""\255\276\201T\3254!*\341B\177\261!\006\030\334\262H\006\203\025=\225\031\333#:=\326\330\301\225\224A\234\032\247\344\307\351\221D\357\021-\253\327\013\353*\366N\217\356n\317\265{C\225\352\251*\364E\006\275-\270\312Fm\233\253\004<\355\360\214\013\215\016r\341T\353\033.\314\00162\323\201jA\333\210a\332<:\364\330\242\277\364B>\311\303\352\350\022\034\273I\\\002W\360\010^N\013\321\351U\325E\016\371\035P\300\245E\220]@U3\235\236\005\267\204\t\373\020\014N\337\201\235>\327\240'&?\316\273w\270R\016\006\324\215\303!\275\276\177\217;\332\367\370o\000\252\303\312\t\376\353\201\324w\233\020\005)U\355A'\016[\335S[\272\323\323\334f\367\031\376\313\203~3\224Y=W\005[\034u\033\357\275\272\033\006\204\272\005\325Nm\262\250L}\027i\203\3535\203\014y\272\024\212\177^\376\353\352\322\247\253?\377i\274>N\207\314\237\307\351\261\3003\242w\337\277\355k<\224\3676\3745\006\\\256|\355\245\275\274\377$X\t\316(\366\265\267~\365\311\n\025\024\374\227\301z\220\276\372\344\027#v\213\007\336\362\rR~\354\276_\010\322\201p\315\330y\351j,x5\221\246\312\305\255\213\227\037\326gd\373\301\353Ib1\222W\343\331\327\236\226d\233\321R#\340\013\037{\350n\022\312\372g\363z1x\271\362\215\277\356\247\331\270\313\225u\177\315\337\0146&\017\246O/\322W\033\337\007\203\311\237.6Cs\037_>\332\232\200_V~\376\313X\033\017<\007\306\376\0200C\357\216\266.?\177\344\247})8\232\324\350\214\004\303wx\025\354O\004N\357\267\236\346\235q\374\277zg\3762\277\363[\343&\354\360r4\315\350\255\267\026\351c\306[\217Y\303[\367bo\3235<\273\334yM\354\276\207u^\216\037\217\273\236\206\267\345\305\370\3268\375\361\223\207\236@\207\357\214\1775~\351}\343\tx]\357F\315\361\332\325\352\275\361\362G\374\203\365w\307;\370nX\332\037eGgW\253\237\323\373\177\004\344\247q\355\362\313\247\301\032\226\376\327X\030+\336-\357%\334}s\362d\n\243?\275Z\375\227q\316\373'P^\275;\022F\265\217\211\270\370\n\354\336\365c\376\327\336\262\367k\377\376\345\346\356\364\326tk\332\2718\372\300\034\371\225\007\267\370\332{\345\013~\215\304\032\230\357\035\373\235\240""\026t&5l\346Kp\332\313\320)\253\304\230Z41\326V\374;`VB\241\001\031\363e\034 \030:\000\363\023:Gq R\366\300\337\rv&k\324\2560\364\037\203aG\301\341D\240\306\204\001\305\206\034^>\336\236\024\246\273\020R_}\0039yg\2629]O\030\207\227B\243\346\316\322\247wF_\\\336}\350\315$\021v\316\027\336k\277\033h\227K\017\275b\000w\306>=\036k\321\260Q\005\262\211\037\367\345\030\273\353\347\367\343\265\361S/\215\267N\037\017\375\025\377\354\352\263/h\226Q\354'\277\366\221\020gdA$\276\317\275C?\037\254\323\311\271\211\236\200\312\354Dy\010\220E\023]\256\374\306\253y\035\377\000\\\366pzt\021\371\022\002g\254Ek\303JM\377\253`w\222N`m_\340\007\264=\221\253pT!\037|\033\234\361J\035/\212\231\007\340\353\345\340\341\2446\351L\345\351O\037\344\017g\\\220\2630\276\242a\214\307]}\362\313\321\331\3706\254\335\361\036{\310\337\t\326\202g\023m\002\243VG\313\2435nk\177\353\375g\360d\262\014\213\252A\234\312\027\377g\023\317Z\275x\342\313\225\337A\350w'\306\305\306\207\265\377\207\331q}\032\370\357\002\355\357\235;\336\222\356\345\223\035\230;\261\323]R\276\243|aX\307\257\371Z8\001\304\330\347#\345\362\036\024\223`\375j\256L\374\340\037\006o\242Z|\027\007\3441\256\241\304Z\254\260E\253\333KR;\265Y\035V\234\226oP\271\\y\000\313\177\344\325n\232\006\033\336\364\326\222*\324J<z\323_O\224\341\365D\366\262\232\361\213Q\022\246e\376\363\244\340\001\253\360\240\177\177\014+\203%\376\3656.\327?@\211J{\225 \023\324\346Kr\264\214\247p\204\177\033\234\303.\267\247\302\364\370\002f\370\347\321\021\316\341h\327H]\377\237\335\001\373\373\025\234\347/&\267!\024\316!\005t\234\0007\337\001O\376\371\350G(+5\317\n\344\340\272\320\243~\334\2000\200\374\302\3417\030/\010d6\341/G\177\364n\303\346\374%8\231\220\310\032\214\234\361zrB\334aHP\201\322A~\002\310\275\361*\216\203\377\305\204\364\330\332\t-\\4!\211|\\D\343F\203\246\324\237'\177\300\316\212\032\016\226h\227\317\377m\252]=~\006m\302\233\351\340\342\214\237b\030v\006\264\013c\330\235\205\r\334\"\341\335\031!\024\355`\231\023>\364\376\340\267\003!\370\217\351""\332t\343\342W\027\351\305\245\014\267O\0058C\376\241\202p\037\237\003\021\207\273\234\317\202\265\204t\325_Nd\303\227\336YB~\013R\377(\250\315\214Y\rnC\365\323f\320\025?vl\210\014'\237M\357_,_\375\346[\010\201\037&G\323\332\314\355\234\231,\305\310#\277\266\000S\202\250E{7\322p\\\206\354\000\\\262\31414\237\357\201\212\343=\36358%\371\270\030\216\227\307k\034\023\222\370p]\347\231GP\262V\2743\372\270\340.~\252\300\037~2j\026\236\341\340\301'\365\335R\313\352\237\030h\t\036X\226\226\372\246\003O\271\250\2252,\263\203\0370\226z\372\022\231\204>\241\252\310\311,\301\003\255\336\036\252\300\221\307R\267k#\255\265\204\237Dt\372\230\251\272z\353\277\001\326\266\350{";
    PyObject *data = __Pyx_DecompressString(cstring, 4333, 1);
    if (unlikely(!data)) __PYX_ERR(0, 1, __pyx_L1_error)
    const char* const bytes = __Pyx_PyBytes_AsString(data);
    #if !CYTHON_ASSUME_SAFE_MACROS
    if (likely(bytes)); else { Py_DECREF(data); __PYX_ERR(0, 1, __pyx_L1_error) }
    #endif
    #else /* compression: none (11772 bytes) */
const char* const bytes = ".Argument 'data' has incorrect type (expected bytes or int).Argument 'indices' has incorrect type (expected bytes or int).Note that Cython is deliberately stricter than PEP-484 and rejects subclasses of builtin types. If you need to pass subclasses then set the 'annotation_typing' directive to False.?add_notedisableenablegcglGetActiveAttrib()glGetActiveUniform()glGetBooleanv()glGetBufferParameteriv()glGetFloatv()glGetFramebufferAttachmentParameteriv()glGetIntegerv()glGetProgramInfoLog()glGetShaderInfoLog()glReadPixels()isenabledkivy/graphics/opengl.pyxGL_ACTIVE_ATTRIBUTESGL_ACTIVE_ATTRIBUTE_MAX_LENGTHGL_ACTIVE_TEXTUREGL_ACTIVE_UNIFORMSGL_ACTIVE_UNIFORM_MAX_LENGTHGL_ALIASED_LINE_WIDTH_RANGEGL_ALIASED_POINT_SIZE_RANGEGL_ALPHAGL_ALPHA_BITSGL_ALWAYSGL_ARRAY_BUFFERGL_ARRAY_BUFFER_BINDINGGL_ATTACHED_SHADERSGL_BACKGL_BLENDGL_BLEND_COLORGL_BLEND_DST_ALPHAGL_BLEND_DST_RGBGL_BLEND_EQUATIONGL_BLEND_EQUATION_ALPHAGL_BLEND_EQUATION_RGBGL_BLEND_SRC_ALPHAGL_BLEND_SRC_RGBGL_BLUE_BITSGL_BOOLGL_BOOL_VEC2GL_BOOL_VEC3GL_BOOL_VEC4GL_BUFFER_SIZEGL_BUFFER_USAGEGL_BYTEGL_CCWGL_CLAMP_TO_EDGEGL_COLOR_ATTACHMENT0GL_COLOR_BUFFER_BITGL_COLOR_CLEAR_VALUEGL_COLOR_WRITEMASKGL_COMPILE_STATUSGL_COMPRESSED_TEXTURE_FORMATSGL_CULL_FACEGL_CULL_FACE_MODEGL_CURRENT_PROGRAMGL_CURRENT_VERTEX_ATTRIBGL_CWGL_DECRGL_DECR_WRAPGL_DELETE_STATUSGL_DEPTH_ATTACHMENTGL_DEPTH_BITSGL_DEPTH_BUFFER_BITGL_DEPTH_CLEAR_VALUEGL_DEPTH_COMPONENTGL_DEPTH_COMPONENT16GL_DEPTH_FUNCGL_DEPTH_RANGEGL_DEPTH_TESTGL_DEPTH_WRITEMASKGL_DITHERGL_DONT_CAREGL_DST_ALPHAGL_DST_COLORGL_DYNAMIC_DRAWGL_ELEMENT_ARRAY_BUFFERGL_ELEMENT_ARRAY_BUFFER_BINDINGGL_EQUALGL_EXTENSIONSGL_FALSEGL_FASTESTGL_FLOATGL_FLOAT_MAT2GL_FLOAT_MAT3GL_FLOAT_MAT4GL_FLOAT_VEC2GL_FLOAT_VEC3GL_FLOAT_VEC4GL_FRAGMENT_SHADERGL_FRAMEBUFFERGL_FRAMEBUFFER_ATTACHMENT_OBJECT_TYPEGL_FRAMEBUFFER_ATTACHMENT_OBJECT_NAMEGL_FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVELGL_FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACEGL_FRAMEBUFFER_BINDINGGL_FRAMEBUFFER_COMPLETEGL_FRAMEBUFFER_INCOMPLETE_ATTACHMENTGL_F""RAMEBUFFER_INCOMPLETE_DIMENSIONSGL_FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENTGL_FRAMEBUFFER_UNSUPPORTEDGL_FRONTGL_FRONT_AND_BACKGL_FRONT_FACEGL_FUNC_ADDGL_FUNC_REVERSE_SUBTRACTGL_FUNC_SUBTRACTGL_GENERATE_MIPMAP_HINTGL_GEQUAL_GL_GET_SIZEGL_GREATERGL_GREEN_BITSGL_INCRGL_INCR_WRAPGL_INFO_LOG_LENGTHGL_INTGL_INT_VEC2GL_INT_VEC3GL_INT_VEC4GL_INVALID_ENUMGL_INVALID_FRAMEBUFFER_OPERATIONGL_INVALID_OPERATIONGL_INVALID_VALUEGL_INVERTGL_KEEPGL_LEQUALGL_LESSGL_LINEARGL_LINEAR_MIPMAP_LINEARGL_LINEAR_MIPMAP_NEARESTGL_LINESGL_LINE_LOOPGL_LINE_STRIPGL_LINE_WIDTHGL_LINK_STATUSGL_LUMINANCEGL_LUMINANCE_ALPHAGL_MAX_COMBINED_TEXTURE_IMAGE_UNITSGL_MAX_CUBE_MAP_TEXTURE_SIZEGL_MAX_RENDERBUFFER_SIZEGL_MAX_TEXTURE_IMAGE_UNITSGL_MAX_TEXTURE_SIZEGL_MAX_VERTEX_ATTRIBSGL_MAX_VERTEX_TEXTURE_IMAGE_UNITSGL_MAX_VIEWPORT_DIMSGL_MIRRORED_REPEATGL_NEARESTGL_NEAREST_MIPMAP_LINEARGL_NEAREST_MIPMAP_NEARESTGL_NEVERGL_NICESTGL_NONEGL_NOTEQUALGL_NO_ERRORGL_NUM_COMPRESSED_TEXTURE_FORMATSGL_ONEGL_ONE_MINUS_DST_ALPHAGL_ONE_MINUS_DST_COLORGL_ONE_MINUS_SRC_ALPHAGL_ONE_MINUS_SRC_COLORGL_OUT_OF_MEMORYGL_PACK_ALIGNMENTGL_POINTSGL_POLYGON_OFFSET_FACTORGL_POLYGON_OFFSET_FILLGL_POLYGON_OFFSET_UNITSGL_RED_BITSGL_RENDERBUFFERGL_RENDERBUFFER_ALPHA_SIZEGL_RENDERBUFFER_BINDINGGL_RENDERBUFFER_BLUE_SIZEGL_RENDERBUFFER_DEPTH_SIZEGL_RENDERBUFFER_GREEN_SIZEGL_RENDERBUFFER_HEIGHTGL_RENDERBUFFER_INTERNAL_FORMATGL_RENDERBUFFER_RED_SIZEGL_RENDERBUFFER_STENCIL_SIZEGL_RENDERBUFFER_WIDTHGL_RENDERERGL_REPEATGL_REPLACEGL_RGBGL_RGB565GL_RGB5_A1GL_RGBAGL_RGBA4GL_SAMPLER_2DGL_SAMPLER_CUBEGL_SAMPLESGL_SAMPLE_ALPHA_TO_COVERAGEGL_SAMPLE_BUFFERSGL_SAMPLE_COVERAGEGL_SAMPLE_COVERAGE_INVERTGL_SAMPLE_COVERAGE_VALUEGL_SCISSOR_BOXGL_SCISSOR_TESTGL_SHADER_BINARY_FORMATSGL_SHADER_SOURCE_LENGTHGL_SHADER_TYPEGL_SHADING_LANGUAGE_VERSIONGL_SHORTGL_SRC_ALPHAGL_SRC_ALPHA_SATURATEGL_SRC_COLORGL_STATIC_DRAWGL_STENCIL_ATTACHMENTGL_STENCIL_BACK_FAILGL_STENCIL_BACK_FUNCGL_STENCIL_BACK_PASS_DEPTH_FAILGL_STENCIL_BACK_PASS_DEPTH_PASSGL_STENCIL_BACK_REFGL_STENCIL_BACK""_VALUE_MASKGL_STENCIL_BACK_WRITEMASKGL_STENCIL_BITSGL_STENCIL_BUFFER_BITGL_STENCIL_CLEAR_VALUEGL_STENCIL_FAILGL_STENCIL_FUNCGL_STENCIL_INDEX8GL_STENCIL_PASS_DEPTH_FAILGL_STENCIL_PASS_DEPTH_PASSGL_STENCIL_REFGL_STENCIL_TESTGL_STENCIL_VALUE_MASKGL_STENCIL_WRITEMASKGL_STREAM_DRAWGL_SUBPIXEL_BITSGL_TEXTUREGL_TEXTURE0GL_TEXTURE1GL_TEXTURE10GL_TEXTURE11GL_TEXTURE12GL_TEXTURE13GL_TEXTURE14GL_TEXTURE15GL_TEXTURE16GL_TEXTURE17GL_TEXTURE18GL_TEXTURE19GL_TEXTURE2GL_TEXTURE20GL_TEXTURE21GL_TEXTURE22GL_TEXTURE23GL_TEXTURE24GL_TEXTURE25GL_TEXTURE26GL_TEXTURE27GL_TEXTURE28GL_TEXTURE29GL_TEXTURE3GL_TEXTURE30GL_TEXTURE31GL_TEXTURE4GL_TEXTURE5GL_TEXTURE6GL_TEXTURE7GL_TEXTURE8GL_TEXTURE9GL_TEXTURE_2DGL_TEXTURE_BINDING_2DGL_TEXTURE_BINDING_CUBE_MAPGL_TEXTURE_CUBE_MAPGL_TEXTURE_CUBE_MAP_NEGATIVE_XGL_TEXTURE_CUBE_MAP_NEGATIVE_YGL_TEXTURE_CUBE_MAP_NEGATIVE_ZGL_TEXTURE_CUBE_MAP_POSITIVE_XGL_TEXTURE_CUBE_MAP_POSITIVE_YGL_TEXTURE_CUBE_MAP_POSITIVE_ZGL_TEXTURE_MAG_FILTERGL_TEXTURE_MIN_FILTERGL_TEXTURE_WRAP_SGL_TEXTURE_WRAP_TGL_TRIANGLESGL_TRIANGLE_FANGL_TRIANGLE_STRIPGL_TRUEGL_UNPACK_ALIGNMENTGL_UNSIGNED_BYTEGL_UNSIGNED_INTGL_UNSIGNED_SHORTGL_UNSIGNED_SHORT_4_4_4_4GL_UNSIGNED_SHORT_5_5_5_1GL_UNSIGNED_SHORT_5_6_5GL_VALIDATE_STATUSGL_VENDORGL_VERSIONGL_VERTEX_ATTRIB_ARRAY_BUFFER_BINDINGGL_VERTEX_ATTRIB_ARRAY_ENABLEDGL_VERTEX_ATTRIB_ARRAY_NORMALIZEDGL_VERTEX_ATTRIB_ARRAY_POINTERGL_VERTEX_ATTRIB_ARRAY_SIZEGL_VERTEX_ATTRIB_ARRAY_STRIDEGL_VERTEX_ATTRIB_ARRAY_TYPEGL_VERTEX_SHADERGL_VIEWPORTGL_ZEROLogger__Pyx_PyDict_NextRefallowedalphaasyncio.coroutinesattachmentblueborderbufferbuffersbufsizec_sourcecapcline_in_tracebackcountddatadfactordstAlphadstRGBfacefactorfailfirstflagformatframebufferframebuffersfunc__func__glActiveTextureglAttachShaderglBindAttribLocationglBindBufferglBindFramebufferglBindRenderbufferglBindTextureglBlendColorglBlendEquationglBlendEquationSeparateglBlendFuncglBlendFuncSeparateglBufferDataglBufferSubDataglCheckFramebufferStatusglClearglClearColorglClearStencilglColorMaskglCompil""eShaderglCompressedTexImage2DglCompressedTexSubImage2DglCopyTexImage2DglCopyTexSubImage2DglCreateProgramglCreateShaderglCullFaceglDeleteBuffersglDeleteFramebuffersglDeleteProgramglDeleteRenderbuffersglDeleteShaderglDeleteTexturesglDepthFuncglDepthMaskglDetachShaderglDisableglDisableVertexAttribArrayglDrawArraysglDrawElementsglEnableglEnableVertexAttribArrayglFinishglFlushglFramebufferRenderbufferglFramebufferTexture2DglFrontFaceglGenBuffersglGenFramebuffersglGenRenderbuffersglGenTexturesglGenerateMipmapglGetActiveAttribglGetActiveUniformglGetAttachedShadersglGetAttribLocationglGetBooleanvglGetBufferParameterivglGetErrorglGetFloatvglGetFramebufferAttachmentParameterivglGetIntegervglGetProgramInfoLogglGetProgramivglGetRenderbufferParameterivglGetShaderInfoLogglGetShaderPrecisionFormatglGetShaderSourceglGetShaderivglGetStringglGetTexParameterfvglGetTexParameterivglGetUniformLocationglGetUniformfvglGetUniformivglGetVertexAttribPointervglGetVertexAttribfvglGetVertexAttribivglHintglIsBufferglIsEnabledglIsFramebufferglIsProgramglIsRenderbufferglIsShaderglIsTextureglLineWidthglLinkProgramglPixelStoreiglPolygonOffsetglReadPixelsglReleaseShaderCompilerglRenderbufferStorageglSampleCoverageglScissorglShaderBinaryglShaderSourceglStencilFuncglStencilFuncSeparateglStencilMaskglStencilMaskSeparateglStencilOpglStencilOpSeparateglTexImage2DglTexParameterfglTexParameterfvglTexParameteriglTexParameterivglTexSubImage2DglUniform1fglUniform1fvglUniform1iglUniform1ivglUniform2fglUniform2fvglUniform2iglUniform2ivglUniform3fglUniform3fvglUniform3iglUniform3ivglUniform4fglUniform4fvglUniform4iglUniform4ivglUniformMatrix2fvglUniformMatrix3fvglUniformMatrix4fvglUseProgramglValidateProgramglVertexAttrib1fglVertexAttrib1fvglVertexAttrib2fglVertexAttrib2fvglVertexAttrib3fglVertexAttrib3fvglVertexAttrib4fglVertexAttrib4fvglVertexAttribPointerglViewportgl_init_symbolsgl_typegreenheightiidignoredimageSizeindexindicesindxinfologinternalformatinvert_is_coroutineitemskivy.graphics.openglkivy.loggerlevel""location__main__maskmaxcountmodemodeAlphamodeRGB__module__nname__name__normalizedoffsetoutp_infologp_namep_sourcep_stringparamparamspixelspnamepopprecisiontypeprogramptrpy_pixels__qualname__redrefrenderbufferrenderbuffersrenderbuffertargetresults__set_name__setdefaultsfactorshadershadersshadertypesizesourcesrcAlphasrcRGBstridetarget__test__textargettexturetexturestransposetypeunitsusagevaluevalueswwidthxxoffsetyyoffsetzzfailzpassPyObject *(int __pyx_skip_dispatch, struct __pyx_opt_args_4kivy_8graphics_3cgl_cgl_init *__pyx_optional_args)\000cgl_init\200\001\360\010\000\005\010\200{\220!\2201\200\001\360\010\000\005\010\200|\2201\220A\200\001\360\010\000\005\010\200|\2201\220E\230\027\240\006\240a\200\001\360\010\000\005\010\200|\2201\220F\230'\240\021\200\001\360\010\000\005\010\320\007\033\2301\230F\240&\250\007\250q\200\001\360\010\000\005\033\230!\330\004\007\320\007\033\2301\230G\2407\250!\2501\330\004\013\2101\200\001\360\010\000\005\031\230\001\330\004\007\320\007\033\2301\230G\2407\250!\2501\330\004\013\2101\200\001\360\010\000\005\033\230!\330\004\007\320\007\033\2301\230H\240G\2501\250A\330\004\013\2101\200\001\360\010\000\005\031\230\001\330\004\007\320\007\033\2301\230H\240G\2501\250A\330\004\013\2101\200\001\360\010\000\005\010\320\007\033\2301\230H\240G\2509\260I\270S\300\003\3007\310!\200\001\360\010\000\005\010\320\007\033\2301\230H\240H\250J\260a\200\001\360\010\000\005\010\200|\2201\220I\230Q\200\001\360\010\000\005\010\200|\2201\220J\230a\200\001\360\010\000\005\010\200|\2201\220J\230c\240\021\200\001\360\010\000\005\010\200|\2201\220J\230c\240\023\240A\200\001\360\014\000\005\010\200|\2201\220J\230c\240\023\240C\240q\200\001\360\010\000\005\010\200|\2201\220J\230c\240\023\240C\240q\200\001\360\010\000\005\010\320\007\"\240!\2401\200\001\360\014\000\005\010\320\007!\240\021\240(\250'\260\031\270)\3001\330'/\250x\260{\300(\310!\200\001\360\010\000\005$\320#3\2601\330\004\007\200\177\220a\220x\230s\240!\240:\250Q\200\001\360\010\000\005\014\2103\320""\016#\2401\240I\250X\260Q\200\001\360\014\000\005\014\2103\320\016\"\240!\2409\250H\260A\200\001\360\010\000\005\014\2103\320\016\036\230a\230q\200\001\360\010\000\005\014\2103\320\016\037\230q\240\001\200\001\360\010\000\005\010\200{\220!\2203\220c\230\027\240\001\200\001\360\014\000\005\014\2103\210k\230\021\200\001\360\010\000\005\014\2103\210k\230\021\230!\200\001\360\010\000\005\014\2103\210l\230!\2301\200\001\360\010\000\005\010\320\007!\240\021\240(\250,\3206J\310!\200\001\360\020\000\005\014\2107\220$\220h\230a\330\004\013\2105\220\003\2201\340\004\034\230A\360\010\000\005\014\2106\220\022\2207\230\"\230A\330\004\007\200w\210c\220\021\330\010\020\220\001\340\010\020\220\001\330\004\013\2108\2206\230\021\230!\330\004\007\200u\210C\210q\330\010\016\210k\230\021\230!\340\004\007\200~\220Q\320\026)\250\021\330\004\007\200}\220A\220S\230\003\2307\240(\250(\260&\270\001\330\004\005\330\010\024\220D\230\002\230!\340\010\014\210A\210Q\340\004\013\2101\200\001\360\010\000\005\010\320\007\032\230!\2308\2401\200\001\360\010\000\005\010\320\007\030\230\001\230\030\240\027\320(8\270\003\2703\270g\300X\310Q\200\001\360\014\000\005\032\230\021\330\004\033\2309\240A\240Q\330\004\007\320\007\034\230A\230Y\240g\250Q\250g\260Q\330\004\013\2107\220!\2207\230!\200\001\360\010\000\005\010\200}\220A\220Q\200\001\360\010\000\005\010\320\007\034\230A\230S\240\n\250(\260!\200\001\360\010\000\005\010\200}\220A\220U\230'\240\026\240q\200\001\360\010\000\005\010\200}\220A\220V\2307\240!\200\001\360\010\000\005\010\200}\220A\220X\230Q\200\001\360\010\000\005\010\200}\220A\220X\230V\2408\2506\260\021\200\001\360\014\000\005\031\230\001\330\004\007\320\007$\240A\240X\250W\260A\260Q\330\004\013\2101\200\001\360\014\000\005\010\200}\220A\220X\230W\320$4\260G\2708\3001\330\032\"\240&\250\n\260(\270!\200\001\360\010\000\005\010\320\007\034\230A\230Y\240g\250X\260Q\200\001\360\n\000\005\n\210\023\320\014\034\230A\330\004\013\2101\200\001\360\010\000\005\010\320\007\030\230\001\230\023\230J\240h""\250a\320\000\034\230L\250\001\330\004\014\210A\210Y\220a\200\001\360\n\000\005\n\210\023\210O\2301\230A\330\004\013\2101\200\001\360\010\000\005\026\220Q\330\004\007\200z\220\021\220)\2301\330\010\016\210i\220y\240\007\240q\330\t\023\2201\220I\230Q\330\010\016\210i\220~\240Q\340\010\016\210i\220q\230\001\330\004\007\200\177\220a\220v\230W\240F\250!\200\001\360\n\000\005\026\220Q\330\004\007\200z\220\021\220&\230\001\330\010\016\210i\220y\240\007\240q\330\t\023\2201\220F\230!\330\010\016\210i\220~\240Q\340\010\016\210i\220q\230\001\330\004\007\320\007\035\230Q\230g\240V\2506\260\034\270X\300Q\200\001\360\010\000\005\010\200~\220Q\220a\200\001\360\010\000\005\010\320\007\035\230Q\230c\240\032\2508\2601\200\001\360\010\000\005\010\320\007\035\230Q\230f\240A\200\001\360\010\000\005\010\200~\220Q\220f\230E\240\021\200\001\360\010\000\005\010\320\007\035\230Q\230f\240F\250%\250q\200\001\360\010\000\005\010\200~\220Q\220g\230Q\200\001\360\014\000\005\032\230\031\240&\250\001\250\034\260Q\260g\270R\270~\310R\310q\330\004\007\200w\210c\220\021\330\010\016\210k\230\021\230!\330\004\007\200~\220Q\220g\230Q\330\004\017\210q\220\006\220a\220s\230$\230e\2406\250\021\250,\260a\260q\330\004\010\210\001\210\021\330\004\013\2101\200\001\360\014\000\005\036\230]\250&\260\001\260\034\270Q\270g\300R\300q\330\004\007\200w\210c\220\021\330\010\016\210k\230\021\230!\330\004\007\200~\220Q\220g\230Q\330\004\017\210q\220\006\220a\220s\230$\230e\2406\250\021\250,\260a\260q\330\004\010\210\001\210\021\330\004\013\2101\200\001\360\014\000\005\032\230\031\240&\250\001\250\034\260Q\260g\270R\270q\330\004\007\200w\210c\220\021\330\010\016\210k\230\021\230!\330\004\007\320\007-\250Q\250h\260l\300'\310\021\330\004\017\210q\220\006\220a\220s\230$\230e\2406\250\021\250,\260a\260q\330\004\010\210\001\210\021\330\004\013\2101\200\001\360\014\000\005\032\230\031\240&\250\001\250\034\260Q\260g\270R\270q\330\004\007\200w\210c\220\021\330\010\016\210k\230\021\230!\330\004\007\320\007\036\230a\230x\240w\250a""\330\004\017\210q\220\006\220a\220s\230$\230e\2406\250\021\250,\260a\260q\330\004\010\210\001\210\021\330\004\013\2101\200\001\360\010\000\005\010\320\007\035\230Q\230h\320&6\260g\270Q\200\001\360\010\000\005\010\200~\220Q\220h\230a\200\001\360\014\000\005\031\230\001\330\004\007\200~\220Q\220h\230g\240Q\240a\330\004\013\2101\200\001\360\n\000\005\016\210S\320\020)\250\021\250!\330\004\013\2101\200\001\360\010\000\005\010\320\007\032\230!\230:\240W\250K\260{\300(\310!\200\001\360\014\000\005\026\220Y\230a\230q\330\004\007\320\007\032\230!\2303\230a\330\004\013\2107\220!\2203\220a\200\001\360\014\000\005\026\220Y\230a\230q\330\004\007\200}\220A\220S\230\001\330\004\013\2107\220!\2203\220a\200\001\360\014\000\005\026\220Y\230a\230q\330\004\007\320\007\031\230\021\230#\230Q\330\004\013\2107\220!\2203\220a\200\001\360\014\000\005\026\220Y\230a\230q\330\004\007\200~\220Q\220c\230\021\330\004\013\2107\220!\2203\220a\200\001\360\010\000\005\010\320\007\031\230\021\230(\240!\200\001\360\010\000\005\010\320\007!\240\021\240!\200\001\360\010\000\005\010\320\007\030\230\001\230\021\200\001\360\014\000\005\013\210!\200\001\360\010\000\005\010\320\007\030\230\001\230\027\240\001\200\001\360\016\000\005\013\210!\200\001\360\010\000\005\010\320\007\031\230\021\230!\200\001\360\014\000\005\027\220a\330\004\032\230!\360\006\000\005\014\210:\220V\2301\230O\2502\250Q\330\004\007\200u\210C\210q\330\010\016\210k\230\021\230!\330\004\007\320\007\031\230\021\230)\2407\250%\250v\260Q\260f\270A\270Y\300a\330\004\r\210X\220Q\330\004\010\210\001\210\021\330\004\013\2108\2206\230\021\200\001\360\014\000\005\027\220a\330\004\032\230!\360\006\000\005\014\210:\220V\2301\230O\2502\250Q\330\004\007\200u\210C\210q\330\010\016\210k\230\021\230!\330\004\007\320\007\032\230!\2309\240G\2505\260\006\260a\260v\270Q\270i\300q\330\004\r\210X\220Q\330\004\010\210\001\210\021\330\004\013\2108\2206\230\021\200\001\360\014\000\005\027\220a\360\006\000\005\016\210Z\220v\230Q\230o\250R\250q\330\004\007\200w\210c""\220\021\330\010\016\210k\230\021\230!\330\004\007\320\007\031\230\021\230(\240'\250\021\250&\260\001\330\004\017\210x\220q\330\004\010\210\001\210\021\330\004\013\2101\200\001\360\014\000\005\027\220a\360\006\000\005\017\210j\230\006\230a\230\177\250b\260\001\330\004\007\200x\210s\220!\330\010\016\210k\230\021\230!\330\004\007\320\007\033\2301\230I\240V\2501\250F\260!\330\004\020\220\010\230\001\330\004\010\210\001\210\021\330\004\013\2101\200\001\360\014\000\005\027\220a\360\006\000\005\017\210j\230\006\230a\230\177\250b\260\001\330\004\007\200x\210s\220!\330\010\016\210k\230\021\230!\330\004\007\320\007\032\230!\2308\2406\250\021\250&\260\001\330\004\020\220\010\230\001\330\004\010\210\001\210\021\330\004\013\2101\200\001\360\010\000\005\010\200\177\220a\220q\200\001\360\010\000\005\010\320\007\036\230a\230x\240|\260;\270i\300q\200\001\360\014\000\005\010\320\007\036\230a\230x\240w\320.>\270a\330$,\250H\260K\270x\300q\200\001\360\010\000\005\010\200\177\220a\220y\240\001\200\001\360\010\000\005\033\230!\330\004\007\200\177\220a\220y\240\n\250!\2501\330\004\013\2101\200\001\360\010\000\005\031\230\001\330\004\007\200\177\220a\220y\240\n\250!\2501\330\004\013\2101\200\001\360\014\000\005\031\230\001\330\004\007\200\177\220a\220y\240\007\240q\250\001\330\004\013\2101\200\001\360\014\000\005\034\230;\240f\250A\250\\\270\021\270'\300\022\3001\330\004\007\200w\210c\220\021\330\010\016\210k\230\021\230!\330\004\007\200|\2201\220G\2301\330\004\017\210q\220\006\220a\220s\230$\230e\2406\250\021\250,\260a\260q\330\004\010\210\001\210\021\330\004\013\2101\200\001\360\010\000\005\010\320\007\027\220q\230\001\200\001\360\010\000\005\010\320\007\037\230q\240\t\250\021\200\001\360\010\000\005\010\320\007\027\220q\230\010\240\001\200\001\360\010\000\005\010\320\007\030\230\001\230\026\230q\200\001\360\010\000\005\010\320\007\027\220q\230\003\230:\240X\250Q\200\001\360\010\000\005\010\320\007\027\220q\230\010\240\010\250\006\250h\260a\200\001\360\010\000\005\010\320\007\027\220q""\230\010\240\007\240q\200\001\360\014\000\005\010\320\007\027\220q\230\010\240\007\240y\260\t\270\027\300\001\330\035%\240V\250:\260X\270Q\200\001\360\010\000\005\010\320\007\030\230\001\230\026\230s\240!\200\001\360\010\000\005\010\320\007\030\230\001\230\026\230s\240#\240Q\200\001\360\010\000\005\010\320\007\030\230\001\230\026\230s\240#\240S\250\001\200\001\360\010\000\005\010\200w\210a\210x\220q\200\001\360\010\000\005\010\200x\210q\220\001\200\001\360\010\000\005\010\200x\210q\200\001\360\016\000\005\020\210x\220s\230,\240a\240q\330\004\013\2101\200\001\360\010\000\005\010\200y\220\001\220\021\200\001\360\010\000\005\010\200y\220\001\200\001\360\010\000\005\010\200z\220\021\220!\200\001\360\010\000\005\010\200z\220\021\220#\220S\230\007\230q__pyx_t_4kivy_8graphics_3cgl_GLES2_Context *\000double\000int\000\000unsigned long\000cgl\000pi\000kivy_opengl_es2\000verify_gl_main_thread\000initialized_tid";
    PyObject *data = NULL;
    CYTHON_UNUSED_VAR(__Pyx_DecompressString);
    #endif
    PyObject **stringtab = __pyx_mstate->__pyx_string_tab;
    Py_ssize_t pos = 0;
    for (int i = 0; i < 560; i++) {
      Py_ssize_t bytes_length = index[i].length;
      PyObject *string = PyUnicode_DecodeUTF8(bytes + pos, bytes_length, NULL);
      if (likely(string) && i >= 21) PyUnicode_InternInPlace(&string);
      if (unlikely(!string)) {
        Py_XDECREF(data);
        __PYX_ERR(0, 1, __pyx_L1_error)
      }
      stringtab[i] = string;
      pos += bytes_length;
    }
    for (int i = 560; i < 668; i++) {
      Py_ssize_t bytes_length = index[i].length;
      PyObject *string = PyBytes_FromStringAndSize(bytes + pos, bytes_length);
      stringtab[i] = string;
      pos += bytes_length;
      if (unlikely(!string)) {
        Py_XDECREF(data);
        __PYX_ERR(0, 1, __pyx_L1_error)
      }
    }
    Py_XDECREF(data);
    for (Py_ssize_t i = 0; i < 668; i++) {
      if (unlikely(PyObject_Hash(stringtab[i]) == -1)) {
        __PYX_ERR(0, 1, __pyx_L1_error)
      }
    }
    #if CYTHON_IMMORTAL_CONSTANTS
    {
      PyObject **table = stringtab + 560;
      for (Py_ssize_t i=0; i<108; ++i) {
        #if CYTHON_COMPILING_IN_CPYTHON_FREETHREADING
        Py_SET_REFCNT(table[i], _Py_IMMORTAL_REFCNT_LOCAL);
        #else
        Py_SET_REFCNT(table[i], _Py_IMMORTAL_INITIAL_REFCNT);
        #endif
      }
    }
    #endif
  }
  {
    PyObject **numbertab = __pyx_mstate->__pyx_number_tab + 0;
    int8_t const cint_constants_1[] = {1,2,4};
    for (int i = 0; i < 3; i++) {
      numbertab[i] = PyLong_FromLong(cint_constants_1[i - 0]);
      if (unlikely(!numbertab[i])) __PYX_ERR(0, 1, __pyx_L1_error)
    }
  }
  #if CYTHON_IMMORTAL_CONSTANTS
  {
    PyObject **table = __pyx_mstate->__pyx_number_tab;
    for (Py_ssize_t i=0; i<3; ++i) {
      #if CYTHON_COMPILING_IN_CPYTHON_FREETHREADING
      Py_SET_REFCNT(table[i], _Py_IMMORTAL_REFCNT_LOCAL);
      #else
      Py_SET_REFCNT(table[i], _Py_IMMORTAL_INITIAL_REFCNT);
      #endif
    }
  }
  #endif
  return 0;
  __pyx_L1_error:;
  return -1;
}
/* #### Code section: init_codeobjects ### */
typedef struct {
    unsigned int argcount : 4;
    unsigned int num_posonly_args : 1;
    unsigned int num_kwonly_args : 1;
    unsigned int nlocals : 4;
    unsigned int flags : 10;
    unsigned int first_line : 11;
} __Pyx_PyCode_New_function_description;
/* NewCodeObj.proto */
static PyObject* __Pyx_PyCode_New(
        const __Pyx_PyCode_New_function_description descr,
        PyObject * const *varnames,
        PyObject *filename,
        PyObject *funcname,
        PyObject *line_table,
        PyObject *tuple_dedup_map
);


static int __Pyx_CreateCodeObjects(__pyx_mstatetype *__pyx_mstate) {
  PyObject* tuple_dedup_map = PyDict_New();
  if (unlikely(!tuple_dedup_map)) return -1;
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 425};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_texture};
    __pyx_mstate_global->__pyx_codeobj_tab[0] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_kivy_graphics_opengl_pyx, __pyx_mstate->__pyx_n_u_glActiveTexture, __pyx_mstate->__pyx_kp_b_iso88591_q, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[0])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 2, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 431};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_program, __pyx_mstate->__pyx_n_u_shader};
    __pyx_mstate_global->__pyx_codeobj_tab[1] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_kivy_graphics_opengl_pyx, __pyx_mstate->__pyx_n_u_glAttachShader, __pyx_mstate->__pyx_kp_b_iso88591_ay, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[1])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {3, 0, 0, 3, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 437};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_program, __pyx_mstate->__pyx_n_u_index, __pyx_mstate->__pyx_n_u_name};
    __pyx_mstate_global->__pyx_codeobj_tab[2] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_kivy_graphics_opengl_pyx, __pyx_mstate->__pyx_n_u_glBindAttribLocation, __pyx_mstate->__pyx_kp_b_iso88591_AYgXQ, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[2])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 2, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 443};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_target, __pyx_mstate->__pyx_n_u_buffer};
    __pyx_mstate_global->__pyx_codeobj_tab[3] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_kivy_graphics_opengl_pyx, __pyx_mstate->__pyx_n_u_glBindBuffer, __pyx_mstate->__pyx_kp_b_iso88591_AXQ, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[3])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 2, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 449};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_target, __pyx_mstate->__pyx_n_u_framebuffer};
    __pyx_mstate_global->__pyx_codeobj_tab[4] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_kivy_graphics_opengl_pyx, __pyx_mstate->__pyx_n_u_glBindFramebuffer, __pyx_mstate->__pyx_kp_b_iso88591__3, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[4])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 2, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 455};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_target, __pyx_mstate->__pyx_n_u_renderbuffer};
    __pyx_mstate_global->__pyx_codeobj_tab[5] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_kivy_graphics_opengl_pyx, __pyx_mstate->__pyx_n_u_glBindRenderbuffer, __pyx_mstate->__pyx_kp_b_iso88591_81, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[5])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 2, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 461};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_target, __pyx_mstate->__pyx_n_u_texture};
    __pyx_mstate_global->__pyx_codeobj_tab[6] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_kivy_graphics_opengl_pyx, __pyx_mstate->__pyx_n_u_glBindTexture, __pyx_mstate->__pyx_kp_b_iso88591_Qha, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[6])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {4, 0, 0, 4, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 467};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_red, __pyx_mstate->__pyx_n_u_green, __pyx_mstate->__pyx_n_u_blue, __pyx_mstate->__pyx_n_u_alpha};
    __pyx_mstate_global->__pyx_codeobj_tab[7] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_kivy_graphics_opengl_pyx, __pyx_mstate->__pyx_n_u_glBlendColor, __pyx_mstate->__pyx_kp_b_iso88591_AU_q, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[7])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 473};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_mode};
    __pyx_mstate_global->__pyx_codeobj_tab[8] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_kivy_graphics_opengl_pyx, __pyx_mstate->__pyx_n_u_glBlendEquation, __pyx_mstate->__pyx_kp_b_iso88591_q, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[8])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 2, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 479};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_modeRGB, __pyx_mstate->__pyx_n_u_modeAlpha};
    __pyx_mstate_global->__pyx_codeobj_tab[9] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_kivy_graphics_opengl_pyx, __pyx_mstate->__pyx_n_u_glBlendEquationSeparate, __pyx_mstate->__pyx_kp_b_iso88591_q_2, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[9])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 2, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 485};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_sfactor, __pyx_mstate->__pyx_n_u_dfactor};
    __pyx_mstate_global->__pyx_codeobj_tab[10] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_kivy_graphics_opengl_pyx, __pyx_mstate->__pyx_n_u_glBlendFunc, __pyx_mstate->__pyx_kp_b_iso88591_1IQ, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[10])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {4, 0, 0, 4, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 491};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_srcRGB, __pyx_mstate->__pyx_n_u_dstRGB, __pyx_mstate->__pyx_n_u_srcAlpha, __pyx_mstate->__pyx_n_u_dstAlpha};
    __pyx_mstate_global->__pyx_codeobj_tab[11] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_kivy_graphics_opengl_pyx, __pyx_mstate->__pyx_n_u_glBlendFuncSeparate, __pyx_mstate->__pyx_kp_b_iso88591_1HHJa, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[11])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {4, 0, 0, 4, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 497};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_target, __pyx_mstate->__pyx_n_u_size, __pyx_mstate->__pyx_n_u_data, __pyx_mstate->__pyx_n_u_usage};
    __pyx_mstate_global->__pyx_codeobj_tab[12] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_kivy_graphics_opengl_pyx, __pyx_mstate->__pyx_n_u_glBufferData, __pyx_mstate->__pyx_kp_b_iso88591_AXV86, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[12])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {4, 0, 0, 4, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 503};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_target, __pyx_mstate->__pyx_n_u_offset, __pyx_mstate->__pyx_n_u_size, __pyx_mstate->__pyx_n_u_data};
    __pyx_mstate_global->__pyx_codeobj_tab[13] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_kivy_graphics_opengl_pyx, __pyx_mstate->__pyx_n_u_glBufferSubData, __pyx_mstate->__pyx_kp_b_iso88591_q_ha, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[13])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 2, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 509};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_target, __pyx_mstate->__pyx_n_u_result};
    __pyx_mstate_global->__pyx_codeobj_tab[14] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_kivy_graphics_opengl_pyx, __pyx_mstate->__pyx_n_u_glCheckFramebufferStatus, __pyx_mstate->__pyx_kp_b_iso88591_S_1, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[14])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 517};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_mask};
    __pyx_mstate_global->__pyx_codeobj_tab[15] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_kivy_graphics_opengl_pyx, __pyx_mstate->__pyx_n_u_glClear, __pyx_mstate->__pyx_kp_b_iso88591_xq, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[15])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {4, 0, 0, 4, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 523};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_red, __pyx_mstate->__pyx_n_u_green, __pyx_mstate->__pyx_n_u_blue, __pyx_mstate->__pyx_n_u_alpha};
    __pyx_mstate_global->__pyx_codeobj_tab[16] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_kivy_graphics_opengl_pyx, __pyx_mstate->__pyx_n_u_glClearColor, __pyx_mstate->__pyx_kp_b_iso88591_AU_q, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[16])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 537};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_s};
    __pyx_mstate_global->__pyx_codeobj_tab[17] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_kivy_graphics_opengl_pyx, __pyx_mstate->__pyx_n_u_glClearStencil, __pyx_mstate->__pyx_kp_b_iso88591_aq, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[17])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {4, 0, 0, 4, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 543};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_red, __pyx_mstate->__pyx_n_u_green, __pyx_mstate->__pyx_n_u_blue, __pyx_mstate->__pyx_n_u_alpha};
    __pyx_mstate_global->__pyx_codeobj_tab[18] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_kivy_graphics_opengl_pyx, __pyx_mstate->__pyx_n_u_glColorMask, __pyx_mstate->__pyx_kp_b_iso88591_1E_a, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[18])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 549};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_shader};
    __pyx_mstate_global->__pyx_codeobj_tab[19] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_kivy_graphics_opengl_pyx, __pyx_mstate->__pyx_n_u_glCompileShader, __pyx_mstate->__pyx_kp_b_iso88591_q, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[19])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {8, 0, 0, 8, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 555};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_target, __pyx_mstate->__pyx_n_u_level, __pyx_mstate->__pyx_n_u_internalformat, __pyx_mstate->__pyx_n_u_width, __pyx_mstate->__pyx_n_u_height, __pyx_mstate->__pyx_n_u_border, __pyx_mstate->__pyx_n_u_imageSize, __pyx_mstate->__pyx_n_u_data};
    __pyx_mstate_global->__pyx_codeobj_tab[20] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_kivy_graphics_opengl_pyx, __pyx_mstate->__pyx_n_u_glCompressedTexImage2D, __pyx_mstate->__pyx_kp_b_iso88591_axw_a_HKxq, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[20])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {9, 0, 0, 9, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 564};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_target, __pyx_mstate->__pyx_n_u_level, __pyx_mstate->__pyx_n_u_xoffset, __pyx_mstate->__pyx_n_u_yoffset, __pyx_mstate->__pyx_n_u_width, __pyx_mstate->__pyx_n_u_height, __pyx_mstate->__pyx_n_u_format, __pyx_mstate->__pyx_n_u_imageSize, __pyx_mstate->__pyx_n_u_data};
    __pyx_mstate_global->__pyx_codeobj_tab[21] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_kivy_graphics_opengl_pyx, __pyx_mstate->__pyx_n_u_glCompressedTexSubImage2D, __pyx_mstate->__pyx_kp_b_iso88591_1_x, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[21])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {8, 0, 0, 8, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 573};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_target, __pyx_mstate->__pyx_n_u_level, __pyx_mstate->__pyx_n_u_internalformat, __pyx_mstate->__pyx_n_u_x, __pyx_mstate->__pyx_n_u_y, __pyx_mstate->__pyx_n_u_width, __pyx_mstate->__pyx_n_u_height, __pyx_mstate->__pyx_n_u_border};
    __pyx_mstate_global->__pyx_codeobj_tab[22] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_kivy_graphics_opengl_pyx, __pyx_mstate->__pyx_n_u_glCopyTexImage2D, __pyx_mstate->__pyx_kp_b_iso88591_8_3gXQ, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[22])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {8, 0, 0, 8, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 579};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_target, __pyx_mstate->__pyx_n_u_level, __pyx_mstate->__pyx_n_u_xoffset, __pyx_mstate->__pyx_n_u_yoffset, __pyx_mstate->__pyx_n_u_x, __pyx_mstate->__pyx_n_u_y, __pyx_mstate->__pyx_n_u_width, __pyx_mstate->__pyx_n_u_height};
    __pyx_mstate_global->__pyx_codeobj_tab[23] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_kivy_graphics_opengl_pyx, __pyx_mstate->__pyx_n_u_glCopyTexSubImage2D, __pyx_mstate->__pyx_kp_b_iso88591_1HG9IS_7, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[23])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {0, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 585};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_id};
    __pyx_mstate_global->__pyx_codeobj_tab[24] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_kivy_graphics_opengl_pyx, __pyx_mstate->__pyx_n_u_glCreateProgram, __pyx_mstate->__pyx_kp_b_iso88591_A_1, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[24])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 2, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 593};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_type, __pyx_mstate->__pyx_n_u_id};
    __pyx_mstate_global->__pyx_codeobj_tab[25] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_kivy_graphics_opengl_pyx, __pyx_mstate->__pyx_n_u_glCreateShader, __pyx_mstate->__pyx_kp_b_iso88591_O1A_1, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[25])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 601};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_mode};
    __pyx_mstate_global->__pyx_codeobj_tab[26] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_kivy_graphics_opengl_pyx, __pyx_mstate->__pyx_n_u_glCullFace, __pyx_mstate->__pyx_kp_b_iso88591_1, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[26])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 2, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 607};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_n, __pyx_mstate->__pyx_n_u_buffers};
    __pyx_mstate_global->__pyx_codeobj_tab[27] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_kivy_graphics_opengl_pyx, __pyx_mstate->__pyx_n_u_glDeleteBuffers, __pyx_mstate->__pyx_kp_b_iso88591_q_XQ, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[27])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 2, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 613};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_n, __pyx_mstate->__pyx_n_u_framebuffers};
    __pyx_mstate_global->__pyx_codeobj_tab[28] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_kivy_graphics_opengl_pyx, __pyx_mstate->__pyx_n_u_glDeleteFramebuffers, __pyx_mstate->__pyx_kp_b_iso88591_AS, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[28])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 619};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_program};
    __pyx_mstate_global->__pyx_codeobj_tab[29] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_kivy_graphics_opengl_pyx, __pyx_mstate->__pyx_n_u_glDeleteProgram, __pyx_mstate->__pyx_kp_b_iso88591_q, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[29])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 2, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 625};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_n, __pyx_mstate->__pyx_n_u_renderbuffers};
    __pyx_mstate_global->__pyx_codeobj_tab[30] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_kivy_graphics_opengl_pyx, __pyx_mstate->__pyx_n_u_glDeleteRenderbuffers, __pyx_mstate->__pyx_kp_b_iso88591_Qc_81, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[30])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 631};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_shader};
    __pyx_mstate_global->__pyx_codeobj_tab[31] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_kivy_graphics_opengl_pyx, __pyx_mstate->__pyx_n_u_glDeleteShader, __pyx_mstate->__pyx_kp_b_iso88591_aq, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[31])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 2, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 637};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_n, __pyx_mstate->__pyx_n_u_textures};
    __pyx_mstate_global->__pyx_codeobj_tab[32] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_kivy_graphics_opengl_pyx, __pyx_mstate->__pyx_n_u_glDeleteTextures, __pyx_mstate->__pyx_kp_b_iso88591_Jha, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[32])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 643};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_func};
    __pyx_mstate_global->__pyx_codeobj_tab[33] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_kivy_graphics_opengl_pyx, __pyx_mstate->__pyx_n_u_glDepthFunc, __pyx_mstate->__pyx_kp_b_iso88591_1A, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[33])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 649};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_flag};
    __pyx_mstate_global->__pyx_codeobj_tab[34] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_kivy_graphics_opengl_pyx, __pyx_mstate->__pyx_n_u_glDepthMask, __pyx_mstate->__pyx_kp_b_iso88591_1A, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[34])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 2, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 661};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_program, __pyx_mstate->__pyx_n_u_shader};
    __pyx_mstate_global->__pyx_codeobj_tab[35] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_kivy_graphics_opengl_pyx, __pyx_mstate->__pyx_n_u_glDetachShader, __pyx_mstate->__pyx_kp_b_iso88591_ay, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[35])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 667};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_cap};
    __pyx_mstate_global->__pyx_codeobj_tab[36] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_kivy_graphics_opengl_pyx, __pyx_mstate->__pyx_n_u_glDisable, __pyx_mstate->__pyx_kp_b_iso88591_z_2, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[36])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 673};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_index};
    __pyx_mstate_global->__pyx_codeobj_tab[37] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_kivy_graphics_opengl_pyx, __pyx_mstate->__pyx_n_u_glDisableVertexAttribArray, __pyx_mstate->__pyx_kp_b_iso88591_1_2, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[37])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {3, 0, 0, 3, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 679};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_mode, __pyx_mstate->__pyx_n_u_first, __pyx_mstate->__pyx_n_u_count};
    __pyx_mstate_global->__pyx_codeobj_tab[38] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_kivy_graphics_opengl_pyx, __pyx_mstate->__pyx_n_u_glDrawArrays, __pyx_mstate->__pyx_kp_b_iso88591_AV7, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[38])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {4, 0, 0, 5, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 685};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_mode, __pyx_mstate->__pyx_n_u_count, __pyx_mstate->__pyx_n_u_type, __pyx_mstate->__pyx_n_u_indices, __pyx_mstate->__pyx_n_u_ptr};
    __pyx_mstate_global->__pyx_codeobj_tab[39] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_kivy_graphics_opengl_pyx, __pyx_mstate->__pyx_n_u_glDrawElements, __pyx_mstate->__pyx_kp_b_iso88591_Q_z_1_iy_q_1IQ_i_Q_iq_avWF, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[39])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 698};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_cap};
    __pyx_mstate_global->__pyx_codeobj_tab[40] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_kivy_graphics_opengl_pyx, __pyx_mstate->__pyx_n_u_glEnable, __pyx_mstate->__pyx_kp_b_iso88591_y_2, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[40])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 704};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_index};
    __pyx_mstate_global->__pyx_codeobj_tab[41] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_kivy_graphics_opengl_pyx, __pyx_mstate->__pyx_n_u_glEnableVertexAttribArray, __pyx_mstate->__pyx_kp_b_iso88591__4, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[41])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {0, 0, 0, 0, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 710};
    PyObject* const varnames[] = {0};
    __pyx_mstate_global->__pyx_codeobj_tab[42] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_kivy_graphics_opengl_pyx, __pyx_mstate->__pyx_n_u_glFinish, __pyx_mstate->__pyx_kp_b_iso88591_y_3, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[42])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {0, 0, 0, 0, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 716};
    PyObject* const varnames[] = {0};
    __pyx_mstate_global->__pyx_codeobj_tab[43] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_kivy_graphics_opengl_pyx, __pyx_mstate->__pyx_n_u_glFlush, __pyx_mstate->__pyx_kp_b_iso88591_xq_2, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[43])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {4, 0, 0, 4, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 722};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_target, __pyx_mstate->__pyx_n_u_attachment, __pyx_mstate->__pyx_n_u_renderbuffertarget, __pyx_mstate->__pyx_n_u_renderbuffer};
    __pyx_mstate_global->__pyx_codeobj_tab[44] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_kivy_graphics_opengl_pyx, __pyx_mstate->__pyx_n_u_glFramebufferRenderbuffer, __pyx_mstate->__pyx_kp_b_iso88591_6J, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[44])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {5, 0, 0, 5, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 728};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_target, __pyx_mstate->__pyx_n_u_attachment, __pyx_mstate->__pyx_n_u_textarget, __pyx_mstate->__pyx_n_u_texture, __pyx_mstate->__pyx_n_u_level};
    __pyx_mstate_global->__pyx_codeobj_tab[45] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_kivy_graphics_opengl_pyx, __pyx_mstate->__pyx_n_u_glFramebufferTexture2D, __pyx_mstate->__pyx_kp_b_iso88591_ax_iq, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[45])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 734};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_mode};
    __pyx_mstate_global->__pyx_codeobj_tab[46] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_kivy_graphics_opengl_pyx, __pyx_mstate->__pyx_n_u_glFrontFace, __pyx_mstate->__pyx_kp_b_iso88591_1A, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[46])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 2, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 740};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_n, __pyx_mstate->__pyx_n_u_d};
    __pyx_mstate_global->__pyx_codeobj_tab[47] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_kivy_graphics_opengl_pyx, __pyx_mstate->__pyx_n_u_glGenBuffers, __pyx_mstate->__pyx_kp_b_iso88591_Yaq_AS_7_3a, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[47])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 750};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_target};
    __pyx_mstate_global->__pyx_codeobj_tab[48] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_kivy_graphics_opengl_pyx, __pyx_mstate->__pyx_n_u_glGenerateMipmap, __pyx_mstate->__pyx_kp_b_iso88591__5, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[48])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 2, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 756};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_n, __pyx_mstate->__pyx_n_u_d};
    __pyx_mstate_global->__pyx_codeobj_tab[49] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_kivy_graphics_opengl_pyx, __pyx_mstate->__pyx_n_u_glGenFramebuffers, __pyx_mstate->__pyx_kp_b_iso88591_Yaq_Q_7_3a, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[49])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 2, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 766};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_n, __pyx_mstate->__pyx_n_u_d};
    __pyx_mstate_global->__pyx_codeobj_tab[50] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_kivy_graphics_opengl_pyx, __pyx_mstate->__pyx_n_u_glGenRenderbuffers, __pyx_mstate->__pyx_kp_b_iso88591_Yaq_3a_7_3a, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[50])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 2, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 776};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_n, __pyx_mstate->__pyx_n_u_d};
    __pyx_mstate_global->__pyx_codeobj_tab[51] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_kivy_graphics_opengl_pyx, __pyx_mstate->__pyx_n_u_glGenTextures, __pyx_mstate->__pyx_kp_b_iso88591_Yaq_Qc_7_3a, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[51])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 6, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 786};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_program, __pyx_mstate->__pyx_n_u_index, __pyx_mstate->__pyx_n_u_size, __pyx_mstate->__pyx_n_u_gl_type, __pyx_mstate->__pyx_n_u_name, __pyx_mstate->__pyx_n_u_p_name};
    __pyx_mstate_global->__pyx_codeobj_tab[52] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_kivy_graphics_opengl_pyx, __pyx_mstate->__pyx_n_u_glGetActiveAttrib_2, __pyx_mstate->__pyx_kp_b_iso88591_a_V1O2Q_uCq_k_7_vQfAYa_XQ_86, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[52])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 6, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 804};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_program, __pyx_mstate->__pyx_n_u_index, __pyx_mstate->__pyx_n_u_size, __pyx_mstate->__pyx_n_u_gl_type, __pyx_mstate->__pyx_n_u_name, __pyx_mstate->__pyx_n_u_p_name};
    __pyx_mstate_global->__pyx_codeobj_tab[53] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_kivy_graphics_opengl_pyx, __pyx_mstate->__pyx_n_u_glGetActiveUniform_2, __pyx_mstate->__pyx_kp_b_iso88591_a_V1O2Q_uCq_k_9G5_avQiq_XQ_86, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[53])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 4, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 822};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_program, __pyx_mstate->__pyx_n_u_maxcount, __pyx_mstate->__pyx_n_u_count, __pyx_mstate->__pyx_n_u_shaders};
    __pyx_mstate_global->__pyx_codeobj_tab[54] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_kivy_graphics_opengl_pyx, __pyx_mstate->__pyx_n_u_glGetAttachedShaders, __pyx_mstate->__pyx_kp_b_iso88591_9AQ_AYgQgQ_7_7, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[54])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 2, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 833};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_program, __pyx_mstate->__pyx_n_u_name};
    __pyx_mstate_global->__pyx_codeobj_tab[55] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_kivy_graphics_opengl_pyx, __pyx_mstate->__pyx_n_u_glGetAttribLocation, __pyx_mstate->__pyx_kp_b_iso88591_3_9HA, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[55])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 4, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 841};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_pname, __pyx_mstate->__pyx_n_u_params, __pyx_mstate->__pyx_n_u_out, __pyx_mstate->__pyx_n_u_i};
    __pyx_mstate_global->__pyx_codeobj_tab[56] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_kivy_graphics_opengl_pyx, __pyx_mstate->__pyx_n_u_glGetBooleanv_2, __pyx_mstate->__pyx_kp_b_iso88591_QgRq_wc_k_QgQ_q_as_e6_aq_1, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[56])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 5, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 855};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_target, __pyx_mstate->__pyx_n_u_pname, __pyx_mstate->__pyx_n_u_params, __pyx_mstate->__pyx_n_u_out, __pyx_mstate->__pyx_n_u_i};
    __pyx_mstate_global->__pyx_codeobj_tab[57] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_kivy_graphics_opengl_pyx, __pyx_mstate->__pyx_n_u_glGetBufferParameteriv_2, __pyx_mstate->__pyx_kp_b_iso88591_QgRq_wc_k_axwa_q_as_e6_aq_1, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[57])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {0, 0, 0, 0, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 869};
    PyObject* const varnames[] = {0};
    __pyx_mstate_global->__pyx_codeobj_tab[58] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_kivy_graphics_opengl_pyx, __pyx_mstate->__pyx_n_u_glGetError, __pyx_mstate->__pyx_kp_b_iso88591_3k, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[58])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 4, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 877};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_pname, __pyx_mstate->__pyx_n_u_params, __pyx_mstate->__pyx_n_u_out, __pyx_mstate->__pyx_n_u_i};
    __pyx_mstate_global->__pyx_codeobj_tab[59] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_kivy_graphics_opengl_pyx, __pyx_mstate->__pyx_n_u_glGetFloatv_2, __pyx_mstate->__pyx_kp_b_iso88591_fA_1_wc_k_1G1_q_as_e6_aq_1, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[59])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {3, 0, 0, 6, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 891};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_target, __pyx_mstate->__pyx_n_u_attachment, __pyx_mstate->__pyx_n_u_pname, __pyx_mstate->__pyx_n_u_params, __pyx_mstate->__pyx_n_u_out, __pyx_mstate->__pyx_n_u_i};
    __pyx_mstate_global->__pyx_codeobj_tab[60] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_kivy_graphics_opengl_pyx, __pyx_mstate->__pyx_n_u_glGetFramebufferAttachmentParame_2, __pyx_mstate->__pyx_kp_b_iso88591_QgRq_wc_k_Qhl_q_as_e6_aq_1, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[60])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 4, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 905};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_pname, __pyx_mstate->__pyx_n_u_params, __pyx_mstate->__pyx_n_u_out, __pyx_mstate->__pyx_n_u_i};
    __pyx_mstate_global->__pyx_codeobj_tab[61] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_kivy_graphics_opengl_pyx, __pyx_mstate->__pyx_n_u_glGetIntegerv_2, __pyx_mstate->__pyx_kp_b_iso88591_QgR_Rq_wc_k_QgQ_q_as_e6_aq_1, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[61])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 3, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 919};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_program, __pyx_mstate->__pyx_n_u_pname, __pyx_mstate->__pyx_n_u_params};
    __pyx_mstate_global->__pyx_codeobj_tab[62] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_kivy_graphics_opengl_pyx, __pyx_mstate->__pyx_n_u_glGetProgramiv, __pyx_mstate->__pyx_kp_b_iso88591_ay_q_1, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[62])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 5, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 929};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_program, __pyx_mstate->__pyx_n_u_bufsize, __pyx_mstate->__pyx_n_u_size, __pyx_mstate->__pyx_n_u_infolog, __pyx_mstate->__pyx_n_u_p_infolog};
    __pyx_mstate_global->__pyx_codeobj_tab[63] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_kivy_graphics_opengl_pyx, __pyx_mstate->__pyx_n_u_glGetProgramInfoLog_2, __pyx_mstate->__pyx_kp_b_iso88591_a_j_a_b_xs_k_1IV1F_1, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[63])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 3, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 946};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_target, __pyx_mstate->__pyx_n_u_pname, __pyx_mstate->__pyx_n_u_params};
    __pyx_mstate_global->__pyx_codeobj_tab[64] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_kivy_graphics_opengl_pyx, __pyx_mstate->__pyx_n_u_glGetRenderbufferParameteriv, __pyx_mstate->__pyx_kp_b_iso88591_AXWAQ_1, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[64])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 3, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 956};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_shader, __pyx_mstate->__pyx_n_u_pname, __pyx_mstate->__pyx_n_u_params};
    __pyx_mstate_global->__pyx_codeobj_tab[65] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_kivy_graphics_opengl_pyx, __pyx_mstate->__pyx_n_u_glGetShaderiv, __pyx_mstate->__pyx_kp_b_iso88591_QhgQa_1, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[65])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 5, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 966};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_shader, __pyx_mstate->__pyx_n_u_bufsize, __pyx_mstate->__pyx_n_u_size, __pyx_mstate->__pyx_n_u_infolog, __pyx_mstate->__pyx_n_u_p_infolog};
    __pyx_mstate_global->__pyx_codeobj_tab[66] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_kivy_graphics_opengl_pyx, __pyx_mstate->__pyx_n_u_glGetShaderInfoLog_2, __pyx_mstate->__pyx_kp_b_iso88591_a_j_a_b_xs_k_86_1, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[66])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 2, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 983};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_shadertype, __pyx_mstate->__pyx_n_u_precisiontype};
    __pyx_mstate_global->__pyx_codeobj_tab[67] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_kivy_graphics_opengl_pyx, __pyx_mstate->__pyx_n_u_glGetShaderPrecisionFormat, __pyx_mstate->__pyx_kp_b_iso88591__6, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[67])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 4, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 992};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_shader, __pyx_mstate->__pyx_n_u_size, __pyx_mstate->__pyx_n_u_source, __pyx_mstate->__pyx_n_u_p_source};
    __pyx_mstate_global->__pyx_codeobj_tab[68] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_kivy_graphics_opengl_pyx, __pyx_mstate->__pyx_n_u_glGetShaderSource, __pyx_mstate->__pyx_kp_b_iso88591_a_ZvQoRq_wc_k_xq_1, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[68])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 2, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 1009};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_name, __pyx_mstate->__pyx_n_u_p_string};
    __pyx_mstate_global->__pyx_codeobj_tab[69] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_kivy_graphics_opengl_pyx, __pyx_mstate->__pyx_n_u_glGetString, __pyx_mstate->__pyx_kp_b_iso88591_xs_aq_1, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[69])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 3, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 1019};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_target, __pyx_mstate->__pyx_n_u_pname, __pyx_mstate->__pyx_n_u_params};
    __pyx_mstate_global->__pyx_codeobj_tab[70] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_kivy_graphics_opengl_pyx, __pyx_mstate->__pyx_n_u_glGetTexParameterfv, __pyx_mstate->__pyx_kp_b_iso88591_1HG1A_1, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[70])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 3, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 1027};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_target, __pyx_mstate->__pyx_n_u_pname, __pyx_mstate->__pyx_n_u_params};
    __pyx_mstate_global->__pyx_codeobj_tab[71] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_kivy_graphics_opengl_pyx, __pyx_mstate->__pyx_n_u_glGetTexParameteriv, __pyx_mstate->__pyx_kp_b_iso88591_1HG1A_1_2, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[71])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 3, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 1035};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_program, __pyx_mstate->__pyx_n_u_location, __pyx_mstate->__pyx_n_u_params};
    __pyx_mstate_global->__pyx_codeobj_tab[72] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_kivy_graphics_opengl_pyx, __pyx_mstate->__pyx_n_u_glGetUniformfv, __pyx_mstate->__pyx_kp_b_iso88591_ay_1_1, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[72])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 3, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 1043};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_program, __pyx_mstate->__pyx_n_u_location, __pyx_mstate->__pyx_n_u_params};
    __pyx_mstate_global->__pyx_codeobj_tab[73] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_kivy_graphics_opengl_pyx, __pyx_mstate->__pyx_n_u_glGetUniformiv, __pyx_mstate->__pyx_kp_b_iso88591_ay_1_1_2, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[73])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 2, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 1051};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_program, __pyx_mstate->__pyx_n_u_name};
    __pyx_mstate_global->__pyx_codeobj_tab[74] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_kivy_graphics_opengl_pyx, __pyx_mstate->__pyx_n_u_glGetUniformLocation, __pyx_mstate->__pyx_kp_b_iso88591_3_1IXQ, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[74])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 3, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 1057};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_index, __pyx_mstate->__pyx_n_u_pname, __pyx_mstate->__pyx_n_u_params};
    __pyx_mstate_global->__pyx_codeobj_tab[75] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_kivy_graphics_opengl_pyx, __pyx_mstate->__pyx_n_u_glGetVertexAttribfv, __pyx_mstate->__pyx_kp_b_iso88591_1G7_1_1, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[75])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 3, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 1065};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_index, __pyx_mstate->__pyx_n_u_pname, __pyx_mstate->__pyx_n_u_params};
    __pyx_mstate_global->__pyx_codeobj_tab[76] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_kivy_graphics_opengl_pyx, __pyx_mstate->__pyx_n_u_glGetVertexAttribiv, __pyx_mstate->__pyx_kp_b_iso88591_1G7_1_1_2, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[76])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 2, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 1073};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_index, __pyx_mstate->__pyx_n_u_pname};
    __pyx_mstate_global->__pyx_codeobj_tab[77] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_kivy_graphics_opengl_pyx, __pyx_mstate->__pyx_n_u_glGetVertexAttribPointerv, __pyx_mstate->__pyx_kp_b_iso88591__6, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[77])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 2, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 1082};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_target, __pyx_mstate->__pyx_n_u_mode};
    __pyx_mstate_global->__pyx_codeobj_tab[78] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_kivy_graphics_opengl_pyx, __pyx_mstate->__pyx_n_u_glHint, __pyx_mstate->__pyx_kp_b_iso88591_waxq, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[78])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 1088};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_buffer};
    __pyx_mstate_global->__pyx_codeobj_tab[79] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_kivy_graphics_opengl_pyx, __pyx_mstate->__pyx_n_u_glIsBuffer, __pyx_mstate->__pyx_kp_b_iso88591_3k_2, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[79])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 1094};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_cap};
    __pyx_mstate_global->__pyx_codeobj_tab[80] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_kivy_graphics_opengl_pyx, __pyx_mstate->__pyx_n_u_glIsEnabled, __pyx_mstate->__pyx_kp_b_iso88591_3l_1, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[80])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 1100};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_framebuffer};
    __pyx_mstate_global->__pyx_codeobj_tab[81] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_kivy_graphics_opengl_pyx, __pyx_mstate->__pyx_n_u_glIsFramebuffer, __pyx_mstate->__pyx_kp_b_iso88591_3_aq, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[81])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 1106};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_program};
    __pyx_mstate_global->__pyx_codeobj_tab[82] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_kivy_graphics_opengl_pyx, __pyx_mstate->__pyx_n_u_glIsProgram, __pyx_mstate->__pyx_kp_b_iso88591_3l_1, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[82])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 1112};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_renderbuffer};
    __pyx_mstate_global->__pyx_codeobj_tab[83] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_kivy_graphics_opengl_pyx, __pyx_mstate->__pyx_n_u_glIsRenderbuffer, __pyx_mstate->__pyx_kp_b_iso88591_3_q, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[83])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 1118};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_shader};
    __pyx_mstate_global->__pyx_codeobj_tab[84] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_kivy_graphics_opengl_pyx, __pyx_mstate->__pyx_n_u_glIsShader, __pyx_mstate->__pyx_kp_b_iso88591_3k_2, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[84])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 1124};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_texture};
    __pyx_mstate_global->__pyx_codeobj_tab[85] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_kivy_graphics_opengl_pyx, __pyx_mstate->__pyx_n_u_glIsTexture, __pyx_mstate->__pyx_kp_b_iso88591_3l_1, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[85])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 1130};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_width};
    __pyx_mstate_global->__pyx_codeobj_tab[86] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_kivy_graphics_opengl_pyx, __pyx_mstate->__pyx_n_u_glLineWidth, __pyx_mstate->__pyx_kp_b_iso88591_1A, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[86])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 1136};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_program};
    __pyx_mstate_global->__pyx_codeobj_tab[87] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_kivy_graphics_opengl_pyx, __pyx_mstate->__pyx_n_u_glLinkProgram, __pyx_mstate->__pyx_kp_b_iso88591_Qa, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[87])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 2, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 1142};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_pname, __pyx_mstate->__pyx_n_u_param};
    __pyx_mstate_global->__pyx_codeobj_tab[88] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_kivy_graphics_opengl_pyx, __pyx_mstate->__pyx_n_u_glPixelStorei, __pyx_mstate->__pyx_kp_b_iso88591_QgQ, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[88])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 2, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 1148};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_factor, __pyx_mstate->__pyx_n_u_units};
    __pyx_mstate_global->__pyx_codeobj_tab[89] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_kivy_graphics_opengl_pyx, __pyx_mstate->__pyx_n_u_glPolygonOffset, __pyx_mstate->__pyx_kp_b_iso88591_q_3, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[89])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {6, 0, 0, 9, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 1154};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_x, __pyx_mstate->__pyx_n_u_y, __pyx_mstate->__pyx_n_u_width, __pyx_mstate->__pyx_n_u_height, __pyx_mstate->__pyx_n_u_format, __pyx_mstate->__pyx_n_u_type, __pyx_mstate->__pyx_n_u_py_pixels, __pyx_mstate->__pyx_n_u_size, __pyx_mstate->__pyx_n_u_data};
    __pyx_mstate_global->__pyx_codeobj_tab[90] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_kivy_graphics_opengl_pyx, __pyx_mstate->__pyx_n_u_glReadPixels_2, __pyx_mstate->__pyx_kp_b_iso88591_7_ha_5_1_A_6_7_A_wc_86_uCq_k_Q, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[90])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {0, 0, 0, 0, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 1189};
    PyObject* const varnames[] = {0};
    __pyx_mstate_global->__pyx_codeobj_tab[91] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_kivy_graphics_opengl_pyx, __pyx_mstate->__pyx_n_u_glReleaseShaderCompiler, __pyx_mstate->__pyx_kp_b_iso88591__6, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[91])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {4, 0, 0, 4, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 1198};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_target, __pyx_mstate->__pyx_n_u_internalformat, __pyx_mstate->__pyx_n_u_width, __pyx_mstate->__pyx_n_u_height};
    __pyx_mstate_global->__pyx_codeobj_tab[92] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_kivy_graphics_opengl_pyx, __pyx_mstate->__pyx_n_u_glRenderbufferStorage, __pyx_mstate->__pyx_kp_b_iso88591_Qh_6gQ, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[92])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 2, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 1204};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_value, __pyx_mstate->__pyx_n_u_invert};
    __pyx_mstate_global->__pyx_codeobj_tab[93] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_kivy_graphics_opengl_pyx, __pyx_mstate->__pyx_n_u_glSampleCoverage, __pyx_mstate->__pyx_kp_b_iso88591__7, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[93])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {4, 0, 0, 4, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 1210};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_x, __pyx_mstate->__pyx_n_u_y, __pyx_mstate->__pyx_n_u_width, __pyx_mstate->__pyx_n_u_height};
    __pyx_mstate_global->__pyx_codeobj_tab[94] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_kivy_graphics_opengl_pyx, __pyx_mstate->__pyx_n_u_glScissor, __pyx_mstate->__pyx_kp_b_iso88591_z_S_q, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[94])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {0, 0, 0, 0, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 1216};
    PyObject* const varnames[] = {0};
    __pyx_mstate_global->__pyx_codeobj_tab[95] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_kivy_graphics_opengl_pyx, __pyx_mstate->__pyx_n_u_glShaderBinary, __pyx_mstate->__pyx_kp_b_iso88591__8, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[95])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 3, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 1225};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_shader, __pyx_mstate->__pyx_n_u_source, __pyx_mstate->__pyx_n_u_c_source};
    __pyx_mstate_global->__pyx_codeobj_tab[96] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_kivy_graphics_opengl_pyx, __pyx_mstate->__pyx_n_u_glShaderSource, __pyx_mstate->__pyx_kp_b_iso88591_31_axs_Q, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[96])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {3, 0, 0, 3, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 1232};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_func, __pyx_mstate->__pyx_n_u_ref, __pyx_mstate->__pyx_n_u_mask};
    __pyx_mstate_global->__pyx_codeobj_tab[97] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_kivy_graphics_opengl_pyx, __pyx_mstate->__pyx_n_u_glStencilFunc, __pyx_mstate->__pyx_kp_b_iso88591_QfE, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[97])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {4, 0, 0, 4, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 1238};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_face, __pyx_mstate->__pyx_n_u_func, __pyx_mstate->__pyx_n_u_ref, __pyx_mstate->__pyx_n_u_mask};
    __pyx_mstate_global->__pyx_codeobj_tab[98] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_kivy_graphics_opengl_pyx, __pyx_mstate->__pyx_n_u_glStencilFuncSeparate, __pyx_mstate->__pyx_kp_b_iso88591_QfF_q, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[98])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 1244};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_mask};
    __pyx_mstate_global->__pyx_codeobj_tab[99] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_kivy_graphics_opengl_pyx, __pyx_mstate->__pyx_n_u_glStencilMask, __pyx_mstate->__pyx_kp_b_iso88591_Qa, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[99])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 2, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 1250};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_face, __pyx_mstate->__pyx_n_u_mask};
    __pyx_mstate_global->__pyx_codeobj_tab[100] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_kivy_graphics_opengl_pyx, __pyx_mstate->__pyx_n_u_glStencilMaskSeparate, __pyx_mstate->__pyx_kp_b_iso88591_QfA, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[100])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {3, 0, 0, 3, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 1256};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_fail, __pyx_mstate->__pyx_n_u_zfail, __pyx_mstate->__pyx_n_u_zpass};
    __pyx_mstate_global->__pyx_codeobj_tab[101] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_kivy_graphics_opengl_pyx, __pyx_mstate->__pyx_n_u_glStencilOp, __pyx_mstate->__pyx_kp_b_iso88591_1F, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[101])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {4, 0, 0, 4, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 1262};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_face, __pyx_mstate->__pyx_n_u_fail, __pyx_mstate->__pyx_n_u_zfail, __pyx_mstate->__pyx_n_u_zpass};
    __pyx_mstate_global->__pyx_codeobj_tab[102] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_kivy_graphics_opengl_pyx, __pyx_mstate->__pyx_n_u_glStencilOpSeparate, __pyx_mstate->__pyx_kp_b_iso88591_1F_q, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[102])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {9, 0, 0, 9, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 1268};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_target, __pyx_mstate->__pyx_n_u_level, __pyx_mstate->__pyx_n_u_internalformat, __pyx_mstate->__pyx_n_u_width, __pyx_mstate->__pyx_n_u_height, __pyx_mstate->__pyx_n_u_border, __pyx_mstate->__pyx_n_u_format, __pyx_mstate->__pyx_n_u_type, __pyx_mstate->__pyx_n_u_pixels};
    __pyx_mstate_global->__pyx_codeobj_tab[103] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_kivy_graphics_opengl_pyx, __pyx_mstate->__pyx_n_u_glTexImage2D, __pyx_mstate->__pyx_kp_b_iso88591_AXW_4G81, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[103])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {3, 0, 0, 3, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 1277};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_target, __pyx_mstate->__pyx_n_u_pname, __pyx_mstate->__pyx_n_u_param};
    __pyx_mstate_global->__pyx_codeobj_tab[104] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_kivy_graphics_opengl_pyx, __pyx_mstate->__pyx_n_u_glTexParameterf, __pyx_mstate->__pyx_kp_b_iso88591_q_q, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[104])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 2, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 1283};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_target, __pyx_mstate->__pyx_n_u_pname};
    __pyx_mstate_global->__pyx_codeobj_tab[105] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_kivy_graphics_opengl_pyx, __pyx_mstate->__pyx_n_u_glTexParameterfv, __pyx_mstate->__pyx_kp_b_iso88591__8, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[105])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {3, 0, 0, 3, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 1292};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_target, __pyx_mstate->__pyx_n_u_pname, __pyx_mstate->__pyx_n_u_param};
    __pyx_mstate_global->__pyx_codeobj_tab[106] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_kivy_graphics_opengl_pyx, __pyx_mstate->__pyx_n_u_glTexParameteri, __pyx_mstate->__pyx_kp_b_iso88591_q_q, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[106])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 2, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 1298};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_target, __pyx_mstate->__pyx_n_u_pname};
    __pyx_mstate_global->__pyx_codeobj_tab[107] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_kivy_graphics_opengl_pyx, __pyx_mstate->__pyx_n_u_glTexParameteriv, __pyx_mstate->__pyx_kp_b_iso88591__8, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[107])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {9, 0, 0, 9, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 1307};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_target, __pyx_mstate->__pyx_n_u_level, __pyx_mstate->__pyx_n_u_xoffset, __pyx_mstate->__pyx_n_u_yoffset, __pyx_mstate->__pyx_n_u_width, __pyx_mstate->__pyx_n_u_height, __pyx_mstate->__pyx_n_u_format, __pyx_mstate->__pyx_n_u_type, __pyx_mstate->__pyx_n_u_pixels};
    __pyx_mstate_global->__pyx_codeobj_tab[108] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_kivy_graphics_opengl_pyx, __pyx_mstate->__pyx_n_u_glTexSubImage2D, __pyx_mstate->__pyx_kp_b_iso88591_q_y_V_XQ, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[108])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 2, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 1316};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_location, __pyx_mstate->__pyx_n_u_x};
    __pyx_mstate_global->__pyx_codeobj_tab[109] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_kivy_graphics_opengl_pyx, __pyx_mstate->__pyx_n_u_glUniform1f, __pyx_mstate->__pyx_kp_b_iso88591_1Ja, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[109])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 2, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 1322};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_location, __pyx_mstate->__pyx_n_u_count};
    __pyx_mstate_global->__pyx_codeobj_tab[110] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_kivy_graphics_opengl_pyx, __pyx_mstate->__pyx_n_u_glUniform1fv, __pyx_mstate->__pyx_kp_b_iso88591__8, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[110])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 2, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 1331};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_location, __pyx_mstate->__pyx_n_u_x};
    __pyx_mstate_global->__pyx_codeobj_tab[111] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_kivy_graphics_opengl_pyx, __pyx_mstate->__pyx_n_u_glUniform1i, __pyx_mstate->__pyx_kp_b_iso88591_1Ja, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[111])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 2, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 1337};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_location, __pyx_mstate->__pyx_n_u_count};
    __pyx_mstate_global->__pyx_codeobj_tab[112] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_kivy_graphics_opengl_pyx, __pyx_mstate->__pyx_n_u_glUniform1iv, __pyx_mstate->__pyx_kp_b_iso88591__8, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[112])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {3, 0, 0, 3, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 1346};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_location, __pyx_mstate->__pyx_n_u_x, __pyx_mstate->__pyx_n_u_y};
    __pyx_mstate_global->__pyx_codeobj_tab[113] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_kivy_graphics_opengl_pyx, __pyx_mstate->__pyx_n_u_glUniform2f, __pyx_mstate->__pyx_kp_b_iso88591_1Jc, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[113])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 2, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 1352};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_location, __pyx_mstate->__pyx_n_u_count};
    __pyx_mstate_global->__pyx_codeobj_tab[114] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_kivy_graphics_opengl_pyx, __pyx_mstate->__pyx_n_u_glUniform2fv, __pyx_mstate->__pyx_kp_b_iso88591__8, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[114])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {3, 0, 0, 3, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 1361};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_location, __pyx_mstate->__pyx_n_u_x, __pyx_mstate->__pyx_n_u_y};
    __pyx_mstate_global->__pyx_codeobj_tab[115] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_kivy_graphics_opengl_pyx, __pyx_mstate->__pyx_n_u_glUniform2i, __pyx_mstate->__pyx_kp_b_iso88591_1Jc, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[115])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 2, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 1367};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_location, __pyx_mstate->__pyx_n_u_count};
    __pyx_mstate_global->__pyx_codeobj_tab[116] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_kivy_graphics_opengl_pyx, __pyx_mstate->__pyx_n_u_glUniform2iv, __pyx_mstate->__pyx_kp_b_iso88591__8, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[116])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {4, 0, 0, 4, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 1376};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_location, __pyx_mstate->__pyx_n_u_x, __pyx_mstate->__pyx_n_u_y, __pyx_mstate->__pyx_n_u_z};
    __pyx_mstate_global->__pyx_codeobj_tab[117] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_kivy_graphics_opengl_pyx, __pyx_mstate->__pyx_n_u_glUniform3f, __pyx_mstate->__pyx_kp_b_iso88591_1Jc_A, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[117])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 2, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 1382};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_location, __pyx_mstate->__pyx_n_u_count};
    __pyx_mstate_global->__pyx_codeobj_tab[118] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_kivy_graphics_opengl_pyx, __pyx_mstate->__pyx_n_u_glUniform3fv, __pyx_mstate->__pyx_kp_b_iso88591__8, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[118])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {4, 0, 0, 4, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 1391};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_location, __pyx_mstate->__pyx_n_u_x, __pyx_mstate->__pyx_n_u_y, __pyx_mstate->__pyx_n_u_z};
    __pyx_mstate_global->__pyx_codeobj_tab[119] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_kivy_graphics_opengl_pyx, __pyx_mstate->__pyx_n_u_glUniform3i, __pyx_mstate->__pyx_kp_b_iso88591_1Jc_A, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[119])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 2, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 1397};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_location, __pyx_mstate->__pyx_n_u_count};
    __pyx_mstate_global->__pyx_codeobj_tab[120] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_kivy_graphics_opengl_pyx, __pyx_mstate->__pyx_n_u_glUniform3iv, __pyx_mstate->__pyx_kp_b_iso88591__8, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[120])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {5, 0, 0, 5, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 1406};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_location, __pyx_mstate->__pyx_n_u_x, __pyx_mstate->__pyx_n_u_y, __pyx_mstate->__pyx_n_u_z, __pyx_mstate->__pyx_n_u_w};
    __pyx_mstate_global->__pyx_codeobj_tab[121] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_kivy_graphics_opengl_pyx, __pyx_mstate->__pyx_n_u_glUniform4f, __pyx_mstate->__pyx_kp_b_iso88591_1Jc_Cq, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[121])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 2, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 1414};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_location, __pyx_mstate->__pyx_n_u_count};
    __pyx_mstate_global->__pyx_codeobj_tab[122] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_kivy_graphics_opengl_pyx, __pyx_mstate->__pyx_n_u_glUniform4fv, __pyx_mstate->__pyx_kp_b_iso88591__8, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[122])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {5, 0, 0, 5, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 1423};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_location, __pyx_mstate->__pyx_n_u_x, __pyx_mstate->__pyx_n_u_y, __pyx_mstate->__pyx_n_u_z, __pyx_mstate->__pyx_n_u_w};
    __pyx_mstate_global->__pyx_codeobj_tab[123] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_kivy_graphics_opengl_pyx, __pyx_mstate->__pyx_n_u_glUniform4i, __pyx_mstate->__pyx_kp_b_iso88591_1Jc_Cq_2, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[123])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 2, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 1429};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_location, __pyx_mstate->__pyx_n_u_count};
    __pyx_mstate_global->__pyx_codeobj_tab[124] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_kivy_graphics_opengl_pyx, __pyx_mstate->__pyx_n_u_glUniform4iv, __pyx_mstate->__pyx_kp_b_iso88591__8, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[124])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 2, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 1438};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_location, __pyx_mstate->__pyx_n_u_count};
    __pyx_mstate_global->__pyx_codeobj_tab[125] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_kivy_graphics_opengl_pyx, __pyx_mstate->__pyx_n_u_glUniformMatrix2fv, __pyx_mstate->__pyx_kp_b_iso88591__8, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[125])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 2, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 1447};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_location, __pyx_mstate->__pyx_n_u_count};
    __pyx_mstate_global->__pyx_codeobj_tab[126] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_kivy_graphics_opengl_pyx, __pyx_mstate->__pyx_n_u_glUniformMatrix3fv, __pyx_mstate->__pyx_kp_b_iso88591__8, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[126])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {4, 0, 0, 4, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 1456};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_location, __pyx_mstate->__pyx_n_u_count, __pyx_mstate->__pyx_n_u_transpose, __pyx_mstate->__pyx_n_u_value};
    __pyx_mstate_global->__pyx_codeobj_tab[127] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_kivy_graphics_opengl_pyx, __pyx_mstate->__pyx_n_u_glUniformMatrix4fv, __pyx_mstate->__pyx_kp_b_iso88591_WK, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[127])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 1462};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_program};
    __pyx_mstate_global->__pyx_codeobj_tab[128] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_kivy_graphics_opengl_pyx, __pyx_mstate->__pyx_n_u_glUseProgram, __pyx_mstate->__pyx_kp_b_iso88591_AQ, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[128])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {1, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 1468};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_program};
    __pyx_mstate_global->__pyx_codeobj_tab[129] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_kivy_graphics_opengl_pyx, __pyx_mstate->__pyx_n_u_glValidateProgram, __pyx_mstate->__pyx_kp_b_iso88591__9, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[129])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 2, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 1474};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_indx, __pyx_mstate->__pyx_n_u_x};
    __pyx_mstate_global->__pyx_codeobj_tab[130] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_kivy_graphics_opengl_pyx, __pyx_mstate->__pyx_n_u_glVertexAttrib1f, __pyx_mstate->__pyx_kp_b_iso88591_q_4, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[130])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 2, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 1480};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_indx, __pyx_mstate->__pyx_n_u_values};
    __pyx_mstate_global->__pyx_codeobj_tab[131] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_kivy_graphics_opengl_pyx, __pyx_mstate->__pyx_n_u_glVertexAttrib1fv, __pyx_mstate->__pyx_kp_b_iso88591__8, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[131])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {3, 0, 0, 3, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 1489};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_indx, __pyx_mstate->__pyx_n_u_x, __pyx_mstate->__pyx_n_u_y};
    __pyx_mstate_global->__pyx_codeobj_tab[132] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_kivy_graphics_opengl_pyx, __pyx_mstate->__pyx_n_u_glVertexAttrib2f, __pyx_mstate->__pyx_kp_b_iso88591_s_2, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[132])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 2, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 1495};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_indx, __pyx_mstate->__pyx_n_u_values};
    __pyx_mstate_global->__pyx_codeobj_tab[133] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_kivy_graphics_opengl_pyx, __pyx_mstate->__pyx_n_u_glVertexAttrib2fv, __pyx_mstate->__pyx_kp_b_iso88591__8, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[133])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {4, 0, 0, 4, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 1504};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_indx, __pyx_mstate->__pyx_n_u_x, __pyx_mstate->__pyx_n_u_y, __pyx_mstate->__pyx_n_u_z};
    __pyx_mstate_global->__pyx_codeobj_tab[134] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_kivy_graphics_opengl_pyx, __pyx_mstate->__pyx_n_u_glVertexAttrib3f, __pyx_mstate->__pyx_kp_b_iso88591_s_Q, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[134])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 2, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 1510};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_indx, __pyx_mstate->__pyx_n_u_values};
    __pyx_mstate_global->__pyx_codeobj_tab[135] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_kivy_graphics_opengl_pyx, __pyx_mstate->__pyx_n_u_glVertexAttrib3fv, __pyx_mstate->__pyx_kp_b_iso88591__8, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[135])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {5, 0, 0, 5, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 1519};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_indx, __pyx_mstate->__pyx_n_u_x, __pyx_mstate->__pyx_n_u_y, __pyx_mstate->__pyx_n_u_z, __pyx_mstate->__pyx_n_u_w};
    __pyx_mstate_global->__pyx_codeobj_tab[136] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_kivy_graphics_opengl_pyx, __pyx_mstate->__pyx_n_u_glVertexAttrib4f, __pyx_mstate->__pyx_kp_b_iso88591_s_S, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[136])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 2, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 1525};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_indx, __pyx_mstate->__pyx_n_u_values};
    __pyx_mstate_global->__pyx_codeobj_tab[137] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_kivy_graphics_opengl_pyx, __pyx_mstate->__pyx_n_u_glVertexAttrib4fv, __pyx_mstate->__pyx_kp_b_iso88591__8, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[137])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {6, 0, 0, 7, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 1534};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_index, __pyx_mstate->__pyx_n_u_size, __pyx_mstate->__pyx_n_u_type, __pyx_mstate->__pyx_n_u_normalized, __pyx_mstate->__pyx_n_u_stride, __pyx_mstate->__pyx_n_u_data, __pyx_mstate->__pyx_n_u_ptr};
    __pyx_mstate_global->__pyx_codeobj_tab[138] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_kivy_graphics_opengl_pyx, __pyx_mstate->__pyx_n_u_glVertexAttribPointer, __pyx_mstate->__pyx_kp_b_iso88591_Q_z_iy_q_1F_i_Q_iq_QgV6_XQ, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[138])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {4, 0, 0, 4, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 1548};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_x, __pyx_mstate->__pyx_n_u_y, __pyx_mstate->__pyx_n_u_width, __pyx_mstate->__pyx_n_u_height};
    __pyx_mstate_global->__pyx_codeobj_tab[139] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_kivy_graphics_opengl_pyx, __pyx_mstate->__pyx_n_u_glViewport, __pyx_mstate->__pyx_kp_b_iso88591_3c, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[139])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {2, 0, 0, 2, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 1555};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_allowed, __pyx_mstate->__pyx_n_u_ignored};
    __pyx_mstate_global->__pyx_codeobj_tab[140] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_kivy_graphics_opengl_pyx, __pyx_mstate->__pyx_n_u_gl_init_symbols, __pyx_mstate->__pyx_kp_b_iso88591_L_AYa, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[140])) goto bad;
  }
  Py_DECREF(tuple_dedup_map);
  return 0;
  bad:
  Py_DECREF(tuple_dedup_map);
  return -1;
}
/* #### Code section: init_globals ### */

static int __Pyx_InitGlobals(void) {
  /* PythonCompatibility.init */
  if (likely(__Pyx_init_co_variables() == 0)); else
  
  if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 1, __pyx_L1_error)

  /* AssertionsEnabled.init */
  if (likely(__Pyx_init_assertions_enabled() == 0)); else
  
  if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 1, __pyx_L1_error)

  /* CommonTypesMetaclass.init */
  if (likely(__pyx_CommonTypesMetaclass_init(__pyx_m) == 0)); else
  
  if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 1, __pyx_L1_error)

  /* CachedMethodType.init */
  #if CYTHON_COMPILING_IN_LIMITED_API
  {
      PyObject *typesModule=NULL;
      typesModule = PyImport_ImportModule("types");
      if (typesModule) {
          __pyx_mstate_global->__Pyx_CachedMethodType = PyObject_GetAttrString(typesModule, "MethodType");
          Py_DECREF(typesModule);
      }
  } // error handling follows
  #endif
  
  if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 1, __pyx_L1_error)

  /* CythonFunctionShared.init */
  if (likely(__pyx_CyFunction_init(__pyx_m) == 0)); else
  
  if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 1, __pyx_L1_error)

  return 0;
  __pyx_L1_error:;
  return -1;
}
/* #### Code section: cleanup_globals ### */
/* #### Code section: cleanup_module ### */
/* #### Code section: main_method ### */
/* #### Code section: utility_code_pragmas ### */
#ifdef _MSC_VER
#pragma warning( push )
/* Warning 4127: conditional expression is constant
 * Cython uses constant conditional expressions to allow in inline functions to be optimized at
 * compile-time, so this warning is not useful
 */
#pragma warning( disable : 4127 )
#endif



/* #### Code section: utility_code_def ### */

/* --- 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

/* TupleAndListFromArray (used by fastcall) */
#if !CYTHON_COMPILING_IN_CPYTHON && CYTHON_METH_FASTCALL
static CYTHON_INLINE PyObject *
__Pyx_PyTuple_FromArray(PyObject *const *src, Py_ssize_t n)
{
    PyObject *res;
    Py_ssize_t i;
    if (n <= 0) {
        return __Pyx_NewRef(__pyx_mstate_global->__pyx_empty_tuple);
    }
    res = PyTuple_New(n);
    if (unlikely(res == NULL)) return NULL;
    for (i = 0; i < n; i++) {
        if (unlikely(__Pyx_PyTuple_SET_ITEM(res, i, src[i]) < (0))) {
            Py_DECREF(res);
            return NULL;
        }
        Py_INCREF(src[i]);
    }
    return res;
}
#elif CYTHON_COMPILING_IN_CPYTHON
static CYTHON_INLINE void __Pyx_copy_object_array(PyObject *const *CYTHON_RESTRICT src, PyObject** CYTHON_RESTRICT dest, Py_ssize_t length) {
    PyObject *v;
    Py_ssize_t i;
    for (i = 0; i < length; i++) {
        v = dest[i] = src[i];
        Py_INCREF(v);
    }
}
static CYTHON_INLINE PyObject *
__Pyx_PyTuple_FromArray(PyObject *const *src, Py_ssize_t n)
{
    PyObject *res;
    if (n <= 0) {
        return __Pyx_NewRef(__pyx_mstate_global->__pyx_empty_tuple);
    }
    res = PyTuple_New(n);
    if (unlikely(res == NULL)) return NULL;
    __Pyx_copy_object_array(src, ((PyTupleObject*)res)->ob_item, n);
    return res;
}
static CYTHON_INLINE PyObject *
__Pyx_PyList_FromArray(PyObject *const *src, Py_ssize_t n)
{
    PyObject *res;
    if (n <= 0) {
        return PyList_New(0);
    }
    res = PyList_New(n);
    if (unlikely(res == NULL)) return NULL;
    __Pyx_copy_object_array(src, ((PyListObject*)res)->ob_item, n);
    return res;
}
#endif

/* BytesEquals (used by UnicodeEquals) */
static CYTHON_INLINE int __Pyx_PyBytes_Equals(PyObject* s1, PyObject* s2, int equals) {
#if CYTHON_COMPILING_IN_PYPY || CYTHON_COMPILING_IN_LIMITED_API || CYTHON_COMPILING_IN_GRAAL ||\
        !(CYTHON_ASSUME_SAFE_SIZE && CYTHON_ASSUME_SAFE_MACROS)
    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 (used by fastcall) */
static CYTHON_INLINE int __Pyx_PyUnicode_Equals(PyObject* s1, PyObject* s2, int equals) {
#if CYTHON_COMPILING_IN_PYPY || CYTHON_COMPILING_IN_LIMITED_API || CYTHON_COMPILING_IN_GRAAL
    return PyObject_RichCompareBool(s1, s2, equals);
#else
    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 (s1_is_unicode & s2_is_unicode) {
        Py_ssize_t length, length2;
        int kind;
        void *data1, *data2;
        #if !CYTHON_COMPILING_IN_LIMITED_API
        if (unlikely(__Pyx_PyUnicode_READY(s1) < 0) || unlikely(__Pyx_PyUnicode_READY(s2) < 0))
            return -1;
        #endif
        length = __Pyx_PyUnicode_GET_LENGTH(s1);
        #if !CYTHON_ASSUME_SAFE_SIZE
        if (unlikely(length < 0)) return -1;
        #endif
        length2 = __Pyx_PyUnicode_GET_LENGTH(s2);
        #if !CYTHON_ASSUME_SAFE_SIZE
        if (unlikely(length2 < 0)) return -1;
        #endif
        if (length != length2) {
            goto return_ne;
        }
#if CYTHON_USE_UNICODE_INTERNALS
        {
            Py_hash_t hash1, hash2;
            hash1 = ((PyASCIIObject*)s1)->hash;
            hash2 = ((PyASCIIObject*)s2)->hash;
            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));
            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_result)
            return -1;
        result = __Pyx_PyObject_IsTrue(py_result);
        Py_DECREF(py_result);
        return result;
    }
return_eq:
    return (equals == Py_EQ);
return_ne:
    return (equals == Py_NE);
#endif
}

/* fastcall */
#if CYTHON_METH_FASTCALL
static CYTHON_INLINE PyObject * __Pyx_GetKwValue_FASTCALL(PyObject *kwnames, PyObject *const *kwvalues, PyObject *s)
{
    Py_ssize_t i, n = __Pyx_PyTuple_GET_SIZE(kwnames);
    #if !CYTHON_ASSUME_SAFE_SIZE
    if (unlikely(n == -1)) return NULL;
    #endif
    for (i = 0; i < n; i++)
    {
        PyObject *namei = __Pyx_PyTuple_GET_ITEM(kwnames, i);
        #if !CYTHON_ASSUME_SAFE_MACROS
        if (unlikely(!namei)) return NULL;
        #endif
        if (s == namei) return kwvalues[i];
    }
    for (i = 0; i < n; i++)
    {
        PyObject *namei = __Pyx_PyTuple_GET_ITEM(kwnames, i);
        #if !CYTHON_ASSUME_SAFE_MACROS
        if (unlikely(!namei)) return NULL;
        #endif
        int eq = __Pyx_PyUnicode_Equals(s, namei, Py_EQ);
        if (unlikely(eq != 0)) {
            if (unlikely(eq < 0)) return NULL;
            return kwvalues[i];
        }
    }
    return NULL;
}
#if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030d0000 || CYTHON_COMPILING_IN_LIMITED_API
CYTHON_UNUSED static PyObject *__Pyx_KwargsAsDict_FASTCALL(PyObject *kwnames, PyObject *const *kwvalues) {
    Py_ssize_t i, nkwargs;
    PyObject *dict;
#if !CYTHON_ASSUME_SAFE_SIZE
    nkwargs = PyTuple_Size(kwnames);
    if (unlikely(nkwargs < 0)) return NULL;
#else
    nkwargs = PyTuple_GET_SIZE(kwnames);
#endif
    dict = PyDict_New();
    if (unlikely(!dict))
        return NULL;
    for (i=0; i<nkwargs; i++) {
#if !CYTHON_ASSUME_SAFE_MACROS
        PyObject *key = PyTuple_GetItem(kwnames, i);
        if (!key) goto bad;
#else
        PyObject *key = PyTuple_GET_ITEM(kwnames, i);
#endif
        if (unlikely(PyDict_SetItem(dict, key, kwvalues[i]) < 0))
            goto bad;
    }
    return dict;
bad:
    Py_DECREF(dict);
    return NULL;
}
#endif
#endif

/* PyObjectCall (used by PyObjectFastCall) */
#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(" 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

/* PyObjectCallMethO (used by PyObjectFastCall) */
#if CYTHON_COMPILING_IN_CPYTHON
static CYTHON_INLINE PyObject* __Pyx_PyObject_CallMethO(PyObject *func, PyObject *arg) {
    PyObject *self, *result;
    PyCFunction cfunc;
    cfunc = __Pyx_CyOrPyCFunction_GET_FUNCTION(func);
    self = __Pyx_CyOrPyCFunction_GET_SELF(func);
    if (unlikely(Py_EnterRecursiveCall(" 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

/* PyObjectFastCall (used by PyObjectCallOneArg) */
#if PY_VERSION_HEX < 0x03090000 || CYTHON_COMPILING_IN_LIMITED_API
static PyObject* __Pyx_PyObject_FastCall_fallback(PyObject *func, PyObject * const*args, size_t nargs, PyObject *kwargs) {
    PyObject *argstuple;
    PyObject *result = 0;
    size_t i;
    argstuple = PyTuple_New((Py_ssize_t)nargs);
    if (unlikely(!argstuple)) return NULL;
    for (i = 0; i < nargs; i++) {
        Py_INCREF(args[i]);
        if (__Pyx_PyTuple_SET_ITEM(argstuple, (Py_ssize_t)i, args[i]) != (0)) goto bad;
    }
    result = __Pyx_PyObject_Call(func, argstuple, kwargs);
  bad:
    Py_DECREF(argstuple);
    return result;
}
#endif
#if CYTHON_VECTORCALL && !CYTHON_COMPILING_IN_LIMITED_API
  #if PY_VERSION_HEX < 0x03090000
    #define __Pyx_PyVectorcall_Function(callable) _PyVectorcall_Function(callable)
  #elif CYTHON_COMPILING_IN_CPYTHON
static CYTHON_INLINE vectorcallfunc __Pyx_PyVectorcall_Function(PyObject *callable) {
    PyTypeObject *tp = Py_TYPE(callable);
    #if defined(__Pyx_CyFunction_USED)
    if (__Pyx_CyFunction_CheckExact(callable)) {
        return __Pyx_CyFunction_func_vectorcall(callable);
    }
    #endif
    if (!PyType_HasFeature(tp, Py_TPFLAGS_HAVE_VECTORCALL)) {
        return NULL;
    }
    assert(PyCallable_Check(callable));
    Py_ssize_t offset = tp->tp_vectorcall_offset;
    assert(offset > 0);
    vectorcallfunc ptr;
    memcpy(&ptr, (char *) callable + offset, sizeof(ptr));
    return ptr;
}
  #else
    #define __Pyx_PyVectorcall_Function(callable) PyVectorcall_Function(callable)
  #endif
#endif
static CYTHON_INLINE PyObject* __Pyx_PyObject_FastCallDict(PyObject *func, PyObject *const *args, size_t _nargs, PyObject *kwargs) {
    Py_ssize_t nargs = __Pyx_PyVectorcall_NARGS(_nargs);
#if CYTHON_COMPILING_IN_CPYTHON
    if (nargs == 0 && kwargs == NULL) {
        if (__Pyx_CyOrPyCFunction_Check(func) && likely( __Pyx_CyOrPyCFunction_GET_FLAGS(func) & METH_NOARGS))
            return __Pyx_PyObject_CallMethO(func, NULL);
    }
    else if (nargs == 1 && kwargs == NULL) {
        if (__Pyx_CyOrPyCFunction_Check(func) && likely( __Pyx_CyOrPyCFunction_GET_FLAGS(func) & METH_O))
            return __Pyx_PyObject_CallMethO(func, args[0]);
    }
#endif
    if (kwargs == NULL) {
        #if CYTHON_VECTORCALL
          #if CYTHON_COMPILING_IN_LIMITED_API
            return PyObject_Vectorcall(func, args, _nargs, NULL);
          #else
            vectorcallfunc f = __Pyx_PyVectorcall_Function(func);
            if (f) {
                return f(func, args, _nargs, NULL);
            }
          #endif
        #endif
    }
    if (nargs == 0) {
        return __Pyx_PyObject_Call(func, __pyx_mstate_global->__pyx_empty_tuple, kwargs);
    }
    #if PY_VERSION_HEX >= 0x03090000 && !CYTHON_COMPILING_IN_LIMITED_API
    return PyObject_VectorcallDict(func, args, (size_t)nargs, kwargs);
    #else
    return __Pyx_PyObject_FastCall_fallback(func, args, (size_t)nargs, kwargs);
    #endif
}

/* PyObjectCallOneArg (used by CallUnboundCMethod0) */
static CYTHON_INLINE PyObject* __Pyx_PyObject_CallOneArg(PyObject *func, PyObject *arg) {
    PyObject *args[2] = {NULL, arg};
    return __Pyx_PyObject_FastCall(func, args+1, 1 | __Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET);
}

/* PyObjectGetAttrStr (used by UnpackUnboundCMethod) */
#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);
    return PyObject_GetAttr(obj, attr_name);
}
#endif

/* UnpackUnboundCMethod (used by CallUnboundCMethod0) */
#if CYTHON_COMPILING_IN_LIMITED_API && __PYX_LIMITED_VERSION_HEX < 0x030C0000
static PyObject *__Pyx_SelflessCall(PyObject *method, PyObject *args, PyObject *kwargs) {
    PyObject *result;
    PyObject *selfless_args = PyTuple_GetSlice(args, 1, PyTuple_Size(args));
    if (unlikely(!selfless_args)) return NULL;
    result = PyObject_Call(method, selfless_args, kwargs);
    Py_DECREF(selfless_args);
    return result;
}
#elif CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX < 0x03090000
static PyObject *__Pyx_SelflessCall(PyObject *method, PyObject **args, Py_ssize_t nargs, PyObject *kwnames) {
        return _PyObject_Vectorcall
            (method, args ? args+1 : NULL, nargs ? nargs-1 : 0, kwnames);
}
#else
static PyObject *__Pyx_SelflessCall(PyObject *method, PyObject *const *args, Py_ssize_t nargs, PyObject *kwnames) {
    return
#if PY_VERSION_HEX < 0x03090000
    _PyObject_Vectorcall
#else
    PyObject_Vectorcall
#endif
        (method, args ? args+1 : NULL, nargs ? (size_t) nargs-1 : 0, kwnames);
}
#endif
static PyMethodDef __Pyx_UnboundCMethod_Def = {
     "CythonUnboundCMethod",
     __PYX_REINTERPRET_FUNCION(PyCFunction, __Pyx_SelflessCall),
#if CYTHON_COMPILING_IN_LIMITED_API && __PYX_LIMITED_VERSION_HEX < 0x030C0000
     METH_VARARGS | METH_KEYWORDS,
#else
     METH_FASTCALL | METH_KEYWORDS,
#endif
     NULL
};
static int __Pyx_TryUnpackUnboundCMethod(__Pyx_CachedCFunction* target) {
    PyObject *method, *result=NULL;
    method = __Pyx_PyObject_GetAttrStr(target->type, *target->method_name);
    if (unlikely(!method))
        return -1;
    result = method;
#if CYTHON_COMPILING_IN_CPYTHON
    if (likely(__Pyx_TypeCheck(method, &PyMethodDescr_Type)))
    {
        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);
    } else
#endif
#if CYTHON_COMPILING_IN_PYPY
#else
    if (PyCFunction_Check(method))
#endif
    {
        PyObject *self;
        int self_found;
#if CYTHON_COMPILING_IN_LIMITED_API || CYTHON_COMPILING_IN_PYPY
        self = PyObject_GetAttrString(method, "__self__");
        if (!self) {
            PyErr_Clear();
        }
#else
        self = PyCFunction_GET_SELF(method);
#endif
        self_found = (self && self != Py_None);
#if CYTHON_COMPILING_IN_LIMITED_API || CYTHON_COMPILING_IN_PYPY
        Py_XDECREF(self);
#endif
        if (self_found) {
            PyObject *unbound_method = PyCFunction_New(&__Pyx_UnboundCMethod_Def, method);
            if (unlikely(!unbound_method)) return -1;
            Py_DECREF(method);
            result = unbound_method;
        }
    }
#if !CYTHON_COMPILING_IN_CPYTHON_FREETHREADING
    if (unlikely(target->method)) {
        Py_DECREF(result);
    } else
#endif
    target->method = result;
    return 0;
}

/* CallUnboundCMethod0 */
#if CYTHON_COMPILING_IN_CPYTHON
static CYTHON_INLINE PyObject* __Pyx_CallUnboundCMethod0(__Pyx_CachedCFunction* cfunc, PyObject* self) {
    int was_initialized = __Pyx_CachedCFunction_GetAndSetInitializing(cfunc);
    if (likely(was_initialized == 2 && cfunc->func)) {
        if (likely(cfunc->flag == METH_NOARGS))
            return __Pyx_CallCFunction(cfunc, self, NULL);
        if (likely(cfunc->flag == METH_FASTCALL))
            return __Pyx_CallCFunctionFast(cfunc, self, NULL, 0);
        if (cfunc->flag == (METH_FASTCALL | METH_KEYWORDS))
            return __Pyx_CallCFunctionFastWithKeywords(cfunc, self, NULL, 0, NULL);
        if (likely(cfunc->flag == (METH_VARARGS | METH_KEYWORDS)))
            return __Pyx_CallCFunctionWithKeywords(cfunc, self, __pyx_mstate_global->__pyx_empty_tuple, NULL);
        if (cfunc->flag == METH_VARARGS)
            return __Pyx_CallCFunction(cfunc, self, __pyx_mstate_global->__pyx_empty_tuple);
        return __Pyx__CallUnboundCMethod0(cfunc, self);
    }
#if CYTHON_COMPILING_IN_CPYTHON_FREETHREADING
    else if (unlikely(was_initialized == 1)) {
        __Pyx_CachedCFunction tmp_cfunc = {
#ifndef __cplusplus
            0
#endif
        };
        tmp_cfunc.type = cfunc->type;
        tmp_cfunc.method_name = cfunc->method_name;
        return __Pyx__CallUnboundCMethod0(&tmp_cfunc, self);
    }
#endif
    PyObject *result = __Pyx__CallUnboundCMethod0(cfunc, self);
    __Pyx_CachedCFunction_SetFinishedInitializing(cfunc);
    return result;
}
#endif
static PyObject* __Pyx__CallUnboundCMethod0(__Pyx_CachedCFunction* cfunc, PyObject* self) {
    PyObject *result;
    if (unlikely(!cfunc->method) && unlikely(__Pyx_TryUnpackUnboundCMethod(cfunc) < 0)) return NULL;
    result = __Pyx_PyObject_CallOneArg(cfunc->method, self);
    return result;
}

/* py_dict_items (used by OwnedDictNext) */
static CYTHON_INLINE PyObject* __Pyx_PyDict_Items(PyObject* d) {
    return __Pyx_CallUnboundCMethod0(&__pyx_mstate_global->__pyx_umethod_PyDict_Type_items, d);
}

/* py_dict_values (used by OwnedDictNext) */
static CYTHON_INLINE PyObject* __Pyx_PyDict_Values(PyObject* d) {
    return __Pyx_CallUnboundCMethod0(&__pyx_mstate_global->__pyx_umethod_PyDict_Type_values, d);
}

/* OwnedDictNext (used by ParseKeywordsImpl) */
#if CYTHON_AVOID_BORROWED_REFS
static int __Pyx_PyDict_NextRef(PyObject *p, PyObject **ppos, PyObject **pkey, PyObject **pvalue) {
    PyObject *next = NULL;
    if (!*ppos) {
        if (pvalue) {
            PyObject *dictview = pkey ? __Pyx_PyDict_Items(p) : __Pyx_PyDict_Values(p);
            if (unlikely(!dictview)) goto bad;
            *ppos = PyObject_GetIter(dictview);
            Py_DECREF(dictview);
        } else {
            *ppos = PyObject_GetIter(p);
        }
        if (unlikely(!*ppos)) goto bad;
    }
    next = PyIter_Next(*ppos);
    if (!next) {
        if (PyErr_Occurred()) goto bad;
        return 0;
    }
    if (pkey && pvalue) {
        *pkey = __Pyx_PySequence_ITEM(next, 0);
        if (unlikely(*pkey)) goto bad;
        *pvalue = __Pyx_PySequence_ITEM(next, 1);
        if (unlikely(*pvalue)) goto bad;
        Py_DECREF(next);
    } else if (pkey) {
        *pkey = next;
    } else {
        assert(pvalue);
        *pvalue = next;
    }
    return 1;
  bad:
    Py_XDECREF(next);
#if !CYTHON_COMPILING_IN_LIMITED_API && PY_VERSION_HEX >= 0x030d0000
    PyErr_FormatUnraisable("Exception ignored in __Pyx_PyDict_NextRef");
#else
    PyErr_WriteUnraisable(__pyx_mstate_global->__pyx_n_u_Pyx_PyDict_NextRef);
#endif
    if (pkey) *pkey = NULL;
    if (pvalue) *pvalue = NULL;
    return 0;
}
#else // !CYTHON_AVOID_BORROWED_REFS
static int __Pyx_PyDict_NextRef(PyObject *p, Py_ssize_t *ppos, PyObject **pkey, PyObject **pvalue) {
    int result = PyDict_Next(p, ppos, pkey, pvalue);
    if (likely(result == 1)) {
        if (pkey) Py_INCREF(*pkey);
        if (pvalue) Py_INCREF(*pvalue);
    }
    return result;
}
#endif

/* RaiseDoubleKeywords (used by ParseKeywordsImpl) */
static void __Pyx_RaiseDoubleKeywordsError(
    const char* func_name,
    PyObject* kw_name)
{
    PyErr_Format(PyExc_TypeError,
        "%s() got multiple values for keyword argument '%U'", func_name, kw_name);
}

/* CallUnboundCMethod2 */
#if CYTHON_COMPILING_IN_CPYTHON
static CYTHON_INLINE PyObject *__Pyx_CallUnboundCMethod2(__Pyx_CachedCFunction *cfunc, PyObject *self, PyObject *arg1, PyObject *arg2) {
    int was_initialized = __Pyx_CachedCFunction_GetAndSetInitializing(cfunc);
    if (likely(was_initialized == 2 && cfunc->func)) {
        PyObject *args[2] = {arg1, arg2};
        if (cfunc->flag == METH_FASTCALL) {
            return __Pyx_CallCFunctionFast(cfunc, self, args, 2);
        }
        if (cfunc->flag == (METH_FASTCALL | METH_KEYWORDS))
            return __Pyx_CallCFunctionFastWithKeywords(cfunc, self, args, 2, NULL);
    }
#if CYTHON_COMPILING_IN_CPYTHON_FREETHREADING
    else if (unlikely(was_initialized == 1)) {
        __Pyx_CachedCFunction tmp_cfunc = {
#ifndef __cplusplus
            0
#endif
        };
        tmp_cfunc.type = cfunc->type;
        tmp_cfunc.method_name = cfunc->method_name;
        return __Pyx__CallUnboundCMethod2(&tmp_cfunc, self, arg1, arg2);
    }
#endif
    PyObject *result = __Pyx__CallUnboundCMethod2(cfunc, self, arg1, arg2);
    __Pyx_CachedCFunction_SetFinishedInitializing(cfunc);
    return result;
}
#endif
static PyObject* __Pyx__CallUnboundCMethod2(__Pyx_CachedCFunction* cfunc, PyObject* self, PyObject* arg1, PyObject* arg2){
    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)) {
        PyObject *result = NULL;
        PyObject *args = PyTuple_New(2);
        if (unlikely(!args)) return NULL;
        Py_INCREF(arg1);
        PyTuple_SET_ITEM(args, 0, arg1);
        Py_INCREF(arg2);
        PyTuple_SET_ITEM(args, 1, arg2);
        if (cfunc->flag & METH_KEYWORDS)
            result = __Pyx_CallCFunctionWithKeywords(cfunc, self, args, NULL);
        else
            result = __Pyx_CallCFunction(cfunc, self, args);
        Py_DECREF(args);
        return result;
    }
#endif
    {
        PyObject *args[4] = {NULL, self, arg1, arg2};
        return __Pyx_PyObject_FastCall(cfunc->method, args+1, 3 | __Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET);
    }
}

/* ParseKeywordsImpl (used by ParseKeywords) */
static int __Pyx_ValidateDuplicatePosArgs(
    PyObject *kwds,
    PyObject ** const argnames[],
    PyObject ** const *first_kw_arg,
    const char* function_name)
{
    PyObject ** const *name = argnames;
    while (name != first_kw_arg) {
        PyObject *key = **name;
        int found = PyDict_Contains(kwds, key);
        if (unlikely(found)) {
            if (found == 1) __Pyx_RaiseDoubleKeywordsError(function_name, key);
            goto bad;
        }
        name++;
    }
    return 0;
bad:
    return -1;
}
#if CYTHON_USE_UNICODE_INTERNALS
static CYTHON_INLINE int __Pyx_UnicodeKeywordsEqual(PyObject *s1, PyObject *s2) {
    int kind;
    Py_ssize_t len = PyUnicode_GET_LENGTH(s1);
    if (len != PyUnicode_GET_LENGTH(s2)) return 0;
    kind = PyUnicode_KIND(s1);
    if (kind != PyUnicode_KIND(s2)) return 0;
    const void *data1 = PyUnicode_DATA(s1);
    const void *data2 = PyUnicode_DATA(s2);
    return (memcmp(data1, data2, (size_t) len * (size_t) kind) == 0);
}
#endif
static int __Pyx_MatchKeywordArg_str(
    PyObject *key,
    PyObject ** const argnames[],
    PyObject ** const *first_kw_arg,
    size_t *index_found,
    const char *function_name)
{
    PyObject ** const *name;
    #if CYTHON_USE_UNICODE_INTERNALS
    Py_hash_t key_hash = ((PyASCIIObject*)key)->hash;
    if (unlikely(key_hash == -1)) {
        key_hash = PyObject_Hash(key);
        if (unlikely(key_hash == -1))
            goto bad;
    }
    #endif
    name = first_kw_arg;
    while (*name) {
        PyObject *name_str = **name;
        #if CYTHON_USE_UNICODE_INTERNALS
        if (key_hash == ((PyASCIIObject*)name_str)->hash && __Pyx_UnicodeKeywordsEqual(name_str, key)) {
            *index_found = (size_t) (name - argnames);
            return 1;
        }
        #else
        #if CYTHON_ASSUME_SAFE_SIZE
        if (PyUnicode_GET_LENGTH(name_str) == PyUnicode_GET_LENGTH(key))
        #endif
        {
            int cmp = PyUnicode_Compare(name_str, key);
            if (cmp < 0 && unlikely(PyErr_Occurred())) goto bad;
            if (cmp == 0) {
                *index_found = (size_t) (name - argnames);
                return 1;
            }
        }
        #endif
        name++;
    }
    name = argnames;
    while (name != first_kw_arg) {
        PyObject *name_str = **name;
        #if CYTHON_USE_UNICODE_INTERNALS
        if (unlikely(key_hash == ((PyASCIIObject*)name_str)->hash)) {
            if (__Pyx_UnicodeKeywordsEqual(name_str, key))
                goto arg_passed_twice;
        }
        #else
        #if CYTHON_ASSUME_SAFE_SIZE
        if (PyUnicode_GET_LENGTH(name_str) == PyUnicode_GET_LENGTH(key))
        #endif
        {
            if (unlikely(name_str == key)) goto arg_passed_twice;
            int cmp = PyUnicode_Compare(name_str, key);
            if (cmp < 0 && unlikely(PyErr_Occurred())) goto bad;
            if (cmp == 0) goto arg_passed_twice;
        }
        #endif
        name++;
    }
    return 0;
arg_passed_twice:
    __Pyx_RaiseDoubleKeywordsError(function_name, key);
    goto bad;
bad:
    return -1;
}
static int __Pyx_MatchKeywordArg_nostr(
    PyObject *key,
    PyObject ** const argnames[],
    PyObject ** const *first_kw_arg,
    size_t *index_found,
    const char *function_name)
{
    PyObject ** const *name;
    if (unlikely(!PyUnicode_Check(key))) goto invalid_keyword_type;
    name = first_kw_arg;
    while (*name) {
        int cmp = PyObject_RichCompareBool(**name, key, Py_EQ);
        if (cmp == 1) {
            *index_found = (size_t) (name - argnames);
            return 1;
        }
        if (unlikely(cmp == -1)) goto bad;
        name++;
    }
    name = argnames;
    while (name != first_kw_arg) {
        int cmp = PyObject_RichCompareBool(**name, key, Py_EQ);
        if (unlikely(cmp != 0)) {
            if (cmp == 1) goto arg_passed_twice;
            else goto bad;
        }
        name++;
    }
    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;
bad:
    return -1;
}
static CYTHON_INLINE int __Pyx_MatchKeywordArg(
    PyObject *key,
    PyObject ** const argnames[],
    PyObject ** const *first_kw_arg,
    size_t *index_found,
    const char *function_name)
{
    return likely(PyUnicode_CheckExact(key)) ?
        __Pyx_MatchKeywordArg_str(key, argnames, first_kw_arg, index_found, function_name) :
        __Pyx_MatchKeywordArg_nostr(key, argnames, first_kw_arg, index_found, function_name);
}
static void __Pyx_RejectUnknownKeyword(
    PyObject *kwds,
    PyObject ** const argnames[],
    PyObject ** const *first_kw_arg,
    const char *function_name)
{
    #if CYTHON_AVOID_BORROWED_REFS
    PyObject *pos = NULL;
    #else
    Py_ssize_t pos = 0;
    #endif
    PyObject *key = NULL;
    __Pyx_BEGIN_CRITICAL_SECTION(kwds);
    while (
        #if CYTHON_AVOID_BORROWED_REFS
        __Pyx_PyDict_NextRef(kwds, &pos, &key, NULL)
        #else
        PyDict_Next(kwds, &pos, &key, NULL)
        #endif
    ) {
        PyObject** const *name = first_kw_arg;
        while (*name && (**name != key)) name++;
        if (!*name) {
            size_t index_found = 0;
            int cmp = __Pyx_MatchKeywordArg(key, argnames, first_kw_arg, &index_found, function_name);
            if (cmp != 1) {
                if (cmp == 0) {
                    PyErr_Format(PyExc_TypeError,
                        "%s() got an unexpected keyword argument '%U'",
                        function_name, key);
                }
                #if CYTHON_AVOID_BORROWED_REFS
                Py_DECREF(key);
                #endif
                break;
            }
        }
        #if CYTHON_AVOID_BORROWED_REFS
        Py_DECREF(key);
        #endif
    }
    __Pyx_END_CRITICAL_SECTION();
    #if CYTHON_AVOID_BORROWED_REFS
    Py_XDECREF(pos);
    #endif
    assert(PyErr_Occurred());
}
static int __Pyx_ParseKeywordDict(
    PyObject *kwds,
    PyObject ** const argnames[],
    PyObject *values[],
    Py_ssize_t num_pos_args,
    Py_ssize_t num_kwargs,
    const char* function_name,
    int ignore_unknown_kwargs)
{
    PyObject** const *name;
    PyObject** const *first_kw_arg = argnames + num_pos_args;
    Py_ssize_t extracted = 0;
#if !CYTHON_COMPILING_IN_PYPY || defined(PyArg_ValidateKeywordArguments)
    if (unlikely(!PyArg_ValidateKeywordArguments(kwds))) return -1;
#endif
    name = first_kw_arg;
    while (*name && num_kwargs > extracted) {
        PyObject * key = **name;
        PyObject *value;
        int found = 0;
        #if __PYX_LIMITED_VERSION_HEX >= 0x030d0000
        found = PyDict_GetItemRef(kwds, key, &value);
        #else
        value = PyDict_GetItemWithError(kwds, key);
        if (value) {
            Py_INCREF(value);
            found = 1;
        } else {
            if (unlikely(PyErr_Occurred())) goto bad;
        }
        #endif
        if (found) {
            if (unlikely(found < 0)) goto bad;
            values[name-argnames] = value;
            extracted++;
        }
        name++;
    }
    if (num_kwargs > extracted) {
        if (ignore_unknown_kwargs) {
            if (unlikely(__Pyx_ValidateDuplicatePosArgs(kwds, argnames, first_kw_arg, function_name) == -1))
                goto bad;
        } else {
            __Pyx_RejectUnknownKeyword(kwds, argnames, first_kw_arg, function_name);
            goto bad;
        }
    }
    return 0;
bad:
    return -1;
}
static int __Pyx_ParseKeywordDictToDict(
    PyObject *kwds,
    PyObject ** const argnames[],
    PyObject *kwds2,
    PyObject *values[],
    Py_ssize_t num_pos_args,
    const char* function_name)
{
    PyObject** const *name;
    PyObject** const *first_kw_arg = argnames + num_pos_args;
    Py_ssize_t len;
#if !CYTHON_COMPILING_IN_PYPY || defined(PyArg_ValidateKeywordArguments)
    if (unlikely(!PyArg_ValidateKeywordArguments(kwds))) return -1;
#endif
    if (PyDict_Update(kwds2, kwds) < 0) goto bad;
    name = first_kw_arg;
    while (*name) {
        PyObject *key = **name;
        PyObject *value;
#if !CYTHON_COMPILING_IN_LIMITED_API && (PY_VERSION_HEX >= 0x030d00A2 || defined(PyDict_Pop))
        int found = PyDict_Pop(kwds2, key, &value);
        if (found) {
            if (unlikely(found < 0)) goto bad;
            values[name-argnames] = value;
        }
#elif __PYX_LIMITED_VERSION_HEX >= 0x030d0000
        int found = PyDict_GetItemRef(kwds2, key, &value);
        if (found) {
            if (unlikely(found < 0)) goto bad;
            values[name-argnames] = value;
            if (unlikely(PyDict_DelItem(kwds2, key) < 0)) goto bad;
        }
#else
    #if CYTHON_COMPILING_IN_CPYTHON
        value = _PyDict_Pop(kwds2, key, kwds2);
    #else
        value = __Pyx_CallUnboundCMethod2(&__pyx_mstate_global->__pyx_umethod_PyDict_Type_pop, kwds2, key, kwds2);
    #endif
        if (value == kwds2) {
            Py_DECREF(value);
        } else {
            if (unlikely(!value)) goto bad;
            values[name-argnames] = value;
        }
#endif
        name++;
    }
    len = PyDict_Size(kwds2);
    if (len > 0) {
        return __Pyx_ValidateDuplicatePosArgs(kwds, argnames, first_kw_arg, function_name);
    } else if (unlikely(len == -1)) {
        goto bad;
    }
    return 0;
bad:
    return -1;
}
static int __Pyx_ParseKeywordsTuple(
    PyObject *kwds,
    PyObject * const *kwvalues,
    PyObject ** const argnames[],
    PyObject *kwds2,
    PyObject *values[],
    Py_ssize_t num_pos_args,
    Py_ssize_t num_kwargs,
    const char* function_name,
    int ignore_unknown_kwargs)
{
    PyObject *key = NULL;
    PyObject** const * name;
    PyObject** const *first_kw_arg = argnames + num_pos_args;
    for (Py_ssize_t pos = 0; pos < num_kwargs; pos++) {
#if CYTHON_AVOID_BORROWED_REFS
        key = __Pyx_PySequence_ITEM(kwds, pos);
#else
        key = __Pyx_PyTuple_GET_ITEM(kwds, pos);
#endif
#if !CYTHON_ASSUME_SAFE_MACROS
        if (unlikely(!key)) goto bad;
#endif
        name = first_kw_arg;
        while (*name && (**name != key)) name++;
        if (*name) {
            PyObject *value = kwvalues[pos];
            values[name-argnames] = __Pyx_NewRef(value);
        } else {
            size_t index_found = 0;
            int cmp = __Pyx_MatchKeywordArg(key, argnames, first_kw_arg, &index_found, function_name);
            if (cmp == 1) {
                PyObject *value = kwvalues[pos];
                values[index_found] = __Pyx_NewRef(value);
            } else {
                if (unlikely(cmp == -1)) goto bad;
                if (kwds2) {
                    PyObject *value = kwvalues[pos];
                    if (unlikely(PyDict_SetItem(kwds2, key, value))) goto bad;
                } else if (!ignore_unknown_kwargs) {
                    goto invalid_keyword;
                }
            }
        }
        #if CYTHON_AVOID_BORROWED_REFS
        Py_DECREF(key);
        key = NULL;
        #endif
    }
    return 0;
invalid_keyword:
    PyErr_Format(PyExc_TypeError,
        "%s() got an unexpected keyword argument '%U'",
        function_name, key);
    goto bad;
bad:
    #if CYTHON_AVOID_BORROWED_REFS
    Py_XDECREF(key);
    #endif
    return -1;
}

/* ParseKeywords */
static int __Pyx_ParseKeywords(
    PyObject *kwds,
    PyObject * const *kwvalues,
    PyObject ** const argnames[],
    PyObject *kwds2,
    PyObject *values[],
    Py_ssize_t num_pos_args,
    Py_ssize_t num_kwargs,
    const char* function_name,
    int ignore_unknown_kwargs)
{
    if (CYTHON_METH_FASTCALL && likely(PyTuple_Check(kwds)))
        return __Pyx_ParseKeywordsTuple(kwds, kwvalues, argnames, kwds2, values, num_pos_args, num_kwargs, function_name, ignore_unknown_kwargs);
    else if (kwds2)
        return __Pyx_ParseKeywordDictToDict(kwds, argnames, kwds2, values, num_pos_args, function_name);
    else
        return __Pyx_ParseKeywordDict(kwds, argnames, values, num_pos_args, num_kwargs, function_name, ignore_unknown_kwargs);
}

/* 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);
}

/* ArgTypeTestFunc (used by ArgTypeTest) */
static int __Pyx__ArgTypeTest(PyObject *obj, PyTypeObject *type, const char *name, int exact)
{
    __Pyx_TypeName type_name;
    __Pyx_TypeName obj_type_name;
    PyObject *extra_info = __pyx_mstate_global->__pyx_empty_unicode;
    int from_annotation_subclass = 0;
    if (unlikely(!type)) {
        PyErr_SetString(PyExc_SystemError, "Missing type object");
        return 0;
    }
    else if (!exact) {
        if (likely(__Pyx_TypeCheck(obj, type))) return 1;
    } else if (exact == 2) {
        if (__Pyx_TypeCheck(obj, type)) {
            from_annotation_subclass = 1;
            extra_info = __pyx_mstate_global->__pyx_kp_u_Note_that_Cython_is_deliberately;
        }
    }
    type_name = __Pyx_PyType_GetFullyQualifiedName(type);
    obj_type_name = __Pyx_PyType_GetFullyQualifiedName(Py_TYPE(obj));
    PyErr_Format(PyExc_TypeError,
        "Argument '%.200s' has incorrect type (expected " __Pyx_FMT_TYPENAME
        ", got " __Pyx_FMT_TYPENAME ")"
#if __PYX_LIMITED_VERSION_HEX < 0x030C0000
        "%s%U"
#endif
        , name, type_name, obj_type_name
#if __PYX_LIMITED_VERSION_HEX < 0x030C0000
        , (from_annotation_subclass ? ". " : ""), extra_info
#endif
        );
#if __PYX_LIMITED_VERSION_HEX >= 0x030C0000
    if (exact == 2 && from_annotation_subclass) {
        PyObject *res;
        PyObject *vargs[2];
        vargs[0] = PyErr_GetRaisedException();
        vargs[1] = extra_info;
        res = PyObject_VectorcallMethod(__pyx_mstate_global->__pyx_kp_u_add_note, vargs, 2, NULL);
        Py_XDECREF(res);
        PyErr_SetRaisedException(vargs[0]);
    }
#endif
    __Pyx_DECREF_TypeName(type_name);
    __Pyx_DECREF_TypeName(obj_type_name);
    return 0;
}

/* PyErrFetchRestore (used by RaiseException) */
#if CYTHON_FAST_THREAD_STATE
static CYTHON_INLINE void __Pyx_ErrRestoreInState(PyThreadState *tstate, PyObject *type, PyObject *value, PyObject *tb) {
#if PY_VERSION_HEX >= 0x030C00A6
    PyObject *tmp_value;
    assert(type == NULL || (value != NULL && type == (PyObject*) Py_TYPE(value)));
    if (value) {
        #if CYTHON_COMPILING_IN_CPYTHON
        if (unlikely(((PyBaseExceptionObject*) value)->traceback != tb))
        #endif
            PyException_SetTraceback(value, tb);
    }
    tmp_value = tstate->current_exception;
    tstate->current_exception = value;
    Py_XDECREF(tmp_value);
    Py_XDECREF(type);
    Py_XDECREF(tb);
#else
    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);
#endif
}
static CYTHON_INLINE void __Pyx_ErrFetchInState(PyThreadState *tstate, PyObject **type, PyObject **value, PyObject **tb) {
#if PY_VERSION_HEX >= 0x030C00A6
    PyObject* exc_value;
    exc_value = tstate->current_exception;
    tstate->current_exception = 0;
    *value = exc_value;
    *type = NULL;
    *tb = NULL;
    if (exc_value) {
        *type = (PyObject*) Py_TYPE(exc_value);
        Py_INCREF(*type);
        #if CYTHON_COMPILING_IN_CPYTHON
        *tb = ((PyBaseExceptionObject*) exc_value)->traceback;
        Py_XINCREF(*tb);
        #else
        *tb = PyException_GetTraceback(exc_value);
        #endif
    }
#else
    *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
}
#endif

/* RaiseException */
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 PY_VERSION_HEX >= 0x030C00A6
        PyException_SetTraceback(value, tb);
#elif 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;
}

/* PyErrExceptionMatches (used by PyObjectGetAttrStrNoError) */
#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);
    for (i=0; i<n; i++) {
        if (exc_type == PyTuple_GET_ITEM(tuple, i)) return 1;
    }
    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) {
    int result;
    PyObject *exc_type;
#if PY_VERSION_HEX >= 0x030C00A6
    PyObject *current_exception = tstate->current_exception;
    if (unlikely(!current_exception)) return 0;
    exc_type = (PyObject*) Py_TYPE(current_exception);
    if (exc_type == err) return 1;
#else
    exc_type = tstate->curexc_type;
    if (exc_type == err) return 1;
    if (unlikely(!exc_type)) return 0;
#endif
    #if CYTHON_AVOID_BORROWED_REFS
    Py_INCREF(exc_type);
    #endif
    if (unlikely(PyTuple_Check(err))) {
        result = __Pyx_PyErr_ExceptionMatchesTuple(exc_type, err);
    } else {
        result = __Pyx_PyErr_GivenExceptionMatches(exc_type, err);
    }
    #if CYTHON_AVOID_BORROWED_REFS
    Py_DECREF(exc_type);
    #endif
    return result;
}
#endif

/* PyObjectGetAttrStrNoError (used by GetBuiltinName) */
#if __PYX_LIMITED_VERSION_HEX < 0x030d0000
static void __Pyx_PyObject_GetAttrStr_ClearAttributeError(void) {
    __Pyx_PyThreadState_declare
    __Pyx_PyThreadState_assign
    if (likely(__Pyx_PyErr_ExceptionMatches(PyExc_AttributeError)))
        __Pyx_PyErr_Clear();
}
#endif
static CYTHON_INLINE PyObject* __Pyx_PyObject_GetAttrStrNoError(PyObject* obj, PyObject* attr_name) {
    PyObject *result;
#if __PYX_LIMITED_VERSION_HEX >= 0x030d0000
    (void) PyObject_GetOptionalAttr(obj, attr_name, &result);
    return result;
#else
#if CYTHON_COMPILING_IN_CPYTHON && CYTHON_USE_TYPE_SLOTS
    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;
#endif
}

/* GetBuiltinName (used by GetModuleGlobalName) */
static PyObject *__Pyx_GetBuiltinName(PyObject *name) {
    PyObject* result = __Pyx_PyObject_GetAttrStrNoError(__pyx_mstate_global->__pyx_b, name);
    if (unlikely(!result) && !PyErr_Occurred()) {
        PyErr_Format(PyExc_NameError,
            "name '%U' is not defined", name);
    }
    return result;
}

/* PyDictVersioning (used by GetModuleGlobalName) */
#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_COMPILING_IN_LIMITED_API
    if (unlikely(!__pyx_m)) {
        if (!PyErr_Occurred())
            PyErr_SetNone(PyExc_NameError);
        return NULL;
    }
    result = PyObject_GetAttr(__pyx_m, name);
    if (likely(result)) {
        return result;
    }
    PyErr_Clear();
#elif CYTHON_AVOID_BORROWED_REFS || CYTHON_AVOID_THREAD_UNSAFE_BORROWED_REFS
    if (unlikely(__Pyx_PyDict_GetItemRef(__pyx_mstate_global->__pyx_d, name, &result) == -1)) PyErr_Clear();
    __PYX_UPDATE_DICT_CACHE(__pyx_mstate_global->__pyx_d, result, *dict_cached_value, *dict_version)
    if (likely(result)) {
        return result;
    }
#else
    result = _PyDict_GetItem_KnownHash(__pyx_mstate_global->__pyx_d, name, ((PyASCIIObject *) name)->hash);
    __PYX_UPDATE_DICT_CACHE(__pyx_mstate_global->__pyx_d, result, *dict_cached_value, *dict_version)
    if (likely(result)) {
        return __Pyx_NewRef(result);
    }
    PyErr_Clear();
#endif
    return __Pyx_GetBuiltinName(name);
}

/* GetItemInt */
static PyObject *__Pyx_GetItemInt_Generic(PyObject *o, PyObject* j) {
    PyObject *r;
    if (unlikely(!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,
                                                              int wraparound, int boundscheck, int unsafe_shared) {
    CYTHON_MAYBE_UNUSED_VAR(unsafe_shared);
#if CYTHON_ASSUME_SAFE_SIZE
    Py_ssize_t wrapped_i = i;
    if (wraparound & unlikely(i < 0)) {
        wrapped_i += PyList_GET_SIZE(o);
    }
    if ((CYTHON_AVOID_BORROWED_REFS || CYTHON_AVOID_THREAD_UNSAFE_BORROWED_REFS || !CYTHON_ASSUME_SAFE_MACROS)) {
        return __Pyx_PyList_GetItemRefFast(o, wrapped_i, unsafe_shared);
    } else
    if ((!boundscheck) || likely(__Pyx_is_valid_index(wrapped_i, PyList_GET_SIZE(o)))) {
        return __Pyx_NewRef(PyList_GET_ITEM(o, wrapped_i));
    }
    return __Pyx_GetItemInt_Generic(o, PyLong_FromSsize_t(i));
#else
    (void)wraparound;
    (void)boundscheck;
    return PySequence_GetItem(o, i);
#endif
}
static CYTHON_INLINE PyObject *__Pyx_GetItemInt_Tuple_Fast(PyObject *o, Py_ssize_t i,
                                                              int wraparound, int boundscheck, int unsafe_shared) {
    CYTHON_MAYBE_UNUSED_VAR(unsafe_shared);
#if CYTHON_ASSUME_SAFE_SIZE && 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)))) {
        return __Pyx_NewRef(PyTuple_GET_ITEM(o, wrapped_i));
    }
    return __Pyx_GetItemInt_Generic(o, PyLong_FromSsize_t(i));
#else
    (void)wraparound;
    (void)boundscheck;
    return PySequence_GetItem(o, i);
#endif
}
static CYTHON_INLINE PyObject *__Pyx_GetItemInt_Fast(PyObject *o, Py_ssize_t i, int is_list,
                                                     int wraparound, int boundscheck, int unsafe_shared) {
    CYTHON_MAYBE_UNUSED_VAR(unsafe_shared);
#if CYTHON_ASSUME_SAFE_MACROS && CYTHON_ASSUME_SAFE_SIZE
    if (is_list || PyList_CheckExact(o)) {
        Py_ssize_t n = ((!wraparound) | likely(i >= 0)) ? i : i + PyList_GET_SIZE(o);
        if ((CYTHON_AVOID_BORROWED_REFS || CYTHON_AVOID_THREAD_UNSAFE_BORROWED_REFS)) {
            return __Pyx_PyList_GetItemRefFast(o, n, unsafe_shared);
        } else if ((!boundscheck) || (likely(__Pyx_is_valid_index(n, PyList_GET_SIZE(o))))) {
            return __Pyx_NewRef(PyList_GET_ITEM(o, n));
        }
    } else
    #if !CYTHON_AVOID_BORROWED_REFS
    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)))) {
            return __Pyx_NewRef(PyTuple_GET_ITEM(o, n));
        }
    } else
    #endif
#endif
#if CYTHON_USE_TYPE_SLOTS && !CYTHON_COMPILING_IN_PYPY
    {
        PyMappingMethods *mm = Py_TYPE(o)->tp_as_mapping;
        PySequenceMethods *sm = Py_TYPE(o)->tp_as_sequence;
        if (!is_list && mm && mm->mp_subscript) {
            PyObject *r, *key = PyLong_FromSsize_t(i);
            if (unlikely(!key)) return NULL;
            r = mm->mp_subscript(o, key);
            Py_DECREF(key);
            return r;
        }
        if (is_list || likely(sm && sm->sq_item)) {
            if (wraparound && unlikely(i < 0) && likely(sm->sq_length)) {
                Py_ssize_t l = sm->sq_length(o);
                if (likely(l >= 0)) {
                    i += l;
                } else {
                    if (!PyErr_ExceptionMatches(PyExc_OverflowError))
                        return NULL;
                    PyErr_Clear();
                }
            }
            return sm->sq_item(o, i);
        }
    }
#else
    if (is_list || !PyMapping_Check(o)) {
        return PySequence_GetItem(o, i);
    }
#endif
    (void)wraparound;
    (void)boundscheck;
    return __Pyx_GetItemInt_Generic(o, PyLong_FromSsize_t(i));
}

/* PyLongBinop */
#if !CYTHON_COMPILING_IN_PYPY
static PyObject* __Pyx_Fallback___Pyx_PyLong_MultiplyObjC(PyObject *op1, PyObject *op2, int inplace) {
    return (inplace ? PyNumber_InPlaceMultiply : PyNumber_Multiply)(op1, op2);
}
#if CYTHON_USE_PYLONG_INTERNALS
static PyObject* __Pyx_Unpacked___Pyx_PyLong_MultiplyObjC(PyObject *op1, PyObject *op2, long intval, int inplace, int zerodivision_check) {
    CYTHON_MAYBE_UNUSED_VAR(inplace);
    CYTHON_UNUSED_VAR(zerodivision_check);
    const long b = intval;
    long a;
    const PY_LONG_LONG llb = intval;
    PY_LONG_LONG lla;
    if (unlikely(__Pyx_PyLong_IsZero(op1))) {
        return __Pyx_NewRef(op1);
    }
    const int is_positive = __Pyx_PyLong_IsPos(op1);
    const digit* digits = __Pyx_PyLong_Digits(op1);
    const Py_ssize_t size = __Pyx_PyLong_DigitCount(op1);
    if (likely(size == 1)) {
        a = (long) digits[0];
        if (!is_positive) a *= -1;
    } else {
        switch (size) {
            case 2:
                if (8 * sizeof(long) - 1 > 2 * PyLong_SHIFT+30) {
                    a = (long) (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]));
                    if (!is_positive) a *= -1;
                    goto calculate_long;
                } else if (8 * sizeof(PY_LONG_LONG) - 1 > 2 * PyLong_SHIFT+30) {
                    lla = (PY_LONG_LONG) (((((unsigned PY_LONG_LONG)digits[1]) << PyLong_SHIFT) | (unsigned PY_LONG_LONG)digits[0]));
                    if (!is_positive) lla *= -1;
                    goto calculate_long_long;
                }
                break;
            case 3:
                if (8 * sizeof(long) - 1 > 3 * PyLong_SHIFT+30) {
                    a = (long) (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]));
                    if (!is_positive) a *= -1;
                    goto calculate_long;
                } else if (8 * sizeof(PY_LONG_LONG) - 1 > 3 * PyLong_SHIFT+30) {
                    lla = (PY_LONG_LONG) (((((((unsigned PY_LONG_LONG)digits[2]) << PyLong_SHIFT) | (unsigned PY_LONG_LONG)digits[1]) << PyLong_SHIFT) | (unsigned PY_LONG_LONG)digits[0]));
                    if (!is_positive) lla *= -1;
                    goto calculate_long_long;
                }
                break;
            case 4:
                if (8 * sizeof(long) - 1 > 4 * PyLong_SHIFT+30) {
                    a = (long) (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]));
                    if (!is_positive) a *= -1;
                    goto calculate_long;
                } else if (8 * sizeof(PY_LONG_LONG) - 1 > 4 * PyLong_SHIFT+30) {
                    lla = (PY_LONG_LONG) (((((((((unsigned PY_LONG_LONG)digits[3]) << PyLong_SHIFT) | (unsigned PY_LONG_LONG)digits[2]) << PyLong_SHIFT) | (unsigned PY_LONG_LONG)digits[1]) << PyLong_SHIFT) | (unsigned PY_LONG_LONG)digits[0]));
                    if (!is_positive) lla *= -1;
                    goto calculate_long_long;
                }
                break;
        }
        return PyLong_Type.tp_as_number->nb_multiply(op1, op2);
    }
    calculate_long:
        CYTHON_UNUSED_VAR(a);
        CYTHON_UNUSED_VAR(b);
        lla = a;
        goto calculate_long_long;
    calculate_long_long:
        {
            PY_LONG_LONG llx;
            llx = lla * llb;
            return PyLong_FromLongLong(llx);
        }
    
}
#endif
static PyObject* __Pyx_Float___Pyx_PyLong_MultiplyObjC(PyObject *float_val, long intval, int zerodivision_check) {
    CYTHON_UNUSED_VAR(zerodivision_check);
    const long b = intval;
    double a = __Pyx_PyFloat_AS_DOUBLE(float_val);
        double result;
        
        result = ((double)a) * (double)b;
        return PyFloat_FromDouble(result);
}
static CYTHON_INLINE PyObject* __Pyx_PyLong_MultiplyObjC(PyObject *op1, PyObject *op2, long intval, int inplace, int zerodivision_check) {
    CYTHON_MAYBE_UNUSED_VAR(intval);
    CYTHON_UNUSED_VAR(zerodivision_check);
    #if CYTHON_USE_PYLONG_INTERNALS
    if (likely(PyLong_CheckExact(op1))) {
        return __Pyx_Unpacked___Pyx_PyLong_MultiplyObjC(op1, op2, intval, inplace, zerodivision_check);
    }
    #endif
    if (PyFloat_CheckExact(op1)) {
        return __Pyx_Float___Pyx_PyLong_MultiplyObjC(op1, intval, zerodivision_check);
    }
    return __Pyx_Fallback___Pyx_PyLong_MultiplyObjC(op1, op2, inplace);
}
#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 = NULL, *local_value, *local_tb = NULL;
#if CYTHON_FAST_THREAD_STATE
    PyObject *tmp_type, *tmp_value, *tmp_tb;
  #if PY_VERSION_HEX >= 0x030C0000
    local_value = tstate->current_exception;
    tstate->current_exception = 0;
  #else
    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;
  #endif
#elif __PYX_LIMITED_VERSION_HEX > 0x030C0000
    local_value = PyErr_GetRaisedException();
#else
    PyErr_Fetch(&local_type, &local_value, &local_tb);
#endif
#if __PYX_LIMITED_VERSION_HEX > 0x030C0000
    if (likely(local_value)) {
        local_type = (PyObject*) Py_TYPE(local_value);
        Py_INCREF(local_type);
        local_tb = PyException_GetTraceback(local_value);
    }
#else
    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 (local_tb) {
        if (unlikely(PyException_SetTraceback(local_value, local_tb) < 0))
            goto bad;
    }
#endif // __PYX_LIMITED_VERSION_HEX > 0x030C0000
    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;
      #if PY_VERSION_HEX >= 0x030B00a4
        tmp_value = exc_info->exc_value;
        exc_info->exc_value = local_value;
        tmp_type = NULL;
        tmp_tb = NULL;
        Py_XDECREF(local_type);
        Py_XDECREF(local_tb);
      #else
        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;
      #endif
    }
    #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);
#elif __PYX_LIMITED_VERSION_HEX >= 0x030b0000
    PyErr_SetHandledException(local_value);
    Py_XDECREF(local_value);
    Py_XDECREF(local_type);
    Py_XDECREF(local_tb);
#else
    PyErr_SetExcInfo(local_type, local_value, local_tb);
#endif
    return 0;
#if __PYX_LIMITED_VERSION_HEX <= 0x030C0000
bad:
    *type = 0;
    *value = 0;
    *tb = 0;
    Py_XDECREF(local_type);
    Py_XDECREF(local_value);
    Py_XDECREF(local_tb);
    return -1;
#endif
}

/* SwapException */
#if CYTHON_FAST_THREAD_STATE
static CYTHON_INLINE void __Pyx__ExceptionSwap(PyThreadState *tstate, PyObject **type, PyObject **value, PyObject **tb) {
    PyObject *tmp_type, *tmp_value, *tmp_tb;
  #if CYTHON_USE_EXC_INFO_STACK && PY_VERSION_HEX >= 0x030B00a4
    _PyErr_StackItem *exc_info = tstate->exc_info;
    tmp_value = exc_info->exc_value;
    exc_info->exc_value = *value;
    if (tmp_value == NULL || tmp_value == Py_None) {
        Py_XDECREF(tmp_value);
        tmp_value = NULL;
        tmp_type = NULL;
        tmp_tb = NULL;
    } else {
        tmp_type = (PyObject*) Py_TYPE(tmp_value);
        Py_INCREF(tmp_type);
        #if CYTHON_COMPILING_IN_CPYTHON
        tmp_tb = ((PyBaseExceptionObject*) tmp_value)->traceback;
        Py_XINCREF(tmp_tb);
        #else
        tmp_tb = PyException_GetTraceback(tmp_value);
        #endif
    }
  #elif 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
    *type = tmp_type;
    *value = tmp_value;
    *tb = tmp_tb;
}
#else
static CYTHON_INLINE void __Pyx_ExceptionSwap(PyObject **type, PyObject **value, PyObject **tb) {
    PyObject *tmp_type, *tmp_value, *tmp_tb;
    PyErr_GetExcInfo(&tmp_type, &tmp_value, &tmp_tb);
    PyErr_SetExcInfo(*type, *value, *tb);
    *type = tmp_type;
    *value = tmp_value;
    *tb = tmp_tb;
}
#endif

/* GetTopmostException (used by SaveResetException) */
#if CYTHON_USE_EXC_INFO_STACK && CYTHON_FAST_THREAD_STATE
static _PyErr_StackItem *
__Pyx_PyErr_GetTopmostException(PyThreadState *tstate)
{
    _PyErr_StackItem *exc_info = tstate->exc_info;
    while ((exc_info->exc_value == NULL || exc_info->exc_value == 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 && PY_VERSION_HEX >= 0x030B00a4
    _PyErr_StackItem *exc_info = __Pyx_PyErr_GetTopmostException(tstate);
    PyObject *exc_value = exc_info->exc_value;
    if (exc_value == NULL || exc_value == Py_None) {
        *value = NULL;
        *type = NULL;
        *tb = NULL;
    } else {
        *value = exc_value;
        Py_INCREF(*value);
        *type = (PyObject*) Py_TYPE(exc_value);
        Py_INCREF(*type);
        *tb = PyException_GetTraceback(exc_value);
    }
  #elif 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;
    Py_XINCREF(*type);
    Py_XINCREF(*value);
    Py_XINCREF(*tb);
  #else
    *type = tstate->exc_type;
    *value = tstate->exc_value;
    *tb = tstate->exc_traceback;
    Py_XINCREF(*type);
    Py_XINCREF(*value);
    Py_XINCREF(*tb);
  #endif
}
static CYTHON_INLINE void __Pyx__ExceptionReset(PyThreadState *tstate, PyObject *type, PyObject *value, PyObject *tb) {
  #if CYTHON_USE_EXC_INFO_STACK && PY_VERSION_HEX >= 0x030B00a4
    _PyErr_StackItem *exc_info = tstate->exc_info;
    PyObject *tmp_value = exc_info->exc_value;
    exc_info->exc_value = value;
    Py_XDECREF(tmp_value);
    Py_XDECREF(type);
    Py_XDECREF(tb);
  #else
    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
}
#endif

/* AllocateExtensionType */
static PyObject *__Pyx_AllocateExtensionType(PyTypeObject *t, int is_final) {
    if (is_final || likely(!__Pyx_PyType_HasFeature(t, Py_TPFLAGS_IS_ABSTRACT))) {
        allocfunc alloc_func = __Pyx_PyType_GetSlot(t, tp_alloc, allocfunc);
        return alloc_func(t, 0);
    } else {
        newfunc tp_new = __Pyx_PyType_TryGetSlot(&PyBaseObject_Type, tp_new, newfunc);
    #if CYTHON_COMPILING_IN_LIMITED_API && __PYX_LIMITED_VERSION_HEX < 0x030A0000
        if (!tp_new) {
            PyObject *new_str = PyUnicode_FromString("__new__");
            if (likely(new_str)) {
                PyObject *o = PyObject_CallMethodObjArgs((PyObject *)&PyBaseObject_Type, new_str, t, NULL);
                Py_DECREF(new_str);
                return o;
            } else
                return NULL;
        } else
    #endif
        return tp_new(t, __pyx_mstate_global->__pyx_empty_tuple, 0);
    }
}

/* CallTypeTraverse */
#if !CYTHON_USE_TYPE_SPECS || (!CYTHON_COMPILING_IN_LIMITED_API && PY_VERSION_HEX < 0x03090000)
#else
static int __Pyx_call_type_traverse(PyObject *o, int always_call, visitproc visit, void *arg) {
    #if CYTHON_COMPILING_IN_LIMITED_API && __PYX_LIMITED_VERSION_HEX < 0x03090000
    if (__Pyx_get_runtime_version() < 0x03090000) return 0;
    #endif
    if (!always_call) {
        PyTypeObject *base = __Pyx_PyObject_GetSlot(o, tp_base, PyTypeObject*);
        unsigned long flags = PyType_GetFlags(base);
        if (flags & Py_TPFLAGS_HEAPTYPE) {
            return 0;
        }
    }
    Py_VISIT((PyObject*)Py_TYPE(o));
    return 0;
}
#endif

/* LimitedApiGetTypeDict (used by SetItemOnTypeDict) */
#if CYTHON_COMPILING_IN_LIMITED_API
static Py_ssize_t __Pyx_GetTypeDictOffset(void) {
    PyObject *tp_dictoffset_o;
    Py_ssize_t tp_dictoffset;
    tp_dictoffset_o = PyObject_GetAttrString((PyObject*)(&PyType_Type), "__dictoffset__");
    if (unlikely(!tp_dictoffset_o)) return -1;
    tp_dictoffset = PyLong_AsSsize_t(tp_dictoffset_o);
    Py_DECREF(tp_dictoffset_o);
    if (unlikely(tp_dictoffset == 0)) {
        PyErr_SetString(
            PyExc_TypeError,
            "'type' doesn't have a dictoffset");
        return -1;
    } else if (unlikely(tp_dictoffset < 0)) {
        PyErr_SetString(
            PyExc_TypeError,
            "'type' has an unexpected negative dictoffset. "
            "Please report this as Cython bug");
        return -1;
    }
    return tp_dictoffset;
}
static PyObject *__Pyx_GetTypeDict(PyTypeObject *tp) {
    static Py_ssize_t tp_dictoffset = 0;
    if (unlikely(tp_dictoffset == 0)) {
        tp_dictoffset = __Pyx_GetTypeDictOffset();
        if (unlikely(tp_dictoffset == -1 && PyErr_Occurred())) {
            tp_dictoffset = 0; // try again next time?
            return NULL;
        }
    }
    return *(PyObject**)((char*)tp + tp_dictoffset);
}
#endif

/* SetItemOnTypeDict (used by FixUpExtensionType) */
static int __Pyx__SetItemOnTypeDict(PyTypeObject *tp, PyObject *k, PyObject *v) {
    int result;
    PyObject *tp_dict;
#if CYTHON_COMPILING_IN_LIMITED_API
    tp_dict = __Pyx_GetTypeDict(tp);
    if (unlikely(!tp_dict)) return -1;
#else
    tp_dict = tp->tp_dict;
#endif
    result = PyDict_SetItem(tp_dict, k, v);
    if (likely(!result)) {
        PyType_Modified(tp);
        if (unlikely(PyObject_HasAttr(v, __pyx_mstate_global->__pyx_n_u_set_name))) {
            PyObject *setNameResult = PyObject_CallMethodObjArgs(v, __pyx_mstate_global->__pyx_n_u_set_name,  (PyObject *) tp, k, NULL);
            if (!setNameResult) return -1;
            Py_DECREF(setNameResult);
        }
    }
    return result;
}

/* FixUpExtensionType */
static int __Pyx_fix_up_extension_type_from_spec(PyType_Spec *spec, PyTypeObject *type) {
#if __PYX_LIMITED_VERSION_HEX > 0x030900B1
    CYTHON_UNUSED_VAR(spec);
    CYTHON_UNUSED_VAR(type);
    CYTHON_UNUSED_VAR(__Pyx__SetItemOnTypeDict);
#else
    const PyType_Slot *slot = spec->slots;
    int changed = 0;
#if !CYTHON_COMPILING_IN_LIMITED_API
    while (slot && slot->slot && slot->slot != Py_tp_members)
        slot++;
    if (slot && slot->slot == Py_tp_members) {
#if !CYTHON_COMPILING_IN_CPYTHON
        const
#endif  // !CYTHON_COMPILING_IN_CPYTHON)
            PyMemberDef *memb = (PyMemberDef*) slot->pfunc;
        while (memb && memb->name) {
            if (memb->name[0] == '_' && memb->name[1] == '_') {
                if (strcmp(memb->name, "__weaklistoffset__") == 0) {
                    assert(memb->type == T_PYSSIZET);
                    assert(memb->flags == READONLY);
                    type->tp_weaklistoffset = memb->offset;
                    changed = 1;
                }
                else if (strcmp(memb->name, "__dictoffset__") == 0) {
                    assert(memb->type == T_PYSSIZET);
                    assert(memb->flags == READONLY);
                    type->tp_dictoffset = memb->offset;
                    changed = 1;
                }
#if CYTHON_METH_FASTCALL
                else if (strcmp(memb->name, "__vectorcalloffset__") == 0) {
                    assert(memb->type == T_PYSSIZET);
                    assert(memb->flags == READONLY);
                    type->tp_vectorcall_offset = memb->offset;
                    changed = 1;
                }
#endif  // CYTHON_METH_FASTCALL
#if !CYTHON_COMPILING_IN_PYPY
                else if (strcmp(memb->name, "__module__") == 0) {
                    PyObject *descr;
                    assert(memb->type == T_OBJECT);
                    assert(memb->flags == 0 || memb->flags == READONLY);
                    descr = PyDescr_NewMember(type, memb);
                    if (unlikely(!descr))
                        return -1;
                    int set_item_result = PyDict_SetItem(type->tp_dict, PyDescr_NAME(descr), descr);
                    Py_DECREF(descr);
                    if (unlikely(set_item_result < 0)) {
                        return -1;
                    }
                    changed = 1;
                }
#endif  // !CYTHON_COMPILING_IN_PYPY
            }
            memb++;
        }
    }
#endif  // !CYTHON_COMPILING_IN_LIMITED_API
#if !CYTHON_COMPILING_IN_PYPY
    slot = spec->slots;
    while (slot && slot->slot && slot->slot != Py_tp_getset)
        slot++;
    if (slot && slot->slot == Py_tp_getset) {
        PyGetSetDef *getset = (PyGetSetDef*) slot->pfunc;
        while (getset && getset->name) {
            if (getset->name[0] == '_' && getset->name[1] == '_' && strcmp(getset->name, "__module__") == 0) {
                PyObject *descr = PyDescr_NewGetSet(type, getset);
                if (unlikely(!descr))
                    return -1;
                #if CYTHON_COMPILING_IN_LIMITED_API
                PyObject *pyname = PyUnicode_FromString(getset->name);
                if (unlikely(!pyname)) {
                    Py_DECREF(descr);
                    return -1;
                }
                int set_item_result = __Pyx_SetItemOnTypeDict(type, pyname, descr);
                Py_DECREF(pyname);
                #else
                CYTHON_UNUSED_VAR(__Pyx__SetItemOnTypeDict);
                int set_item_result = PyDict_SetItem(type->tp_dict, PyDescr_NAME(descr), descr);
                #endif
                Py_DECREF(descr);
                if (unlikely(set_item_result < 0)) {
                    return -1;
                }
                changed = 1;
            }
            ++getset;
        }
    }
#else
    CYTHON_UNUSED_VAR(__Pyx__SetItemOnTypeDict);
#endif  // !CYTHON_COMPILING_IN_PYPY
    if (changed)
        PyType_Modified(type);
#endif  // PY_VERSION_HEX > 0x030900B1
    return 0;
}

/* PyObjectCallNoArg (used by PyObjectCallMethod0) */
static CYTHON_INLINE PyObject* __Pyx_PyObject_CallNoArg(PyObject *func) {
    PyObject *arg[2] = {NULL, NULL};
    return __Pyx_PyObject_FastCall(func, arg + 1, 0 | __Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET);
}

/* PyObjectGetMethod (used by PyObjectCallMethod0) */
#if !(CYTHON_VECTORCALL && (__PYX_LIMITED_VERSION_HEX >= 0x030C0000 || (!CYTHON_COMPILING_IN_LIMITED_API && PY_VERSION_HEX >= 0x03090000)))
static int __Pyx_PyObject_GetMethod(PyObject *obj, PyObject *name, PyObject **method) {
    PyObject *attr;
#if CYTHON_UNPACK_METHODS && CYTHON_COMPILING_IN_CPYTHON && CYTHON_USE_PYTYPE_LOOKUP
    __Pyx_TypeName type_name;
    PyTypeObject *tp = Py_TYPE(obj);
    PyObject *descr;
    descrgetfunc f = NULL;
    PyObject **dictptr, *dict;
    int meth_found = 0;
    assert (*method == NULL);
    if (unlikely(tp->tp_getattro != PyObject_GenericGetAttr)) {
        attr = __Pyx_PyObject_GetAttrStr(obj, name);
        goto try_unpack;
    }
    if (unlikely(tp->tp_dict == NULL) && unlikely(PyType_Ready(tp) < 0)) {
        return 0;
    }
    descr = _PyType_Lookup(tp, name);
    if (likely(descr != NULL)) {
        Py_INCREF(descr);
#if defined(Py_TPFLAGS_METHOD_DESCRIPTOR) && Py_TPFLAGS_METHOD_DESCRIPTOR
        if (__Pyx_PyType_HasFeature(Py_TYPE(descr), Py_TPFLAGS_METHOD_DESCRIPTOR))
#else
        #ifdef __Pyx_CyFunction_USED
        if (likely(PyFunction_Check(descr) || __Pyx_IS_TYPE(descr, &PyMethodDescr_Type) || __Pyx_CyFunction_Check(descr)))
        #else
        if (likely(PyFunction_Check(descr) || __Pyx_IS_TYPE(descr, &PyMethodDescr_Type)))
        #endif
#endif
        {
            meth_found = 1;
        } else {
            f = Py_TYPE(descr)->tp_descr_get;
            if (f != NULL && PyDescr_IsData(descr)) {
                attr = f(descr, obj, (PyObject *)Py_TYPE(obj));
                Py_DECREF(descr);
                goto try_unpack;
            }
        }
    }
    dictptr = _PyObject_GetDictPtr(obj);
    if (dictptr != NULL && (dict = *dictptr) != NULL) {
        Py_INCREF(dict);
        attr = __Pyx_PyDict_GetItemStr(dict, name);
        if (attr != NULL) {
            Py_INCREF(attr);
            Py_DECREF(dict);
            Py_XDECREF(descr);
            goto try_unpack;
        }
        Py_DECREF(dict);
    }
    if (meth_found) {
        *method = descr;
        return 1;
    }
    if (f != NULL) {
        attr = f(descr, obj, (PyObject *)Py_TYPE(obj));
        Py_DECREF(descr);
        goto try_unpack;
    }
    if (likely(descr != NULL)) {
        *method = descr;
        return 0;
    }
    type_name = __Pyx_PyType_GetFullyQualifiedName(tp);
    PyErr_Format(PyExc_AttributeError,
                 "'" __Pyx_FMT_TYPENAME "' object has no attribute '%U'",
                 type_name, name);
    __Pyx_DECREF_TypeName(type_name);
    return 0;
#else
    attr = __Pyx_PyObject_GetAttrStr(obj, name);
    goto try_unpack;
#endif
try_unpack:
#if CYTHON_UNPACK_METHODS
    if (likely(attr) && PyMethod_Check(attr) && likely(PyMethod_GET_SELF(attr) == obj)) {
        PyObject *function = PyMethod_GET_FUNCTION(attr);
        Py_INCREF(function);
        Py_DECREF(attr);
        *method = function;
        return 1;
    }
#endif
    *method = attr;
    return 0;
}
#endif

/* PyObjectCallMethod0 (used by PyType_Ready) */
static PyObject* __Pyx_PyObject_CallMethod0(PyObject* obj, PyObject* method_name) {
#if CYTHON_VECTORCALL && (__PYX_LIMITED_VERSION_HEX >= 0x030C0000 || (!CYTHON_COMPILING_IN_LIMITED_API && PY_VERSION_HEX >= 0x03090000))
    PyObject *args[1] = {obj};
    (void) __Pyx_PyObject_CallOneArg;
    (void) __Pyx_PyObject_CallNoArg;
    return PyObject_VectorcallMethod(method_name, args, 1 | PY_VECTORCALL_ARGUMENTS_OFFSET, NULL);
#else
    PyObject *method = NULL, *result = NULL;
    int is_method = __Pyx_PyObject_GetMethod(obj, method_name, &method);
    if (likely(is_method)) {
        result = __Pyx_PyObject_CallOneArg(method, obj);
        Py_DECREF(method);
        return result;
    }
    if (unlikely(!method)) goto bad;
    result = __Pyx_PyObject_CallNoArg(method);
    Py_DECREF(method);
bad:
    return result;
#endif
}

/* ValidateBasesTuple (used by PyType_Ready) */
#if CYTHON_COMPILING_IN_CPYTHON || CYTHON_COMPILING_IN_LIMITED_API || CYTHON_USE_TYPE_SPECS
static int __Pyx_validate_bases_tuple(const char *type_name, Py_ssize_t dictoffset, PyObject *bases) {
    Py_ssize_t i, n;
#if CYTHON_ASSUME_SAFE_SIZE
    n = PyTuple_GET_SIZE(bases);
#else
    n = PyTuple_Size(bases);
    if (unlikely(n < 0)) return -1;
#endif
    for (i = 1; i < n; i++)
    {
        PyTypeObject *b;
#if CYTHON_AVOID_BORROWED_REFS
        PyObject *b0 = PySequence_GetItem(bases, i);
        if (!b0) return -1;
#elif CYTHON_ASSUME_SAFE_MACROS
        PyObject *b0 = PyTuple_GET_ITEM(bases, i);
#else
        PyObject *b0 = PyTuple_GetItem(bases, i);
        if (!b0) return -1;
#endif
        b = (PyTypeObject*) b0;
        if (!__Pyx_PyType_HasFeature(b, Py_TPFLAGS_HEAPTYPE))
        {
            __Pyx_TypeName b_name = __Pyx_PyType_GetFullyQualifiedName(b);
            PyErr_Format(PyExc_TypeError,
                "base class '" __Pyx_FMT_TYPENAME "' is not a heap type", b_name);
            __Pyx_DECREF_TypeName(b_name);
#if CYTHON_AVOID_BORROWED_REFS
            Py_DECREF(b0);
#endif
            return -1;
        }
        if (dictoffset == 0)
        {
            Py_ssize_t b_dictoffset = 0;
#if CYTHON_USE_TYPE_SLOTS
            b_dictoffset = b->tp_dictoffset;
#else
            PyObject *py_b_dictoffset = PyObject_GetAttrString((PyObject*)b, "__dictoffset__");
            if (!py_b_dictoffset) goto dictoffset_return;
            b_dictoffset = PyLong_AsSsize_t(py_b_dictoffset);
            Py_DECREF(py_b_dictoffset);
            if (b_dictoffset == -1 && PyErr_Occurred()) goto dictoffset_return;
#endif
            if (b_dictoffset) {
                {
                    __Pyx_TypeName b_name = __Pyx_PyType_GetFullyQualifiedName(b);
                    PyErr_Format(PyExc_TypeError,
                        "extension type '%.200s' has no __dict__ slot, "
                        "but base type '" __Pyx_FMT_TYPENAME "' has: "
                        "either add 'cdef dict __dict__' to the extension type "
                        "or add '__slots__ = [...]' to the base type",
                        type_name, b_name);
                    __Pyx_DECREF_TypeName(b_name);
                }
#if !CYTHON_USE_TYPE_SLOTS
              dictoffset_return:
#endif
#if CYTHON_AVOID_BORROWED_REFS
                Py_DECREF(b0);
#endif
                return -1;
            }
        }
#if CYTHON_AVOID_BORROWED_REFS
        Py_DECREF(b0);
#endif
    }
    return 0;
}
#endif

/* PyType_Ready */
CYTHON_UNUSED static int __Pyx_PyType_HasMultipleInheritance(PyTypeObject *t) {
    while (t) {
        PyObject *bases = __Pyx_PyType_GetSlot(t, tp_bases, PyObject*);
        if (bases) {
            return 1;
        }
        t = __Pyx_PyType_GetSlot(t, tp_base, PyTypeObject*);
    }
    return 0;
}
static int __Pyx_PyType_Ready(PyTypeObject *t) {
#if CYTHON_USE_TYPE_SPECS || !CYTHON_COMPILING_IN_CPYTHON || defined(PYSTON_MAJOR_VERSION)
    (void)__Pyx_PyObject_CallMethod0;
#if CYTHON_USE_TYPE_SPECS
    (void)__Pyx_validate_bases_tuple;
#endif
    return PyType_Ready(t);
#else
    int r;
    if (!__Pyx_PyType_HasMultipleInheritance(t)) {
        return PyType_Ready(t);
    }
    PyObject *bases = __Pyx_PyType_GetSlot(t, tp_bases, PyObject*);
    if (bases && unlikely(__Pyx_validate_bases_tuple(t->tp_name, t->tp_dictoffset, bases) == -1))
        return -1;
#if !defined(PYSTON_MAJOR_VERSION)
    {
        int gc_was_enabled;
    #if PY_VERSION_HEX >= 0x030A00b1
        gc_was_enabled = PyGC_Disable();
        (void)__Pyx_PyObject_CallMethod0;
    #else
        PyObject *ret, *py_status;
        PyObject *gc = NULL;
        #if (!CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM+0 >= 0x07030400) &&\
                !CYTHON_COMPILING_IN_GRAAL
        gc = PyImport_GetModule(__pyx_mstate_global->__pyx_kp_u_gc);
        #endif
        if (unlikely(!gc)) gc = PyImport_Import(__pyx_mstate_global->__pyx_kp_u_gc);
        if (unlikely(!gc)) return -1;
        py_status = __Pyx_PyObject_CallMethod0(gc, __pyx_mstate_global->__pyx_kp_u_isenabled);
        if (unlikely(!py_status)) {
            Py_DECREF(gc);
            return -1;
        }
        gc_was_enabled = __Pyx_PyObject_IsTrue(py_status);
        Py_DECREF(py_status);
        if (gc_was_enabled > 0) {
            ret = __Pyx_PyObject_CallMethod0(gc, __pyx_mstate_global->__pyx_kp_u_disable);
            if (unlikely(!ret)) {
                Py_DECREF(gc);
                return -1;
            }
            Py_DECREF(ret);
        } else if (unlikely(gc_was_enabled == -1)) {
            Py_DECREF(gc);
            return -1;
        }
    #endif
        t->tp_flags |= Py_TPFLAGS_HEAPTYPE;
#if PY_VERSION_HEX >= 0x030A0000
        t->tp_flags |= Py_TPFLAGS_IMMUTABLETYPE;
#endif
#else
        (void)__Pyx_PyObject_CallMethod0;
#endif
    r = PyType_Ready(t);
#if !defined(PYSTON_MAJOR_VERSION)
        t->tp_flags &= ~Py_TPFLAGS_HEAPTYPE;
    #if PY_VERSION_HEX >= 0x030A00b1
        if (gc_was_enabled)
            PyGC_Enable();
    #else
        if (gc_was_enabled) {
            PyObject *tp, *v, *tb;
            PyErr_Fetch(&tp, &v, &tb);
            ret = __Pyx_PyObject_CallMethod0(gc, __pyx_mstate_global->__pyx_kp_u_enable);
            if (likely(ret || r == -1)) {
                Py_XDECREF(ret);
                PyErr_Restore(tp, v, tb);
            } else {
                Py_XDECREF(tp);
                Py_XDECREF(v);
                Py_XDECREF(tb);
                r = -1;
            }
        }
        Py_DECREF(gc);
    #endif
    }
#endif
    return r;
#endif
}

/* PxdImportShared (used by VoidPtrImport) */
#ifndef __PYX_HAVE_RT_ImportFromPxd_3_2_3
#define __PYX_HAVE_RT_ImportFromPxd_3_2_3
static int __Pyx_ImportFromPxd_3_2_3(PyObject *module, const char *name, void **p, const char *sig, const char *what) {
    PyObject *d = 0;
    PyObject *cobj = 0;
    d = PyObject_GetAttrString(module, "__pyx_capi__");
    if (!d)
        goto bad;
#if (defined(Py_LIMITED_API) && Py_LIMITED_API >= 0x030d0000) || (!defined(Py_LIMITED_API) && PY_VERSION_HEX >= 0x030d0000)
    PyDict_GetItemStringRef(d, name, &cobj);
#else
    cobj = PyDict_GetItemString(d, name);
    Py_XINCREF(cobj);
#endif
    if (!cobj) {
        PyErr_Format(PyExc_ImportError,
            "%.200s does not export expected C %.8s %.200s",
                PyModule_GetName(module), what, name);
        goto bad;
    }
    if (!PyCapsule_IsValid(cobj, sig)) {
        PyErr_Format(PyExc_TypeError,
            "C %.8s %.200s.%.200s has wrong signature (expected %.500s, got %.500s)",
             what, PyModule_GetName(module), name, sig, PyCapsule_GetName(cobj));
        goto bad;
    }
    *p = PyCapsule_GetPointer(cobj, sig);
    if (!(*p))
        goto bad;
    Py_DECREF(d);
    Py_DECREF(cobj);
    return 0;
bad:
    Py_XDECREF(d);
    Py_XDECREF(cobj);
    return -1;
}
#endif

/* VoidPtrImport */
#ifndef __PYX_HAVE_RT_ImportVoidPtr_3_2_3
#define __PYX_HAVE_RT_ImportVoidPtr_3_2_3
static int __Pyx_ImportVoidPtr_3_2_3(PyObject *module, const char *name, void **p, const char *sig) {
    return __Pyx_ImportFromPxd_3_2_3(module, name, p, sig, "variable");
}
#endif

/* FunctionImport */
#ifndef __PYX_HAVE_RT_ImportFunction_3_2_3
#define __PYX_HAVE_RT_ImportFunction_3_2_3
static int __Pyx_ImportFunction_3_2_3(PyObject *module, const char *funcname, void (**f)(void), const char *sig) {
    union {
        void (*fp)(void);
        void *p;
    } tmp;
    int result = __Pyx_ImportFromPxd_3_2_3(module, funcname, &tmp.p, sig, "function");
    if (result == 0) {
        *f = tmp.fp;
    }
    return result;
}
#endif

/* HasAttr (used by ImportImpl) */
#if __PYX_LIMITED_VERSION_HEX < 0x030d0000
static CYTHON_INLINE int __Pyx_HasAttr(PyObject *o, PyObject *n) {
    PyObject *r;
    if (unlikely(!PyUnicode_Check(n))) {
        PyErr_SetString(PyExc_TypeError,
                        "hasattr(): attribute name must be string");
        return -1;
    }
    r = __Pyx_PyObject_GetAttrStrNoError(o, n);
    if (!r) {
        return (unlikely(PyErr_Occurred())) ? -1 : 0;
    } else {
        Py_DECREF(r);
        return 1;
    }
}
#endif

/* ImportImpl (used by Import) */
static int __Pyx__Import_GetModule(PyObject *qualname, PyObject **module) {
    PyObject *imported_module = PyImport_GetModule(qualname);
    if (unlikely(!imported_module)) {
        *module = NULL;
        if (PyErr_Occurred()) {
            return -1;
        }
        return 0;
    }
    *module = imported_module;
    return 1;
}
static int __Pyx__Import_Lookup(PyObject *qualname, PyObject *const *imported_names, Py_ssize_t len_imported_names, PyObject **module) {
    PyObject *imported_module;
    PyObject *top_level_package_name;
    Py_ssize_t i;
    int status, module_found;
    Py_ssize_t dot_index;
    module_found = __Pyx__Import_GetModule(qualname, &imported_module);
    if (unlikely(!module_found || module_found == -1)) {
        *module = NULL;
        return module_found;
    }
    if (imported_names) {
        for (i = 0; i < len_imported_names; i++) {
            PyObject *imported_name = imported_names[i];
#if __PYX_LIMITED_VERSION_HEX < 0x030d0000
            int has_imported_attribute = PyObject_HasAttr(imported_module, imported_name);
#else
            int has_imported_attribute = PyObject_HasAttrWithError(imported_module, imported_name);
            if (unlikely(has_imported_attribute == -1)) goto error;
#endif
            if (!has_imported_attribute) {
                goto not_found;
            }
        }
        *module = imported_module;
        return 1;
    }
    dot_index = PyUnicode_FindChar(qualname, '.', 0, PY_SSIZE_T_MAX, 1);
    if (dot_index == -1) {
        *module = imported_module;
        return 1;
    }
    if (unlikely(dot_index == -2)) goto error;
    top_level_package_name = PyUnicode_Substring(qualname, 0, dot_index);
    if (unlikely(!top_level_package_name)) goto error;
    Py_DECREF(imported_module);
    status = __Pyx__Import_GetModule(top_level_package_name, module);
    Py_DECREF(top_level_package_name);
    return status;
error:
    Py_DECREF(imported_module);
    *module = NULL;
    return -1;
not_found:
    Py_DECREF(imported_module);
    *module = NULL;
    return 0;
}
static PyObject *__Pyx__Import(PyObject *name, PyObject *const *imported_names, Py_ssize_t len_imported_names, PyObject *qualname, PyObject *moddict, int level) {
    PyObject *module = 0;
    PyObject *empty_dict = 0;
    PyObject *from_list = 0;
    int module_found;
    if (!qualname) {
        qualname = name;
    }
    module_found = __Pyx__Import_Lookup(qualname, imported_names, len_imported_names, &module);
    if (likely(module_found == 1)) {
        return module;
    } else if (unlikely(module_found == -1)) {
        return NULL;
    }
    empty_dict = PyDict_New();
    if (unlikely(!empty_dict))
        goto bad;
    if (imported_names) {
#if CYTHON_COMPILING_IN_CPYTHON
        from_list = __Pyx_PyList_FromArray(imported_names, len_imported_names);
        if (unlikely(!from_list))
            goto bad;
#else
        from_list = PyList_New(len_imported_names);
        if (unlikely(!from_list)) goto bad;
        for (Py_ssize_t i=0; i<len_imported_names; ++i) {
            if (PyList_SetItem(from_list, i, __Pyx_NewRef(imported_names[i])) < 0) goto bad;
        }
#endif
    }
    if (level == -1) {
        const char* package_sep = strchr(__Pyx_MODULE_NAME, '.');
        if (package_sep != (0)) {
            module = PyImport_ImportModuleLevelObject(
                name, moddict, empty_dict, from_list, 1);
            if (unlikely(!module)) {
                if (unlikely(!PyErr_ExceptionMatches(PyExc_ImportError)))
                    goto bad;
                PyErr_Clear();
            }
        }
        level = 0;
    }
    if (!module) {
        module = PyImport_ImportModuleLevelObject(
            name, moddict, empty_dict, from_list, level);
    }
bad:
    Py_XDECREF(from_list);
    Py_XDECREF(empty_dict);
    return module;
}

/* Import */
static PyObject *__Pyx_Import(PyObject *name, PyObject *const *imported_names, Py_ssize_t len_imported_names, PyObject *qualname, int level) {
    return __Pyx__Import(name, imported_names, len_imported_names, qualname, __pyx_mstate_global->__pyx_d, level);
}

/* ImportFrom */
static PyObject* __Pyx_ImportFrom(PyObject* module, PyObject* name) {
    PyObject* value = __Pyx_PyObject_GetAttrStr(module, name);
    if (unlikely(!value) && PyErr_ExceptionMatches(PyExc_AttributeError)) {
        const char* module_name_str = 0;
        PyObject* module_name = 0;
        PyObject* module_dot = 0;
        PyObject* full_name = 0;
        PyErr_Clear();
        module_name_str = PyModule_GetName(module);
        if (unlikely(!module_name_str)) { goto modbad; }
        module_name = PyUnicode_FromString(module_name_str);
        if (unlikely(!module_name)) { goto modbad; }
        module_dot = PyUnicode_Concat(module_name, __pyx_mstate_global->__pyx_kp_u_);
        if (unlikely(!module_dot)) { goto modbad; }
        full_name = PyUnicode_Concat(module_dot, name);
        if (unlikely(!full_name)) { goto modbad; }
        #if (CYTHON_COMPILING_IN_PYPY && PYPY_VERSION_NUM  < 0x07030400) ||\
                CYTHON_COMPILING_IN_GRAAL
        {
            PyObject *modules = PyImport_GetModuleDict();
            if (unlikely(!modules))
                goto modbad;
            value = PyObject_GetItem(modules, full_name);
        }
        #else
        value = PyImport_GetModule(full_name);
        #endif
      modbad:
        Py_XDECREF(full_name);
        Py_XDECREF(module_dot);
        Py_XDECREF(module_name);
    }
    if (unlikely(!value)) {
        PyErr_Format(PyExc_ImportError, "cannot import name %S", name);
    }
    return value;
}

/* SetItemInt */
static int __Pyx_SetItemInt_Generic(PyObject *o, PyObject *j, PyObject *v) {
    int r;
    if (unlikely(!j)) return -1;
    r = PyObject_SetItem(o, j, v);
    Py_DECREF(j);
    return r;
}
static CYTHON_INLINE int __Pyx_SetItemInt_Fast(PyObject *o, Py_ssize_t i, PyObject *v, int is_list,
                                               int wraparound, int boundscheck, int unsafe_shared) {
    CYTHON_MAYBE_UNUSED_VAR(unsafe_shared);
#if CYTHON_ASSUME_SAFE_MACROS && CYTHON_ASSUME_SAFE_SIZE && !CYTHON_AVOID_BORROWED_REFS
    if (is_list || PyList_CheckExact(o)) {
        Py_ssize_t n = (!wraparound) ? i : ((likely(i >= 0)) ? i : i + PyList_GET_SIZE(o));
        if ((CYTHON_AVOID_THREAD_UNSAFE_BORROWED_REFS && !__Pyx_IS_UNIQUELY_REFERENCED(o, unsafe_shared))) {
            Py_INCREF(v);
            return PyList_SetItem(o, n, v);
        } else if ((!boundscheck) || likely(__Pyx_is_valid_index(n, PyList_GET_SIZE(o)))) {
            PyObject* old;
            Py_INCREF(v);
            old = PyList_GET_ITEM(o, n);
            PyList_SET_ITEM(o, n, v);
            Py_DECREF(old);
            return 0;
        }
    } else
#endif
#if CYTHON_USE_TYPE_SLOTS && !CYTHON_COMPILING_IN_PYPY
    {
        PyMappingMethods *mm = Py_TYPE(o)->tp_as_mapping;
        PySequenceMethods *sm = Py_TYPE(o)->tp_as_sequence;
        if (!is_list && mm && mm->mp_ass_subscript) {
            int r;
            PyObject *key = PyLong_FromSsize_t(i);
            if (unlikely(!key)) return -1;
            r = mm->mp_ass_subscript(o, key, v);
            Py_DECREF(key);
            return r;
        }
        if (is_list || likely(sm && sm->sq_ass_item)) {
            if (wraparound && unlikely(i < 0) && likely(sm->sq_length)) {
                Py_ssize_t l = sm->sq_length(o);
                if (likely(l >= 0)) {
                    i += l;
                } else {
                    if (!PyErr_ExceptionMatches(PyExc_OverflowError))
                        return -1;
                    PyErr_Clear();
                }
            }
            return sm->sq_ass_item(o, i, v);
        }
    }
#else
    if (is_list || !PyMapping_Check(o)) {
        return PySequence_SetItem(o, i, v);
    }
#endif
    (void)wraparound;
    (void)boundscheck;
    return __Pyx_SetItemInt_Generic(o, PyLong_FromSsize_t(i), v);
}

/* dict_setdefault (used by FetchCommonType) */
static CYTHON_INLINE PyObject *__Pyx_PyDict_SetDefault(PyObject *d, PyObject *key, PyObject *default_value) {
    PyObject* value;
#if CYTHON_COMPILING_IN_LIMITED_API && __PYX_LIMITED_VERSION_HEX >= 0x030C0000
    PyObject *args[] = {d, key, default_value};
    value = PyObject_VectorcallMethod(__pyx_mstate_global->__pyx_n_u_setdefault, args, 3 | PY_VECTORCALL_ARGUMENTS_OFFSET, NULL);
#elif CYTHON_COMPILING_IN_LIMITED_API
    value = PyObject_CallMethodObjArgs(d, __pyx_mstate_global->__pyx_n_u_setdefault, key, default_value, NULL);
#elif PY_VERSION_HEX >= 0x030d0000
    PyDict_SetDefaultRef(d, key, default_value, &value);
#else
    value = PyDict_SetDefault(d, key, default_value);
    if (unlikely(!value)) return NULL;
    Py_INCREF(value);
#endif
    return value;
}

/* AddModuleRef (used by FetchSharedCythonModule) */
#if CYTHON_COMPILING_IN_CPYTHON_FREETHREADING
  static PyObject *__Pyx_PyImport_AddModuleObjectRef(PyObject *name) {
      PyObject *module_dict = PyImport_GetModuleDict();
      PyObject *m;
      if (PyMapping_GetOptionalItem(module_dict, name, &m) < 0) {
          return NULL;
      }
      if (m != NULL && PyModule_Check(m)) {
          return m;
      }
      Py_XDECREF(m);
      m = PyModule_NewObject(name);
      if (m == NULL)
          return NULL;
      if (PyDict_CheckExact(module_dict)) {
          PyObject *new_m;
          (void)PyDict_SetDefaultRef(module_dict, name, m, &new_m);
          Py_DECREF(m);
          return new_m;
      } else {
           if (PyObject_SetItem(module_dict, name, m) != 0) {
                Py_DECREF(m);
                return NULL;
            }
            return m;
      }
  }
  static PyObject *__Pyx_PyImport_AddModuleRef(const char *name) {
      PyObject *py_name = PyUnicode_FromString(name);
      if (!py_name) return NULL;
      PyObject *module = __Pyx_PyImport_AddModuleObjectRef(py_name);
      Py_DECREF(py_name);
      return module;
  }
#elif __PYX_LIMITED_VERSION_HEX >= 0x030d0000
  #define __Pyx_PyImport_AddModuleRef(name) PyImport_AddModuleRef(name)
#else
  static PyObject *__Pyx_PyImport_AddModuleRef(const char *name) {
      PyObject *module = PyImport_AddModule(name);
      Py_XINCREF(module);
      return module;
  }
#endif

/* FetchSharedCythonModule (used by FetchCommonType) */
static PyObject *__Pyx_FetchSharedCythonABIModule(void) {
    return __Pyx_PyImport_AddModuleRef(__PYX_ABI_MODULE_NAME);
}

/* FetchCommonType (used by CommonTypesMetaclass) */
#if __PYX_LIMITED_VERSION_HEX < 0x030C0000
static PyObject* __Pyx_PyType_FromMetaclass(PyTypeObject *metaclass, PyObject *module, PyType_Spec *spec, PyObject *bases) {
    PyObject *result = __Pyx_PyType_FromModuleAndSpec(module, spec, bases);
    if (result && metaclass) {
        PyObject *old_tp = (PyObject*)Py_TYPE(result);
    Py_INCREF((PyObject*)metaclass);
#if __PYX_LIMITED_VERSION_HEX >= 0x03090000
        Py_SET_TYPE(result, metaclass);
#else
        result->ob_type = metaclass;
#endif
        Py_DECREF(old_tp);
    }
    return result;
}
#else
#define __Pyx_PyType_FromMetaclass(me, mo, s, b) PyType_FromMetaclass(me, mo, s, b)
#endif
static int __Pyx_VerifyCachedType(PyObject *cached_type,
                               const char *name,
                               Py_ssize_t expected_basicsize) {
    Py_ssize_t basicsize;
    if (!PyType_Check(cached_type)) {
        PyErr_Format(PyExc_TypeError,
            "Shared Cython type %.200s is not a type object", name);
        return -1;
    }
    if (expected_basicsize == 0) {
        return 0; // size is inherited, nothing useful to check
    }
#if CYTHON_COMPILING_IN_LIMITED_API
    PyObject *py_basicsize;
    py_basicsize = PyObject_GetAttrString(cached_type, "__basicsize__");
    if (unlikely(!py_basicsize)) return -1;
    basicsize = PyLong_AsSsize_t(py_basicsize);
    Py_DECREF(py_basicsize);
    py_basicsize = NULL;
    if (unlikely(basicsize == (Py_ssize_t)-1) && PyErr_Occurred()) return -1;
#else
    basicsize = ((PyTypeObject*) cached_type)->tp_basicsize;
#endif
    if (basicsize != expected_basicsize) {
        PyErr_Format(PyExc_TypeError,
            "Shared Cython type %.200s has the wrong size, try recompiling",
            name);
        return -1;
    }
    return 0;
}
static PyTypeObject *__Pyx_FetchCommonTypeFromSpec(PyTypeObject *metaclass, PyObject *module, PyType_Spec *spec, PyObject *bases) {
    PyObject *abi_module = NULL, *cached_type = NULL, *abi_module_dict, *new_cached_type, *py_object_name;
    int get_item_ref_result;
    const char* object_name = strrchr(spec->name, '.');
    object_name = object_name ? object_name+1 : spec->name;
    py_object_name = PyUnicode_FromString(object_name);
    if (!py_object_name) return NULL;
    abi_module = __Pyx_FetchSharedCythonABIModule();
    if (!abi_module) goto done;
    abi_module_dict = PyModule_GetDict(abi_module);
    if (!abi_module_dict) goto done;
    get_item_ref_result = __Pyx_PyDict_GetItemRef(abi_module_dict, py_object_name, &cached_type);
    if (get_item_ref_result == 1) {
        if (__Pyx_VerifyCachedType(
              cached_type,
              object_name,
              spec->basicsize) < 0) {
            goto bad;
        }
        goto done;
    } else if (unlikely(get_item_ref_result == -1)) {
        goto bad;
    }
    cached_type = __Pyx_PyType_FromMetaclass(
        metaclass,
        CYTHON_USE_MODULE_STATE ? module : abi_module,
        spec, bases);
    if (unlikely(!cached_type)) goto bad;
    if (unlikely(__Pyx_fix_up_extension_type_from_spec(spec, (PyTypeObject *) cached_type) < 0)) goto bad;
    new_cached_type = __Pyx_PyDict_SetDefault(abi_module_dict, py_object_name, cached_type);
    if (unlikely(new_cached_type != cached_type)) {
        if (unlikely(!new_cached_type)) goto bad;
        Py_DECREF(cached_type);
        cached_type = new_cached_type;
        if (__Pyx_VerifyCachedType(
                cached_type,
                object_name,
                spec->basicsize) < 0) {
            goto bad;
        }
        goto done;
    } else {
        Py_DECREF(new_cached_type);
    }
done:
    Py_XDECREF(abi_module);
    Py_DECREF(py_object_name);
    assert(cached_type == NULL || PyType_Check(cached_type));
    return (PyTypeObject *) cached_type;
bad:
    Py_XDECREF(cached_type);
    cached_type = NULL;
    goto done;
}

/* CommonTypesMetaclass (used by CythonFunctionShared) */
static PyObject* __pyx_CommonTypesMetaclass_get_module(CYTHON_UNUSED PyObject *self, CYTHON_UNUSED void* context) {
    return PyUnicode_FromString(__PYX_ABI_MODULE_NAME);
}
#if __PYX_LIMITED_VERSION_HEX < 0x030A0000
static PyObject* __pyx_CommonTypesMetaclass_call(CYTHON_UNUSED PyObject *self, CYTHON_UNUSED PyObject *args, CYTHON_UNUSED PyObject *kwds) {
    PyErr_SetString(PyExc_TypeError, "Cannot instantiate Cython internal types");
    return NULL;
}
static int __pyx_CommonTypesMetaclass_setattr(CYTHON_UNUSED PyObject *self, CYTHON_UNUSED PyObject *attr, CYTHON_UNUSED PyObject *value) {
    PyErr_SetString(PyExc_TypeError, "Cython internal types are immutable");
    return -1;
}
#endif
static PyGetSetDef __pyx_CommonTypesMetaclass_getset[] = {
    {"__module__", __pyx_CommonTypesMetaclass_get_module, NULL, NULL, NULL},
    {0, 0, 0, 0, 0}
};
static PyType_Slot __pyx_CommonTypesMetaclass_slots[] = {
    {Py_tp_getset, (void *)__pyx_CommonTypesMetaclass_getset},
    #if __PYX_LIMITED_VERSION_HEX < 0x030A0000
    {Py_tp_call, (void*)__pyx_CommonTypesMetaclass_call},
    {Py_tp_new, (void*)__pyx_CommonTypesMetaclass_call},
    {Py_tp_setattro, (void*)__pyx_CommonTypesMetaclass_setattr},
    #endif
    {0, 0}
};
static PyType_Spec __pyx_CommonTypesMetaclass_spec = {
    __PYX_TYPE_MODULE_PREFIX "_common_types_metatype",
    0,
    0,
    Py_TPFLAGS_IMMUTABLETYPE |
    Py_TPFLAGS_DISALLOW_INSTANTIATION |
    Py_TPFLAGS_DEFAULT,
    __pyx_CommonTypesMetaclass_slots
};
static int __pyx_CommonTypesMetaclass_init(PyObject *module) {
    __pyx_mstatetype *mstate = __Pyx_PyModule_GetState(module);
    PyObject *bases = PyTuple_Pack(1, &PyType_Type);
    if (unlikely(!bases)) {
        return -1;
    }
    mstate->__pyx_CommonTypesMetaclassType = __Pyx_FetchCommonTypeFromSpec(NULL, module, &__pyx_CommonTypesMetaclass_spec, bases);
    Py_DECREF(bases);
    if (unlikely(mstate->__pyx_CommonTypesMetaclassType == NULL)) {
        return -1;
    }
    return 0;
}

/* PyMethodNew (used by CythonFunctionShared) */
#if CYTHON_COMPILING_IN_LIMITED_API
static PyObject *__Pyx_PyMethod_New(PyObject *func, PyObject *self, PyObject *typ) {
    PyObject *result;
    CYTHON_UNUSED_VAR(typ);
    if (!self)
        return __Pyx_NewRef(func);
    #if __PYX_LIMITED_VERSION_HEX >= 0x030C0000
    {
        PyObject *args[] = {func, self};
        result = PyObject_Vectorcall(__pyx_mstate_global->__Pyx_CachedMethodType, args, 2, NULL);
    }
    #else
    result = PyObject_CallFunctionObjArgs(__pyx_mstate_global->__Pyx_CachedMethodType, func, self, NULL);
    #endif
    return result;
}
#else
static PyObject *__Pyx_PyMethod_New(PyObject *func, PyObject *self, PyObject *typ) {
    CYTHON_UNUSED_VAR(typ);
    if (!self)
        return __Pyx_NewRef(func);
    return PyMethod_New(func, self);
}
#endif

/* PyVectorcallFastCallDict (used by CythonFunctionShared) */
#if CYTHON_METH_FASTCALL && CYTHON_VECTORCALL
static PyObject *__Pyx_PyVectorcall_FastCallDict_kw(PyObject *func, __pyx_vectorcallfunc vc, PyObject *const *args, size_t nargs, PyObject *kw)
{
    PyObject *res = NULL;
    PyObject *kwnames;
    PyObject **newargs;
    PyObject **kwvalues;
    Py_ssize_t i;
    #if CYTHON_AVOID_BORROWED_REFS
    PyObject *pos;
    #else
    Py_ssize_t pos;
    #endif
    size_t j;
    PyObject *key, *value;
    unsigned long keys_are_strings;
    #if !CYTHON_ASSUME_SAFE_SIZE
    Py_ssize_t nkw = PyDict_Size(kw);
    if (unlikely(nkw == -1)) return NULL;
    #else
    Py_ssize_t nkw = PyDict_GET_SIZE(kw);
    #endif
    newargs = (PyObject **)PyMem_Malloc((nargs + (size_t)nkw) * sizeof(args[0]));
    if (unlikely(newargs == NULL)) {
        PyErr_NoMemory();
        return NULL;
    }
    for (j = 0; j < nargs; j++) newargs[j] = args[j];
    kwnames = PyTuple_New(nkw);
    if (unlikely(kwnames == NULL)) {
        PyMem_Free(newargs);
        return NULL;
    }
    kwvalues = newargs + nargs;
    pos = 0;
    i = 0;
    keys_are_strings = Py_TPFLAGS_UNICODE_SUBCLASS;
    while (__Pyx_PyDict_NextRef(kw, &pos, &key, &value)) {
        keys_are_strings &=
        #if CYTHON_COMPILING_IN_LIMITED_API
            PyType_GetFlags(Py_TYPE(key));
        #else
            Py_TYPE(key)->tp_flags;
        #endif
        #if !CYTHON_ASSUME_SAFE_MACROS
        if (unlikely(PyTuple_SetItem(kwnames, i, key) < 0)) goto cleanup;
        #else
        PyTuple_SET_ITEM(kwnames, i, key);
        #endif
        kwvalues[i] = value;
        i++;
    }
    if (unlikely(!keys_are_strings)) {
        PyErr_SetString(PyExc_TypeError, "keywords must be strings");
        goto cleanup;
    }
    res = vc(func, newargs, nargs, kwnames);
cleanup:
    #if CYTHON_AVOID_BORROWED_REFS
    Py_DECREF(pos);
    #endif
    Py_DECREF(kwnames);
    for (i = 0; i < nkw; i++)
        Py_DECREF(kwvalues[i]);
    PyMem_Free(newargs);
    return res;
}
static CYTHON_INLINE PyObject *__Pyx_PyVectorcall_FastCallDict(PyObject *func, __pyx_vectorcallfunc vc, PyObject *const *args, size_t nargs, PyObject *kw)
{
    Py_ssize_t kw_size =
        likely(kw == NULL) ?
        0 :
#if !CYTHON_ASSUME_SAFE_SIZE
        PyDict_Size(kw);
#else
        PyDict_GET_SIZE(kw);
#endif
    if (kw_size == 0) {
        return vc(func, args, nargs, NULL);
    }
#if !CYTHON_ASSUME_SAFE_SIZE
    else if (unlikely(kw_size == -1)) {
        return NULL;
    }
#endif
    return __Pyx_PyVectorcall_FastCallDict_kw(func, vc, args, nargs, kw);
}
#endif

/* CythonFunctionShared (used by CythonFunction) */
#if CYTHON_COMPILING_IN_LIMITED_API
static CYTHON_INLINE int __Pyx__IsSameCyOrCFunctionNoMethod(PyObject *func, void (*cfunc)(void)) {
    if (__Pyx_CyFunction_Check(func)) {
        return PyCFunction_GetFunction(((__pyx_CyFunctionObject*)func)->func) == (PyCFunction) cfunc;
    } else if (PyCFunction_Check(func)) {
        return PyCFunction_GetFunction(func) == (PyCFunction) cfunc;
    }
    return 0;
}
static CYTHON_INLINE int __Pyx__IsSameCyOrCFunction(PyObject *func, void (*cfunc)(void)) {
    if ((PyObject*)Py_TYPE(func) == __pyx_mstate_global->__Pyx_CachedMethodType) {
        int result;
        PyObject *newFunc = PyObject_GetAttr(func, __pyx_mstate_global->__pyx_n_u_func_2);
        if (unlikely(!newFunc)) {
            PyErr_Clear(); // It's only an optimization, so don't throw an error
            return 0;
        }
        result = __Pyx__IsSameCyOrCFunctionNoMethod(newFunc, cfunc);
        Py_DECREF(newFunc);
        return result;
    }
    return __Pyx__IsSameCyOrCFunctionNoMethod(func, cfunc);
}
#else
static CYTHON_INLINE int __Pyx__IsSameCyOrCFunction(PyObject *func, void (*cfunc)(void)) {
    if (PyMethod_Check(func)) {
        func = PyMethod_GET_FUNCTION(func);
    }
    return __Pyx_CyOrPyCFunction_Check(func) && __Pyx_CyOrPyCFunction_GET_FUNCTION(func) == (PyCFunction) cfunc;
}
#endif
static CYTHON_INLINE void __Pyx__CyFunction_SetClassObj(__pyx_CyFunctionObject* f, PyObject* classobj) {
#if PY_VERSION_HEX < 0x030900B1 || CYTHON_COMPILING_IN_LIMITED_API
    __Pyx_Py_XDECREF_SET(
        __Pyx_CyFunction_GetClassObj(f),
            ((classobj) ? __Pyx_NewRef(classobj) : NULL));
#else
    __Pyx_Py_XDECREF_SET(
        ((PyCMethodObject *) (f))->mm_class,
        (PyTypeObject*)((classobj) ? __Pyx_NewRef(classobj) : NULL));
#endif
}
static PyObject *
__Pyx_CyFunction_get_doc_locked(__pyx_CyFunctionObject *op)
{
    if (unlikely(op->func_doc == NULL)) {
#if CYTHON_COMPILING_IN_LIMITED_API
        op->func_doc = PyObject_GetAttrString(op->func, "__doc__");
        if (unlikely(!op->func_doc)) return NULL;
#else
        if (((PyCFunctionObject*)op)->m_ml->ml_doc) {
            op->func_doc = PyUnicode_FromString(((PyCFunctionObject*)op)->m_ml->ml_doc);
            if (unlikely(op->func_doc == NULL))
                return NULL;
        } else {
            Py_INCREF(Py_None);
            return Py_None;
        }
#endif
    }
    Py_INCREF(op->func_doc);
    return op->func_doc;
}
static PyObject *
__Pyx_CyFunction_get_doc(__pyx_CyFunctionObject *op, void *closure) {
    PyObject *result;
    CYTHON_UNUSED_VAR(closure);
    __Pyx_BEGIN_CRITICAL_SECTION(op);
    result = __Pyx_CyFunction_get_doc_locked(op);
    __Pyx_END_CRITICAL_SECTION();
    return result;
}
static int
__Pyx_CyFunction_set_doc(__pyx_CyFunctionObject *op, PyObject *value, void *context)
{
    CYTHON_UNUSED_VAR(context);
    if (value == NULL) {
        value = Py_None;
    }
    Py_INCREF(value);
    __Pyx_BEGIN_CRITICAL_SECTION(op);
    __Pyx_Py_XDECREF_SET(op->func_doc, value);
    __Pyx_END_CRITICAL_SECTION();
    return 0;
}
static PyObject *
__Pyx_CyFunction_get_name_locked(__pyx_CyFunctionObject *op)
{
    if (unlikely(op->func_name == NULL)) {
#if CYTHON_COMPILING_IN_LIMITED_API
        op->func_name = PyObject_GetAttrString(op->func, "__name__");
#else
        op->func_name = PyUnicode_InternFromString(((PyCFunctionObject*)op)->m_ml->ml_name);
#endif
        if (unlikely(op->func_name == NULL))
            return NULL;
    }
    Py_INCREF(op->func_name);
    return op->func_name;
}
static PyObject *
__Pyx_CyFunction_get_name(__pyx_CyFunctionObject *op, void *context)
{
    PyObject *result = NULL;
    CYTHON_UNUSED_VAR(context);
    __Pyx_BEGIN_CRITICAL_SECTION(op);
    result = __Pyx_CyFunction_get_name_locked(op);
    __Pyx_END_CRITICAL_SECTION();
    return result;
}
static int
__Pyx_CyFunction_set_name(__pyx_CyFunctionObject *op, PyObject *value, void *context)
{
    CYTHON_UNUSED_VAR(context);
    if (unlikely(value == NULL || !PyUnicode_Check(value))) {
        PyErr_SetString(PyExc_TypeError,
                        "__name__ must be set to a string object");
        return -1;
    }
    Py_INCREF(value);
    __Pyx_BEGIN_CRITICAL_SECTION(op);
    __Pyx_Py_XDECREF_SET(op->func_name, value);
    __Pyx_END_CRITICAL_SECTION();
    return 0;
}
static PyObject *
__Pyx_CyFunction_get_qualname(__pyx_CyFunctionObject *op, void *context)
{
    CYTHON_UNUSED_VAR(context);
    PyObject *result;
    __Pyx_BEGIN_CRITICAL_SECTION(op);
    Py_INCREF(op->func_qualname);
    result = op->func_qualname;
    __Pyx_END_CRITICAL_SECTION();
    return result;
}
static int
__Pyx_CyFunction_set_qualname(__pyx_CyFunctionObject *op, PyObject *value, void *context)
{
    CYTHON_UNUSED_VAR(context);
    if (unlikely(value == NULL || !PyUnicode_Check(value))) {
        PyErr_SetString(PyExc_TypeError,
                        "__qualname__ must be set to a string object");
        return -1;
    }
    Py_INCREF(value);
    __Pyx_BEGIN_CRITICAL_SECTION(op);
    __Pyx_Py_XDECREF_SET(op->func_qualname, value);
    __Pyx_END_CRITICAL_SECTION();
    return 0;
}
#if CYTHON_COMPILING_IN_LIMITED_API && __PYX_LIMITED_VERSION_HEX < 0x030A0000
static PyObject *
__Pyx_CyFunction_get_dict(__pyx_CyFunctionObject *op, void *context)
{
    CYTHON_UNUSED_VAR(context);
    if (unlikely(op->func_dict == NULL)) {
        op->func_dict = PyDict_New();
        if (unlikely(op->func_dict == NULL))
            return NULL;
    }
    Py_INCREF(op->func_dict);
    return op->func_dict;
}
#endif
static PyObject *
__Pyx_CyFunction_get_globals(__pyx_CyFunctionObject *op, void *context)
{
    CYTHON_UNUSED_VAR(context);
    Py_INCREF(op->func_globals);
    return op->func_globals;
}
static PyObject *
__Pyx_CyFunction_get_closure(__pyx_CyFunctionObject *op, void *context)
{
    CYTHON_UNUSED_VAR(op);
    CYTHON_UNUSED_VAR(context);
    Py_INCREF(Py_None);
    return Py_None;
}
static PyObject *
__Pyx_CyFunction_get_code(__pyx_CyFunctionObject *op, void *context)
{
    PyObject* result = (op->func_code) ? op->func_code : Py_None;
    CYTHON_UNUSED_VAR(context);
    Py_INCREF(result);
    return result;
}
static int
__Pyx_CyFunction_init_defaults(__pyx_CyFunctionObject *op) {
    int result = 0;
    PyObject *res = op->defaults_getter((PyObject *) op);
    if (unlikely(!res))
        return -1;
    #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
    op->defaults_tuple = PyTuple_GET_ITEM(res, 0);
    Py_INCREF(op->defaults_tuple);
    op->defaults_kwdict = PyTuple_GET_ITEM(res, 1);
    Py_INCREF(op->defaults_kwdict);
    #else
    op->defaults_tuple = __Pyx_PySequence_ITEM(res, 0);
    if (unlikely(!op->defaults_tuple)) result = -1;
    else {
        op->defaults_kwdict = __Pyx_PySequence_ITEM(res, 1);
        if (unlikely(!op->defaults_kwdict)) result = -1;
    }
    #endif
    Py_DECREF(res);
    return result;
}
static int
__Pyx_CyFunction_set_defaults(__pyx_CyFunctionObject *op, PyObject* value, void *context) {
    CYTHON_UNUSED_VAR(context);
    if (!value) {
        value = Py_None;
    } else if (unlikely(value != Py_None && !PyTuple_Check(value))) {
        PyErr_SetString(PyExc_TypeError,
                        "__defaults__ must be set to a tuple object");
        return -1;
    }
    PyErr_WarnEx(PyExc_RuntimeWarning, "changes to cyfunction.__defaults__ will not "
                 "currently affect the values used in function calls", 1);
    Py_INCREF(value);
    __Pyx_BEGIN_CRITICAL_SECTION(op);
    __Pyx_Py_XDECREF_SET(op->defaults_tuple, value);
    __Pyx_END_CRITICAL_SECTION();
    return 0;
}
static PyObject *
__Pyx_CyFunction_get_defaults_locked(__pyx_CyFunctionObject *op) {
    PyObject* result = op->defaults_tuple;
    if (unlikely(!result)) {
        if (op->defaults_getter) {
            if (unlikely(__Pyx_CyFunction_init_defaults(op) < 0)) return NULL;
            result = op->defaults_tuple;
        } else {
            result = Py_None;
        }
    }
    Py_INCREF(result);
    return result;
}
static PyObject *
__Pyx_CyFunction_get_defaults(__pyx_CyFunctionObject *op, void *context) {
    PyObject* result = NULL;
    CYTHON_UNUSED_VAR(context);
    __Pyx_BEGIN_CRITICAL_SECTION(op);
    result = __Pyx_CyFunction_get_defaults_locked(op);
    __Pyx_END_CRITICAL_SECTION();
    return result;
}
static int
__Pyx_CyFunction_set_kwdefaults(__pyx_CyFunctionObject *op, PyObject* value, void *context) {
    CYTHON_UNUSED_VAR(context);
    if (!value) {
        value = Py_None;
    } else if (unlikely(value != Py_None && !PyDict_Check(value))) {
        PyErr_SetString(PyExc_TypeError,
                        "__kwdefaults__ must be set to a dict object");
        return -1;
    }
    PyErr_WarnEx(PyExc_RuntimeWarning, "changes to cyfunction.__kwdefaults__ will not "
                 "currently affect the values used in function calls", 1);
    Py_INCREF(value);
    __Pyx_BEGIN_CRITICAL_SECTION(op);
    __Pyx_Py_XDECREF_SET(op->defaults_kwdict, value);
    __Pyx_END_CRITICAL_SECTION();
    return 0;
}
static PyObject *
__Pyx_CyFunction_get_kwdefaults_locked(__pyx_CyFunctionObject *op) {
    PyObject* result = op->defaults_kwdict;
    if (unlikely(!result)) {
        if (op->defaults_getter) {
            if (unlikely(__Pyx_CyFunction_init_defaults(op) < 0)) return NULL;
            result = op->defaults_kwdict;
        } else {
            result = Py_None;
        }
    }
    Py_INCREF(result);
    return result;
}
static PyObject *
__Pyx_CyFunction_get_kwdefaults(__pyx_CyFunctionObject *op, void *context) {
    PyObject* result;
    CYTHON_UNUSED_VAR(context);
    __Pyx_BEGIN_CRITICAL_SECTION(op);
    result = __Pyx_CyFunction_get_kwdefaults_locked(op);
    __Pyx_END_CRITICAL_SECTION();
    return result;
}
static int
__Pyx_CyFunction_set_annotations(__pyx_CyFunctionObject *op, PyObject* value, void *context) {
    CYTHON_UNUSED_VAR(context);
    if (!value || value == Py_None) {
        value = NULL;
    } else if (unlikely(!PyDict_Check(value))) {
        PyErr_SetString(PyExc_TypeError,
                        "__annotations__ must be set to a dict object");
        return -1;
    }
    Py_XINCREF(value);
    __Pyx_BEGIN_CRITICAL_SECTION(op);
    __Pyx_Py_XDECREF_SET(op->func_annotations, value);
    __Pyx_END_CRITICAL_SECTION();
    return 0;
}
static PyObject *
__Pyx_CyFunction_get_annotations_locked(__pyx_CyFunctionObject *op) {
    PyObject* result = op->func_annotations;
    if (unlikely(!result)) {
        result = PyDict_New();
        if (unlikely(!result)) return NULL;
        op->func_annotations = result;
    }
    Py_INCREF(result);
    return result;
}
static PyObject *
__Pyx_CyFunction_get_annotations(__pyx_CyFunctionObject *op, void *context) {
    PyObject *result;
    CYTHON_UNUSED_VAR(context);
    __Pyx_BEGIN_CRITICAL_SECTION(op);
    result = __Pyx_CyFunction_get_annotations_locked(op);
    __Pyx_END_CRITICAL_SECTION();
    return result;
}
static PyObject *
__Pyx_CyFunction_get_is_coroutine_value(__pyx_CyFunctionObject *op) {
    int is_coroutine = op->flags & __Pyx_CYFUNCTION_COROUTINE;
    if (is_coroutine) {
        PyObject *is_coroutine_value, *module, *fromlist, *marker = __pyx_mstate_global->__pyx_n_u_is_coroutine;
        fromlist = PyList_New(1);
        if (unlikely(!fromlist)) return NULL;
        Py_INCREF(marker);
#if CYTHON_ASSUME_SAFE_MACROS
        PyList_SET_ITEM(fromlist, 0, marker);
#else
        if (unlikely(PyList_SetItem(fromlist, 0, marker) < 0)) {
            Py_DECREF(marker);
            Py_DECREF(fromlist);
            return NULL;
        }
#endif
        module = PyImport_ImportModuleLevelObject(__pyx_mstate_global->__pyx_n_u_asyncio_coroutines, NULL, NULL, fromlist, 0);
        Py_DECREF(fromlist);
        if (unlikely(!module)) goto ignore;
        is_coroutine_value = __Pyx_PyObject_GetAttrStr(module, marker);
        Py_DECREF(module);
        if (likely(is_coroutine_value)) {
            return is_coroutine_value;
        }
ignore:
        PyErr_Clear();
    }
    return __Pyx_PyBool_FromLong(is_coroutine);
}
static PyObject *
__Pyx_CyFunction_get_is_coroutine(__pyx_CyFunctionObject *op, void *context) {
    PyObject *result;
    CYTHON_UNUSED_VAR(context);
    if (op->func_is_coroutine) {
        return __Pyx_NewRef(op->func_is_coroutine);
    }
    result = __Pyx_CyFunction_get_is_coroutine_value(op);
    if (unlikely(!result))
        return NULL;
    __Pyx_BEGIN_CRITICAL_SECTION(op);
    if (op->func_is_coroutine) {
        Py_DECREF(result);
        result = __Pyx_NewRef(op->func_is_coroutine);
    } else {
        op->func_is_coroutine = __Pyx_NewRef(result);
    }
    __Pyx_END_CRITICAL_SECTION();
    return result;
}
static void __Pyx_CyFunction_raise_argument_count_error(__pyx_CyFunctionObject *func, const char* message, Py_ssize_t size) {
#if CYTHON_COMPILING_IN_LIMITED_API
    PyObject *py_name = __Pyx_CyFunction_get_name(func, NULL);
    if (!py_name) return;
    PyErr_Format(PyExc_TypeError,
        "%.200S() %s (%" CYTHON_FORMAT_SSIZE_T "d given)",
        py_name, message, size);
    Py_DECREF(py_name);
#else
    const char* name = ((PyCFunctionObject*)func)->m_ml->ml_name;
    PyErr_Format(PyExc_TypeError,
        "%.200s() %s (%" CYTHON_FORMAT_SSIZE_T "d given)",
        name, message, size);
#endif
}
static void __Pyx_CyFunction_raise_type_error(__pyx_CyFunctionObject *func, const char* message) {
#if CYTHON_COMPILING_IN_LIMITED_API
    PyObject *py_name = __Pyx_CyFunction_get_name(func, NULL);
    if (!py_name) return;
    PyErr_Format(PyExc_TypeError,
        "%.200S() %s",
        py_name, message);
    Py_DECREF(py_name);
#else
    const char* name = ((PyCFunctionObject*)func)->m_ml->ml_name;
    PyErr_Format(PyExc_TypeError,
        "%.200s() %s",
        name, message);
#endif
}
#if CYTHON_COMPILING_IN_LIMITED_API
static PyObject *
__Pyx_CyFunction_get_module(__pyx_CyFunctionObject *op, void *context) {
    CYTHON_UNUSED_VAR(context);
    return PyObject_GetAttrString(op->func, "__module__");
}
static int
__Pyx_CyFunction_set_module(__pyx_CyFunctionObject *op, PyObject* value, void *context) {
    CYTHON_UNUSED_VAR(context);
    return PyObject_SetAttrString(op->func, "__module__", value);
}
#endif
static PyGetSetDef __pyx_CyFunction_getsets[] = {
    {"func_doc", (getter)__Pyx_CyFunction_get_doc, (setter)__Pyx_CyFunction_set_doc, 0, 0},
    {"__doc__",  (getter)__Pyx_CyFunction_get_doc, (setter)__Pyx_CyFunction_set_doc, 0, 0},
    {"func_name", (getter)__Pyx_CyFunction_get_name, (setter)__Pyx_CyFunction_set_name, 0, 0},
    {"__name__", (getter)__Pyx_CyFunction_get_name, (setter)__Pyx_CyFunction_set_name, 0, 0},
    {"__qualname__", (getter)__Pyx_CyFunction_get_qualname, (setter)__Pyx_CyFunction_set_qualname, 0, 0},
#if CYTHON_COMPILING_IN_LIMITED_API && __PYX_LIMITED_VERSION_HEX < 0x030A0000
    {"func_dict", (getter)__Pyx_CyFunction_get_dict, (setter)PyObject_GenericSetDict, 0, 0},
    {"__dict__", (getter)__Pyx_CyFunction_get_dict, (setter)PyObject_GenericSetDict, 0, 0},
#else
    {"func_dict", (getter)PyObject_GenericGetDict, (setter)PyObject_GenericSetDict, 0, 0},
    {"__dict__", (getter)PyObject_GenericGetDict, (setter)PyObject_GenericSetDict, 0, 0},
#endif
    {"func_globals", (getter)__Pyx_CyFunction_get_globals, 0, 0, 0},
    {"__globals__", (getter)__Pyx_CyFunction_get_globals, 0, 0, 0},
    {"func_closure", (getter)__Pyx_CyFunction_get_closure, 0, 0, 0},
    {"__closure__", (getter)__Pyx_CyFunction_get_closure, 0, 0, 0},
    {"func_code", (getter)__Pyx_CyFunction_get_code, 0, 0, 0},
    {"__code__", (getter)__Pyx_CyFunction_get_code, 0, 0, 0},
    {"func_defaults", (getter)__Pyx_CyFunction_get_defaults, (setter)__Pyx_CyFunction_set_defaults, 0, 0},
    {"__defaults__", (getter)__Pyx_CyFunction_get_defaults, (setter)__Pyx_CyFunction_set_defaults, 0, 0},
    {"__kwdefaults__", (getter)__Pyx_CyFunction_get_kwdefaults, (setter)__Pyx_CyFunction_set_kwdefaults, 0, 0},
    {"__annotations__", (getter)__Pyx_CyFunction_get_annotations, (setter)__Pyx_CyFunction_set_annotations, 0, 0},
    {"_is_coroutine", (getter)__Pyx_CyFunction_get_is_coroutine, 0, 0, 0},
#if CYTHON_COMPILING_IN_LIMITED_API
    {"__module__", (getter)__Pyx_CyFunction_get_module, (setter)__Pyx_CyFunction_set_module, 0, 0},
#endif
    {0, 0, 0, 0, 0}
};
static PyMemberDef __pyx_CyFunction_members[] = {
#if !CYTHON_COMPILING_IN_LIMITED_API
    {"__module__", T_OBJECT, offsetof(PyCFunctionObject, m_module), 0, 0},
#endif
#if PY_VERSION_HEX < 0x030C0000 || CYTHON_COMPILING_IN_LIMITED_API
    {"__dictoffset__", T_PYSSIZET, offsetof(__pyx_CyFunctionObject, func_dict), READONLY, 0},
#endif
#if CYTHON_METH_FASTCALL
#if CYTHON_COMPILING_IN_LIMITED_API
    {"__vectorcalloffset__", T_PYSSIZET, offsetof(__pyx_CyFunctionObject, func_vectorcall), READONLY, 0},
#else
    {"__vectorcalloffset__", T_PYSSIZET, offsetof(PyCFunctionObject, vectorcall), READONLY, 0},
#endif
#if CYTHON_COMPILING_IN_LIMITED_API
    {"__weaklistoffset__", T_PYSSIZET, offsetof(__pyx_CyFunctionObject, func_weakreflist), READONLY, 0},
#else
    {"__weaklistoffset__", T_PYSSIZET, offsetof(PyCFunctionObject, m_weakreflist), READONLY, 0},
#endif
#endif
    {0, 0, 0,  0, 0}
};
static PyObject *
__Pyx_CyFunction_reduce(__pyx_CyFunctionObject *m, PyObject *args)
{
    PyObject *result = NULL;
    CYTHON_UNUSED_VAR(args);
    __Pyx_BEGIN_CRITICAL_SECTION(m);
    Py_INCREF(m->func_qualname);
    result = m->func_qualname;
    __Pyx_END_CRITICAL_SECTION();
    return result;
}
static PyMethodDef __pyx_CyFunction_methods[] = {
    {"__reduce__", (PyCFunction)__Pyx_CyFunction_reduce, METH_VARARGS, 0},
    {0, 0, 0, 0}
};
#if CYTHON_COMPILING_IN_LIMITED_API
#define __Pyx_CyFunction_weakreflist(cyfunc) ((cyfunc)->func_weakreflist)
#else
#define __Pyx_CyFunction_weakreflist(cyfunc) (((PyCFunctionObject*)cyfunc)->m_weakreflist)
#endif
static PyObject *__Pyx_CyFunction_Init(__pyx_CyFunctionObject *op, PyMethodDef *ml, int flags, PyObject* qualname,
                                       PyObject *closure, PyObject *module, PyObject* globals, PyObject* code) {
#if !CYTHON_COMPILING_IN_LIMITED_API
    PyCFunctionObject *cf = (PyCFunctionObject*) op;
#endif
    if (unlikely(op == NULL))
        return NULL;
#if CYTHON_COMPILING_IN_LIMITED_API
    op->func = PyCFunction_NewEx(ml, (PyObject*)op, module);
    if (unlikely(!op->func)) return NULL;
#endif
    op->flags = flags;
    __Pyx_CyFunction_weakreflist(op) = NULL;
#if !CYTHON_COMPILING_IN_LIMITED_API
    cf->m_ml = ml;
    cf->m_self = (PyObject *) op;
#endif
    Py_XINCREF(closure);
    op->func_closure = closure;
#if !CYTHON_COMPILING_IN_LIMITED_API
    Py_XINCREF(module);
    cf->m_module = module;
#endif
#if PY_VERSION_HEX < 0x030C0000 || CYTHON_COMPILING_IN_LIMITED_API
    op->func_dict = NULL;
#endif
    op->func_name = NULL;
    Py_INCREF(qualname);
    op->func_qualname = qualname;
    op->func_doc = NULL;
#if PY_VERSION_HEX < 0x030900B1 || CYTHON_COMPILING_IN_LIMITED_API
    op->func_classobj = NULL;
#else
    ((PyCMethodObject*)op)->mm_class = NULL;
#endif
    op->func_globals = globals;
    Py_INCREF(op->func_globals);
    Py_XINCREF(code);
    op->func_code = code;
    op->defaults = NULL;
    op->defaults_tuple = NULL;
    op->defaults_kwdict = NULL;
    op->defaults_getter = NULL;
    op->func_annotations = NULL;
    op->func_is_coroutine = NULL;
#if CYTHON_METH_FASTCALL
    switch (ml->ml_flags & (METH_VARARGS | METH_FASTCALL | METH_NOARGS | METH_O | METH_KEYWORDS | METH_METHOD)) {
    case METH_NOARGS:
        __Pyx_CyFunction_func_vectorcall(op) = __Pyx_CyFunction_Vectorcall_NOARGS;
        break;
    case METH_O:
        __Pyx_CyFunction_func_vectorcall(op) = __Pyx_CyFunction_Vectorcall_O;
        break;
    case METH_METHOD | METH_FASTCALL | METH_KEYWORDS:
        __Pyx_CyFunction_func_vectorcall(op) = __Pyx_CyFunction_Vectorcall_FASTCALL_KEYWORDS_METHOD;
        break;
    case METH_FASTCALL | METH_KEYWORDS:
        __Pyx_CyFunction_func_vectorcall(op) = __Pyx_CyFunction_Vectorcall_FASTCALL_KEYWORDS;
        break;
    case METH_VARARGS | METH_KEYWORDS:
        __Pyx_CyFunction_func_vectorcall(op) = NULL;
        break;
    default:
        PyErr_SetString(PyExc_SystemError, "Bad call flags for CyFunction");
        Py_DECREF(op);
        return NULL;
    }
#endif
    return (PyObject *) op;
}
static int
__Pyx_CyFunction_clear(__pyx_CyFunctionObject *m)
{
    Py_CLEAR(m->func_closure);
#if CYTHON_COMPILING_IN_LIMITED_API
    Py_CLEAR(m->func);
#else
    Py_CLEAR(((PyCFunctionObject*)m)->m_module);
#endif
#if PY_VERSION_HEX < 0x030C0000 || CYTHON_COMPILING_IN_LIMITED_API
    Py_CLEAR(m->func_dict);
#elif PY_VERSION_HEX < 0x030d0000
    _PyObject_ClearManagedDict((PyObject*)m);
#else
    PyObject_ClearManagedDict((PyObject*)m);
#endif
    Py_CLEAR(m->func_name);
    Py_CLEAR(m->func_qualname);
    Py_CLEAR(m->func_doc);
    Py_CLEAR(m->func_globals);
    Py_CLEAR(m->func_code);
#if !CYTHON_COMPILING_IN_LIMITED_API
#if PY_VERSION_HEX < 0x030900B1
    Py_CLEAR(__Pyx_CyFunction_GetClassObj(m));
#else
    {
        PyObject *cls = (PyObject*) ((PyCMethodObject *) (m))->mm_class;
        ((PyCMethodObject *) (m))->mm_class = NULL;
        Py_XDECREF(cls);
    }
#endif
#endif
    Py_CLEAR(m->defaults_tuple);
    Py_CLEAR(m->defaults_kwdict);
    Py_CLEAR(m->func_annotations);
    Py_CLEAR(m->func_is_coroutine);
    Py_CLEAR(m->defaults);
    return 0;
}
static void __Pyx__CyFunction_dealloc(__pyx_CyFunctionObject *m)
{
    if (__Pyx_CyFunction_weakreflist(m) != NULL)
        PyObject_ClearWeakRefs((PyObject *) m);
    __Pyx_CyFunction_clear(m);
    __Pyx_PyHeapTypeObject_GC_Del(m);
}
static void __Pyx_CyFunction_dealloc(__pyx_CyFunctionObject *m)
{
    PyObject_GC_UnTrack(m);
    __Pyx__CyFunction_dealloc(m);
}
static int __Pyx_CyFunction_traverse(__pyx_CyFunctionObject *m, visitproc visit, void *arg)
{
    {
        int e = __Pyx_call_type_traverse((PyObject*)m, 1, visit, arg);
        if (e) return e;
    }
    Py_VISIT(m->func_closure);
#if CYTHON_COMPILING_IN_LIMITED_API
    Py_VISIT(m->func);
#else
    Py_VISIT(((PyCFunctionObject*)m)->m_module);
#endif
#if PY_VERSION_HEX < 0x030C0000 || CYTHON_COMPILING_IN_LIMITED_API
    Py_VISIT(m->func_dict);
#else
    {
        int e =
#if PY_VERSION_HEX < 0x030d0000
            _PyObject_VisitManagedDict
#else
            PyObject_VisitManagedDict
#endif
                ((PyObject*)m, visit, arg);
        if (e != 0) return e;
    }
#endif
    __Pyx_VISIT_CONST(m->func_name);
    __Pyx_VISIT_CONST(m->func_qualname);
    Py_VISIT(m->func_doc);
    Py_VISIT(m->func_globals);
    __Pyx_VISIT_CONST(m->func_code);
#if !CYTHON_COMPILING_IN_LIMITED_API
    Py_VISIT(__Pyx_CyFunction_GetClassObj(m));
#endif
    Py_VISIT(m->defaults_tuple);
    Py_VISIT(m->defaults_kwdict);
    Py_VISIT(m->func_is_coroutine);
    Py_VISIT(m->defaults);
    return 0;
}
static PyObject*
__Pyx_CyFunction_repr(__pyx_CyFunctionObject *op)
{
    PyObject *repr;
    __Pyx_BEGIN_CRITICAL_SECTION(op);
    repr = PyUnicode_FromFormat("<cyfunction %U at %p>",
                                op->func_qualname, (void *)op);
    __Pyx_END_CRITICAL_SECTION();
    return repr;
}
static PyObject * __Pyx_CyFunction_CallMethod(PyObject *func, PyObject *self, PyObject *arg, PyObject *kw) {
#if CYTHON_COMPILING_IN_LIMITED_API
    PyObject *f = ((__pyx_CyFunctionObject*)func)->func;
    PyCFunction meth;
    int flags;
    meth = PyCFunction_GetFunction(f);
    if (unlikely(!meth)) return NULL;
    flags = PyCFunction_GetFlags(f);
    if (unlikely(flags < 0)) return NULL;
#else
    PyCFunctionObject* f = (PyCFunctionObject*)func;
    PyCFunction meth = f->m_ml->ml_meth;
    int flags = f->m_ml->ml_flags;
#endif
    Py_ssize_t size;
    switch (flags & (METH_VARARGS | METH_KEYWORDS | METH_NOARGS | METH_O)) {
    case METH_VARARGS:
        if (likely(kw == NULL || PyDict_Size(kw) == 0))
            return (*meth)(self, arg);
        break;
    case METH_VARARGS | METH_KEYWORDS:
        return (*(PyCFunctionWithKeywords)(void(*)(void))meth)(self, arg, kw);
    case METH_NOARGS:
        if (likely(kw == NULL || PyDict_Size(kw) == 0)) {
#if CYTHON_ASSUME_SAFE_SIZE
            size = PyTuple_GET_SIZE(arg);
#else
            size = PyTuple_Size(arg);
            if (unlikely(size < 0)) return NULL;
#endif
            if (likely(size == 0))
                return (*meth)(self, NULL);
            __Pyx_CyFunction_raise_argument_count_error(
                (__pyx_CyFunctionObject*)func,
                "takes no arguments", size);
            return NULL;
        }
        break;
    case METH_O:
        if (likely(kw == NULL || PyDict_Size(kw) == 0)) {
#if CYTHON_ASSUME_SAFE_SIZE
            size = PyTuple_GET_SIZE(arg);
#else
            size = PyTuple_Size(arg);
            if (unlikely(size < 0)) return NULL;
#endif
            if (likely(size == 1)) {
                PyObject *result, *arg0;
                #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
                arg0 = PyTuple_GET_ITEM(arg, 0);
                #else
                arg0 = __Pyx_PySequence_ITEM(arg, 0); if (unlikely(!arg0)) return NULL;
                #endif
                result = (*meth)(self, arg0);
                #if !(CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS)
                Py_DECREF(arg0);
                #endif
                return result;
            }
            __Pyx_CyFunction_raise_argument_count_error(
                (__pyx_CyFunctionObject*)func,
                "takes exactly one argument", size);
            return NULL;
        }
        break;
    default:
        PyErr_SetString(PyExc_SystemError, "Bad call flags for CyFunction");
        return NULL;
    }
    __Pyx_CyFunction_raise_type_error(
        (__pyx_CyFunctionObject*)func, "takes no keyword arguments");
    return NULL;
}
static CYTHON_INLINE PyObject *__Pyx_CyFunction_Call(PyObject *func, PyObject *arg, PyObject *kw) {
    PyObject *self, *result;
#if CYTHON_COMPILING_IN_LIMITED_API
    self = PyCFunction_GetSelf(((__pyx_CyFunctionObject*)func)->func);
    if (unlikely(!self) && PyErr_Occurred()) return NULL;
#else
    self = ((PyCFunctionObject*)func)->m_self;
#endif
    result = __Pyx_CyFunction_CallMethod(func, self, arg, kw);
    return result;
}
static PyObject *__Pyx_CyFunction_CallAsMethod(PyObject *func, PyObject *args, PyObject *kw) {
    PyObject *result;
    __pyx_CyFunctionObject *cyfunc = (__pyx_CyFunctionObject *) func;
#if CYTHON_METH_FASTCALL && CYTHON_VECTORCALL
     __pyx_vectorcallfunc vc = __Pyx_CyFunction_func_vectorcall(cyfunc);
    if (vc) {
#if CYTHON_ASSUME_SAFE_MACROS && CYTHON_ASSUME_SAFE_SIZE
        return __Pyx_PyVectorcall_FastCallDict(func, vc, &PyTuple_GET_ITEM(args, 0), (size_t)PyTuple_GET_SIZE(args), kw);
#else
        (void) &__Pyx_PyVectorcall_FastCallDict;
        return PyVectorcall_Call(func, args, kw);
#endif
    }
#endif
    if ((cyfunc->flags & __Pyx_CYFUNCTION_CCLASS) && !(cyfunc->flags & __Pyx_CYFUNCTION_STATICMETHOD)) {
        Py_ssize_t argc;
        PyObject *new_args;
        PyObject *self;
#if CYTHON_ASSUME_SAFE_SIZE
        argc = PyTuple_GET_SIZE(args);
#else
        argc = PyTuple_Size(args);
        if (unlikely(argc < 0)) return NULL;
#endif
        new_args = PyTuple_GetSlice(args, 1, argc);
        if (unlikely(!new_args))
            return NULL;
        self = PyTuple_GetItem(args, 0);
        if (unlikely(!self)) {
            Py_DECREF(new_args);
            PyErr_Format(PyExc_TypeError,
                         "unbound method %.200S() needs an argument",
                         cyfunc->func_qualname);
            return NULL;
        }
        result = __Pyx_CyFunction_CallMethod(func, self, new_args, kw);
        Py_DECREF(new_args);
    } else {
        result = __Pyx_CyFunction_Call(func, args, kw);
    }
    return result;
}
#if CYTHON_METH_FASTCALL && CYTHON_VECTORCALL
static CYTHON_INLINE int __Pyx_CyFunction_Vectorcall_CheckArgs(__pyx_CyFunctionObject *cyfunc, Py_ssize_t nargs, PyObject *kwnames)
{
    int ret = 0;
    if ((cyfunc->flags & __Pyx_CYFUNCTION_CCLASS) && !(cyfunc->flags & __Pyx_CYFUNCTION_STATICMETHOD)) {
        if (unlikely(nargs < 1)) {
            __Pyx_CyFunction_raise_type_error(
                cyfunc, "needs an argument");
            return -1;
        }
        ret = 1;
    }
    if (unlikely(kwnames) && unlikely(__Pyx_PyTuple_GET_SIZE(kwnames))) {
        __Pyx_CyFunction_raise_type_error(
            cyfunc, "takes no keyword arguments");
        return -1;
    }
    return ret;
}
static PyObject * __Pyx_CyFunction_Vectorcall_NOARGS(PyObject *func, PyObject *const *args, size_t nargsf, PyObject *kwnames)
{
    __pyx_CyFunctionObject *cyfunc = (__pyx_CyFunctionObject *)func;
    Py_ssize_t nargs = PyVectorcall_NARGS(nargsf);
    PyObject *self;
#if CYTHON_COMPILING_IN_LIMITED_API
    PyCFunction meth = PyCFunction_GetFunction(cyfunc->func);
    if (unlikely(!meth)) return NULL;
#else
    PyCFunction meth = ((PyCFunctionObject*)cyfunc)->m_ml->ml_meth;
#endif
    switch (__Pyx_CyFunction_Vectorcall_CheckArgs(cyfunc, nargs, kwnames)) {
    case 1:
        self = args[0];
        args += 1;
        nargs -= 1;
        break;
    case 0:
#if CYTHON_COMPILING_IN_LIMITED_API
        self = PyCFunction_GetSelf(((__pyx_CyFunctionObject*)cyfunc)->func);
        if (unlikely(!self) && PyErr_Occurred()) return NULL;
#else
        self = ((PyCFunctionObject*)cyfunc)->m_self;
#endif
        break;
    default:
        return NULL;
    }
    if (unlikely(nargs != 0)) {
        __Pyx_CyFunction_raise_argument_count_error(
            cyfunc, "takes no arguments", nargs);
        return NULL;
    }
    return meth(self, NULL);
}
static PyObject * __Pyx_CyFunction_Vectorcall_O(PyObject *func, PyObject *const *args, size_t nargsf, PyObject *kwnames)
{
    __pyx_CyFunctionObject *cyfunc = (__pyx_CyFunctionObject *)func;
    Py_ssize_t nargs = PyVectorcall_NARGS(nargsf);
    PyObject *self;
#if CYTHON_COMPILING_IN_LIMITED_API
    PyCFunction meth = PyCFunction_GetFunction(cyfunc->func);
    if (unlikely(!meth)) return NULL;
#else
    PyCFunction meth = ((PyCFunctionObject*)cyfunc)->m_ml->ml_meth;
#endif
    switch (__Pyx_CyFunction_Vectorcall_CheckArgs(cyfunc, nargs, kwnames)) {
    case 1:
        self = args[0];
        args += 1;
        nargs -= 1;
        break;
    case 0:
#if CYTHON_COMPILING_IN_LIMITED_API
        self = PyCFunction_GetSelf(((__pyx_CyFunctionObject*)cyfunc)->func);
        if (unlikely(!self) && PyErr_Occurred()) return NULL;
#else
        self = ((PyCFunctionObject*)cyfunc)->m_self;
#endif
        break;
    default:
        return NULL;
    }
    if (unlikely(nargs != 1)) {
        __Pyx_CyFunction_raise_argument_count_error(
            cyfunc, "takes exactly one argument", nargs);
        return NULL;
    }
    return meth(self, args[0]);
}
static PyObject * __Pyx_CyFunction_Vectorcall_FASTCALL_KEYWORDS(PyObject *func, PyObject *const *args, size_t nargsf, PyObject *kwnames)
{
    __pyx_CyFunctionObject *cyfunc = (__pyx_CyFunctionObject *)func;
    Py_ssize_t nargs = PyVectorcall_NARGS(nargsf);
    PyObject *self;
#if CYTHON_COMPILING_IN_LIMITED_API
    PyCFunction meth = PyCFunction_GetFunction(cyfunc->func);
    if (unlikely(!meth)) return NULL;
#else
    PyCFunction meth = ((PyCFunctionObject*)cyfunc)->m_ml->ml_meth;
#endif
    switch (__Pyx_CyFunction_Vectorcall_CheckArgs(cyfunc, nargs, NULL)) {
    case 1:
        self = args[0];
        args += 1;
        nargs -= 1;
        break;
    case 0:
#if CYTHON_COMPILING_IN_LIMITED_API
        self = PyCFunction_GetSelf(((__pyx_CyFunctionObject*)cyfunc)->func);
        if (unlikely(!self) && PyErr_Occurred()) return NULL;
#else
        self = ((PyCFunctionObject*)cyfunc)->m_self;
#endif
        break;
    default:
        return NULL;
    }
    return ((__Pyx_PyCFunctionFastWithKeywords)(void(*)(void))meth)(self, args, nargs, kwnames);
}
static PyObject * __Pyx_CyFunction_Vectorcall_FASTCALL_KEYWORDS_METHOD(PyObject *func, PyObject *const *args, size_t nargsf, PyObject *kwnames)
{
    __pyx_CyFunctionObject *cyfunc = (__pyx_CyFunctionObject *)func;
    PyTypeObject *cls = (PyTypeObject *) __Pyx_CyFunction_GetClassObj(cyfunc);
    Py_ssize_t nargs = PyVectorcall_NARGS(nargsf);
    PyObject *self;
#if CYTHON_COMPILING_IN_LIMITED_API
    PyCFunction meth = PyCFunction_GetFunction(cyfunc->func);
    if (unlikely(!meth)) return NULL;
#else
    PyCFunction meth = ((PyCFunctionObject*)cyfunc)->m_ml->ml_meth;
#endif
    switch (__Pyx_CyFunction_Vectorcall_CheckArgs(cyfunc, nargs, NULL)) {
    case 1:
        self = args[0];
        args += 1;
        nargs -= 1;
        break;
    case 0:
#if CYTHON_COMPILING_IN_LIMITED_API
        self = PyCFunction_GetSelf(((__pyx_CyFunctionObject*)cyfunc)->func);
        if (unlikely(!self) && PyErr_Occurred()) return NULL;
#else
        self = ((PyCFunctionObject*)cyfunc)->m_self;
#endif
        break;
    default:
        return NULL;
    }
    #if PY_VERSION_HEX < 0x030e00A6
    size_t nargs_value = (size_t) nargs;
    #else
    Py_ssize_t nargs_value = nargs;
    #endif
    return ((__Pyx_PyCMethod)(void(*)(void))meth)(self, cls, args, nargs_value, kwnames);
}
#endif
static PyType_Slot __pyx_CyFunctionType_slots[] = {
    {Py_tp_dealloc, (void *)__Pyx_CyFunction_dealloc},
    {Py_tp_repr, (void *)__Pyx_CyFunction_repr},
    {Py_tp_call, (void *)__Pyx_CyFunction_CallAsMethod},
    {Py_tp_traverse, (void *)__Pyx_CyFunction_traverse},
    {Py_tp_clear, (void *)__Pyx_CyFunction_clear},
    {Py_tp_methods, (void *)__pyx_CyFunction_methods},
    {Py_tp_members, (void *)__pyx_CyFunction_members},
    {Py_tp_getset, (void *)__pyx_CyFunction_getsets},
    {Py_tp_descr_get, (void *)__Pyx_PyMethod_New},
    {0, 0},
};
static PyType_Spec __pyx_CyFunctionType_spec = {
    __PYX_TYPE_MODULE_PREFIX "cython_function_or_method",
    sizeof(__pyx_CyFunctionObject),
    0,
#ifdef Py_TPFLAGS_METHOD_DESCRIPTOR
    Py_TPFLAGS_METHOD_DESCRIPTOR |
#endif
#if CYTHON_METH_FASTCALL
#if defined(Py_TPFLAGS_HAVE_VECTORCALL)
    Py_TPFLAGS_HAVE_VECTORCALL |
#elif defined(_Py_TPFLAGS_HAVE_VECTORCALL)
    _Py_TPFLAGS_HAVE_VECTORCALL |
#endif
#endif // CYTHON_METH_FASTCALL
#if PY_VERSION_HEX >= 0x030C0000 && !CYTHON_COMPILING_IN_LIMITED_API
    Py_TPFLAGS_MANAGED_DICT |
#endif
    Py_TPFLAGS_IMMUTABLETYPE | Py_TPFLAGS_DISALLOW_INSTANTIATION |
    Py_TPFLAGS_DEFAULT | Py_TPFLAGS_HAVE_GC | Py_TPFLAGS_BASETYPE,
    __pyx_CyFunctionType_slots
};
static int __pyx_CyFunction_init(PyObject *module) {
    __pyx_mstatetype *mstate = __Pyx_PyModule_GetState(module);
    mstate->__pyx_CyFunctionType = __Pyx_FetchCommonTypeFromSpec(
        mstate->__pyx_CommonTypesMetaclassType, module, &__pyx_CyFunctionType_spec, NULL);
    if (unlikely(mstate->__pyx_CyFunctionType == NULL)) {
        return -1;
    }
    return 0;
}
static CYTHON_INLINE PyObject *__Pyx_CyFunction_InitDefaults(PyObject *func, PyTypeObject *defaults_type) {
    __pyx_CyFunctionObject *m = (__pyx_CyFunctionObject *) func;
    m->defaults = PyObject_CallObject((PyObject*)defaults_type, NULL); // _PyObject_New(defaults_type);
    if (unlikely(!m->defaults))
        return NULL;
    return m->defaults;
}
static CYTHON_INLINE void __Pyx_CyFunction_SetDefaultsTuple(PyObject *func, PyObject *tuple) {
    __pyx_CyFunctionObject *m = (__pyx_CyFunctionObject *) func;
    m->defaults_tuple = tuple;
    Py_INCREF(tuple);
}
static CYTHON_INLINE void __Pyx_CyFunction_SetDefaultsKwDict(PyObject *func, PyObject *dict) {
    __pyx_CyFunctionObject *m = (__pyx_CyFunctionObject *) func;
    m->defaults_kwdict = dict;
    Py_INCREF(dict);
}
static CYTHON_INLINE void __Pyx_CyFunction_SetAnnotationsDict(PyObject *func, PyObject *dict) {
    __pyx_CyFunctionObject *m = (__pyx_CyFunctionObject *) func;
    m->func_annotations = dict;
    Py_INCREF(dict);
}

/* CythonFunction */
static PyObject *__Pyx_CyFunction_New(PyMethodDef *ml, int flags, PyObject* qualname,
                                      PyObject *closure, PyObject *module, PyObject* globals, PyObject* code) {
    PyObject *op = __Pyx_CyFunction_Init(
        PyObject_GC_New(__pyx_CyFunctionObject, __pyx_mstate_global->__pyx_CyFunctionType),
        ml, flags, qualname, closure, module, globals, code
    );
    if (likely(op)) {
        PyObject_GC_Track(op);
    }
    return op;
}

/* CLineInTraceback (used by AddTraceback) */
#if CYTHON_CLINE_IN_TRACEBACK && CYTHON_CLINE_IN_TRACEBACK_RUNTIME
#if CYTHON_COMPILING_IN_LIMITED_API && __PYX_LIMITED_VERSION_HEX < 0x030A0000
#define __Pyx_PyProbablyModule_GetDict(o) __Pyx_XNewRef(PyModule_GetDict(o))
#elif !CYTHON_COMPILING_IN_CPYTHON || CYTHON_COMPILING_IN_CPYTHON_FREETHREADING
#define __Pyx_PyProbablyModule_GetDict(o) PyObject_GenericGetDict(o, NULL);
#else
PyObject* __Pyx_PyProbablyModule_GetDict(PyObject *o) {
    PyObject **dict_ptr = _PyObject_GetDictPtr(o);
    return dict_ptr ? __Pyx_XNewRef(*dict_ptr) : NULL;
}
#endif
static int __Pyx_CLineForTraceback(PyThreadState *tstate, int c_line) {
    PyObject *use_cline = NULL;
    PyObject *ptype, *pvalue, *ptraceback;
    PyObject *cython_runtime_dict;
    CYTHON_MAYBE_UNUSED_VAR(tstate);
    if (unlikely(!__pyx_mstate_global->__pyx_cython_runtime)) {
        return c_line;
    }
    __Pyx_ErrFetchInState(tstate, &ptype, &pvalue, &ptraceback);
    cython_runtime_dict = __Pyx_PyProbablyModule_GetDict(__pyx_mstate_global->__pyx_cython_runtime);
    if (likely(cython_runtime_dict)) {
        __PYX_PY_DICT_LOOKUP_IF_MODIFIED(
            use_cline, cython_runtime_dict,
            __Pyx_PyDict_SetDefault(cython_runtime_dict, __pyx_mstate_global->__pyx_n_u_cline_in_traceback, Py_False))
    }
    if (use_cline == NULL || use_cline == Py_False || (use_cline != Py_True && PyObject_Not(use_cline) != 0)) {
        c_line = 0;
    }
    Py_XDECREF(use_cline);
    Py_XDECREF(cython_runtime_dict);
    __Pyx_ErrRestoreInState(tstate, ptype, pvalue, ptraceback);
    return c_line;
}
#endif

/* CodeObjectCache (used by AddTraceback) */
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 __Pyx_CachedCodeObjectType *__pyx__find_code_object(struct __Pyx_CodeObjectCache *code_cache, int code_line) {
    __Pyx_CachedCodeObjectType* code_object;
    int pos;
    if (unlikely(!code_line) || unlikely(!code_cache->entries)) {
        return NULL;
    }
    pos = __pyx_bisect_code_objects(code_cache->entries, code_cache->count, code_line);
    if (unlikely(pos >= code_cache->count) || unlikely(code_cache->entries[pos].code_line != code_line)) {
        return NULL;
    }
    code_object = code_cache->entries[pos].code_object;
    Py_INCREF(code_object);
    return code_object;
}
static __Pyx_CachedCodeObjectType *__pyx_find_code_object(int code_line) {
#if CYTHON_COMPILING_IN_CPYTHON_FREETHREADING && !CYTHON_ATOMICS
    (void)__pyx__find_code_object;
    return NULL; // Most implementation should have atomics. But otherwise, don't make it thread-safe, just miss.
#else
    struct __Pyx_CodeObjectCache *code_cache = &__pyx_mstate_global->__pyx_code_cache;
#if CYTHON_COMPILING_IN_CPYTHON_FREETHREADING
    __pyx_nonatomic_int_type old_count = __pyx_atomic_incr_acq_rel(&code_cache->accessor_count);
    if (old_count < 0) {
        __pyx_atomic_decr_acq_rel(&code_cache->accessor_count);
        return NULL;
    }
#endif
    __Pyx_CachedCodeObjectType *result = __pyx__find_code_object(code_cache, code_line);
#if CYTHON_COMPILING_IN_CPYTHON_FREETHREADING
    __pyx_atomic_decr_acq_rel(&code_cache->accessor_count);
#endif
    return result;
#endif
}
static void __pyx__insert_code_object(struct __Pyx_CodeObjectCache *code_cache, int code_line, __Pyx_CachedCodeObjectType* code_object)
{
    int pos, i;
    __Pyx_CodeObjectCacheEntry* entries = code_cache->entries;
    if (unlikely(!code_line)) {
        return;
    }
    if (unlikely(!entries)) {
        entries = (__Pyx_CodeObjectCacheEntry*)PyMem_Malloc(64*sizeof(__Pyx_CodeObjectCacheEntry));
        if (likely(entries)) {
            code_cache->entries = entries;
            code_cache->max_count = 64;
            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(code_cache->entries, code_cache->count, code_line);
    if ((pos < code_cache->count) && unlikely(code_cache->entries[pos].code_line == code_line)) {
        __Pyx_CachedCodeObjectType* tmp = entries[pos].code_object;
        entries[pos].code_object = code_object;
        Py_INCREF(code_object);
        Py_DECREF(tmp);
        return;
    }
    if (code_cache->count == code_cache->max_count) {
        int new_max = code_cache->max_count + 64;
        entries = (__Pyx_CodeObjectCacheEntry*)PyMem_Realloc(
            code_cache->entries, ((size_t)new_max) * sizeof(__Pyx_CodeObjectCacheEntry));
        if (unlikely(!entries)) {
            return;
        }
        code_cache->entries = entries;
        code_cache->max_count = new_max;
    }
    for (i=code_cache->count; i>pos; i--) {
        entries[i] = entries[i-1];
    }
    entries[pos].code_line = code_line;
    entries[pos].code_object = code_object;
    code_cache->count++;
    Py_INCREF(code_object);
}
static void __pyx_insert_code_object(int code_line, __Pyx_CachedCodeObjectType* code_object) {
#if CYTHON_COMPILING_IN_CPYTHON_FREETHREADING && !CYTHON_ATOMICS
    (void)__pyx__insert_code_object;
    return; // Most implementation should have atomics. But otherwise, don't make it thread-safe, just fail.
#else
    struct __Pyx_CodeObjectCache *code_cache = &__pyx_mstate_global->__pyx_code_cache;
#if CYTHON_COMPILING_IN_CPYTHON_FREETHREADING
    __pyx_nonatomic_int_type expected = 0;
    if (!__pyx_atomic_int_cmp_exchange(&code_cache->accessor_count, &expected, INT_MIN)) {
        return;
    }
#endif
    __pyx__insert_code_object(code_cache, code_line, code_object);
#if CYTHON_COMPILING_IN_CPYTHON_FREETHREADING
    __pyx_atomic_sub(&code_cache->accessor_count, INT_MIN);
#endif
#endif
}

/* AddTraceback */
#include "compile.h"
#include "frameobject.h"
#include "traceback.h"
#if PY_VERSION_HEX >= 0x030b00a6 && !CYTHON_COMPILING_IN_LIMITED_API && !defined(PYPY_VERSION)
  #ifndef Py_BUILD_CORE
    #define Py_BUILD_CORE 1
  #endif
  #include "internal/pycore_frame.h"
#endif
#if CYTHON_COMPILING_IN_LIMITED_API
static PyObject *__Pyx_PyCode_Replace_For_AddTraceback(PyObject *code, PyObject *scratch_dict,
                                                       PyObject *firstlineno, PyObject *name) {
    PyObject *replace = NULL;
    if (unlikely(PyDict_SetItemString(scratch_dict, "co_firstlineno", firstlineno))) return NULL;
    if (unlikely(PyDict_SetItemString(scratch_dict, "co_name", name))) return NULL;
    replace = PyObject_GetAttrString(code, "replace");
    if (likely(replace)) {
        PyObject *result = PyObject_Call(replace, __pyx_mstate_global->__pyx_empty_tuple, scratch_dict);
        Py_DECREF(replace);
        return result;
    }
    PyErr_Clear();
    return NULL;
}
static void __Pyx_AddTraceback(const char *funcname, int c_line,
                               int py_line, const char *filename) {
    PyObject *code_object = NULL, *py_py_line = NULL, *py_funcname = NULL, *dict = NULL;
    PyObject *replace = NULL, *getframe = NULL, *frame = NULL;
    PyObject *exc_type, *exc_value, *exc_traceback;
    int success = 0;
    if (c_line) {
        c_line = __Pyx_CLineForTraceback(__Pyx_PyThreadState_Current, c_line);
    }
    PyErr_Fetch(&exc_type, &exc_value, &exc_traceback);
    code_object = __pyx_find_code_object(c_line ? -c_line : py_line);
    if (!code_object) {
        code_object = Py_CompileString("_getframe()", filename, Py_eval_input);
        if (unlikely(!code_object)) goto bad;
        py_py_line = PyLong_FromLong(py_line);
        if (unlikely(!py_py_line)) goto bad;
        if (c_line) {
            py_funcname = PyUnicode_FromFormat( "%s (%s:%d)", funcname, __pyx_cfilenm, c_line);
        } else {
            py_funcname = PyUnicode_FromString(funcname);
        }
        if (unlikely(!py_funcname)) goto bad;
        dict = PyDict_New();
        if (unlikely(!dict)) goto bad;
        {
            PyObject *old_code_object = code_object;
            code_object = __Pyx_PyCode_Replace_For_AddTraceback(code_object, dict, py_py_line, py_funcname);
            Py_DECREF(old_code_object);
        }
        if (unlikely(!code_object)) goto bad;
        __pyx_insert_code_object(c_line ? -c_line : py_line, code_object);
    } else {
        dict = PyDict_New();
    }
    getframe = PySys_GetObject("_getframe");
    if (unlikely(!getframe)) goto bad;
    if (unlikely(PyDict_SetItemString(dict, "_getframe", getframe))) goto bad;
    frame = PyEval_EvalCode(code_object, dict, dict);
    if (unlikely(!frame) || frame == Py_None) goto bad;
    success = 1;
  bad:
    PyErr_Restore(exc_type, exc_value, exc_traceback);
    Py_XDECREF(code_object);
    Py_XDECREF(py_py_line);
    Py_XDECREF(py_funcname);
    Py_XDECREF(dict);
    Py_XDECREF(replace);
    if (success) {
        PyTraceBack_Here(
            (struct _frame*)frame);
    }
    Py_XDECREF(frame);
}
#else
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 (c_line) {
        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;
    }
    py_code = PyCode_NewEmpty(filename, funcname, py_line);
    Py_XDECREF(py_funcname);
    return py_code;
bad:
    Py_XDECREF(py_funcname);
    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_mstate_global->__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);
}
#endif

/* 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;\
    }

/* PyObjectVectorCallKwBuilder (used by CIntToPy) */
#if CYTHON_VECTORCALL
static int __Pyx_VectorcallBuilder_AddArg(PyObject *key, PyObject *value, PyObject *builder, PyObject **args, int n) {
    (void)__Pyx_PyObject_FastCallDict;
    if (__Pyx_PyTuple_SET_ITEM(builder, n, key) != (0)) return -1;
    Py_INCREF(key);
    args[n] = value;
    return 0;
}
CYTHON_UNUSED static int __Pyx_VectorcallBuilder_AddArg_Check(PyObject *key, PyObject *value, PyObject *builder, PyObject **args, int n) {
    (void)__Pyx_VectorcallBuilder_AddArgStr;
    if (unlikely(!PyUnicode_Check(key))) {
        PyErr_SetString(PyExc_TypeError, "keywords must be strings");
        return -1;
    }
    return __Pyx_VectorcallBuilder_AddArg(key, value, builder, args, n);
}
static int __Pyx_VectorcallBuilder_AddArgStr(const char *key, PyObject *value, PyObject *builder, PyObject **args, int n) {
    PyObject *pyKey = PyUnicode_FromString(key);
    if (!pyKey) return -1;
    return __Pyx_VectorcallBuilder_AddArg(pyKey, value, builder, args, n);
}
#else // CYTHON_VECTORCALL
CYTHON_UNUSED static int __Pyx_VectorcallBuilder_AddArg_Check(PyObject *key, PyObject *value, PyObject *builder, CYTHON_UNUSED PyObject **args, CYTHON_UNUSED int n) {
    if (unlikely(!PyUnicode_Check(key))) {
        PyErr_SetString(PyExc_TypeError, "keywords must be strings");
        return -1;
    }
    return PyDict_SetItem(builder, key, value);
}
#endif

/* CIntToPy */
static CYTHON_INLINE PyObject* __Pyx_PyLong_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 PyLong_FromLong((long) value);
        } else if (sizeof(int) <= sizeof(unsigned long)) {
            return PyLong_FromUnsignedLong((unsigned long) value);
#if !CYTHON_COMPILING_IN_PYPY
        } 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 PyLong_FromLong((long) value);
        } else if (sizeof(int) <= sizeof(PY_LONG_LONG)) {
            return PyLong_FromLongLong((PY_LONG_LONG) value);
        }
    }
    {
        unsigned char *bytes = (unsigned char *)&value;
#if !CYTHON_COMPILING_IN_LIMITED_API && PY_VERSION_HEX >= 0x030d00A4
        if (is_unsigned) {
            return PyLong_FromUnsignedNativeBytes(bytes, sizeof(value), -1);
        } else {
            return PyLong_FromNativeBytes(bytes, sizeof(value), -1);
        }
#elif !CYTHON_COMPILING_IN_LIMITED_API && PY_VERSION_HEX < 0x030d0000
        int one = 1; int little = (int)*(unsigned char *)&one;
        return _PyLong_FromByteArray(bytes, sizeof(int),
                                     little, !is_unsigned);
#else
        int one = 1; int little = (int)*(unsigned char *)&one;
        PyObject *from_bytes, *result = NULL, *kwds = NULL;
        PyObject *py_bytes = NULL, *order_str = NULL;
        from_bytes = PyObject_GetAttrString((PyObject*)&PyLong_Type, "from_bytes");
        if (!from_bytes) return NULL;
        py_bytes = PyBytes_FromStringAndSize((char*)bytes, sizeof(int));
        if (!py_bytes) goto limited_bad;
        order_str = PyUnicode_FromString(little ? "little" : "big");
        if (!order_str) goto limited_bad;
        {
            PyObject *args[3+(CYTHON_VECTORCALL ? 1 : 0)] = { NULL, py_bytes, order_str };
            if (!is_unsigned) {
                kwds = __Pyx_MakeVectorcallBuilderKwds(1);
                if (!kwds) goto limited_bad;
                if (__Pyx_VectorcallBuilder_AddArgStr("signed", __Pyx_NewRef(Py_True), kwds, args+3, 0) < 0) goto limited_bad;
            }
            result = __Pyx_Object_Vectorcall_CallFromBuilder(from_bytes, args+1, 2 | __Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET, kwds);
        }
        limited_bad:
        Py_XDECREF(kwds);
        Py_XDECREF(order_str);
        Py_XDECREF(py_bytes);
        Py_XDECREF(from_bytes);
        return result;
#endif
    }
}

/* CIntFromPy */
static CYTHON_INLINE GLenum __Pyx_PyLong_As_GLenum(PyObject *x) {
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wconversion"
#endif
    const GLenum neg_one = (GLenum) -1, const_zero = (GLenum) 0;
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic pop
#endif
    const int is_unsigned = neg_one > const_zero;
    if (unlikely(!PyLong_Check(x))) {
        GLenum val;
        PyObject *tmp = __Pyx_PyNumber_Long(x);
        if (!tmp) return (GLenum) -1;
        val = __Pyx_PyLong_As_GLenum(tmp);
        Py_DECREF(tmp);
        return val;
    }
    if (is_unsigned) {
#if CYTHON_USE_PYLONG_INTERNALS
        if (unlikely(__Pyx_PyLong_IsNeg(x))) {
            goto raise_neg_overflow;
        } else if (__Pyx_PyLong_IsCompact(x)) {
            __PYX_VERIFY_RETURN_INT(GLenum, __Pyx_compact_upylong, __Pyx_PyLong_CompactValueUnsigned(x))
        } else {
            const digit* digits = __Pyx_PyLong_Digits(x);
            assert(__Pyx_PyLong_DigitCount(x) > 1);
            switch (__Pyx_PyLong_DigitCount(x)) {
                case 2:
                    if ((8 * sizeof(GLenum) > 1 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 2 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(GLenum, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(GLenum) >= 2 * PyLong_SHIFT)) {
                            return (GLenum) (((((GLenum)digits[1]) << PyLong_SHIFT) | (GLenum)digits[0]));
                        }
                    }
                    break;
                case 3:
                    if ((8 * sizeof(GLenum) > 2 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 3 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(GLenum, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(GLenum) >= 3 * PyLong_SHIFT)) {
                            return (GLenum) (((((((GLenum)digits[2]) << PyLong_SHIFT) | (GLenum)digits[1]) << PyLong_SHIFT) | (GLenum)digits[0]));
                        }
                    }
                    break;
                case 4:
                    if ((8 * sizeof(GLenum) > 3 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 4 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(GLenum, 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(GLenum) >= 4 * PyLong_SHIFT)) {
                            return (GLenum) (((((((((GLenum)digits[3]) << PyLong_SHIFT) | (GLenum)digits[2]) << PyLong_SHIFT) | (GLenum)digits[1]) << PyLong_SHIFT) | (GLenum)digits[0]));
                        }
                    }
                    break;
            }
        }
#endif
#if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX < 0x030C00A7
        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 (GLenum) -1;
            if (unlikely(result == 1))
                goto raise_neg_overflow;
        }
#endif
        if ((sizeof(GLenum) <= sizeof(unsigned long))) {
            __PYX_VERIFY_RETURN_INT_EXC(GLenum, unsigned long, PyLong_AsUnsignedLong(x))
        } else if ((sizeof(GLenum) <= sizeof(unsigned PY_LONG_LONG))) {
            __PYX_VERIFY_RETURN_INT_EXC(GLenum, unsigned PY_LONG_LONG, PyLong_AsUnsignedLongLong(x))
        }
    } else {
#if CYTHON_USE_PYLONG_INTERNALS
        if (__Pyx_PyLong_IsCompact(x)) {
            __PYX_VERIFY_RETURN_INT(GLenum, __Pyx_compact_pylong, __Pyx_PyLong_CompactValue(x))
        } else {
            const digit* digits = __Pyx_PyLong_Digits(x);
            assert(__Pyx_PyLong_DigitCount(x) > 1);
            switch (__Pyx_PyLong_SignedDigitCount(x)) {
                case -2:
                    if ((8 * sizeof(GLenum) - 1 > 1 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 2 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(GLenum, long, -(long) (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(GLenum) - 1 > 2 * PyLong_SHIFT)) {
                            return (GLenum) (((GLenum)-1)*(((((GLenum)digits[1]) << PyLong_SHIFT) | (GLenum)digits[0])));
                        }
                    }
                    break;
                case 2:
                    if ((8 * sizeof(GLenum) > 1 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 2 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(GLenum, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(GLenum) - 1 > 2 * PyLong_SHIFT)) {
                            return (GLenum) ((((((GLenum)digits[1]) << PyLong_SHIFT) | (GLenum)digits[0])));
                        }
                    }
                    break;
                case -3:
                    if ((8 * sizeof(GLenum) - 1 > 2 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 3 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(GLenum, long, -(long) (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(GLenum) - 1 > 3 * PyLong_SHIFT)) {
                            return (GLenum) (((GLenum)-1)*(((((((GLenum)digits[2]) << PyLong_SHIFT) | (GLenum)digits[1]) << PyLong_SHIFT) | (GLenum)digits[0])));
                        }
                    }
                    break;
                case 3:
                    if ((8 * sizeof(GLenum) > 2 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 3 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(GLenum, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(GLenum) - 1 > 3 * PyLong_SHIFT)) {
                            return (GLenum) ((((((((GLenum)digits[2]) << PyLong_SHIFT) | (GLenum)digits[1]) << PyLong_SHIFT) | (GLenum)digits[0])));
                        }
                    }
                    break;
                case -4:
                    if ((8 * sizeof(GLenum) - 1 > 3 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 4 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(GLenum, 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(GLenum) - 1 > 4 * PyLong_SHIFT)) {
                            return (GLenum) (((GLenum)-1)*(((((((((GLenum)digits[3]) << PyLong_SHIFT) | (GLenum)digits[2]) << PyLong_SHIFT) | (GLenum)digits[1]) << PyLong_SHIFT) | (GLenum)digits[0])));
                        }
                    }
                    break;
                case 4:
                    if ((8 * sizeof(GLenum) > 3 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 4 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(GLenum, 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(GLenum) - 1 > 4 * PyLong_SHIFT)) {
                            return (GLenum) ((((((((((GLenum)digits[3]) << PyLong_SHIFT) | (GLenum)digits[2]) << PyLong_SHIFT) | (GLenum)digits[1]) << PyLong_SHIFT) | (GLenum)digits[0])));
                        }
                    }
                    break;
            }
        }
#endif
        if ((sizeof(GLenum) <= sizeof(long))) {
            __PYX_VERIFY_RETURN_INT_EXC(GLenum, long, PyLong_AsLong(x))
        } else if ((sizeof(GLenum) <= sizeof(PY_LONG_LONG))) {
            __PYX_VERIFY_RETURN_INT_EXC(GLenum, PY_LONG_LONG, PyLong_AsLongLong(x))
        }
    }
    {
        GLenum val;
        int ret = -1;
#if PY_VERSION_HEX >= 0x030d00A6 && !CYTHON_COMPILING_IN_LIMITED_API
        Py_ssize_t bytes_copied = PyLong_AsNativeBytes(
            x, &val, sizeof(val), Py_ASNATIVEBYTES_NATIVE_ENDIAN | (is_unsigned ? Py_ASNATIVEBYTES_UNSIGNED_BUFFER | Py_ASNATIVEBYTES_REJECT_NEGATIVE : 0));
        if (unlikely(bytes_copied == -1)) {
        } else if (unlikely(bytes_copied > (Py_ssize_t) sizeof(val))) {
            goto raise_overflow;
        } else {
            ret = 0;
        }
#elif PY_VERSION_HEX < 0x030d0000 && !(CYTHON_COMPILING_IN_PYPY || CYTHON_COMPILING_IN_LIMITED_API) || defined(_PyLong_AsByteArray)
        int one = 1; int is_little = (int)*(unsigned char *)&one;
        unsigned char *bytes = (unsigned char *)&val;
        ret = _PyLong_AsByteArray((PyLongObject *)x,
                                    bytes, sizeof(val),
                                    is_little, !is_unsigned);
#else
        PyObject *v;
        PyObject *stepval = NULL, *mask = NULL, *shift = NULL;
        int bits, remaining_bits, is_negative = 0;
        int chunk_size = (sizeof(long) < 8) ? 30 : 62;
        if (likely(PyLong_CheckExact(x))) {
            v = __Pyx_NewRef(x);
        } else {
            v = PyNumber_Long(x);
            if (unlikely(!v)) return (GLenum) -1;
            assert(PyLong_CheckExact(v));
        }
        {
            int result = PyObject_RichCompareBool(v, Py_False, Py_LT);
            if (unlikely(result < 0)) {
                Py_DECREF(v);
                return (GLenum) -1;
            }
            is_negative = result == 1;
        }
        if (is_unsigned && unlikely(is_negative)) {
            Py_DECREF(v);
            goto raise_neg_overflow;
        } else if (is_negative) {
            stepval = PyNumber_Invert(v);
            Py_DECREF(v);
            if (unlikely(!stepval))
                return (GLenum) -1;
        } else {
            stepval = v;
        }
        v = NULL;
        val = (GLenum) 0;
        mask = PyLong_FromLong((1L << chunk_size) - 1); if (unlikely(!mask)) goto done;
        shift = PyLong_FromLong(chunk_size); if (unlikely(!shift)) goto done;
        for (bits = 0; bits < (int) sizeof(GLenum) * 8 - chunk_size; bits += chunk_size) {
            PyObject *tmp, *digit;
            long idigit;
            digit = PyNumber_And(stepval, mask);
            if (unlikely(!digit)) goto done;
            idigit = PyLong_AsLong(digit);
            Py_DECREF(digit);
            if (unlikely(idigit < 0)) goto done;
            val |= ((GLenum) idigit) << bits;
            tmp = PyNumber_Rshift(stepval, shift);
            if (unlikely(!tmp)) goto done;
            Py_DECREF(stepval); stepval = tmp;
        }
        Py_DECREF(shift); shift = NULL;
        Py_DECREF(mask); mask = NULL;
        {
            long idigit = PyLong_AsLong(stepval);
            if (unlikely(idigit < 0)) goto done;
            remaining_bits = ((int) sizeof(GLenum) * 8) - bits - (is_unsigned ? 0 : 1);
            if (unlikely(idigit >= (1L << remaining_bits)))
                goto raise_overflow;
            val |= ((GLenum) idigit) << bits;
        }
        if (!is_unsigned) {
            if (unlikely(val & (((GLenum) 1) << (sizeof(GLenum) * 8 - 1))))
                goto raise_overflow;
            if (is_negative)
                val = ~val;
        }
        ret = 0;
    done:
        Py_XDECREF(shift);
        Py_XDECREF(mask);
        Py_XDECREF(stepval);
#endif
        if (unlikely(ret))
            return (GLenum) -1;
        return val;
    }
raise_overflow:
    PyErr_SetString(PyExc_OverflowError,
        "value too large to convert to GLenum");
    return (GLenum) -1;
raise_neg_overflow:
    PyErr_SetString(PyExc_OverflowError,
        "can't convert negative value to GLenum");
    return (GLenum) -1;
}

/* CIntFromPy */
static CYTHON_INLINE GLuint __Pyx_PyLong_As_GLuint(PyObject *x) {
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wconversion"
#endif
    const GLuint neg_one = (GLuint) -1, const_zero = (GLuint) 0;
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic pop
#endif
    const int is_unsigned = neg_one > const_zero;
    if (unlikely(!PyLong_Check(x))) {
        GLuint val;
        PyObject *tmp = __Pyx_PyNumber_Long(x);
        if (!tmp) return (GLuint) -1;
        val = __Pyx_PyLong_As_GLuint(tmp);
        Py_DECREF(tmp);
        return val;
    }
    if (is_unsigned) {
#if CYTHON_USE_PYLONG_INTERNALS
        if (unlikely(__Pyx_PyLong_IsNeg(x))) {
            goto raise_neg_overflow;
        } else if (__Pyx_PyLong_IsCompact(x)) {
            __PYX_VERIFY_RETURN_INT(GLuint, __Pyx_compact_upylong, __Pyx_PyLong_CompactValueUnsigned(x))
        } else {
            const digit* digits = __Pyx_PyLong_Digits(x);
            assert(__Pyx_PyLong_DigitCount(x) > 1);
            switch (__Pyx_PyLong_DigitCount(x)) {
                case 2:
                    if ((8 * sizeof(GLuint) > 1 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 2 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(GLuint, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(GLuint) >= 2 * PyLong_SHIFT)) {
                            return (GLuint) (((((GLuint)digits[1]) << PyLong_SHIFT) | (GLuint)digits[0]));
                        }
                    }
                    break;
                case 3:
                    if ((8 * sizeof(GLuint) > 2 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 3 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(GLuint, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(GLuint) >= 3 * PyLong_SHIFT)) {
                            return (GLuint) (((((((GLuint)digits[2]) << PyLong_SHIFT) | (GLuint)digits[1]) << PyLong_SHIFT) | (GLuint)digits[0]));
                        }
                    }
                    break;
                case 4:
                    if ((8 * sizeof(GLuint) > 3 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 4 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(GLuint, 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(GLuint) >= 4 * PyLong_SHIFT)) {
                            return (GLuint) (((((((((GLuint)digits[3]) << PyLong_SHIFT) | (GLuint)digits[2]) << PyLong_SHIFT) | (GLuint)digits[1]) << PyLong_SHIFT) | (GLuint)digits[0]));
                        }
                    }
                    break;
            }
        }
#endif
#if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX < 0x030C00A7
        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 (GLuint) -1;
            if (unlikely(result == 1))
                goto raise_neg_overflow;
        }
#endif
        if ((sizeof(GLuint) <= sizeof(unsigned long))) {
            __PYX_VERIFY_RETURN_INT_EXC(GLuint, unsigned long, PyLong_AsUnsignedLong(x))
        } else if ((sizeof(GLuint) <= sizeof(unsigned PY_LONG_LONG))) {
            __PYX_VERIFY_RETURN_INT_EXC(GLuint, unsigned PY_LONG_LONG, PyLong_AsUnsignedLongLong(x))
        }
    } else {
#if CYTHON_USE_PYLONG_INTERNALS
        if (__Pyx_PyLong_IsCompact(x)) {
            __PYX_VERIFY_RETURN_INT(GLuint, __Pyx_compact_pylong, __Pyx_PyLong_CompactValue(x))
        } else {
            const digit* digits = __Pyx_PyLong_Digits(x);
            assert(__Pyx_PyLong_DigitCount(x) > 1);
            switch (__Pyx_PyLong_SignedDigitCount(x)) {
                case -2:
                    if ((8 * sizeof(GLuint) - 1 > 1 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 2 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(GLuint, long, -(long) (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(GLuint) - 1 > 2 * PyLong_SHIFT)) {
                            return (GLuint) (((GLuint)-1)*(((((GLuint)digits[1]) << PyLong_SHIFT) | (GLuint)digits[0])));
                        }
                    }
                    break;
                case 2:
                    if ((8 * sizeof(GLuint) > 1 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 2 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(GLuint, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(GLuint) - 1 > 2 * PyLong_SHIFT)) {
                            return (GLuint) ((((((GLuint)digits[1]) << PyLong_SHIFT) | (GLuint)digits[0])));
                        }
                    }
                    break;
                case -3:
                    if ((8 * sizeof(GLuint) - 1 > 2 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 3 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(GLuint, long, -(long) (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(GLuint) - 1 > 3 * PyLong_SHIFT)) {
                            return (GLuint) (((GLuint)-1)*(((((((GLuint)digits[2]) << PyLong_SHIFT) | (GLuint)digits[1]) << PyLong_SHIFT) | (GLuint)digits[0])));
                        }
                    }
                    break;
                case 3:
                    if ((8 * sizeof(GLuint) > 2 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 3 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(GLuint, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(GLuint) - 1 > 3 * PyLong_SHIFT)) {
                            return (GLuint) ((((((((GLuint)digits[2]) << PyLong_SHIFT) | (GLuint)digits[1]) << PyLong_SHIFT) | (GLuint)digits[0])));
                        }
                    }
                    break;
                case -4:
                    if ((8 * sizeof(GLuint) - 1 > 3 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 4 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(GLuint, 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(GLuint) - 1 > 4 * PyLong_SHIFT)) {
                            return (GLuint) (((GLuint)-1)*(((((((((GLuint)digits[3]) << PyLong_SHIFT) | (GLuint)digits[2]) << PyLong_SHIFT) | (GLuint)digits[1]) << PyLong_SHIFT) | (GLuint)digits[0])));
                        }
                    }
                    break;
                case 4:
                    if ((8 * sizeof(GLuint) > 3 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 4 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(GLuint, 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(GLuint) - 1 > 4 * PyLong_SHIFT)) {
                            return (GLuint) ((((((((((GLuint)digits[3]) << PyLong_SHIFT) | (GLuint)digits[2]) << PyLong_SHIFT) | (GLuint)digits[1]) << PyLong_SHIFT) | (GLuint)digits[0])));
                        }
                    }
                    break;
            }
        }
#endif
        if ((sizeof(GLuint) <= sizeof(long))) {
            __PYX_VERIFY_RETURN_INT_EXC(GLuint, long, PyLong_AsLong(x))
        } else if ((sizeof(GLuint) <= sizeof(PY_LONG_LONG))) {
            __PYX_VERIFY_RETURN_INT_EXC(GLuint, PY_LONG_LONG, PyLong_AsLongLong(x))
        }
    }
    {
        GLuint val;
        int ret = -1;
#if PY_VERSION_HEX >= 0x030d00A6 && !CYTHON_COMPILING_IN_LIMITED_API
        Py_ssize_t bytes_copied = PyLong_AsNativeBytes(
            x, &val, sizeof(val), Py_ASNATIVEBYTES_NATIVE_ENDIAN | (is_unsigned ? Py_ASNATIVEBYTES_UNSIGNED_BUFFER | Py_ASNATIVEBYTES_REJECT_NEGATIVE : 0));
        if (unlikely(bytes_copied == -1)) {
        } else if (unlikely(bytes_copied > (Py_ssize_t) sizeof(val))) {
            goto raise_overflow;
        } else {
            ret = 0;
        }
#elif PY_VERSION_HEX < 0x030d0000 && !(CYTHON_COMPILING_IN_PYPY || CYTHON_COMPILING_IN_LIMITED_API) || defined(_PyLong_AsByteArray)
        int one = 1; int is_little = (int)*(unsigned char *)&one;
        unsigned char *bytes = (unsigned char *)&val;
        ret = _PyLong_AsByteArray((PyLongObject *)x,
                                    bytes, sizeof(val),
                                    is_little, !is_unsigned);
#else
        PyObject *v;
        PyObject *stepval = NULL, *mask = NULL, *shift = NULL;
        int bits, remaining_bits, is_negative = 0;
        int chunk_size = (sizeof(long) < 8) ? 30 : 62;
        if (likely(PyLong_CheckExact(x))) {
            v = __Pyx_NewRef(x);
        } else {
            v = PyNumber_Long(x);
            if (unlikely(!v)) return (GLuint) -1;
            assert(PyLong_CheckExact(v));
        }
        {
            int result = PyObject_RichCompareBool(v, Py_False, Py_LT);
            if (unlikely(result < 0)) {
                Py_DECREF(v);
                return (GLuint) -1;
            }
            is_negative = result == 1;
        }
        if (is_unsigned && unlikely(is_negative)) {
            Py_DECREF(v);
            goto raise_neg_overflow;
        } else if (is_negative) {
            stepval = PyNumber_Invert(v);
            Py_DECREF(v);
            if (unlikely(!stepval))
                return (GLuint) -1;
        } else {
            stepval = v;
        }
        v = NULL;
        val = (GLuint) 0;
        mask = PyLong_FromLong((1L << chunk_size) - 1); if (unlikely(!mask)) goto done;
        shift = PyLong_FromLong(chunk_size); if (unlikely(!shift)) goto done;
        for (bits = 0; bits < (int) sizeof(GLuint) * 8 - chunk_size; bits += chunk_size) {
            PyObject *tmp, *digit;
            long idigit;
            digit = PyNumber_And(stepval, mask);
            if (unlikely(!digit)) goto done;
            idigit = PyLong_AsLong(digit);
            Py_DECREF(digit);
            if (unlikely(idigit < 0)) goto done;
            val |= ((GLuint) idigit) << bits;
            tmp = PyNumber_Rshift(stepval, shift);
            if (unlikely(!tmp)) goto done;
            Py_DECREF(stepval); stepval = tmp;
        }
        Py_DECREF(shift); shift = NULL;
        Py_DECREF(mask); mask = NULL;
        {
            long idigit = PyLong_AsLong(stepval);
            if (unlikely(idigit < 0)) goto done;
            remaining_bits = ((int) sizeof(GLuint) * 8) - bits - (is_unsigned ? 0 : 1);
            if (unlikely(idigit >= (1L << remaining_bits)))
                goto raise_overflow;
            val |= ((GLuint) idigit) << bits;
        }
        if (!is_unsigned) {
            if (unlikely(val & (((GLuint) 1) << (sizeof(GLuint) * 8 - 1))))
                goto raise_overflow;
            if (is_negative)
                val = ~val;
        }
        ret = 0;
    done:
        Py_XDECREF(shift);
        Py_XDECREF(mask);
        Py_XDECREF(stepval);
#endif
        if (unlikely(ret))
            return (GLuint) -1;
        return val;
    }
raise_overflow:
    PyErr_SetString(PyExc_OverflowError,
        "value too large to convert to GLuint");
    return (GLuint) -1;
raise_neg_overflow:
    PyErr_SetString(PyExc_OverflowError,
        "can't convert negative value to GLuint");
    return (GLuint) -1;
}

/* CIntFromPy */
static CYTHON_INLINE GLsizeiptr __Pyx_PyLong_As_GLsizeiptr(PyObject *x) {
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wconversion"
#endif
    const GLsizeiptr neg_one = (GLsizeiptr) -1, const_zero = (GLsizeiptr) 0;
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic pop
#endif
    const int is_unsigned = neg_one > const_zero;
    if (unlikely(!PyLong_Check(x))) {
        GLsizeiptr val;
        PyObject *tmp = __Pyx_PyNumber_Long(x);
        if (!tmp) return (GLsizeiptr) -1;
        val = __Pyx_PyLong_As_GLsizeiptr(tmp);
        Py_DECREF(tmp);
        return val;
    }
    if (is_unsigned) {
#if CYTHON_USE_PYLONG_INTERNALS
        if (unlikely(__Pyx_PyLong_IsNeg(x))) {
            goto raise_neg_overflow;
        } else if (__Pyx_PyLong_IsCompact(x)) {
            __PYX_VERIFY_RETURN_INT(GLsizeiptr, __Pyx_compact_upylong, __Pyx_PyLong_CompactValueUnsigned(x))
        } else {
            const digit* digits = __Pyx_PyLong_Digits(x);
            assert(__Pyx_PyLong_DigitCount(x) > 1);
            switch (__Pyx_PyLong_DigitCount(x)) {
                case 2:
                    if ((8 * sizeof(GLsizeiptr) > 1 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 2 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(GLsizeiptr, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(GLsizeiptr) >= 2 * PyLong_SHIFT)) {
                            return (GLsizeiptr) (((((GLsizeiptr)digits[1]) << PyLong_SHIFT) | (GLsizeiptr)digits[0]));
                        }
                    }
                    break;
                case 3:
                    if ((8 * sizeof(GLsizeiptr) > 2 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 3 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(GLsizeiptr, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(GLsizeiptr) >= 3 * PyLong_SHIFT)) {
                            return (GLsizeiptr) (((((((GLsizeiptr)digits[2]) << PyLong_SHIFT) | (GLsizeiptr)digits[1]) << PyLong_SHIFT) | (GLsizeiptr)digits[0]));
                        }
                    }
                    break;
                case 4:
                    if ((8 * sizeof(GLsizeiptr) > 3 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 4 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(GLsizeiptr, 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(GLsizeiptr) >= 4 * PyLong_SHIFT)) {
                            return (GLsizeiptr) (((((((((GLsizeiptr)digits[3]) << PyLong_SHIFT) | (GLsizeiptr)digits[2]) << PyLong_SHIFT) | (GLsizeiptr)digits[1]) << PyLong_SHIFT) | (GLsizeiptr)digits[0]));
                        }
                    }
                    break;
            }
        }
#endif
#if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX < 0x030C00A7
        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 (GLsizeiptr) -1;
            if (unlikely(result == 1))
                goto raise_neg_overflow;
        }
#endif
        if ((sizeof(GLsizeiptr) <= sizeof(unsigned long))) {
            __PYX_VERIFY_RETURN_INT_EXC(GLsizeiptr, unsigned long, PyLong_AsUnsignedLong(x))
        } else if ((sizeof(GLsizeiptr) <= sizeof(unsigned PY_LONG_LONG))) {
            __PYX_VERIFY_RETURN_INT_EXC(GLsizeiptr, unsigned PY_LONG_LONG, PyLong_AsUnsignedLongLong(x))
        }
    } else {
#if CYTHON_USE_PYLONG_INTERNALS
        if (__Pyx_PyLong_IsCompact(x)) {
            __PYX_VERIFY_RETURN_INT(GLsizeiptr, __Pyx_compact_pylong, __Pyx_PyLong_CompactValue(x))
        } else {
            const digit* digits = __Pyx_PyLong_Digits(x);
            assert(__Pyx_PyLong_DigitCount(x) > 1);
            switch (__Pyx_PyLong_SignedDigitCount(x)) {
                case -2:
                    if ((8 * sizeof(GLsizeiptr) - 1 > 1 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 2 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(GLsizeiptr, long, -(long) (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(GLsizeiptr) - 1 > 2 * PyLong_SHIFT)) {
                            return (GLsizeiptr) (((GLsizeiptr)-1)*(((((GLsizeiptr)digits[1]) << PyLong_SHIFT) | (GLsizeiptr)digits[0])));
                        }
                    }
                    break;
                case 2:
                    if ((8 * sizeof(GLsizeiptr) > 1 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 2 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(GLsizeiptr, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(GLsizeiptr) - 1 > 2 * PyLong_SHIFT)) {
                            return (GLsizeiptr) ((((((GLsizeiptr)digits[1]) << PyLong_SHIFT) | (GLsizeiptr)digits[0])));
                        }
                    }
                    break;
                case -3:
                    if ((8 * sizeof(GLsizeiptr) - 1 > 2 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 3 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(GLsizeiptr, long, -(long) (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(GLsizeiptr) - 1 > 3 * PyLong_SHIFT)) {
                            return (GLsizeiptr) (((GLsizeiptr)-1)*(((((((GLsizeiptr)digits[2]) << PyLong_SHIFT) | (GLsizeiptr)digits[1]) << PyLong_SHIFT) | (GLsizeiptr)digits[0])));
                        }
                    }
                    break;
                case 3:
                    if ((8 * sizeof(GLsizeiptr) > 2 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 3 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(GLsizeiptr, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(GLsizeiptr) - 1 > 3 * PyLong_SHIFT)) {
                            return (GLsizeiptr) ((((((((GLsizeiptr)digits[2]) << PyLong_SHIFT) | (GLsizeiptr)digits[1]) << PyLong_SHIFT) | (GLsizeiptr)digits[0])));
                        }
                    }
                    break;
                case -4:
                    if ((8 * sizeof(GLsizeiptr) - 1 > 3 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 4 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(GLsizeiptr, 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(GLsizeiptr) - 1 > 4 * PyLong_SHIFT)) {
                            return (GLsizeiptr) (((GLsizeiptr)-1)*(((((((((GLsizeiptr)digits[3]) << PyLong_SHIFT) | (GLsizeiptr)digits[2]) << PyLong_SHIFT) | (GLsizeiptr)digits[1]) << PyLong_SHIFT) | (GLsizeiptr)digits[0])));
                        }
                    }
                    break;
                case 4:
                    if ((8 * sizeof(GLsizeiptr) > 3 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 4 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(GLsizeiptr, 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(GLsizeiptr) - 1 > 4 * PyLong_SHIFT)) {
                            return (GLsizeiptr) ((((((((((GLsizeiptr)digits[3]) << PyLong_SHIFT) | (GLsizeiptr)digits[2]) << PyLong_SHIFT) | (GLsizeiptr)digits[1]) << PyLong_SHIFT) | (GLsizeiptr)digits[0])));
                        }
                    }
                    break;
            }
        }
#endif
        if ((sizeof(GLsizeiptr) <= sizeof(long))) {
            __PYX_VERIFY_RETURN_INT_EXC(GLsizeiptr, long, PyLong_AsLong(x))
        } else if ((sizeof(GLsizeiptr) <= sizeof(PY_LONG_LONG))) {
            __PYX_VERIFY_RETURN_INT_EXC(GLsizeiptr, PY_LONG_LONG, PyLong_AsLongLong(x))
        }
    }
    {
        GLsizeiptr val;
        int ret = -1;
#if PY_VERSION_HEX >= 0x030d00A6 && !CYTHON_COMPILING_IN_LIMITED_API
        Py_ssize_t bytes_copied = PyLong_AsNativeBytes(
            x, &val, sizeof(val), Py_ASNATIVEBYTES_NATIVE_ENDIAN | (is_unsigned ? Py_ASNATIVEBYTES_UNSIGNED_BUFFER | Py_ASNATIVEBYTES_REJECT_NEGATIVE : 0));
        if (unlikely(bytes_copied == -1)) {
        } else if (unlikely(bytes_copied > (Py_ssize_t) sizeof(val))) {
            goto raise_overflow;
        } else {
            ret = 0;
        }
#elif PY_VERSION_HEX < 0x030d0000 && !(CYTHON_COMPILING_IN_PYPY || CYTHON_COMPILING_IN_LIMITED_API) || defined(_PyLong_AsByteArray)
        int one = 1; int is_little = (int)*(unsigned char *)&one;
        unsigned char *bytes = (unsigned char *)&val;
        ret = _PyLong_AsByteArray((PyLongObject *)x,
                                    bytes, sizeof(val),
                                    is_little, !is_unsigned);
#else
        PyObject *v;
        PyObject *stepval = NULL, *mask = NULL, *shift = NULL;
        int bits, remaining_bits, is_negative = 0;
        int chunk_size = (sizeof(long) < 8) ? 30 : 62;
        if (likely(PyLong_CheckExact(x))) {
            v = __Pyx_NewRef(x);
        } else {
            v = PyNumber_Long(x);
            if (unlikely(!v)) return (GLsizeiptr) -1;
            assert(PyLong_CheckExact(v));
        }
        {
            int result = PyObject_RichCompareBool(v, Py_False, Py_LT);
            if (unlikely(result < 0)) {
                Py_DECREF(v);
                return (GLsizeiptr) -1;
            }
            is_negative = result == 1;
        }
        if (is_unsigned && unlikely(is_negative)) {
            Py_DECREF(v);
            goto raise_neg_overflow;
        } else if (is_negative) {
            stepval = PyNumber_Invert(v);
            Py_DECREF(v);
            if (unlikely(!stepval))
                return (GLsizeiptr) -1;
        } else {
            stepval = v;
        }
        v = NULL;
        val = (GLsizeiptr) 0;
        mask = PyLong_FromLong((1L << chunk_size) - 1); if (unlikely(!mask)) goto done;
        shift = PyLong_FromLong(chunk_size); if (unlikely(!shift)) goto done;
        for (bits = 0; bits < (int) sizeof(GLsizeiptr) * 8 - chunk_size; bits += chunk_size) {
            PyObject *tmp, *digit;
            long idigit;
            digit = PyNumber_And(stepval, mask);
            if (unlikely(!digit)) goto done;
            idigit = PyLong_AsLong(digit);
            Py_DECREF(digit);
            if (unlikely(idigit < 0)) goto done;
            val |= ((GLsizeiptr) idigit) << bits;
            tmp = PyNumber_Rshift(stepval, shift);
            if (unlikely(!tmp)) goto done;
            Py_DECREF(stepval); stepval = tmp;
        }
        Py_DECREF(shift); shift = NULL;
        Py_DECREF(mask); mask = NULL;
        {
            long idigit = PyLong_AsLong(stepval);
            if (unlikely(idigit < 0)) goto done;
            remaining_bits = ((int) sizeof(GLsizeiptr) * 8) - bits - (is_unsigned ? 0 : 1);
            if (unlikely(idigit >= (1L << remaining_bits)))
                goto raise_overflow;
            val |= ((GLsizeiptr) idigit) << bits;
        }
        if (!is_unsigned) {
            if (unlikely(val & (((GLsizeiptr) 1) << (sizeof(GLsizeiptr) * 8 - 1))))
                goto raise_overflow;
            if (is_negative)
                val = ~val;
        }
        ret = 0;
    done:
        Py_XDECREF(shift);
        Py_XDECREF(mask);
        Py_XDECREF(stepval);
#endif
        if (unlikely(ret))
            return (GLsizeiptr) -1;
        return val;
    }
raise_overflow:
    PyErr_SetString(PyExc_OverflowError,
        "value too large to convert to GLsizeiptr");
    return (GLsizeiptr) -1;
raise_neg_overflow:
    PyErr_SetString(PyExc_OverflowError,
        "can't convert negative value to GLsizeiptr");
    return (GLsizeiptr) -1;
}

/* CIntFromPy */
static CYTHON_INLINE GLintptr __Pyx_PyLong_As_GLintptr(PyObject *x) {
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wconversion"
#endif
    const GLintptr neg_one = (GLintptr) -1, const_zero = (GLintptr) 0;
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic pop
#endif
    const int is_unsigned = neg_one > const_zero;
    if (unlikely(!PyLong_Check(x))) {
        GLintptr val;
        PyObject *tmp = __Pyx_PyNumber_Long(x);
        if (!tmp) return (GLintptr) -1;
        val = __Pyx_PyLong_As_GLintptr(tmp);
        Py_DECREF(tmp);
        return val;
    }
    if (is_unsigned) {
#if CYTHON_USE_PYLONG_INTERNALS
        if (unlikely(__Pyx_PyLong_IsNeg(x))) {
            goto raise_neg_overflow;
        } else if (__Pyx_PyLong_IsCompact(x)) {
            __PYX_VERIFY_RETURN_INT(GLintptr, __Pyx_compact_upylong, __Pyx_PyLong_CompactValueUnsigned(x))
        } else {
            const digit* digits = __Pyx_PyLong_Digits(x);
            assert(__Pyx_PyLong_DigitCount(x) > 1);
            switch (__Pyx_PyLong_DigitCount(x)) {
                case 2:
                    if ((8 * sizeof(GLintptr) > 1 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 2 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(GLintptr, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(GLintptr) >= 2 * PyLong_SHIFT)) {
                            return (GLintptr) (((((GLintptr)digits[1]) << PyLong_SHIFT) | (GLintptr)digits[0]));
                        }
                    }
                    break;
                case 3:
                    if ((8 * sizeof(GLintptr) > 2 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 3 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(GLintptr, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(GLintptr) >= 3 * PyLong_SHIFT)) {
                            return (GLintptr) (((((((GLintptr)digits[2]) << PyLong_SHIFT) | (GLintptr)digits[1]) << PyLong_SHIFT) | (GLintptr)digits[0]));
                        }
                    }
                    break;
                case 4:
                    if ((8 * sizeof(GLintptr) > 3 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 4 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(GLintptr, 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(GLintptr) >= 4 * PyLong_SHIFT)) {
                            return (GLintptr) (((((((((GLintptr)digits[3]) << PyLong_SHIFT) | (GLintptr)digits[2]) << PyLong_SHIFT) | (GLintptr)digits[1]) << PyLong_SHIFT) | (GLintptr)digits[0]));
                        }
                    }
                    break;
            }
        }
#endif
#if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX < 0x030C00A7
        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 (GLintptr) -1;
            if (unlikely(result == 1))
                goto raise_neg_overflow;
        }
#endif
        if ((sizeof(GLintptr) <= sizeof(unsigned long))) {
            __PYX_VERIFY_RETURN_INT_EXC(GLintptr, unsigned long, PyLong_AsUnsignedLong(x))
        } else if ((sizeof(GLintptr) <= sizeof(unsigned PY_LONG_LONG))) {
            __PYX_VERIFY_RETURN_INT_EXC(GLintptr, unsigned PY_LONG_LONG, PyLong_AsUnsignedLongLong(x))
        }
    } else {
#if CYTHON_USE_PYLONG_INTERNALS
        if (__Pyx_PyLong_IsCompact(x)) {
            __PYX_VERIFY_RETURN_INT(GLintptr, __Pyx_compact_pylong, __Pyx_PyLong_CompactValue(x))
        } else {
            const digit* digits = __Pyx_PyLong_Digits(x);
            assert(__Pyx_PyLong_DigitCount(x) > 1);
            switch (__Pyx_PyLong_SignedDigitCount(x)) {
                case -2:
                    if ((8 * sizeof(GLintptr) - 1 > 1 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 2 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(GLintptr, long, -(long) (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(GLintptr) - 1 > 2 * PyLong_SHIFT)) {
                            return (GLintptr) (((GLintptr)-1)*(((((GLintptr)digits[1]) << PyLong_SHIFT) | (GLintptr)digits[0])));
                        }
                    }
                    break;
                case 2:
                    if ((8 * sizeof(GLintptr) > 1 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 2 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(GLintptr, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(GLintptr) - 1 > 2 * PyLong_SHIFT)) {
                            return (GLintptr) ((((((GLintptr)digits[1]) << PyLong_SHIFT) | (GLintptr)digits[0])));
                        }
                    }
                    break;
                case -3:
                    if ((8 * sizeof(GLintptr) - 1 > 2 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 3 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(GLintptr, long, -(long) (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(GLintptr) - 1 > 3 * PyLong_SHIFT)) {
                            return (GLintptr) (((GLintptr)-1)*(((((((GLintptr)digits[2]) << PyLong_SHIFT) | (GLintptr)digits[1]) << PyLong_SHIFT) | (GLintptr)digits[0])));
                        }
                    }
                    break;
                case 3:
                    if ((8 * sizeof(GLintptr) > 2 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 3 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(GLintptr, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(GLintptr) - 1 > 3 * PyLong_SHIFT)) {
                            return (GLintptr) ((((((((GLintptr)digits[2]) << PyLong_SHIFT) | (GLintptr)digits[1]) << PyLong_SHIFT) | (GLintptr)digits[0])));
                        }
                    }
                    break;
                case -4:
                    if ((8 * sizeof(GLintptr) - 1 > 3 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 4 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(GLintptr, 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(GLintptr) - 1 > 4 * PyLong_SHIFT)) {
                            return (GLintptr) (((GLintptr)-1)*(((((((((GLintptr)digits[3]) << PyLong_SHIFT) | (GLintptr)digits[2]) << PyLong_SHIFT) | (GLintptr)digits[1]) << PyLong_SHIFT) | (GLintptr)digits[0])));
                        }
                    }
                    break;
                case 4:
                    if ((8 * sizeof(GLintptr) > 3 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 4 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(GLintptr, 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(GLintptr) - 1 > 4 * PyLong_SHIFT)) {
                            return (GLintptr) ((((((((((GLintptr)digits[3]) << PyLong_SHIFT) | (GLintptr)digits[2]) << PyLong_SHIFT) | (GLintptr)digits[1]) << PyLong_SHIFT) | (GLintptr)digits[0])));
                        }
                    }
                    break;
            }
        }
#endif
        if ((sizeof(GLintptr) <= sizeof(long))) {
            __PYX_VERIFY_RETURN_INT_EXC(GLintptr, long, PyLong_AsLong(x))
        } else if ((sizeof(GLintptr) <= sizeof(PY_LONG_LONG))) {
            __PYX_VERIFY_RETURN_INT_EXC(GLintptr, PY_LONG_LONG, PyLong_AsLongLong(x))
        }
    }
    {
        GLintptr val;
        int ret = -1;
#if PY_VERSION_HEX >= 0x030d00A6 && !CYTHON_COMPILING_IN_LIMITED_API
        Py_ssize_t bytes_copied = PyLong_AsNativeBytes(
            x, &val, sizeof(val), Py_ASNATIVEBYTES_NATIVE_ENDIAN | (is_unsigned ? Py_ASNATIVEBYTES_UNSIGNED_BUFFER | Py_ASNATIVEBYTES_REJECT_NEGATIVE : 0));
        if (unlikely(bytes_copied == -1)) {
        } else if (unlikely(bytes_copied > (Py_ssize_t) sizeof(val))) {
            goto raise_overflow;
        } else {
            ret = 0;
        }
#elif PY_VERSION_HEX < 0x030d0000 && !(CYTHON_COMPILING_IN_PYPY || CYTHON_COMPILING_IN_LIMITED_API) || defined(_PyLong_AsByteArray)
        int one = 1; int is_little = (int)*(unsigned char *)&one;
        unsigned char *bytes = (unsigned char *)&val;
        ret = _PyLong_AsByteArray((PyLongObject *)x,
                                    bytes, sizeof(val),
                                    is_little, !is_unsigned);
#else
        PyObject *v;
        PyObject *stepval = NULL, *mask = NULL, *shift = NULL;
        int bits, remaining_bits, is_negative = 0;
        int chunk_size = (sizeof(long) < 8) ? 30 : 62;
        if (likely(PyLong_CheckExact(x))) {
            v = __Pyx_NewRef(x);
        } else {
            v = PyNumber_Long(x);
            if (unlikely(!v)) return (GLintptr) -1;
            assert(PyLong_CheckExact(v));
        }
        {
            int result = PyObject_RichCompareBool(v, Py_False, Py_LT);
            if (unlikely(result < 0)) {
                Py_DECREF(v);
                return (GLintptr) -1;
            }
            is_negative = result == 1;
        }
        if (is_unsigned && unlikely(is_negative)) {
            Py_DECREF(v);
            goto raise_neg_overflow;
        } else if (is_negative) {
            stepval = PyNumber_Invert(v);
            Py_DECREF(v);
            if (unlikely(!stepval))
                return (GLintptr) -1;
        } else {
            stepval = v;
        }
        v = NULL;
        val = (GLintptr) 0;
        mask = PyLong_FromLong((1L << chunk_size) - 1); if (unlikely(!mask)) goto done;
        shift = PyLong_FromLong(chunk_size); if (unlikely(!shift)) goto done;
        for (bits = 0; bits < (int) sizeof(GLintptr) * 8 - chunk_size; bits += chunk_size) {
            PyObject *tmp, *digit;
            long idigit;
            digit = PyNumber_And(stepval, mask);
            if (unlikely(!digit)) goto done;
            idigit = PyLong_AsLong(digit);
            Py_DECREF(digit);
            if (unlikely(idigit < 0)) goto done;
            val |= ((GLintptr) idigit) << bits;
            tmp = PyNumber_Rshift(stepval, shift);
            if (unlikely(!tmp)) goto done;
            Py_DECREF(stepval); stepval = tmp;
        }
        Py_DECREF(shift); shift = NULL;
        Py_DECREF(mask); mask = NULL;
        {
            long idigit = PyLong_AsLong(stepval);
            if (unlikely(idigit < 0)) goto done;
            remaining_bits = ((int) sizeof(GLintptr) * 8) - bits - (is_unsigned ? 0 : 1);
            if (unlikely(idigit >= (1L << remaining_bits)))
                goto raise_overflow;
            val |= ((GLintptr) idigit) << bits;
        }
        if (!is_unsigned) {
            if (unlikely(val & (((GLintptr) 1) << (sizeof(GLintptr) * 8 - 1))))
                goto raise_overflow;
            if (is_negative)
                val = ~val;
        }
        ret = 0;
    done:
        Py_XDECREF(shift);
        Py_XDECREF(mask);
        Py_XDECREF(stepval);
#endif
        if (unlikely(ret))
            return (GLintptr) -1;
        return val;
    }
raise_overflow:
    PyErr_SetString(PyExc_OverflowError,
        "value too large to convert to GLintptr");
    return (GLintptr) -1;
raise_neg_overflow:
    PyErr_SetString(PyExc_OverflowError,
        "can't convert negative value to GLintptr");
    return (GLintptr) -1;
}

/* CIntFromPy */
static CYTHON_INLINE GLbitfield __Pyx_PyLong_As_GLbitfield(PyObject *x) {
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wconversion"
#endif
    const GLbitfield neg_one = (GLbitfield) -1, const_zero = (GLbitfield) 0;
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic pop
#endif
    const int is_unsigned = neg_one > const_zero;
    if (unlikely(!PyLong_Check(x))) {
        GLbitfield val;
        PyObject *tmp = __Pyx_PyNumber_Long(x);
        if (!tmp) return (GLbitfield) -1;
        val = __Pyx_PyLong_As_GLbitfield(tmp);
        Py_DECREF(tmp);
        return val;
    }
    if (is_unsigned) {
#if CYTHON_USE_PYLONG_INTERNALS
        if (unlikely(__Pyx_PyLong_IsNeg(x))) {
            goto raise_neg_overflow;
        } else if (__Pyx_PyLong_IsCompact(x)) {
            __PYX_VERIFY_RETURN_INT(GLbitfield, __Pyx_compact_upylong, __Pyx_PyLong_CompactValueUnsigned(x))
        } else {
            const digit* digits = __Pyx_PyLong_Digits(x);
            assert(__Pyx_PyLong_DigitCount(x) > 1);
            switch (__Pyx_PyLong_DigitCount(x)) {
                case 2:
                    if ((8 * sizeof(GLbitfield) > 1 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 2 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(GLbitfield, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(GLbitfield) >= 2 * PyLong_SHIFT)) {
                            return (GLbitfield) (((((GLbitfield)digits[1]) << PyLong_SHIFT) | (GLbitfield)digits[0]));
                        }
                    }
                    break;
                case 3:
                    if ((8 * sizeof(GLbitfield) > 2 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 3 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(GLbitfield, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(GLbitfield) >= 3 * PyLong_SHIFT)) {
                            return (GLbitfield) (((((((GLbitfield)digits[2]) << PyLong_SHIFT) | (GLbitfield)digits[1]) << PyLong_SHIFT) | (GLbitfield)digits[0]));
                        }
                    }
                    break;
                case 4:
                    if ((8 * sizeof(GLbitfield) > 3 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 4 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(GLbitfield, 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(GLbitfield) >= 4 * PyLong_SHIFT)) {
                            return (GLbitfield) (((((((((GLbitfield)digits[3]) << PyLong_SHIFT) | (GLbitfield)digits[2]) << PyLong_SHIFT) | (GLbitfield)digits[1]) << PyLong_SHIFT) | (GLbitfield)digits[0]));
                        }
                    }
                    break;
            }
        }
#endif
#if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX < 0x030C00A7
        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 (GLbitfield) -1;
            if (unlikely(result == 1))
                goto raise_neg_overflow;
        }
#endif
        if ((sizeof(GLbitfield) <= sizeof(unsigned long))) {
            __PYX_VERIFY_RETURN_INT_EXC(GLbitfield, unsigned long, PyLong_AsUnsignedLong(x))
        } else if ((sizeof(GLbitfield) <= sizeof(unsigned PY_LONG_LONG))) {
            __PYX_VERIFY_RETURN_INT_EXC(GLbitfield, unsigned PY_LONG_LONG, PyLong_AsUnsignedLongLong(x))
        }
    } else {
#if CYTHON_USE_PYLONG_INTERNALS
        if (__Pyx_PyLong_IsCompact(x)) {
            __PYX_VERIFY_RETURN_INT(GLbitfield, __Pyx_compact_pylong, __Pyx_PyLong_CompactValue(x))
        } else {
            const digit* digits = __Pyx_PyLong_Digits(x);
            assert(__Pyx_PyLong_DigitCount(x) > 1);
            switch (__Pyx_PyLong_SignedDigitCount(x)) {
                case -2:
                    if ((8 * sizeof(GLbitfield) - 1 > 1 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 2 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(GLbitfield, long, -(long) (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(GLbitfield) - 1 > 2 * PyLong_SHIFT)) {
                            return (GLbitfield) (((GLbitfield)-1)*(((((GLbitfield)digits[1]) << PyLong_SHIFT) | (GLbitfield)digits[0])));
                        }
                    }
                    break;
                case 2:
                    if ((8 * sizeof(GLbitfield) > 1 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 2 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(GLbitfield, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(GLbitfield) - 1 > 2 * PyLong_SHIFT)) {
                            return (GLbitfield) ((((((GLbitfield)digits[1]) << PyLong_SHIFT) | (GLbitfield)digits[0])));
                        }
                    }
                    break;
                case -3:
                    if ((8 * sizeof(GLbitfield) - 1 > 2 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 3 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(GLbitfield, long, -(long) (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(GLbitfield) - 1 > 3 * PyLong_SHIFT)) {
                            return (GLbitfield) (((GLbitfield)-1)*(((((((GLbitfield)digits[2]) << PyLong_SHIFT) | (GLbitfield)digits[1]) << PyLong_SHIFT) | (GLbitfield)digits[0])));
                        }
                    }
                    break;
                case 3:
                    if ((8 * sizeof(GLbitfield) > 2 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 3 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(GLbitfield, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(GLbitfield) - 1 > 3 * PyLong_SHIFT)) {
                            return (GLbitfield) ((((((((GLbitfield)digits[2]) << PyLong_SHIFT) | (GLbitfield)digits[1]) << PyLong_SHIFT) | (GLbitfield)digits[0])));
                        }
                    }
                    break;
                case -4:
                    if ((8 * sizeof(GLbitfield) - 1 > 3 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 4 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(GLbitfield, 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(GLbitfield) - 1 > 4 * PyLong_SHIFT)) {
                            return (GLbitfield) (((GLbitfield)-1)*(((((((((GLbitfield)digits[3]) << PyLong_SHIFT) | (GLbitfield)digits[2]) << PyLong_SHIFT) | (GLbitfield)digits[1]) << PyLong_SHIFT) | (GLbitfield)digits[0])));
                        }
                    }
                    break;
                case 4:
                    if ((8 * sizeof(GLbitfield) > 3 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 4 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(GLbitfield, 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(GLbitfield) - 1 > 4 * PyLong_SHIFT)) {
                            return (GLbitfield) ((((((((((GLbitfield)digits[3]) << PyLong_SHIFT) | (GLbitfield)digits[2]) << PyLong_SHIFT) | (GLbitfield)digits[1]) << PyLong_SHIFT) | (GLbitfield)digits[0])));
                        }
                    }
                    break;
            }
        }
#endif
        if ((sizeof(GLbitfield) <= sizeof(long))) {
            __PYX_VERIFY_RETURN_INT_EXC(GLbitfield, long, PyLong_AsLong(x))
        } else if ((sizeof(GLbitfield) <= sizeof(PY_LONG_LONG))) {
            __PYX_VERIFY_RETURN_INT_EXC(GLbitfield, PY_LONG_LONG, PyLong_AsLongLong(x))
        }
    }
    {
        GLbitfield val;
        int ret = -1;
#if PY_VERSION_HEX >= 0x030d00A6 && !CYTHON_COMPILING_IN_LIMITED_API
        Py_ssize_t bytes_copied = PyLong_AsNativeBytes(
            x, &val, sizeof(val), Py_ASNATIVEBYTES_NATIVE_ENDIAN | (is_unsigned ? Py_ASNATIVEBYTES_UNSIGNED_BUFFER | Py_ASNATIVEBYTES_REJECT_NEGATIVE : 0));
        if (unlikely(bytes_copied == -1)) {
        } else if (unlikely(bytes_copied > (Py_ssize_t) sizeof(val))) {
            goto raise_overflow;
        } else {
            ret = 0;
        }
#elif PY_VERSION_HEX < 0x030d0000 && !(CYTHON_COMPILING_IN_PYPY || CYTHON_COMPILING_IN_LIMITED_API) || defined(_PyLong_AsByteArray)
        int one = 1; int is_little = (int)*(unsigned char *)&one;
        unsigned char *bytes = (unsigned char *)&val;
        ret = _PyLong_AsByteArray((PyLongObject *)x,
                                    bytes, sizeof(val),
                                    is_little, !is_unsigned);
#else
        PyObject *v;
        PyObject *stepval = NULL, *mask = NULL, *shift = NULL;
        int bits, remaining_bits, is_negative = 0;
        int chunk_size = (sizeof(long) < 8) ? 30 : 62;
        if (likely(PyLong_CheckExact(x))) {
            v = __Pyx_NewRef(x);
        } else {
            v = PyNumber_Long(x);
            if (unlikely(!v)) return (GLbitfield) -1;
            assert(PyLong_CheckExact(v));
        }
        {
            int result = PyObject_RichCompareBool(v, Py_False, Py_LT);
            if (unlikely(result < 0)) {
                Py_DECREF(v);
                return (GLbitfield) -1;
            }
            is_negative = result == 1;
        }
        if (is_unsigned && unlikely(is_negative)) {
            Py_DECREF(v);
            goto raise_neg_overflow;
        } else if (is_negative) {
            stepval = PyNumber_Invert(v);
            Py_DECREF(v);
            if (unlikely(!stepval))
                return (GLbitfield) -1;
        } else {
            stepval = v;
        }
        v = NULL;
        val = (GLbitfield) 0;
        mask = PyLong_FromLong((1L << chunk_size) - 1); if (unlikely(!mask)) goto done;
        shift = PyLong_FromLong(chunk_size); if (unlikely(!shift)) goto done;
        for (bits = 0; bits < (int) sizeof(GLbitfield) * 8 - chunk_size; bits += chunk_size) {
            PyObject *tmp, *digit;
            long idigit;
            digit = PyNumber_And(stepval, mask);
            if (unlikely(!digit)) goto done;
            idigit = PyLong_AsLong(digit);
            Py_DECREF(digit);
            if (unlikely(idigit < 0)) goto done;
            val |= ((GLbitfield) idigit) << bits;
            tmp = PyNumber_Rshift(stepval, shift);
            if (unlikely(!tmp)) goto done;
            Py_DECREF(stepval); stepval = tmp;
        }
        Py_DECREF(shift); shift = NULL;
        Py_DECREF(mask); mask = NULL;
        {
            long idigit = PyLong_AsLong(stepval);
            if (unlikely(idigit < 0)) goto done;
            remaining_bits = ((int) sizeof(GLbitfield) * 8) - bits - (is_unsigned ? 0 : 1);
            if (unlikely(idigit >= (1L << remaining_bits)))
                goto raise_overflow;
            val |= ((GLbitfield) idigit) << bits;
        }
        if (!is_unsigned) {
            if (unlikely(val & (((GLbitfield) 1) << (sizeof(GLbitfield) * 8 - 1))))
                goto raise_overflow;
            if (is_negative)
                val = ~val;
        }
        ret = 0;
    done:
        Py_XDECREF(shift);
        Py_XDECREF(mask);
        Py_XDECREF(stepval);
#endif
        if (unlikely(ret))
            return (GLbitfield) -1;
        return val;
    }
raise_overflow:
    PyErr_SetString(PyExc_OverflowError,
        "value too large to convert to GLbitfield");
    return (GLbitfield) -1;
raise_neg_overflow:
    PyErr_SetString(PyExc_OverflowError,
        "can't convert negative value to GLbitfield");
    return (GLbitfield) -1;
}

/* CIntFromPy */
static CYTHON_INLINE GLint __Pyx_PyLong_As_GLint(PyObject *x) {
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wconversion"
#endif
    const GLint neg_one = (GLint) -1, const_zero = (GLint) 0;
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic pop
#endif
    const int is_unsigned = neg_one > const_zero;
    if (unlikely(!PyLong_Check(x))) {
        GLint val;
        PyObject *tmp = __Pyx_PyNumber_Long(x);
        if (!tmp) return (GLint) -1;
        val = __Pyx_PyLong_As_GLint(tmp);
        Py_DECREF(tmp);
        return val;
    }
    if (is_unsigned) {
#if CYTHON_USE_PYLONG_INTERNALS
        if (unlikely(__Pyx_PyLong_IsNeg(x))) {
            goto raise_neg_overflow;
        } else if (__Pyx_PyLong_IsCompact(x)) {
            __PYX_VERIFY_RETURN_INT(GLint, __Pyx_compact_upylong, __Pyx_PyLong_CompactValueUnsigned(x))
        } else {
            const digit* digits = __Pyx_PyLong_Digits(x);
            assert(__Pyx_PyLong_DigitCount(x) > 1);
            switch (__Pyx_PyLong_DigitCount(x)) {
                case 2:
                    if ((8 * sizeof(GLint) > 1 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 2 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(GLint, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(GLint) >= 2 * PyLong_SHIFT)) {
                            return (GLint) (((((GLint)digits[1]) << PyLong_SHIFT) | (GLint)digits[0]));
                        }
                    }
                    break;
                case 3:
                    if ((8 * sizeof(GLint) > 2 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 3 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(GLint, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(GLint) >= 3 * PyLong_SHIFT)) {
                            return (GLint) (((((((GLint)digits[2]) << PyLong_SHIFT) | (GLint)digits[1]) << PyLong_SHIFT) | (GLint)digits[0]));
                        }
                    }
                    break;
                case 4:
                    if ((8 * sizeof(GLint) > 3 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 4 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(GLint, 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(GLint) >= 4 * PyLong_SHIFT)) {
                            return (GLint) (((((((((GLint)digits[3]) << PyLong_SHIFT) | (GLint)digits[2]) << PyLong_SHIFT) | (GLint)digits[1]) << PyLong_SHIFT) | (GLint)digits[0]));
                        }
                    }
                    break;
            }
        }
#endif
#if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX < 0x030C00A7
        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 (GLint) -1;
            if (unlikely(result == 1))
                goto raise_neg_overflow;
        }
#endif
        if ((sizeof(GLint) <= sizeof(unsigned long))) {
            __PYX_VERIFY_RETURN_INT_EXC(GLint, unsigned long, PyLong_AsUnsignedLong(x))
        } else if ((sizeof(GLint) <= sizeof(unsigned PY_LONG_LONG))) {
            __PYX_VERIFY_RETURN_INT_EXC(GLint, unsigned PY_LONG_LONG, PyLong_AsUnsignedLongLong(x))
        }
    } else {
#if CYTHON_USE_PYLONG_INTERNALS
        if (__Pyx_PyLong_IsCompact(x)) {
            __PYX_VERIFY_RETURN_INT(GLint, __Pyx_compact_pylong, __Pyx_PyLong_CompactValue(x))
        } else {
            const digit* digits = __Pyx_PyLong_Digits(x);
            assert(__Pyx_PyLong_DigitCount(x) > 1);
            switch (__Pyx_PyLong_SignedDigitCount(x)) {
                case -2:
                    if ((8 * sizeof(GLint) - 1 > 1 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 2 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(GLint, long, -(long) (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(GLint) - 1 > 2 * PyLong_SHIFT)) {
                            return (GLint) (((GLint)-1)*(((((GLint)digits[1]) << PyLong_SHIFT) | (GLint)digits[0])));
                        }
                    }
                    break;
                case 2:
                    if ((8 * sizeof(GLint) > 1 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 2 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(GLint, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(GLint) - 1 > 2 * PyLong_SHIFT)) {
                            return (GLint) ((((((GLint)digits[1]) << PyLong_SHIFT) | (GLint)digits[0])));
                        }
                    }
                    break;
                case -3:
                    if ((8 * sizeof(GLint) - 1 > 2 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 3 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(GLint, long, -(long) (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(GLint) - 1 > 3 * PyLong_SHIFT)) {
                            return (GLint) (((GLint)-1)*(((((((GLint)digits[2]) << PyLong_SHIFT) | (GLint)digits[1]) << PyLong_SHIFT) | (GLint)digits[0])));
                        }
                    }
                    break;
                case 3:
                    if ((8 * sizeof(GLint) > 2 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 3 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(GLint, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(GLint) - 1 > 3 * PyLong_SHIFT)) {
                            return (GLint) ((((((((GLint)digits[2]) << PyLong_SHIFT) | (GLint)digits[1]) << PyLong_SHIFT) | (GLint)digits[0])));
                        }
                    }
                    break;
                case -4:
                    if ((8 * sizeof(GLint) - 1 > 3 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 4 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(GLint, 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(GLint) - 1 > 4 * PyLong_SHIFT)) {
                            return (GLint) (((GLint)-1)*(((((((((GLint)digits[3]) << PyLong_SHIFT) | (GLint)digits[2]) << PyLong_SHIFT) | (GLint)digits[1]) << PyLong_SHIFT) | (GLint)digits[0])));
                        }
                    }
                    break;
                case 4:
                    if ((8 * sizeof(GLint) > 3 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 4 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(GLint, 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(GLint) - 1 > 4 * PyLong_SHIFT)) {
                            return (GLint) ((((((((((GLint)digits[3]) << PyLong_SHIFT) | (GLint)digits[2]) << PyLong_SHIFT) | (GLint)digits[1]) << PyLong_SHIFT) | (GLint)digits[0])));
                        }
                    }
                    break;
            }
        }
#endif
        if ((sizeof(GLint) <= sizeof(long))) {
            __PYX_VERIFY_RETURN_INT_EXC(GLint, long, PyLong_AsLong(x))
        } else if ((sizeof(GLint) <= sizeof(PY_LONG_LONG))) {
            __PYX_VERIFY_RETURN_INT_EXC(GLint, PY_LONG_LONG, PyLong_AsLongLong(x))
        }
    }
    {
        GLint val;
        int ret = -1;
#if PY_VERSION_HEX >= 0x030d00A6 && !CYTHON_COMPILING_IN_LIMITED_API
        Py_ssize_t bytes_copied = PyLong_AsNativeBytes(
            x, &val, sizeof(val), Py_ASNATIVEBYTES_NATIVE_ENDIAN | (is_unsigned ? Py_ASNATIVEBYTES_UNSIGNED_BUFFER | Py_ASNATIVEBYTES_REJECT_NEGATIVE : 0));
        if (unlikely(bytes_copied == -1)) {
        } else if (unlikely(bytes_copied > (Py_ssize_t) sizeof(val))) {
            goto raise_overflow;
        } else {
            ret = 0;
        }
#elif PY_VERSION_HEX < 0x030d0000 && !(CYTHON_COMPILING_IN_PYPY || CYTHON_COMPILING_IN_LIMITED_API) || defined(_PyLong_AsByteArray)
        int one = 1; int is_little = (int)*(unsigned char *)&one;
        unsigned char *bytes = (unsigned char *)&val;
        ret = _PyLong_AsByteArray((PyLongObject *)x,
                                    bytes, sizeof(val),
                                    is_little, !is_unsigned);
#else
        PyObject *v;
        PyObject *stepval = NULL, *mask = NULL, *shift = NULL;
        int bits, remaining_bits, is_negative = 0;
        int chunk_size = (sizeof(long) < 8) ? 30 : 62;
        if (likely(PyLong_CheckExact(x))) {
            v = __Pyx_NewRef(x);
        } else {
            v = PyNumber_Long(x);
            if (unlikely(!v)) return (GLint) -1;
            assert(PyLong_CheckExact(v));
        }
        {
            int result = PyObject_RichCompareBool(v, Py_False, Py_LT);
            if (unlikely(result < 0)) {
                Py_DECREF(v);
                return (GLint) -1;
            }
            is_negative = result == 1;
        }
        if (is_unsigned && unlikely(is_negative)) {
            Py_DECREF(v);
            goto raise_neg_overflow;
        } else if (is_negative) {
            stepval = PyNumber_Invert(v);
            Py_DECREF(v);
            if (unlikely(!stepval))
                return (GLint) -1;
        } else {
            stepval = v;
        }
        v = NULL;
        val = (GLint) 0;
        mask = PyLong_FromLong((1L << chunk_size) - 1); if (unlikely(!mask)) goto done;
        shift = PyLong_FromLong(chunk_size); if (unlikely(!shift)) goto done;
        for (bits = 0; bits < (int) sizeof(GLint) * 8 - chunk_size; bits += chunk_size) {
            PyObject *tmp, *digit;
            long idigit;
            digit = PyNumber_And(stepval, mask);
            if (unlikely(!digit)) goto done;
            idigit = PyLong_AsLong(digit);
            Py_DECREF(digit);
            if (unlikely(idigit < 0)) goto done;
            val |= ((GLint) idigit) << bits;
            tmp = PyNumber_Rshift(stepval, shift);
            if (unlikely(!tmp)) goto done;
            Py_DECREF(stepval); stepval = tmp;
        }
        Py_DECREF(shift); shift = NULL;
        Py_DECREF(mask); mask = NULL;
        {
            long idigit = PyLong_AsLong(stepval);
            if (unlikely(idigit < 0)) goto done;
            remaining_bits = ((int) sizeof(GLint) * 8) - bits - (is_unsigned ? 0 : 1);
            if (unlikely(idigit >= (1L << remaining_bits)))
                goto raise_overflow;
            val |= ((GLint) idigit) << bits;
        }
        if (!is_unsigned) {
            if (unlikely(val & (((GLint) 1) << (sizeof(GLint) * 8 - 1))))
                goto raise_overflow;
            if (is_negative)
                val = ~val;
        }
        ret = 0;
    done:
        Py_XDECREF(shift);
        Py_XDECREF(mask);
        Py_XDECREF(stepval);
#endif
        if (unlikely(ret))
            return (GLint) -1;
        return val;
    }
raise_overflow:
    PyErr_SetString(PyExc_OverflowError,
        "value too large to convert to GLint");
    return (GLint) -1;
raise_neg_overflow:
    PyErr_SetString(PyExc_OverflowError,
        "can't convert negative value to GLint");
    return (GLint) -1;
}

/* CIntFromPy */
static CYTHON_INLINE GLboolean __Pyx_PyLong_As_GLboolean(PyObject *x) {
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wconversion"
#endif
    const GLboolean neg_one = (GLboolean) -1, const_zero = (GLboolean) 0;
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic pop
#endif
    const int is_unsigned = neg_one > const_zero;
    if (unlikely(!PyLong_Check(x))) {
        GLboolean val;
        PyObject *tmp = __Pyx_PyNumber_Long(x);
        if (!tmp) return (GLboolean) -1;
        val = __Pyx_PyLong_As_GLboolean(tmp);
        Py_DECREF(tmp);
        return val;
    }
    if (is_unsigned) {
#if CYTHON_USE_PYLONG_INTERNALS
        if (unlikely(__Pyx_PyLong_IsNeg(x))) {
            goto raise_neg_overflow;
        } else if (__Pyx_PyLong_IsCompact(x)) {
            __PYX_VERIFY_RETURN_INT(GLboolean, __Pyx_compact_upylong, __Pyx_PyLong_CompactValueUnsigned(x))
        } else {
            const digit* digits = __Pyx_PyLong_Digits(x);
            assert(__Pyx_PyLong_DigitCount(x) > 1);
            switch (__Pyx_PyLong_DigitCount(x)) {
                case 2:
                    if ((8 * sizeof(GLboolean) > 1 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 2 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(GLboolean, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(GLboolean) >= 2 * PyLong_SHIFT)) {
                            return (GLboolean) (((((GLboolean)digits[1]) << PyLong_SHIFT) | (GLboolean)digits[0]));
                        }
                    }
                    break;
                case 3:
                    if ((8 * sizeof(GLboolean) > 2 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 3 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(GLboolean, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(GLboolean) >= 3 * PyLong_SHIFT)) {
                            return (GLboolean) (((((((GLboolean)digits[2]) << PyLong_SHIFT) | (GLboolean)digits[1]) << PyLong_SHIFT) | (GLboolean)digits[0]));
                        }
                    }
                    break;
                case 4:
                    if ((8 * sizeof(GLboolean) > 3 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 4 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(GLboolean, 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(GLboolean) >= 4 * PyLong_SHIFT)) {
                            return (GLboolean) (((((((((GLboolean)digits[3]) << PyLong_SHIFT) | (GLboolean)digits[2]) << PyLong_SHIFT) | (GLboolean)digits[1]) << PyLong_SHIFT) | (GLboolean)digits[0]));
                        }
                    }
                    break;
            }
        }
#endif
#if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX < 0x030C00A7
        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 (GLboolean) -1;
            if (unlikely(result == 1))
                goto raise_neg_overflow;
        }
#endif
        if ((sizeof(GLboolean) <= sizeof(unsigned long))) {
            __PYX_VERIFY_RETURN_INT_EXC(GLboolean, unsigned long, PyLong_AsUnsignedLong(x))
        } else if ((sizeof(GLboolean) <= sizeof(unsigned PY_LONG_LONG))) {
            __PYX_VERIFY_RETURN_INT_EXC(GLboolean, unsigned PY_LONG_LONG, PyLong_AsUnsignedLongLong(x))
        }
    } else {
#if CYTHON_USE_PYLONG_INTERNALS
        if (__Pyx_PyLong_IsCompact(x)) {
            __PYX_VERIFY_RETURN_INT(GLboolean, __Pyx_compact_pylong, __Pyx_PyLong_CompactValue(x))
        } else {
            const digit* digits = __Pyx_PyLong_Digits(x);
            assert(__Pyx_PyLong_DigitCount(x) > 1);
            switch (__Pyx_PyLong_SignedDigitCount(x)) {
                case -2:
                    if ((8 * sizeof(GLboolean) - 1 > 1 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 2 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(GLboolean, long, -(long) (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(GLboolean) - 1 > 2 * PyLong_SHIFT)) {
                            return (GLboolean) (((GLboolean)-1)*(((((GLboolean)digits[1]) << PyLong_SHIFT) | (GLboolean)digits[0])));
                        }
                    }
                    break;
                case 2:
                    if ((8 * sizeof(GLboolean) > 1 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 2 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(GLboolean, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(GLboolean) - 1 > 2 * PyLong_SHIFT)) {
                            return (GLboolean) ((((((GLboolean)digits[1]) << PyLong_SHIFT) | (GLboolean)digits[0])));
                        }
                    }
                    break;
                case -3:
                    if ((8 * sizeof(GLboolean) - 1 > 2 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 3 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(GLboolean, long, -(long) (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(GLboolean) - 1 > 3 * PyLong_SHIFT)) {
                            return (GLboolean) (((GLboolean)-1)*(((((((GLboolean)digits[2]) << PyLong_SHIFT) | (GLboolean)digits[1]) << PyLong_SHIFT) | (GLboolean)digits[0])));
                        }
                    }
                    break;
                case 3:
                    if ((8 * sizeof(GLboolean) > 2 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 3 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(GLboolean, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(GLboolean) - 1 > 3 * PyLong_SHIFT)) {
                            return (GLboolean) ((((((((GLboolean)digits[2]) << PyLong_SHIFT) | (GLboolean)digits[1]) << PyLong_SHIFT) | (GLboolean)digits[0])));
                        }
                    }
                    break;
                case -4:
                    if ((8 * sizeof(GLboolean) - 1 > 3 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 4 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(GLboolean, 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(GLboolean) - 1 > 4 * PyLong_SHIFT)) {
                            return (GLboolean) (((GLboolean)-1)*(((((((((GLboolean)digits[3]) << PyLong_SHIFT) | (GLboolean)digits[2]) << PyLong_SHIFT) | (GLboolean)digits[1]) << PyLong_SHIFT) | (GLboolean)digits[0])));
                        }
                    }
                    break;
                case 4:
                    if ((8 * sizeof(GLboolean) > 3 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 4 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(GLboolean, 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(GLboolean) - 1 > 4 * PyLong_SHIFT)) {
                            return (GLboolean) ((((((((((GLboolean)digits[3]) << PyLong_SHIFT) | (GLboolean)digits[2]) << PyLong_SHIFT) | (GLboolean)digits[1]) << PyLong_SHIFT) | (GLboolean)digits[0])));
                        }
                    }
                    break;
            }
        }
#endif
        if ((sizeof(GLboolean) <= sizeof(long))) {
            __PYX_VERIFY_RETURN_INT_EXC(GLboolean, long, PyLong_AsLong(x))
        } else if ((sizeof(GLboolean) <= sizeof(PY_LONG_LONG))) {
            __PYX_VERIFY_RETURN_INT_EXC(GLboolean, PY_LONG_LONG, PyLong_AsLongLong(x))
        }
    }
    {
        GLboolean val;
        int ret = -1;
#if PY_VERSION_HEX >= 0x030d00A6 && !CYTHON_COMPILING_IN_LIMITED_API
        Py_ssize_t bytes_copied = PyLong_AsNativeBytes(
            x, &val, sizeof(val), Py_ASNATIVEBYTES_NATIVE_ENDIAN | (is_unsigned ? Py_ASNATIVEBYTES_UNSIGNED_BUFFER | Py_ASNATIVEBYTES_REJECT_NEGATIVE : 0));
        if (unlikely(bytes_copied == -1)) {
        } else if (unlikely(bytes_copied > (Py_ssize_t) sizeof(val))) {
            goto raise_overflow;
        } else {
            ret = 0;
        }
#elif PY_VERSION_HEX < 0x030d0000 && !(CYTHON_COMPILING_IN_PYPY || CYTHON_COMPILING_IN_LIMITED_API) || defined(_PyLong_AsByteArray)
        int one = 1; int is_little = (int)*(unsigned char *)&one;
        unsigned char *bytes = (unsigned char *)&val;
        ret = _PyLong_AsByteArray((PyLongObject *)x,
                                    bytes, sizeof(val),
                                    is_little, !is_unsigned);
#else
        PyObject *v;
        PyObject *stepval = NULL, *mask = NULL, *shift = NULL;
        int bits, remaining_bits, is_negative = 0;
        int chunk_size = (sizeof(long) < 8) ? 30 : 62;
        if (likely(PyLong_CheckExact(x))) {
            v = __Pyx_NewRef(x);
        } else {
            v = PyNumber_Long(x);
            if (unlikely(!v)) return (GLboolean) -1;
            assert(PyLong_CheckExact(v));
        }
        {
            int result = PyObject_RichCompareBool(v, Py_False, Py_LT);
            if (unlikely(result < 0)) {
                Py_DECREF(v);
                return (GLboolean) -1;
            }
            is_negative = result == 1;
        }
        if (is_unsigned && unlikely(is_negative)) {
            Py_DECREF(v);
            goto raise_neg_overflow;
        } else if (is_negative) {
            stepval = PyNumber_Invert(v);
            Py_DECREF(v);
            if (unlikely(!stepval))
                return (GLboolean) -1;
        } else {
            stepval = v;
        }
        v = NULL;
        val = (GLboolean) 0;
        mask = PyLong_FromLong((1L << chunk_size) - 1); if (unlikely(!mask)) goto done;
        shift = PyLong_FromLong(chunk_size); if (unlikely(!shift)) goto done;
        for (bits = 0; bits < (int) sizeof(GLboolean) * 8 - chunk_size; bits += chunk_size) {
            PyObject *tmp, *digit;
            long idigit;
            digit = PyNumber_And(stepval, mask);
            if (unlikely(!digit)) goto done;
            idigit = PyLong_AsLong(digit);
            Py_DECREF(digit);
            if (unlikely(idigit < 0)) goto done;
            val |= ((GLboolean) idigit) << bits;
            tmp = PyNumber_Rshift(stepval, shift);
            if (unlikely(!tmp)) goto done;
            Py_DECREF(stepval); stepval = tmp;
        }
        Py_DECREF(shift); shift = NULL;
        Py_DECREF(mask); mask = NULL;
        {
            long idigit = PyLong_AsLong(stepval);
            if (unlikely(idigit < 0)) goto done;
            remaining_bits = ((int) sizeof(GLboolean) * 8) - bits - (is_unsigned ? 0 : 1);
            if (unlikely(idigit >= (1L << remaining_bits)))
                goto raise_overflow;
            val |= ((GLboolean) idigit) << bits;
        }
        if (!is_unsigned) {
            if (unlikely(val & (((GLboolean) 1) << (sizeof(GLboolean) * 8 - 1))))
                goto raise_overflow;
            if (is_negative)
                val = ~val;
        }
        ret = 0;
    done:
        Py_XDECREF(shift);
        Py_XDECREF(mask);
        Py_XDECREF(stepval);
#endif
        if (unlikely(ret))
            return (GLboolean) -1;
        return val;
    }
raise_overflow:
    PyErr_SetString(PyExc_OverflowError,
        "value too large to convert to GLboolean");
    return (GLboolean) -1;
raise_neg_overflow:
    PyErr_SetString(PyExc_OverflowError,
        "can't convert negative value to GLboolean");
    return (GLboolean) -1;
}

/* CIntFromPy */
static CYTHON_INLINE GLsizei __Pyx_PyLong_As_GLsizei(PyObject *x) {
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wconversion"
#endif
    const GLsizei neg_one = (GLsizei) -1, const_zero = (GLsizei) 0;
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic pop
#endif
    const int is_unsigned = neg_one > const_zero;
    if (unlikely(!PyLong_Check(x))) {
        GLsizei val;
        PyObject *tmp = __Pyx_PyNumber_Long(x);
        if (!tmp) return (GLsizei) -1;
        val = __Pyx_PyLong_As_GLsizei(tmp);
        Py_DECREF(tmp);
        return val;
    }
    if (is_unsigned) {
#if CYTHON_USE_PYLONG_INTERNALS
        if (unlikely(__Pyx_PyLong_IsNeg(x))) {
            goto raise_neg_overflow;
        } else if (__Pyx_PyLong_IsCompact(x)) {
            __PYX_VERIFY_RETURN_INT(GLsizei, __Pyx_compact_upylong, __Pyx_PyLong_CompactValueUnsigned(x))
        } else {
            const digit* digits = __Pyx_PyLong_Digits(x);
            assert(__Pyx_PyLong_DigitCount(x) > 1);
            switch (__Pyx_PyLong_DigitCount(x)) {
                case 2:
                    if ((8 * sizeof(GLsizei) > 1 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 2 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(GLsizei, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(GLsizei) >= 2 * PyLong_SHIFT)) {
                            return (GLsizei) (((((GLsizei)digits[1]) << PyLong_SHIFT) | (GLsizei)digits[0]));
                        }
                    }
                    break;
                case 3:
                    if ((8 * sizeof(GLsizei) > 2 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 3 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(GLsizei, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(GLsizei) >= 3 * PyLong_SHIFT)) {
                            return (GLsizei) (((((((GLsizei)digits[2]) << PyLong_SHIFT) | (GLsizei)digits[1]) << PyLong_SHIFT) | (GLsizei)digits[0]));
                        }
                    }
                    break;
                case 4:
                    if ((8 * sizeof(GLsizei) > 3 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 4 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(GLsizei, 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(GLsizei) >= 4 * PyLong_SHIFT)) {
                            return (GLsizei) (((((((((GLsizei)digits[3]) << PyLong_SHIFT) | (GLsizei)digits[2]) << PyLong_SHIFT) | (GLsizei)digits[1]) << PyLong_SHIFT) | (GLsizei)digits[0]));
                        }
                    }
                    break;
            }
        }
#endif
#if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX < 0x030C00A7
        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 (GLsizei) -1;
            if (unlikely(result == 1))
                goto raise_neg_overflow;
        }
#endif
        if ((sizeof(GLsizei) <= sizeof(unsigned long))) {
            __PYX_VERIFY_RETURN_INT_EXC(GLsizei, unsigned long, PyLong_AsUnsignedLong(x))
        } else if ((sizeof(GLsizei) <= sizeof(unsigned PY_LONG_LONG))) {
            __PYX_VERIFY_RETURN_INT_EXC(GLsizei, unsigned PY_LONG_LONG, PyLong_AsUnsignedLongLong(x))
        }
    } else {
#if CYTHON_USE_PYLONG_INTERNALS
        if (__Pyx_PyLong_IsCompact(x)) {
            __PYX_VERIFY_RETURN_INT(GLsizei, __Pyx_compact_pylong, __Pyx_PyLong_CompactValue(x))
        } else {
            const digit* digits = __Pyx_PyLong_Digits(x);
            assert(__Pyx_PyLong_DigitCount(x) > 1);
            switch (__Pyx_PyLong_SignedDigitCount(x)) {
                case -2:
                    if ((8 * sizeof(GLsizei) - 1 > 1 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 2 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(GLsizei, long, -(long) (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(GLsizei) - 1 > 2 * PyLong_SHIFT)) {
                            return (GLsizei) (((GLsizei)-1)*(((((GLsizei)digits[1]) << PyLong_SHIFT) | (GLsizei)digits[0])));
                        }
                    }
                    break;
                case 2:
                    if ((8 * sizeof(GLsizei) > 1 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 2 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(GLsizei, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(GLsizei) - 1 > 2 * PyLong_SHIFT)) {
                            return (GLsizei) ((((((GLsizei)digits[1]) << PyLong_SHIFT) | (GLsizei)digits[0])));
                        }
                    }
                    break;
                case -3:
                    if ((8 * sizeof(GLsizei) - 1 > 2 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 3 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(GLsizei, long, -(long) (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(GLsizei) - 1 > 3 * PyLong_SHIFT)) {
                            return (GLsizei) (((GLsizei)-1)*(((((((GLsizei)digits[2]) << PyLong_SHIFT) | (GLsizei)digits[1]) << PyLong_SHIFT) | (GLsizei)digits[0])));
                        }
                    }
                    break;
                case 3:
                    if ((8 * sizeof(GLsizei) > 2 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 3 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(GLsizei, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(GLsizei) - 1 > 3 * PyLong_SHIFT)) {
                            return (GLsizei) ((((((((GLsizei)digits[2]) << PyLong_SHIFT) | (GLsizei)digits[1]) << PyLong_SHIFT) | (GLsizei)digits[0])));
                        }
                    }
                    break;
                case -4:
                    if ((8 * sizeof(GLsizei) - 1 > 3 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 4 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(GLsizei, 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(GLsizei) - 1 > 4 * PyLong_SHIFT)) {
                            return (GLsizei) (((GLsizei)-1)*(((((((((GLsizei)digits[3]) << PyLong_SHIFT) | (GLsizei)digits[2]) << PyLong_SHIFT) | (GLsizei)digits[1]) << PyLong_SHIFT) | (GLsizei)digits[0])));
                        }
                    }
                    break;
                case 4:
                    if ((8 * sizeof(GLsizei) > 3 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 4 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(GLsizei, 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(GLsizei) - 1 > 4 * PyLong_SHIFT)) {
                            return (GLsizei) ((((((((((GLsizei)digits[3]) << PyLong_SHIFT) | (GLsizei)digits[2]) << PyLong_SHIFT) | (GLsizei)digits[1]) << PyLong_SHIFT) | (GLsizei)digits[0])));
                        }
                    }
                    break;
            }
        }
#endif
        if ((sizeof(GLsizei) <= sizeof(long))) {
            __PYX_VERIFY_RETURN_INT_EXC(GLsizei, long, PyLong_AsLong(x))
        } else if ((sizeof(GLsizei) <= sizeof(PY_LONG_LONG))) {
            __PYX_VERIFY_RETURN_INT_EXC(GLsizei, PY_LONG_LONG, PyLong_AsLongLong(x))
        }
    }
    {
        GLsizei val;
        int ret = -1;
#if PY_VERSION_HEX >= 0x030d00A6 && !CYTHON_COMPILING_IN_LIMITED_API
        Py_ssize_t bytes_copied = PyLong_AsNativeBytes(
            x, &val, sizeof(val), Py_ASNATIVEBYTES_NATIVE_ENDIAN | (is_unsigned ? Py_ASNATIVEBYTES_UNSIGNED_BUFFER | Py_ASNATIVEBYTES_REJECT_NEGATIVE : 0));
        if (unlikely(bytes_copied == -1)) {
        } else if (unlikely(bytes_copied > (Py_ssize_t) sizeof(val))) {
            goto raise_overflow;
        } else {
            ret = 0;
        }
#elif PY_VERSION_HEX < 0x030d0000 && !(CYTHON_COMPILING_IN_PYPY || CYTHON_COMPILING_IN_LIMITED_API) || defined(_PyLong_AsByteArray)
        int one = 1; int is_little = (int)*(unsigned char *)&one;
        unsigned char *bytes = (unsigned char *)&val;
        ret = _PyLong_AsByteArray((PyLongObject *)x,
                                    bytes, sizeof(val),
                                    is_little, !is_unsigned);
#else
        PyObject *v;
        PyObject *stepval = NULL, *mask = NULL, *shift = NULL;
        int bits, remaining_bits, is_negative = 0;
        int chunk_size = (sizeof(long) < 8) ? 30 : 62;
        if (likely(PyLong_CheckExact(x))) {
            v = __Pyx_NewRef(x);
        } else {
            v = PyNumber_Long(x);
            if (unlikely(!v)) return (GLsizei) -1;
            assert(PyLong_CheckExact(v));
        }
        {
            int result = PyObject_RichCompareBool(v, Py_False, Py_LT);
            if (unlikely(result < 0)) {
                Py_DECREF(v);
                return (GLsizei) -1;
            }
            is_negative = result == 1;
        }
        if (is_unsigned && unlikely(is_negative)) {
            Py_DECREF(v);
            goto raise_neg_overflow;
        } else if (is_negative) {
            stepval = PyNumber_Invert(v);
            Py_DECREF(v);
            if (unlikely(!stepval))
                return (GLsizei) -1;
        } else {
            stepval = v;
        }
        v = NULL;
        val = (GLsizei) 0;
        mask = PyLong_FromLong((1L << chunk_size) - 1); if (unlikely(!mask)) goto done;
        shift = PyLong_FromLong(chunk_size); if (unlikely(!shift)) goto done;
        for (bits = 0; bits < (int) sizeof(GLsizei) * 8 - chunk_size; bits += chunk_size) {
            PyObject *tmp, *digit;
            long idigit;
            digit = PyNumber_And(stepval, mask);
            if (unlikely(!digit)) goto done;
            idigit = PyLong_AsLong(digit);
            Py_DECREF(digit);
            if (unlikely(idigit < 0)) goto done;
            val |= ((GLsizei) idigit) << bits;
            tmp = PyNumber_Rshift(stepval, shift);
            if (unlikely(!tmp)) goto done;
            Py_DECREF(stepval); stepval = tmp;
        }
        Py_DECREF(shift); shift = NULL;
        Py_DECREF(mask); mask = NULL;
        {
            long idigit = PyLong_AsLong(stepval);
            if (unlikely(idigit < 0)) goto done;
            remaining_bits = ((int) sizeof(GLsizei) * 8) - bits - (is_unsigned ? 0 : 1);
            if (unlikely(idigit >= (1L << remaining_bits)))
                goto raise_overflow;
            val |= ((GLsizei) idigit) << bits;
        }
        if (!is_unsigned) {
            if (unlikely(val & (((GLsizei) 1) << (sizeof(GLsizei) * 8 - 1))))
                goto raise_overflow;
            if (is_negative)
                val = ~val;
        }
        ret = 0;
    done:
        Py_XDECREF(shift);
        Py_XDECREF(mask);
        Py_XDECREF(stepval);
#endif
        if (unlikely(ret))
            return (GLsizei) -1;
        return val;
    }
raise_overflow:
    PyErr_SetString(PyExc_OverflowError,
        "value too large to convert to GLsizei");
    return (GLsizei) -1;
raise_neg_overflow:
    PyErr_SetString(PyExc_OverflowError,
        "can't convert negative value to GLsizei");
    return (GLsizei) -1;
}

/* CIntFromPy */
static CYTHON_INLINE int __Pyx_PyLong_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 (unlikely(!PyLong_Check(x))) {
        int val;
        PyObject *tmp = __Pyx_PyNumber_Long(x);
        if (!tmp) return (int) -1;
        val = __Pyx_PyLong_As_int(tmp);
        Py_DECREF(tmp);
        return val;
    }
    if (is_unsigned) {
#if CYTHON_USE_PYLONG_INTERNALS
        if (unlikely(__Pyx_PyLong_IsNeg(x))) {
            goto raise_neg_overflow;
        } else if (__Pyx_PyLong_IsCompact(x)) {
            __PYX_VERIFY_RETURN_INT(int, __Pyx_compact_upylong, __Pyx_PyLong_CompactValueUnsigned(x))
        } else {
            const digit* digits = __Pyx_PyLong_Digits(x);
            assert(__Pyx_PyLong_DigitCount(x) > 1);
            switch (__Pyx_PyLong_DigitCount(x)) {
                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 && PY_VERSION_HEX < 0x030C00A7
        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))
        } else if ((sizeof(int) <= sizeof(unsigned PY_LONG_LONG))) {
            __PYX_VERIFY_RETURN_INT_EXC(int, unsigned PY_LONG_LONG, PyLong_AsUnsignedLongLong(x))
        }
    } else {
#if CYTHON_USE_PYLONG_INTERNALS
        if (__Pyx_PyLong_IsCompact(x)) {
            __PYX_VERIFY_RETURN_INT(int, __Pyx_compact_pylong, __Pyx_PyLong_CompactValue(x))
        } else {
            const digit* digits = __Pyx_PyLong_Digits(x);
            assert(__Pyx_PyLong_DigitCount(x) > 1);
            switch (__Pyx_PyLong_SignedDigitCount(x)) {
                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))
        } else if ((sizeof(int) <= sizeof(PY_LONG_LONG))) {
            __PYX_VERIFY_RETURN_INT_EXC(int, PY_LONG_LONG, PyLong_AsLongLong(x))
        }
    }
    {
        int val;
        int ret = -1;
#if PY_VERSION_HEX >= 0x030d00A6 && !CYTHON_COMPILING_IN_LIMITED_API
        Py_ssize_t bytes_copied = PyLong_AsNativeBytes(
            x, &val, sizeof(val), Py_ASNATIVEBYTES_NATIVE_ENDIAN | (is_unsigned ? Py_ASNATIVEBYTES_UNSIGNED_BUFFER | Py_ASNATIVEBYTES_REJECT_NEGATIVE : 0));
        if (unlikely(bytes_copied == -1)) {
        } else if (unlikely(bytes_copied > (Py_ssize_t) sizeof(val))) {
            goto raise_overflow;
        } else {
            ret = 0;
        }
#elif PY_VERSION_HEX < 0x030d0000 && !(CYTHON_COMPILING_IN_PYPY || CYTHON_COMPILING_IN_LIMITED_API) || defined(_PyLong_AsByteArray)
        int one = 1; int is_little = (int)*(unsigned char *)&one;
        unsigned char *bytes = (unsigned char *)&val;
        ret = _PyLong_AsByteArray((PyLongObject *)x,
                                    bytes, sizeof(val),
                                    is_little, !is_unsigned);
#else
        PyObject *v;
        PyObject *stepval = NULL, *mask = NULL, *shift = NULL;
        int bits, remaining_bits, is_negative = 0;
        int chunk_size = (sizeof(long) < 8) ? 30 : 62;
        if (likely(PyLong_CheckExact(x))) {
            v = __Pyx_NewRef(x);
        } else {
            v = PyNumber_Long(x);
            if (unlikely(!v)) return (int) -1;
            assert(PyLong_CheckExact(v));
        }
        {
            int result = PyObject_RichCompareBool(v, Py_False, Py_LT);
            if (unlikely(result < 0)) {
                Py_DECREF(v);
                return (int) -1;
            }
            is_negative = result == 1;
        }
        if (is_unsigned && unlikely(is_negative)) {
            Py_DECREF(v);
            goto raise_neg_overflow;
        } else if (is_negative) {
            stepval = PyNumber_Invert(v);
            Py_DECREF(v);
            if (unlikely(!stepval))
                return (int) -1;
        } else {
            stepval = v;
        }
        v = NULL;
        val = (int) 0;
        mask = PyLong_FromLong((1L << chunk_size) - 1); if (unlikely(!mask)) goto done;
        shift = PyLong_FromLong(chunk_size); if (unlikely(!shift)) goto done;
        for (bits = 0; bits < (int) sizeof(int) * 8 - chunk_size; bits += chunk_size) {
            PyObject *tmp, *digit;
            long idigit;
            digit = PyNumber_And(stepval, mask);
            if (unlikely(!digit)) goto done;
            idigit = PyLong_AsLong(digit);
            Py_DECREF(digit);
            if (unlikely(idigit < 0)) goto done;
            val |= ((int) idigit) << bits;
            tmp = PyNumber_Rshift(stepval, shift);
            if (unlikely(!tmp)) goto done;
            Py_DECREF(stepval); stepval = tmp;
        }
        Py_DECREF(shift); shift = NULL;
        Py_DECREF(mask); mask = NULL;
        {
            long idigit = PyLong_AsLong(stepval);
            if (unlikely(idigit < 0)) goto done;
            remaining_bits = ((int) sizeof(int) * 8) - bits - (is_unsigned ? 0 : 1);
            if (unlikely(idigit >= (1L << remaining_bits)))
                goto raise_overflow;
            val |= ((int) idigit) << bits;
        }
        if (!is_unsigned) {
            if (unlikely(val & (((int) 1) << (sizeof(int) * 8 - 1))))
                goto raise_overflow;
            if (is_negative)
                val = ~val;
        }
        ret = 0;
    done:
        Py_XDECREF(shift);
        Py_XDECREF(mask);
        Py_XDECREF(stepval);
#endif
        if (unlikely(ret))
            return (int) -1;
        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;
}

/* CIntToPy */
static CYTHON_INLINE PyObject* __Pyx_PyLong_From_GLuint(GLuint value) {
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wconversion"
#endif
    const GLuint neg_one = (GLuint) -1, const_zero = (GLuint) 0;
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic pop
#endif
    const int is_unsigned = neg_one > const_zero;
    if (is_unsigned) {
        if (sizeof(GLuint) < sizeof(long)) {
            return PyLong_FromLong((long) value);
        } else if (sizeof(GLuint) <= sizeof(unsigned long)) {
            return PyLong_FromUnsignedLong((unsigned long) value);
#if !CYTHON_COMPILING_IN_PYPY
        } else if (sizeof(GLuint) <= sizeof(unsigned PY_LONG_LONG)) {
            return PyLong_FromUnsignedLongLong((unsigned PY_LONG_LONG) value);
#endif
        }
    } else {
        if (sizeof(GLuint) <= sizeof(long)) {
            return PyLong_FromLong((long) value);
        } else if (sizeof(GLuint) <= sizeof(PY_LONG_LONG)) {
            return PyLong_FromLongLong((PY_LONG_LONG) value);
        }
    }
    {
        unsigned char *bytes = (unsigned char *)&value;
#if !CYTHON_COMPILING_IN_LIMITED_API && PY_VERSION_HEX >= 0x030d00A4
        if (is_unsigned) {
            return PyLong_FromUnsignedNativeBytes(bytes, sizeof(value), -1);
        } else {
            return PyLong_FromNativeBytes(bytes, sizeof(value), -1);
        }
#elif !CYTHON_COMPILING_IN_LIMITED_API && PY_VERSION_HEX < 0x030d0000
        int one = 1; int little = (int)*(unsigned char *)&one;
        return _PyLong_FromByteArray(bytes, sizeof(GLuint),
                                     little, !is_unsigned);
#else
        int one = 1; int little = (int)*(unsigned char *)&one;
        PyObject *from_bytes, *result = NULL, *kwds = NULL;
        PyObject *py_bytes = NULL, *order_str = NULL;
        from_bytes = PyObject_GetAttrString((PyObject*)&PyLong_Type, "from_bytes");
        if (!from_bytes) return NULL;
        py_bytes = PyBytes_FromStringAndSize((char*)bytes, sizeof(GLuint));
        if (!py_bytes) goto limited_bad;
        order_str = PyUnicode_FromString(little ? "little" : "big");
        if (!order_str) goto limited_bad;
        {
            PyObject *args[3+(CYTHON_VECTORCALL ? 1 : 0)] = { NULL, py_bytes, order_str };
            if (!is_unsigned) {
                kwds = __Pyx_MakeVectorcallBuilderKwds(1);
                if (!kwds) goto limited_bad;
                if (__Pyx_VectorcallBuilder_AddArgStr("signed", __Pyx_NewRef(Py_True), kwds, args+3, 0) < 0) goto limited_bad;
            }
            result = __Pyx_Object_Vectorcall_CallFromBuilder(from_bytes, args+1, 2 | __Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET, kwds);
        }
        limited_bad:
        Py_XDECREF(kwds);
        Py_XDECREF(order_str);
        Py_XDECREF(py_bytes);
        Py_XDECREF(from_bytes);
        return result;
#endif
    }
}

/* CIntToPy */
static CYTHON_INLINE PyObject* __Pyx_PyLong_From_GLenum(GLenum value) {
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wconversion"
#endif
    const GLenum neg_one = (GLenum) -1, const_zero = (GLenum) 0;
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic pop
#endif
    const int is_unsigned = neg_one > const_zero;
    if (is_unsigned) {
        if (sizeof(GLenum) < sizeof(long)) {
            return PyLong_FromLong((long) value);
        } else if (sizeof(GLenum) <= sizeof(unsigned long)) {
            return PyLong_FromUnsignedLong((unsigned long) value);
#if !CYTHON_COMPILING_IN_PYPY
        } else if (sizeof(GLenum) <= sizeof(unsigned PY_LONG_LONG)) {
            return PyLong_FromUnsignedLongLong((unsigned PY_LONG_LONG) value);
#endif
        }
    } else {
        if (sizeof(GLenum) <= sizeof(long)) {
            return PyLong_FromLong((long) value);
        } else if (sizeof(GLenum) <= sizeof(PY_LONG_LONG)) {
            return PyLong_FromLongLong((PY_LONG_LONG) value);
        }
    }
    {
        unsigned char *bytes = (unsigned char *)&value;
#if !CYTHON_COMPILING_IN_LIMITED_API && PY_VERSION_HEX >= 0x030d00A4
        if (is_unsigned) {
            return PyLong_FromUnsignedNativeBytes(bytes, sizeof(value), -1);
        } else {
            return PyLong_FromNativeBytes(bytes, sizeof(value), -1);
        }
#elif !CYTHON_COMPILING_IN_LIMITED_API && PY_VERSION_HEX < 0x030d0000
        int one = 1; int little = (int)*(unsigned char *)&one;
        return _PyLong_FromByteArray(bytes, sizeof(GLenum),
                                     little, !is_unsigned);
#else
        int one = 1; int little = (int)*(unsigned char *)&one;
        PyObject *from_bytes, *result = NULL, *kwds = NULL;
        PyObject *py_bytes = NULL, *order_str = NULL;
        from_bytes = PyObject_GetAttrString((PyObject*)&PyLong_Type, "from_bytes");
        if (!from_bytes) return NULL;
        py_bytes = PyBytes_FromStringAndSize((char*)bytes, sizeof(GLenum));
        if (!py_bytes) goto limited_bad;
        order_str = PyUnicode_FromString(little ? "little" : "big");
        if (!order_str) goto limited_bad;
        {
            PyObject *args[3+(CYTHON_VECTORCALL ? 1 : 0)] = { NULL, py_bytes, order_str };
            if (!is_unsigned) {
                kwds = __Pyx_MakeVectorcallBuilderKwds(1);
                if (!kwds) goto limited_bad;
                if (__Pyx_VectorcallBuilder_AddArgStr("signed", __Pyx_NewRef(Py_True), kwds, args+3, 0) < 0) goto limited_bad;
            }
            result = __Pyx_Object_Vectorcall_CallFromBuilder(from_bytes, args+1, 2 | __Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET, kwds);
        }
        limited_bad:
        Py_XDECREF(kwds);
        Py_XDECREF(order_str);
        Py_XDECREF(py_bytes);
        Py_XDECREF(from_bytes);
        return result;
#endif
    }
}

/* CIntFromPy */
static CYTHON_INLINE unsigned int __Pyx_PyLong_As_unsigned_int(PyObject *x) {
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wconversion"
#endif
    const unsigned int neg_one = (unsigned int) -1, const_zero = (unsigned int) 0;
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic pop
#endif
    const int is_unsigned = neg_one > const_zero;
    if (unlikely(!PyLong_Check(x))) {
        unsigned int val;
        PyObject *tmp = __Pyx_PyNumber_Long(x);
        if (!tmp) return (unsigned int) -1;
        val = __Pyx_PyLong_As_unsigned_int(tmp);
        Py_DECREF(tmp);
        return val;
    }
    if (is_unsigned) {
#if CYTHON_USE_PYLONG_INTERNALS
        if (unlikely(__Pyx_PyLong_IsNeg(x))) {
            goto raise_neg_overflow;
        } else if (__Pyx_PyLong_IsCompact(x)) {
            __PYX_VERIFY_RETURN_INT(unsigned int, __Pyx_compact_upylong, __Pyx_PyLong_CompactValueUnsigned(x))
        } else {
            const digit* digits = __Pyx_PyLong_Digits(x);
            assert(__Pyx_PyLong_DigitCount(x) > 1);
            switch (__Pyx_PyLong_DigitCount(x)) {
                case 2:
                    if ((8 * sizeof(unsigned int) > 1 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 2 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(unsigned int, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(unsigned int) >= 2 * PyLong_SHIFT)) {
                            return (unsigned int) (((((unsigned int)digits[1]) << PyLong_SHIFT) | (unsigned int)digits[0]));
                        }
                    }
                    break;
                case 3:
                    if ((8 * sizeof(unsigned int) > 2 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 3 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(unsigned int, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(unsigned int) >= 3 * PyLong_SHIFT)) {
                            return (unsigned int) (((((((unsigned int)digits[2]) << PyLong_SHIFT) | (unsigned int)digits[1]) << PyLong_SHIFT) | (unsigned int)digits[0]));
                        }
                    }
                    break;
                case 4:
                    if ((8 * sizeof(unsigned int) > 3 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 4 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(unsigned 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(unsigned int) >= 4 * PyLong_SHIFT)) {
                            return (unsigned int) (((((((((unsigned int)digits[3]) << PyLong_SHIFT) | (unsigned int)digits[2]) << PyLong_SHIFT) | (unsigned int)digits[1]) << PyLong_SHIFT) | (unsigned int)digits[0]));
                        }
                    }
                    break;
            }
        }
#endif
#if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX < 0x030C00A7
        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 (unsigned int) -1;
            if (unlikely(result == 1))
                goto raise_neg_overflow;
        }
#endif
        if ((sizeof(unsigned int) <= sizeof(unsigned long))) {
            __PYX_VERIFY_RETURN_INT_EXC(unsigned int, unsigned long, PyLong_AsUnsignedLong(x))
        } else if ((sizeof(unsigned int) <= sizeof(unsigned PY_LONG_LONG))) {
            __PYX_VERIFY_RETURN_INT_EXC(unsigned int, unsigned PY_LONG_LONG, PyLong_AsUnsignedLongLong(x))
        }
    } else {
#if CYTHON_USE_PYLONG_INTERNALS
        if (__Pyx_PyLong_IsCompact(x)) {
            __PYX_VERIFY_RETURN_INT(unsigned int, __Pyx_compact_pylong, __Pyx_PyLong_CompactValue(x))
        } else {
            const digit* digits = __Pyx_PyLong_Digits(x);
            assert(__Pyx_PyLong_DigitCount(x) > 1);
            switch (__Pyx_PyLong_SignedDigitCount(x)) {
                case -2:
                    if ((8 * sizeof(unsigned int) - 1 > 1 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 2 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(unsigned int, long, -(long) (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(unsigned int) - 1 > 2 * PyLong_SHIFT)) {
                            return (unsigned int) (((unsigned int)-1)*(((((unsigned int)digits[1]) << PyLong_SHIFT) | (unsigned int)digits[0])));
                        }
                    }
                    break;
                case 2:
                    if ((8 * sizeof(unsigned int) > 1 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 2 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(unsigned int, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(unsigned int) - 1 > 2 * PyLong_SHIFT)) {
                            return (unsigned int) ((((((unsigned int)digits[1]) << PyLong_SHIFT) | (unsigned int)digits[0])));
                        }
                    }
                    break;
                case -3:
                    if ((8 * sizeof(unsigned int) - 1 > 2 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 3 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(unsigned int, long, -(long) (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(unsigned int) - 1 > 3 * PyLong_SHIFT)) {
                            return (unsigned int) (((unsigned int)-1)*(((((((unsigned int)digits[2]) << PyLong_SHIFT) | (unsigned int)digits[1]) << PyLong_SHIFT) | (unsigned int)digits[0])));
                        }
                    }
                    break;
                case 3:
                    if ((8 * sizeof(unsigned int) > 2 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 3 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(unsigned int, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(unsigned int) - 1 > 3 * PyLong_SHIFT)) {
                            return (unsigned int) ((((((((unsigned int)digits[2]) << PyLong_SHIFT) | (unsigned int)digits[1]) << PyLong_SHIFT) | (unsigned int)digits[0])));
                        }
                    }
                    break;
                case -4:
                    if ((8 * sizeof(unsigned int) - 1 > 3 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 4 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(unsigned 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(unsigned int) - 1 > 4 * PyLong_SHIFT)) {
                            return (unsigned int) (((unsigned int)-1)*(((((((((unsigned int)digits[3]) << PyLong_SHIFT) | (unsigned int)digits[2]) << PyLong_SHIFT) | (unsigned int)digits[1]) << PyLong_SHIFT) | (unsigned int)digits[0])));
                        }
                    }
                    break;
                case 4:
                    if ((8 * sizeof(unsigned int) > 3 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 4 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(unsigned 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(unsigned int) - 1 > 4 * PyLong_SHIFT)) {
                            return (unsigned int) ((((((((((unsigned int)digits[3]) << PyLong_SHIFT) | (unsigned int)digits[2]) << PyLong_SHIFT) | (unsigned int)digits[1]) << PyLong_SHIFT) | (unsigned int)digits[0])));
                        }
                    }
                    break;
            }
        }
#endif
        if ((sizeof(unsigned int) <= sizeof(long))) {
            __PYX_VERIFY_RETURN_INT_EXC(unsigned int, long, PyLong_AsLong(x))
        } else if ((sizeof(unsigned int) <= sizeof(PY_LONG_LONG))) {
            __PYX_VERIFY_RETURN_INT_EXC(unsigned int, PY_LONG_LONG, PyLong_AsLongLong(x))
        }
    }
    {
        unsigned int val;
        int ret = -1;
#if PY_VERSION_HEX >= 0x030d00A6 && !CYTHON_COMPILING_IN_LIMITED_API
        Py_ssize_t bytes_copied = PyLong_AsNativeBytes(
            x, &val, sizeof(val), Py_ASNATIVEBYTES_NATIVE_ENDIAN | (is_unsigned ? Py_ASNATIVEBYTES_UNSIGNED_BUFFER | Py_ASNATIVEBYTES_REJECT_NEGATIVE : 0));
        if (unlikely(bytes_copied == -1)) {
        } else if (unlikely(bytes_copied > (Py_ssize_t) sizeof(val))) {
            goto raise_overflow;
        } else {
            ret = 0;
        }
#elif PY_VERSION_HEX < 0x030d0000 && !(CYTHON_COMPILING_IN_PYPY || CYTHON_COMPILING_IN_LIMITED_API) || defined(_PyLong_AsByteArray)
        int one = 1; int is_little = (int)*(unsigned char *)&one;
        unsigned char *bytes = (unsigned char *)&val;
        ret = _PyLong_AsByteArray((PyLongObject *)x,
                                    bytes, sizeof(val),
                                    is_little, !is_unsigned);
#else
        PyObject *v;
        PyObject *stepval = NULL, *mask = NULL, *shift = NULL;
        int bits, remaining_bits, is_negative = 0;
        int chunk_size = (sizeof(long) < 8) ? 30 : 62;
        if (likely(PyLong_CheckExact(x))) {
            v = __Pyx_NewRef(x);
        } else {
            v = PyNumber_Long(x);
            if (unlikely(!v)) return (unsigned int) -1;
            assert(PyLong_CheckExact(v));
        }
        {
            int result = PyObject_RichCompareBool(v, Py_False, Py_LT);
            if (unlikely(result < 0)) {
                Py_DECREF(v);
                return (unsigned int) -1;
            }
            is_negative = result == 1;
        }
        if (is_unsigned && unlikely(is_negative)) {
            Py_DECREF(v);
            goto raise_neg_overflow;
        } else if (is_negative) {
            stepval = PyNumber_Invert(v);
            Py_DECREF(v);
            if (unlikely(!stepval))
                return (unsigned int) -1;
        } else {
            stepval = v;
        }
        v = NULL;
        val = (unsigned int) 0;
        mask = PyLong_FromLong((1L << chunk_size) - 1); if (unlikely(!mask)) goto done;
        shift = PyLong_FromLong(chunk_size); if (unlikely(!shift)) goto done;
        for (bits = 0; bits < (int) sizeof(unsigned int) * 8 - chunk_size; bits += chunk_size) {
            PyObject *tmp, *digit;
            long idigit;
            digit = PyNumber_And(stepval, mask);
            if (unlikely(!digit)) goto done;
            idigit = PyLong_AsLong(digit);
            Py_DECREF(digit);
            if (unlikely(idigit < 0)) goto done;
            val |= ((unsigned int) idigit) << bits;
            tmp = PyNumber_Rshift(stepval, shift);
            if (unlikely(!tmp)) goto done;
            Py_DECREF(stepval); stepval = tmp;
        }
        Py_DECREF(shift); shift = NULL;
        Py_DECREF(mask); mask = NULL;
        {
            long idigit = PyLong_AsLong(stepval);
            if (unlikely(idigit < 0)) goto done;
            remaining_bits = ((int) sizeof(unsigned int) * 8) - bits - (is_unsigned ? 0 : 1);
            if (unlikely(idigit >= (1L << remaining_bits)))
                goto raise_overflow;
            val |= ((unsigned int) idigit) << bits;
        }
        if (!is_unsigned) {
            if (unlikely(val & (((unsigned int) 1) << (sizeof(unsigned int) * 8 - 1))))
                goto raise_overflow;
            if (is_negative)
                val = ~val;
        }
        ret = 0;
    done:
        Py_XDECREF(shift);
        Py_XDECREF(mask);
        Py_XDECREF(stepval);
#endif
        if (unlikely(ret))
            return (unsigned int) -1;
        return val;
    }
raise_overflow:
    PyErr_SetString(PyExc_OverflowError,
        "value too large to convert to unsigned int");
    return (unsigned int) -1;
raise_neg_overflow:
    PyErr_SetString(PyExc_OverflowError,
        "can't convert negative value to unsigned int");
    return (unsigned int) -1;
}

/* CIntToPy */
static CYTHON_INLINE PyObject* __Pyx_PyLong_From_GLint(GLint value) {
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wconversion"
#endif
    const GLint neg_one = (GLint) -1, const_zero = (GLint) 0;
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic pop
#endif
    const int is_unsigned = neg_one > const_zero;
    if (is_unsigned) {
        if (sizeof(GLint) < sizeof(long)) {
            return PyLong_FromLong((long) value);
        } else if (sizeof(GLint) <= sizeof(unsigned long)) {
            return PyLong_FromUnsignedLong((unsigned long) value);
#if !CYTHON_COMPILING_IN_PYPY
        } else if (sizeof(GLint) <= sizeof(unsigned PY_LONG_LONG)) {
            return PyLong_FromUnsignedLongLong((unsigned PY_LONG_LONG) value);
#endif
        }
    } else {
        if (sizeof(GLint) <= sizeof(long)) {
            return PyLong_FromLong((long) value);
        } else if (sizeof(GLint) <= sizeof(PY_LONG_LONG)) {
            return PyLong_FromLongLong((PY_LONG_LONG) value);
        }
    }
    {
        unsigned char *bytes = (unsigned char *)&value;
#if !CYTHON_COMPILING_IN_LIMITED_API && PY_VERSION_HEX >= 0x030d00A4
        if (is_unsigned) {
            return PyLong_FromUnsignedNativeBytes(bytes, sizeof(value), -1);
        } else {
            return PyLong_FromNativeBytes(bytes, sizeof(value), -1);
        }
#elif !CYTHON_COMPILING_IN_LIMITED_API && PY_VERSION_HEX < 0x030d0000
        int one = 1; int little = (int)*(unsigned char *)&one;
        return _PyLong_FromByteArray(bytes, sizeof(GLint),
                                     little, !is_unsigned);
#else
        int one = 1; int little = (int)*(unsigned char *)&one;
        PyObject *from_bytes, *result = NULL, *kwds = NULL;
        PyObject *py_bytes = NULL, *order_str = NULL;
        from_bytes = PyObject_GetAttrString((PyObject*)&PyLong_Type, "from_bytes");
        if (!from_bytes) return NULL;
        py_bytes = PyBytes_FromStringAndSize((char*)bytes, sizeof(GLint));
        if (!py_bytes) goto limited_bad;
        order_str = PyUnicode_FromString(little ? "little" : "big");
        if (!order_str) goto limited_bad;
        {
            PyObject *args[3+(CYTHON_VECTORCALL ? 1 : 0)] = { NULL, py_bytes, order_str };
            if (!is_unsigned) {
                kwds = __Pyx_MakeVectorcallBuilderKwds(1);
                if (!kwds) goto limited_bad;
                if (__Pyx_VectorcallBuilder_AddArgStr("signed", __Pyx_NewRef(Py_True), kwds, args+3, 0) < 0) goto limited_bad;
            }
            result = __Pyx_Object_Vectorcall_CallFromBuilder(from_bytes, args+1, 2 | __Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET, kwds);
        }
        limited_bad:
        Py_XDECREF(kwds);
        Py_XDECREF(order_str);
        Py_XDECREF(py_bytes);
        Py_XDECREF(from_bytes);
        return result;
#endif
    }
}

/* CIntFromPy */
static CYTHON_INLINE size_t __Pyx_PyLong_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 (unlikely(!PyLong_Check(x))) {
        size_t val;
        PyObject *tmp = __Pyx_PyNumber_Long(x);
        if (!tmp) return (size_t) -1;
        val = __Pyx_PyLong_As_size_t(tmp);
        Py_DECREF(tmp);
        return val;
    }
    if (is_unsigned) {
#if CYTHON_USE_PYLONG_INTERNALS
        if (unlikely(__Pyx_PyLong_IsNeg(x))) {
            goto raise_neg_overflow;
        } else if (__Pyx_PyLong_IsCompact(x)) {
            __PYX_VERIFY_RETURN_INT(size_t, __Pyx_compact_upylong, __Pyx_PyLong_CompactValueUnsigned(x))
        } else {
            const digit* digits = __Pyx_PyLong_Digits(x);
            assert(__Pyx_PyLong_DigitCount(x) > 1);
            switch (__Pyx_PyLong_DigitCount(x)) {
                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 && PY_VERSION_HEX < 0x030C00A7
        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))
        } else if ((sizeof(size_t) <= sizeof(unsigned PY_LONG_LONG))) {
            __PYX_VERIFY_RETURN_INT_EXC(size_t, unsigned PY_LONG_LONG, PyLong_AsUnsignedLongLong(x))
        }
    } else {
#if CYTHON_USE_PYLONG_INTERNALS
        if (__Pyx_PyLong_IsCompact(x)) {
            __PYX_VERIFY_RETURN_INT(size_t, __Pyx_compact_pylong, __Pyx_PyLong_CompactValue(x))
        } else {
            const digit* digits = __Pyx_PyLong_Digits(x);
            assert(__Pyx_PyLong_DigitCount(x) > 1);
            switch (__Pyx_PyLong_SignedDigitCount(x)) {
                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))
        } else if ((sizeof(size_t) <= sizeof(PY_LONG_LONG))) {
            __PYX_VERIFY_RETURN_INT_EXC(size_t, PY_LONG_LONG, PyLong_AsLongLong(x))
        }
    }
    {
        size_t val;
        int ret = -1;
#if PY_VERSION_HEX >= 0x030d00A6 && !CYTHON_COMPILING_IN_LIMITED_API
        Py_ssize_t bytes_copied = PyLong_AsNativeBytes(
            x, &val, sizeof(val), Py_ASNATIVEBYTES_NATIVE_ENDIAN | (is_unsigned ? Py_ASNATIVEBYTES_UNSIGNED_BUFFER | Py_ASNATIVEBYTES_REJECT_NEGATIVE : 0));
        if (unlikely(bytes_copied == -1)) {
        } else if (unlikely(bytes_copied > (Py_ssize_t) sizeof(val))) {
            goto raise_overflow;
        } else {
            ret = 0;
        }
#elif PY_VERSION_HEX < 0x030d0000 && !(CYTHON_COMPILING_IN_PYPY || CYTHON_COMPILING_IN_LIMITED_API) || defined(_PyLong_AsByteArray)
        int one = 1; int is_little = (int)*(unsigned char *)&one;
        unsigned char *bytes = (unsigned char *)&val;
        ret = _PyLong_AsByteArray((PyLongObject *)x,
                                    bytes, sizeof(val),
                                    is_little, !is_unsigned);
#else
        PyObject *v;
        PyObject *stepval = NULL, *mask = NULL, *shift = NULL;
        int bits, remaining_bits, is_negative = 0;
        int chunk_size = (sizeof(long) < 8) ? 30 : 62;
        if (likely(PyLong_CheckExact(x))) {
            v = __Pyx_NewRef(x);
        } else {
            v = PyNumber_Long(x);
            if (unlikely(!v)) return (size_t) -1;
            assert(PyLong_CheckExact(v));
        }
        {
            int result = PyObject_RichCompareBool(v, Py_False, Py_LT);
            if (unlikely(result < 0)) {
                Py_DECREF(v);
                return (size_t) -1;
            }
            is_negative = result == 1;
        }
        if (is_unsigned && unlikely(is_negative)) {
            Py_DECREF(v);
            goto raise_neg_overflow;
        } else if (is_negative) {
            stepval = PyNumber_Invert(v);
            Py_DECREF(v);
            if (unlikely(!stepval))
                return (size_t) -1;
        } else {
            stepval = v;
        }
        v = NULL;
        val = (size_t) 0;
        mask = PyLong_FromLong((1L << chunk_size) - 1); if (unlikely(!mask)) goto done;
        shift = PyLong_FromLong(chunk_size); if (unlikely(!shift)) goto done;
        for (bits = 0; bits < (int) sizeof(size_t) * 8 - chunk_size; bits += chunk_size) {
            PyObject *tmp, *digit;
            long idigit;
            digit = PyNumber_And(stepval, mask);
            if (unlikely(!digit)) goto done;
            idigit = PyLong_AsLong(digit);
            Py_DECREF(digit);
            if (unlikely(idigit < 0)) goto done;
            val |= ((size_t) idigit) << bits;
            tmp = PyNumber_Rshift(stepval, shift);
            if (unlikely(!tmp)) goto done;
            Py_DECREF(stepval); stepval = tmp;
        }
        Py_DECREF(shift); shift = NULL;
        Py_DECREF(mask); mask = NULL;
        {
            long idigit = PyLong_AsLong(stepval);
            if (unlikely(idigit < 0)) goto done;
            remaining_bits = ((int) sizeof(size_t) * 8) - bits - (is_unsigned ? 0 : 1);
            if (unlikely(idigit >= (1L << remaining_bits)))
                goto raise_overflow;
            val |= ((size_t) idigit) << bits;
        }
        if (!is_unsigned) {
            if (unlikely(val & (((size_t) 1) << (sizeof(size_t) * 8 - 1))))
                goto raise_overflow;
            if (is_negative)
                val = ~val;
        }
        ret = 0;
    done:
        Py_XDECREF(shift);
        Py_XDECREF(mask);
        Py_XDECREF(stepval);
#endif
        if (unlikely(ret))
            return (size_t) -1;
        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;
}

/* CIntToPy */
static CYTHON_INLINE PyObject* __Pyx_PyLong_From_GLboolean(GLboolean value) {
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wconversion"
#endif
    const GLboolean neg_one = (GLboolean) -1, const_zero = (GLboolean) 0;
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic pop
#endif
    const int is_unsigned = neg_one > const_zero;
    if (is_unsigned) {
        if (sizeof(GLboolean) < sizeof(long)) {
            return PyLong_FromLong((long) value);
        } else if (sizeof(GLboolean) <= sizeof(unsigned long)) {
            return PyLong_FromUnsignedLong((unsigned long) value);
#if !CYTHON_COMPILING_IN_PYPY
        } else if (sizeof(GLboolean) <= sizeof(unsigned PY_LONG_LONG)) {
            return PyLong_FromUnsignedLongLong((unsigned PY_LONG_LONG) value);
#endif
        }
    } else {
        if (sizeof(GLboolean) <= sizeof(long)) {
            return PyLong_FromLong((long) value);
        } else if (sizeof(GLboolean) <= sizeof(PY_LONG_LONG)) {
            return PyLong_FromLongLong((PY_LONG_LONG) value);
        }
    }
    {
        unsigned char *bytes = (unsigned char *)&value;
#if !CYTHON_COMPILING_IN_LIMITED_API && PY_VERSION_HEX >= 0x030d00A4
        if (is_unsigned) {
            return PyLong_FromUnsignedNativeBytes(bytes, sizeof(value), -1);
        } else {
            return PyLong_FromNativeBytes(bytes, sizeof(value), -1);
        }
#elif !CYTHON_COMPILING_IN_LIMITED_API && PY_VERSION_HEX < 0x030d0000
        int one = 1; int little = (int)*(unsigned char *)&one;
        return _PyLong_FromByteArray(bytes, sizeof(GLboolean),
                                     little, !is_unsigned);
#else
        int one = 1; int little = (int)*(unsigned char *)&one;
        PyObject *from_bytes, *result = NULL, *kwds = NULL;
        PyObject *py_bytes = NULL, *order_str = NULL;
        from_bytes = PyObject_GetAttrString((PyObject*)&PyLong_Type, "from_bytes");
        if (!from_bytes) return NULL;
        py_bytes = PyBytes_FromStringAndSize((char*)bytes, sizeof(GLboolean));
        if (!py_bytes) goto limited_bad;
        order_str = PyUnicode_FromString(little ? "little" : "big");
        if (!order_str) goto limited_bad;
        {
            PyObject *args[3+(CYTHON_VECTORCALL ? 1 : 0)] = { NULL, py_bytes, order_str };
            if (!is_unsigned) {
                kwds = __Pyx_MakeVectorcallBuilderKwds(1);
                if (!kwds) goto limited_bad;
                if (__Pyx_VectorcallBuilder_AddArgStr("signed", __Pyx_NewRef(Py_True), kwds, args+3, 0) < 0) goto limited_bad;
            }
            result = __Pyx_Object_Vectorcall_CallFromBuilder(from_bytes, args+1, 2 | __Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET, kwds);
        }
        limited_bad:
        Py_XDECREF(kwds);
        Py_XDECREF(order_str);
        Py_XDECREF(py_bytes);
        Py_XDECREF(from_bytes);
        return result;
#endif
    }
}

/* FormatTypeName */
#if CYTHON_COMPILING_IN_LIMITED_API && __PYX_LIMITED_VERSION_HEX < 0x030d0000
static __Pyx_TypeName
__Pyx_PyType_GetFullyQualifiedName(PyTypeObject* tp)
{
    PyObject *module = NULL, *name = NULL, *result = NULL;
    #if __PYX_LIMITED_VERSION_HEX < 0x030b0000
    name = __Pyx_PyObject_GetAttrStr((PyObject *)tp,
                                               __pyx_mstate_global->__pyx_n_u_qualname);
    #else
    name = PyType_GetQualName(tp);
    #endif
    if (unlikely(name == NULL) || unlikely(!PyUnicode_Check(name))) goto bad;
    module = __Pyx_PyObject_GetAttrStr((PyObject *)tp,
                                               __pyx_mstate_global->__pyx_n_u_module);
    if (unlikely(module == NULL) || unlikely(!PyUnicode_Check(module))) goto bad;
    if (PyUnicode_CompareWithASCIIString(module, "builtins") == 0) {
        result = name;
        name = NULL;
        goto done;
    }
    result = PyUnicode_FromFormat("%U.%U", module, name);
    if (unlikely(result == NULL)) goto bad;
  done:
    Py_XDECREF(name);
    Py_XDECREF(module);
    return result;
  bad:
    PyErr_Clear();
    if (name) {
        result = name;
        name = NULL;
    } else {
        result = __Pyx_NewRef(__pyx_mstate_global->__pyx_kp_u__2);
    }
    goto done;
}
#endif

/* CIntToPy */
static CYTHON_INLINE PyObject* __Pyx_PyLong_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 PyLong_FromLong((long) value);
        } else if (sizeof(long) <= sizeof(unsigned long)) {
            return PyLong_FromUnsignedLong((unsigned long) value);
#if !CYTHON_COMPILING_IN_PYPY
        } 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 PyLong_FromLong((long) value);
        } else if (sizeof(long) <= sizeof(PY_LONG_LONG)) {
            return PyLong_FromLongLong((PY_LONG_LONG) value);
        }
    }
    {
        unsigned char *bytes = (unsigned char *)&value;
#if !CYTHON_COMPILING_IN_LIMITED_API && PY_VERSION_HEX >= 0x030d00A4
        if (is_unsigned) {
            return PyLong_FromUnsignedNativeBytes(bytes, sizeof(value), -1);
        } else {
            return PyLong_FromNativeBytes(bytes, sizeof(value), -1);
        }
#elif !CYTHON_COMPILING_IN_LIMITED_API && PY_VERSION_HEX < 0x030d0000
        int one = 1; int little = (int)*(unsigned char *)&one;
        return _PyLong_FromByteArray(bytes, sizeof(long),
                                     little, !is_unsigned);
#else
        int one = 1; int little = (int)*(unsigned char *)&one;
        PyObject *from_bytes, *result = NULL, *kwds = NULL;
        PyObject *py_bytes = NULL, *order_str = NULL;
        from_bytes = PyObject_GetAttrString((PyObject*)&PyLong_Type, "from_bytes");
        if (!from_bytes) return NULL;
        py_bytes = PyBytes_FromStringAndSize((char*)bytes, sizeof(long));
        if (!py_bytes) goto limited_bad;
        order_str = PyUnicode_FromString(little ? "little" : "big");
        if (!order_str) goto limited_bad;
        {
            PyObject *args[3+(CYTHON_VECTORCALL ? 1 : 0)] = { NULL, py_bytes, order_str };
            if (!is_unsigned) {
                kwds = __Pyx_MakeVectorcallBuilderKwds(1);
                if (!kwds) goto limited_bad;
                if (__Pyx_VectorcallBuilder_AddArgStr("signed", __Pyx_NewRef(Py_True), kwds, args+3, 0) < 0) goto limited_bad;
            }
            result = __Pyx_Object_Vectorcall_CallFromBuilder(from_bytes, args+1, 2 | __Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET, kwds);
        }
        limited_bad:
        Py_XDECREF(kwds);
        Py_XDECREF(order_str);
        Py_XDECREF(py_bytes);
        Py_XDECREF(from_bytes);
        return result;
#endif
    }
}

/* CIntFromPy */
static CYTHON_INLINE long __Pyx_PyLong_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 (unlikely(!PyLong_Check(x))) {
        long val;
        PyObject *tmp = __Pyx_PyNumber_Long(x);
        if (!tmp) return (long) -1;
        val = __Pyx_PyLong_As_long(tmp);
        Py_DECREF(tmp);
        return val;
    }
    if (is_unsigned) {
#if CYTHON_USE_PYLONG_INTERNALS
        if (unlikely(__Pyx_PyLong_IsNeg(x))) {
            goto raise_neg_overflow;
        } else if (__Pyx_PyLong_IsCompact(x)) {
            __PYX_VERIFY_RETURN_INT(long, __Pyx_compact_upylong, __Pyx_PyLong_CompactValueUnsigned(x))
        } else {
            const digit* digits = __Pyx_PyLong_Digits(x);
            assert(__Pyx_PyLong_DigitCount(x) > 1);
            switch (__Pyx_PyLong_DigitCount(x)) {
                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 && PY_VERSION_HEX < 0x030C00A7
        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))
        } else if ((sizeof(long) <= sizeof(unsigned PY_LONG_LONG))) {
            __PYX_VERIFY_RETURN_INT_EXC(long, unsigned PY_LONG_LONG, PyLong_AsUnsignedLongLong(x))
        }
    } else {
#if CYTHON_USE_PYLONG_INTERNALS
        if (__Pyx_PyLong_IsCompact(x)) {
            __PYX_VERIFY_RETURN_INT(long, __Pyx_compact_pylong, __Pyx_PyLong_CompactValue(x))
        } else {
            const digit* digits = __Pyx_PyLong_Digits(x);
            assert(__Pyx_PyLong_DigitCount(x) > 1);
            switch (__Pyx_PyLong_SignedDigitCount(x)) {
                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))
        } else if ((sizeof(long) <= sizeof(PY_LONG_LONG))) {
            __PYX_VERIFY_RETURN_INT_EXC(long, PY_LONG_LONG, PyLong_AsLongLong(x))
        }
    }
    {
        long val;
        int ret = -1;
#if PY_VERSION_HEX >= 0x030d00A6 && !CYTHON_COMPILING_IN_LIMITED_API
        Py_ssize_t bytes_copied = PyLong_AsNativeBytes(
            x, &val, sizeof(val), Py_ASNATIVEBYTES_NATIVE_ENDIAN | (is_unsigned ? Py_ASNATIVEBYTES_UNSIGNED_BUFFER | Py_ASNATIVEBYTES_REJECT_NEGATIVE : 0));
        if (unlikely(bytes_copied == -1)) {
        } else if (unlikely(bytes_copied > (Py_ssize_t) sizeof(val))) {
            goto raise_overflow;
        } else {
            ret = 0;
        }
#elif PY_VERSION_HEX < 0x030d0000 && !(CYTHON_COMPILING_IN_PYPY || CYTHON_COMPILING_IN_LIMITED_API) || defined(_PyLong_AsByteArray)
        int one = 1; int is_little = (int)*(unsigned char *)&one;
        unsigned char *bytes = (unsigned char *)&val;
        ret = _PyLong_AsByteArray((PyLongObject *)x,
                                    bytes, sizeof(val),
                                    is_little, !is_unsigned);
#else
        PyObject *v;
        PyObject *stepval = NULL, *mask = NULL, *shift = NULL;
        int bits, remaining_bits, is_negative = 0;
        int chunk_size = (sizeof(long) < 8) ? 30 : 62;
        if (likely(PyLong_CheckExact(x))) {
            v = __Pyx_NewRef(x);
        } else {
            v = PyNumber_Long(x);
            if (unlikely(!v)) return (long) -1;
            assert(PyLong_CheckExact(v));
        }
        {
            int result = PyObject_RichCompareBool(v, Py_False, Py_LT);
            if (unlikely(result < 0)) {
                Py_DECREF(v);
                return (long) -1;
            }
            is_negative = result == 1;
        }
        if (is_unsigned && unlikely(is_negative)) {
            Py_DECREF(v);
            goto raise_neg_overflow;
        } else if (is_negative) {
            stepval = PyNumber_Invert(v);
            Py_DECREF(v);
            if (unlikely(!stepval))
                return (long) -1;
        } else {
            stepval = v;
        }
        v = NULL;
        val = (long) 0;
        mask = PyLong_FromLong((1L << chunk_size) - 1); if (unlikely(!mask)) goto done;
        shift = PyLong_FromLong(chunk_size); if (unlikely(!shift)) goto done;
        for (bits = 0; bits < (int) sizeof(long) * 8 - chunk_size; bits += chunk_size) {
            PyObject *tmp, *digit;
            long idigit;
            digit = PyNumber_And(stepval, mask);
            if (unlikely(!digit)) goto done;
            idigit = PyLong_AsLong(digit);
            Py_DECREF(digit);
            if (unlikely(idigit < 0)) goto done;
            val |= ((long) idigit) << bits;
            tmp = PyNumber_Rshift(stepval, shift);
            if (unlikely(!tmp)) goto done;
            Py_DECREF(stepval); stepval = tmp;
        }
        Py_DECREF(shift); shift = NULL;
        Py_DECREF(mask); mask = NULL;
        {
            long idigit = PyLong_AsLong(stepval);
            if (unlikely(idigit < 0)) goto done;
            remaining_bits = ((int) sizeof(long) * 8) - bits - (is_unsigned ? 0 : 1);
            if (unlikely(idigit >= (1L << remaining_bits)))
                goto raise_overflow;
            val |= ((long) idigit) << bits;
        }
        if (!is_unsigned) {
            if (unlikely(val & (((long) 1) << (sizeof(long) * 8 - 1))))
                goto raise_overflow;
            if (is_negative)
                val = ~val;
        }
        ret = 0;
    done:
        Py_XDECREF(shift);
        Py_XDECREF(mask);
        Py_XDECREF(stepval);
#endif
        if (unlikely(ret))
            return (long) -1;
        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 = __Pyx_PyType_GetSlot(a, tp_base, PyTypeObject*);
        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);
}
static CYTHON_INLINE int __Pyx_IsAnySubtype2(PyTypeObject *cls, PyTypeObject *a, PyTypeObject *b) {
    PyObject *mro;
    if (cls == a || cls == b) return 1;
    mro = cls->tp_mro;
    if (likely(mro)) {
        Py_ssize_t i, n;
        n = PyTuple_GET_SIZE(mro);
        for (i = 0; i < n; i++) {
            PyObject *base = PyTuple_GET_ITEM(mro, i);
            if (base == (PyObject *)a || base == (PyObject *)b)
                return 1;
        }
        return 0;
    }
    return __Pyx_InBases(cls, a) || __Pyx_InBases(cls, b);
}
static CYTHON_INLINE int __Pyx_inner_PyErr_GivenExceptionMatches2(PyObject *err, PyObject* exc_type1, PyObject *exc_type2) {
    if (exc_type1) {
        return __Pyx_IsAnySubtype2((PyTypeObject*)err, (PyTypeObject*)exc_type1, (PyTypeObject*)exc_type2);
    } else {
        return __Pyx_IsSubtype((PyTypeObject*)err, (PyTypeObject*)exc_type2);
    }
}
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);
    for (i=0; i<n; i++) {
        if (exc_type == PyTuple_GET_ITEM(tuple, i)) return 1;
    }
    for (i=0; i<n; i++) {
        PyObject *t = PyTuple_GET_ITEM(tuple, i);
        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

/* GetRuntimeVersion */
#if __PYX_LIMITED_VERSION_HEX < 0x030b0000
void __Pyx_init_runtime_version(void) {
    if (__Pyx_cached_runtime_version == 0) {
        const char* rt_version = Py_GetVersion();
        unsigned long version = 0;
        unsigned long factor = 0x01000000UL;
        unsigned int digit = 0;
        int i = 0;
        while (factor) {
            while ('0' <= rt_version[i] && rt_version[i] <= '9') {
                digit = digit * 10 + (unsigned int) (rt_version[i] - '0');
                ++i;
            }
            version += factor * digit;
            if (rt_version[i] != '.')
                break;
            digit = 0;
            factor >>= 8;
            ++i;
        }
        __Pyx_cached_runtime_version = version;
    }
}
#endif
static unsigned long __Pyx_get_runtime_version(void) {
#if __PYX_LIMITED_VERSION_HEX >= 0x030b0000
    return Py_Version & ~0xFFUL;
#else
    return __Pyx_cached_runtime_version;
#endif
}

/* CheckBinaryVersion */
static int __Pyx_check_binary_version(unsigned long ct_version, unsigned long rt_version, int allow_newer) {
    const unsigned long MAJOR_MINOR = 0xFFFF0000UL;
    if ((rt_version & MAJOR_MINOR) == (ct_version & MAJOR_MINOR))
        return 0;
    if (likely(allow_newer && (rt_version & MAJOR_MINOR) > (ct_version & MAJOR_MINOR)))
        return 1;
    {
        char message[200];
        PyOS_snprintf(message, sizeof(message),
                      "compile time Python version %d.%d "
                      "of module '%.100s' "
                      "%s "
                      "runtime version %d.%d",
                       (int) (ct_version >> 24), (int) ((ct_version >> 16) & 0xFF),
                       __Pyx_MODULE_NAME,
                       (allow_newer) ? "was newer than" : "does not match",
                       (int) (rt_version >> 24), (int) ((rt_version >> 16) & 0xFF)
       );
        return PyErr_WarnEx(NULL, message, 1);
    }
}

/* NewCodeObj */
#if CYTHON_COMPILING_IN_LIMITED_API
    static PyObject* __Pyx__PyCode_New(int a, int p, 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 *exception_table = NULL;
        PyObject *types_module=NULL, *code_type=NULL, *result=NULL;
        #if __PYX_LIMITED_VERSION_HEX < 0x030b0000
        PyObject *version_info;
        PyObject *py_minor_version = NULL;
        #endif
        long minor_version = 0;
        PyObject *type, *value, *traceback;
        PyErr_Fetch(&type, &value, &traceback);
        #if __PYX_LIMITED_VERSION_HEX >= 0x030b0000
        minor_version = 11;
        #else
        if (!(version_info = PySys_GetObject("version_info"))) goto end;
        if (!(py_minor_version = PySequence_GetItem(version_info, 1))) goto end;
        minor_version = PyLong_AsLong(py_minor_version);
        Py_DECREF(py_minor_version);
        if (minor_version == -1 && PyErr_Occurred()) goto end;
        #endif
        if (!(types_module = PyImport_ImportModule("types"))) goto end;
        if (!(code_type = PyObject_GetAttrString(types_module, "CodeType"))) goto end;
        if (minor_version <= 7) {
            (void)p;
            result = PyObject_CallFunction(code_type, "iiiiiOOOOOOiOOO", a, k, l, s, f, code,
                          c, n, v, fn, name, fline, lnos, fv, cell);
        } else if (minor_version <= 10) {
            result = PyObject_CallFunction(code_type, "iiiiiiOOOOOOiOOO", a,p, k, l, s, f, code,
                          c, n, v, fn, name, fline, lnos, fv, cell);
        } else {
            if (!(exception_table = PyBytes_FromStringAndSize(NULL, 0))) goto end;
            result = PyObject_CallFunction(code_type, "iiiiiiOOOOOOOiOOOO", a,p, k, l, s, f, code,
                          c, n, v, fn, name, name, fline, lnos, exception_table, fv, cell);
        }
    end:
        Py_XDECREF(code_type);
        Py_XDECREF(exception_table);
        Py_XDECREF(types_module);
        if (type) {
            PyErr_Restore(type, value, traceback);
        }
        return result;
    }
#elif PY_VERSION_HEX >= 0x030B0000
  static PyCodeObject* __Pyx__PyCode_New(int a, int p, 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) {
    PyCodeObject *result;
    result =
      #if PY_VERSION_HEX >= 0x030C0000
        PyUnstable_Code_NewWithPosOnlyArgs
      #else
        PyCode_NewWithPosOnlyArgs
      #endif
        (a, p, k, l, s, f, code, c, n, v, fv, cell, fn, name, name, fline, lnos, __pyx_mstate_global->__pyx_empty_bytes);
    #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030c00A1
    if (likely(result))
        result->_co_firsttraceable = 0;
    #endif
    return result;
  }
#elif !CYTHON_COMPILING_IN_PYPY
  #define __Pyx__PyCode_New(a, p, k, l, s, f, code, c, n, v, fv, cell, fn, name, fline, lnos)\
          PyCode_NewWithPosOnlyArgs(a, p, k, l, s, f, code, c, n, v, fv, cell, fn, name, fline, lnos)
#else
  #define __Pyx__PyCode_New(a, p, 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
static PyObject* __Pyx_PyCode_New(
        const __Pyx_PyCode_New_function_description descr,
        PyObject * const *varnames,
        PyObject *filename,
        PyObject *funcname,
        PyObject *line_table,
        PyObject *tuple_dedup_map
) {
    PyObject *code_obj = NULL, *varnames_tuple_dedup = NULL, *code_bytes = NULL;
    Py_ssize_t var_count = (Py_ssize_t) descr.nlocals;
    PyObject *varnames_tuple = PyTuple_New(var_count);
    if (unlikely(!varnames_tuple)) return NULL;
    for (Py_ssize_t i=0; i < var_count; i++) {
        Py_INCREF(varnames[i]);
        if (__Pyx_PyTuple_SET_ITEM(varnames_tuple, i, varnames[i]) != (0)) goto done;
    }
    #if CYTHON_COMPILING_IN_LIMITED_API
    varnames_tuple_dedup = PyDict_GetItem(tuple_dedup_map, varnames_tuple);
    if (!varnames_tuple_dedup) {
        if (unlikely(PyDict_SetItem(tuple_dedup_map, varnames_tuple, varnames_tuple) < 0)) goto done;
        varnames_tuple_dedup = varnames_tuple;
    }
    #else
    varnames_tuple_dedup = PyDict_SetDefault(tuple_dedup_map, varnames_tuple, varnames_tuple);
    if (unlikely(!varnames_tuple_dedup)) goto done;
    #endif
    #if CYTHON_AVOID_BORROWED_REFS
    Py_INCREF(varnames_tuple_dedup);
    #endif
    if (__PYX_LIMITED_VERSION_HEX >= (0x030b0000) && line_table != NULL && !CYTHON_COMPILING_IN_GRAAL) {
        Py_ssize_t line_table_length = __Pyx_PyBytes_GET_SIZE(line_table);
        #if !CYTHON_ASSUME_SAFE_SIZE
        if (unlikely(line_table_length == -1)) goto done;
        #endif
        Py_ssize_t code_len = (line_table_length * 2 + 4) & ~3LL;
        code_bytes = PyBytes_FromStringAndSize(NULL, code_len);
        if (unlikely(!code_bytes)) goto done;
        char* c_code_bytes = PyBytes_AsString(code_bytes);
        if (unlikely(!c_code_bytes)) goto done;
        memset(c_code_bytes, 0, (size_t) code_len);
    }
    code_obj = (PyObject*) __Pyx__PyCode_New(
        (int) descr.argcount,
        (int) descr.num_posonly_args,
        (int) descr.num_kwonly_args,
        (int) descr.nlocals,
        0,
        (int) descr.flags,
        code_bytes ? code_bytes : __pyx_mstate_global->__pyx_empty_bytes,
        __pyx_mstate_global->__pyx_empty_tuple,
        __pyx_mstate_global->__pyx_empty_tuple,
        varnames_tuple_dedup,
        __pyx_mstate_global->__pyx_empty_tuple,
        __pyx_mstate_global->__pyx_empty_tuple,
        filename,
        funcname,
        (int) descr.first_line,
        (__PYX_LIMITED_VERSION_HEX >= (0x030b0000) && line_table) ? line_table : __pyx_mstate_global->__pyx_empty_bytes
    );
done:
    Py_XDECREF(code_bytes);
    #if CYTHON_AVOID_BORROWED_REFS
    Py_XDECREF(varnames_tuple_dedup);
    #endif
    Py_DECREF(varnames_tuple);
    return code_obj;
}

/* DecompressString */
static PyObject *__Pyx_DecompressString(const char *s, Py_ssize_t length, int algo) {
    PyObject *module, *decompress, *compressed_bytes, *decompressed;
    const char* module_name = algo == 3 ? "compression.zstd" : algo == 2 ? "bz2" : "zlib";
    PyObject *methodname = PyUnicode_FromString("decompress");
    if (unlikely(!methodname)) return NULL;
    #if __PYX_LIMITED_VERSION_HEX >= 0x030e0000
    if (algo == 3) {
        PyObject *fromlist = Py_BuildValue("[O]", methodname);
        if (unlikely(!fromlist)) return NULL;
        module = PyImport_ImportModuleLevel("compression.zstd", NULL, NULL, fromlist, 0);
        Py_DECREF(fromlist);
    } else
    #endif
        module = PyImport_ImportModule(module_name);
    if (unlikely(!module)) goto import_failed;
    decompress = PyObject_GetAttr(module, methodname);
    if (unlikely(!decompress)) goto import_failed;
    {
        #ifdef __cplusplus
            char *memview_bytes = const_cast<char*>(s);
        #else
            #if defined(__clang__)
              #pragma clang diagnostic push
              #pragma clang diagnostic ignored "-Wcast-qual"
            #elif !defined(__INTEL_COMPILER) && defined(__GNUC__)
              #pragma GCC diagnostic push
              #pragma GCC diagnostic ignored "-Wcast-qual"
            #endif
            char *memview_bytes = (char*) s;
            #if defined(__clang__)
              #pragma clang diagnostic pop
            #elif !defined(__INTEL_COMPILER) && defined(__GNUC__)
              #pragma GCC diagnostic pop
            #endif
        #endif
        #if CYTHON_COMPILING_IN_LIMITED_API && !defined(PyBUF_READ)
        int memview_flags = 0x100;
        #else
        int memview_flags = PyBUF_READ;
        #endif
        compressed_bytes = PyMemoryView_FromMemory(memview_bytes, length, memview_flags);
    }
    if (unlikely(!compressed_bytes)) {
        Py_DECREF(decompress);
        goto bad;
    }
    decompressed = PyObject_CallFunctionObjArgs(decompress, compressed_bytes, NULL);
    Py_DECREF(compressed_bytes);
    Py_DECREF(decompress);
    Py_DECREF(module);
    Py_DECREF(methodname);
    return decompressed;
import_failed:
    PyErr_Format(PyExc_ImportError,
        "Failed to import '%.20s.decompress' - cannot initialise module strings. "
        "String compression was configured with the C macro 'CYTHON_COMPRESS_STRINGS=%d'.",
        module_name, algo);
bad:
    Py_XDECREF(module);
    Py_DECREF(methodname);
    return NULL;
}

#include <string.h>
static CYTHON_INLINE Py_ssize_t __Pyx_ssize_strlen(const char *s) {
    size_t len = strlen(s);
    if (unlikely(len > (size_t) PY_SSIZE_T_MAX)) {
        PyErr_SetString(PyExc_OverflowError, "byte string is too long");
        return -1;
    }
    return (Py_ssize_t) len;
}
static CYTHON_INLINE PyObject* __Pyx_PyUnicode_FromString(const char* c_str) {
    Py_ssize_t len = __Pyx_ssize_strlen(c_str);
    if (unlikely(len < 0)) return NULL;
    return __Pyx_PyUnicode_FromStringAndSize(c_str, len);
}
static CYTHON_INLINE PyObject* __Pyx_PyByteArray_FromString(const char* c_str) {
    Py_ssize_t len = __Pyx_ssize_strlen(c_str);
    if (unlikely(len < 0)) return NULL;
    return PyByteArray_FromStringAndSize(c_str, len);
}
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_UTF8
static CYTHON_INLINE const char* __Pyx_PyUnicode_AsStringAndSize(PyObject* o, Py_ssize_t *length) {
    if (unlikely(__Pyx_PyUnicode_READY(o) == -1)) return NULL;
#if CYTHON_COMPILING_IN_LIMITED_API
    {
        const char* result;
        Py_ssize_t unicode_length;
        CYTHON_MAYBE_UNUSED_VAR(unicode_length); // only for __PYX_DEFAULT_STRING_ENCODING_IS_ASCII
        #if __PYX_LIMITED_VERSION_HEX < 0x030A0000
        if (unlikely(PyArg_Parse(o, "s#", &result, length) < 0)) return NULL;
        #else
        result = PyUnicode_AsUTF8AndSize(o, length);
        #endif
        #if __PYX_DEFAULT_STRING_ENCODING_IS_ASCII
        unicode_length = PyUnicode_GetLength(o);
        if (unlikely(unicode_length < 0)) return NULL;
        if (unlikely(unicode_length != *length)) {
            PyUnicode_AsASCIIString(o);
            return NULL;
        }
        #endif
        return result;
    }
#else
#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_UTF8
    if (PyUnicode_Check(o)) {
        return __Pyx_PyUnicode_AsStringAndSize(o, length);
    } else
#endif
    if (PyByteArray_Check(o)) {
#if (CYTHON_ASSUME_SAFE_SIZE && CYTHON_ASSUME_SAFE_MACROS) || (CYTHON_COMPILING_IN_PYPY && (defined(PyByteArray_AS_STRING) && defined(PyByteArray_GET_SIZE)))
        *length = PyByteArray_GET_SIZE(o);
        return PyByteArray_AS_STRING(o);
#else
        *length = PyByteArray_Size(o);
        if (*length == -1) return NULL;
        return PyByteArray_AsString(o);
#endif
    } else
    {
        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_LongWrongResultType(PyObject* result) {
    __Pyx_TypeName result_type_name = __Pyx_PyType_GetFullyQualifiedName(Py_TYPE(result));
    if (PyLong_Check(result)) {
        if (PyErr_WarnFormat(PyExc_DeprecationWarning, 1,
                "__int__ returned non-int (type " __Pyx_FMT_TYPENAME ").  "
                "The ability to return an instance of a strict subclass of int is deprecated, "
                "and may be removed in a future version of Python.",
                result_type_name)) {
            __Pyx_DECREF_TypeName(result_type_name);
            Py_DECREF(result);
            return NULL;
        }
        __Pyx_DECREF_TypeName(result_type_name);
        return result;
    }
    PyErr_Format(PyExc_TypeError,
                 "__int__ returned non-int (type " __Pyx_FMT_TYPENAME ")",
                 result_type_name);
    __Pyx_DECREF_TypeName(result_type_name);
    Py_DECREF(result);
    return NULL;
}
static CYTHON_INLINE PyObject* __Pyx_PyNumber_Long(PyObject* x) {
#if CYTHON_USE_TYPE_SLOTS
  PyNumberMethods *m;
#endif
  PyObject *res = NULL;
  if (likely(PyLong_Check(x)))
      return __Pyx_NewRef(x);
#if CYTHON_USE_TYPE_SLOTS
  m = Py_TYPE(x)->tp_as_number;
  if (likely(m && m->nb_int)) {
      res = m->nb_int(x);
  }
#else
  if (!PyBytes_CheckExact(x) && !PyUnicode_CheckExact(x)) {
      res = PyNumber_Long(x);
  }
#endif
  if (likely(res)) {
      if (unlikely(!PyLong_CheckExact(res))) {
          return __Pyx_PyNumber_LongWrongResultType(res);
      }
  }
  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 (likely(PyLong_CheckExact(b))) {
    #if CYTHON_USE_PYLONG_INTERNALS
    if (likely(__Pyx_PyLong_IsCompact(b))) {
        return __Pyx_PyLong_CompactValue(b);
    } else {
      const digit* digits = __Pyx_PyLong_Digits(b);
      const Py_ssize_t size = __Pyx_PyLong_SignedDigitCount(b);
      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 = PyLong_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);
  } else {
    Py_ssize_t ival;
    PyObject *x;
    x = PyNumber_Index(o);
    if (!x) return -1;
    ival = PyLong_AsLong(x);
    Py_DECREF(x);
    return ival;
  }
}
static CYTHON_INLINE PyObject *__Pyx_Owned_Py_None(int b) {
    CYTHON_UNUSED_VAR(b);
    return __Pyx_NewRef(Py_None);
}
static CYTHON_INLINE PyObject * __Pyx_PyBool_FromLong(long b) {
  return __Pyx_NewRef(b ? Py_True: Py_False);
}
static CYTHON_INLINE PyObject * __Pyx_PyLong_FromSize_t(size_t ival) {
    return PyLong_FromSize_t(ival);
}


/* MultiPhaseInitModuleState */
#if CYTHON_PEP489_MULTI_PHASE_INIT && CYTHON_USE_MODULE_STATE
#ifndef CYTHON_MODULE_STATE_LOOKUP_THREAD_SAFE
#if (CYTHON_COMPILING_IN_LIMITED_API || PY_VERSION_HEX >= 0x030C0000)
  #define CYTHON_MODULE_STATE_LOOKUP_THREAD_SAFE 1
#else
  #define CYTHON_MODULE_STATE_LOOKUP_THREAD_SAFE 0
#endif
#endif
#if CYTHON_MODULE_STATE_LOOKUP_THREAD_SAFE && !CYTHON_ATOMICS
#error "Module state with PEP489 requires atomics. Currently that's one of\
 C11, C++11, gcc atomic intrinsics or MSVC atomic intrinsics"
#endif
#if !CYTHON_MODULE_STATE_LOOKUP_THREAD_SAFE
#define __Pyx_ModuleStateLookup_Lock()
#define __Pyx_ModuleStateLookup_Unlock()
#elif !CYTHON_COMPILING_IN_LIMITED_API && PY_VERSION_HEX >= 0x030d0000
static PyMutex __Pyx_ModuleStateLookup_mutex = {0};
#define __Pyx_ModuleStateLookup_Lock() PyMutex_Lock(&__Pyx_ModuleStateLookup_mutex)
#define __Pyx_ModuleStateLookup_Unlock() PyMutex_Unlock(&__Pyx_ModuleStateLookup_mutex)
#elif defined(__cplusplus) && __cplusplus >= 201103L
#include <mutex>
static std::mutex __Pyx_ModuleStateLookup_mutex;
#define __Pyx_ModuleStateLookup_Lock() __Pyx_ModuleStateLookup_mutex.lock()
#define __Pyx_ModuleStateLookup_Unlock() __Pyx_ModuleStateLookup_mutex.unlock()
#elif defined(__STDC_VERSION__) && (__STDC_VERSION__ > 201112L) && !defined(__STDC_NO_THREADS__)
#include <threads.h>
static mtx_t __Pyx_ModuleStateLookup_mutex;
static once_flag __Pyx_ModuleStateLookup_mutex_once_flag = ONCE_FLAG_INIT;
static void __Pyx_ModuleStateLookup_initialize_mutex(void) {
    mtx_init(&__Pyx_ModuleStateLookup_mutex, mtx_plain);
}
#define __Pyx_ModuleStateLookup_Lock()\
  call_once(&__Pyx_ModuleStateLookup_mutex_once_flag, __Pyx_ModuleStateLookup_initialize_mutex);\
  mtx_lock(&__Pyx_ModuleStateLookup_mutex)
#define __Pyx_ModuleStateLookup_Unlock() mtx_unlock(&__Pyx_ModuleStateLookup_mutex)
#elif defined(HAVE_PTHREAD_H)
#include <pthread.h>
static pthread_mutex_t __Pyx_ModuleStateLookup_mutex = PTHREAD_MUTEX_INITIALIZER;
#define __Pyx_ModuleStateLookup_Lock() pthread_mutex_lock(&__Pyx_ModuleStateLookup_mutex)
#define __Pyx_ModuleStateLookup_Unlock() pthread_mutex_unlock(&__Pyx_ModuleStateLookup_mutex)
#elif defined(_WIN32)
#include <Windows.h>  // synchapi.h on its own doesn't work
static SRWLOCK __Pyx_ModuleStateLookup_mutex = SRWLOCK_INIT;
#define __Pyx_ModuleStateLookup_Lock() AcquireSRWLockExclusive(&__Pyx_ModuleStateLookup_mutex)
#define __Pyx_ModuleStateLookup_Unlock() ReleaseSRWLockExclusive(&__Pyx_ModuleStateLookup_mutex)
#else
#error "No suitable lock available for CYTHON_MODULE_STATE_LOOKUP_THREAD_SAFE.\
 Requires C standard >= C11, or C++ standard >= C++11,\
 or pthreads, or the Windows 32 API, or Python >= 3.13."
#endif
typedef struct {
    int64_t id;
    PyObject *module;
} __Pyx_InterpreterIdAndModule;
typedef struct {
    char interpreter_id_as_index;
    Py_ssize_t count;
    Py_ssize_t allocated;
    __Pyx_InterpreterIdAndModule table[1];
} __Pyx_ModuleStateLookupData;
#define __PYX_MODULE_STATE_LOOKUP_SMALL_SIZE 32
#if CYTHON_MODULE_STATE_LOOKUP_THREAD_SAFE
static __pyx_atomic_int_type __Pyx_ModuleStateLookup_read_counter = 0;
#endif
#if CYTHON_MODULE_STATE_LOOKUP_THREAD_SAFE
static __pyx_atomic_ptr_type __Pyx_ModuleStateLookup_data = 0;
#else
static __Pyx_ModuleStateLookupData* __Pyx_ModuleStateLookup_data = NULL;
#endif
static __Pyx_InterpreterIdAndModule* __Pyx_State_FindModuleStateLookupTableLowerBound(
        __Pyx_InterpreterIdAndModule* table,
        Py_ssize_t count,
        int64_t interpreterId) {
    __Pyx_InterpreterIdAndModule* begin = table;
    __Pyx_InterpreterIdAndModule* end = begin + count;
    if (begin->id == interpreterId) {
        return begin;
    }
    while ((end - begin) > __PYX_MODULE_STATE_LOOKUP_SMALL_SIZE) {
        __Pyx_InterpreterIdAndModule* halfway = begin + (end - begin)/2;
        if (halfway->id == interpreterId) {
            return halfway;
        }
        if (halfway->id < interpreterId) {
            begin = halfway;
        } else {
            end = halfway;
        }
    }
    for (; begin < end; ++begin) {
        if (begin->id >= interpreterId) return begin;
    }
    return begin;
}
static PyObject *__Pyx_State_FindModule(CYTHON_UNUSED void* dummy) {
    int64_t interpreter_id = PyInterpreterState_GetID(__Pyx_PyInterpreterState_Get());
    if (interpreter_id == -1) return NULL;
#if CYTHON_MODULE_STATE_LOOKUP_THREAD_SAFE
    __Pyx_ModuleStateLookupData* data = (__Pyx_ModuleStateLookupData*)__pyx_atomic_pointer_load_relaxed(&__Pyx_ModuleStateLookup_data);
    {
        __pyx_atomic_incr_acq_rel(&__Pyx_ModuleStateLookup_read_counter);
        if (likely(data)) {
            __Pyx_ModuleStateLookupData* new_data = (__Pyx_ModuleStateLookupData*)__pyx_atomic_pointer_load_acquire(&__Pyx_ModuleStateLookup_data);
            if (likely(data == new_data)) {
                goto read_finished;
            }
        }
        __pyx_atomic_decr_acq_rel(&__Pyx_ModuleStateLookup_read_counter);
        __Pyx_ModuleStateLookup_Lock();
        __pyx_atomic_incr_relaxed(&__Pyx_ModuleStateLookup_read_counter);
        data = (__Pyx_ModuleStateLookupData*)__pyx_atomic_pointer_load_relaxed(&__Pyx_ModuleStateLookup_data);
        __Pyx_ModuleStateLookup_Unlock();
    }
  read_finished:;
#else
    __Pyx_ModuleStateLookupData* data = __Pyx_ModuleStateLookup_data;
#endif
    __Pyx_InterpreterIdAndModule* found = NULL;
    if (unlikely(!data)) goto end;
    if (data->interpreter_id_as_index) {
        if (interpreter_id < data->count) {
            found = data->table+interpreter_id;
        }
    } else {
        found = __Pyx_State_FindModuleStateLookupTableLowerBound(
            data->table, data->count, interpreter_id);
    }
  end:
    {
        PyObject *result=NULL;
        if (found && found->id == interpreter_id) {
            result = found->module;
        }
#if CYTHON_MODULE_STATE_LOOKUP_THREAD_SAFE
        __pyx_atomic_decr_acq_rel(&__Pyx_ModuleStateLookup_read_counter);
#endif
        return result;
    }
}
#if CYTHON_MODULE_STATE_LOOKUP_THREAD_SAFE
static void __Pyx_ModuleStateLookup_wait_until_no_readers(void) {
    while (__pyx_atomic_load(&__Pyx_ModuleStateLookup_read_counter) != 0);
}
#else
#define __Pyx_ModuleStateLookup_wait_until_no_readers()
#endif
static int __Pyx_State_AddModuleInterpIdAsIndex(__Pyx_ModuleStateLookupData **old_data, PyObject* module, int64_t interpreter_id) {
    Py_ssize_t to_allocate = (*old_data)->allocated;
    while (to_allocate <= interpreter_id) {
        if (to_allocate == 0) to_allocate = 1;
        else to_allocate *= 2;
    }
    __Pyx_ModuleStateLookupData *new_data = *old_data;
    if (to_allocate != (*old_data)->allocated) {
         new_data = (__Pyx_ModuleStateLookupData *)realloc(
            *old_data,
            sizeof(__Pyx_ModuleStateLookupData)+(to_allocate-1)*sizeof(__Pyx_InterpreterIdAndModule));
        if (!new_data) {
            PyErr_NoMemory();
            return -1;
        }
        for (Py_ssize_t i = new_data->allocated; i < to_allocate; ++i) {
            new_data->table[i].id = i;
            new_data->table[i].module = NULL;
        }
        new_data->allocated = to_allocate;
    }
    new_data->table[interpreter_id].module = module;
    if (new_data->count < interpreter_id+1) {
        new_data->count = interpreter_id+1;
    }
    *old_data = new_data;
    return 0;
}
static void __Pyx_State_ConvertFromInterpIdAsIndex(__Pyx_ModuleStateLookupData *data) {
    __Pyx_InterpreterIdAndModule *read = data->table;
    __Pyx_InterpreterIdAndModule *write = data->table;
    __Pyx_InterpreterIdAndModule *end = read + data->count;
    for (; read<end; ++read) {
        if (read->module) {
            write->id = read->id;
            write->module = read->module;
            ++write;
        }
    }
    data->count = write - data->table;
    for (; write<end; ++write) {
        write->id = 0;
        write->module = NULL;
    }
    data->interpreter_id_as_index = 0;
}
static int __Pyx_State_AddModule(PyObject* module, CYTHON_UNUSED void* dummy) {
    int64_t interpreter_id = PyInterpreterState_GetID(__Pyx_PyInterpreterState_Get());
    if (interpreter_id == -1) return -1;
    int result = 0;
    __Pyx_ModuleStateLookup_Lock();
#if CYTHON_MODULE_STATE_LOOKUP_THREAD_SAFE
    __Pyx_ModuleStateLookupData *old_data = (__Pyx_ModuleStateLookupData *)
            __pyx_atomic_pointer_exchange(&__Pyx_ModuleStateLookup_data, 0);
#else
    __Pyx_ModuleStateLookupData *old_data = __Pyx_ModuleStateLookup_data;
#endif
    __Pyx_ModuleStateLookupData *new_data = old_data;
    if (!new_data) {
        new_data = (__Pyx_ModuleStateLookupData *)calloc(1, sizeof(__Pyx_ModuleStateLookupData));
        if (!new_data) {
            result = -1;
            PyErr_NoMemory();
            goto end;
        }
        new_data->allocated = 1;
        new_data->interpreter_id_as_index = 1;
    }
    __Pyx_ModuleStateLookup_wait_until_no_readers();
    if (new_data->interpreter_id_as_index) {
        if (interpreter_id < __PYX_MODULE_STATE_LOOKUP_SMALL_SIZE) {
            result = __Pyx_State_AddModuleInterpIdAsIndex(&new_data, module, interpreter_id);
            goto end;
        }
        __Pyx_State_ConvertFromInterpIdAsIndex(new_data);
    }
    {
        Py_ssize_t insert_at = 0;
        {
            __Pyx_InterpreterIdAndModule* lower_bound = __Pyx_State_FindModuleStateLookupTableLowerBound(
                new_data->table, new_data->count, interpreter_id);
            assert(lower_bound);
            insert_at = lower_bound - new_data->table;
            if (unlikely(insert_at < new_data->count && lower_bound->id == interpreter_id)) {
                lower_bound->module = module;
                goto end;  // already in table, nothing more to do
            }
        }
        if (new_data->count+1 >= new_data->allocated) {
            Py_ssize_t to_allocate = (new_data->count+1)*2;
            new_data =
                (__Pyx_ModuleStateLookupData*)realloc(
                    new_data,
                    sizeof(__Pyx_ModuleStateLookupData) +
                    (to_allocate-1)*sizeof(__Pyx_InterpreterIdAndModule));
            if (!new_data) {
                result = -1;
                new_data = old_data;
                PyErr_NoMemory();
                goto end;
            }
            new_data->allocated = to_allocate;
        }
        ++new_data->count;
        int64_t last_id = interpreter_id;
        PyObject *last_module = module;
        for (Py_ssize_t i=insert_at; i<new_data->count; ++i) {
            int64_t current_id = new_data->table[i].id;
            new_data->table[i].id = last_id;
            last_id = current_id;
            PyObject *current_module = new_data->table[i].module;
            new_data->table[i].module = last_module;
            last_module = current_module;
        }
    }
  end:
#if CYTHON_MODULE_STATE_LOOKUP_THREAD_SAFE
    __pyx_atomic_pointer_exchange(&__Pyx_ModuleStateLookup_data, new_data);
#else
    __Pyx_ModuleStateLookup_data = new_data;
#endif
    __Pyx_ModuleStateLookup_Unlock();
    return result;
}
static int __Pyx_State_RemoveModule(CYTHON_UNUSED void* dummy) {
    int64_t interpreter_id = PyInterpreterState_GetID(__Pyx_PyInterpreterState_Get());
    if (interpreter_id == -1) return -1;
    __Pyx_ModuleStateLookup_Lock();
#if CYTHON_MODULE_STATE_LOOKUP_THREAD_SAFE
    __Pyx_ModuleStateLookupData *data = (__Pyx_ModuleStateLookupData *)
            __pyx_atomic_pointer_exchange(&__Pyx_ModuleStateLookup_data, 0);
#else
    __Pyx_ModuleStateLookupData *data = __Pyx_ModuleStateLookup_data;
#endif
    if (data->interpreter_id_as_index) {
        if (interpreter_id < data->count) {
            data->table[interpreter_id].module = NULL;
        }
        goto done;
    }
    {
        __Pyx_ModuleStateLookup_wait_until_no_readers();
        __Pyx_InterpreterIdAndModule* lower_bound = __Pyx_State_FindModuleStateLookupTableLowerBound(
            data->table, data->count, interpreter_id);
        if (!lower_bound) goto done;
        if (lower_bound->id != interpreter_id) goto done;
        __Pyx_InterpreterIdAndModule *end = data->table+data->count;
        for (;lower_bound<end-1; ++lower_bound) {
            lower_bound->id = (lower_bound+1)->id;
            lower_bound->module = (lower_bound+1)->module;
        }
    }
    --data->count;
    if (data->count == 0) {
        free(data);
        data = NULL;
    }
  done:
#if CYTHON_MODULE_STATE_LOOKUP_THREAD_SAFE
    __pyx_atomic_pointer_exchange(&__Pyx_ModuleStateLookup_data, data);
#else
    __Pyx_ModuleStateLookup_data = data;
#endif
    __Pyx_ModuleStateLookup_Unlock();
    return 0;
}
#endif

/* #### Code section: utility_code_pragmas_end ### */
#ifdef _MSC_VER
#pragma warning( pop )
#endif



/* #### Code section: end ### */
#endif /* Py_PYTHON_H */
