3 ms·
aww, I thought this is going to be about implementing OpenGL functionalities by directly interacting with the GPU and X.
by nialv7 3y ago
aww, I thought this is going to be about implementing OpenGL functionalities by directly interacting with the GPU and X.
- mananaysiempre 3y agoI don’t think that exists (I sure would like for it to), but until it does you could amuse yourself with: - A 500-line (non-OpenGL-compatible) software rasterizer: https://github.com/ssloy/tinyrenderer/wiki https://github.com/ssloy/tinyrenderer/wiki. - A “hello Wayland” app written in C without libwayland or anything else: https://gaultier.github.io/blog/wayland_from_scratch.html https://gaultier.github.io/blog/wayland_from_scratch.html. - A “hello X11” app written in x86-64 assembly(!) without libX11, libxcb, or anything else: https://gaultier.github.io/blog/x11_x64.html https://gaultier.github.io/blog/x11_x64.html.
- dartos 3y agoYou’re looking for driver programming. IIRC OpenGL is implemented at the driver level. I’m sure you could find a, potentially dated, walkthrough of mesa’s code if you looked hard enough.