GUI Window clipping
Posted: Wed Aug 31, 2022 1:13 am
Hello, I have confusion regarding window clipping, when an window is overlaped by another window, the overlapping window is drawn fully and from the overlapped window only those portion are redrawn which are visible, the confusion is here-- every window owns there own buffer where pixels are drawn by each application who owns that window and the compositor composites that buffer to final image, so the portion which are visible are calculated using rectangle clipping and those rectangles are in device coordinates how can I convert those same rects to window coordinate? So that I can only copy those visible portion of window buffer to final image? Or my method is wrong?
For example if the clip rect is in 100,100 as per screen coord, the same rect should be in 0,0 in window coord..
For example if the clip rect is in 100,100 as per screen coord, the same rect should be in 0,0 in window coord..