Im working on creating simple graphic editor using OpenGL.
In my 2D drawing mode, im drawing the shapes, which lie in the same plane as my icons(the icons are bitmap images that i will be loading).
Now the problem is that the drawing shapes come over the icons as they are in the same plane.The icons are overwritten by the 2D shapes.
Now can i solve this problem in the following way:
1)Load the bitmaps in a different plane and draw the shapes in a plane behind the bitmap.ie for eg if my bitmaps are in the z = 0 plane, then draw shapes in the z = -10 plane.
2)Use a suitable clipping algorithm.My drawing shapes are many in number.So i wont be able to use algorithms like Cohen Southerland.
Please suggest the best method and also how to proceed with it.
Thanks in advance…