#1 would be easiest. And if you don’t need blending, sufficient.
However if you do need blending (e.g. icons blend on top of your shapes, not just overwrite your shapes), then you could just take the approach of drawing all your shapes first, and then drawing your icons. Because the icons are drawn last, they’ll blend on top of the shapes. Further, with this approach, a shape can never “draw on top of” an icon (because the shapes are all drawn before any icons are).
Thanks for the reply Dark Photon!
The objects are drawn by the user.Im not loading the objects.Anyways i will not require blending.
So i initially load my icons at z = 0 plane and let the user draw in the z= -10 plane.
The drawing process involves keyboard and mouse interaction.So i take the input values and basically draw the object on the z = -10 plane.So the objects will appear behind the icons.THis will work right?
Yes, but your software will still draw what the user has created. What Dark Photon meant was that in each rendering pass, you always draw anything created by the user first, then you draw your own icons etc.