Round ViewPort... or something like this

BlitzMax Forums/BlitzMax Programming/Round ViewPort... or something like this

I'm not sure about DirectX but in OpenGL, using the Stencil Buffer will help you. You can draw a circle, setting the bits in the stencil buffer, then taking the stencil buffer into account when you render by enable the appropriate testing. It will then only draw where the stencil bits are. You can easily switch it off to draw outside the circle.