这是输出:http://i43.tinypic.com/9a5zyx.png如果事情按照我想要的方式进行,左方block中的颜色将与右方block中的颜色相匹配。感谢有关该主题的任何帮助#includeconstchar*title="test";GLuintimg;unsignedintw=64,h=64;intscreenwidth,screenheight;voidenable2d(){glMatrixMode(GL_PROJECTION);glPushMatrix();glLoadIdentity();glViewport(0,0,screenwidth,screenheigh