A render framework encapsulate OpenGL and direct3D