Nice to see tsoding on the top of HN, this guy does amazing streams and youtube video
How can I find them?
Olive.c: a simple graphics library that does not have any dependencies
51–60 of 96 posts
Re: Olive.c: a simple graphics library that does not have any dependencies
#52Nice! PortableGL is also great, OpenGL api that is defined in entirely in C and writes the “framebuffer” into an SDL window https://github.com/rswinkle/PortableGL
Re: Olive.c: a simple graphics library that does not have any dependencies
#53Earlier quoted context omitted.
From demos/triangle.c ( https://github.com/tsoding/olive.c/blob/master/demos/triangl... ) // This idea is that you can take this code and compile it to different platforms with different rendering machanisms: // native with SDL, WebAssembly with HTML5 canvas, etc. The goal seems to be to maximize portability.
Unfortunately only portable to systems with fast CPUs though. Although I guess rendering simple 3d shapes probably runs just fine on low end hardware.
Though most games don't bother so we don't really have actual evidence.
Re: Olive.c: a simple graphics library that does not have any dependencies
#54Does this use WebGL2? It doesn't run on my phone (which does support WebGL 1). Edit: According to the JS source file it appears to be a plain 2D canvas. Now I am even more confused, those should definitely load! https://github.com/tsoding/olive.c/blob/master/js/vc.js
Re: Olive.c: a simple graphics library that does not have any dependencies
#55clang $COMMON_CFLAGS -Os -fno-builtin --target=wasm32 ...
Re: Olive.c: a simple graphics library that does not have any dependencies
#56The name is pronounced as "olivets" which is a Ukrainian word for "pencil" ("олівець"). From the readme.
Re: Olive.c: a simple graphics library that does not have any dependencies
#57https://github.com/tsoding/olive.c/blob/43a67dd76760f915516a...
Re: Olive.c: a simple graphics library that does not have any dependencies
#58Re: Olive.c: a simple graphics library that does not have any dependencies
#59Re: Olive.c: a simple graphics library that does not have any dependencies
#60Earlier quoted context omitted.
Unfortunately only portable to systems with fast CPUs though. Although I guess rendering simple 3d shapes probably runs just fine on low end hardware.
It depends how fast “fast” is. PCs in the 90s could run games like quake in lower quality mode with lower framerates, but they ran. CPUs that we have now are many orders of magnitude more powerful, so imagine what you can do with that. Though most games don't bother so we don't really have actual evidence.