BeginDraw
BeginDraw is a term used across various graphics APIs to denote the start of a drawing sequence on a rendering target, such as a window, canvas, or texture. It represents the point at which a program begins recording or issuing drawing commands for a frame or pass.
In practice, BeginDraw serves to prepare the drawing context. When invoked, it may acquire or lock the
BeginDraw is usually paired with EndDraw, which finalizes the drawing sequence. EndDraw often flushes or submits
Usage patterns vary by platform. Some frameworks use a single BeginDraw/EndDraw pair per frame, while others
Origins and design goals of BeginDraw-center around formalizing the start of a rendering pass, enabling efficient