Login  Register

How to stop drawing outside of area (masking)?

Posted by Schred on Feb 12, 2020; 12:24pm
URL: https://forum.jogamp.org/How-to-stop-drawing-outside-of-area-masking-tp4040357.html

I am currently coding my own UI system using JOGL and would like to know how to only draw inside a certain area.

The system is structured like this:
-window
  -container
    -components (including other containers)
and I want the components of a container to only be able to draw in that container's area.

How would I go about doing this?