From: Jacek <jp...@in...> - 2002-08-21 21:24:30
|
In file: xc/lib/GL/mesa/src/drv/tdfx/tdfx_tris.c there are calls: fxMesa->Glide.grDrawTriangle( a, b, c ); grDrawTriangle is probably defined in: glide3x/h3/glide3/src/gdraw.c and used code is: GR_BEGIN_NOFIFOCHECK("grDrawTriangle",92); TRISETUP(a, b, c); GR_END(); GR_BEGIN_NOFIFOCHECK is: GR_DCL_GC - set gc value (few asm lines) GR_DCL_HW - set hw value GR_DEBUG_DCL(name, level) - empty FXUNUSED(hw) - no idea (can't find definition yet) TRISETUP is: (gc->triSetupProc)(gc, a, b, c) GR_END is: {GR_CHECK_SIZE(); GR_TRACE_EXIT(myName);} - asserts Reading Glide source is crazy, but let's say I will complete grDrawTriangle function as few simple lines of code (still with Glide calls). Could I put these lines in tdfx_tris.c? Will it work, if all other functions will use fxMesa->Glide stuff? -- http://decopter.sf.net - free unrealistic helicopter simulator |