Archive 17/01/2023.

TurboBadger integration

Lumak

http://urho3d.prophpbb.com/topic1512.html

Details:
-window build, not tested on other platforms
-mouse/key input, no touch
-the turbobadger library is included as Thirdparty/TurboBadger and builds with Urho3D.lib, however, since there’s no dependency or modification to Urho3D source, this folder can be moved to Tools build folder and wouldn’t be an issue.
-the demo is fully functional. all previous issues are fixed.

File list:
-Source/Thirdparty/TurboBadger - turbobadger lib files
-Source/Samples/54_TurboBadger - source code that runs turbobadger
-bin/Data/TB - data, including demo data

Issues:
-none

Configuration:
-turbobadger font types: TBBF(default), FreeType, and STB. The TBBF font was the default for the demo, but this can be easily changed in tb_config.h. I’ve not tested other fonts.

What’s next?

  • not sure what to do with this, but I thought someone else might be interested in this type of stuff.

edit1: updated issues, corrected source paths
edit final: all issues fixed.
edit: added a link to my merge with the Urho3D-master.

Lumak

In all fairness, memory leak could be attributed to something that I’m doing or not doing. I stepped through TurboBadger glfw demo for windows and copied and pasted lot of what was in the demo, but I could’ve missed something.

edit: fixed.

Lumak

Memory leak issue fixed. It was my doing, and it’s embarrassing to admit that I forgotten Urho3d’s delete process. And I also pushed a lot of clean up code yesterday as well, so what’s on the master is good to go.

edit: upper case inputs still remaining.

Lumak

All fixed and checked in.

Hevedy

To compile that on Urho3D or include in the project what is the way ? is that included?

Edit:

*Added the line 65 add_sample_subdirectory (54_TurboBadger) in Source/Samples/CMakeLists.txt to include the sample.
*Added the line 108 add_subdirectory (ThirdParty/TurboBadger) in Source/CMakeLists.txt to include the TurboBadger lib.

This are errors: ?
The line UIDrag.h 40 should be URHO3D_OBJECT( UIDrag ); and no OBJECT( UIDrag ); ?
The line TBWrapper.h 51 should be URHO3D_OBJECT( TUIRendererBatcher ); and no OBJECT( TUIRendererBatcher ) ?
HANDLER to URHO3D_HANDLER

Anyway after change that i got 6 errors
Error 8 error C2208: ‘Urho3D::Application’ : no members defined using this type 54_turbobadger\UIDrag.h 40 1 54_TurboBadger
Error 3 error C1903: unable to recover from previous error(s); stopping compilation 54_turbobadger\TBWrapper.h 51 1 54_TurboBadger

*I using the master version but with the 1.4 adding only that changes to the CMakeList.txt give me too errors with the generated files.

41>Urho3D-1.4\Build\bin\54_TurboBadger.exe : fatal error LNK1120: 195 unresolved externals

Lumak

Sorry to hear you’re having problems building this. I posted your build problem with the master branch here - http://discourse.urho3d.io/t/turbobadger-full-integration/1457/2.

Can you tell me what some of the 195 unresolved externals are when linking it with 1.4?

Hevedy

[quote=“Lumak”]Sorry to hear you’re having problems building this. I posted your build problem with the master branch here - http://discourse.urho3d.io/t/turbobadger-full-integration/1457/2.

Can you tell me what some of the 195 unresolved externals are when linking it with 1.4?[/quote]

Not sure but all the obj libs from Turbobadger give me error at compile the sample.

Lumak

Hmm, not much to go on. You might try creating a new sandbox and see if that works.

Lumak

Try my merged branch of Urho3D-master - https://github.com/Lumak/Urho3D, flags -DURHO3D_SAMPLES=1 -DURHO3D_TB_DEMO=1

Hevedy

Yeah thanks, tomorrow i go to try that, thanks you!

Hevedy

Well compiling you repo work without problems but at open the demo only have a brown background ?
*After include the flag -DURHO3D_TB_DEMO=1 now all works, thanks you!

Lumak

ok, cool.

Dave82

Wow awesome work Lumak ! Didn’t have time to test it yet but it looks beautiful ! I like Urho’s UI but this really needed , i hope the UI will be replaced in the Editor. A beautiful gui would attract more users.

10/10