From: Allen B. <ba...@lo...> - 2001-06-22 18:16:08
|
Brian Paul wrote: > > Allen Barnett wrote: > > Maybe Mesa > > could be configured w/o Glide by default now that DRI is the way to go? > > Try ./configure --without-glide (OK. I just meant to make --without-glide the default.) Also, about raster images: I see that you added a glWindowPosMESA extension which doesn't suffer from the viewport clipping effect of glRasterPos. However, the units of glWindowPos are the direct window coordinates. I think I need something somewhere in between, i.e., to draw an image at coordinates which are transformed by the projection/modelview matrices but whose origin may be outside the viewport. I know about the glBitmap(0,0,0,0,xmove,ymove,NULL) trick, but the xmove/ymove coordinates are in pixels, not model units. The following seems to work OK: glGet viewing matrices gluProject( mx, my, mz, viewing matrices, &wx, &wy, &wz); glWindowPosMESA( wx, wy ); glDrawPixels(...); but this seems inefficient (as well as requiring a MESA extension). Is there some better trick I'm missing? Thanks, Allen |