I'm working on a project using JOGL API.
Now I am stuck at a point that is the followed:
-I run the program and it shows a Canvas divided in 4 viewPorts. The objective of the project is basically in each of the viewPorts we need to "project" an object from 4 diferent points of view. But first, we need to when clicking [1,2,3,4] to "expand"/"full-screen" the matched ViewPort.
My idea is when clicking any number create a new viewPort like this:gl.glViewport(0, 0, CANVAS_WIDTH, CANVAS_HEIGHT). But this only creates a new viewPort with the size of the canvas.
How can I expand the "content" of any of the 4 viewPort to "enter" that new viewPort?