void tdfxDDInitDriverFuncs( const __GLcontextModes *visual, struct dd_function_table *functions ) { if ( MESA_VERBOSE & VERBOSE_DRIVER ) { fprintf( stderr, "tdfx: %s()\n", __FUNCTION__ ); } functions->GetString = tdfxDDGetString; functions->GetBufferSize = tdfxDDGetBufferSize; functions->ResizeBuffers = _swrast_alloc_buffers; /* Accelerated paths */ if ( VISUAL_EQUALS_RGBA(visual, 8, 8, 8, 8) ) { functions->DrawPixels = tdfx_drawpixels_R8G8B8A8; functions->ReadPixels = tdfx_readpixels_R8G8B8A8; } else if ( VISUAL_EQUALS_RGBA(visual, 5, 6, 5, 0) ) { functions->ReadPixels = tdfx_readpixels_R5G6B5; } functions->GetBooleanv = tdfxDDGetBooleanv; functions->GetDoublev = tdfxDDGetDoublev; functions->GetFloatv = tdfxDDGetFloatv; functions->GetIntegerv = tdfxDDGetIntegerv; }
void tdfxDDInitDriverFuncs( const __GLcontextModes *visual, struct dd_function_table *functions ) { if ( MESA_VERBOSE & VERBOSE_DRIVER ) { fprintf( stderr, "tdfx: %s()\n", __FUNCTION__ ); } functions->GetString = tdfxDDGetString; functions->BeginQuery = tdfxBeginQuery; functions->EndQuery = tdfxEndQuery; /* Accelerated paths */ if ( VISUAL_EQUALS_RGBA(visual, 8, 8, 8, 8) ) { functions->DrawPixels = tdfx_drawpixels_R8G8B8A8; functions->ReadPixels = tdfx_readpixels_R8G8B8A8; } else if ( VISUAL_EQUALS_RGBA(visual, 5, 6, 5, 0) ) { functions->ReadPixels = tdfx_readpixels_R5G6B5; } }