Draw squares and triangles with opengl, using SDL1.2 for inputs and window