glx_viewport(3Tk)

glx_viewport - configure the GL viewport

As shipped in IRIX 6.5.5. Unchanged since IRIX 6.5.

NAME
     glx_viewport - configure the GL viewport

SYNOPSIS
     glx_viewport width height
     glx_viewport left right bottom top


DESCRIPTION
     glx_viewport calls the GL function viewport().  If two arguments are
     given, they are assumed to be the width and height of a viewport whose
     origin is at (0, 0).  If four arguments are given, they represent the
     left, right, bottom and top of the viewport.

     Whenever a Configure event is received in a glxwin window, this command
     should be called as  glx_viewport %w %h  to notify GL of the new size of
     the window.  The change in viewport applies to the current window only;
     if other windows or auxiliary windows (such as overlays and popups) are
     in use, each should be selected in turn and glx_viewport should be
     called.


KEYWORDS
     viewport, GL, GLX