From: Brian P. <br...@va...> - 2001-06-22 23:55:41
|
Allen Barnett wrote: > > 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.) That'll probably be the default in the future. I don't know if many people are still using the Glide driver. > 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? Take a look at this: http://oss.sgi.com/projects/ogl-sample/registry/IBM/rasterpos_clip.txt I could pretty easily implement this extension if you want it. -Brian |