How many lines does it take you to build a pixel buffer in WebGL? SDL2 here is being used to handle input, open a window, and update a texture stretched over the full window using a software-rendered buffer of pixel data.
Probably about the same. Most of the code is defining data types and loading an OBJ file, and modern OpenGL requires quite a lot of boilerplate before anything gets drawn.