This is an intermediate step to getting GLSL shaders and meshes working. Please ignore the mess