hide random home http://www.sgi.com/tech/openGL/mjk.motif/subsection3_2_4.html (Silicon Surf Promotional CD, 01/1995)



Next: 3 Animation Via Work Up: 2 OpenGL with Widgets Previous: 2.3 Drawing Area Callbacks

2.4 Handling Input

The input routine handles X events for the drawing area. Input events require no special handling for OpenGL. But remember that the coordinate systems for X and OpenGL are distinct, so pointer locations need to be mapped into OpenGL's coordinate space. OpenGL generally assumes that the origin is in the lower left-hand corner, while X always assumes an origin at the upper left-hand corner.


mjk@asd.sgi.com
Wed Oct 19 18:08:51 PDT 1994