On Tue, Jun 30, 2009 at 10:14 PM, Ondrej Certik<[email protected]> wrote: > > Ah, I think I am wrong. Numpy's strides is exactly what I need, right? > > http://docs.scipy.org/doc/numpy/reference/generated/numpy.ndarray.strides.html > > so I just take *any* numpy array, as long as it has the right dtype, > and then just pass the pointer to .data and strides to the opengl > function. >
Perhaps it works... Just in case, test it with a numpy array using Fortran ordering, perhaps OpenGL does not like it? BTW, do arrays with more than two dimensions make sense in OpenGL? Do you know exactly what numpy strides mean (any nd-array have nd-strides, even the contiguous ones) ? -- Lisandro Dalcín --------------- Centro Internacional de Métodos Computacionales en Ingeniería (CIMEC) Instituto de Desarrollo Tecnológico para la Industria Química (INTEC) Consejo Nacional de Investigaciones Científicas y Técnicas (CONICET) PTLC - Güemes 3450, (3000) Santa Fe, Argentina Tel/Fax: +54-(0)342-451.1594 _______________________________________________ Cython-dev mailing list [email protected] http://codespeak.net/mailman/listinfo/cython-dev
