PART ONE
codes.cpp
#include <iostream>
#include <GL/freeglut.h>
using namespace std;
int main(int argc, char** argv)
{
glutInit(&argc, argv);
const char* name = "Default Framebuffer";
glutCreateWindow(name);
GLint xpixel;
glGetIntegerv(GL_MAX_PIXEL_MAP_TABLE, &xpixel);
cout << "Maxsize of xpixel is " << xpixel << endl;
GLint bpixel;
//GL_MAX_VIEWPORT_DIMS|GL_MAX_RENDERBUFFER_SIZE(RBO)
glGetIntegerv(GL_MAX_TEXTURE_SIZE, &bpixel);
cout << "Maxsize of bpixel is " << bpixel << endl;
GLint screen_w = glutGet(GLUT_SCREEN_WIDTH);
GLint screen_h = glutGet(GLUT_SCREEN_HEIGHT);
cout << "Screen's width is " << screen_w << endl;
cout << "Screen's height is " << scre