Archive 17/01/2023.

Drawing 2D Polygon

dgp

I am newbie and looking forward fro some direction on accomplishing the following using Urho2D namespace.

1)How do I set my ortho to -100,100,-50,50 ,I use glOrtho in Opengl
2)How to draw polygons,lines and points
3)Is it possible to modify Urho2DSprite sample to accomplish above to? If so, what should be used in place of StaticSprite2D
4) Is there a self contained sample with main(0 as entry point ?

rku

You should really check samples: github.com/urho3d/Urho3D/tree/m … e/Samples/

  1. Like this
  2. Dynamic geometry sample, but likely you do not want this at all.
  3. You are not clear enough what your goal is.
  4. See definition of URHO3D_DEFINE_APPLICATION_MAIN

Yeah docs are bit lacking, but code of engine is very clean and clear so reading it can answer your questions most of the time.