Opengl

Hello.
when write an opengl program should use these always?

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
SDL_GL_SetAttribute(SDL_GL_RED_SIZE,8);
SDL_GL_SetAttribute(SDL_GL_GREEN_SIZE,8);
SDL_GL_SetAttribute(SDL_GL_BLUE_SIZE,8);
SDL_GL_SetAttribute(SDL_GL_ALPHA_SIZE,8);
SDL_GL_SetAttribute(SDL_GL_BUFFER_SIZE,32);
SDL_GL_SetAttribute(SDL_GL_DEPTH_SIZE,16);
SDL_GL_SetAttribute(SDL_GL_DOUBLEBUFFER,1);

SDL_SetVideoMode(1000,1000,32,SDL_OPENGL);//this is SDL so,i dont mean this.


glViewport(0,0,600,400);

glShadeModel(GL_SMOOTH);

glMatrixMode(GL_PROJECTION);
glLoadIdentity();

glDisable(GL_DEPTH_TEST);


IF yes what means all them?
Topic archived. No new replies allowed.