OpenGL graphics state during draw callback

New Message Reply Date view Thread view Subject view Author view

Richard Rabbitz (rrabbitz++at++motown.lmco.com)
Wed, 27 Aug 1997 14:07:44 -0400


Hi Performers,

We have an application where we need to customize channel drawing to include
some OpenGL calls. I know this must be done in the DRAW process since this
is the only place to get a handle to a graphics context. When we enter the
draw process we draw the scene graph (which renders correctly), but then when
we try to make some render call in OpenGL it seems as though the projection
and model matrix stacks are not retained from the channel setup, so we have
to go and set these again in OpenGL to ensure the proper view transformation
for our OpenGL rendering. So my question is: In the draw callback does the
graphics context we are handed retain any state from the channel call made
previously? Or, do we have set the view transformation explicitly every time do
OpenGL rendering?

Thanks,

=================================/|==========================
| _____________/_|__ |
| L O C K H E E D M A R T I N / | / G E S |
| / |/ |
| Rich Rabbitz Phone: (609) 722-4559 |
| Mail Stop 137-124 Fax : (609) 273-5185 |
| Moorestown, NJ 08057 rrabbitz++at++motown.lmco.com |
=============================================================
=======================================================================
List Archives, FAQ, FTP: http://www.sgi.com/Technology/Performer/
            Submissions: info-performer++at++sgi.com
        Admin. requests: info-performer-request++at++sgi.com


New Message Reply Date view Thread view Subject view Author view

This archive was generated by hypermail 2.0b2 on Mon Aug 10 1998 - 17:55:47 PDT

This message has been cleansed for anti-spam protection. Replace '++at++' in any mail addresses with the '@' symbol.