basic opengl rectangle with render function
memory leak fix, oops