Part of the Khronos Group
OpenGL.org

The Industry's Foundation for High Performance Graphics

from games to virtual reality, mobile phones to supercomputers

Results 1 to 2 of 2

Thread: how to implement automatically resizeable GLwindow??

  1. #1
    Junior Member Newbie
    Join Date
    Nov 2004
    Posts
    15

    how to implement automatically resizeable GLwindow??

    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
    A.V.Krishna Kanth

  2. #2
    Senior Member OpenGL Pro
    Join Date
    May 2001
    Location
    Kristianstad,Skåne,Sweden
    Posts
    1,651

    Re: how to implement automatically resizeable GLwindow??

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

    Mikael

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •