Now merging the first part of photon-opengl.