I am mapping a 2d texture onto a plane to display on a separate window created by my application.
I would like to know what the mapping is between the texture coordinates and the window (display
coordinates). I would like to be able to center the texture within the X window (created through
Xt and Motif); the X window is  of a constant size, while the size of the 2d image slice can
be of different sizes. The image is mapped so that the longer dimension fully uses up the window
space.

For instance the window size is 256x256 and the image is 256x128 - in this case the image
will fully occupy the window in X, but will extend between 64 to 192 in y.  Is it sufficient
if I set the origin of the structured points dataset to (0, 64)?

Thanks.

    -- krs

-- 
K.R.Subramanian                           Phone: (704) 547-4872
Department of Computer Science            FAX:   (704) 547-3516
UNC Charlotte                             Email: krs@cs.uncc.edu
9201 Univ. City Blvd.                     WWW: http://www.cs.uncc.edu/~krs
Charlotte, NC 28223-0001