added GL functions and matrix->GLfloat*