diff pytouhou/utils/matrix.pyx @ 424:f4d76d3d6f2a

Make the Shader class use cython too.
author Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
date Tue, 16 Jul 2013 21:07:15 +0200
parents d8630c086926
children 878273a984c4
line wrap: on
line diff
--- a/pytouhou/utils/matrix.pyx
+++ b/pytouhou/utils/matrix.pyx
@@ -13,7 +13,6 @@
 ##
 
 from libc.math cimport sin, cos
-from ctypes import c_float
 from libc.stdlib cimport malloc, free
 
 
@@ -51,11 +50,6 @@ cdef class Matrix:
         return out
 
 
-    def get_c_data(self):
-        data = sum(self.data, [])
-        return (c_float * 16)(*data)
-
-
     cpdef flip(self):
         data = self.data
         a, b, c, d = data[0]