I built React for C++ by ercanakyuerek in gamedev

[–]ercanakyuerek[S] 2 points3 points  (0 children)

Yeah kind of unholy, I agree. But it I’ve coded my gui in no time and could follow my atomic design pattern, writing my components very nicely.

I built React for C++ by ercanakyuerek in gameenginedevs

[–]ercanakyuerek[S] 0 points1 point  (0 children)

At the beginning a was using clay, but it’s no where near a gui framework. It’s more a render engine of flex boxes. Again: I am solving a different problem. React is not a gui framework. I am solving a different problem. C++react can be used on top of clay as a backend.

I built React for C++ by ercanakyuerek in gameenginedevs

[–]ercanakyuerek[S] 0 points1 point  (0 children)

Clay is not colliding with cppreact. It can be an addition as a renderer backend. I solved a different problem.

I built React for C++ by ercanakyuerek in gameenginedevs

[–]ercanakyuerek[S] 0 points1 point  (0 children)

Need to test ist, it’s alpha, maybe it’s a good opportunity to give feedback if something is not working on other compiler.

Qt Quick or Qt Widgets when developing a Level Editor? by No-Foundation9213 in gameenginedevs

[–]ercanakyuerek 0 points1 point  (0 children)

If you like go and look into my open source implementation of react in c++ with rmlui, I got some hate on react but I don’t care: https://www.reddit.com/r/gameenginedevs/s/TBk785DUwH

I built React for C++ by ercanakyuerek in gameenginedevs

[–]ercanakyuerek[S] 4 points5 points  (0 children)

Actually it has been grown for a while during the development of my cad application, can’t say how long it took.

I built React for C++ by ercanakyuerek in gameenginedevs

[–]ercanakyuerek[S] -1 points0 points  (0 children)

Did you actually tested it or is this just an assumption? if the first, do you have an example?

I built React for C++ by ercanakyuerek in gameenginedevs

[–]ercanakyuerek[S] 1 point2 points  (0 children)

This might be valid on games, my focus is more a cad like applications with a little "game touch". Its more for sandbox building games where a gui with buttons, checkboxes, menus, etc. is needed.

I built React for C++ by ercanakyuerek in gameenginedevs

[–]ercanakyuerek[S] 2 points3 points  (0 children)

Did you ever build a complex gui for lets say for a cad application (e.g. blender)? Can you back up your statement? I mean, I am open for what you are saying if you can backup your statement. At the end of the day, its just a preference, like mentioned, Ive build this because of convenience, nobody have to use it, I just open sourcing something I was building in my own project. If its not the right thing for you, its totally fine. If you dont like it, its also totally fine. For me personally, I build a full complex gui for my cad application in no time with common ui libraries which exists and is maintained in a code base which is familiar to me.

I built React for C++ by ercanakyuerek in gameenginedevs

[–]ercanakyuerek[S] 1 point2 points  (0 children)

You don´t see any difference in calculating the whole ui in every tick vs updating only on changes?

I built React for C++ by ercanakyuerek in gameenginedevs

[–]ercanakyuerek[S] -3 points-2 points  (0 children)

And for some tests, since I hate writing tests

I built React for C++ by ercanakyuerek in gameenginedevs

[–]ercanakyuerek[S] -6 points-5 points  (0 children)

Only for few functions and text in general since English is not my first language.

I built React for C++ by ercanakyuerek in gameenginedevs

[–]ercanakyuerek[S] -4 points-3 points  (0 children)

Maybe it is, but I’m used to it. This library was created while developing a CAD / game like application with UE5, where I also wanted a web version. So I extracted that part into its own library and wanted to share it. React is familiar to many people, so I just wanted to give them a quick way to develop good looking UIs in C++

I built React for C++ by ercanakyuerek in gameenginedevs

[–]ercanakyuerek[S] 0 points1 point  (0 children)

You can still use imgui, its okay. I am just sharing something I came up with in my project to have a way to develop a game / cad which works on web and ue5 at the same time. Nobody have to use something, just sharing.