I'm fiddling with a simple 2D game and need to draw lines between sprites. Any tips on how to do this with an Urho Application? I guess I could put rotated sprites there, but I'd like to draw if possible.
There are several ways to do it, the simplest - is to use DebugRenderer component (it has DrawLine methods), take a look at samples (i.e. 15_Navigation). But it's kind of "debug" component
I recommend CustomGeometry - you can find some snippets in Urho3D forum like this or any of those.
PS: let me know in case of unsurfaced API
Thanks.
Answers
There are several ways to do it, the simplest - is to use DebugRenderer component (it has DrawLine methods), take a look at samples (i.e. 15_Navigation). But it's kind of "debug" component
I recommend CustomGeometry - you can find some snippets in Urho3D forum like this or any of those.
PS: let me know in case of unsurfaced API
Thanks.