Re: How to stop drawing outside of area (masking)?
Posted by
Sven Gothel on
Feb 12, 2020; 12:31pm
URL: https://forum.jogamp.org/How-to-stop-drawing-outside-of-area-masking-tp4040357p4040358.html
On 2/12/20 1:24 PM, Schred [via jogamp] wrote:
> 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?
Try the GL viewport.
On the other hand, it might be nice to have a seamless integration
of the scene and UI as we demo in GraphUI?
If you like (and are free) to collab on UI work,
please email me.
~Sven