Код: Выделить всё
SDL_GL_SetAttribute(SDL_GL_MULTISAMPLEBUFFERS, 1);
SDL_GL_SetAttribute(SDL_GL_MULTISAMPLESAMPLES, 2);
< /code>
и < /p>
glEnable(GL_MULTISAMPLE);
Код: Выделить всё
int Buffers, Samples;
SDL_GL_GetAttribute( SDL_GL_MULTISAMPLEBUFFERS, &Buffers );
SDL_GL_GetAttribute( SDL_GL_MULTISAMPLESAMPLES, &Samples );
cout
Подробнее здесь: [url]https://stackoverflow.com/questions/19859891/sdl2-antialiasing[/url]
Мобильная версия