Handmade Network»Zelaven

Recent Activity

To round off my participation in the jam the gui I'm making using &rdic is now at a stage where I will start using it.
What I show in the video is that all my fundamentals work as intended. At this point it's a matter of features and refinement.
It's far from complete and full of gaping holes, but that is something I will iron out as I go. I have to use it for something to ship if I don't want to disappoint @samhsmith after all. 😛

I have been working on &rdic for a long time now, but for the jam I decided to make it publicly available and push for an alpha or beta version of sorts.
In other news, I got clipping working, though not for all my drawing functionality. I can't really explain in short form all the infrastructure heavy lifting that went into making it possible, but now I should be able to do scrollable regions, drop-downs, and more.
I'm also showing at the end my ability to redraw things conditionally, though it's hard to see because it is shown with 2x2 pixel dots.

I am now capable of drawing rectangles with both rounded corners and a border with a consistent thickness around the entire edge. It's worth noting that I'm not cheating out and drawing two rects on top of each other, it's all based on calculations on circles. (And again; Thanks Martins!)
It's aliased, but anti-aliased is a struggle for another day. This has got to be good enough for now.

I have rounded corners on rectangles I draw entirely on the CPU. No hackery with drawing four circles and three rectangles.
The way I do it is I refitted the circle drawing algorithm Casey showcased (thanks Martins!) to give me points I could use to determine the length of each line in the rectangle.

https://cdn.discordapp.com/attachments/692939668160774204/1127557189716955136/RDIC_rounded_corners.mp4
Rounded corners, drawn through X11 draw commands. Why is that share-worthy? Because I want the borders to grow exactly inwards. When X11 draws a line half the line width goes on each side of the line. Imagine the pain.
Anyway, only the arcs for the rounded corners were a real pain the the solution was to now draw arcs at all because they are nigh-uncontrollable if you want pixel-perfect results (i.e. no weird artifacts), so I can recommend overlapping XFillArc drawing calls.
(Oh and thanks to the Nuklear project for their relatively workable example code, though it isn't quite up to my pedantic standards, hence my woes)

Just sliding in a little display of my progress with sliders. I don't have anything worked out for drawing text yet, so I appropriated the color instead.

Hey I just want to show the meagre results I have so far with my homerolled imgui.
Just showing off that I have correct button behavior, which means that you need to press and release the mouse over the same button.
The neat thing so far is that I don't rebuild the entire node tree every frame and map between trees.
Instead the usage code manages references, which isn't as bad as it is in rmguis because the usage code references are authoritative.