3 ms·
> What about OpenGL? Yeah, GL is good now. Vulkan too, when supported by GPU driver. However, both GL and VK can only render triangle meshes. Browsers don't qu
by Const-me 5y ago
> What about OpenGL?
Yeah, GL is good now. Vulkan too, when supported by GPU driver.
However, both GL and VK can only render triangle meshes. Browsers don't quite need meshes (except WebGL but that's another story), they need 2D graphics and text.
On Windows, browsers and most other modern apps are using Direct2D and DirectWrite. They are OS-provided libraries which render 2D graphics and text with triangle meshes using Direct3D 11 underneath.
While modern GL is comparable to D3D11 (and VK comparable to D3D12), there's no equivalent libraries on Linux, i.e. you'll need to do that part on your side, instead of consuming OS-provided libraries. These parts are far from being trivial.
> I really want to not use libraries as much as possible and do everything on my own
OK but at least you'll be able to look how other people did that.
Also the standard library is a part of the language runtime, no reason not to use it. In C# it contains quite a few complicated low-level pieces, like network protocols and cryptography.