Код: Выделить всё
#include
#include
#include
#undef main
int main()
{
const int width = 240;
const int height = 240;
const std::string window_title = "opengl";
// init sdl
if (SDL_Init(SDL_INIT_EVERYTHING) != 0)
{
std::cout
Подробнее здесь: [url]https://stackoverflow.com/questions/79174297/opengl-and-sdl2-produces-unusual-visual-effects-how-can-i-fix-this[/url]
Мобильная версия