static PyObject* py_glDrawBuffers(PyObject *, PyObject *args) { CHECK_ARG_COUNT(args, 1); Array1D<Enum> buffers; if (buffers.fromPy(PyTuple_GetItem(args, 0))) { glDrawBuffers(buffers.size(), buffers); } Py_RETURN_NONE; }
static PyObject* py_glShaderSource(PyObject *, PyObject *args) { CHECK_ARG_COUNT(args, 2); Uint shader(PyTuple_GetItem(args, 0)); Array1D<String> strings; if (strings.fromPy(PyTuple_GetItem(args, 1))) { glShaderSource(shader, strings.size(), strings, 0); } Py_RETURN_NONE; }