def get_model_matrix(array_type=c_float, glGetMethod=glGetFloatv):
 m = (array_type * 16)()
 glGetMethod(GL_MODELVIEW_MATRIX, m)
 return m

def get_model_matrix ( array_type = c_float , glGetMethod = glGetFloatv ) : m = ( array_type * 16 ) ( ) glGetMethod ( GL_MODELVIEW_MATRIX , m ) return m
returns the current modelview matrix .