Xcode/TemplatesForProjectBuilder/SDL OpenGL Application/main.c
changeset 2215 23a2cb765052
parent 2213 59a667370c57
child 2220 4d2d0548f5b2
equal deleted inserted replaced
2214:e7164a4dac62 2215:23a2cb765052
    51 
    51 
    52     int attr[] = { SDL_GL_RED_SIZE, SDL_GL_BLUE_SIZE, SDL_GL_GREEN_SIZE,
    52     int attr[] = { SDL_GL_RED_SIZE, SDL_GL_BLUE_SIZE, SDL_GL_GREEN_SIZE,
    53         SDL_GL_ALPHA_SIZE, SDL_GL_BUFFER_SIZE, SDL_GL_DEPTH_SIZE
    53         SDL_GL_ALPHA_SIZE, SDL_GL_BUFFER_SIZE, SDL_GL_DEPTH_SIZE
    54     };
    54     };
    55 
    55 
    56     char *desc[] =
    56     char *desc[] = { "Red size: %d bits\n", "Blue size: %d bits\n",
    57         { "Red size: %d bits\n", "Blue size: %d bits\n",
    57         "Green size: %d bits\n",
    58  "Green size: %d bits\n",
       
    59         "Alpha size: %d bits\n", "Color buffer size: %d bits\n",
    58         "Alpha size: %d bits\n", "Color buffer size: %d bits\n",
    60         "Depth bufer size: %d bits\n"
    59         "Depth bufer size: %d bits\n"
    61     };
    60     };
    62 
    61 
    63     nAttr = sizeof(attr) / sizeof(int);
    62     nAttr = sizeof(attr) / sizeof(int);