Hello,
I don’t know the underlying techniques that makes an openGL viewport integrated into a swing component so my question is probably a really stupid question. Pardon me for that.
When I put a GLCanvas into a JFrame and the user grab a corner of the window and resize it, the init() function of the GLEventListener is not called, only its resize function is.
When I do the same with a GLJPanel, the init() function is called frequently.
I am really wondering if it have to be so many re-init in the case of the GLJPanel. I would be really happy to just handle a resize function rather than an init function.
As I said my question might be really a stupid one for the ones that know why it cannot be done. Sorry in advance :-\