layout editor with opengl