Ran Yakir (rany++at++rtset.co.il)
Mon, 3 Feb 1997 04:57:56 -0800
...
glDrawPixels() can get an address which is inside the image, not only the
corner itself. In your case, you can calculate the pixel that should be drawn
to the lower left corner of the viewport, and send its address within the image
to glDrawPixels. You should specify what is the row length of the image, so
that OpenGL can skip to the next row of pixels, to the same x position. You
specify the row length with glPixelStorei (GL_PACK_ROW_LENGTH, row_length).
Ran
--
__ | Ran Yakir
/_) _ __ \ / _ / o __ | RT-SET Ltd.
/ )_ (_(_) ) \/ (_(_/<_(_)( |
_/ |
-------------------------------------+--------------------------------
Phone : | E-mail : rany++at++rtset.co.il
Work : 972-9-9552236 | rany++at++netvision.net.il
Res. : 972-9-7489974 |
Fax : 972-9-9552239 |
=======================================================================
List Archives, FAQ, FTP: http://www.sgi.com/Technology/Performer/
Submissions: info-performer++at++sgi.com
Admin. requests: info-performer-request++at++sgi.com
This archive was generated by hypermail 2.0b2 on Mon Aug 10 1998 - 17:54:34 PDT