News for hackers. Stuff that matters.
Re:Ask HN: How to rediscover the joy of programming? by DeathArrow on Tuesday April 14, 2020 @02:39AM (#22863289)
>where else can you get a GLES window up in 3 lines of code?

Everywhere somebody built an abstraction to do it.

#include <SDL.h>

...........

SDL_Init(SDL_INIT_VIDEO);

SDL_Window *window = SDL_CreateWindow("MyApp", 0, 0, 1920, 1080, 0);

There are no comments on this comment yet.