Can this be done using OpenGL?

I am making a vector drawing application with OpenGL. Is there a way to implement a clipping mask? For example: if I have circle A and circle B, I want to see only the part of circle B that intersects with the space Circle A. Is there a way to do this, which is not very expensive, I do not want to kill my application. Thanks

+3
source share
2 answers

Jex

A google quick search for “openGL clipping mask” was this as the first result.

0
source

One possibility would be to draw circle A in the stencil buffer, then draw circle B.

+2

Source: https://habr.com/ru/post/1757173/


All Articles