Michael Jones (mtj++at++babar)
Wed, 24 Nov 1993 08:47:50 -0800
This kind of thing is _really_ dangerous. You can only access GL from the
draw process in multiprocess-applications, so this coding style which is
ok on a single-process configuration would cause program termination if
you specify a multiprocess mode of operation such as PFMP_APP_CULLDRAW.
Why not use IRIS Performer host-based matrix routines instead? They will
be as fast or faster, and won't tie you to an only-one-process-for-ever
implementation.
pfMatrix m, r;
/* form translation matrix */
pfMakeTransMat(m, obj->trans[0], obj->trans[1], obj->trans[2]);
/* pitch about y axis */
pfEulerMat(r, 0.0f, 0.0f, pitch);
pfMultMat(m, m, r);
/* yaw about z axis */
pfEulerMat(r, yaw, 0.0f, 0.0f);
pfMultMat(m, m, r);
/* roll about x axis */
pfEulerMat(r, 0.0f, roll, 0.0f);
pfMultMat(m, m, r);
/* set DCS' transformation */
pfDCSMatrix(dcs, m);
--Be seeing you, mtj++at++sgi.com 415.390.1455 M/S 7L-590 Michael Jones Silicon Graphics, Advanced Graphics Division 2011 N. Shoreline Blvd., Mtn. View, CA 94039-7311
This archive was generated by hypermail 2.0b2 on Mon Aug 10 1998 - 17:50:06 PDT