size_t size = w * h * 3; GLubyte *pixels = new GLubyte[size]; glReadPixels(0, 0, w, h, GL_RGB, GL_UNSIGNED_BYTE, pixels) delete[] pixel; ...
確定! 回上一頁