#Raylay - A stupid simple flex layout library for Raylib

1 messages · Page 1 of 1 (latest)

broken adder
#

Hi guys, I've been working on a dead simple flex layout library for Raylib. I've rewritten it like 3 times. It enabled fast prototyping of complex layouts with like 3 functions. Quite proud of the simplicity yet power it delivers. Used in my spectro project.

Will release header-only C version once I get the Odin version where I like it but looking for feedback/ideas! Thanks!

https://github.com/grplyler/raylay

#

Raylay - A stupid simple flex layout library for Raylib

sterile flint
#

oh! very nice! could it work combined with raygui?

soft bear
#

Very nice. I was thinking of doing something similar but now I'll check how this works. I've been looking for an excuse to try out odin anyway

#

I like how it only outputs the rectangles and then you can choose to draw it how you want

broken adder
sterile flint
broken adder
gaunt isle
#

amazing! can't wait for the C version :D
keep going!

broken adder
broken adder
#

@sterile flint its super late, but wanted to go ahead and submit this C version before work tomorrow. Took your notes into consideration with the API design and function names. Quite pleased with it so far.

Renamed from raylay to rglayout

https://github.com/grplyler/rglayout

Lmk what you think! Thanks!

#

Updated image

gaunt isle
#

only now saw you made available the C version, will be sure to play with it this weekend and share my thoughts :)

gaunt isle
#

ok, so. Experimenting with the library so far

#

you are missing a function definition for:
GuiPlanAddRepeat

#

i added in my end, now it does not complain, still experimenting :)

#

not being able to use the library from c++ :o still experimenting :o

#

got it working :D

#

you are missing this before the function declaration:

#if defined(__cplusplus)
extern "C" {            // Prevents name mangling of functions
#endif

and this after the function declaration

#ifdef __cplusplus
}
#endif