Added mipmap generation. Reordered constants in LibGL.