Код: Выделить всё
// g++ -Wall -Ofast main.cpp include/glad/glad.c -Iinclude/SDL3 -Linclude/SDL3 -lSDL3 -lopengl32 -o build/program
#define SDL_MAIN_HANDLED
#include
#include
#include
#include
int main(int argc, char* argv[]) {
if (!SDL_Init(SDL_INIT_VIDEO | SDL_INIT_EVENTS)) {
std::cerr
Подробнее здесь: [url]https://stackoverflow.com/questions/79637402/sdl-gl-createcontext-fails-without-an-error-message[/url]
Мобильная версия