PDA

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



vamsee kanth
12-03-2004, 01:48 AM
Hello,

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..

vamsee

roffe
12-03-2004, 09:32 AM
I'm assuming java has a callback functionality like most windowing api's. Whenever a window changes size(programatically or by user) some message/event should be sent to your callback function/class. When received make appropriate API calls(projection,viewport,scissor etc).