tfw u still need 200 lines to make a fuckin purple cube and halfway thru u realise X11 can NOT do double buffering without an additional 300 lines of boilerplate
https://mastodon.social/media/v-qB6Ee2cozv66vdSN8
@jk but why arent you using opengl
@er1n i'm not writing this code in order to make a purple cube, i'm writing it because of: https://mastodon.social/@jk/99373778921889998
atm i've got 1 file which is called cube.c and it compiles with only X11 and math libraries, and just to get a window which i can then draw on is maybe 50 lines of code
opengl was my initial idea, but on a brief search, i could NOT find any way of doing the above without, idk, double the amount of Shit. SDL, SFML etc
can you get me an opengl context in a window in ~50 lines of C?
@er1n i genuinely don't know much about this sort of thing because every time i try to explore some way of doing stuff like this, i always have to install some kind of fucking library & read a bunch garbage of documents
@jk write directly to the linux framebuffer
@er1n can't do windowing with this