View Full Version : how to implement automatically resizeable GLwindow??

vamsee kanth
12-03-2004, 01:47 AM

iam working on java and opengl.for this i need an automatically resizeable openGL window in a java split pane.

i donot know how to do it??
plz help me.
any code would be highly useful..


12-04-2004, 09:10 AM
Hi !

It depends a little on what OpenGL layer you use with jave (gl4java,jogl...)

Anyway, you just setup a window event listener that handles the window resize event, when you get it you do the same thing as you would in any other OpenGL application, the most common thing to do is to call glViewport().