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 3 of 3

Thread: Viewport on another viewport..

Hybrid View

  1. #1
    Junior Member Newbie
    Join Date
    Sep 2013
    Location
    Chennai
    Posts
    6

    Post Viewport on another viewport..

    Hi,,
    i am new to opengl. can i create a viewport on mouse move.. need help.. plz...

  2. #2
    Advanced Member Frequent Contributor
    Join Date
    Apr 2010
    Posts
    786
    In OpenGL the viewport controls the mapping from normalized device coordinates to window coordinates, as such you don't create one of these but instead set it and it affects any rendering done from that point onward until you change the viewport settings again.

    Given your other recent question I'm wondering if what you really want is creating a new OpenGL widget/window? That is something outside of OpenGL (i.e. off-topic here) and depends on the windowing toolkit/api that you use - you may want to ask on a forum that is dedicated to whatever you use there.

  3. #3
    Junior Member Newbie
    Join Date
    Sep 2013
    Location
    Chennai
    Posts
    6
    Thank you for your reply..

Posting Permissions

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